:root {
    --primary: #5E9E3B;
    --accent-red: #E0261D;
    --accent-yellow: #F6D100;
    --accent-blue: #1C2F91;
    --text-gray: #555555;
    --light-gray: #BFC0C2;
    --background: #f4f4f4;
    --sand: #fafaf8;
    --light: #ffffff;
    --paint-color: #1f2937;
    --shadow-light: 8px 8px 16px rgba(0,0,0,0.08);
    --shadow-dark: -8px -8px 16px rgba(255,255,255,0.9);
    --neu-shadow-inset: inset 4px 4px 8px rgba(0,0,0,0.1), inset -4px -4px 8px rgba(255,255,255,0.8);
    --glass: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
}

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

html {
  scroll-behavior: smooth;   /* sanfter sprung von jetzt anfragen zu anfrage senden */
}

body {
    font-family: 'Inter', sans-serif;
    background: #fafaf8;
    color: var(--text-gray);
    line-height: 1.7;
    overflow: hidden;   
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        /* Hauptstriche */
    linear-gradient(135deg, transparent 0%, transparent 49%, var(--primary) 49%, var(--primary) 51%, transparent 51%),
    linear-gradient(-45deg, transparent 0%, transparent 69%, var(--accent-yellow) 69%, var(--accent-yellow) 71%, transparent 71%),
    linear-gradient(25deg, transparent 0%, transparent 79%, var(--accent-red) 79%, var(--accent-red) 81%, transparent 81%),
    linear-gradient(-135deg, transparent 0%, transparent 86%, var(--accent-blue) 86%, var(--accent-blue) 88%, transparent 88%),

    linear-gradient(75deg, transparent 0%, transparent 21%, var(--primary) 21%, var(--primary) 23%, transparent 23%),
    linear-gradient(-120deg, transparent 0%, transparent 36%, var(--accent-yellow) 36%, var(--accent-yellow) 38%, transparent 38%),
    linear-gradient(160deg, transparent 0%, transparent 56%, var(--accent-red) 56%, var(--accent-red) 58%, transparent 58%),
    linear-gradient(-60deg, transparent 0%, transparent 13%, var(--accent-blue) 13%, var(--accent-blue) 15%, transparent 15%),

    linear-gradient(45deg, transparent 0%, transparent 91%, var(--primary) 91%, var(--primary) 93%, transparent 93%),
    linear-gradient(-90deg, transparent 0%, transparent 43%, var(--accent-yellow) 43%, var(--accent-yellow) 45%, transparent 45%);
    background-size: 100% 100%;
    opacity: 1.0;
    pointer-events: none;
}

/* ===== OVERLAY ===== */
#reveal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9997;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    overflow: hidden;   
    }

#paint-layer {
    position: absolute;
    inset: 0;
    z-index: 9999;
}

#brush {
    position: absolute;
    width: clamp(80px, 15vw, 160px);
    height: clamp(80px, 15vw, 160px);
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/26/Paintbrush_icon.svg/512px-Paintbrush_icon.svg.png') no-repeat center/contain;
    z-index: 3;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0.85;
}

/* ===== TEXT "ACHTUNG FRISCH GESTRICHEN" ===== */
.text-top {
    position: fixed;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    font-family: "Nosifer", sans-serif;
    text-align: center;
    pointer-events: none;
    padding: 0 1rem;
    display: none;
}

.text-top h1 {
    display: inline-block;
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    color: var(--primary);          /* statt var(--accent-red) */
    text-shadow: 
        0 3px 6px rgba(0,0,0,0.5),
        0 0 30px rgba(94, 158, 59, 0.6);   /* grün statt rot */
    margin: 0;
    letter-spacing: 4px;
    line-height: 0.9;
    animation: drip-vertical 2.8s infinite alternate;
    white-space: nowrap;
    position: relative;
}

.text-top h1::after {
    content: '';                    /* Erzeugt ein leeres Pseudo-Element nach dem Inhalt des <h1>-Elements. Ohne content würde nichts angezeigt werden. */
    position: absolute;             /* Positioniert das Pseudo-Element absolut relativ zum nächsten positionierten Vorfahren (hier wahrscheinlich .text-top, das relative sein muss). Ermöglicht freie Platzierung unabhängig vom Dokumentfluss. */
    bottom: -25px;                  /* Platziert das Element 25px unterhalb des unteren Randes des <h1>. Negativer Wert zieht es nach unten aus dem Element heraus. */
    left: 50%;                      /* Setzt die linke Kante auf 50% der Breite des Elternelements. Wird mit transform kombiniert, um zentriert zu werden. */
    transform: translateX(-50%);    /* Verschiebt das Element um 50% seiner eigenen Breite nach links → perfekte horizontale Zentrierung unter dem <h1>. */
    width: 10px;                     /* Breite des zentralen Tropfens: 10px. */
    height: 30px;                    /* Höhe des zentralen Tropfens: 30px → ergibt eine schlanke, tropfenartige Form. */
    background: var(--primary);     /* Hintergrundfarbe des zentralen Tropfens: nutzt die CSS-Variable --primary (z. B. eine Primärfarbe des Designs). Statt --accent-red für bessere Konsistenz. */
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;           /* Erzeugt eine tropfenförmige Rundung: 
                                                                 - Horizontale Radien (50% 50% 50% 50%): alle Ecken gleich rund.
                                                                 - Vertikale Radien (60% 60% 40% 40%): oben stärker gerundet (60%), unten flacher (40%) → klassische Tropfenform. */
    box-shadow: 
        -20px 15px 0 -5px var(--primary),                          /* Linker Schatten: 20px links, 15px unten, Größe 0, Spread -5px → kleiner, leicht versetzter Tropfen links unten. */
        20px -10px 0 -6px var(--primary),                   /* Rechter Schatten: 20px rechts, 10px oben, Spread -6px → kleiner Tropfen rechts oben. */
        -30px -8px 0 -7px var(--primary);                   /* Weiter linker Schatten: 30px links, 8px oben, Spread -7px → noch kleinerer, entfernter Tropfen für Tiefe. */
                                                /* Insgesamt: Simuliert mit box-shadow weitere fallende Tropfen in unterschiedlichen Größen und Positionen → 3D-Regentropfen-Effekt. */
    opacity: 0.8;                               /* Transparenz des gesamten Pseudo-Elements: 80% Deckkraft → wirkt weicher und natürlicher, weniger hart. */
    animation: drop 2.5s infinite;                  /* Startet eine Animation namens "drop" mit 2,5 Sekunden Dauer, unendlich wiederholt. Muss noch mit @keyframes definiert werden (z. B. für Fallbewegung, Skalierung oder Transparenz). */
}

@keyframes drip-vertical {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(10px) scale(1.03); }
}

@keyframes drop {
    0%, 100% { transform: translateX(-50%) translateY(0) scaleY(1); }
    70% { transform: translateX(-50%) translateY(18px) scaleY(1.5); }
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 600px) {
    .text-top { top: 15%; }
}

/* ===== INHALT ===== */


.main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

.main-content.visible {
    opacity: 1;
}

.container { 
    max-width: 1200px; 
    margin: auto; 
    padding: 2rem 1rem; 
}

header { 
    text-align: center; 
    padding: 0;
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand) 100%);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: auto !important;        /* statt fester 220px oder was auch immer */
    min-height: 120px;              /* optional: damit es nicht zu klein wird */
    overflow: visible !important;   /* das ist der entscheidende Punkt! */
    opacity: 1;
}

.hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;             /* etwas mehr Luft oben/unten */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.hero p { 
    font-size: 1.3rem; 
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.header-banner {
    height: auto;
    max-height: 320px;     /* ← hier einfach höher machen (vorher 250px) */
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* ===== HAMBURGER BUTTON – OBEN RECHTS MIT ABSTAND ===== */
.hamburger {
    position: fixed;
    top: 20px;        /* Abstand von oben */
    right: 20px;      /* Abstand von rechts */
    width: 50px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.hamburger:hover {
    transform: scale(1.05);
}

.hamburger .line {
    display: block;
    width: 100%;
    height: 4px;
    background: #5E9E3B; /* Grün */
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hover: Grün → Blau */
.hamburger:hover .line {
    background: #1C2F91; /* Blau */
}

/* Aktiv: X-Form (blau) */
.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
    background: #1C2F91;
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
    background: #1C2F91;
}

/* ===== DROPDOWN MENÜ – UNTEN RECHTS VOM HAMBURGER ===== */
.dropdown-menu {
    position: fixed;
    top: 80px;        /* 20px (oben) + 40px (Hamburger-Höhe) + 20px Abstand */
    right: 20px;      /* Gleicher Abstand wie Hamburger */
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    min-width: 210px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 1000;
    text-align: left;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Links im Dropdown */
.dropdown-menu a {
    display: block;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    color: #5E9E3B;
    padding-left: 8px;
}

/* ===== RESPONSIVE (kleinere Bildschirme) ===== */
@media (max-width: 480px) {
    .hamburger {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 36px;
    }
    .hamburger .line {
        height: 3.5px;
    }
    .dropdown-menu {
        top: 70px;
        right: 15px;
        min-width: 180px;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
}
 /* ===== DROPDOWN MENÜ ENDE ===== */

.section { 
    margin: 4rem 0; 
    padding: 3rem; 

    /* Glas-Look */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-radius: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.4);

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary);
}


.section h2 {
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;              /* ← **WICHTIG**: Abstand NACH dem h2 bis zum nächsten Element (z. B. ul) */
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-yellow));
}

.section .ul-group { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    gap: 2rem; 
}

.section .ul-group ul { 
    flex: 1 1 30%; 
    background: var(--background); 
    padding: 1rem 1.5rem; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 3px solid var(--primary);
}

.section .ul-group ul li strong {
    color: var(--text-gray);
}

.gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 1.5rem; 
    margin-top: 2rem; 
}

.gallery img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    
    transition: transform 0.4s ease; 
}

/* Vorher-Nachher-Galerie: Eltern braucht eine Höhe / Aspect-Ratio */
.gallery-item {
    position: relative;
    width: 100%;
    overflow: hidden;

    aspect-ratio: 16 / 9;
    min-height: 260px;
   
    transition: all 0.3s ease;
}

.gallery-item:hover {
     transform: scale(1.5); 
     z-index: 999; /* kommt in den absoluten Vordergrund */
}

/* Die beiden überlagerten Bilder */
.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 3s ease-in-out;
    display: block;
}

.gallery-item .before-image { 
    opacity: 1; 
    z-index: 2; 
}

.gallery-item .after-image { 
    opacity: 0; 
    z-index: 1; 
}

.cta { 
    display: inline-block; 
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
    color: white; 
    padding: 1rem 2.5rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    margin-top: 1.5rem; 
    box-shadow: 0 8px 20px rgba(94, 158, 59, 0.4);
    transition: all 0.3s ease; 
}

.cta:hover { 
    background: linear-gradient(135deg, #4d8230 0%, #152566 100%);
    transform: translateY(-3px); 
    box-shadow: 0 12px 30px rgba(94, 158, 59, 0.5);
}

blockquote {
    margin: 1.5rem 0; 
    padding: 1.5rem; 
    background: var(--background); 
    border-left: 5px solid var(--accent-red);
    border-radius: 8px;
}

blockquote strong {
    color: var(--primary);
}

footer { 
    text-align: center; 
    padding: 3rem; 
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
    margin-top: 4rem; 
    color: white;
}

footer a {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

footer .separator {
    color: var(--light-gray);
    margin: 0 0.5rem;
}

.slider2 {
    position: relative;
    width: 100%;
    height: calc(175px + 200px); /* Bildhöhe + Abstand für Rotation */
    perspective: 1600px;
    overflow: hidden;
}

.image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    animation: rotate-cylinder 120s linear infinite;
}

.image-container img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 35px; 
    position: absolute;
    left: -75px;
    top: -75px;
    transform-origin: center center;
    transition: opacity 0.4s ease;
    image-rendering: -webkit-optimize-contrast; /* schärfere Bilder */
}

@keyframes rotate-cylinder {
    from { transform: translate(-50%, -50%) rotateY(0deg); }
    to   { transform: translate(-50%, -50%) rotateY(-360deg); }
}

.brillux {
    position: fixed;
    right: 0;
    top: 20vh;
    width: auto;
    max-width: 160px;
    padding: 8px 12px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.brillux.visible {
    opacity: 1;
    visibility: visible;
}

/* Input & Textarea Styling */
input, textarea {
    width: 100%; 
    padding: 1rem; 
    margin: 0.5rem 0; 
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .brillux {
        display: none;
    }
    
    .section .ul-group {
        flex-direction: column;
    }
    
    .section .ul-group ul {
        flex: 1 1 100%;
    }
    
   header {
    height: auto;           /* auch auf Desktop flexibel machen */
    min-height: 220px;      /* Mindesthöhe behalten */
    padding: 2rem 0;        /* mehr Luft */
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-banner {
    height: auto;
    max-height: 180px;      /* oder was zu deinem Logo passt */
    width: auto;
    max-width: 90%;
}

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

}

/* Checkbox *//* Checkbox *//* Checkbox */

.privacy-check-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 1rem 0;
}

.privacy-check-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Checkbox  ENDE */


/* Saubere Gruppe für mehrere Checkboxen */
.checkbox-group {
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Einzelne Checkbox */
.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 0.25rem; /* Align Checkbox mit erstem Textzeile */
    width: 18px;
    height: 18px;
}

/* Mobile Optimierung */
@media (max-width: 600px) {

    /* Neue Checkboxen */
    .checkbox-item {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Alte DSGVO Checkbox (falls irgendwo noch genutzt) */
    .privacy-check-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .privacy-check-label input[type="checkbox"] {
        margin-top: 0;
    }
}
