/* ==========================================================================
   1. RETRO-MODERN VARIABLEN & EMOTIONALES FARBSCHEMA
   ========================================================================== */
:root {
    --bg-warm: #fcf9f2;         /* Sehr warmes, weiches Creme-Weiß */
    --primary-earth: #c97a53;   /* Ein mattes Terrakotta / Rostorange */
    --secondary-moss: #5f7468;  /* Ein gedecktes Salbei- / Moosgrün */
    --accent-mustard: #e3a857;  /* Ein warmes, mattes Senfgelb */
    --text-dark: #322c2a;       /* Tiefes Kaffeebraun für weichen Kontrast */
    --pure-white: #ffffff;
    
    /* Typische 70s Schriften: Serif für Überschriften, Clean für Text */
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==========================================================================
   2. GLOBALE RESETS & LAYOUT-BASIS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.6;
	display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 25px;
	flex: 1;
}

/* ==========================================================================
   3. HEADER & INTEGRIERTES HAMBURGER-MENÜ (UNIFIED DESKTOP & MOBILE)
   ========================================================================== */
.main-header {
    background-color: rgba(252, 249, 242, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 40px 40px; /* Abgerundeter Header-Abschluss analog zum Footer */
    box-shadow: 0 10px 30px rgba(50, 44, 42, 0.04); /* Zarter Schatten an der runden Kante */
    transition: all 0.3s ease;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Bildet die Verankerung für das absolute Ausklapp-Menü */
}

/* --- LOGO BEREICH (TEXT + BILD) --- */
.logo a {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 900;
    font-style: italic;
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 12px; /* Abstand zwischen logo.png und Text */
}

.logo span {
    color: var(--primary-earth);
}

.logo-img {
    height: 40px; /* Fixe Höhe passend zur Zeile */
    width: auto;
    object-fit: contain;
}

/* --- HAMBURGER STEUERUNG (Checkbox-Hack) --- */
.nav-toggle {
    display: none; /* Versteckt die eigentliche HTML-Checkbox */
}

/* Der runde Button rechts im Header */
.nav-toggle-label {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text-dark);
    padding: 8px 14px;
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    line-height: 1;
    transition: all 0.3s ease;
    user-select: none;
}

.nav-toggle-label:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

/* --- DAS AUSKLAPPBARE MENÜ --- */
.main-nav .nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 10px;
    padding: 20px;
    background-color: var(--pure-white);
    
    /* Absolute Positionierung: Schwebt direkt unter der runden Header-Kante */
    position: absolute;
    top: 75px;
    right: 0;
    width: 280px;
    
    /* Typische 70s Pillow-Form für das geöffnete Menü */
    border-radius: 30px 10px 30px 30px; 
    box-shadow: 0 15px 35px rgba(50, 44, 42, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);

    /* Startzustand: Unsichtbar und leicht nach oben versetzt */
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Elastischer Fly-In Effekt */
}

/* Links innerhalb des Menüs */
.main-nav .nav-menu a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 30px;
    transition: all 0.2s ease;
}

/* Hover- und Aktiv-Effekt der Links (Weiches Kissen-Design) */
.main-nav .nav-menu a:hover,
.main-nav .nav-menu a.active {
    background-color: var(--bg-warm);
    color: var(--primary-earth);
}

/* --- AKTIVIERUNGS-LOGIK (Wenn Hamburger gedrückt wird) --- */
.nav-toggle:checked ~ .nav-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Button wechselt die Farbe bei geöffnetem Zustand */
.nav-toggle:checked ~ .nav-toggle-label {
    background-color: var(--primary-earth);
    color: var(--pure-white);
}

/* ==========================================================================
   4. HERO SECTION WITH MORPHING BLOB
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 60px;
}

.hero-text {
    flex: 1.1;
}

.hero-text h2 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.hero-text h2 em {
    color: var(--primary-earth);
    font-style: italic;
}

.hero-text p {
    font-size: 1.15rem;
    color: rgba(50, 44, 42, 0.8);
    margin-bottom: 40px;
}

/* Organisch fließender Hintergrund hinter dem Moped */
.hero-image {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-mustard);
    padding: 40px;
    border-radius: 60% 40% 70% 30% / 40% 65% 35% 60%;
    animation: morphing 10s ease-in-out infinite alternate;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(5px 12px 20px rgba(0,0,0,0.12));
}

/* Sanfte Verformung des Hintergrund-Blobs */
@keyframes morphing {
    0% { border-radius: 60% 40% 70% 30% / 40% 65% 35% 60%; }
    100% { border-radius: 40% 60% 35% 65% / 60% 40% 60% 40%; }
}

/* Eleganter, geschwungener Call-to-Action Button */
.btn {
    display: inline-block;
    background-color: var(--primary-earth);
    color: var(--pure-white);
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(201, 122, 83, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-moss);
    box-shadow: 0 6px 20px rgba(95, 116, 104, 0.3);
    transform: translateY(-2px);
}

/* Trennlinie */
hr {
    border: 0;
    height: 1px;
    background-color: var(--primary-earth);
    opacity: 0.2;
    margin: 20px 0 60px 0;
}

/* ==========================================================================
   5. FEATURE CONTENT CARDS (PILLOW SHAPES)
   ========================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 0 100px 0;
}

.feature-card {
    background: var(--pure-white);
    padding: 40px;
    border-radius: 40px 15px 40px 15px; /* Asymmetrische Kissen-Rundung */
    box-shadow: 0 15px 35px rgba(50, 44, 42, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-radius: 15px 40px 15px 40px; /* Wechselt die Kurvenrichtung beim Hovern */
}

.feature-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--secondary-moss);
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--text-dark);
    color: var(--bg-warm);
    text-align: center;
    padding: 50px 0;
    font-size: 0.95rem;
    border-radius: 40px 40px 0 0; /* Abgerundeter, weicher Webseiten-Abschluss */
	width: 100%;
}

/* ==========================================================================
   7. MEDIA QUERIES (MOBILE OPTIMIERUNGEN)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Header & Menü */
    .main-nav .nav-menu {
        top: 70px;
        width: calc(100% - 10px);
        max-width: 300px;
    }

    /* 2. Hero Section */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 0;
        gap: 40px;
    }

    .hero-text h2 {
        font-size: 2.3rem;
    }

    .hero-image {
        width: 280px;
        height: 280px;
        margin: 0 auto;
        animation: none;
        border-radius: 50%;
    }

    /* 3. Container & Galerie */
    .container {
        padding: 0 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        margin: 0;
    }
}
/* ==========================================================================
   8. GALERIE-RASTER & KARTEN-STYLING (PILLOW-SHAPES)
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    background: var(--pure-white);
    text-decoration: none;
    color: var(--text-dark);
    
    /* Passt sich dem 70s-Look der Startseiten-Karten an */
    border-radius: 40px 15px 40px 15px;
    box-shadow: 0 12px 30px rgba(50, 44, 42, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-radius: 15px 40px 15px 40px; /* Verspielter Kurvenwechsel beim Hovern */
    box-shadow: 0 15px 35px rgba(50, 44, 42, 0.08);
}

/* Container für das Bild, damit es sauber beschnitten wird */
.gallery-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* Erzwingt ein einheitliches Querformat für alle Bilder */
    overflow: hidden;
    background-color: var(--bg-warm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Schneidet das Bild perfekt zu, ohne es zu verzerren */
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.05); /* Minimaler Zoom-Effekt beim Drüberfahren */
}

/* Beschreibungstext unter dem Bild */
.gallery-caption {
    padding: 25px;
}

.gallery-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--secondary-moss);
    margin-bottom: 8px;
}

.gallery-caption p {
    font-size: 0.95rem;
    color: rgba(50, 44, 42, 0.7);
    line-height: 1.4;
}

/* --- OVERWRITE LIGHTBOX FOR 70S STYLING --- */
#lightbox .lb-data .lb-caption {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.5;
}
#lightbox .lb-data .lb-number {
    color: var(--accent-mustard);
    font-weight: 600;
}
.lb-outerContainer {
    border-radius: 20px; /* Rundet auch das geöffnete Overlay-Fenster weich ab */
}

/* Pfeile der Lightbox auf Touchgeräten erzwingen */
.lb-nav a.lb-prev, .lb-nav a.lb-next {
    display: block !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
        .lb-nav a.lb-prev, .lb-nav a.lb-next {
            display: block !important;
            opacity: 1 !important;
            width: 30% !important; /* Größere Klickfläche */
            background-size: 20px !important;
        }
        /* Sicherstellen, dass das Overlay nicht den Touch blockiert */
        #lightboxOverlay { z-index: 9999; }
        #lightbox { z-index: 10000; }
    }
	
/* ==========================================================================
   9. Bubble-Content Blase
   ========================================================================== */
   
.bubble-content {
    background: var(--pure-white); /* Erzwingt den weißen Hintergrund */
    padding: 40px;
    border-radius: 40px 15px 40px 15px; /* Kissen-Rundung wie bei feature-card */
    box-shadow: 0 15px 35px rgba(50, 44, 42, 0.04); /* Schatten für Tiefe */
    border: 1px solid rgba(0, 0, 0, 0.02); /* Dezenter Rand */
    margin: 20px 0;
}