/* =========================================
   1. VARIABLEN & RESET (VITALOUNGE STYLE + SGZ GRÜN)
========================================= */
/* montserrat-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/montserrat-v31-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100;
  src: url('../fonts/montserrat-v31-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/montserrat-v31-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-200italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 200;
  src: url('../fonts/montserrat-v31-latin-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/montserrat-v31-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/montserrat-v31-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/montserrat-v31-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/montserrat-v31-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 600;
  src: url('../fonts/montserrat-v31-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/montserrat-v31-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/montserrat-v31-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 800;
  src: url('../fonts/montserrat-v31-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/montserrat-v31-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/open-sans-v44-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/open-sans-v44-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/open-sans-v44-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/open-sans-v44-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/open-sans-v44-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/open-sans-v44-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 600;
  src: url('../fonts/open-sans-v44-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v44-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/open-sans-v44-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/open-sans-v44-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 800;
  src: url('../fonts/open-sans-v44-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --bg-dark: #000000;
    --bg-card: #1a1a1a;

    --green: #81C341;
    --green-hover: #6ea837;

    --white: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #333333;

    /* --- HIER WIRD APTOS EINGESTELLT --- */
    --font-heading: 'Aptos', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    --font-text: 'Aptos', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

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

p { margin-bottom: 1.5rem; }

body {
    font-family: var(--font-text);
    color: var(--white);
    background: var(--bg-dark);
    overflow-x: clip;
    line-height: 1.6;
}

/* =========================================
   2. GENERELLES LAYOUT & TYPOGRAFIE
========================================= */
main { border-top: 1px solid var(--border-color); }
.full-width { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 5vw; }
.section { padding: 100px 0; position: relative; }
.relative-z { position: relative; z-index: 2; }
.text-center { text-align: center; }

/* Alle Hintergründe auf Dark Mode zwingen */
.bg-white, .bg-gray, .bg-dark { background-color: var(--bg-dark) !important; color: var(--white) !important; }
.pink-text { color: var(--green) !important; }

h1, h2, h3, h4, .section-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

a {
  color: var(--green);
  text-decoration: none;
}

a.hover {
  color: var(--white);
  text-decoration: underline;
}

/* =========================================
   TEXT/BILD MODUL (Fließtext)
========================================= */
.text-module-body {
    color: var(--text-muted);
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    /* Optional: Etwas mehr Zeilenabstand für bessere Lesbarkeit im Blocksatz */
    line-height: 1.7;
}

/* Wichtig: Absätze im RTE sollen den Abstand nach unten behalten */
.text-module-body p {
    margin-bottom: 15px;
}
.text-module-body p:last-child {
    margin-bottom: 0;
}

/* CLAMP: Fixt das Mobile-Overflow Problem! Schrift schrumpft dynamisch. */
.hero-title {
    /* Schriftgröße leicht reduziert (von max. 5rem auf 4rem) */
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.1;

    /* NEU: Verhindert die unschöne automatische Silbentrennung (ANGE-BOT) */
    word-wrap: normal;
    overflow-wrap: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* =========================================
   HERO SLIDER TYPOGRAFIE (NEU NACH SCREENSHOT)
========================================= */
.hero-top-text {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 400; /* Regular */
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5.5rem); /* Extra groß */
    font-weight: 900; /* Black */
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--white);
}

.hero-sub-text {
    font-family: var(--font-text);
    font-size: clamp(0.9rem, 2vw, 1.2rem); /* Wesentlich kleiner */
    font-weight: 400; /* Regular */
    color: var(--green); /* SGZ Grün */
    margin-bottom: 30px;
}

.hero-price {
    /*font-size: clamp(3rem, 8vw, 7rem);*/
    font-size: clamp(1rem, 3vw, 3rem);
    font-family: var(--font-heading);
    color: var(--green) !important;
    font-weight: 900;
    line-height: 1;
    margin: 10px 0;
    hyphens: auto;
}

.section-title {
    /* Sektionstitel etwas edler und kleiner (von max 3rem auf 2.2rem) */
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 30px;
}

.img-placeholder { background: var(--bg-card); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.split-layout { display: flex; gap: 60px; }
.split-layout > * { flex: 1; }
.align-center { align-items: center; }
.split-img { min-height: 500px; border-radius: 8px; border: 0px solid #333; }
.grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 40px;}

/* Checklisten im neuen Design */
.check-list { list-style: none; margin: 20px 0; }
.check-list li { margin-bottom: 12px; padding-left: 30px; position: relative; color: var(--text-muted); font-size: 0.95rem; }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: var(--green); font-size: 1.1rem; top: -2px; }


/* =========================================
   MARQUEE ANIMATION (LAUFSCHRIFT & OUTLINE)
========================================= */
.marquee-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    z-index: 1;
}

.marquee-text {
    display: inline-block;

    /* Die maximal fette Original-Schrift */
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;

    letter-spacing: 5px;
    text-transform: uppercase;
    animation: marqueeScroll 30s linear infinite;
    padding-left: 100%;
}

/* Transparenter Text mit grünem Rand (Ohne Fehler!) */



/* =========================================
   MARQUEE / LAUFSCHRIFT DCE & OUTLINE
========================================= */
.marquee-container {
    width: 100vw;
    max-width: 100%;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    z-index: 1;
    display: flex;
    align-items: center;
}

.marquee-text {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    padding-left: 100%;

    /* HIER WAR DER FEHLER: Der Name muss scroll-left sein! */
    animation: scroll-left 40s linear infinite;
}

.outline-text {
    color: var(--bg-dark);
    -webkit-text-stroke: 0;
    text-shadow:
        -2px -2px 0 var(--green),
         2px -2px 0 var(--green),
        -2px  2px 0 var(--green),
         2px  2px 0 var(--green);
    opacity: 0.5;
}

/* Die Animation selbst */
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Auf dem Handy etwas kleiner machen */
@media (max-width: 768px) {
    .marquee-text {
        font-size: 3rem;
        animation: scroll-left 30s linear infinite;
    }
}

/* =========================================
   3. BUTTONS (Sleek & Green)
========================================= */
.btn-black, .btn-green, .btn-orange, .btn-news {
    background: var(--green) !important;
    color: var(--bg-dark) !important;
    border: none;
    padding: 15px 35px;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(129, 195, 65, 0.2);
    font-size: 1.0rem;

    /* --- NEU: Verhindert Ruckeln und seitliches Springen --- */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.btn-black:hover, .btn-green:hover, .btn-orange:hover, .btn-news:hover {
    background: var(--green-hover) !important;
    color: #ffffff !important;

    /* --- NEU: translateX(0) zwingt den Button, horizontal exakt auf der Stelle zu bleiben --- */
    transform: translateY(-3px) translateX(0) translateZ(0);

    box-shadow: 0 6px 20px rgba(129, 195, 65, 0.4);
}

.btn-large { padding: 18px 50px; font-size: 1.0rem; }
.outline-btn { background: transparent !important; border: 2px solid var(--green); color: var(--green) !important; box-shadow: none; }
.outline-btn:hover { background: var(--green) !important; color: var(--bg-dark) !important; }

.btn-black.outline-btn { text-align: center; }


/* =========================================
   4. NAVIGATION (Sticky Fix)
========================================= */

/* 1. Wir machen den gesamten Umschlag sticky, nicht nur das innere Element */
.bg-white.sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    /* Stellt sicher, dass beim Scrollen nichts durchscheint */
    background: var(--bg-dark) !important;
    /* NEU: Leicht transparentes Schwarz (85% Deckkraft) statt solidem --bg-dark */
    background: rgba(0, 0, 0, 0.6) !important;

    /* NEU: Der Milchglas-Effekt (verschwimmt den Inhalt, der darunter durchrutscht) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Für Safari */

    border-bottom: 1px solid var(--border-color); /* Optische Trennlinie (optional) */
}

/* 2. Die Navbar selbst braucht jetzt kein sticky mehr */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%;
    background: transparent;
}
/* NEU: Filter entfernt. Logo ist nun im Original-Design */
.logo img { max-height: 100px; }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 600; font-family: var(--font-heading); font-size: 0.9rem; transition: color 0.3s; text-transform: uppercase;}
.nav-links a:hover { color: var(--green); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 10001; }
.hamburger .bar { width: 30px; height: 3px; background-color: var(--white); transition: 0.3s; }

/* =========================================
   5. HERO BEREICH
========================================= */
.hero-slider { height: 85vh; position: relative; overflow: hidden; background: var(--bg-dark); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; z-index: 1; background: var(--bg-dark) !important; }
.slide.active { opacity: 1; z-index: 2; }
.hero-split { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 100%; gap: 40px; }
.hero-text-col { flex: 1; display: flex; flex-direction: column; align-items: flex-start; text-align: left; z-index: 2; }
.hero-img-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.hero-img-col::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 40%),
                linear-gradient(to top, var(--bg-dark) 0%, transparent 30%);
    pointer-events: none;
}
.hero-person-img {
    width: auto !important;
    height: 100% !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    object-position: bottom center !important;
    display: block !important;
}

.countdown { display: flex; gap: 15px; margin: 15px 0 30px; }
.time-box { background: var(--bg-card); border: 1px solid var(--border-color); padding: 15px 20px; border-radius: 8px; color: var(--green); text-align: center; }
.time-box span { display: block; font-size: 2rem; font-weight: 900; font-family: var(--font-heading);}
.time-box small { color: var(--text-muted); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1px;}

.slider-nav { position: absolute; z-index: 10; top: 40%; transform: translateY(-50%); width: 45px; height: 45px; border-radius: 50%; background: var(--bg-card); color: var(--green); border: 1px solid var(--border-color); font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.slider-nav:hover { background: var(--green); color: var(--bg-dark); }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.hero-dot { width: 10px; height: 10px; background: #555; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.hero-dot.active { background: var(--green); box-shadow: 0 0 10px var(--green); }

#hero-prev { left: 30px; z-index: 100; }
#hero-next { right: 30px; left: auto; z-index: 100; }

.hero-split.layout-2 { justify-content: center !important; }
.hero-split.layout-2 .hero-text-col {
    align-items: center !important;
    text-align: center !important;
    flex: 0 0 100% !important;
    max-width: 900px;
    margin: 0 auto;
}

.countdown-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
    margin-top: 10px;
    width: 100%;
}

.hero-split.layout-1 .countdown-label { text-align: left; }
.hero-split.layout-1 .countdown { justify-content: flex-start; }

.hero-split.layout-2 .countdown-label { text-align: center; }
.hero-split.layout-2 .countdown { justify-content: center; width: 100%; }

@media (max-width: 768px) {
    #hero-prev { left: 10px; }
    #hero-next { right: 10px; }
}

/* =========================================
   6. INFO BAR (Icons unter Hero)
========================================= */
.info-bar { padding: 20px 0; /*border-bottom: 1px solid var(--border-color);*/ /*border-top: 1px solid var(--border-color);*/ background: var(--bg-dark); }
.info-bar-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.info-item { display: flex; align-items: center; gap: 15px; }
.info-icon { width: 28px; height: 28px; color: var(--green); }
.info-text { font-size: 0.9rem; color: var(--text-muted); }
.info-text strong { color: var(--white); font-family: var(--font-heading); font-size: 1rem; }

/* =========================================
   7. KARTENSTAPEL & AKKORDEON
========================================= */
.card-stack-container { position: relative; height: 600px; width: 100%; max-width: 450px; margin: 0 auto; perspective: 1000px; }
.stack-card { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); background: var(--bg-card); transition: transform 0.6s ease, opacity 0.6s ease; }
.card-bottom-label { position: absolute; bottom: 0; left: 0; width: 100%; height: 90px; background: rgba(18,18,18,0.9); backdrop-filter: blur(5px); color: var(--green); border-top: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.5rem; z-index: 10; letter-spacing: 2px; }
.stack-card .img-placeholder { position: absolute; top:0; left:0; width:100%; height:100%; border:none;}
.card-behind { transform: scale(0.9) translate(30px, -30px); z-index: 1; opacity: 0; }
.card-active { transform: scale(1) translate(0, 0); z-index: 2; opacity: 1; }
.card-falling { animation: slideUpFade 0.6s forwards; z-index: 3; }
@keyframes slideUpFade { 0% { transform: scale(1) translate(0, 0); opacity: 1; } 100% { transform: scale(1.05) translate(-20px, -50px); opacity: 0; } }

.accordion-group { display: flex; flex-direction: column; }
.accordion-item { border-bottom: 1px solid var(--border-color); background: transparent; overflow: hidden; }
.accordion-header { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; padding: 25px 0; font-size: 1.1rem; font-family: var(--font-heading); cursor: pointer; text-align: left; color: var(--white); transition: color 0.3s ease; text-transform: uppercase; letter-spacing: 1px; }
.accordion-header:hover { color: var(--green); }
.accordion-item.active .accordion-header { color: var(--green); }
.icon { font-size: 1.5rem; font-weight: 300; transition: transform 0.3s; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--text-muted); }
.accordion-content p { padding-bottom: 25px; line-height: 1.7; }

/* =========================================
   8. PREISTABELLEN (3-Spaltig)
========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 30px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover { border-color: var(--green); transform: translateY(-5px); }
.pricing-card.highlight {
    border: 2px solid var(--green);
    transform: scale(1.05);
    background: linear-gradient(180deg, var(--bg-card) 0%, #172412 100%); /* Angepasster Grün-Schimmer */
    box-shadow: 0 10px 30px rgba(129, 195, 65, 0.1);
}
.pricing-card.highlight:hover { transform: scale(1.05) translateY(-5px); }
.pricing-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.pricing-avatar { width: 60px; height: 60px; border-radius: 25%; }
.pricing-price {
    display: flex;
    align-items: baseline; /* Setzt das große € 5,99 und das kleine "wöchentlich" auf exakt eine Linie unten */
    flex-wrap: wrap; /* Verhindert, dass es auf sehr kleinen Handys aus dem Kasten bricht */
    gap: 8px; /* Sorgt für einen sauberen Abstand zwischen Preis und Text */
    color: var(--green);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3.2rem); /* Minimal verkleinert, damit es perfekt in eine Zeile passt */
    margin-bottom: 10px;
    line-height: 1;
}

.pricing-price span {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: var(--font-text);
    text-transform: uppercase;
    margin-left: 0; /* Wird jetzt automatisch durch das 'gap' oben geregelt */
}
.pricing-bg-text { display: none; }
.pricing-subtext { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; min-height: 45px;}
.pricing-list { flex-grow: 1; margin-bottom: 30px; }
.pricing-card.highlight .btn-full { background: var(--white) !important; color: var(--bg-dark) !important; }
.btn-full { width: 100%; }

/* =========================================
   9. KURSPLAN (Horizontaler Kalender)
========================================= */
/* Hex-Farbe im SVG für Dropdown ist jetzt auf %2381C341 angepasst */
.club-select-wrapper { display: inline-block; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }
.club-select { color: var(--green); font-family: var(--font-text); font-size: 1.2rem; font-weight: bold; border: none; background: transparent; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2381C341%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 10px top 50%; background-size: 12px auto; }
.day-nav-wrapper { display: flex; align-items: center; border-bottom: 1px solid var(--border-color); margin-bottom: 40px; padding-bottom: 10px; }
.day-nav-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 10px 20px; color: var(--white); z-index: 10; }
.day-nav-btn:hover { color: var(--green); }
.day-tabs { display: flex; flex: 1; overflow-x: auto; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; gap: 10px; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { flex: 0 0 auto; width: 145px; text-align: left; padding: 15px 20px; cursor: pointer; border-radius: 5px 5px 0 0; transition: background 0.3s; color: var(--text-muted); }
.day-tab.active { background-color: var(--green); color: var(--bg-dark); }
.day-tab strong { display: block; font-size: 1.1rem; }
.day-tab.active small { color: var(--bg-dark); opacity: 0.8; }
.time-group { margin-bottom: 40px; }
.time-divider { display: flex; align-items: center; text-align: center; color: var(--green); font-size: 0.9rem; font-weight: bold; margin-bottom: 30px; text-transform: uppercase;}
.time-divider::before, .time-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.time-divider:not(:empty)::before { margin-right: .5em; }
.time-divider:not(:empty)::after { margin-left: .5em; }

.classes-grid {
    display: grid;
    /* Sehr kompakte Spalten, ähnlich wie auf dem Flyer */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding-top: 20px;
}

/* Die neuen kompakten Kurs-Kästchen */
.compact-class-card {
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    color: var(--bg-dark); /* Schwarzer Text für perfekten Kontrast zu den bunten Farben */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.compact-class-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.5); }

/* Die Uhrzeit steht oben im dunklen Balken */
.class-time-header {
    background: #111; /* Fast schwarz */
    color: var(--white);
    padding: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: var(--font-text);
    border-bottom: 2px solid rgba(0,0,0,0.2);
}

.class-name {
    padding: 12px 5px 2px;
    font-size: 1.05rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1.1;
    text-transform: none;
}

.class-room {
    padding: 0 5px 12px;
    font-size: 0.95rem;
    font-weight: bold;
}

/* ====================================================
   DIE ORIGINAL-FARBEN VOM FLYER
==================================================== */
.compact-class-card[data-type="wsg"] { background-color: #ed6c5a; } /* Orange/Rot */
.compact-class-card[data-type="rehasport"] { background-color: #fab25a; } /* Hellorange */
.compact-class-card[data-type="bodyforming"] { background-color: #5ec6ee; } /* Hellblau */
.compact-class-card[data-type="yoga"] { background-color: #caf38f; }
.compact-class-card[data-type="pilates"] { background-color: #a6f3c2; }
.compact-class-card[data-type="mobility"] { background-color: #a4d252; } /* Grün */
.compact-class-card[data-type="zumba"] { background-color: #f591c4; } /* Pink */
.compact-class-card[data-type="cycling"] { background-color: #937fba; } /* Lila */
.compact-class-card[data-type="iron"] { background-color: #ffffff; } /* Weiss */
.compact-class-card[data-type="sixpack"] { background-color: #666666; } /* Grau */
.compact-class-card[data-type="anusura"] { background-color: #ffffff; } /* Weiss */
.compact-class-card[data-type="hockergymnastik"] { background-color: #fab25a; } /* Hellorange */
.compact-class-card[data-type="wellness"] { background-color: #a4d252; } /* Grün */
.compact-class-card[data-type="ruecken"] { background-color: #cccccc; } /* Grau */
.compact-class-card[data-type="mobility"] { background-color: #5ec6ee; } /* Hellblau */

/* ====================================================
   FILTER-LOGIK: Strikt 1-zu-1 Zuordnung
==================================================== */
#schedule-board[data-filter="wsg"] .compact-class-card:not([data-type="wsg"]),
#schedule-board[data-filter="rehasport"] .compact-class-card:not([data-type="rehasport"]),
#schedule-board[data-filter="bodyforming"] .compact-class-card:not([data-type="bodyforming"]),
#schedule-board[data-filter="yoga"] .compact-class-card:not([data-type="yoga"]),
#schedule-board[data-filter="pilates"] .compact-class-card:not([data-type="pilates"]),
#schedule-board[data-filter="zumba"] .compact-class-card:not([data-type="zumba"]),
#schedule-board[data-filter="cycling"] .compact-class-card:not([data-type="cycling"]),
#schedule-board[data-filter="iron"] .compact-class-card:not([data-type="iron"]),
#schedule-board[data-filter="sixpack"] .compact-class-card:not([data-type="sixpack"]),

/* Tippfehler-Sicherung */
#schedule-board[data-filter="hockergymnastik"] .compact-class-card:not([data-type="hockergymnastik"]):not([data-type="hockergymnasik"]),
#schedule-board[data-filter="hockergymnasik"] .compact-class-card:not([data-type="hockergymnastik"]):not([data-type="hockergymnasik"]),
#schedule-board[data-filter="anusura"] .compact-class-card:not([data-type="anusura"]):not([data-type="anusara"]),
#schedule-board[data-filter="anusara"] .compact-class-card:not([data-type="anusura"]):not([data-type="anusara"]),

#schedule-board[data-filter="wellness"] .compact-class-card:not([data-type="wellness"]),
#schedule-board[data-filter="ruecken"] .compact-class-card:not([data-type="ruecken"]),
#schedule-board[data-filter="mobility"] .compact-class-card:not([data-type="mobility"]) {
    opacity: 0.15 !important;
    filter: grayscale(100%) !important;
}

/* =========================================
   MOBILE FIX: KURSPLAN EINSPALTIG
========================================= */
@media (max-width: 768px) {
    .classes-grid {
        /* Zwingt das Grid auf genau eine Spalte mit voller Breite */
        grid-template-columns: 1fr !important;
    }

    /* Optional: Macht den Raum zwischen den Kästchen auf dem Handy etwas kleiner */
    .classes-grid {
        gap: 10px !important;
    }
}

.time-bar-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--green); border-radius: 2px; }

/* =========================================
   10. NEWS / BLOG (3-Spaltig)
========================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.news-card:hover { transform: translateY(-10px); border-color: var(--green); }
.news-img-wrapper { position: relative; height: 220px; overflow: hidden; }
.news-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-img { transform: scale(1.05); }
.news-date { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.8); color: var(--white); padding: 6px 12px; font-size: 0.75rem; border-radius: 4px; z-index: 2; }
.news-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.news-content h3 { font-size: 1.2rem; margin-bottom: 15px; text-transform: none; line-height: 1.4; color: var(--white); }
.news-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 30px; flex-grow: 1; }

/* =========================================
   11. BILDERGALERIE & LIGHTBOX (Mosaik)
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; border: 0px solid var(--border-color);}
.gallery-item:nth-child(6n - 3), .gallery-item:nth-child(6n - 2) { grid-column: span 2; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(18, 18, 18, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.overlay-text { color: var(--green); font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; transform: translateY(20px); transition: transform 0.3s ease; text-transform: uppercase;}
.gallery-item:hover .gallery-img { transform: scale(1.05); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .overlay-text { transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(18, 18, 18, 0.98); z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-content { width: 80%; height: 80%; max-width: 1200px; display: flex; align-items: center; justify-content: center; }
.lightbox-btn { position: absolute; background: transparent; color: var(--white); border: none; font-size: 2.5rem; cursor: pointer; transition: color 0.3s; z-index: 100000; }
.lightbox-btn:hover { color: var(--green); }
.close-btn { top: 30px; right: 40px; }
.nav-btn { top: 50%; transform: translateY(-50%); padding: 20px; }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* =========================================
   12. PROMO, KARRIERE & VORTEILE
========================================= */
.collage-container { position: relative; height: 600px; width: 100%; }
.collage-img { position: absolute; border-radius: 8px; border: 1px solid var(--border-color); object-fit: cover; }
.img-top-right { top: 0; right: 0; width: 65%; height: 250px; z-index: 1; }
.img-middle-left { top: 180px; left: 0; width: 70%; height: 260px; z-index: 2; }
.img-bottom-center { bottom: -30px; right: 10%; width: 65%; height: 220px; z-index: 3; }

.vorteil-card { background: var(--bg-card); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); }
.vorteil-card h3 { color: var(--green); margin-bottom: 15px; font-size: 1.2rem; }
.vorteil-card p { color: var(--text-muted); }

/* =========================================
   13. SLIDER (Reviews & Studios)
========================================= */
.horizontal-slider, .slider-track {
    display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 20px 0; scrollbar-width: none; -ms-overflow-style: none;
}
.horizontal-slider::-webkit-scrollbar, .slider-track::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 400px; scroll-snap-align: start; background: var(--bg-card); padding: 40px; border-radius: 8px; border: 1px solid var(--border-color); }
.stars { color: var(--green); font-size: 1.5rem; margin-bottom: 15px; }
.reviewer { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; }

.slider-wrapper { position: relative; display: flex; align-items: center; margin-top: 40px; }
/* Container sicher auf 100% Breite setzen */
.slider-wrapper {
    position: relative;
    width: 100%;
    display: block; /* Verhindert, dass Flexbox die absoluten Pfeile verschluckt */
    margin-top: 40px;
}

/* =========================================
   STUDIO SLIDER DESKTOP (Zentriert, keine Pfeile)
========================================= */
@media (min-width: 1025px) {
    .slider-track {
        justify-content: center; /* Hält die 3 Slides exakt in der Mitte */
        width: 100%;
    }
    #studio-prev, #studio-next {
        display: none !important; /* Pfeile am Desktop ausblenden */
    }
}

/* =========================================
   STUDIO SLIDER TABLET & MOBILE (Scrollbar + Pfeile)
========================================= */
#studio-prev, #studio-next {
    display: none; /* Standardwert für Desktop */
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    #studio-prev, #studio-next {
        display: flex; /* Pfeile ab Tablet einblenden */
    }
    #studio-prev { left: -15px; z-index: 10; }
    #studio-next { right: -15px; z-index: 10; }
}

@media (max-width: 768px) {
    /* Auf dem Handy etwas weiter nach innen rücken */
    #studio-prev { left: 5px; }
    #studio-next { right: 5px; }
}

/* Die Karten selbst */
.studio-slide {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px; /* Etwas verkleinert, damit es auf mittleren Bildschirmen passt */
    scroll-snap-align: center;
}

.studio-card-inner { position: relative; height: 400px; border-radius: 8px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-color); transition: 0.3s; }
/*.studio-card-inner.faded { opacity: 0.4; }*/
.studio-top-label { position: absolute; top: 0; left: 0; width: 100%; background: rgba(18,18,18,0.8); padding: 15px; text-align: center; text-transform: uppercase; font-family: var(--font-heading); color: var(--green); font-size: 1.2rem; z-index: 2; }
.studio-img { position: absolute; inset: 0; width: 100%; height: 100%; padding:0; border: none; }
.studio-img img { width: 100%; height: 100%; object-fit: cover;}
.studio-btn { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2; width: 80%; text-align: center;}
.btn-black.studio-btn:hover { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(-3px); color: #fff;}
.btn-black.studio-btn:hover { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(-3px); color: #fff;}

.mobile { display: none; }

@media (max-width: 768px) {
  .mobile { display: block; }
}

/* =========================================
   14. FOOTER & SOCIALS
========================================= */
footer {
  border-top: 1px solid color-mix(in srgb, var(--green) 50%, transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-col h4 { margin-bottom: 20px; font-size: 1.1rem; color: var(--green); }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 12px; transition: color 0.3s;}
.footer-col a:hover { color: var(--green); }

.social-links { display: flex; gap: 15px; }
.social-icon {
    position: relative; /* WICHTIG für das absolute Zentrieren */
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.social-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Zieht das Icon millimetergenau in die Mitte */
    width: 20px;
    height: 20px;
}
.social-icon:hover { background: var(--green); color: var(--bg-dark); transform: translateY(-5px); border-color: var(--green); box-shadow: 0 5px 15px rgba(129, 195, 65, 0.3); }
.social-icon:hover { background: var(--green); color: var(--bg-dark); transform: translateY(-5px); border-color: var(--green); box-shadow: 0 5px 15px rgba(129, 195, 65, 0.3); }

/* =========================================
   15. CHECKOUT MODAL (Dark Mode)
========================================= */
.checkout-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.checkout-modal.active { opacity: 1; pointer-events: auto; }
.checkout-container { width: 95%; max-width: 1200px; height: 90vh; display: flex; border-radius: 8px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: 0 25px 50px rgba(0,0,0,0.8); }

.checkout-sidebar { flex: 0 0 40%; padding: 40px; display: flex; flex-direction: column; justify-content: center; background: var(--bg-dark); border-right: 1px solid var(--border-color); text-align: center; }
.chosen-plan-card { position: relative; /*height: 300px;*/ height: auto; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); background: var(--bg-card);}
.chosen-plan-card .bg-img-abo img { object-fit: cover; width: 100%; height: 100%; opacity: 0.7;}
.btn-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    white-space: nowrap;
}
/* Verhindert, dass der Button beim Hovern wegspringt */
.btn-link.btn-black:hover {
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Hier kannst du deine Hover-Farben definieren, falls nötig: */
    background-color: var(--white) !important;
    color: var(--bg-dark) !important;
}

.checkout-form-area { flex: 1; background: var(--bg-card); padding: 40px; overflow-y: auto; }
.stepper { display: flex; justify-content: space-between; margin-bottom: 40px; padding: 0 20px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; flex: 1; }
.step .circle { width: 35px; height: 35px; border-radius: 50%; background: var(--bg-dark); border: 1px solid var(--border-color); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-weight: bold; transition: 0.3s; }
.step.active .circle, .step.completed .circle { background: var(--green); color: var(--bg-dark); border-color: var(--green); box-shadow: 0 0 10px rgba(129, 195, 65, 0.3);}
.step span { font-size: 0.75rem; color: var(--text-muted); font-weight: bold; }
.step.active span { color: var(--green); }

.form-step { display: none; animation: fadeIn 0.4s; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 0.85rem; font-weight: bold; color: var(--white); }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"] {
    width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-text); font-size: 1rem;
    background: var(--bg-dark); color: var(--white); transition: border 0.3s;
}
.form-group input:focus { outline: none; border-color: var(--green); }

.radio-options { display: flex; gap: 20px; }
.radio-options label { font-weight: normal; display: flex; align-items: center; gap: 5px; cursor: pointer; color: var(--text-muted);}
.checkbox-container { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin-bottom: 15px; }
.checkbox-container input { margin-top: 4px; transform: scale(1.2); cursor: pointer; }
.checkbox-container span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

.form-actions { display: flex; margin-top: 30px; }
.form-actions.right { justify-content: flex-end; }
.form-actions.split { justify-content: space-between; }

.summary-split { display: flex; gap: 30px; background: var(--bg-dark); border: 1px solid var(--border-color); padding: 20px; border-radius: 8px; }
.summary-details, .summary-checkboxes { flex: 1; }

/* =========================================
   16. SCROLL TO TOP BUTTON
========================================= */
.scroll-top-btn {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--green); color: var(--bg-dark);
    border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(129, 195, 65, 0.2); z-index: 9998; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease;
}
.scroll-top-btn svg { width: 24px; height: 24px; }
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background-color: var(--green-hover); transform: translateY(-5px); box-shadow: 0 15px 25px rgba(129, 195, 65, 0.4); }

/* =========================================
   17. RESPONSIVE DESIGN (MOBILE)
========================================= */
@media (max-width: 1024px) {
  .hamburger { display: flex !important; }

  .nav-menu {
      position: fixed !important;
      top: 0;
      left: -100vw; /* 100vw statt 100% für exaktes Sliden außerhalb des Bildschirms */
      width: 100vw; /* Nimmt garantiert die exakte Breite des Handys ein */
      height: 100vh;
      background-color: rgba(18,18,18,0.98);
      backdrop-filter: blur(10px);
      display: flex !important; /* Wichtig für die Zentrierung! */
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: left 0.4s ease;
      gap: 40px;
      z-index: 10000;
      margin: 0;
      padding: 0;
  }

  .nav-menu.active { left: 0; }

  .nav-links {
      display: flex;
      flex-direction: column;
      align-items: center; /* Zentriert die Text-Links absolut exakt */
      justify-content: center;
      gap: 30px;
      width: 100%;
      padding: 0 !important; /* Tötet die Browser-Standard-Einrückung der Liste */
      margin: 0 !important;
  }

  .nav-links a {
      font-size: 2rem;
      text-align: center;
      display: block;
  }

  /* ... der Rest (wie .hamburger.active, .split-layout etc.) bleibt wie er ist ... */
    .nav-links a { font-size: 2rem; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .split-layout { flex-direction: column; }

    /* NEU: Macht das 2-Spalten-Bild auf dem Handy zum Vollbild-Hintergrund */
    .hero-split {
        flex-direction: column;
        justify-content: center;
        padding-top: 0;
        text-align: center;
        height: 100%; /* Passt sich exakt an den Slider an */
    }

    .hero-text-col {
        align-items: center;
        text-align: center;
        position: relative;
        z-index: 2; /* Text und Countdown in den Vordergrund heben */
        width: 100%;
    }

    .hero-img-col {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw; /* Bricht aus dem Container aus und nutzt die volle Breite */
        height: 100%;
        margin-top: 0;
        z-index: 0; /* Bild hinter den Text schieben */
        display: block;
    }

    .hero-person-img {
        max-height: none;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 10%; /* Fokus auf die Gesichter */
        opacity: 0.35; /* Stark abgedunkelt für perfekte Lesbarkeit des Textes */
    }

    .hero-img-col::after {
        display: none; /* Alten Farbverlauf deaktivieren */
    }

    .pricing-card.highlight { transform: scale(1); }
    .pricing-card.highlight:hover { transform: translateY(-5px); }

    .checkout-container { flex-direction: column; overflow-y: auto; }
    .checkout-sidebar { flex: 0 0 auto; padding: 20px; text-align: center; border-right: none; border-bottom: 1px solid var(--border-color);}
    /*.chosen-plan-card { height: 150px; }*/
    .checkout-form-area { flex: 0 0 auto; margin: 0; border-radius: 0; }
    .summary-split { flex-direction: column; }
    .stepper { flex-wrap: wrap; gap: 10px; }
    .step span { display: none; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .studio-slide { flex: 0 0 calc(50% - 15px); }
}

/* --- HERO SLIDER: LAYOUT-WEICHE, PFEILE & FIXES --- */
.slide { transition: opacity 1.2s ease-in-out !important; }

/* Sanfterer Schatten von unten, kein harter Schatten von der Seite */
.hero-img-col::after {
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 20%) !important;
}

#hero-prev { left: 30px; z-index: 100; }
#hero-next { right: 30px; left: auto; z-index: 100; }

.hero-split.layout-2 { justify-content: center !important; }
.hero-split.layout-2 .hero-text-col {
    align-items: center !important;
    text-align: center !important;
    flex: 0 0 100% !important;
    max-width: 900px;
    margin: 0 auto;
}

.countdown-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
    margin-top: 10px;
    width: 100%;
}

.hero-split.layout-1 .countdown-label { text-align: left; }
.hero-split.layout-1 .countdown { justify-content: flex-start; }

.hero-split.layout-2 .countdown-label { text-align: center; }
.hero-split.layout-2 .countdown { justify-content: center; width: 100%; }

/* DESKTOP SPALTEN-FIX & TEXT-UMBRUCH */
@media (min-width: 1025px) {
    .layout-1 .hero-text-col { flex: 0 0 55% !important; max-width: 55% !important; padding-right: 40px; }
    .layout-1 .hero-img-col { flex: 0 0 45% !important; max-width: 45% !important; justify-content: center !important; }
    .layout-2 .hero-text-col { max-width: 800px !important; }

    /* FIX: Verhindert den hässlichen Umbruch und passt die Größe sanft an */
    .layout-1 .hero-main-title {
        font-size: clamp(2.5rem, 4vw, 4.2rem) !important;
        white-space: normal;
        word-break: normal;
        hyphens: auto;
    }
}

@media (max-width: 768px) {
    #hero-prev { left: 10px; }
    #hero-next { right: 10px; }
}

@media (max-width: 768px) {
    .info-bar-container { flex-direction: column; align-items: flex-start; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px;}
    .gallery-item:nth-child(6n - 3), .gallery-item:nth-child(6n - 2) { grid-column: span 1; }
    .grid-2x2 { grid-template-columns: 1fr; }
    /* --- COUNTDOWN MOBILE FIX (Alles in einer Reihe) --- */
    .countdown {
        flex-wrap: nowrap; /* Zwingt alles in eine Zeile */
        gap: 8px; /* Verringert den Abstand zwischen den Boxen minimal */
        justify-content: center;
        width: 100%;
    }

    .time-box {
        padding: 10px 5px; /* Nimmt etwas von dem fetten Innenabstand weg */
        flex: 1; /* Alle Boxen teilen sich den Platz exakt zu 25% auf */
        min-width: 0; /* Erlaubt das Zusammenquetschen auf sehr kleinen Displays */
    }

    .time-box span {
        font-size: 1.4rem; /* Zahlen etwas kleiner machen */
    }

    .time-box small {
        font-size: 0.55rem; /* Text ("SEKUNDEN") kleiner machen */
    }
    .footer-grid { grid-template-columns: 1fr; }

    .karriere-hero h1 { text-align: center; }
    .collage-container { height: 400px; margin-bottom: 40px; }
    .img-top-right { height: 180px; }
    .img-middle-left { top: 100px; height: 180px; }
    .img-bottom-center { height: 180px; bottom: 0; }
    .lightbox-content { width: 95%; height: 60%; }
    .nav-btn { padding: 10px; font-size: 1.5rem; }

    .scroll-top-btn { bottom: 20px; right: 20px; width: 45px; height: 45px; }
    .studio-slide { flex: 0 0 100%; }
}


/* =========================================
   FIXES FÜR KARRIERE & PERSONAL TRAINING
========================================= */

/* 1. Verhindert, dass ultralange Wörter (z.B. "erfolgsorientiertes") den Handy-Bildschirm sprengen! */
h1, h2, h3, h4, .section-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    /*
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;*/
}

/* 2. Styling für die Karriere-Überschrift (ersetzt das starre HTML-Styling) */
.karriere-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    line-height: 1.2;
    font-family: var(--font-heading);
}

/* 3. Personal Training Bild (Verhindert, dass der Kopf abgeschnitten wird) */
.pt-img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: contain; /* Contain stellt sicher, dass das Bild komplett sichtbar bleibt */
    object-position: bottom; /* Fixiert das Bild am unteren Rand */
}


/* =========================================
   RESPONSIVE UPDATE: KARRIERE SEKTION (NUR EIN BILD)
========================================= */
@media (max-width: 768px) {

    /* --- HERO BILD MOBILE FIX --- */
    .focus-couple {
        /* 75% X-Achse: Zieht den rechten Teil des Bildes (wo das Pärchen steht) in die Mitte.
           10% Y-Achse: Zieht das Bild nach unten, damit die Köpfe nicht am oberen Rand abgeschnitten werden.
        */
        object-position: 25% 10% !important;
    }

    /* 1. Die beiden markierten Desktop-Bilder verstecken */
    .collage-container img.desktop-only-img {
        display: none !important;
    }

    /* 2. Den Container für das Einzelbild umbauen */
    .collage-container {
        display: block; /* Kein Flex/Grid nötig */
        height: auto; /* Die feste Höhe von 600px entfernen */
        min-height: 0;
        margin-bottom: 40px; /* Abstand zum Text darunter */
        width: 100%;
        text-align: center; /* Zentriert das Bild */
    }

    /* 3. Das ausgewählte Einzelbild stylen */
    .collage-container img.mobile-career-image {
        display: inline-block !important; /* Sichtbar machen */

        /* Alle absoluten Positionierungen entfernen */
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;

        /* Größe anpassen */
        width: 100%;
        max-width: 450px; /* Nicht zu riesig werden lassen */
        height: 280px; /* Feste, saubere Höhe für Mobile */

        /* Ästhetik */
        object-fit: cover; /* Füllt den Rahmen perfekt aus */
        border-radius: 8px; /* Passend zum Vitalounge-Stil */
        box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Der Schatten bleibt */
    }

    /* --- KURSPLAN MOBILE FIX (Ein Tag pro Ansicht) --- */
    .day-tabs {
        gap: 0; /* Lücke entfernen, damit 100% exakt passen */
        scroll-snap-type: x mandatory; /* Zwingt den Browser, auf einen Tag einzurasten */
    }

    .day-tab {
        flex: 0 0 100%; /* Nimmt exakt 100% des sichtbaren Bereichs ein */
        width: 100%;
        min-width: 100%;
        scroll-snap-align: center; /* Rastet immer mittig ein */
        text-align: center;
        padding: 12px 0;
    }
}

/* =========================================
   18. TYPO3 STANDARD ELEMENTE (Text/Bild, etc.)
========================================= */
.frame {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 60px 5vw !important;
    display: block !important;
    box-sizing: border-box !important;
    clear: both;
}

.frame header { margin-bottom: 30px; }
.frame header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--white);
    hyphens: auto;
}
.frame header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
}

.ce-bodytext {
    color: var(--text-muted);
    line-height: 1.7;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}
.ce-bodytext p { margin-bottom: 15px; }
.ce-bodytext p:last-child { margin-bottom: 0; }

.ce-textpic { display: block; width: 100%; }
.ce-textpic::after { content: ""; display: table; clear: both; }
.ce-gallery img { max-width: 100%; height: auto; border-radius: 8px; }

.ce-intext.ce-right .ce-gallery { float: right; margin-left: 40px; margin-bottom: 20px; max-width: 50%; }
.ce-intext.ce-left .ce-gallery { float: left; margin-right: 40px; margin-bottom: 20px; max-width: 50%; }

@media (max-width: 768px) {
    .frame { padding: 40px 5vw !important; }
    .ce-intext.ce-right .ce-gallery,
    .ce-intext.ce-left .ce-gallery {
        float: none;
        margin: 0 auto 30px auto;
        max-width: 100%;
        text-align: center;
    }
}

/* =========================================
   19. HERO SLIDER: MOBILE FIXES (KORRIGIERT)
========================================= */
@media (max-width: 1024px) {
    /* 1. Freigestellte Personen (Vordergrund) auf dem Handy komplett ausblenden */
    .hero-slider .desktop-only-img {
        /*display: none !important;*/
        opacity: 0.85 !important;
    }

    /* 2. Hintergrundbilder auf dem Handy immer stark abdunkeln (Opacity 0.15), damit Schrift lesbar bleibt */
    .hero-img-col img {
        opacity: 0.85 !important;
    }

    /* 3. Slider Höhe anpassen */
    .hero-slider {
        height: 85vh !important;
        min-height: 550px !important;
    }

    /* 4. DER FIX FÜR DIE TEXT-HÖHE: Nicht mehr zentrieren, sondern fest von oben anordnen! */
    .hero-split {
        flex-direction: column !important;
        justify-content: flex-start !important; /* Startet strikt oben */
        padding-top: 10vh !important; /* Schiebt die Texte auf beiden Slides exakt gleich weit nach unten */
    }

    .hero-text-col {
        padding: 0 15px !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
    }

    /* 5. Countdown in die Mitte zwingen */
    .hero-split.layout-1 .countdown-label,
    .hero-split.layout-2 .countdown-label { text-align: center !important; width: 100% !important; }
    .hero-split.layout-1 .countdown,
    .hero-split.layout-2 .countdown { justify-content: center !important; width: 100% !important; }
}

@media (max-width: 768px) {
    /* Überschrift auf dem Handy kompakter */
    .hero-main-title {
        font-size: clamp(2.2rem, 9vw, 3rem) !important;
        margin-bottom: 10px !important;
        line-height: 1.1 !important;
    }

    /* Countdown Boxen verkleinern */
    .countdown {
        gap: 5px !important;
        margin-bottom: 25px !important;
    }
    .time-box {
        padding: 10px 5px !important;
        min-width: 65px;
    }
    .time-box span { font-size: 1.3rem !important; }
    .time-box small { font-size: 0.55rem !important; }

    /* Pfeile an den Rand */
    #hero-prev { left: 5px !important; }
    #hero-next { right: 5px !important; }
}

/* =========================================
   FIX: 2. SPALTE ALS HINTERGRUND AUF MOBILE
========================================= */
@media (max-width: 1024px) {
    /* 1. Zwingt die Bild-Spalte aus dem normalen Fluss heraus in den absoluten Hintergrund */
    .hero-slider .hero-img-col {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100vw !important;
        height: 100% !important;
        z-index: 0 !important;
        display: block !important;
    }

    /* 2. Zieht das Bild formatfüllend auf und dunkelt es sanft ab, damit der Text strahlt */
    .hero-slider .hero-person-img {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        object-position: center 25% !important; /* Fokus etwas weiter oben (Gesichter) */
        opacity: 0.85 !important;
    }

    /* 3. Holt die Text-Spalte sicher in den Vordergrund */
    .hero-slider .hero-text-col {
        position: relative !important;
        z-index: 2 !important;
    }

    /* 4. Macht das Bild wieder sichtbar, falls mein alter Code es versteckt hatte! */
    .hero-slider .desktop-only-img {
        display: block !important;
    }
}

/* =========================================
   20. SMOOTH SCROLLING & HEADER OFFSET
========================================= */
html {
    scroll-behavior: smooth;
    /* Verhindert, dass Inhalte beim Scrollen unter der fixierten Navbar verschwinden */
    scroll-padding-top: 140px;
}

/* =========================================
   21. DROPDOWN MENÜ (SUBPAGES)
========================================= */

/* 1. Hauptmenüpunkt relativ setzen, damit das Submenü weiß, wo es "kleben" soll */
.nav-links li {
    position: relative;
    padding: 10px 0; /* Puffer, damit das Dropdown nicht sofort schließt, wenn man die Maus bewegt */
}

/* 2. Das versteckte Dropdown-Fenster */
.nav-links .submenu {
    position: absolute;
    top: 100%; /* Exakt unter dem Hauptmenüpunkt */
    left: 0;

    background: rgba(18, 18, 18, 0.95); /* Dunkel, passend zum Header */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Für Safari */

    list-style: none;
    padding: 10px 0;
    min-width: 220px;

    border: 1px solid var(--border-color);
    border-top: 3px solid var(--green); /* Cooler SGZ-Grün Akzent oben */
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);

    /* Verstecken & Animation vorbereiten */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
    gap: 0; /* Setzt das 30px Gap vom Hauptmenü zurück */
    z-index: 10000;
}

/* 3. Dropdown sanft einblenden, wenn man über den Hauptpunkt fährt */
.nav-links li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 4. Links im Untermenü stylen (etwas kleiner, nicht komplett in Großbuchstaben) */
.nav-links .submenu li {
    width: 100%;
}

.nav-links .submenu a {
    padding: 12px 25px;
    display: block;
    font-size: 0.9rem;
    text-transform: none;
    font-weight: 400;
    font-family: var(--font-text);
    text-align: left;
}

/* Hover-Effekt im Dropdown (wird grün und rückt leicht ein) */
.nav-links .submenu a:hover {
    background: rgba(129, 195, 65, 0.1);
    color: var(--green);
    padding-left: 30px;
}

/* =========================================
   MOBILE FIX FÜR DROPDOWN
========================================= */
@media (max-width: 1024px) {
    /* Auf dem Handy kein schwebendes Dropdown, sondern im Textfluss */
    .nav-links .submenu {
        position: relative;
        top: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* Erstmal ausblenden */
        padding: 0;
    }

    /* NEU: Wir steuern das Aufklappen jetzt sauber per JavaScript-Klasse */
    .nav-links li.mobile-open .submenu {
        display: flex !important;
    }

    /* Optisches Feedback: Der geklickte Hauptlink wird grün */
    .nav-links li.mobile-open > a {
        color: var(--green);
    }

    .nav-links .submenu a {
        text-align: center;
        font-size: 1.4rem; /* Auf dem Handy schön groß machen */
        padding: 10px;
        color: var(--text-muted); /* Zur Abhebung etwas grauer */
    }
}

/* =========================================
   22. DCE TEXT/BILD (MOBILE FIX)
========================================= */
@media (max-width: 1024px) {

    /* 1. Die Haupt-Box: Überschreibt das hartcodierte TYPO3 'row-reverse' */
    .dce-text-image-section .split-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important; /* Schöner Abstand zwischen Text und Bild */
    }

    /* 2. Die Spalte mit dem Text: Zwingt den Text IMMER nach oben */
    .dce-text-image-section .text-content {
        order: 1 !important;
        width: 100% !important;
        /* Optional: Zentriert den Text auf dem Handy für bessere Lesbarkeit */
        text-align: center !important;
    }

    /* 3. Die Spalte mit dem Bild: Zwingt das Bild IMMER nach unten */
    .dce-text-image-section .split-img {
        order: 2 !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

    /* Optional: Zentriert auch die Überschriften in diesem Block auf dem Handy */
    .dce-text-image-section .text-content h2,
    .dce-text-image-section .text-content h3 {
        text-align: center !important;
    }
}

/* =========================================
   23. DCE TEXT/BILD (MULTIPLE IMAGES FIX)
========================================= */
/* Container für die Bilder untereinander anordnen */
.dce-text-image-section .split-img {
    display: flex !important;
    flex-direction: column !important; /* Stapele die Bilder vertikal */
    gap: 30px !important; /* Schöner Abstand zwischen den Bildern */
    height: auto !important; /* Erlaubt dem Container, nach unten zu wachsen */
    justify-content: flex-start !important; /* Bilder fangen bündig oben an */
}

/* Die einzelnen Bilder anpassen */
.dce-text-image-section .split-img img {
    width: 100% !important;
    height: auto !important; /* Überschreibt das starre height: 100% aus dem HTML */
    max-height: 600px !important;
    object-fit: contain !important; /* Sorgt dafür, dass nichts abgeschnitten wird */
    object-position: center !important; /* Zentriert die Bilder sauber */
}

/* =========================================
   24. BILDER FADE-OUT EFFEKT (Vignette)
========================================= */

/* 1. Kanten des Lauffotos weicher machen
.dce-text-image-section .img-placeholder.split-img img {
    /* Safari & Chrome
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    /* Moderne Browser
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

/* 2. Kanten des weißen VIACTIV-Containers weicher machen
.dce-text-image-section .img-placeholder.split-img {
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    /* WICHTIG: Verhindert, dass das Bild über die weichen Ränder hinausragt
    overflow: hidden !important;
}

/* =========================================
   25. VIDEO MODAL & PLAY BUTTON OVERLAY
========================================= */
/* Das Play-Button Overlay auf der Trainings-Karte */
.video-trigger { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.3s; z-index: 5;
}
.video-overlay:hover { background: rgba(0,0,0,0.4); }
.play-icon {
    width: 60px; height: 60px; background: var(--green); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--bg-dark); font-size: 1.5rem; padding-left: 5px; /* Dreieck zentrieren */
    transition: transform 0.3s; box-shadow: 0 5px 15px rgba(129, 195, 65, 0.4);
}
.video-overlay:hover .play-icon { transform: scale(1.1); }

/* Das Kino (Modal) */
.video-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 100000;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.video-modal.active { opacity: 1; pointer-events: auto; }
.video-modal-content {
    position: relative; width: 95%; max-width: 1000px;
    background: #000; border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.video-modal-content video { width: 100%; height: auto; max-height: 85vh; display: block; }
.close-video-modal {
    background: none; border: none; color: var(--white); font-size: 3rem;
    cursor: pointer; transition: color 0.3s; margin-bottom: 10px; align-self: flex-end;
    margin-right: calc(50vw - 500px); /* Zentriert den Button über dem 1000px Video */
}
.close-video-modal:hover { color: var(--green); }

@media (max-width: 1050px) {
    .close-video-modal { margin-right: 2.5%; }
}

/* =========================================
   FIX: CHECKOUT BUTTONS MOBILE ABSTAND
========================================= */
.form-actions.split {
    gap: 15px; /* Standard-Abstand für Desktop */
}

@media (max-width: 768px) {
    .form-actions.split {
        flex-direction: column-reverse; /* "Zurück" wandert unter "Weiter" */
        gap: 15px;
    }
    .form-actions.split button {
        width: 100%; /* Buttons nehmen die volle Breite ein */
    }
}

/* =========================================
   FIX: DATUMSFELD (DATE INPUT) STYLING
========================================= */
.form-group input[type="date"] {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-text);
    font-size: 1rem;
    background: var(--bg-dark);
    color: var(--white);
    transition: border 0.3s;
    /* Macht das Feld auf Apple/iOS-Geräten sauberer */
    -webkit-appearance: none;
    appearance: none;
}

/* Grüne Linie beim Anklicken (Fokus) */
.form-group input[type="date"]:focus {
    outline: none;
    border-color: var(--green);
}

/* Das kleine Kalender-Icon (Chrome/Safari) weiß färben, damit es auf dem dunklen Grund sichtbar ist */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* =========================================
   26. STANDARD-LISTEN (TYPO3 RTE) STYLING
========================================= */

/* Die Standard-Liste anpassen (Punkte weg, Abstände rein) */
.ce-bodytext ul,
.text-module-body ul,
.accordion-content ul {
    list-style: none; /* Normale Punkte verstecken */
    padding-left: 0;
    margin: 15px 0 35px 0; /* Schöner Abstand nach oben und unten */
}

/* Die einzelnen Listenpunkte (li) stylen */
.ce-bodytext ul li,
.text-module-body ul li,
.accordion-content ul li {
    position: relative;
    padding-left: 35px; /* Platz für das Häkchen machen */
    margin-bottom: 12px;
    color: var(--text-muted); /* Ein edles Grau für den Text */
    line-height: 1.6;
}

/* Das grüne SGZ-Häkchen vor jeden Text setzen */
.ce-bodytext ul li::before,
.text-module-body ul li::before,
.accordion-content ul li::before {
    content: '✔'; /* Du kannst hier auch '→' oder '✓' eintragen */
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--green);
    font-size: 1.2rem;
}

/* Optional: Die fettgedruckten "Überschriften" (Was wir dir bieten:) noch etwas knackiger machen */
.ce-bodytext p strong,
.text-module-body p strong,
.accordion-content p strong {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

/* =========================================
   27. STYLING FÜR DROPDOWNS (SELECT) IM FORMULAR
========================================= */
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-text);
    font-size: 1rem;
    background: var(--bg-dark);
    color: var(--white);
    transition: border 0.3s;

    /* Zwingt den Browser, das Standard-Design zu verwerfen */
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;

    /* Fügt den SGZ-grünen Dropdown-Pfeil rechts ein */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2381C341%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.form-group select:focus {
    outline: none;
    border-color: var(--green);
}

/* Optional: Die "Bitte wählen" Option etwas ausgrauen */
.form-group select option[value=""] {
    color: var(--text-muted);
}

/* =========================================
   SPEZIAL-BUTTONS IM FOOTER (Kündigung & Widerruf)
========================================= */
/* Wir suchen gezielt nach Links in der Footer-Spalte, die "kuendigen" im Pfad haben */
.footer-col a[href*="kuendigen"],
.footer-col a[href*="kündigen"],
.footer-col a[href*="widerruf"] {
    display: inline-block;
    border: 1px solid var(--green);
    color: var(--green) !important;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 5px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Der schicke Hover-Effekt, passend zu euren anderen Buttons */
.footer-col a[href*="kuendigen"]:hover,
.footer-col a[href*="kündigen"]:hover,
.footer-col a[href*="widerruf"]:hover {
    background: var(--green);
    color: var(--bg-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(129, 195, 65, 0.2);
}
