/* ------------------------------------------------------------------- */
/* 🎨 GLOBALE CSS-STYLES: LERNLICHTER MASTER SHEET                     */
/* ------------------------------------------------------------------- */

/* ========================================= */
/* 1. BASIS, VARIABLEN & UTILITIES           */
/* ========================================= */
:root {
    /* Farben */
    --primary-dark: #1A1A2E;
    --primary: #16213E;
    --primary-light: #0F3460;
    --accent: #8B9DC3;
    --accent-dark: #6B7C99;
    --accent-gold: #D4AF37;
    --background: #F8F9FA;
    --background-alt: #FAFBFC;
    --surface: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-on-dark: #FFFFFF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* Schatten */
    --shadow-sm: rgba(26, 26, 46, 0.08);
    --shadow-md: rgba(26, 26, 46, 0.12);
    --shadow-lg: rgba(26, 26, 46, 0.15);

    /* Lernlichter Brand Colors */
    --llorange: #ff6600;
    --lblue: #367190;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; }   /* iOS Safari ignoriert overflow-x auf body allein */
body {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    padding-top: 96px; /* Platz für die schwebende Navbar */
    background-color: var(--surface); /* überall weiß (Farbe der Navbar) */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a { text-decoration: none; color: inherit; }
.invert { filter: invert(1); }

/* Scroll-Korrektur für Anker-Links */
html { scroll-padding-top: 100px; }

/* Trenner */
.section-divider {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--llorange) 100%);
}

/* Animationen */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }


/* ========================================= */
/* 2. NAVBAR                                 */
/* Die Navbar-Styles stehen weiter unten im  */
/* Abschnitt "SCHWEBENDE NAVBAR".            */
/* ========================================= */


/* ========================================= */
/* 3. LANDING PAGE (HEADER)                  */
/* ========================================= */
.landing-header {
    height: 85vh;
    min-height: 600px;
    width: 100%;
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* Desktop Default Padding (Navbar-Abstand wird per JS über body padding-top geregelt) */
    padding-top: 60px;
    box-sizing: border-box;
}

/* Linker Bereich: Text */
.header-content-left {
    width: 100%;
    max-width: 800px;
    padding-left: 5vw;
    padding-right: 2rem;
    z-index: 10;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 800; 
    color: var(--primary-dark);
    line-height: 1.1;
    margin-top: 0;
    text-align: left;
}

.highlight-orange { color: var(--llorange); display: inline-block; }

/* ========================================= */
/* Im Bereich: 3. LANDING PAGE (HEADER)      */
/* ========================================= */

.typewriter-text {
    white-space: nowrap;
    margin: 0;
    display: inline-block;
    vertical-align: baseline;
}

/* Jeder Buchstabe ist ein eigenes Element und startet unsichtbar.
   So erscheint garantiert ein Buchstabe nach dem anderen –
   unabhängig davon, wie breit die einzelnen Buchstaben sind. */
.typewriter-text .tw-letter {
    display: inline-block;
    opacity: 0;
    white-space: pre; /* erhält evtl. Leerzeichen */
}

/* Schreibmaschinen-Cursor: solide sichtbar, während getippt wird, und
   wandert mit, weil das JS jeden Buchstaben VOR dem Cursor einfügt. */
.typewriter-text .tw-caret {
    /* enthält ein zero-width-Zeichen -> übernimmt automatisch Höhe und
       Grundlinie der Schrift, sitzt dadurch bündig wie der restliche Text */
    border-right: .12em solid var(--llorange);
    margin-left: .04em;
}

/* Am Ende: dreimal blinken und dann verschwinden */
.typewriter-text .tw-caret.blinking {
    animation: blink-caret .5s step-end 3 forwards;
}

/* --- Einblend-Animation pro Buchstabe (läuft beim Einfügen) --- */
.fonts-loaded .typewriter-text .tw-letter {
    animation: letter-appear .09s ease forwards;
}

@keyframes letter-appear {
    from { opacity: 0; transform: translateY(0.08em); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--llorange); }
}

/* Schreib-Cursor für die Tipp-Animation der Abschnitte (Wer sind wir? / Was bieten wir an?) */

/* Rechter Bereich: Bild (Desktop Standard) */
.header-image-right {
    position: absolute;
    right: 2rem;       
    top: 60%;          /* Tiefer gesetzt für Desktop */
    animation: slideInImage 1.2s ease-out forwards;
    width: 45%;        
    max-width: 600px;
    z-index: 1;
    pointer-events: none; 
    opacity: 0.9; 
}

.header-image-right img {
    width: 100%;
    height: auto;      
    max-height: 80vh;  
    object-fit: contain; 
    display: block;
}

@keyframes slideInImage {
    0% { transform: translate(50%, -50%); opacity: 0; }
    100% { transform: translate(0, -50%); opacity: 0.9; }
}

/* Untertitel Sektion */
.subtitle-section {
    padding: 3rem 0;
    background: transparent;
    text-align: center;
}
.welcome-subtitle {
    font-size: 1.5rem; color: var(--text-primary); 
    max-width: 900px; margin: 0 auto;
    line-height: 1.6; font-weight: 600;
}


/* ========================================= */
/* 4. SEKTION: WER SIND WIR?                 */
/* ========================================= */
.about-section { padding: 4rem 0; background: transparent; }

.about-row { 
    display: flex; 
    flex-direction: column; /* Mobile first: untereinander */
    gap: 2rem;              
    align-items: center;    
    max-width: 1000px;      
    margin: 0 auto;
}

.profile-image-container {
    width: 100%; 
    max-width: 450px;       
    border-radius: 20px; 
    box-shadow: 0 10px 30px var(--shadow-md);
    transition: transform 0.4s ease;
    overflow: hidden;
    flex-shrink: 0;         
}
.profile-image-container:hover { transform: scale(1.02); }
.profile-image-container img { 
    width: 100%; height: auto; display: block; 
    transform: scale(2) translate(-4%, 8%); /* Bildausschnitt Korrektur */
}

.about-text { width: 100%; text-align: left; }
.about-text h2 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 1.5rem; text-align: left; }
.inline-logo { height: 1.2em; vertical-align: middle; transform: translateY(-2px); margin: 0 0.2rem; }


/* ========================================= */
/* 5. SEKTION: UNSER ANGEBOT                 */
/* ========================================= */
.offer-section { padding: 4rem 0; background: transparent; }

.offer-row {
    display: flex;
    flex-direction: column; /* Mobile first */
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.offer-text { width: 100%; text-align: left; }

/* "Jetzt Guthaben buchen": auf Mobil unter den Fächer-Icons (zentriert), auf Desktop im Textblock */
.leucht-btn.guthaben-cta-desktop { display: none; }
.leucht-btn.guthaben-cta-mobile { align-self: center; margin-top: 0; }

.section-title-left { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 1.5rem; font-weight: 700; }

.offer-visual-container {
    width: 100%; max-width: 520px;
    display: flex; align-items: center; justify-content: center;
}

.mini-subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; width: 100%;
}

.mini-subject {
    display: flex; flex-direction: column; 
    align-items: center; justify-content: center;
    text-align: center; padding: 0.5rem 0;
}
.mini-subject i { font-size: 1.8rem; color: var(--llorange); margin-bottom: 0.5rem; transition: transform 0.3s ease; }
.mini-subject span { font-size: 0.85rem; font-weight: 600; color: var(--primary-dark); }
.mini-subject:hover i { transform: scale(1.2); }


/* ========================================= */
/* 6. GUTHABEN & PREISE                      */
/* ========================================= */
.guthaben-section {
    padding: 4rem 0;
    background: transparent;
}
.angebot-title { text-align: center; font-size: 3rem; font-weight: 700; line-height: 1.25; margin-bottom: 2rem; margin-top: 0rem; }
.mobile-block { display: inline; }
.angebot-bottom { max-width: 1200px; margin: 5rem auto 6rem auto; text-align: center; }

/* --- Guthaben Intro + Schnupperstunde + Trust --- */
.guthaben-intro { padding: 3rem 1.5rem 0.5rem; text-align: center; }
.gh-title { font-size: 3rem; font-weight: 700; color: var(--primary-dark); margin: 0 0 0.5rem; }
.gh-subtitle { font-size: 1.15rem; color: var(--text-secondary); margin: 0 auto 2.5rem; max-width: 700px; }

.schnupper-box {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    max-width: 860px; margin: 0 auto; text-align: left;
    background: var(--surface);
    border: 1px solid var(--border-light); border-radius: 24px; padding: 1.5rem 2rem;
    box-shadow: 0 8px 20px var(--shadow-md);
}
.schnupper-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--llorange); margin-bottom: 0.3rem; }
.schnupper-text p { margin: 0; color: var(--text-primary); }
.leucht-btn.schnupper-btn { margin-top: 0; flex-shrink: 0; align-self: center; }

.trust-row {
    list-style: none; padding: 0; margin: 1.8rem auto 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem;
    color: var(--text-secondary); font-size: 0.95rem; font-weight: 600;
}
.trust-row li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-row i { color: var(--primary-dark); }

/* --- Tab-Umschalter (Einzel/Gruppe) --- */
.guthaben-booking { padding: 1rem 0 2rem; }
.gh-tabs {
    position: relative;
    display: flex; gap: 0.4rem; width: max-content; max-width: 92%;
    margin: 1.5rem auto 2.5rem; background: var(--border-light);
    border-radius: 999px; padding: 0.4rem;
}
.gh-tab {
    position: relative; z-index: 1;
    border: none; background: transparent; cursor: pointer; font-family: inherit;
    font-size: 1.05rem; font-weight: 600; color: var(--text-secondary);
    padding: 0.7rem 1.8rem; border-radius: 999px; transition: color 0.25s ease;
}
.gh-tab.is-active { color: var(--primary-dark); }
/* Gleitende weiße Pille hinter dem aktiven Tab (Position setzt nav.js) */
.gh-tab-slider {
    position: absolute; top: 0.4rem; bottom: 0.4rem; left: 0; width: 0;
    background: var(--surface); border-radius: 999px;
    box-shadow: 0 4px 12px var(--shadow-sm);
    transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1), width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.gh-panel { display: none; }
.gh-panel.is-active { display: block; animation: ghFade 0.35s ease; }
@keyframes ghFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gh-panel-intro { text-align: center; font-size: 1.2rem; color: var(--text-primary); max-width: 780px; margin: 0 auto 2.5rem; padding: 0 1.5rem; }

.leucht-grid {
    display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
    padding: 1rem 0 3rem 0;
}
.leucht-card {
    width: 300px; background: white; border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); padding-bottom: 2rem;
    text-align: center; transition: 0.3s ease;
}
.leucht-card:hover { transform: translateY(-6px); box-shadow: 0 14px 35px rgba(0,0,0,0.15); }
.leucht-img-wrapper {
    width: 100%; height: 180px; background: var(--llorange);
    border-radius: 20px 20px 0 0; display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin-bottom: 1rem;
}
.leucht-img-wrapper img { max-height: 150px; }
.leucht-title { font-size: 1.6rem; font-weight: 700; margin-top: 0.5rem; }
.leucht-sub { font-size: 1.1rem; color: #555; margin-top: 0.3rem; }
.leucht-price { font-size: 1.9rem; font-weight: 800; color: var(--primary-dark); margin-top: 0.6rem; }
.leucht-perhour { font-size: 0.95rem; color: var(--text-secondary); margin-top: 0.15rem; }

/* Hervorgehobenes Paket (Leuchtturm) */
.leucht-card { position: relative; }
.leucht-card.is-featured { border: 2px solid var(--llorange); box-shadow: 0 16px 40px rgba(255,102,0,0.22); }
.leucht-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--llorange); color: #fff; font-size: 0.8rem; font-weight: 700;
    padding: 0.35rem 1rem; border-radius: 999px; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255,102,0,0.35);
}
@media (min-width: 768px) {
    .leucht-card.is-featured { transform: scale(1.05); }
    .leucht-card.is-featured:hover { transform: scale(1.05) translateY(-6px); }
}
@media (max-width: 600px) {
    .gh-title { font-size: 2.2rem; }
    .schnupper-box { flex-direction: column; text-align: center; }
    .schnupper-eyebrow { justify-content: center; }
    .schnupper-btn { width: 100%; }

    /* Abschluss-Titel: kleiner + kontrollierter Umbruch ("Wir freuen uns / auf dich!") */
    .angebot-title { font-size: 2.2rem; }
    .mobile-block { display: block; }

    /* Buttons nie breiter als der Viewport */
    .leucht-btn { max-width: 100%; padding: 0.8rem 1.4rem; }

    /* Tab-Umschalter: passt sonst nicht in schmale Viewports */
    .gh-tab { font-size: clamp(0.8rem, 3.8vw, 1.05rem); padding: 0.7rem 1rem; }
}

/* --- "Wir freuen uns auf dich!": Funke fällt auf den Schriftzug (Position setzt nav.js) --- */
.funke-stage { position: relative; }
.funke-flyer, .funke-trail, .funke-particle {
    position: absolute; left: 0; top: 0; border-radius: 50%;
    pointer-events: none; z-index: 3;
    background: radial-gradient(circle, rgba(255,205,130,1) 0%, rgba(255,102,0,0.9) 40%, rgba(255,102,0,0) 70%);
}
.funke-flyer { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
/* Länglicher Kometen-Schweif, zeigt per rotate() (setzt nav.js) entgegen der Flugrichtung */
.funke-flyer::before {
    content: ""; position: absolute; right: 50%; top: 50%;
    width: 80px; height: 8px; transform: translateY(-50%);
    background: linear-gradient(to left, rgba(255,170,80,0.85), rgba(255,110,10,0.35) 55%, rgba(255,102,0,0));
    border-radius: 999px; filter: blur(1.2px);
}
.funke-trail {
    width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
    opacity: 0.45; filter: blur(3px); transition: opacity 0.38s ease-out;
}
.funke-trail.fade { opacity: 0; }
.funke-particle { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; opacity: 1; transition: transform 0.65s ease-out, opacity 0.65s ease-out; }

.funke-stage .funke-target { transition: color 0.35s ease; }
.funke-stage .funke-target.is-lit {
    color: var(--llorange);
    animation: funkePop 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97),
               freudeGlow 2.8s ease-in-out 0.5s infinite alternate;
    text-shadow: 0 0 16px rgba(255, 140, 40, 0.4);
}
@keyframes funkePop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}
@keyframes freudeGlow {
    from { text-shadow: 0 0 12px rgba(255, 140, 40, 0.3); }
    to   { text-shadow: 0 0 26px rgba(255, 140, 40, 0.6); }
}
@media (prefers-reduced-motion: reduce) {
    .funke-stage .funke-target.is-lit { animation: none; }
}

/* --- Animierte Paket-Icons (Einzel-Karten, inline-SVG) --- */
.leucht-icon { overflow: visible; }

/* Leuchtfunke: Stern pulsiert sanft, Mini-Funkel blitzen versetzt auf */
.icon-funke .funke-star {
    transform-box: fill-box; transform-origin: center;
    animation: funkeStarPulse 3.6s ease-in-out infinite;
}
@keyframes funkeStarPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.07); }
}
.icon-funke .funke-mini {
    transform-box: fill-box; transform-origin: center;
    opacity: 0; animation: funkeMiniBlink 3.6s ease-in-out infinite;
}
.icon-funke .funke-mini-1 { animation-delay: 0.9s; }
.icon-funke .funke-mini-2 { animation-delay: 2.7s; }
@keyframes funkeMiniBlink {
    0%, 24%, 100% { opacity: 0; transform: scale(0.4); }
    8%            { opacity: 1; transform: scale(1); }
    16%           { opacity: 1; transform: scale(1); }
}

/* Lichterkette: 5 Lämpchen gehen nacheinander an (Lauflicht) */
.icon-kette .lk-bulb { opacity: 0.35; animation: lkOn 4s linear infinite; animation-delay: var(--lkd); }
.icon-kette .lk-glow { opacity: 0;    animation: lkGlowOn 4s linear infinite; animation-delay: var(--lkd); }
@keyframes lkOn {
    0%, 100% { opacity: 0.35; }
    6%, 26%  { opacity: 1; }
    34%      { opacity: 0.35; }
}
@keyframes lkGlowOn {
    0%, 100% { opacity: 0; }
    6%, 26%  { opacity: 0.35; }
    34%      { opacity: 0; }
}

/* Leuchtturm: Strahlen leuchten abwechselnd (rotierendes Leuchtfeuer) */
.icon-turm .lt-left  { animation: ltBeam 3.2s ease-in-out infinite; }
.icon-turm .lt-right { animation: ltBeam 3.2s ease-in-out infinite; animation-delay: -1.6s; }
@keyframes ltBeam {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
    .icon-funke .funke-star, .icon-funke .funke-mini,
    .icon-kette .lk-bulb, .icon-kette .lk-glow,
    .icon-turm .lt-left, .icon-turm .lt-right { animation: none; }
    .icon-kette .lk-glow { opacity: 0; }
    .icon-funke .funke-mini { opacity: 0; }
}
.leucht-btn {
    display: inline-block; padding: 0.8rem 1.8rem; margin-top: 1.5rem;
    background: var(--llorange); color: white; font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(255,102,0,.22);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
/* „Leuchten" beim Hover: anheben + warmer Glow */
.leucht-btn:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,102,0,.48);
}
.leucht-btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .leucht-btn:hover { transform: none; }
}
/* Umkehrbarer Text-Roll wie in der Navbar (Struktur wird per nav.js eingefügt) */
.leucht-btn { overflow: hidden; white-space: nowrap; }
.leucht-btn .roll { display: block; overflow: hidden; height: 1.3em; }
.leucht-btn .roll-stack { display: flex; flex-direction: column; transition: transform 0.42s ease; }
.leucht-btn .roll-stack > span { display: block; height: 1.3em; line-height: 1.3em; }
.leucht-btn:hover .roll-stack { transform: translateY(-1.3em); }
/* Mobil (kein Hover): Roll-Mechanik aus -> lange Button-Texte brechen um statt abzuschneiden */
@media (max-width: 768px) {
    .leucht-btn { white-space: normal; text-align: center; }
    .leucht-btn .roll { height: auto; overflow: visible; }
    .leucht-btn .roll-stack { display: block; }
    .leucht-btn .roll-stack > span { height: auto; line-height: 1.3; }
    .leucht-btn .roll-stack > span + span { display: none; }
}
/* CTA mit zwei Längen: kurze Variante nur mobil, lange nur ab Tablet */
.leucht-btn.cta-desktop-only { display: none; }
@media (min-width: 768px) {
    .leucht-btn.cta-mobile-only { display: none; }
    .leucht-btn.cta-desktop-only { display: inline-block; }
}

/* ========================================= */
/* TEAM SEITE                     */
/* ========================================= */

.team-section {
    padding: 4rem 0 4rem 0;
    background: transparent;
}

.team-main-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    position: relative; /* Bezug für den animierten Strich */

    padding-bottom: 1.5rem;
    margin-bottom: 4rem;

    /* Breite begrenzt auf 1000px */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Der dicke orange Strich – wächst beim Laden aus der Mitte nach außen auf */
.team-main-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--llorange);
    transform: scaleX(0);
    transform-origin: center;
    /* sehr schnell starten, gegen Ende ganz sanft auslaufen; ~4s gesamt */
    animation: teamTitleLineGrow 4s cubic-bezier(0.05, 0.85, 0.1, 1) 0.15s forwards;
}

@keyframes teamTitleLineGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Wer keine Animation möchte, sieht den Strich sofort vollständig */
@media (prefers-reduced-motion: reduce) {
    .team-main-title::after {
        animation: none;
        transform: scaleX(1);
    }
}

/* Die einzelne Zeile pro Lehrer */
.team-row {
    display: flex;
    flex-direction: column; /* Mobile: Immer untereinander */
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    position: relative; /* Bezug für die zentrierte Trennlinie */

    padding-bottom: 4rem;
    margin: 0 auto 4rem auto;
}

/* Trennlinie 2px – zentriert, nur 60% der Reihenbreite */
.team-row::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--border);
}

/* Der letzte Lehrer hat KEINEN Strich */
.team-row:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}
.team-row:last-child::after {
    display: none;
}

/* Kontakt-CTA am Ende der Team-Section.
   margin-top = padding-bottom der .team-section (4rem) -> Abstand zum
   letzten Lehrer = Abstand zum Footer. */
.team-cta {
    text-align: center;
    max-width: 1000px;
    margin: 4rem auto 0 auto;
}
.team-cta h2 {
    margin-bottom: 0.4rem;
    line-height: 1.2;
}
.team-cta .leucht-btn {
    display: inline-block;
}

/* Styling für die "Fetten Fächer" */
.team-subjects {
    color: var(--llorange); 
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
}

/* Quadratische Bilder Logik */
.team-row .profile-image-container {
    aspect-ratio: 1 / 1; 
    width: 100%; 
    
    /* ÄNDERUNG: Kleineres Bild (vorher 350px) */
    max-width: 250px; 
    
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-md);
    overflow: hidden;
    margin: 0 auto;
}

.team-row .profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transform: none; 
}


/* DESKTOP ANPASSUNGEN (ab Tablet Größe) */
@media (min-width: 768px) {
    
    .team-row {
        flex-direction: row; 
        gap: 4rem;
        text-align: left;
    }

    .team-row.reverse-layout {
        flex-direction: row-reverse;
    }

    .team-row .profile-image-container {
        /* ÄNDERUNG: Auch hier fix auf 250px setzen */
        width: 250px; 
        flex-shrink: 0; 
        margin: 0;
    }

    .team-row .about-text {
        /* ÄNDERUNG: Berechnung an neue Bildbreite anpassen */
        /* 100% - 250px Bild - 4rem Lücke */
        width: calc(100% - 250px - 4rem); 
        text-align: left;
    }
}

/* ========================================= */
/* 7. KONTAKT                                */
/* ========================================= */
.contact-section { padding: 4rem 0 6rem; background: transparent; }
.contact-row { display: flex; flex-direction: column; gap: 3rem; align-items: center; }

.contact-details { order: 1; text-align: center; max-width: 500px; }
.contact-details h2 { font-size: 2.5rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 1rem; }
.contact-details p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; }

.contact-info { display: flex; flex-direction: row; gap: 0.8rem; align-items: stretch; }
/* Tappbare Kontakt-Karten: Icon oben, Text darunter, alles zentriert */
.contact-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem;
    padding: 1.1rem 0.9rem; flex: 1; min-width: 0;
    background: var(--surface); border-radius: 14px; border: 1px solid var(--border-light);
    text-decoration: none; color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px var(--shadow-md); border-color: var(--accent); }
.contact-card strong { color: var(--primary); font-size: 1rem; }
.contact-card .contact-value { color: var(--text-secondary); font-size: 0.85rem; word-break: break-word; }

.contact-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    color: white; flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.cta-message {
    font-size: 1.4rem !important; font-weight: 700; color: var(--primary-light);
    margin-top: 3rem; text-align: center; text-transform: uppercase; letter-spacing: 0.1em;
    animation: pulse 1.5s infinite;
}

.contact-form-col { order: 2; width: 100%; max-width: 500px; }
.form-title { font-size: 1.2rem; font-weight: 600; text-align: center; margin-bottom: 1.5rem; color: var(--primary-dark); }
.form-wrapper-new {
    width: 100%; min-height: 620px; height: 80vh;
    border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-md); overflow: hidden; background: white;
}
.form-wrapper-new iframe { width: 100%; height: 100%; border: none; }


/* ========================================= */
/* 8. FOOTER                                 */
/* ========================================= */
#impressum, #datenschutz { padding: 4rem 1rem; background: transparent; }
#impressum h2, #datenschutz h1 { text-align:center; margin-bottom:2rem; font-size: 2.5rem; }

/* Minimaler Footer: Links + Copyright, ohne farbliche Unterlegung */
.footer { background: transparent; padding: 2.5rem 1rem; text-align: center; }
/* Dünne, hellgraue Trennlinie über dem Footer – bündig mit dem Seiteninhalt (max. 1000px) */
.footer::before {
    content: "";
    display: block;
    width: 100%;
    max-width: 1000px;
    height: 1px;
    background: var(--border);
    margin: 0 auto 2rem;
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 0.9rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 600; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--llorange); }
.footer-copy { font-size: 0.85rem; color: var(--text-secondary); }


/* ========================================= */
/* 9. DESKTOP ERWEITERUNGEN (Min-Width)      */
/* ========================================= */

/* --- Tablet & kleiner Desktop (ab 768px) --- */
@media (min-width: 768px) {
    .container { padding: 0 2rem; }

    /* HIER IST DER NEUE TEIL FÜR DAS IPAD: */
    .header-image-right {
        /* Vorher war hier nichts definiert (also Standard 60%) */
        /* Jetzt: 50% -> Zieht das Logo auf dem Tablet nach oben */
        top: 50%; 
        width: 45%; /* Sicherheitshalber Breite definieren */
    }

    /* (Navbar-Desktop-Regeln entfernt – die Live-Navbar stylt sich selbst im
       Abschnitt "SCHWEBENDE NAVBAR". Alte .nav-links/.menu-toggle/.nav-container
       waren Altcode der früheren Navbar und kollidierten nach der Umbenennung.) */

    /* About Section Layout */
    .about-row { 
        flex-direction: row;     
        align-items: center;     
        gap: 4rem;               
        text-align: left;        
    } 
    .profile-image-container { width: 45%; max-width: none; margin: 0; }
    .about-text { width: 55%; text-align: left; margin: 0; }

    /* Angebot Section Layout */
    .offer-row {
        flex-direction: row;
        gap: 4rem;
        justify-content: space-between;
        align-items: flex-start;   /* Icon-Bereich oben am Text verankern -> wächst nach unten */
    }
    .offer-text { width: 48%; order: 1; margin-bottom: 0; text-align: left; }
    .offer-visual-container {
        width: 48%; max-width: none; order: 2;
    }
    .leucht-btn.guthaben-cta-desktop { display: inline-block; }
    .leucht-btn.guthaben-cta-mobile { display: none; }
    .mini-subject { aspect-ratio: 1 / 1; }
    .mini-subject i { font-size: 2.2rem; margin-bottom: 0; }

    /* Kontakt Layout */
    .contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
    .contact-details { text-align: left; max-width: none; }
    .contact-info { flex-direction: row; gap: 1.2rem; align-items: stretch; }
    .contact-card { margin: 0; flex: 1; padding: 1.5rem 1.2rem; gap: 0.5rem; }
    .contact-card strong { font-size: 1.1rem; }
    .contact-card .contact-value { font-size: 0.95rem; }
    .contact-icon { width: 50px; height: 50px; }
    .contact-icon svg { width: 26px; height: 26px; }
    .contact-form-col { display: flex; flex-direction: column; height: 100%; flex-grow: 1; max-width: none; }
    .form-wrapper-new { flex-grow: 1; height: calc(100% - 60px); min-height: 620px; margin-bottom: 2rem; }
    .form-title { text-align: center; margin-top: 0; }
    
    .footer-container { grid-template-columns: 1fr 1fr; }
}

/* --- Großer Desktop (ab 992px) --- */
@media (min-width: 992px) {
    /* Hero kompakter -> alles weiter oben; Text bleibt vertikal mittig (auf Logo-Höhe). Nur Desktop. */
    .landing-header { height: auto; min-height: 760px; padding-top: 0; align-items: center; }

    /* 1. Schriftgröße normalisieren (wie vorher) */
    .welcome-title {
        font-size: 5rem;
    }
    
    /* 2. Logo Positionierung */
    .header-image-right {
        width: 45%;
        right: 5%;
        /* Logo vertikal mittig -> auf gleicher Höhe wie der Text */
        top: 50%;
    }
    
    .header-image-right img {
        width: 100%; 
    }

    /* Nur der Untertitel direkt unter dem Hero (Startseite) braucht oben mehr
       Platz wegen des großen, absolut positionierten Logos. Per Nachbar-
       Selektor begrenzt, damit andere subtitle-sections (z.B. Schnupperstunde
       auf der Angebotsseite) symmetrisch bleiben. */
    .landing-header + .subtitle-section {
        padding-top: 180px;
    }
}

/* --- Extra Groß (ab 1024px) --- */
@media (min-width: 1024px) {
    .logo { height: 80px; }
    .footer-container { grid-template-columns: repeat(4, 1fr); }
    html { scroll-padding-top: 125px; }
    body { padding-top: 96px; /* Platz für die schwebende Pill-Navbar */ }
}


/* ========================================= */
/* 10. MOBILE FIXES (Smartphone only)        */
/* ========================================= */
/* Diese Regeln überschreiben alles andere auf kleinen Bildschirmen */

@media (max-width: 768px) {

    /* --- Header Bereich --- */
    .landing-header {
        flex-direction: column; 
        justify-content: flex-start; 
        padding-top: 60px !important;  /* Navbar-Abstand wird per JS über body padding-top geregelt */
        padding-bottom: 2rem;
        min-height: auto !important; 
        height: auto;
        overflow: hidden;
    }

    /* --- Text Container --- */
    .header-content-left {
        padding-left: 1.5rem !important; /* Abstand zum Rand */
        padding-right: 1.5rem !important;
        margin-bottom: 2.5rem !important; 
        max-width: none;
        width: 100%;
    }

    .welcome-title {
        font-size: 3rem; 
        margin-bottom: 0;
        word-wrap: break-word; 
    }

    /* --- Logo Mobile --- */
    .header-image-right {
        position: relative !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        right: auto !important;
        top: auto !important;
        
        width: 100% !important;
        opacity: 1 !important;
        
        display: flex;
        justify-content: center;
        align-items: center;
        transform: none !important;
        animation: none; 
    }

    .header-image-right img {
        width: 95% !important;         
        max-width: 100% !important;
        height: auto;
    }

    /* --- Text Zentrierungen Mobile --- */
    .about-text, .about-text h2, .about-text p,
    .offer-text, .section-title-left, .offer-text p,
    .offer-text > div {
        text-align: center !important;
    }
    
    .offer-text > div {
        margin-top: 2rem;
        width: 100%;
        justify-content: center;   /* Buttons mittig auf Mobil */
    }
}

#gruppenkarten .leucht-btn {
    display: block;
    width: 60%;
    margin: 0.8rem auto 0 auto;
}   

/* SEO: visually hidden but readable by search engines and screen readers */
.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;
}

/* ------------------------------------------------------------------- */
/* FAQ SECTION                                                           */
/* ------------------------------------------------------------------- */
.faq-section {
    padding: 4rem 0;
    background: transparent;
}

.faq-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

/* FAQ zweispaltig auf Desktop (spart Platz). Zwei UNABHÄNGIGE Spalten:
   Aufklappen verlängert nur die eigene Spalte, nicht beide.
   Mobil bleibt .faq-col ein normaler Block -> alle Items untereinander. */
@media (min-width: 768px) {
    .faq-columns { display: flex; align-items: flex-start; gap: 1.25rem; }
    .faq-col { flex: 1; min-width: 0; }
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.faq-item summary {
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    flex-shrink: 0;
    color: var(--primary, #e8763a);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

/* Geöffnete Frage: oranger Strich links im Kasten (inset -> kein Layout-Versatz) */
.faq-item[open] {
    box-shadow: inset 4px 0 0 var(--llorange);
}
.faq-item[open] summary {
    border-bottom: 1px solid #e5e7eb;
}

.faq-answer {
    padding: 1.1rem 1.4rem;
    color: #444;
    line-height: 1.7;
}

.faq-answer ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

.faq-answer li {
    margin-bottom: 0.3rem;
}

.faq-answer a {
    color: var(--primary, #e8763a);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------- */
/* HOW IT WORKS GRID                                                     */
/* ------------------------------------------------------------------- */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.how-step {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s;
}

.how-step:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.how-step-icon {
    font-size: 2rem;
    color: var(--primary, #e8763a);
    margin-bottom: 0.75rem;
}

.how-step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.how-step p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================== */
/* SCHWEBENDE NAVBAR (alle Seiten)                  */
/* ===================================================== */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.55); /* transparenter */
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 40px rgba(26, 26, 46, 0.16);
    max-width: calc(100% - 32px);
}

.navbar-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 6px;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.navbar-logo img { height: 42px; width: auto; display: block; }
.navbar-logo:hover { transform: scale(1.06); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0 6px;
}
.nav-links a {
    display: block;
    padding: 11px 18px;
    border-radius: 40px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
    white-space: nowrap;
    line-height: 1.3em;
}
/* Umkehrbarer Text-Roll: hover = hoch, Maus weg = rückwärts zurück */
.nav-links a .roll { display: block; overflow: hidden; height: 1.3em; }
.nav-links a .roll-stack { display: flex; flex-direction: column; transition: transform 0.42s ease; }
.nav-links a .roll-stack > span { display: block; height: 1.3em; line-height: 1.3em; }
.nav-links a:hover .roll-stack { transform: translateY(-1.3em); }

/* Kopier-Pille rechts (E-Mail / Telefon) */
.copy-pill {
    font-family: inherit;
    border: none;
    cursor: pointer;
    border-radius: 40px;
    padding: 13px 24px;
    font-weight: 600;
    font-size: 1.02rem;
    background: var(--primary-dark);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.18s ease, background 0.2s ease;
}
.cp-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.12s ease, transform 0.12s ease;
}
.cp-label.out { opacity: 0; transform: translateY(-9px); }
.cp-label.in  { opacity: 0; transform: translateY(9px); }
.copy-phone { display: none; }   /* nur mobil */

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 50%;
}
.menu-toggle:hover { background: rgba(26, 26, 46, 0.06); }

@media (max-width: 768px) {
    .navbar {
        top: 10px;               /* etwas weiter oben auf Mobil */
        left: 16px;
        right: 16px;
        transform: none;
        max-width: none;
        justify-content: space-between;  /* Logo links, Burger rechts */
    }
    /* Logo links, Burger rechts (im Fluss) – Telefon-Pille mittig darüber zentriert */
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .copy-phone {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.92);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        backdrop-filter: blur(16px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.7);
        box-shadow: 0 14px 40px rgba(26, 26, 46, 0.16);
    }
    .navbar.open .nav-links { display: flex; }
    .nav-links a { text-align: center; padding: 14px; }
    .copy-email { display: none; }
    .copy-phone { display: inline-flex; }
    .copy-pill { padding: 13px 20px; }

    body { padding-top: 76px; }   /* etwas weniger Abstand auf Mobil (Navbar sitzt höher) */
}

/* ===================================================== */
/* SCHWEBENDE FÄCHER-ICONS (Index: "Was bieten wir an?")  */
/* ===================================================== */
.faecher-circle {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: visible;
}
.faecher-icon {
    position: absolute;
    cursor: pointer;
    /* Zentrierung + dezentes Ausweichen der Nachbarn (--px/--py per JS gesetzt) */
    transform: translate(-50%, -50%) translate(var(--px, 0px), var(--py, 0px));
    transition: transform 0.3s ease;
}
.faecher-float {
    display: block;
    position: relative;          /* Bezug für die Pille darunter */
    animation: floatBob var(--dur, 5s) ease-in-out infinite;
    will-change: transform;
}
/* Rotation aus dem JS + optionales Vergrößern des aktiven Icons */
.faecher-icon img {
    display: block;
    height: var(--sz, 64px);
    width: auto;
    transform: rotate(var(--rot, 0deg)) scale(var(--iscale, 1));
    transition: transform 0.25s ease;
}
/* Aktives Icon (Pille steht darunter): gerade stellen (Rotation 0) + leicht größer */
.faecher-icon.is-active img { transform: rotate(0deg) scale(1.12); }
@keyframes floatBob {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(var(--dx, 0px), var(--dy, -10px)); }
}

/* Fach-Pille: öffnet sich unter dem Icon, schwebt mit, fadet nach 3s sanft aus */
.faecher-label {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 6px;
    padding: 4px 12px;
    background: #fff;
    color: #2a2a2a;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(-4px) scale(0.9);
    transform-origin: top center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}
.faecher-icon.is-active .faecher-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* ===================================================== */
/* Farbliche Eck-Akzente NUR auf der Startseite          */
/* (Blau/Orange, oben links/rechts + unten links/rechts) */
/* ===================================================== */
body.home {
    background-image:
        /* GEZIELT PLATZIERT #1: Blau am linken Rand, unter "Willkommen bei Lernlichter!" – gestreut/weich */
        radial-gradient(50vw 40vh at 0% 820px, rgba(54, 113, 144, 0.30), transparent 72%),
        /* GEZIELT PLATZIERT #2: Orange am rechten Rand, zwischen "Wer sind wir?" und "Was bieten wir an?" */
        radial-gradient(50vw 40vh at 112% 1250px, rgba(255, 102, 0, 0.30), transparent 72%),
        /* 4 Eck-Akzente (kräftiger) */
        radial-gradient(50vw 36vh at 0% 0%,     rgba(255, 102, 0, 0.34),  transparent 60%),
        radial-gradient(50vw 36vh at 100% 0%,   rgba(54, 113, 144, 0.34), transparent 60%),
        radial-gradient(50vw 36vh at 0% 100%,   rgba(54, 113, 144, 0.46), transparent 60%),
        radial-gradient(50vw 36vh at 100% 100%, rgba(255, 102, 0, 0.34),  transparent 60%);
    background-repeat: no-repeat;
}

/* Nur die 4 Eck-Akzente (für Unterseiten außer Datenschutz/Impressum) */
body.accents {
    background-image:
        radial-gradient(50vw 36vh at 0% 0%,     rgba(255, 102, 0, 0.34),  transparent 60%),
        radial-gradient(50vw 36vh at 100% 0%,   rgba(54, 113, 144, 0.34), transparent 60%),
        radial-gradient(50vw 36vh at 0% 100%,   rgba(54, 113, 144, 0.46), transparent 60%),
        radial-gradient(50vw 36vh at 100% 100%, rgba(255, 102, 0, 0.34),  transparent 60%);
    background-repeat: no-repeat;
}

/* ===================================================== */
/* "So funktioniert es" – Pfad/Timeline mit Leuchtpunkt  */
/* ===================================================== */
.how-section { padding: 4rem 0; }
.how-title { text-align: center; margin-bottom: 3rem; font-size: 2rem; color: var(--primary-dark); }

.timeline { position: relative; max-width: 880px; margin: 0 auto; }

/* Linie (Track grau) + gezeichnete schwarze Linie + orangener Leuchtpunkt */
.tl-line, .tl-line-fill {
    position: absolute; left: 50%; width: 2px;
    transform: translateX(-50%); border-radius: 2px; top: 0; height: 0;
}
.tl-line { background: var(--border); }
.tl-line-fill { background: #111; z-index: 1; }
/* Leuchtpunkt: weicher Markenorange-Glühfleck (#ff6600), leicht pulsierend */
.tl-dot {
    position: absolute; left: 50%; top: 0; width: 34px; height: 34px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,170,90,1) 0%, rgba(255,102,0,0.9) 32%, rgba(255,102,0,0) 70%);
    opacity: 0; transition: opacity 0.25s ease; z-index: 2; pointer-events: none;
}
.timeline.tl-armed .tl-dot { opacity: 1; animation: tlDotPulse 1.8s ease-in-out infinite; }
@keyframes tlDotPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.9); }
    50%      { transform: translate(-50%, -50%) scale(1.12); }
}

/* Stationen */
.tl-step { position: relative; min-height: 132px; display: flex; align-items: center; }
.tl-step[data-side="left"]  { justify-content: flex-start; }
.tl-step[data-side="right"] { justify-content: flex-end; }
.tl-card { width: 42%; }
.tl-step[data-side="left"]  .tl-card { text-align: right; padding-right: 70px; }
.tl-step[data-side="right"] .tl-card { text-align: left;  padding-left: 70px; }
.tl-card h3 { color: var(--primary-dark); font-size: 1.2rem; margin-bottom: 0.4rem; }
.tl-card p  { color: var(--text-secondary); line-height: 1.6; }
.tl-card .hl { color: var(--llorange); }
/* Text erscheint sanft, sobald die Station erreicht ist (nur wenn JS aktiv -> tl-js) */
.timeline.tl-js .tl-card { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.timeline.tl-js .tl-step.is-active .tl-card { opacity: 1; transform: translateY(0); }

/* Icon-Knoten auf der Linie */
.tl-node {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 62px; height: 62px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid var(--border);
    color: var(--primary-dark); font-size: 1.4rem; z-index: 3;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.tl-node img { width: 34px; height: 34px; object-fit: contain; display: block; }
/* Erreicht: Markenorange-Kreis + Streuen direkt daran (kein heller Zwischenring), Knoten wird größer.
   Icon-Symbol bleibt dunkel. */
.tl-step.is-active .tl-node {
    border-color: var(--llorange);
    box-shadow: 0 0 28px 6px rgba(255, 102, 0, 0.6);
    transform: translate(-50%, -50%) scale(1.18);
}

.how-cta { text-align: center; margin-top: 3rem; }

/* Mobil: Linie links, Karten rechts */
@media (max-width: 768px) {
    .tl-line, .tl-line-fill, .tl-dot { left: 31px; }
    .tl-step { justify-content: flex-start; min-height: 112px; }
    .tl-step + .tl-step { margin-top: 2rem; }
    .tl-node { left: 31px; }
    .tl-card { width: auto; flex: 1; }
    .tl-step[data-side="left"]  .tl-card,
    .tl-step[data-side="right"] .tl-card { text-align: left; padding: 0 0 0 100px; }
}

/* Trennlinie zwischen "Wer sind wir?" und "Was bieten wir an?" – nur Startseite, wie auf der Team-Seite */
body.home .about-section { position: relative; }
body.home .about-section::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80%); height: 2px;
    background: var(--border);
}

/* Trennlinien zwischen den Abschnitten der Angebotsseite (wie Team/Startseite) */
body.angebot .offer-section,
body.angebot .how-section { position: relative; }
body.angebot .offer-section::after,
body.angebot .how-section::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80%); height: 2px;
    background: var(--border);
}

/* ============================================================
   Empfehlungs-Aktion – „1 Stunde geschenkt" (Popup, nur guthaben.html)
   Der Kasten oben in der Intro nutzt das bestehende .schnupper-box-Design
   (Inhalt: Empfehlung), CTA „So funktioniert es" öffnet das Popup.
   Farben aus den Brand-Tokens (Orange/Navy/Weiß).
   ============================================================ */

/* Eyebrow – wird vom Popup genutzt */
.empf-eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--llorange); margin-bottom: 0.35rem;
}

/* --- Empfehlungs-Popup --- */
.empf-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 1.2rem;
}
.empf-modal[hidden] { display: none; }
.empf-overlay {
    position: absolute; inset: 0;
    background: rgba(26, 26, 46, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; transition: opacity 0.3s ease;
}
.empf-modal.is-open .empf-overlay { opacity: 1; }
.empf-modal-card {
    position: relative; z-index: 1;
    width: min(460px, 100%); max-height: calc(100vh - 2.4rem); overflow-y: auto;
    background: var(--surface); border-radius: 26px;
    box-shadow: 0 30px 70px rgba(26, 26, 46, 0.35);
    padding: 0 1.8rem 1.8rem; text-align: center;
    opacity: 0; transform: translateY(24px) scale(0.96);
    transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.empf-modal.is-open .empf-modal-card { opacity: 1; transform: none; }
.empf-modal-card:focus { outline: none; }

.empf-modal-head {
    position: relative;
    margin: 0 0 1.4rem; padding: 2rem 0 1.3rem;
}
/* halbbreiter, zentrierter Trennstrich (hellgrau) */
.empf-modal-head::after {
    content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 50%; height: 1px; background: var(--border);
}
.empf-modal-title { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); margin: 0; line-height: 1.25; }
.empf-hl { color: var(--llorange); white-space: nowrap; }

.empf-steps { list-style: none; margin: 0 0 1.4rem; padding: 0; text-align: left; display: grid; gap: 0.9rem; }
.empf-step { display: flex; align-items: center; gap: 0.8rem; }
.empf-step-num {
    flex: 0 0 30px; height: 30px; border-radius: 50%;
    background: var(--llorange); color: #fff; font-weight: 800; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
}
.empf-step-text { font-size: 1rem; color: var(--primary-dark); font-weight: 700; line-height: 1.35; }

/* WhatsApp-CTA nutzt .leucht-btn (gleiche Optik + Roll-Animation wie „So funktioniert es"):
   hier nur Inline-Flex fürs Icon, Auto-Breite und kein Schatten/keine eigene Hover-Bewegung. */
.empf-modal-cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0; }
.empf-modal-cta:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 3px; }
.empf-later {
    display: block; width: 100%; margin: 0.7rem auto 0;
    background: none; border: none; cursor: pointer; font-family: inherit;
    color: var(--text-secondary); font-weight: 600; font-size: 0.92rem; padding: 0.4rem;
}
.empf-later:hover { color: var(--primary-dark); }
.empf-later:focus-visible { outline: 2px solid var(--llorange); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
    .empf-overlay, .empf-modal-card, .empf-modal-cta { transition: none; }
    .empf-modal-card { transform: none; }
}
