/* ============================================
   CSS VARIABLEN & GRUNDEINSTELLUNGEN
   ============================================ */

:root {
    --primary: #EC9A29;
    --primary-blue: #1585ac;
    --dark-blue: #404D6E;
    --light-gray: #f8f9fa;
    --text-gray: #666;
}

/* Grundeinstellungen für Body und HTML */
body {
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sanftes Scrollen aktivieren */
html {
    scroll-behavior: smooth;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

/* Oberer Header Bereich */
.top-header {
    background: var(--primary);
    padding: 12px 0;
    font-size: 14px;
}

.top-header a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.top-header a:hover {
    color: #f0f0f0;
}

/* Header nur auf Mobilgeräten fixieren */
@media (max-width: 767.98px) {
    .top-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    /* Abstand zum Body-Inhalt hinzufügen */
    body {
        padding-top: 125px; /* Höhe des Headers anpassen */
    }
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--dark-blue);
}

.nav-link {
    text-decoration: none;
    color: #091F55 !important;
    font-size: 1.1rem;
}

/* Trennlinie zwischen Navigation Links */
.divider {
    width: 2px;
    height: 1.2em;
    background-color: var(--dark-blue);
}


a {
  color: var(--primary-blue);
}


/* ============================================
   LOGO STYLING
   ============================================ */

/* Logo Wrapper - Desktop Position */
.logo-wrapper {
    background: white;
    border-radius: 150px;
    padding: 1rem 1rem 1rem 2rem;
    display: inline-block;
    box-sizing: content-box;
    /* Ursprüngliche Desktop-Position */
    position: relative;
    left: 158px;
    top: -80px;
}

/* Logo auf mobilen Geräten zentrieren */
@media (max-width: 991px) {
    .logo-wrapper {
        position: static;
        margin: 0 auto;
        display: block;
    }
}

/* Header Logo Grundeinstellungen */
.header-logo {
    height: 176px;
    border-radius: 150px;
    display: block; /* Verhindert kleinen Abstand unten */
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    /* Logo & Social Icons in einer Zeile (oberer Balken) */
    .top-header .container {
        padding: 0;
    }

    .top-header .row {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    /* Logo Container - Links positioniert */
    .logo-container {
        position: static;
        text-align: left;
        padding-left: 15px;
        margin-bottom: 0;
    }

    /* Mobile Logo Anpassungen */
    .header-logo {
        height: 160px;
        display: block;
        margin: 0 auto; 
        position: relative;
        top: 0;
        left: 0;
        padding: 0;
        border-radius: 0;
    }

    /* Social Icons rechts im oberen Balken */
    .top-header .social-icons {
        margin-left: auto;
        gap: 15px;
    }

    /* Menü als eigene Zeile unten */
    .nav-links {
        width: 100%;
        background: var(--primary);
        padding: 10px 15px;
        display: flex;
        justify-content: space-around;
        margin-top: 5px;
    }

    .nav-links a {
        margin: 0; /* Margin entfernen */
        font-weight: 600;
        color: white;
    }

    .nav-links a:hover {
        color: #f0f0f0;
    }

    /* Reihenfolge anpassen: oberer Balken (Logo+Social), darunter Menü */
    .top-header > .container > .row {
        flex-direction: row;
    }

    /* Logo Container sichtbar und oben */
    .logo-container {
        order: 0;
        display: block;
    }

    /* Logo unten verstecken */
    .logo-container.logo-bottom {
        display: none;
    }
}

/* Row Anpassungen */
.row.justify-content-end.align-items-center.flex-column.flex-md-row {
    margin-left: 0px !important;
    margin-right: 0px !important;
}

/* ============================================
   SOCIAL MEDIA ICONS
   ============================================ */

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    color: #091F55;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin: 0;
}

.social-icons a:hover {
  transform: scale(1.4);
  color: var(--dark-blue)!important;
}

/* ============================================
   HEADER SECTION
   ============================================ */

/* Moderner Header Bereich */
.header-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* Dekorativer Hintergrund Effekt */
.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 300px;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), rgba(196, 168, 130, 0.3));
    transform: skewX(-15deg);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 200px;
}

/* Logo Container im Header */
.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo Icon */
.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(90, 159, 212, 0.3);
}

/* Logo Text */
.logo-text {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    letter-spacing: -1px;
}

/* Tagline unter Logo */
.tagline {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-top: 10px;
    font-weight: 400;
}

/* Header Statistiken */
.header-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    padding-bottom: 100px;
}

.hero-title {
    color: var(--primary-blue);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Vorteile Liste */
.benefit-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;  
    align-items: center;    
    padding-left: 0;        
    list-style-position: inside; 
}

.benefit-list li {
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.benefit-list i {
    color: var(--primary-blue);
    margin-right: 15px;
    font-size: 1rem;
}

/* Call-to-Action Button */
.cta-btn {
    background: linear-gradient(45deg, var(--primary-blue), var(--dark-blue));
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(90, 122, 154, 0.3);
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(90, 122, 154, 0.4);
    color: white;
}

/* ============================================
   BANNER SECTIONS
   ============================================ */

/* Services Banner */
.services-banner {
    background: linear-gradient(45deg, #D07C3F, var(--primary));
    color: white;
    padding: 40px 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
}

.services-banner h2 {
    font-size: 1.8rem;
    color: #FFF;
    font-weight: 600;
}

/* Benefits Banner */
.benefits-banner {
    background: linear-gradient(45deg, #D07C3F, var(--primary));
    color: white;
    padding: 40px 0;
    text-align: center;
}

.benefits-banner h2 {
    font-size: 1.8rem;
    color: #FFF;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   MAIN CONTENT SECTIONS
   ============================================ */

.main-content {
    padding: 100px 0;
}

.section-title {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
}

.description-text {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   PROCESS GRID & CARDS
   ============================================ */

.process-grid {
    margin: 60px 0;
}

/* Process Cards */
.process-card {
    background: white;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.process-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.process-card:hover .process-icon {
    transform: scale(1.1);
}

.process-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.process-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

.why-choose-section {
    padding: 100px 0;
}

/* Zentrales Diagramm */
.central-diagram {
    position: relative;
    margin: 60px 0;
    text-align: center;
}

.central-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 80px;
    background: white;
    border: 3px solid var(--primary-blue);
    border-radius: 50px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(90, 159, 212, 0.2);
}

/* Benefits Grid */
.benefits-grid {
    margin-top: 60px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1);
    color: var(--dark-blue);
}

.benefit-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* ============================================
   CLIENT SECTION
   ============================================ */

.client-section {
    background: linear-gradient(45deg, #D07C3F, var(--primary));
    padding: 60px 0;
    color: white;
}

.client-logo {
    font-size: 1.8rem;
    font-weight: 300;
    text-align: center;
    opacity: 0.9;
    transition: all 0.3s ease;
    margin-bottom: 3.5rem; /* Abstand auf Mobile */
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.client-logo.aos-init.aos-animate:hover {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Abstand auf größeren Geräten entfernen */
@media (min-width: 768px) {
    .client-logo {
        margin-bottom: 0;
    }
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */

.final-cta {
    padding: 100px 0;
    text-align: center;
}

.final-cta .section-title {
    margin-bottom: 2rem;
}

.final-cta .description-text {
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 30px 0;
}

.footer p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer a {
    color: #bdc3c7 !important;
}

.footer a:hover {
    color: #fff !important;
}

.footer-social a {
    color: #bdc3c7;
    margin: 0 15px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ============================================
   MODAL STYLING
   ============================================ */

.custom-light-modal {
    background: #fefefe; /* Fast weiß, aber angenehmer */
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    padding: 2rem 2.5rem;
    border: 1px solid #ddd;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.6rem;
    color: #2c3e50;
    letter-spacing: 0.02em;
}

.modal-body {
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-top: 0.5rem;
}

/* Modal Animationen */
.modal.fade .modal-dialog {
    transform: translateY(30px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.modal.fade.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.modal-backdrop.show {
    opacity: 0.25;
    background-color: #000000;
}

.btn-close {
    filter: none;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* ============================================
   ANIMATIONEN & EFFEKTE
   ============================================ */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    /* Perfekte Zentrierung mit Flexbox */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Entferne das padding-right */
    /* padding-right: 9px; */
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-blue);
    transform: translateY(-5px);
}

/* Scroll Fortschrittsanzeige */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(45deg, #6cd9ff, #4962A2);
    z-index: 9999;
    transition: width 0.25s ease;
}

/* Papierflugzeug Animation */
.paper-airplane-animation {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 450px; /* Größe anpassbar */
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE ANPASSUNGEN
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        padding-bottom: 2rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .process-grid .col-md-3 {
        margin-bottom: 30px;
    }

    /* Dekorativen Hintergrund auf Mobile ausblenden */
    .header-section::before {
        display: none;
    }

    /* Header Stats vertikal anordnen */
    .header-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .header-stats .stat-item {
        display: flex;
        align-items: center;
        gap: 15px;
    }
}

/* ============================================
   RESPONSIVE ANPASSUNGEN
   ============================================ */

.newsletter-btn {
            background: linear-gradient(45deg, #D07C3F, var(--primary));
            transition: all 0.3s ease;
        }

        .newsletter-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(238, 153, 91, 0.4);
            color: white;
        }

        .newsletter-btn:focus {
            box-shadow: 0 0 0 0.20rem rgba(238, 153, 91, 0.4);
            color: white;
        }



        .form-container {
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 30px;
            margin-top: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .form-container h4 {
            color: #333;
            margin-bottom: 25px;
            text-align: center;
            font-weight: 600;
        }

        .form-label {
            font-weight: 600;
            color: #555;
            margin-bottom: 8px;
        }

        .form-control {
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 12px 15px;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            border-color: #e7942d;
            box-shadow: 0 0 0 0.20rem rgba(255, 153, 63, 0.27);
        }

        .form-control.is-invalid {
            border-color: #dc3545;
        }

        .form-control.is-valid {
            border-color: #28a745;
        }

        .error-message {
            color: #dc3545;
            font-size: 0.875em;
            margin-top: 0.25rem;
            display: none;
        }

        .submit-btn {
            background: linear-gradient(45deg, var(--primary-blue), var(--dark-blue));
            border: none;
            color: white;
            font-weight: 600;
            padding: 12px 30px;
            border-radius: 10px;
            transition: all 0.3s ease;
            width: 100%;
        }

        .submit-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
            color: white;
        }

        .submit-btn:focus {
            box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.5);
            color: white;
        }

        .submit-btn:disabled {
            background: #6c757d;
            transform: none;
            box-shadow: none;
        }

        .collapse-container {
            overflow: hidden;
        }

        .form-container.show {
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .required-asterisk {
            color: #dc3545;
        }

        .btn-close-form {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #6c757d;
            position: absolute;
            top: 15px;
            right: 20px;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .btn-close-form:hover {
          color: var(--primary-blue);
        }

        .alert-success {
            border-radius: 10px;
            border: none;
            background: linear-gradient(45deg, #d4edda, #c3e6cb);
        }

        .alert-danger {
            border-radius: 10px;
            border: none;
            background: linear-gradient(45deg, #f8d7da, #f5c6cb);
        }

        @media (max-width: 768px) {
            .main-container {
                margin: 0 15px;
            }
            
            .form-container {
                padding: 20px;
            }
        }



        /* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 9999;
    border: 1px solid #e9ecef;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.cookie-header i {
    color: #EC9A29;
    font-size: 24px;
    margin-right: 12px;
}

.cookie-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #404D6E;
}

.cookie-content {
    color: #666;
    line-height: 1.5;
}

.cookie-text {
    margin-bottom: 16px;
    font-size: 14px;
}

.cookie-settings {
    display: none;
    margin-bottom: 16px;
}

.cookie-settings.show {
    display: block;
}

.cookie-options {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option-label {
    font-weight: 500;
    color: #404D6E;
    font-size: 14px;
}

.cookie-option-required {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active {
    background: #EC9A29;
}

.toggle-switch.active::before {
    transform: translateX(20px);
}

.toggle-switch.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.cookie-btn-accept {
    background: #EC9A29;
    color: white;
}

.cookie-btn-accept:hover {
    background: #d48920;
}

.cookie-btn-decline {
    background: var(--text-gray);
    color: white;
}

.cookie-btn-decline:hover {
    background: #575757;
}

.cookie-btn-settings {
    background: #1585ac;
    color: white;
}

.cookie-btn-settings:hover {
    background: #136f8c;
}

.cookie-btn-save {
    background: #404D6E;
    color: white;
}

.cookie-btn-save:hover {
    background: #353f5a;
}

.privacy-link {
    color: #1585ac;
    text-decoration: none;
    font-size: 12px;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-width: none;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Hide elements when cookies are rejected */
.cookie-calendly-hidden {
    display: none !important;
}

.cookie-newsletter-hidden {
    display: none !important;
}

.cookie-social-hidden {
    display: none !important;
}