/* ========================================
   OHG-BOOKTIME — INDEX PAGE STYLES
   ========================================
   Nur für index.html zuständig.
   styles.css wird von index.html ebenfalls
   geladen und liefert: Reset, Body, Font,
   Container-Basis, Buttons, Reveal-Animation,
   Nav und Footer. Diese Datei ergänzt und
   überschreibt nur dort, wo index.html ein
   eigenes Design braucht.

   Struktur:
   1.  Variablen (index-spezifische Aliases)
   2.  Layout & Container (Override 1100px)
   3.  Header-Override (Fixed statt Sticky)
   4.  Hero Section
   5.  Buttons (Pill-Override für den Hero)
   6.  Floating Cards (Hero-Rechtsseite)
   7.  Stats Strip
   8.  About / Über-uns Section
   9.  CTA-Banner
   10. Video Section
   11. How-it-works Steps
   12. Preisguide (Pricing Section)
   13. Footer (Override wegen Fixed-Header)
   14. Responsive Design
======================================== */


/* ===== 1. Variablen (index-spezifische Aliases) ===== */
/*
   styles.css definiert --primary, --bg-body,
   --text-main usw. Index.html braucht
   zusätzlich eigene Farbaliase (--blue,
   --violet, --mint …) für die 3D-Hero-
   Atmosphäre sowie --card, --border und
   --shadow als passend benannte Kurzformen.
   --text-muted wird NICHT wiederholt –
   der Wert ist identisch mit styles.css.
*/
:root {
    --blue:       #1a6aff;                  /* Alias für --primary (gleicher Wert)        */
    --blue-dark:  #0f4fd4;                  /* Alias für --primary-dark (gleicher Wert)   */
    --blue-light: #e8f0ff;                  /* Heller Hintergrund für Chips & Badges      */
    --blue-mid:   #d0e2ff;                  /* Mittelton für dekorative Elemente          */
    --cyan:       #0099cc;                  /* Akzent-Cyan für Gradienten                 */
    --violet:     #6d28d9;                  /* Violett (Orbs, CTA-Gradient-Ende)          */
    --mint:       #059669;                  /* Grün für "Reservierbar"-Badge              */
    --bg-alt:     #eaf0ff;                  /* Alternativer Abschnittshintergrund         */
    --card:       #ffffff;                  /* Kurzform für Kartenfarbe (= --bg-surface)  */
    --border:     rgba(26,106,255,0.15);    /* Blaulicher Rahmen                          */
    --shadow:     0 2px 16px rgba(26,106,255,0.10); /* Kurzform Schatten                */
}

/*
   Reset (*, html, body) und .reveal-Animation
   sind bereits in styles.css definiert –
   hier nicht wiederholt.
*/


/* ===== 2. Layout & Container (Override) ===== */
/*
   index.html nutzt 1100px statt den globalen
   1200px aus styles.css, damit der Hero
   kompakter und fokussierter wirkt.
   main bekommt z-index: 2 um über dem
   Three.js-Canvas zu liegen.
*/
main {
    position: relative;
    z-index: 2; /* über Three.js-Canvas (z-index: 0) und Orbs (z-index: 1) */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* ===== 3. Header-Override (Fixed statt Sticky) ===== */
/*
   Auf der Startseite wird der Header fixiert,
   damit er über dem Vollbild-Hero schwebt.
   Alle anderen Seiten nutzen position: sticky
   aus styles.css.
*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Three.js-Canvas – hinter allem, füllt den Viewport */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.26;
}

/* Dekorative Orb-Elemente (verschwommene Farbkreise im Hintergrund) */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .12;
    pointer-events: none;
    z-index: 1;
    animation: orb-drift 20s ease-in-out infinite alternate;
}
.orb-1 { width: 500px; height: 500px; background: var(--blue);   top: -150px; left: -100px; }
.orb-2 { width: 350px; height: 350px; background: var(--violet); top: 50%;    right: -100px; animation-delay: -8s; }
.orb-3 { width: 280px; height: 280px; background: #00aaff;       bottom: 5%;  left: 15%;    animation-delay: -4s; }

@keyframes orb-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(50px, 60px) scale(1.1); }
}


/* ===== 4. Hero Section ===== */
/*
   Vollbild-Einstiegsbereich. Überschreibt
   .hero aus styles.css: kein Gradient-BG,
   linksbündig statt zentriert, min-height
   100svh für den Vollbild-Effekt.
*/
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    text-align: left !important;
    background: none !important;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Kleiner farbiger Chip über der Headline */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    border: 1px solid var(--border);
    padding: .3rem .9rem;
    border-radius: 100px;
    margin-bottom: 1.2rem;
    animation: fade-up .5s ease both;
}

/* Pulsierender Live-Punkt (Eyebrow-Chip + Floating Cards) */
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .3; transform: scale(.5); }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: var(--text-main);
    animation: fade-up .6s .1s ease both;
}

/* <em>-Wörter in der H1 bekommen einen Blau-Cyan-Gradient */
.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--blue) 0%, #00aaff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    margin-top: 1rem;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 460px;
    animation: fade-up .6s .2s ease both;
}

.hero-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: center;
    animation: fade-up .6s .3s ease both;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ===== 5. Buttons (Pill-Override für den Hero) ===== */
/*
   Überschreibt .btn aus styles.css mit leicht
   anderem Padding (.8rem 1.8rem statt .7rem 1.6rem)
   und direkten Farbwerten. Zusätzlich: zwei
   weiße Varianten exklusiv für den CTA-Banner.
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;  /* FIX: Beschriftung zentriert */
    padding: .8rem 1.8rem;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(26,106,255,.35);
}
.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,106,255,.4);
}

.btn-outline {
    background: #fff;
    color: var(--blue);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
}
.btn-outline:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

/* Weiße Varianten ausschließlich für den dunklen CTA-Banner */
.btn-white { background: #fff; color: var(--blue); font-weight: 700; }
.btn-white:hover { background: #f0f4ff; transform: translateY(-2px); }

.btn-white-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); font-weight: 600; }
.btn-white-outline:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }


/* ===== 6. Floating Cards (Hero-Rechtsseite) ===== */
/*
   Drei schwebende Vorschaukarten mit
   CSS-Animationen, die Marktplatz-Einträge
   simulieren (Angebot des Tages, Statistiken).
*/
.hero-3d-panel {
    position: relative;
    height: 420px;
}

.floating-card {
    position: absolute;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    box-shadow: 0 8px 32px rgba(26,106,255,.1);
}

.card-main {
    width: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-main 4s ease-in-out infinite;
}
.card-sm1 { width: 155px; top: 8%;    right: 0;  animation: float-s1 5s ease-in-out infinite; }
.card-sm2 { width: 148px; bottom: 10%; left: 2%; animation: float-s2 6s ease-in-out infinite; }

@keyframes float-main { 0%,100%{transform:translate(-50%,-50%) rotate(-1.5deg)} 50%{transform:translate(-50%,-54%) rotate(1.5deg)} }
@keyframes float-s1   { 0%,100%{transform:rotate(3deg) translateY(0)}           50%{transform:rotate(3deg) translateY(-10px)} }
@keyframes float-s2   { 0%,100%{transform:rotate(-2.5deg) translateY(0)}        50%{transform:rotate(-2.5deg) translateY(8px)} }

.card-book-icon { font-size: 2rem; margin-bottom: .4rem; }
.card-lbl  { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .25rem; }
.card-val  { font-size: 1.3rem; font-weight: 800; color: var(--text-main); }
.card-meta { font-size: .76rem; color: var(--text-muted); margin-top: .15rem; }

/* "Reservierbar"-Badge */
.badge-green {
    display: inline-block;
    background: #d1fae5;
    color: var(--mint);
    border: 1px solid #6ee7b7;
    border-radius: 6px;
    font-size: .68rem;
    font-weight: 600;
    padding: .15rem .5rem;
    margin-top: .4rem;
}

/* "Live"-Chip mit pulsierendem Punkt */
.live-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .76rem;
    font-weight: 600;
    color: var(--mint);
}


/* ===== 7. Stats Strip ===== */
/*
   Horizontaler Kennzahlen-Streifen zwischen
   Hero und About-Sektion (Angebote, Ersparnis,
   Nachhaltigkeit).
*/
.stats-strip {
    position: relative;
    z-index: 2;
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-inner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 2.2rem 0;
    gap: 1.5rem;
}

.stat { text-align: center; }

.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .15rem; font-weight: 500; }


/* ===== 8. About / Über-uns Section ===== */
/*
   Zweispaltiger Bereich: Schulfoto + Text
   mit Checkliste. Enthält auch .section-tag
   und .section-title, die in mehreren
   Sections der Seite genutzt werden.
*/
.ohg-section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

/* Kleines Kategorie-Label über Section-Überschriften */
.section-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--blue);
    background: var(--blue-light);
    border: 1px solid var(--border);
    padding: .28rem .8rem;
    border-radius: 100px;
    margin-bottom: .8rem;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}
/* <em> in Überschriften: Blau-Gradient-Schrift */
.section-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--blue), #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-wrap { position: relative; }
.about-img-wrap img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Gradient-Badge unten links am Schulfoto */
.img-badge {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: #fff;
    border-radius: 14px;
    padding: .9rem 1.2rem;
}
.img-badge strong { display: block; font-size: 1.4rem; font-weight: 800; }
.img-badge span   { font-size: .72rem; opacity: .85; }

/* Checkliste (✓ Geld sparen, ♻ Ressourcen, 🤝 Übergabe) */
.check-list {
    list-style: none;
    margin-top: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.check-list li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; font-weight: 500; }
.check-ico {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    border: 1px solid var(--border);
}


/* ===== 9. CTA-Banner ===== */
/*
   Blau-violetter Gradient-Banner als
   Handlungsaufruf zum Kaufen / Verkaufen.
*/
.cta-section { position: relative; z-index: 2; padding: 4rem 0; }

.cta-card {
    background: linear-gradient(135deg, var(--blue) 0%, #5b3fd4 100%);
    border-radius: 28px;
    padding: 4rem 3rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(26,106,255,.3);
}
.cta-card h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: .8rem; }
.cta-card p  { font-size: 1rem; opacity: .85; max-width: 460px; margin: 0 auto 2rem; line-height: 1.7; }
.cta-buttons { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }


/* ===== 10. Video Section ===== */
/*
   Tutorial-Bereich mit eingebettetem Video.
   scroll-margin-top verhindert, dass der
   Ankersprung (#erklaerung) hinter der
   fixierten Navbar verschwindet.
*/
.video-section {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
    background: var(--bg-alt);
    scroll-margin-top: 75px;
}
.video-wrap {
    margin-top: 2.5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(26,106,255,.12);
}
.video-wrap video { width: 100%; display: block; max-height: 480px; object-fit: cover; }


/* ===== 11. How-it-works Steps ===== */
/*
   Dreispaltiges Karten-Grid mit nummerierten
   Schritten: 01 → 02 → 03.
*/
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 3rem;
}
.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    transition: transform .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(26,106,255,.15); }
.step-num  { font-size: 3rem; font-weight: 800; color: var(--blue-mid); opacity: .25; line-height: 1; margin-bottom: .8rem; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.step-card p  { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }


/* ===== 12. Preisguide (Pricing Section) ===== */
/*
   Fünf Karten (Schulnoten 1–5) mit
   Prozentwert und Fortschrittsbalken.
   Farben werden per inline-style im HTML gesetzt.

   .grade-desc reserviert seinen Platz immer
   (kein max-height-Resize → kein Layout-Shift).
   Animiert wird ausschließlich opacity, sodass
   die Karte ihre Höhe nie ändert und die
   Seite beim Hovern nicht verschoben wird.
   Da alle Karten im selben Grid-Row liegen,
   gleicht CSS Grid die Höhen automatisch an.
*/
.pricing-section { position: relative; z-index: 2; padding: 6rem 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .9rem;
    margin-top: 2.5rem;
    align-items: start; /* Karten wachsen nicht über Grid-Row hinaus */
}
.price-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.8rem 1rem;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(26,106,255,.12); }
.grade-num   { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: .4rem; }
.grade-label { font-size: .76rem; color: var(--text-muted); font-weight: 500; margin-bottom: .35rem; }
.grade-pct   { font-size: 1.2rem; font-weight: 700; }
.grade-bar   { height: 5px; border-radius: 3px; background: #e2e8f0; margin-top: .7rem; overflow: hidden; }
.grade-bar-fill { height: 100%; border-radius: 3px; }

/* Zustandsbeschreibung – nimmt immer Platz ein (kein Layout-Shift),
   nur die Sichtbarkeit wird per opacity animiert. */
.grade-desc {
    opacity: 0;
    font-size: .75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: .65rem;
    min-height: 2.4rem;     /* Feste Höhe reserviert → keine Verschiebung */
    transition: opacity .25s ease;
}
.price-card:hover .grade-desc {
    opacity: 1;
}


/* ===== 13. Footer (Override) ===== */
/*
   Überschreibt den Footer aus styles.css:
   z-index: 2 nötig, damit er über den Orbs
   liegt; Rahmenfarbe nutzt --border statt
   --border-color für den blauen Stil.
*/
footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
    background: var(--card);
    padding: 2rem 0;
    text-align: center;
}
footer p { color: var(--text-muted); font-size: .86rem; }
footer a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--blue); }


/* ===== 14. Responsive Design ===== */

/* ── Tablet & kleines Desktop (≤ 768px) ── */
@media (max-width: 768px) {
    .hero             { padding: 9rem 0 3rem; min-height: auto; }
    .hero-inner       { grid-template-columns: 1fr; gap: 2rem; }
    .hero-3d-panel    { display: none; }
    .hero h1          { font-size: 2.2rem; }
    .hero-sub         { max-width: 100%; }
    .hero-actions     { gap: .6rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .stats-inner { padding: 1.6rem 0; gap: 1rem; }
    .stat-num    { font-size: 2rem; }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .img-badge  { bottom: -12px; left: -10px; }

    .steps-grid { grid-template-columns: 1fr; gap: 1rem; }

    .ohg-section, .video-section, .pricing-section { padding: 4rem 0; }

    .cta-card { padding: 2.5rem 1.5rem; }
    .cta-buttons .btn { width: 100%; justify-content: center; }

    /* Preisguide: 2 Spalten, Note 5 zentriert in eigener Zeile */
    .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .pricing-grid .price-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - .4rem);
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── 481–768px: Preiskarten etwas kompakter ── */
@media (max-width: 768px) and (min-width: 481px) {
    .price-card { padding: 1.6rem .9rem; }
    .grade-num  { font-size: 2.6rem; }
}

/* ── Smartphone (≤ 480px) ── */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    /* Preisguide: 1 Spalte, Karten horizontal */
    .pricing-grid { grid-template-columns: 1fr; gap: .6rem; }
    .pricing-grid .price-card:last-child:nth-child(odd) { grid-column: auto; width: 100%; margin: 0; }
    .price-card        { padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: 1rem; text-align: left; }
    .grade-num         { font-size: 2.4rem; margin-bottom: 0; flex-shrink: 0; }
    .grade-label       { font-size: .8rem; margin-bottom: .1rem; }
    .grade-pct         { font-size: 1rem; }
    .grade-bar         { margin-top: .4rem; }
    .price-card-inner  { flex: 1; }

    /* Beschreibung auf Mobile dauerhaft eingeblendet (kein Hover auf Touch) */
    .grade-desc {
        opacity: 1;
        min-height: 0;      /* Kein reservierter Leerraum nötig – immer sichtbar */
        margin-top: .45rem;
        font-size: .74rem;
    }
}