/* Move-Easy24 Custom Styles - Professionelles Design v3.2 */

:root {
    /* Primärfarben - Vertrauenswürdig & Professionell */
    --primary-blue: #1e40af;        /* Dunkleres Blau für mehr Seriosität */
    --primary-blue-light: #3b82f6;  /* Helleres Blau für Hover */
    --primary-green: #059669;       /* Dunkleres Grün für Stabilität */
    --primary-green-light: #10b981; /* Helleres Grün für Akzente */
    
    /* Vertrauens-Farben */
    --trust-blue: #1e3a8a;          /* Dunkelblau für Sicherheit */
    --success-green: #047857;       /* Sattgrün für Erfolg */
    --warning-orange: #ea580c;      /* Orange für Aufmerksamkeit */
    
    /* Neutrale Farben */
    --dark-gray: #111827;
    --medium-gray: #4b5563;
    --light-gray: #f3f4f6;
    --border-gray: #e5e7eb;
    
    /* UI-Elemente */
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* Vertrauens-Gradient */
    --gradient-trust: linear-gradient(135deg, #1e40af 0%, #059669 100%);
    --gradient-premium: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* OLD Chatbot Widget Styles - DISABLED (using new AI chatbot) */
#chatbot-widget {
    display: none !important; /* Hide old chatbot */
    visibility: hidden !important;
}

#chatbot-button {
    display: none !important; /* Hide old chatbot button */
    visibility: hidden !important;
}

#chatbot-container {
    display: none !important; /* Hide old chatbot container */
    visibility: hidden !important;
}

#chatbot-container.active {
    display: flex;
}

#chatbot-header {
    background: var(--gradient-trust);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9fafb;
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    animation: fadeInUp 0.3s ease-out;
}

.chat-message.bot .message-bubble {
    background: white;
    color: #333;
    border: 1px solid #e5e7eb;
}

.chat-message.user .message-bubble {
    background: var(--gradient-trust);
    color: white;
    box-shadow: var(--shadow-sm);
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.bot-avatar {
    background: var(--gradient-trust);
    color: white;
}

.user-avatar {
    background: #e5e7eb;
    color: #333;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: pulse 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

#chatbot-input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

#chatbot-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

#chatbot-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

#chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-trust);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

#chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #1e3a8a 0%, #047857 100%);
}

/* Quick Reply Buttons */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.quick-reply-btn:hover {
    background: var(--gradient-trust);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Dashboard Styles */
.dashboard-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.dashboard-sidebar-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
}

.dashboard-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-green-light);
}

.dashboard-sidebar-item.active {
    background: rgba(5, 150, 105, 0.2);
    border-left-color: var(--primary-green);
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

/* Table Styles */
.custom-table {
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-table thead {
    background: #f9fafb;
}

.custom-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.custom-table td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.custom-table tbody tr:hover {
    background: #f9fafb;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.new {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.contacted {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.quoted {
    background: #e0e7ff;
    color: #3730a3;
}

.status-badge.won {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.lost {
    background: #fee2e2;
    color: #991b1b;
}

/* Priority Badges */
.priority-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.priority-badge.low {
    background: #e0e7ff;
    color: #3730a3;
}

.priority-badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-badge.high {
    background: #fed7aa;
    color: #9a3412;
}

.priority-badge.urgent {
    background: #fee2e2;
    color: #991b1b;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-trust);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #1e3a8a 0%, #047857 100%);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    animation: slideInRight 0.3s ease-out;
}

.notification.success {
    background: #d1fae5;
    color: #065f46;
}

.notification.error {
    background: #fee2e2;
    color: #991b1b;
}

.notification.info {
    background: #dbeafe;
    color: #1e40af;
}

/* ============================================
   NEUE PROFESSIONELLE UTILITY CLASSES v3.2
   ============================================ */

/* Vertrauens-Badges */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(30, 64, 175, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--trust-blue);
}

.trust-badge.dsgvo {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.2);
    color: var(--success-green);
}

.trust-badge.secure {
    background: rgba(30, 58, 138, 0.1);
    border-color: rgba(30, 58, 138, 0.2);
    color: var(--trust-blue);
}

/* Professionelle Card-Hover-Effekte */
.pro-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-gray);
}

.pro-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-blue-light);
}

/* Vertrauensvolle Buttons */
.btn-trust {
    background: var(--gradient-trust);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-trust:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.3);
    background: linear-gradient(135deg, #1e3a8a 0%, #047857 100%);
}

.btn-trust:active {
    transform: translateY(-1px);
}

/* Sicherheits-Icon-Box */
.security-icon {
    width: 48px;
    height: 48px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--success-green);
    margin-bottom: 12px;
}

/* Transparenz-Highlight */
.transparent-highlight {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--primary-blue);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.transparent-highlight h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 8px;
}

/* Premium-Gradient für wichtige Elemente */
.premium-gradient {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Professionelle Divider */
.pro-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-gray), transparent);
    margin: 32px 0;
}

/* Vertrauensvolle Feature-Box */
.trust-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.trust-feature:hover {
    border-color: var(--primary-blue-light);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.trust-feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-trust);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

/* Professioneller Text-Style */
.pro-text-lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--medium-gray);
    font-weight: 400;
}

.pro-text-emphasis {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Responsive Design Utilities */
@media (max-width: 768px) {
    .trust-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .btn-trust {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .pro-card {
        padding: 16px;
    }
    
    .trust-feature {
        padding: 16px;
    }
    
    .trust-feature-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #chatbot-container {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        bottom: 90px;
        right: 20px;
        left: 20px;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* Print Styles */
@media print {
    nav, footer, #chatbot-widget {
        display: none;
    }
}