/* ==========================================================================
   0. LOKALE FONT DEFINITIONEN (100% DSGVO-sicher)
   ========================================================================== */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/space-grotesk-v16-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    src: url('assets/fonts/space-grotesk-v16-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    src: url('assets/fonts/montserrat-v25-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/montserrat-v25-latin-regular.woff2') format('woff2');
}

/* ==========================================================================
   1. RESET, BASICS & ONE-PAGER SMOOTH SCROLL
   ========================================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 50px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    color: #2c3e50;
    overflow-x: hidden;
}

/* Begrenzt den Inhalt in den Sektionen, ohne die Hintergrundfarben zu blockieren */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Rhythmische Sektionsabstände & Farbwechsel */
.page-section {
    padding: 60px 20px; /* Einheitlicher Innenabstand für Mobilgeräte */
}
.section-white {
    background-color: #ffffff;
}
.section-gray {
    background-color: #fcfcfc; /* Edles Off-White */
}

.section-title {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #124918; /* CI-Dunkelgrün */
    margin-top: 0;
    margin-bottom: 40px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #f2f2f2;
    margin: 0;
}

/* ==========================================================================
   2. GLOBALER HEADER & HERO-BANNER
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    text-align: center;
    padding: 25px 0;
    position: relative;
    z-index: 999;
}

.logo {
    width: 100%;
    max-width: 310px;
    height: auto;
    /* display: inline-block; */
    vertical-align: middle;
}

.hero-section {
    width: 100%;
    /* 100vh statt 100dvh verhindert das Springen beim Ein-/Ausblenden der Adressleiste */
    height: 100vh; 
    position: relative;
    z-index: 1;
    border-radius: 0px;
    overflow: hidden;
    /* Verhindert zusätzliche Berechnungs-Ruckler auf iOS-Geräten */
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

.hero-image {
    width: 100%;
    height: 100%; /* Nutzt jetzt einfach stur 100% des stabilen Containers */
    object-fit: cover;
    object-position: center;
    filter: grayscale(0.3);
}




/* ==========================================================================
   TOP ANKÜNDIGUNGSLEISTE (Eilmeldungs-Ticker)
   ========================================================================== */
.announcement-bar.ticker-mode {
    background-color: #60002A; /* CI-Dunkelrot */
    overflow: hidden;
    padding: 12px 0;
    position: relative;
    width: 100%;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker-move {
    display: inline-flex;
    white-space: nowrap;
    padding-right: 100%;
    animation: tickerLoop 20s linear infinite; 
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    padding-right: 50px;
}

.ticker-item a {
    color: #FCBECE; /* CI-Rosa */
    text-decoration: none;
    transition: color 0.2s;
}

.ticker-item a:hover {
    color: #ffffff;
}

@keyframes tickerLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 480px) {
    .ticker-item { font-size: 11px; }
}

/* ==========================================================================
   3. GLOBALER NAVIGATION (Mobil standardmäßig untereinander)
   ========================================================================== */
.main-navigation {
    background-color: #ffffff;
    text-align: center;
    padding: 30px 20px 10px 20px;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-navigation a {
    color: #124918;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
}

/* ==========================================================================
   4. SEKTION: WEINE (Mobil untereinander gestapelt)
   ========================================================================== */
/* ==========================================================================
   4. SEKTION: WEINE (Mobil untereinander gestapelt & zentriert)
   ========================================================================== */
.wein-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.wein-card {
    background-color: #ffffff;
    display: flex;
    flex-direction: column; 
    align-items: center;    /* KORREKTUR: Zentriert das Bild und alle Elemente in der Karte mobil */
    text-align: left;     /* KORREKTUR: Basis-Zentrierung für Titel und Preise */
    padding: 30px 20px;
    /* border: 1px solid #f2f2f2; */
    border-radius: 0px;     
    overflow: hidden;
}

.wein-image-wrapper {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 25px auto; /* KORREKTUR: "0 auto" zentriert den Bildbehälter mobil perfekt */
}

.wein-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(0.3);
    border-radius: 0px;
	transition: filter 0.3s ease;	
}

.wein-image:hover {
    filter: grayscale(0); /* Wird beim Hovern wieder zu 100% farbig */
}

.wein-info {
    width: 100%; 
    text-align: center;     /* Zentriert Überschrift, Meta-Daten und Preis */
}

.wein-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #124918;
    margin: 0 0 10px 0;
}

.wein-meta {
    font-size: 11px;
    color: #7f8c8d;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.wein-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #555555;
    font-weight: 400;
    text-align: left;    /* KORREKTUR: Erzwingt den gewünschten Blocksatz für den Beschreibungstext */
    margin: 0 0 20px 0;      
    padding: 0;              
    width: 100%;
}

.wein-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #60002A; 
}

/* ==========================================================================
   5. SEKTION: ÜBER UNS (Mobil sauber vertikal)
   ========================================================================== */
.story-container {
    display: flex;
    flex-direction: column; /* Mobil: Text oben, Slider unten */
    gap: 40px;
}

.story-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #124918;
}

.story-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

.story-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 0px;
}

.image-slider {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 1400%; /* Platz für 14 Bilder (13 + 1) */
    height: 100%;
    animation: sliderAutoplayThirteen 45s infinite ease-in-out;
}

.slider-track .story-image {
    width: calc(100% / 14);
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.65) brightness(0.95);
}

@keyframes sliderAutoplayThirteen {
    0%, 5%       { transform: translateX(0); }
    7.6%, 12.6%   { transform: translateX(-7.142857%); }
    15.2%, 20.2%  { transform: translateX(-14.285714%); }
    22.8%, 27.8%  { transform: translateX(-21.428571%); }
    30.4%, 35.4%  { transform: translateX(-28.571428%); }
    38%, 43%      { transform: translateX(-35.714285%); }
    45.6%, 50.6%  { transform: translateX(-42.857142%); }
    53.2%, 58.2%  { transform: translateX(-50.000000%); }
    60.8%, 65.8%  { transform: translateX(-57.142857%); }
    68.4%, 73.4%  { transform: translateX(-64.285714%); }
    76%, 81%      { transform: translateX(-71.428571%); }
    83.6%, 88.6%  { transform: translateX(-78.571428%); }
    91.2%, 96.2%  { transform: translateX(-85.714285%); }
    100%          { transform: translateX(-92.857142%); }
}

/* ==========================================================================
   6. SEKTION: EVENTS
   ========================================================================== */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.event-row {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #f2f2f2;
    padding: 25px;
    border-radius: 12px;
}

.event-date {
    background-color: #60002A; /* CI-Dunkelrot */
    color: #ffffff;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    border-radius: 8px;
}

.event-date .day { font-size: 24px; }
.event-date .month {
    text-transform: uppercase;
    font-size: 13px;
    color: #FCBECE; /* CI-Rosa */
    letter-spacing: 2px;
}

.event-details h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #124918;
}

.event-time {
    display: block;
    font-size: 11px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   8. SITE-FOOTER
   ========================================================================== */
.site-footer {
    background-color: #fcfcfc;
    border-top: 1px solid #f2f2f2;
    padding: 40px 0;
    font-size: 13px;
    color: #7f8c8d;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-links p { margin: 0; }
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #124918;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover { color: #66BB50; }


/* ==========================================================================
   9. DESKTOP ANPASSUNGEN (Ab 768px Monitorbreite)
   ========================================================================== */
@media (min-width: 768px) {
    
    html {
        scroll-padding-top: 80px;
    }

    .page-section {
        padding: 80px 0;
    }

    .site-header {
        padding: 40px 0;
    }

    .logo {
        max-width: 480px;
        transform: none;
        margin: 0 auto;
    }

.hero-section {
        height: 100dvh; /* KORREKTUR: Von 65vh auf 100dvh, damit es auch auf dem Desktop ganzflächig bleibt */
        margin: 0;      /* KORREKTUR: Ränder entfernen für echten Fullscreen-Look */
        width: 100%;    /* KORREKTUR: Von calc(100% - 40px) auf volle 100% */
        max-width: none;/* KORREKTUR: Begrenzung aufheben */
    }

    .section-title {
        font-size: 42px;
        margin-top: 10px;
        margin-bottom: 60px;
    }

    .main-navigation {
        padding: 40px 0 20px 0;
    }

    .main-navigation ul {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    .main-navigation a {
        font-size: 14px;
        display: inline;
        transition: color 0.2s ease-in-out;
    }

    .main-navigation a:hover {
        color: #66BB50; /* CI-Hellgrün */
    }

    /* WEINE DESKTOP: Wechsel zu zweispaltig & Bild links, Text rechts */
    .wein-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .wein-card {
        flex-direction: row;
        text-align: left;
        padding: 40px 30px;
        align-items: center;
    }

    .wein-image-wrapper {
        margin-bottom: 0;
        margin-right: 35px;
        flex-shrink: 0;
    }

    /* ÜBER UNS DESKTOP: Text links, Slider rechts nebeneinander */
    .story-container {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .story-text {
        flex: 1;
    }

    .story-image-wrapper {
        flex: 1;
    }

    /* EVENTS DESKTOP: Horizontale Zeilen */
    .event-row {
        flex-direction: row;
        padding: 30px;
        align-items: center;
    }

    .event-date {
        flex-direction: column;
        width: 90px;
        height: 90px;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 40px;
        gap: 2px;
        padding: 0;
        justify-content: center;
    }

    .event-date .day {
        font-size: 28px;
        line-height: 1;
    }

    .event-date .month {
        font-size: 12px;
    }

    /* FOOTER DESKTOP */
    .footer-links {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}we