/* ===================================================================
   STYLE.CSS FÜR WEINBAR 4408
   VERSION: 6.0 (Final Optimized & Responsive)
   =================================================================== */

/* ===================================================================
   INHALTSVERZEICHNIS
   ===================================================================
   1. GRUNDEINSTELLUNGEN & CI-VARIABLEN
   2. HELFERKLASSEN & GLOBALE ANIMATIONEN
   3. WIEDERVERWENDBARE KOMPONENTEN
   4. SEITEN-LAYOUT (Header, Nav, Footer)
   5. SEITEN-SEKTIONEN (Home, Story, Events, Reservierung...)
   6. WEINKARTE SPEZIAL (Grid, Filter, Modal)
   7. RECHTLICHES (Impressum/Datenschutz - OPTIMIERT)
   8. RESPONSIVE DESIGN (Global & Mobile Fixes)
   =================================================================== */

/* =======================================
   1. GRUNDEINSTELLUNGEN & CI-VARIABLEN
   ======================================= */
:root {
    /* --- TYPOGRAFIE --- */
    --primary-font: 'Montserrat', sans-serif;
    --script-font: 'Great Vibes', cursive;

    /* --- CI-FARBPALETTE --- */
    --color-dark: #1a1a1a;
    --color-background: #F9F6F3;
    --color-light: #ffffff;
    --color-primary: #c0a062;
    --color-primary-rgb: 192, 160, 98;
    --color-primary-hover: #d4b27a;
    --color-secondary: #B98B73;
    --color-accent: #6B705C;
    --color-text: #333333;
    --color-text-light: #e0e0e0;
    --color-error: #ff8a8a;
    --color-success: #8cb369;

    /* --- SYSTEM --- */
    --transition-speed: 0.6s;
    --border-radius: 5px;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-hard: 0 15px 40px rgba(0, 0, 0, 0.3);

    /* --- Z-INDEX LAYER MANAGEMENT --- */
    --z-negative: -1;
    --z-normal: 1;
    --z-sticky: 50;
    --z-nav: 100;
    --z-overlay: 1000;
    --z-modal: 1001;
    --z-tooltip: 1002;
    --z-loader: 2000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--primary-font);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden; /* Verhindert horizontalen Scroll durch Animationen */
}

/* Scroll-Lock Klasse für Modal/Filter */
body.modal-open,
body.filter-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fonts Import */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; src: url('../fonts/montserrat-v31-latin-300.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; src: url('../fonts/great-vibes-v21-latin-regular.woff2') format('woff2'); font-display: swap; }

/* =======================================
   2. HELFERKLASSEN & GLOBALE ANIMATIONEN
   ======================================= */

/* Accessibility: Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-dark);
    z-index: var(--z-loader);
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
    opacity: 0; visibility: hidden;
    pointer-events: none;
}

.loader-logo img {
    max-width: 150px; height: auto; opacity: 0;
    animation: fadeInOut 2.5s ease-in-out infinite;
    will-change: opacity;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.fade-in-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity var(--transition-speed) ease-out, transform var(--transition-speed) ease-out;
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1; transform: translateY(0);
}

/* Wackel-Animation für Fehler */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.btn-shake {
    animation: shake 0.5s;
    background-color: var(--color-error) !important;
    color: white !important;
}

/* Utilities */
.btn-margin-top { margin-top: 2.5rem; }
.text-left { text-align: left !important; }
.no-margin { margin-left: 0; margin-right: 0; }
.text-center { text-align: center; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* =======================================
   3. WIEDERVERWENDBARE KOMPONENTEN
   ======================================= */

.cta-button {
    background-color: var(--color-primary);
    color: var(--color-dark);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--color-light);
    padding: 10px 22px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    display: inline-block;
    border: 2px solid var(--color-primary);
}

.cta-button-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.content-section, .content-section-dark {
    padding: 6rem 0;
    position: relative;
    overflow-x: clip;
}

/* Performance hint */
section:nth-of-type(n+3) {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.content-section { background-color: var(--color-background); z-index: var(--z-normal); }
.content-section-dark { background-color: var(--color-dark); color: var(--color-text-light); }
.content-section-dark .section-title-main { color: var(--color-background); }

.section-title-script {
    font-family: var(--script-font);
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: normal;
    color: var(--color-primary);
    text-align: center;
}

.section-title-main {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem; font-weight: 600; margin-top: -1rem;
    color: var(--color-text);
}

.teaser-text { max-width: 700px; margin: 0 auto; }
.light-text { color: var(--color-text-light); }

/* Parallax & Bricks */
.parallax-bg {
    background-position: center; background-repeat: no-repeat; background-size: cover;
    position: relative; overflow: hidden;
}
.parallax-bg .container { position: relative; z-index: 2; }

.light-section-bricks { position: relative; overflow: hidden; }
.light-section-bricks .container { position: relative; z-index: 2; }

.light-section-bricks::before, .light-section-bricks::after {
    content: ''; position: absolute;
    width: 350px; height: 550px;
    background: url("../images/backstein.svg") no-repeat; background-size: contain;
    z-index: 0; opacity: 0; transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease; pointer-events: none;
    will-change: opacity, transform;
}

.light-section-bricks.is-visible::before, .light-section-bricks.is-visible::after {
    opacity: 0.3; transform: scale(1);
}

.light-section-bricks::before {
    top: 0; left: 0;
    -webkit-mask-image: linear-gradient(to right, black 40%, transparent 100%);
    mask-image: linear-gradient(to right, black 40%, transparent 100%);
}

.light-section-bricks::after {
    bottom: 0; right: 0;
    transform: scaleX(-1) scale(0.95); transform-origin: right bottom;
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
    mask-image: linear-gradient(to left, black 40%, transparent 100%);
}
.light-section-bricks.is-visible::after { transform: scaleX(-1) scale(1); }

/* =======================================
   4. SEITEN-LAYOUT (Header, Nav, Footer)
   ======================================= */

#navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem; z-index: var(--z-nav);
    transition: background-color 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: var(--color-dark);
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-logo img { height: 100px; width: auto; transition: height 0.4s ease; }
#navbar.scrolled .nav-logo img { height: 75px; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
    color: var(--color-light); text-decoration: none;
    transition: color 0.3s ease; font-weight: 500;
    position: relative; padding: 5px 0;
}
.nav-links a.active { color: var(--color-primary); }

/* Underline Animation */
.nav-links a:not(.cta-button):not(.nav-cta-mobile)::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0); transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
.nav-links a:not(.cta-button):not(.nav-cta-mobile):hover::after {
    transform: scaleX(1); transform-origin: bottom left;
}

.nav-cta-mobile { display: none; }

.hamburger { display: none; cursor: pointer; z-index: var(--z-tooltip); }
.hamburger span {
    display: block; width: 25px; height: 3px; margin: 5px 0;
    background: var(--color-light); transition: all 0.3s ease-in-out;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding: 5rem 0 0 0;
    position: relative; z-index: var(--z-normal);
}

.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-col .footer-logo { max-width: 120px; margin-bottom: 1rem; }
.footer-col h4 { font-size: 1.2rem; color: var(--color-primary); margin-bottom: 1rem; }
.footer-col p, .footer-col a {
    color: var(--color-text-light); text-decoration: none;
    font-size: 0.9rem; transition: color 0.3s ease;
}
.footer-col a { display: inline-block; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--color-primary); }

.social-links { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; }
.social-links a { color: var(--color-text-light); transition: color 0.3s ease, transform 0.3s ease; }
.social-links a:hover { color: var(--color-primary); transform: translateY(-2px); }
.social-links svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.5; }

.newsletter-title { margin-top: 1.5rem; }
.newsletter-form { display: flex; }
.newsletter-form input {
    flex-grow: 1; border: 1px solid #444; padding: 8px;
    border-radius: 3px 0 0 3px; background: #333;
    color: var(--color-light); font-family: var(--primary-font);
}
.newsletter-form button {
    background: var(--color-accent); border: none; color: var(--color-light);
    padding: 0 12px; cursor: pointer; border-radius: 0 3px 3px 0; font-size: 1.2rem;
}

.footer-bottom {
    padding: 1.5rem 0; margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem; text-align: center;
}
.footer-legal-links { display: flex; gap: 0.5rem; justify-content: center; }
.footer-legal-links a {
    color: var(--color-text-light); text-decoration: none; transition: color 0.3s ease;
}
.footer-legal-links a:hover { color: var(--color-primary); }
.footer-legal-links a:not(:last-child)::after {
    content: '·'; margin-left: 0.5rem; color: rgba(255, 255, 255, 0.3);
}

/* =======================================
   5. SEITEN-SEKTIONEN (Home, Events, etc.)
   ======================================= */

/* Hero (#home) */
#home {
    height: 100vh; /* Fallback */
    height: 100dvh; /* Mobile Fix */
    position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; color: var(--color-light); overflow: hidden;
}

#home .parallax-video-wrapper {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: -1;
    background: url('../images/hero.jpg') no-repeat center center/cover;
}

#home .parallax-video-wrapper video {
    position: absolute; top: 50%; left: 50%;
    min-width: 100%; min-height: 100%; width: auto; height: auto;
    transform: translateX(-50%) translateY(-50%); object-fit: cover;
}

#home::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content { z-index: 1; }
.hero-title {
    font-family: var(--script-font);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: normal; margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 300; margin-bottom: 2rem; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; }

.scroll-down-arrow {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 5; width: 20px; height: 20px;
    border-bottom: 2px solid var(--color-light);
    border-right: 2px solid var(--color-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0) rotate(45deg); }
    40% { transform: translateX(-50%) translateY(-15px) rotate(45deg); }
    60% { transform: translateX(-50%) translateY(-7px) rotate(45deg); }
}

/* Geschichte */
.story-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.story-text h4 { font-size: 1.5rem; color: var(--color-accent); margin-bottom: 1rem; }
.story-text p + h4 { margin-top: 2rem; }
.story-image img {
    width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow-medium);
}

/* Dispenser (Interactive) */
#interactive-explainer-mobile { display: none; }
#interactive-explainer {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    margin-top: 4rem; min-height: 120vh; position: relative;
}
#explainer-steps { padding-top: 25vh; }
.step {
    padding: 2rem; margin-bottom: 50vh;
    opacity: 0.3; transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateX(-10px);
}
.step.is-active { opacity: 1; transform: translateX(0); }
.step h4 { color: var(--color-primary); font-size: 1.5rem; margin-bottom: 1rem; }

#explainer-visuals {
    position: sticky; top: 25vh; height: 50vh; width: 100%;
    display: flex; justify-content: center; align-items: center; overflow: hidden;
}
.visual-element {
    position: absolute; opacity: 0; z-index: 10;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease, filter 0.8s ease;
    will-change: transform, opacity;
}
.visual-element img { max-width: 100%; height: auto; display: block; }

.dispenser-bg { transform: scale(0.95); z-index: 5; width: 80%; max-width: 400px; }
.dispenser-bg.active { opacity: 1; transform: scale(1); }
.dispenser-bg img { opacity: 0.8; border-radius: 10px; filter: brightness(0.7); }

.genuss-card {
    width: 250px; transform: translateX(100px) rotate(15deg) scale(0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.genuss-card img { border-radius: 5px; }
.genuss-card.active { opacity: 1; transform: translateX(0) rotate(0) scale(1.2); }
.genuss-card.step-2 { transform: translateX(-120px) translateY(-60px) scale(0.3); filter: brightness(1.2); }
.genuss-card.step-3-hide { opacity: 0; transform: translateX(-180px) translateY(-70px) scale(0.5); }

.pour-buttons {
    display: flex; flex-direction: column; gap: 15px;
    transform: translateX(150px); z-index: 15;
}
.pour-buttons.active { opacity: 1; transform: translateX(100px); }
.pour-buttons.step-4-hide { opacity: 0; transform: translateX(200px); }
.pour-buttons .ml-option {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px);
    padding: 8px 15px; border-radius: 20px;
    color: white; font-weight: bold; font-size: 0.9rem;
    cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.pour-buttons .ml-option:hover {
    background: var(--color-primary-hover); border-color: var(--color-primary); transform: scale(1.05);
}

.wine-glass { width: 120px; transform: translateY(150px) scale(0.8); z-index: 20; }
.wine-glass.active { opacity: 1; transform: translateY(50px) scale(1); }
.wine-glass .glass-empty, .wine-glass .glass-filled {
    position: absolute; top: 0; left: 0; width: 100%; transition: opacity 1s ease;
}
.wine-glass .glass-filled { opacity: 0; }

/* Weinkarte Teaser */
#weinkarte .container { padding-left: 0; padding-right: 0; }
#weinkarte .text-center { padding-left: 20px; padding-right: 20px; }

.wine-showcase-wrapper {
    margin-top: calc(3rem - 20px); padding: 50px 0;
    position: relative; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.wine-showcase { display: flex; gap: 2.5rem; width: max-content; }
.showcase-item {
    position: relative; width: 220px; text-align: center; cursor: pointer;
    flex-shrink: 0; transition: transform 150ms linear, opacity 150ms linear;
    opacity: calc(0.65 + (0.35 * var(--center-intensity, 0)));
    transform: scale(calc(0.9 + (0.15 * var(--center-intensity, 0))));
    will-change: transform, opacity;
}
.showcase-image-container {
    border-radius: var(--border-radius); overflow: hidden; position: relative;
    box-shadow: var(--shadow-medium); background-color: var(--color-dark);
    transition: box-shadow 0.4s ease;
}
.showcase-item:hover .showcase-image-container {
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.25), 0 0 30px rgba(var(--color-primary-rgb), 0.2), 0 0 50px rgba(var(--color-primary-rgb), 0.15);
}
.showcase-item img {
    width: 100%; height: 320px; object-fit: cover; display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.showcase-item:hover img { transform: scale(1.05); }
.showcase-image-container::after {
    content: 'Entdecken →';
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-light);
    display: flex; justify-content: center; align-items: center;
    font-weight: 500; opacity: 0; transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 5; pointer-events: none;
}
.showcase-item:hover .showcase-image-container::after { opacity: 1; transform: translateY(0); }
.showcase-item span { display: block; margin-top: 1.25rem; font-weight: 600; }

/* Speisen */
.food-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5rem; align-items: center; }
.food-image-showcase { position: relative; height: 100%; min-height: 500px; perspective: 1000px; }
.food-image-1, .food-image-2 {
    position: absolute; border-radius: 5px; overflow: hidden;
    box-shadow: var(--shadow-hard);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.food-image-1 img, .food-image-2 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.food-image-1 { top: 0; left: 0; width: 80%; height: 90%; }
.food-image-2 { bottom: 0; right: 0; width: 55%; height: 45%; border: 4px solid var(--color-dark); }

/* Events */
#events .text-center { padding-left: 20px; padding-right: 20px; }
.event-highlights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin: 4rem 0; }
.event-highlight-card {
    position: relative; border-radius: 8px; overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex; flex-direction: column; min-height: 420px;
    color: var(--color-light);
}
.event-highlight-card:hover { transform: translateY(-8px); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12); }
.highlight-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform 0.6s ease; z-index: 1;
}
.event-highlight-card:hover .highlight-image { transform: scale(1.05); }
.highlight-image::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.4) 100%, transparent 100%);
}
.highlight-content {
    position: relative; z-index: 2; padding: 1.5rem; margin-top: auto;
    display: flex; flex-direction: column; flex-grow: 1;
}
.highlight-tag {
    background-color: rgba(255, 255, 255, 0.15); color: var(--color-light);
    padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem;
    font-weight: 600; text-transform: uppercase; margin-bottom: 0.8rem;
    align-self: flex-start;
}
.highlight-content h4 { font-size: 1.6rem; margin: 0 0 0.75rem 0; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.highlight-content p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.75rem; flex-grow: 1; max-width: 90%; }
.highlight-content .cta-button-secondary {
    align-self: flex-start; margin-top: auto; padding: 0.6rem 1.2rem;
    font-size: 0.9rem; font-weight: 600; color: var(--color-light);
    border-color: var(--color-light); background-color: transparent;
}
.highlight-content .cta-button-secondary:hover { background-color: var(--color-light); color: var(--color-dark); }

.separator-text {
    text-align: center; margin: 5rem 0 3rem 0; position: relative;
    color: #999; font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
}
.separator-text span { background-color: var(--color-background); padding: 0 1.5rem; position: relative; z-index: 2; }
.separator-text::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid #e5e5e5; z-index: 1;
}

/* --- EVENTS LISTE: ELEGANT & DEZENT (style.css) --- */

.upcoming-events-list { 
    display: grid; 
    gap: 1.5rem; 
    max-width: 950px; 
    margin: 0 auto; 
}

.event-list-item-optimized {
    display: grid; 
    grid-template-columns: auto 1fr auto; 
    gap: 2.5rem; /* Mehr Luft zwischen den Elementen */
    align-items: center; 
    padding: 1.5rem 2.5rem; /* Großzügiges Padding */
    border-radius: 4px; /* Weniger rund = klassischer/edler */
    background-color: #ffffff;
    border: 1px solid #f0f0f0; /* Sehr zarter Rahmen */
    box-shadow: 0 2px 15px rgba(0,0,0,0.03); /* Ganz weicher Schatten */
    transition: all 0.4s ease;
}

.event-list-item-optimized:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(192, 160, 98, 0.3); /* Zartes Gold beim Hover */
}

/* 1. Datum Box - Reduziert */
.event-date-optimized {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    border: 1px solid #e5e5e5; /* Grau statt Gold = ruhiger */
    background-color: transparent;
    border-radius: 2px;
    padding: 0.5rem 0.8rem; 
    min-width: 70px; 
    text-align: center;
    transition: border-color 0.3s ease;
}
.event-list-item-optimized:hover .event-date-optimized {
    border-color: var(--color-primary); /* Wird erst beim Hover gold */
}

.event-date-optimized .day { 
    font-size: 1.8rem; /* Etwas kleiner als vorher */
    font-weight: 600; 
    line-height: 1; 
    color: var(--color-dark); 
    font-family: var(--primary-font);
}
.event-date-optimized .month { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    font-weight: 500; 
    letter-spacing: 1.5px;
    color: #888;
    margin-top: 4px;
}

/* 2. Textbereich - Feinere Typografie */
.event-details-optimized {
    padding-top: 0;
}

.event-details-optimized .event-category-optimized {
    font-size: 0.7rem; 
    font-weight: 600; 
    color: var(--color-primary); 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.4rem; 
    display: block;
}

.event-details-optimized h5 { 
    font-size: 1.35rem; 
    margin: 0 0 0.5rem 0; 
    color: #222; 
    font-weight: 500; /* Medium statt Bold wirkt edler */
    line-height: 1.3;
}

.event-details-optimized p { 
    font-size: 0.95rem; 
    color: #666; 
    font-weight: 300; /* Light Font für Eleganz */
    line-height: 1.6;
    margin: 0; 
    max-width: 95%;
}

/* 3. Preis & Button - Ghost Button Style */
.event-price-optimized {
    text-align: right; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    justify-content: center;
    gap: 0.8rem;
    height: 100%;
    min-width: 150px;
}

.event-price-optimized .price-tag { 
    font-weight: 500; 
    font-size: 1.4rem; 
    color: #333; 
    display: block;
    line-height: 1;
    font-family: var(--primary-font);
}

/* Der neue "Ghost Button" (Nur Rahmen, füllt sich beim Hover) */
.event-price-optimized .cta-button {
    background-color: transparent !important;
    border: 1px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    box-shadow: none !important;
    padding: 8px 18px !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px !important; /* Eckiger = Edler */
    transition: all 0.3s ease;
}

.event-price-optimized .cta-button:hover {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* --- MOBILE ANPASSUNGEN --- */
@media (max-width: 768px) {
    .event-list-item-optimized {
        grid-template-columns: auto 1fr; 
        gap: 1rem; 
        padding: 1.5rem;
    }
    
    .event-details-optimized h5 { font-size: 1.2rem; }
    
    .event-price-optimized {
        grid-column: 1 / -1; 
        flex-direction: row; 
        justify-content: space-between;
        align-items: center; 
        border-top: 1px solid #f9f9f9; 
        padding-top: 1rem; 
        margin-top: 0.8rem;
    }
    
    .event-price-optimized .price-tag { font-size: 1.2rem; font-weight: 600; }
}

/* Gutscheine */
#gutscheine .food-grid { align-items: center; }
.voucher-image-container { perspective: 1000px; display: flex; justify-content: center; align-items: center; }
.responsive-shadow-img {
    width: 100%; max-width: 450px; height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-buttons.left-aligned { justify-content: flex-start; gap: 1rem; margin-top: 2rem; }
.hero-buttons.left-aligned .cta-button-secondary.btn-white { border-color: var(--color-light); color: var(--color-light); }
.hero-buttons.left-aligned .cta-button-secondary.btn-white:hover { background-color: var(--color-light); color: var(--color-dark); }

/* Weinclub */
.club-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: center; margin-top: 4rem; }
.club-text-content h4 { font-size: 1.5rem; color: var(--color-primary); margin-bottom: 2rem; font-weight: 500; }
.benefits-list { list-style: none; padding: 0; }
.benefits-list li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.benefits-list .benefit-icon { font-size: 1.5rem; color: var(--color-primary); line-height: 1.6; font-weight: 600; }
.benefits-list p { margin: 0; flex: 1; }
.club-visual-content { display: flex; justify-content: center; align-items: center; }
.club-card-container { perspective: 1200px; }
.club-card-image {
    width: 100%; max-width: 350px; height: auto; border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
}
.club-card-container:hover .club-card-image { box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.09); }

/* Reservierung */
#reservieren.parallax-bg {
    background-image: url('../images/hero.jpg'); background-attachment: fixed; z-index: 1;
}
#reservieren.parallax-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(26, 26, 26, 0.62); z-index: -1;
}
.reservation-form {
    max-width: 650px; 
    margin: 2rem auto 0; 
    padding: 2.5rem 3rem;
    border-radius: 8px; 
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-hard); 
    color: var(--color-text-light);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { position: relative; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
    display: block; font-size: 0.85rem; margin-bottom: 0.5rem; font-weight: 500;
    color: rgba(255, 255, 255, 0.7); transition: color 0.3s ease;
}
.form-group:focus-within label { color: var(--color-primary); }
.form-group input {
    width: 100%; padding: 12px 15px 12px 45px;
    background-color: rgba(0, 0, 0, 0.4); border: 1px solid #555;
    border-radius: 5px; color: var(--color-light);
    font-family: var(--primary-font); font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.3);
}
.form-group input.icon-user, .form-group input.icon-calendar, .form-group input.icon-clock, .form-group input.icon-group {
    background-repeat: no-repeat; background-position: 15px center; background-size: 18px;
}
/* Icons SVG */
.icon-user { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.6)'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }
.icon-calendar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.6)'%3E%3Cpath d='M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z'/%3E%3C/svg%3E"); }
.icon-clock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.6)'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3Cpath d='M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E"); }
.icon-group { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.6)'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E"); }

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8); cursor: pointer;
}
.form-group input.invalid {
    border-color: var(--color-error); box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.2);
}
.error-message {
    color: #ffc2c2; font-size: 0.85rem; text-align: left;
    display: block; margin-top: 0.5rem; min-height: 1.2rem;
}
.form-checkbox-group {
    margin-bottom: 2rem; text-align: left; display: flex; flex-wrap: wrap;
    align-items: center; gap: 0.75rem; background: rgba(0, 0, 0, 0.2);
    padding: 1rem; border-radius: 5px;
}
.form-checkbox-group input[type="checkbox"] {
    width: 1.2em; height: 1.2em; accent-color: var(--color-primary);
    flex-shrink: 0; cursor: pointer;
}
.form-checkbox-group label { font-weight: 500; cursor: pointer; }
.form-checkbox-group small {
    display: block; width: 100%; opacity: 0.7;
    font-size: 0.85rem; padding-left: 2.1em; margin-top: -0.5rem;
}
.reservation-form .cta-button { width: 100%; font-size: 1.1rem; padding: 15px; }
.reservation-notice {
    text-align: center; font-size: 0.9rem; opacity: 0.8;
    margin-top: 2rem; line-height: 1.5; margin-bottom: 1rem;
}
.spontaneous-tip {
    margin-top: 1rem; padding: 1rem 1rem 1rem 3rem;
    background: rgba(0, 0, 0, 0.2); border-radius: 5px;
    font-size: 0.85rem; line-height: 1.5; text-align: left;
    position: relative; border-left: 3px solid var(--color-primary);
}
.spontaneous-tip::before {
    content: '💡'; position: absolute; left: 1rem; top: 50%;
    transform: translateY(-50%); font-size: 1.5rem;
}
.whatsapp-fallback { margin-top: 1.5rem; font-size: 0.85rem; opacity: 0.8; }
.whatsapp-fallback a { color: var(--color-primary); font-weight: 500; text-decoration: none; }
.whatsapp-fallback a:hover { text-decoration: underline; }

/* Kontakt & Anfahrt */
.contact-grid { align-items: flex-start; }
.contact-details-col { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1.25rem; text-align: left; }
.contact-icon {
    background-color: var(--color-primary); color: var(--color-dark);
    border-radius: 50%; width: 50px; height: 50px;
    display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-text h4 { margin: 0 0 0.25rem 0; font-size: 1.1rem; color: var(--color-dark); }
.contact-text p, .contact-text a {
    margin: 0; font-size: 1rem; color: var(--color-text);
    text-decoration: none; line-height: 1.5;
}
.contact-text a:hover { color: var(--color-primary); }
.opening-hours-title {
    margin-top: 1.5rem; margin-bottom: 1rem; font-size: 1.5rem; font-weight: 600;
}
.opening-hours-grid {
    display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; font-size: 1rem;
}
.opening-hours-grid span:nth-child(odd) { font-weight: 500; }
.map-image {
    width: 100%; height: 450px; object-fit: cover;
    border: none; border-radius: 8px; box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer;
}
.map-image:hover { transform: scale(1.02); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15); }

/* =======================================
   6. WEINKARTE SPEZIAL (GRID, FILTER, MODAL)
   ======================================= */

.filter-container {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 2.5rem; align-items: flex-start;
}
.wine-results { width: 100%; }

/* Sidebar */
.filter-sidebar {
    background-color: #fff; padding: 1.5rem; border-radius: 8px;
    box-shadow: var(--shadow-soft);
    position: sticky; top: 100px; z-index: var(--z-sticky);
}
.filter-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #eee; padding-bottom: 1rem; margin-bottom: 1.5rem;
}
.filter-header h4 { margin: 0; font-size: 1.5rem; }
.reset-button {
    background: none; border: none; color: var(--color-primary);
    font-weight: 600; cursor: pointer;
}
.filter-group { margin-bottom: 2rem; }
.filter-group h5 { font-size: 1.1rem; margin-bottom: 1rem; }

.filter-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-options.scrollable {
    max-height: 200px; overflow-y: auto; padding-right: 5px;
}
.filter-options.scrollable::-webkit-scrollbar { width: 4px; }
.filter-options.scrollable::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.mobile-filter-apply-btn {
    display: none; /* Desktop unsichtbar */
    position: sticky;
    bottom: 0;
    width: 100%;
    margin-top: 1.5rem;
    z-index: 10;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1); /* Schatten nach oben */
    text-align: center;
}

.checkbox-label {
    display: inline-flex; padding: 8px 14px;
    border-radius: 20px; border: 1px solid #ddd; background-color: #f9f9f9;
    cursor: pointer; transition: all 0.2s ease;
}
.checkbox-label:hover { background-color: #f0f0f0; }
.checkbox-label input, .checkbox-label .custom-checkbox { display: none; }
.checkbox-label .checkbox-text { font-size: 0.9rem; font-weight: 500; color: #555; }
.checkbox-label:has(input:checked) {
    background-color: var(--color-primary); border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(192, 160, 98, 0.3);
}
.checkbox-label:has(input:checked) .checkbox-text { color: var(--color-dark); font-weight: 600; }

/* Toggle Switch */
.toggle-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #eee; margin-bottom: 1rem;
}
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--color-primary); }
input:checked + .slider:before { transform: translateX(16px); }

/* Suche & Sortierung */
.search-and-count {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.search-and-count #wine-search {
    flex-grow: 1; width: 100%; padding: 12px 20px 12px 45px;
    border: 1px solid #ddd; border-radius: 5px;
    font-family: var(--primary-font); font-size: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 15px center; background-size: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-and-count #wine-search:focus { outline: none; border-color: var(--color-primary); }
.wine-sort-select {
    padding: 12px 40px 12px 20px; border: 1px solid #ddd; border-radius: 5px;
    font-family: var(--primary-font); font-size: 1rem;
    background-color: var(--color-light); cursor: pointer; min-width: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 18px;
    -webkit-appearance: none; appearance: none;
}
.wine-count-display { font-size: 1rem; font-weight: 500; color: #333; white-space: nowrap; }

/* Grid & Cards */
.wine-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem;
}
.no-results {
    grid-column: 1 / -1; text-align: center; padding: 3rem; color: #888;
}
.wine-card {
    background-color: #fff; border-radius: 8px; box-shadow: var(--shadow-soft);
    cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; overflow: hidden;
    border-bottom: 3px solid transparent;
}
.wine-card:hover {
    transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--color-primary);
}
.wine-card-image { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.wine-card-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.wine-card:hover .wine-card-image img { transform: scale(1.05); }
.wine-card-content {
    padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.wine-card-content h3 { font-size: 1.25rem; margin-bottom: 0.25rem; color: var(--color-dark); }
.wine-card-content p { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }

.wine-art-tag {
    display: inline-block; padding: 0.2rem 0.6rem; font-size: 0.75rem; font-weight: 600;
    border-radius: 15px; margin-bottom: 1rem; color: #fff; background-color: var(--color-accent);
}
.wine-art-tag.Weisswein { background-color: #f0ead2; color: #333; }
.wine-art-tag.Rotwein { background-color: #722f37; }
.wine-art-tag.Rosewein { background-color: #f7cac9; color: #333; }
.wine-art-tag.Secco, .wine-art-tag.Champagner { background-color: var(--color-primary); color: var(--color-dark); }
.wine-art-tag.alkoholfrei-tag { background-color: var(--color-success) !important; margin-left: 5px; }
.taste-badge {
    font-size: 0.8rem; color: #888; text-transform: uppercase;
    letter-spacing: 1px; margin-top: 5px; display: inline-block;
}

/* "Nicht vorrätig" */
.wine-card.not-in-stock .wine-card-image img { filter: grayscale(100%) contrast(0.9); opacity: 0.7; transition: all 0.3s ease; }
.wine-card.not-in-stock:hover .wine-card-image img { filter: grayscale(50%); opacity: 0.9; }
.image-overlay-status {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background-color: rgba(26, 26, 26, 0.85); color: var(--color-light);
    padding: 12px 18px; font-size: 0.9rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; border-radius: 4px; text-align: center;
    white-space: nowrap; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2; pointer-events: none;
}

/* --- WEIN-POPUP (MODAL) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-modal); display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.visible { opacity: 1; visibility: visible; }

.modal-content {
    background: #fffdf9; width: 95%; max-width: 1600px; height: 85vh;
    border-radius: 8px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    position: relative; overflow: hidden; transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: grid; grid-template-columns: 40% 60%;
    will-change: transform;
}
.modal-overlay.visible .modal-content { transform: scale(1); }
@media (min-width: 1800px) { .modal-content { grid-template-columns: 35% 65%; } }

.modal-close {
    position: absolute; top: 25px; right: 30px; z-index: 50;
    background: transparent; border: none; font-size: 2.5rem;
    color: #aaa; cursor: pointer; line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}
.modal-close:hover { color: var(--color-primary); transform: rotate(90deg); }

.modal-image {
    position: relative; width: 100%; height: 100%;
    background-color: #f0f0f0; overflow: hidden;
}
.modal-image img {
    width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}

.modal-text-content {
    position: relative; height: 100%; overflow-y: auto; padding: 4rem 5rem;
    scrollbar-width: thin; scrollbar-color: #ddd transparent;
}
.modal-text-content::-webkit-scrollbar { width: 6px; }
.modal-text-content::-webkit-scrollbar-thumb { background-color: #ddd; border-radius: 3px; }

.modal-body-grid { display: contents; }
.modal-body { height: 100%; width: 100%; padding: 0; display: contents; }

.modal-header {
    margin-bottom: 3rem; border-bottom: 1px solid rgba(0, 0, 0, 0.05); padding-bottom: 2rem;
}
.modal-header h2 {
    font-family: var(--primary-font); font-size: 3rem; font-weight: 700;
    color: var(--color-dark); line-height: 1.1; margin-bottom: 0.5rem; letter-spacing: -1px;
}
.modal-subtitle {
    font-size: 1.2rem; color: #888; font-weight: 400; margin-top: 0.5rem; display: block;
}
.modal-art-badge {
    display: inline-block; background-color: var(--color-primary); color: #fff;
    padding: 6px 16px; border-radius: 4px; font-size: 0.85rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; margin-top: 1rem;
}
.modal-alk-tag {
    color: var(--color-success); font-size: 0.6em; vertical-align: middle; margin-left: 10px;
    text-transform: uppercase; letter-spacing: 1px; border: 1px solid var(--color-success);
    padding: 2px 6px; border-radius: 4px;
}

.modal-details { max-width: 800px; }
.modal-details h4 {
    font-family: var(--primary-font); color: var(--color-primary);
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px;
    margin: 2.5rem 0 1rem 0; font-weight: 700;
}
.description p { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 1.5rem; }
.rebsorte-info {
    display: inline-block; font-size: 0.95rem; color: #333;
    background: #f4f4f4; padding: 8px 16px; border-radius: 30px; font-weight: 500;
}
.taste-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.taste-tags span {
    background: #fff; border: 1px solid #e0e0e0; color: #666;
    padding: 10px 20px; border-radius: 4px; font-size: 0.9rem; font-weight: 500;
    transition: all 0.2s ease;
}
.taste-tags span:hover {
    border-color: var(--color-primary); color: var(--color-dark);
    background: rgba(192, 160, 98, 0.1);
}

/* Modal Charakter */
.character {
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.character h4 {
    font-family: var(--primary-font); color: var(--color-primary);
    font-size: 0.95rem; text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 1.5rem; font-weight: 700;
}
.barometer-item {
    display: grid; grid-template-columns: 70px 1fr 70px;
    align-items: center; gap: 20px; margin-bottom: 1.2rem;
}
.barometer-item .labels { display: contents; }
.barometer-item .labels span {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: #999; font-family: var(--primary-font);
    white-space: nowrap;
}
.barometer-item .labels span:first-child { text-align: right; }
.barometer-item .labels span:last-child { text-align: left; }
.bar-track {
    width: 100%; height: 8px; background-color: #f0f0f0;
    border-radius: 4px; overflow: hidden; position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.bar-fill {
    height: 100%; background-color: var(--color-primary);
    border-radius: 4px; width: 0; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =======================================
   7. RECHTLICHES (Impressum/Datenschutz - OPTIMIERT)
   ======================================= */

.legal-page-header {
    background: #1a1a1a;
    padding: 15px 0;
    width: 100%;
}

.legal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.legal-nav .nav-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.legal-content {
    max-width: 900px;
    margin: 2rem auto;
}

.legal-block {
    background-color: #222;
    border: 1px solid #333;
    padding: 3rem;
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
    color: #e0e0e0;
    line-height: 1.7;
    font-family: 'Montserrat', sans-serif;
    
    /* Robustheit: Wortumbrüche für lange Links/E-Mails */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.legal-block h1 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-block h2 {
    color: var(--color-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(198, 168, 104, 0.3);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.legal-block h3 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.legal-block p { margin-bottom: 1.2rem; }
.legal-block ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: #ccc; }
.legal-block li { margin-bottom: 0.7rem; }

.legal-block a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted var(--color-primary);
}
.legal-block a:hover {
    color: #fff;
    border-bottom-style: solid;
}
.legal-block hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 3rem 0;
}

.btn-legal-back {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-legal-back:hover {
    background-color: #fff;
    color: #1a1a1a !important;
    transform: translateY(-2px);
}

/* =======================================
   8. RESPONSIVE DESIGN (Global & Mobile Fixes)
   ======================================= */

.filter-toggle-button {
    display: none; background-color: var(--color-primary); color: var(--color-dark);
    padding: 10px 18px; border: none; border-radius: 5px; font-weight: 600;
    cursor: pointer; align-items: center; justify-content: center;
    gap: 0.5rem; margin-bottom: 1.5rem; width: 100%;
}
.filter-close-button {
    display: none; background: none; border: none; font-size: 2.5rem;
    color: #aaa; cursor: pointer; line-height: 1;
}
.filter-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); z-index: var(--z-tooltip);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.filter-overlay.active { opacity: 1; visibility: visible; }

/* Tablet & Laptop (max 992px) */
@media (max-width: 992px) {
    .content-section, .content-section-dark { padding: 4.5rem 0; }
    .story-grid, .food-grid, .event-highlights-grid, .club-grid, .contact-grid {
        grid-template-columns: 1fr; gap: 3rem;
    }
    .mobile-filter-apply-btn {
        display: block;
    }
    .contact-details-col { margin-bottom: 2rem; }
    .food-image-showcase { order: -1; min-height: 400px; margin-bottom: 2rem; }
    #gutscheine .voucher-image-container { order: 1; margin-bottom: 0; margin-top: 2rem; }
    .food-text-content, .food-text-content .text-left, .club-text-content {
        text-align: center !important; margin-left: auto; margin-right: auto;
    }
    .club-text-content h4 { text-align: center !important; }
    #gutscheine .hero-buttons.left-aligned { justify-content: center; }
    .story-image { order: -1; }
    .light-section-bricks::before, .light-section-bricks::after { display: none; }
    #reservieren.parallax-bg { background-attachment: scroll; }

    /* Mobile Filter Sidebar */
    .filter-container { grid-template-columns: 1fr; }
    .filter-sidebar {
        position: fixed; top: 0; left: 0; width: 320px; max-width: 90%; 
        height: 100vh; /* Fallback */
        height: 100dvh; /* Mobile Fix */
        z-index: 1003; overflow-y: auto; transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
        padding-bottom: 80px;
    }
    .filter-sidebar.active { transform: translateX(0); }
    .filter-toggle-button { display: flex; }
    .filter-close-button { display: block; position: absolute; top: 10px; right: 15px; }
    .filter-header .reset-button { position: absolute; top: 22px; left: 1.5rem; }
    .filter-header h4 { text-align: center; width: 100%; margin-top: 5px; }

    /* Mobile Modal */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-content {
        width: 100%; max-width: 100%; 
        height: 90vh; /* Fallback */
        height: 90dvh; /* Mobile Fix */
        max-height: 90dvh;
        border-radius: 20px 20px 0 0; transform: translateY(100%);
        display: flex; flex-direction: column; grid-template-columns: 1fr;
    }
    .modal-overlay.visible .modal-content { transform: translateY(0); }
    .modal-image { height: 250px; flex-shrink: 0; }
    .modal-text-content { 
        padding: 2rem 1.5rem 6rem 1.5rem; /* Mehr Padding unten */
        height: auto; flex-grow: 1; 
    }
    .modal-header h2 { font-size: 2rem; }
    .modal-close {
        top: 15px; right: 15px; background: rgba(255, 255, 255, 0.8);
        width: 40px; height: 40px; /* Touch Friendly */
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%; font-size: 1.5rem; color: #333;
    }
    .barometer-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .barometer-item .labels { display: flex; justify-content: space-between; width: 100%; }

    /* Legal Pages Tablet */
    .legal-content { margin: 1rem auto; width: 95%; }
    .legal-block { padding: 2rem; }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .hero-subtitle { padding: 0 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 1rem; }
    #home .parallax-video-wrapper video { display: none; }

    .nav-links {
        position: fixed; top: 0; left: 0; width: 100%; 
        height: 100vh; /* Fallback */
        height: 100dvh; /* Mobile Fix */
        background: rgba(26, 26, 26, 0.95); backdrop-filter: blur(10px);
        flex-direction: column; align-items: center; justify-content: center;
        transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        gap: 0;
        will-change: transform;
        padding-bottom: 80px; overflow-y: auto;
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links > a { margin: 1rem 0; font-size: 1.5rem; }
    .nav-cta-desktop { display: none; }
    
    /* Nav Button Mobile Fix */
    .nav-cta-mobile {
        display: inline-block !important;
        width: auto !important;
        min-width: 220px;
        text-align: center;
        margin-top: 2.5rem !important;
        margin-bottom: 2rem !important;
        padding: 16px 32px !important;
        background-color: var(--color-primary);
        color: var(--color-dark) !important;
        border-radius: 50px;
        font-weight: 700 !important;
        letter-spacing: 0.5px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    .nav-cta-mobile:active { transform: scale(0.95); }

    .hamburger { display: block; }

    #angebot { overflow: visible; }
    #interactive-explainer { display: none; }
    #interactive-explainer-mobile { display: block; position: relative; padding-bottom: 15vh; }
    #explainer-visuals-mobile {
        position: sticky; top: 20vh; height: 40vh;
        display: flex; justify-content: center; align-items: center; margin-bottom: 2rem; z-index: 1;
    }
    .visual-element { position: absolute; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease; opacity: 0; }
    #explainer-steps-mobile { position: relative; z-index: 2; }
    .step-mobile {
        min-height: 30vh; padding: 1rem; text-align: center;
        display: flex; flex-direction: column; justify-content: center;
        background-color: rgba(30, 30, 30, 0.5); backdrop-filter: blur(5px);
        border-radius: 10px; margin-bottom: 80vh;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .step-mobile h4 { color: var(--color-primary); font-size: 1.5rem; margin-bottom: 1rem; }

    /* Mobile Dispenser Animations */
    #explainer-visuals-mobile .dispenser-bg { width: 80%; max-width: 350px; }
    #explainer-visuals-mobile .dispenser-bg img { opacity: 0.8; border-radius: 10px; filter: brightness(0.7); }
    #explainer-visuals-mobile .dispenser-bg.active { opacity: 1; transform: scale(1); }
    #explainer-visuals-mobile .genuss-card {
        width: 220px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        transform: translateX(80px) rotate(15deg) scale(0.8);
    }
    #explainer-visuals-mobile .genuss-card img { border-radius: 5px; }
    #explainer-visuals-mobile .genuss-card.active { opacity: 1; transform: translateX(0) rotate(0) scale(1.1); }
    #explainer-visuals-mobile .genuss-card.step-2 {
        transform: translateX(-80px) translateY(-40px) scale(0.3); filter: brightness(1.2);
    }
    #explainer-visuals-mobile .genuss-card.step-3-hide {
        opacity: 0; transform: translateX(-120px) translateY(-50px) scale(0.5);
    }
    #explainer-visuals-mobile .pour-buttons {
        display: flex; flex-direction: column; gap: 15px; z-index: 15; transform: translateX(150px);
    }
    #explainer-visuals-mobile .pour-buttons.active { opacity: 1; transform: translateX(80px); }
    #explainer-visuals-mobile .pour-buttons.step-4-hide { opacity: 0; transform: translateX(150px); }
    #explainer-visuals-mobile .wine-glass { width: 120px; z-index: 20; transform: translateY(150px) scale(0.8); }
    #explainer-visuals-mobile .wine-glass.active { opacity: 1; transform: translateY(50px) scale(1); }
    #explainer-visuals-mobile .wine-glass .glass-empty,
    #explainer-visuals-mobile .wine-glass .glass-filled {
        position: absolute; top: 0; left: 0; width: 100%; transition: opacity 1s ease;
    }
    #explainer-visuals-mobile .wine-glass .glass-filled { opacity: 0; }

    .reservation-form { padding: 2rem 1.5rem; backdrop-filter: blur(8px); }
    .form-grid { grid-template-columns: 1fr; }
    .event-list-item-optimized {
        grid-template-columns: auto 1fr; gap: 0.75rem 1rem; padding: 1rem;
    }
    .event-list-item-optimized:hover { transform: none; background-color: #f9f9f9; }
    .event-price-optimized {
        grid-column: 1 / -1; flex-direction: row; justify-content: space-between;
        align-items: center; border-top: 1px solid #f0f0f0; padding-top: 1rem; margin-top: 0.5rem;
    }
    .footer-bottom-inner { flex-direction: column; justify-content: center; }
}

/* Small Mobile (max 600px) - Inklusive Legal Pages */
@media (max-width: 600px) {
    .content-section, .content-section-dark { padding: 3.5rem 0; }
    .reservation-form { padding: 2rem 1rem; }
    
    /* Legal Pages Mobile */
    .legal-nav {
        flex-direction: column; gap: 1rem;
        padding-top: 5px; padding-bottom: 5px;
    }
    .legal-nav .nav-logo img { height: 50px; }
    .btn-legal-back {
        width: 100%; text-align: center; display: block; padding: 12px 20px;
    }
    .nav-links-legal { width: 100%; }
    .legal-content {
        margin: 1rem auto; width: 100%; padding: 0 15px;
    }
    .legal-block {
        padding: 1.5rem; border-radius: 0; border-left: none; border-right: none;
    }
    .legal-block h1 { font-size: 1.8rem; margin-bottom: 1.5rem; line-height: 1.2; }
    .legal-block h2 { font-size: 1.3rem; margin-top: 2rem; }
    
    /* Allgemein Mobile Small */
    .event-highlights-grid { grid-template-columns: 1fr; }
    .event-highlight-card { min-height: 380px; }
    .highlight-content h4 { font-size: 1.15rem; }
    .highlight-content p { font-size: 0.8rem; }
    .highlight-content .cta-button-secondary { font-size: 0.85rem; padding: 0.6rem 1.2rem; }
    .event-details-optimized h5 { font-size: 1.1rem; }
    .event-details-optimized p { font-size: 0.8rem; }
    .event-price-optimized span { font-size: 1.05rem; }
    .footer-col { text-align: center; }
    .footer-col .footer-logo, .social-links, .newsletter-form {
        margin-left: auto; margin-right: auto; justify-content: center;
    }
    .search-and-count { flex-direction: column; align-items: stretch; gap: 1rem; }
    .wine-sort-select { width: 100%; }
    .wine-count-display { text-align: center; }
    header .nav-logo img { height: 40px !important; }
    .checkbox-label { padding: 10px 16px; font-size: 1rem; } /* Touch Target */
}

/* =======================================
   Google Bewertung & Map Hover
   ======================================= */

/* --- Google Bewertungs Button (Dezent) --- */
.google-review-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: rgba(255, 255, 255, 0.6);
    text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px; border-radius: 4px;
    margin-bottom: 1.5rem; transition: all 0.3s ease;
}

.google-review-btn .star-icon { color: var(--color-primary); font-size: 1rem; line-height: 1; }
.google-review-btn:hover {
    color: var(--color-light); border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.05); transform: translateY(-2px);
}

/* --- Map Hover Effect --- */
.map-link-wrapper {
    position: relative; display: block; border-radius: 8px;
    overflow: hidden; box-shadow: var(--shadow-medium);
    transform: translateZ(0);
}

.map-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(26, 26, 26, 0.6); display: flex;
    justify-content: center; align-items: center; opacity: 0;
    transition: opacity 0.4s ease; z-index: 2;
}

.map-overlay-btn {
    color: var(--color-light); border: 2px solid var(--color-primary);
    background-color: rgba(0,0,0,0.5); padding: 10px 20px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.9rem; border-radius: 4px; transform: translateY(10px);
    transition: transform 0.4s ease, background-color 0.3s;
}

.map-link-wrapper:hover .map-overlay { opacity: 1; }
.map-link-wrapper:hover .map-overlay-btn { transform: translateY(0); }
.map-link-wrapper:hover .map-image { transform: scale(1.05); }
.map-overlay-btn:hover { background-color: var(--color-primary); color: var(--color-dark); }

/* =======================================
   COOKIE BANNER
   ======================================= */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Startet außerhalb des Sichtfelds */
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    border-top: 1px solid #333;
    padding: 1.5rem 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.4);
    z-index: 2100; /* Über allem anderen */
    transition: bottom 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--color-light);
}

.cookie-banner.show {
    bottom: 0; /* Fährt nach oben */
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text p {
    font-size: 0.9rem;
    margin: 0;
    max-width: 700px;
    color: #ccc;
}

.cookie-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
    .cookie-buttons button {
        flex: 1;
        text-align: center;
    }
}