/* =================================================================
   1. GRUNDEINSTELLUNGEN & VARIABLEN
   ================================================================= */
:root {
    /* Farbpalette */
    --color-primary: #8B4513;        /* Dunkles, sattes Braun für Titel & Akzente */
    --color-primary-light: #B8860B; /* Heller Gold-Braun-Ton für Buttons & Highlights */
    --color-background: #FDFBF5;    /* Warmes Off-White für eine weiche Optik */
    --color-text: #2c2c2c;           /* Dunkles Anthrazit statt reinem Schwarz */
    --color-text-light: #6e6e6e;    /* Helleres Grau für Untertitel & Fließtext */
    --color-white: #ffffff;
    --color-border: #e5e5e5;      /* Subtile Trennlinien und Ränder */

    /* Typografie */
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1140px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* =================================================================
   2. GLOBALE STYLES & HELPER-KLASSEN
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.section {
    padding: 120px 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 2.8rem); /* Responsive Schriftgröße */
    color: var(--color-primary);
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

/* =================================================================
   3. SEKTIONEN-STYLING
   ================================================================= */

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(44, 28, 15, 0.5));
    z-index: -1;
}
.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 600;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}
.cta-buttons {
    display: flex; gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-button {
    display: inline-block;
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}
.cta-primary {
    background-color: var(--color-primary-light);
    color: var(--color-white);
}
.cta-primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.cta-secondary {
    color: var(--color-white);
    border-color: var(--color-white);
}
.cta-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
}
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* --- JOURNEY SECTION --- */
.journey-section {
    position: relative;
    z-index: 10;
}
.journey-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.journey-step {
    text-align: center;
    padding: 40px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.journey-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.step-icon {
    width: 64px; height: 64px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.step-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.step-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* --- EXAMPLES SECTION --- */
.examples-section {
    position: relative;
    background-image: url('/assets/Weinberg_2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
}
.examples-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(44, 28, 15, 0.85); /* Dunkles Overlay */
    z-index: 1;
}
.examples-section .container { position: relative; z-index: 2; }
.examples-section .section-title, .examples-section .section-subtitle { color: var(--color-white); }
.examples-section .section-subtitle a { color: var(--color-primary-light); text-decoration: none; }
.examples-section .section-subtitle a { color: var(--color-white); text-decoration: none; }
.examples-section .section-subtitle a:hover { text-decoration: underline; }

/* --- BENEFITS SECTION (mit Hintergrundbild) --- */
.benefits-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
}
.benefits-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(44, 28, 15, 0.85); /* Dunkles Overlay */
    z-index: 1;
}
.benefits-section .container { position: relative; z-index: 2; }
.benefits-section .section-title, .benefits-section .section-subtitle { color: var(--color-white); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
}
.benefit-icon { margin-bottom: 20px; }
.benefit-icon svg { color: var(--color-primary-light); }
.benefit-title { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 10px; }
.benefit-text { font-size: 0.95rem; opacity: 0.8; }

/* --- EXAMPLES SECTION --- */
.examples-section {
    position: relative;
    background-image: url('/assets/Weinberg_2.jpg'); /* Pfad zu Ihrem Hintergrundbild */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
}
.examples-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(44, 28, 15, 0.85); /* Dunkles Overlay für Lesbarkeit */
    z-index: 1;
}
.examples-section .container { 
    position: relative; 
    z-index: 2; 
}
.examples-section .section-title, 
.examples-section .section-subtitle { 
    color: var(--color-white); 
}

/* Styling für die neuen Beispiel-Karten */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.example-card {
    background: var(--color-white);
    color: var(--color-text); /* Wichtig: Textfarbe zurücksetzen, da Karten-Hintergrund hell ist */
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.example-card.featured {
    border: 2px solid var(--color-primary-light);
    transform: scale(1.00);
}
.example-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.example-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 30px;
}
.example-card.featured .example-header {
    background: var(--color-primary-light);
}
.example-title { 
    font-family: var(--font-heading); 
    font-size: 1.6rem; 
    font-weight: 600;
    margin-bottom: 5px; 
}
.example-size { 
    opacity: 0.8; 
    font-style: italic;
}
.example-content {
    padding: 30px;
    display: flex; 
    flex-direction: column; 
    gap: 20px;
}
.example-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    min-height: 55px; /* Sorgt für gleiche Höhe der Textblöcke */
}
.investment-item, .return-item {
    padding: 15px;
    background-color: #fafafa;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-primary-light);
}
.investment-label, .return-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 5px;
}
.investment-value, .return-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* --- EXPERTISE SECTION --- */
.expertise-section {
    position: relative;
    background-image: url('/assets/Nachhaltigkeit-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
}
.expertise-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(44, 28, 15, 0.85); /* Dunkles Overlay */
    z-index: 1;
}
.expertise-section .container { position: relative; z-index: 2; text-align: center; }
.expertise-section .section-title, .expertise-section .section-subtitle { color: var(--color-white); }
.expertise-text { font-size: 1.2rem; line-height: 1.8; max-width: 800px; margin: 0 auto; }

/* --- CTA SECTION / CONTACT FORM --- */
.cta-section { background-color: var(--color-primary); color: var(--color-white); }
.cta-section .section-title, .cta-section .section-subtitle { color: var(--color-white); }
.contact-form { max-width: 700px; margin: 0 auto; display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: var(--color-white);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.form-input:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}
.form-textarea { min-height: 150px; resize: vertical; }
.submit-button {
    background: var(--color-primary-light);
    color: var(--color-white);
    padding: 16px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    justify-self: center;
}
.submit-button:hover { background: #d39e1a; transform: translateY(-3px); }
.form-meta { margin-top: 10px; font-size: 0.9rem; opacity: 0.8; text-align: center; }

/* =================================================================
   4. FOOTER
   ================================================================= */
.footer {
    background: #2a1f14;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}
.footer-section h3 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed);
}
.footer-section ul li a:hover { color: var(--color-primary-light); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--color-primary-light); }

/* =================================================================
   5. COOKIE BANNER
   ================================================================= */

.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-banner {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100px);
    transition: transform 0.3s ease;
}

.cookie-consent-overlay.show .cookie-consent-banner {
    transform: translateY(0);
}

.cookie-banner-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-banner-title {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.cookie-banner-subtitle {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
}

.cookie-banner-content {
    padding: 20px 30px;
}

.cookie-category {
    margin-bottom: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f9fafb;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-category-header:hover {
    background: #f3f4f6;
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-category-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.cookie-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.cookie-status.required {
    background: #dcfce7;
    color: #166534;
}

.cookie-status.optional {
    background: #fef3c7;
    color: #92400e;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background-color: #059669;
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .toggle-slider {
    background-color: #059669;
    cursor: not-allowed;
}

.cookie-category-details {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
    display: none;
}

.cookie-category-details.show {
    display: block;
}

.cookie-category-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-examples {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #6b7280;
}

.cookie-banner-actions {
    padding: 20px 30px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

.cookie-btn-primary {
    background: #059669;
    color: white;
}

.cookie-btn-primary:hover {
    background: #047857;
}

.cookie-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

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

.cookie-btn-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.cookie-btn-outline:hover {
    background: #f9fafb;
}

.cookie-settings-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #374151;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-trigger.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-trigger:hover {
    background: #1f2937;
    transform: scale(1.05);
}

/* =================================================================
   6. ANIMATIONEN & RESPONSIVE DESIGN
   ================================================================= */

/* --- Animationen für das Hereinblenden beim Scrollen --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================
   ERGÄNZUNGEN FÜR OPTIMIERTES KONTAKTFORMULAR
   ================================================================= */

/* Neue Badge-Styles für Vertrauenssignale */
.form-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 25px 0 20px 0;
}

.benefit-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.benefit-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 1.1rem;
}

/* Verbesserter Submit-Button */
.submit-button {
    background: var(--color-primary-light);
    color: var(--color-white);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: none; /* Entfernt das UPPERCASE */
    letter-spacing: 0.5px;
    justify-self: center;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
    margin-bottom: 10px;
}

.submit-button:hover {
    background: #d39e1a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
}

/* Aktualisierte Form-Meta für bessere Lesbarkeit */
.form-meta {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
    line-height: 1.4;
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
    .form-benefits {
        gap: 10px;
    }
    
    .benefit-badge {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .submit-button {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .form-meta {
        font-size: 0.85rem;
    }
}

/* --- Responsive Anpassungen --- */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .expertise-image-wrapper { max-width: 400px; margin: 0 auto; }
    .expertise-content .section-title { text-align: center; }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .section { padding: 80px 0; }
    .section-subtitle { margin-bottom: 60px; }
    .hero-subtitle { font-size: 1.2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-button { width: 100%; max-width: 300px; text-align: center;}
    .form-row { grid-template-columns: 1fr; }
    .testimonial-text { font-size: 1.4rem; }

    .cookie-consent-overlay {
                align-items: flex-end;
                padding: 10px;
            }

            .cookie-banner-header,
            .cookie-banner-content,
            .cookie-banner-actions {
                padding-left: 20px;
                padding-right: 20px;
            }

            .cookie-banner-title {
                font-size: 20px;
            }

            .cookie-banner-actions {
                flex-direction: column;
            }

            .cookie-btn {
                width: 100%;
                text-align: center;
            }
}