
        /* --- FONTS & BASICS --- */
		@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;600&family=Momo+Signature&display=swap');
		
        :root {
            --bg-cream: #F4EFEA;
            --primary-red: #A9332A;
            --text-dark: #2B2521;
            --text-muted: #6E655F;
            --white: #FFFFFF;
            --font-hand: 'Caveat', cursive;
            --font-serif: 'Instrument Serif', Georgia, serif;
            --font-body: 'Inter', sans-serif;
            --font-nav: 'Inter', sans-serif;
            --polaroid-shadow: 0 10px 25px rgba(43,37,33,0.08);
			--header-height: 65px;
            --header-height-mobile: 60px;
			--road-offset: 120px;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        
        html { 
            scroll-behavior: smooth; 
            scroll-padding-top: 20px; 
        }
        
        body {
            font-family: var(--font-body);
            background-color: var(--bg-cream);
            color: var(--text-dark);
            line-height: 1.6;
            overflow-x: hidden;
            width: 100%;
        }

        .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
        section { padding: 40px 0; position: relative; overflow-x: hidden; }

        /* --- GESCHWUNGENE TRENNLINIE (SVG) --- */
        .section-divider {
            width: 100%;
            height: 50px;
            display: block;
            margin: 0;
            position: relative;
            z-index: 5;
        }

        .btn-round {
            display: inline-block;
            background-color: var(--primary-red);
            color: var(--white);
            padding: 12px 32px;
            border-radius: 50px;
            font-family: var(--font-nav);
            font-weight: 600;
            font-size: 0.9rem;
            text-decoration: none;
            box-shadow: 0 4px 14px rgba(169, 51, 42, 0.25);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .btn-round:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(169, 51, 42, 0.35);
        }

        .script-badge { font-family: var(--font-hand); color: var(--primary-red); font-size: 2rem; margin-bottom: 5px; text-align: center; display: block; }
        .section-title { font-family: var(--font-serif); font-size: 3.2rem; text-align: center; font-weight: 400; line-height: 1.1; }
        .section-subtitle { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-top: 5px; margin-bottom: 40px; }

        .btn-arrow {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--text-dark);
            font-family: var(--font-nav);
            font-size: 0.8rem;
            font-weight: 600;
            text-decoration: none;
            margin-top: 10px;
            transition: color 0.3s;
        }
        .btn-arrow:hover { color: var(--primary-red); }
		
		
		/* --- DYNAMISCHES LOGO-HERZ --- */
.brand-heart {
    display: inline-block !important;
    color: var(--primary-red) !important;
    
    /* Der Abstand nach rechts passt sich jetzt der Schriftgröße an (ca. 12% der Schriftgröße) */
    margin-right: 0.12em !important; 
    
    /* translateY(-0.3em) schiebt das Herz proportional um 30% der aktuellen Schriftgröße nach oben.
       Zusammen mit der Drehung bleibt es perfekt ausbalanciert. */
    transform: rotate(-5deg) translateY(-0.38em) !important; 
    
    /* Sorgt dafür, dass die Verschiebung keine künstliche Zeilenhöhe erzeugt */
    line-height: 0 !important; 
}

        /* --- DOODLES --- */
/* --- DOODLES (DESKTOP: FOLGEN DEM CONTAINER) --- */
        .doodle { 
            position: absolute; 
            font-family: var(--font-hand); 
            color: rgba(169, 51, 42, 0.2); 
            user-select: none; 
            pointer-events: none;
            z-index: 1; /* Sorgt dafür, dass sie über Hintergründen liegen */
        }
        .doodle-tree { font-size: 3.5rem; }
        .doodle-mountain { font-size: 4rem; }
        .doodle-heart { font-size: 2.5rem; color: rgba(169, 51, 42, 0.3); }
        .doodle-flower { font-size: 2rem; }
		.doodle img {
    width: 100%;
    height: auto;
    display: block;
}

        /* --- NAVIGATION & SIDEBAR (Desktop-First Justierung) --- */
 /* --- HEADER & BASE NAVIGATION (DESKTOP) --- */
/* --- HEADER & BASE NAVIGATION (DESKTOP) --- */
        header {
            position: fixed;
            top: 0; left: 0; width: 100%;
            height: var(--header-height);
            z-index: 100;
            
            /* Am Anfang komplett transparent (kein Schatten, kein weiß) */
            background: rgba(255, 255, 255, 0);
            backdrop-filter: blur(0px);
            box-shadow: 0 2px 10px rgba(0,0,0,0);
            
            /* DIE MAGIE: Wir verknüpfen eine Animation mit dem Scrollbalken */
            animation: navScroll linear both;
            animation-timeline: scroll();
            animation-range: 0px 150px; /* Der Effekt startet bei 0px und ist bei 150px Scrolltiefe voll aktiv */
        }

        /* Der Container sorgt für die perfekte Zentrierung synchron zum Rest der Seite */
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
        }

/* --- LOGO BRANDING IN DER NAVIGATION --- */
.logo {
    font-family: 'Momo Signature', cursive, sans-serif;
    font-size: 1.5rem;          /* Angemessene Größe für die Navigationsleiste */
    font-weight: 400;
    color: var(--text-dark);    /* Das "pe 50" wird standardmäßig schwarz */
    text-decoration: none;      /* Entfernt eine eventuelle Unterstreichung */
    letter-spacing: -1.2px;     /* Proportional gestaucht für die kleinere Schriftgröße */
    display: inline-block;
    line-height: 1;             /* Verhindert, dass das Logo den Header vertikal verzerrt */
/* NEU: Am Anfang komplett unsichtbar */
    opacity: 0;
    transform: translateY(-10px); /* Kleiner Bonus: Es schwebt beim Scrollen dezent von oben ein */
    
    /* DIE MAGIE: Synchronisation mit dem Scrollbalken */
    animation: logoScroll linear both;
    animation-timeline: scroll();
    animation-range: 50px 200px; /* Startet bei 50px Scrolltiefe und ist bei 200px voll da */
}

/* Färbt das "maria" im Logo rot ein */
.logo .brand-red {
    color: var(--primary-red);
}

/* Diese Animation blendet das Logo beim Scrollen ein */
@keyframes logoScroll {
    to {
        opacity: 1;
        transform: translateY(0); /* Bewegt sich auf seine finale Position */
    }
}

        /* Die Menü-Liste nebeneinander auf Desktop */
        .nav-menu {
            display: flex;
            gap: 25px;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .nav-menu a {
            text-decoration: none;
            color: var(--text-dark);
            font-size: 0.95rem;
            font-weight: 500;
            transition: color 0.2s;
        }
        .nav-menu a:hover { color: var(--primary-red); }
		
		/* Diese Animation steuert den Übergang beim Scrollen */
        @keyframes navScroll {
            to {
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(5px);
                box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            }
        }

/* Hamburger-Button auf Desktop unsichtbar */
        .menu-btn {
            display: none;
            font-size: 2rem;
            cursor: pointer;
            color: var(--text-dark);
			
        cursor: pointer;
        background: none;
        border: none;
        text-decoration: none !important; 
        }		
        
        /* NEU: Auch der Schließen-Button wird auf dem Desktop komplett versteckt */
        .close-btn {
            display: none;
        }
		
        #sidebar-toggle { display: none; }
        .sidebar-overlay { display: none; }

/* --- HERO SECTION WITH SCENERY (ULTRAWIDE PROTECTION) --- */
        #hero { 
            padding-top: 110px;   
            padding-bottom: 170px; 
            position: relative;
            background-color: #f4efea; /* Die beige Grundfarbe füllt den Raum bei Riesen-Monitoren links/rechts auf */
            overflow: hidden;
        }
        
        /* Das eigentliche Hintergrundbild – geschützt vor extremen Breiten */
        #hero::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%); /* Zentriert die Kulisse exakt in der Bildschirmmitte */
            width: 100%;
            max-width: 1400px; /* Ab hier wächst das Hintergrundbild nicht mehr weiter! */
            background-image: url('../img/hero-bg.png');
            background-size: cover;
            background-position: center bottom;
            background-repeat: no-repeat;
            z-index: 1;
        }
        
        /* Die Text-Abdunklung wird auf das Hintergrundbild angepasst */
        #hero::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to right, rgba(244, 239, 234, 0.9) 30%, rgba(244, 239, 234, 0.1) 100%);
            z-index: 2; /* Liegt über dem Hintergrundbild, aber unter dem Text */
        }

        /* Der Container hält den Inhalt (Text & Ape) im selben 1400px-Korsett */
        .hero-grid { 
            display: grid; 
            grid-template-columns: 1.1fr 1fr; 
            gap: 40px; 
            align-items: center; 
            position: relative;
            z-index: 3; /* Liegt ganz oben über allen Effekten */
            max-width: 1400px;
            margin: 0 auto;
        }
        
.hero-content {
            margin-top: 0px; 
            margin-left: 15%;
        }
        
        /* Der gestauchte, kleinere und eingedrehte Titel */
        .hero-content .hero-title { 
		margin-left:-50px;
            font-family: 'Momo Signature', cursive, sans-serif;
            font-size: 6rem;           /* Etwas kleiner als vorher */
            line-height: 0.8; 
            font-weight: 400; 
            margin-bottom: 50px;
            color: var(--text-dark);     /* "ape50" wird standardmäßig schwarz */
            letter-spacing: -3px;        /* Staucht die Schriftbreite enger zusammen */
            /*transform: rotate(-1deg); */ /* Dreht das gesamte Element leicht ein */
            display: inline-block;
        }

        /* Färbt das "maria" im gewünschten Rot ein */
        .hero-content .hero-title .brand-red {
            color: var(--primary-red);
        }

/* KORREKTUR: Der Slogan erbt alles von .section-title, wird hier aber für den Hero feinjustiert */
        .hero-content .hero-slogan {
		
			font-family: var(--font-hand); 
            text-align: left !important; /* Linksbündig statt zentriert */
            color: var(--text-dark) !important; /* Knallhart Schwarz */
            font-size: 2.6rem !important; /* Schöne, feine Größe für den Hero-Bereich */
            margin-top: 5px !important;
            margin-bottom: 20px !important;
            padding: 0 !important; /* Löscht mobile Paddings im Hero */
        }
        
        .hero-content p { 
            font-size: 1rem; 
            color: var(--text-dark); 
            font-weight: 600; 
            max-width: 440px; 
            margin-bottom: 25px; 
            line-height: 1.5;
        }
        
        /* Die Bühne für die Ape */
        .hero-image-wrapper { 
            position: relative; 
            height: 380px; 
            width: 100%;
        }

        .hero-ape {
            position: absolute;
            /* Da die Box (.hero-image-wrapper) jetzt fest im zentrierten 1400px-Raster sitzt,
               bleibt die Ape auf den Pixel genau synchron über der Straße stehen – egal wie breit der Monitor ist! */
            bottom: -110px; 
            left: -30%;     
            width: 100%;  
            height: auto;
            z-index: 4;
            filter: saturate(0.95) sepia(0.25) contrast(0.95) drop-shadow(8px 15px 10px rgba(0, 0, 0, 0.3));
            animation: driveInFromDistance 1.8s ease-out forwards;
        }

/* --- DIE ANIMATION: Startet jetzt auf der Straße rechts hinten --- */
        @keyframes driveInFromDistance {
            0% {
                /* Start: Weit hinten (scale 0.15), nach RECHTS (300px) und nach OBEN (-180px) verschoben */
                transform: scale(0.15) translate(800px, -300px);
                opacity: 0;
            }
            20% {
                /* Die Ape wird schnell sichtbar, während sie losfährt */
                opacity: 1;
            }
            100% {
                /* Ziel: Sie kommt genau auf ihrer definierten Endposition (0, 0) an */
                transform: scale(1) translate(0, 0);
                opacity: 1;
            }
        }

        /* --- VORSTELLUNG --- */
        #vorstellung { background-color: #EDE7E0; padding: 60px 0; position: relative; }
        .intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
        
.polaroid {
            background: var(--white);
            padding: 14px 14px 28px 14px; /* Leicht reduziertes Padding, damit der Rahmen zum kleineren Bild passt */
            box-shadow: var(--polaroid-shadow);
            transform: rotate(-1.5deg);
            /* --- PROPORTIONALE VERKLEINERUNG --- */
            max-width: 380px; /* Vorher 480px */
            width: 100%;
            margin: 0 auto;
            border-radius: 8px;
            box-sizing: border-box;
			z-index:2;
        }
        
.polaroid-img { 
            width: 100%; 
            /* Entferne oder kommentiere die feste Höhe aus, damit das echte Bild nicht verzerrt wird: */
            /* height: 300px; */ 
            margin-bottom: 12px; 
            border-radius: 4px; 
            overflow: hidden; /* Schneidet überstehende Ecken des Bildes an den Rundungen sauber ab */
        }

        /* NEU: Macht das eigentliche Bild innerhalb des Polaroids dynamisch */
        .polaroid-img img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Sorgt dafür, dass das Bild den Bereich perfekt ausfüllt ohne zu verzerren */
            display: block;    /* Verhindert einen kleinen, ungewollten weißen Spalt unter dem Bild */
        }
        .polaroid p { font-family: var(--font-hand); font-size: 1.6rem; text-align: center; color: var(--text-dark); }

        .profile-text h3, .ape-specs h3 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 400; margin-bottom: 15px; }
        .profile-text p { color: var(--text-muted); font-size: 0.95rem; }

        .ape-visual { position: relative; }
        .ape-sketch-placeholder { width: 100%; height: 240px; background: rgba(0,0,0,0.02); border: 1px dashed var(--text-muted); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
        .spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; list-style: none; }
        .spec-list li { border-bottom: 1px solid rgba(43,37,33,0.1); padding-bottom: 6px; font-size: 0.85rem; }
        .spec-list strong { display: block; font-family: var(--font-hand); color: var(--primary-red); font-size: 1.2rem; }

/* --- TIMELINE (STRASSEN-DESIGN ALS ECHTE STRASSE) --- */
/* --- DER DOODLE-RAUM FÜR DIE STRASSE --- */
/* --- TIMELINE STRASSEN-DESIGN --- */
        .road-container { 
            position: relative; 
            max-width: 800px; 
            margin: 0 auto; 
            padding: 20px 0; 
            
            /* NEU: Aktiviert Grid. Dadurch ignorieren die Karten die Doodles 
               und die Doodles zerschießen das Layout nicht mehr! */
            display: grid;
            grid-template-columns: 1fr;
			/*row-gap: -40px;*/
			padding-top:var(--road-offset);
        }
        
        /* Der Asphalt-Körper und die weißen Außenlinien */
        .road-container::before {
            content: '';
            position: absolute;
            top: 0; bottom: 0; left: 50%;
            width: 60px;
            transform: translateX(-50%);
            
            /* NEU: Das Grau der alten Außenlinien wird jetzt als Asphalt-Hintergrund genutzt */
            background-color: rgba(43, 37, 33, 0.15); 
            
            /* NEU: Die Außenlinien werden komplett durchgezogen und weiß (wie die Container) */
            border-left: 2px solid var(--white);
            border-right: 2px solid var(--white);
            box-sizing: border-box; /* Sorgt dafür, dass die 60px Gesamtbreite exakt erhalten bleiben */
        }
        
        /* Die weiße Mittellinie (Leitlinie) */
        .road-container::after {
            content: '';
            position: absolute;
            top: 0; bottom: 0; left: 50%;
            width: 2px;
            transform: translateX(-50%);
            
            /* ÄNDERUNG: Die Farbe im Linien-Verlauf wurde von Rot auf Weiß geändert */
            background-image: linear-gradient(
                to bottom, 
                var(--white) 0px,
                var(--white) 15px,
                transparent 15px,
                transparent 45px
            );
            background-size: 100% 45px; 
            opacity: 0.8; /* Etwas deckender, damit das Weiß auf dem hellgrauen Asphalt gut sichtbar ist */
        }
		
/* --- DIE KARTEN-UMMANTELUNG --- */
        .road-card-wrapper { 
            display: flex; 
            width: 43%; /* GEÄNDERT: Nimmt nicht mehr die volle Breite ein, blockiert also nichts auf der anderen Seite! */
            position: relative; 
            z-index: 5; /* Standard-Ebene erhöht */
            box-sizing: border-box;
        }

		/*
        .road-card-wrapper.left { justify-content: flex-start; }
        .road-card-wrapper.right { justify-content: flex-end; }
        .road-card-wrapper.left .road-card { transform: rotate(-1deg); }
        .road-card-wrapper.right .road-card { transform: rotate(1deg); }*/

		
/* --- AUTOMATISCHE LINKS/RECHTS-AUSRICHTUNG --- */
        
        /* 1. Ungerade Elemente (1, 3, 5, ...) rutschen im Grid nach RECHTS */
        .road-card-wrapper:nth-child(odd) { 
            justify-self: end; /* Richtet den ganzen Wrapper rechts im Grid aus */
            justify-content: flex-end; 
        }
        .road-card-wrapper:nth-child(odd) .road-card { 
            transform: rotate(1deg); 
        }

        /* 2. Gerade Elemente (2, 4, 6, ...) rutschen im Grid nach LINKS */
        .road-card-wrapper:nth-child(even) { 
            justify-self: start; /* Richtet den ganzen Wrapper links im Grid aus */
            justify-content: flex-start; 
        }
        .road-card-wrapper:nth-child(even) .road-card { 
            transform: rotate(-1deg); 
        }

        /* --- TRICK FÜR DEN VERSATZ (Nur auf Desktop) --- */
        /* Ab dem zweiten Element rückt jedes nachfolgende Element ein Stück nach oben */
		
        .road-card-wrapper:nth-child(n+2) {
            margin-top: calc(var(--road-offset) * -1); /* Schiebt die Boxen vertikal ineinander */
        }


		
		/* --- DIE EINZELNE KARTE --- */
        .road-card { 
            width: 100%; 
            padding: 16px; 
            background: var(--white); 
            box-shadow: var(--polaroid-shadow); 
            border-radius: 8px; 
            
            /* NEU: Macht die Karte bereit für die z-index-Ebene */
            position: relative; 
            /* Startwert, damit die Karte über dem Standard-Hintergrund liegt */
            z-index: 5; 
            
        }

        
        .road-card h4 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; margin-bottom: 6px; }
        .road-card p { font-size: 0.85rem; color: var(--text-muted); }


		
		.road-card img {
            width: 100%;
            height: auto;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            display: block;
          border-radius: 6px 6px 0 0; 
		   margin-bottom: 12px;

            /* NEU: Aktiviert den dezenten Vintage-Sepia-Look (25%) */
            /*filter: sepia(25%);*/

        }
		
		/* Zwingt den Link um das Bild, sich exakt wie der Bild-Container zu verhalten */
        .card-img a {
            display: block;
            width: 100%;
            height: 100%;
            cursor: pointer; /* Zeigt die Klick-Hand auch auf dem Bild an */
        }

.road-marker {
            position: absolute; 
            top: 25px; 
            width: 38px; 
            height: 38px; 
            background: var(--text-dark); 
            color: var(--white);
            border-radius: 50%; 
            display: flex; 
            align-items: center; 
            justify-content: center;
            font-family: var(--font-serif); 
            font-size: 1.1rem; 
            z-index: 12; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);

            /* NEU: Wir zentrieren die Kugel zuerst virtuell über ihrer eigenen Achse */
            transform: translateX(-50%);
        }
        
        /* --- DIE PERFEKTE MITTEN-BERECHNUNG --- */

/* --- DIE PERFEKTE MITTEN-BERECHNUNG --- */

        /* 1. Für UNGERADE Elemente (Karten stehen RECHTS):
              Die Kugel startet an der linken Kante (0) und wandert nach links (-16.3%) */
        .road-card-wrapper:nth-child(odd) .road-marker {
            left: -16.3%; 
        }

        /* 2. Für GERADE Elemente (Karten stehen LINKS):
              Die Kugel startet an der linken Kante (0), läuft einmal komplett über die 
              Karte drüber (100%) und wandert dann noch das Stück auf die Straße (+16.3%) */
        .road-card-wrapper:nth-child(even) .road-marker {
            left: 116.3%; 
        }
		
/* --- DIESEN BLOCK ANPASSEN / ERGÄNZEN --- */
        .btn-arrow {
            color: var(--text-dark) !important;
            text-decoration: none !important;
            font-family: var(--font-body) !important;
            font-weight: 600 !important;
            font-size: 0.95rem !important;
            transition: color 0.2s !important;
            
            /* GEÄNDERT: Von inline-block zu flex. 
               Das zwingt den Text und den Pfeil auf eine perfekte Linie */
            display: inline-flex !important;
            align-items: center !important;
            gap: 6px; /* Gibt einen schönen, festen Abstand zum Pfeil */
            margin-top: 0 !important; /* Wichtig, da margin-top jetzt vom Footer übernommen wird */
        }

        .road-card-footer {
            display: flex !important;
            justify-content: space-between !important;
            
            /* Zwingt den gesamten Button und das Datum auf dieselbe Höhe */
            align-items: center !important; 
            
            margin-top: auto !important; 
            padding-top: 15px !important;
            width: 100% !important;
        }

        .road-card-date {
            font-family: var(--font-body) !important;
            font-size: 0.85rem !important;
            color: var(--text-muted) !important;
            font-weight: 500 !important;
            white-space: nowrap !important;
            
            /* Macht das Datum im Flex-Layout ebenfalls flexibel ausrichtbar */
            display: inline-block !important;
            line-height: 1 !important; 
        }

/* --- SCHNAPPSCHÜSSE (ZENTRIERT AUF ULTRA-WIDE) --- */

/* --- SCHNAPPSCHÜSSE / SCROLLER BILDER FIX --- */

        #schnappschuesse { 
            background-color: #EDE7E0; 
            padding: 50px 0 60px 0; 
            overflow: hidden; 
        }

.gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

        /* NEU: Ein zentrierter Container für den Scroller, passend zum restlichen Design */
        .scroller-wrapper { 
            overflow-x: auto; 
            padding: 20px 20px 30px 20px; 
            display: flex; 
            gap: 30px; 
            scroll-snap-type: x mandatory; 
            
            /* DIESE ZEILEN FIXEN DAS PROBLEM BEI GROSSEN AUFLÖSUNGEN: */
            max-width: 1200px;        /* Genau dieselbe Breite wie dein Hauptcontainer */
            margin: 0 88px;           /* Zentriert die gesamte Bilderleiste auf dem Bildschirm */
            box-sizing: border-box;
        }
		
		.scroller-wrapper {
    scroll-padding-left: 15px;
    scroll-padding-right: 15px;
}
				
		@media (max-width: 968px) {
			.scroller-wrapper {
			 margin: 0 20px;
			}
		}
        
        /* Versteckt die Scrollbar NUR in der mobilen Ansicht (unter 968px) */
       /* @media (max-width: 968px) {*/
            .scroller-wrapper { 
                -ms-overflow-style: none; 
                scrollbar-width: none; 
                padding-left: 20px; /* Kleiner Kniff: Mobil etwas weniger Rand, damit es schick aussieht */
                padding-right: 20px;
            }
            .scroller-wrapper::-webkit-scrollbar { display: none; }
        /*}*/


        .scroll-item {
            flex: 0 0 280px; 
            scroll-snap-align: start;
            padding: 12px 12px 24px 12px; 
            background: var(--white); 
            box-shadow: var(--polaroid-shadow);
            transform: rotate(calc(var(--rotation, 0) * 1deg)); 
            text-decoration: none; 
            color: inherit; 
            display: block;
            transition: transform 0.2s; 
            border-radius: 6px;
        }
        .scroll-item:hover { transform: scale(1.03) rotate(0deg); z-index: 10; }
        .scroll-item .img-box { width: 100%; height: auto !important; background: #e5dec9; margin-bottom: 20px; border-radius: 4px; }
        .scroll-item span { font-family: var(--font-hand); font-size: 1.3rem; display: block; text-align: center; }		
		
        /* FIX: Zwingt den Link oder das Bild im Item in das 4:3 Format */
        .scroll-item img,
        .scroll-item a img {
            width: 100% !important;
            height: auto !important;
            
            /* Das magische 4:3 Seitenverhältnis */
            aspect-ratio: 4 / 3 !important; 
            
            /* Schneidet das Bild perfekt zu, damit es nicht verzerrt */
            object-fit: cover !important; 
            
            border-radius: 2px;
            display: block;vertical-align: middle !important;
        }

        /* --- RESPONSIVE OVERLAYS --- */
        .overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(43,37,33,0.85); backdrop-filter: blur(4px);
            z-index: 2000; display: flex; align-items: center; justify-content: center;
            opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 16px;
        }
        .overlay:target { opacity: 1; pointer-events: auto; }
        
        .overlay-content {
            background: var(--bg-cream); padding: 35px; max-width: 800px; width: 100%;
            max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 15px 40px rgba(0,0,0,0.3);
            border-radius: 12px;
        }
		
		.overlay-content .script-badge {
			text-align:left;
		}
		
		.overlay-content img {
    max-width: 100%;
    height: auto;
    display: block;
	margin:1vh 0;
}

	.overlay-content p {
	margin:1.5vh 0;
}
        
        .overlay-lightbox { max-width: 90vh; padding: 12px 12px 40px 12px; background: var(--white); text-align: center; }
			
        .overlay-lightbox .lightbox-img { width: 100%; height: auto; max-height: 65vh; background: #ccc; object-fit: contain; border-radius: 4px; }
		
		.close-overlay {
    position: absolute;
	margin-top:10px;
    top: 0;
    right: 20px;
    width: 52px;
    height: 42px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 2rem;
    line-height: 1;
    z-index: 20;
		}

.close-overlay:hover {

    color: var(--primary-red);
	}		
		

		.close-overlay-lightbox {
    position: absolute;
	margin-top:10px;
    top: 0;
    right: 20px;

    width: 52px;
    height: 42px;

    background: #fff;
    color: var(--text-dark);

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    font-size: 2rem;
    line-height: 1;

    z-index: 20;

    border-radius: 0 0 12px 12px;

		
	box-shadow:
    0 8px 12px -6px rgba(0,0,0,.20);

    transition:
        transform .15s ease,
        background .15s ease;
}

.close-overlay-lightbox:hover {
    transform: translateY(2px);
}

.close-overlay-light i {
    font-size: 1.1rem;
    line-height: 1;
}
		
		.overlay-content h3 { font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 15px; }

        .overlay-form { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
        .overlay-form input, .overlay-form textarea { padding: 10px; border: 1px solid var(--text-muted); background: var(--white); font-family: inherit; border-radius: 4px; }
		
		.gallery-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.scroller-nav {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    pointer-events: none;
    z-index: 20;
}

.scroller-btn {
    pointer-events: auto;
	margin:25px;
    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;
background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(3px);

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0,0,0,.12);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.scroller-btn:hover {
    background: var(--primary-red);
    color: var(--white);	
    transform: scale(1.05);
}


@media (max-width: 968px) {
	.scroller-nav { display: none; }
}
		
		
		

        /* --- FOOTER --- */
        footer { background-color: var(--text-dark); color: #F4EFEA; padding: 45px 0 25px 0; font-size: 0.85rem; }
        .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; }
        .footer-left h3 { font-family: var(--font-serif); font-size: 2rem; font-style: italic; margin-bottom: 5px; }
        .footer-right { text-align: right; }
        .footer-nav { display: flex; gap: 15px; justify-content: flex-end; list-style: none; margin-bottom: 10px; flex-wrap: wrap; font-family: var(--font-nav); }
        .footer-nav a { color: #F4EFEA; text-decoration: none; }
        .footer-nav a:hover { color: var(--primary-red); }
        .social-icons a { color: #F4EFEA; font-size: 1.2rem; text-decoration: none; margin-left: 12px; }
        .copyright { text-align: center; margin-top: 20px; opacity: 0.6; font-size: 0.75rem; }
		
/* --- LOGO BRANDING IN DER NAVIGATION --- */
 footer .logo {
	 
    font-family: 'Momo Signature', cursive, sans-serif;
    font-size: 1.5rem;          /* Angemessene Größe für die Navigationsleiste */
    font-weight: 400;
    color: #F4EFEA;
    text-decoration: none;      /* Entfernt eine eventuelle Unterstreichung */
    letter-spacing: -1.2px;     /* Proportional gestaucht für die kleinere Schriftgröße */
    display: inline-block;
    line-height: 1;             /* Verhindert, dass das Logo den Header vertikal verzerrt */
}

/* Färbt das "maria" im Logo rot ein */
 footer .logo .brand-red {
    color: var(--primary-red);
}


/* Diese Animation blendet das Logo beim Scrollen ein */
@keyframes logoScroll {
    to {
        opacity: 1;
        transform: translateY(0); /* Bewegt sich auf seine finale Position */
    }
}
		


/* --- GLOBALER SLIDER CODE (Absolut krisensicher für alle Tablets & Handys) --- */
.ape-slider-wrapper {
    position: relative;
    width: 100%;
    
    /* GEÄNDERT: Keine starre Höhe mehr, sondern ein flexibler Bereich.
       Auf Desktop nimmt er 340px ein, auf flachen Tablets schrumpft er 
       automatisch auf maximal 35% der Bildschirmhöhe! */
    height: 340px;
    max-height: 35vh; 
    
    overflow: hidden;
    border-radius: 8px;
}

.ape-slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.ape-slider::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%; 
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; 
	
    scroll-margin-top: 125px !important;
}

.slide-content {
    width: 100%;
    /* GEÄNDERT: inherit zwingt das Element, exakt die (durch max-height begrenzte) 
       Höhe des Hauptcontainers zu übernehmen */
    height: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; 
    box-sizing: border-box;
}

.slide-content img {
    /* ERGÄNZT & ABSOLUT FIXIERT: 
       Egal was die Eltern-Boxen sagen: Das Bild darf NIEMALS breiter als 100% 
       der Karte und NIEMALS höher als die maximal erlaubten 35% des Bildschirms werden! */
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain; 
    border-radius: 4px;
}

.slider-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    pointer-events: none; 
}

.slider-nav a {
    pointer-events: auto; 
    /*background: rgba(244, 239, 234, 0.85);
    backdrop-filter: blur(2px);*/
	background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(3px);
    color: var(--text-dark);
    text-decoration: none;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.slider-nav a:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: scale(1.05);
}




/* --- RESPONSIVE & MOBILE HEADER FIXED --- */
@media (max-width: 968px) {
    html { 
        scroll-padding-top: calc(var(--header-height-mobile) + 15px); 
    }

    header { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        background: rgba(244, 239, 234, 0.92); 
        backdrop-filter: blur(6px); 
        -webkit-backdrop-filter: blur(6px);
        border-bottom: 1px solid rgba(43, 37, 33, 0.1); 
        height: var(--header-height-mobile);
        display: flex;
        align-items: center;
        z-index: 1000;
		/* NEU: Schaltet die Desktop-Scroll-Animation auf dem Handy ab */
        animation: none !important;
    }
	
	/* Mobil-Anpassung für alle großen Überschriften */
    .section-title {
        font-size: 2.2rem !important; /* Vorher 3.2rem -> Verhindert das Überlappen/Rausfliegen */
        padding: 0 16px;
        box-sizing: border-box;
    }
	
	/* --- DOODLES MOBIL DEZENTER DARSTELLEN --- */
    
    /* Falls deine Doodles eine Klasse wie ".doodle" haben: */
    .doodle, 
    [class*="doodle"], /* Erwischt vorsorglich alles, was "doodle" im Klassennamen hat */
    .road-card::before, .road-card::after { /* Falls du sie als CSS-Pseudoelemente nutzt */
        
        opacity: 0.35 !important; /* Macht die Doodles zu 65% transparent/blasser */
        
        /* Optional: Falls sie mobil auch etwas kleiner sein sollen, 
           damit sie auf den schmalen Handys nicht die Karte überladen: */
        transform: scale(0.8) !important; 
        
        transition: opacity 0.3s ease;
    }
    
    .hero-content h1 {
        font-size: 3.2rem !important; /* Vorher 5rem */
    }
	
	/* Mobil: Zwingt Logo nach links und Hamburger nach rechts */
    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        padding: 0 20px; /* Gibt links und rechts einen schönen kleinen Sicherheitsabstand zum Bildschirmrand */
        box-sizing: border-box;
    }

#hero { 
        padding-top: calc(var(--header-height-mobile) + 40px); 
        padding-bottom: 40px;
    }
    
    /* Mobil-Anpassung für das Hintergrundbild */
    #hero::after {
        max-width: 100% !important; /* Auf dem Handy darf es die volle Breite nutzen */
        background-position: 75% bottom !important; /* Verschiebung für die Straße */
    }
    
    #hero::before {
        background: rgba(244, 239, 234, 0.85) !important;
        z-index: 2;
    }
        
        .hero-content {
            margin:0px;
        }	
		/* NEU: Verringert die künstliche Höhe der Box auf Mobilgeräten */
    .hero-image-wrapper {
        height: 250px !important; /* Vorher 380px -> Spart sofort 180px unnötige Höhe */
        width: 100%;
        position: relative;
    }


		
/* KORREKTUR: Perfekte Zentrierung der Ape in der mobilen Ansicht */
    .hero-ape {
        position: absolute !important;
        bottom: 5% !important;    /* Hält die Reifen bündig auf der Straße */
        left: 50% !important;        /* Setzt die linke Kante exakt in die Mitte */
        right: auto !important;
        width: 100% !important;    
        max-width: 400px !important; /* Begrenzt die Ape mobil auf eine schöne, knackige Größe */
        margin: 0 !important;
        
        /* Überschreibt die Desktop-Animation mit einer für Mobilgeräte zentrierten Version */
        animation: driveInMobile 1.8s ease-out forwards !important;
    }

/* Neue Animation speziell für die mobile Zentrierung */
    @keyframes driveInMobile {
        0% {
            /* Startet leicht verkleinert, unsichtbar und weiter rechts hinten auf der Straße */
            transform: translateX(-30%) scale(0.3) translate(500px, -150px);
            opacity: 0;
        }
        20% {
            opacity: 1;
        }
        100% {
            /* Das 'translateX(-50%)' sorgt für die mathematisch perfekte Zentrierung im Ziel */
            transform: translateX(-50%) scale(1) translate(0, 0);
            opacity: 1;
        }
    }	

    .logo { font-size: 1.7rem; }

    .hero-grid, .intro-grid, .footer-grid { grid-template-columns: 1fr; text-align: center; }
	
	/* Mobil-Korrekturen für Titel und Slogan */
    .hero-content .hero-title {
	margin:0;  !important;
        font-size: 4rem !important;
        letter-spacing: -1.5px !important;
        margin-bottom: 35px !important;
        line-height: 0.9;
		display: block !important;
		text-align: center !important;
    }

    .hero-content .hero-slogan {
        font-size: 1.8rem !important; /* Mobil etwas kompakter, damit es nicht umbricht */
        margin-bottom: 15px !important;
		text-align: center !important;
    }
	
    .hero-content h1 { font-size: 3.8rem; }
    .hero-content p { max-width: 100%; margin-left: auto; margin-right: auto; }
	
    .hero-main-img { height: 320px; }
    .footer-right { text-align: center; }
    .footer-nav { justify-content: center; }
    
/* --- MOBILE NAVIGATION (INNERHALB DER MEDIA QUERY) --- */
    
    /* Hamburger- & Schließen-Button mobil aktivieren */
    .menu-btn {
        display: block; 
        z-index: 101; 
    }
    
    /* Aktiviert das × nur in der mobilen Sidebar */
    .close-btn {
        position: absolute;
        top: 0;
        right: 20px; /* Gleicher Abstand zum Rand wie das Hamburger-Menü */
        
        /* NEU: Erzwingt dieselbe Höhe und vertikale Zentrierung wie beim Hamburger-Menü */
        height: var(--header-height-mobile); 
        display: flex;
        align-items: center;
        font-size: 2.5rem; /* Schön groß zum Antippen */
        color: var(--text-dark);
        text-decoration: none;
        cursor: pointer;
    }

    /* Die mobile Sidebar-Box */
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -280px; 
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 90px;
        padding-left: 30px;
        box-sizing: border-box;
        transition: right 0.3s ease-in-out;
        z-index: 105; 
    }

    /* KORREKTUR: Zwingt die <li> Einträge untereinander und gibt ihnen Abstand */
    .nav-wrapper .nav-menu {
        flex-direction: column !important; /* Wechselt von nebeneinander zu untereinander */
        display: flex !important;
        gap: 25px; /* Abstand zwischen den Zeilen */
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-wrapper .nav-menu a {
        font-size: 1.2rem; /* Angenehme Klickgröße fürs Smartphone */
        display: block;
        text-decoration: none;
        color: var(--text-dark);
    }

    /* Wenn #menu das aktive Target ist, fliegt die Box rein */
    .nav-wrapper:target {
        right: 0;
    }

    /* Das Overlay-Verhalten bleibt gleich */
    .sidebar-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(0,0,0,0.3);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    #menu:target ~ .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

/* ==========================================================================
       TIMELINE MOBIL (Komplett aufgeräumt, strukturiert & fehlerfrei)
       ========================================================================== */
    
    /* 1. Grid-Container zurücksetzen */
    .road-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        padding-top: 20px !important; 
        position: relative;
    }

    /* 2. Das graue Straßenband mobil positionieren */
    .road-container::before { 
        left: 16px !important; 
        transform: none !important; 
    }
    
    /* 3. Die gestrichelte Mittellinie exakt bei 46px zentrieren */
    .road-container::after { 
        left: 46px !important; 
        transform: translateX(-50%) !important; 
    }

    /* 4. Die Karten-Wrapper (Symmetrischer Aufbau von links) */
    .road-card-wrapper { 
        width: 100% !important; 
        box-sizing: border-box; /* Zwingt den Browser, Paddings nach innen zu berechnen */
        display: flex !important;
        justify-content: flex-start !important; 
        justify-self: start !important;
        
        padding-left: 55px !important;  /* Genug Platz für die Straße und die Bubble links */
        padding-right: 16px !important; /* Genug Abstand zum rechten Bildschirmrand */
        margin-bottom: 35px !important; 
    }

    /* Setzt den negativen -120px Überlappungs-Effekt vom Desktop mobil zurück */
    .road-card-wrapper:nth-child(n+2) {
        margin-top: 0 !important; 
    }

    /* Die weiße Karte füllt den restlichen Platz linksbündig aus */
    .road-card { 
        width: 100% !important; 
        box-sizing: border-box;
    }

    /* 5. Die Bubbles (Sitzen mathematisch exakt auf der Mittellinie) */
    .road-card-wrapper:nth-child(odd) .road-marker,
    .road-card-wrapper:nth-child(even) .road-marker {
        left: 46px !important; 
        transform: translateX(-50%) !important; 
        top: 25px !important; 
    }

    /* 6. Horizontaler Scroller-Bereich */
    .scroller-wrapper { 
        padding: 15px 16px 30px 16px; 
        gap: 15px; 
    }
	
	.overlay-content img {
    max-width: 100%;
}

}

@media (max-width: 360px) {
    .hero-content .hero-title {
        font-size: 2.8rem !important;
    }
	.onlybigscreens {
			display:none;
	}
}
