/* physik.css - Seitenspezifische Stile fuer physik.html
   Teil des Alchemysto-Projekts (AMY_7)
   Eingebunden nach css/style.css
*/

.physik-band--2 .myth-paragraph,
.physik-band--4 .myth-paragraph {
    color: rgba(247, 244, 239, 0.80);
}

.physik-band--2 .table-title,
.physik-band--4 .table-title {
    color: var(--gold-light);
}

.physik-band--2 h3,
.physik-band--4 h3 {
    color: var(--ivory-2);
}

/* ─── Header-Zeile der Bänder: zentrierter Text, volle Breite ─── */
.physik-band .myth-tile-header,
.physik-band a.myth-tile-header {
    padding: 4rem 8vw !important;
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.25rem !important;
    border-bottom: 1px solid rgba(168, 140, 103, 0.10);
    transition: border-color 0.4s ease;
}

.physik-band.open .myth-tile-header {
    border-bottom: 1px solid rgba(168, 140, 103, 0.18);
}

/* physics-header-content: zentriert */
.physik-band .physics-header-content {
    flex: none;
    width: 100%;
    max-width: 820px;
    text-align: center;
}

/* Chevron unter dem Titelblock, ebenfalls zentriert */
.physik-band .myth-tile-header .myth-tile-chevron {
    margin-top: 0.5rem;
}

/* ─── Absolute Zentrierung aller Texte im Band-Header ─── */
.physik-band .physics-title,
.physik-band .hero-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.physik-band .physics-subtitle,
.physik-band .hero-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 680px;
}

/* Titelfarben helle Bänder */
.physik-band--1 .physics-title,
.physik-band--3 .physics-title {
    color: var(--dark-espresso-3) !important;
}

.physik-band--1 .physics-subtitle,
.physik-band--3 .physics-subtitle {
    color: var(--warm-stone) !important;
}

/* Chevron helle Bänder */
.physik-band--1 .myth-tile-chevron,
.physik-band--3 .myth-tile-chevron {
    color: var(--gold-dark) !important;
    background: rgba(168, 140, 103, 0.08) !important;
}

.physik-band--1.open .myth-tile-chevron,
.physik-band--3.open .myth-tile-chevron {
    background: var(--gold-dark) !important;
    color: var(--white) !important;
}

/* Goldener Akzentstreifen links – helle Bänder */
.physik-band--1 .myth-tile-header,
.physik-band--3 .myth-tile-header {
    border-left: 3px solid rgba(168, 140, 103, 0);
    transition: border-left-color 0.5s ease, border-bottom 0.4s ease;
}

.physik-band--1.open .myth-tile-header,
.physik-band--3.open .myth-tile-header {
    border-left: 3px solid var(--gold-dark);
}

/* Goldener Akzentstreifen links – dunkle Bänder */
.physik-band--2 .myth-tile-header,
.physik-band--4 .myth-tile-header {
    border-left: 3px solid rgba(201, 169, 124, 0);
    transition: border-left-color 0.5s ease;
}

.physik-band--2.open .myth-tile-header,
.physik-band--4.open .myth-tile-header {
    border-left: 3px solid var(--gold-light);
}

/* ─── Inhaltsbereich der Bänder ─── */
.physik-band .myth-tile-inner {
    padding: 3rem 8vw 4.5rem 8vw !important;
    max-width: none !important;
}

.physik-band .myth-article-body {
    max-width: 860px;
    margin: 0 auto;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {

    .physik-band .myth-tile-header,
    .physik-band a.myth-tile-header {
        padding: 2.5rem 6vw !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    .physik-band .physics-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
    }

    .physik-band .physics-subtitle {
        font-size: clamp(0.88rem, 2.8vw, 1rem) !important;
    }

    .physik-band .myth-tile-inner {
        padding: 2rem 6vw 3rem 6vw !important;
    }

    .physik-band .myth-tile-chevron {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
}

/* ═══════════════════════════════════════════════════════
   PHYSIK INTRO – Entrance Animation
   Wird von js/physik-intro.js gesteuert.
════════════════════════════════════════════════════════ */

/* ── 1. Preload-Zustand: Bänder vor der Animation unsichtbar ── */
.physik-band--preload {
    opacity: 0;
    transform: translateY(42px);
    /* Keine Transition im preload-Zustand – sofortiger Ausgangspunkt */
    transition: none !important;
}

/* ── 2. Entered-Zustand: fluides Einblenden ── */
.physik-band--entered {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── 3. Video-Banner: zusätzlicher Zoom-Impuls beim Laden ── */
@keyframes physikVideoPulse {
    0% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1.0);
    }
}

.physik-video--intro video {
    animation: physikVideoPulse 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── 4. Respektiere Reduzierten-Bewegung-Modus ── */
@media (prefers-reduced-motion: reduce) {
    .physik-band--preload {
        opacity: 1 !important;
        transform: none !important;
    }

    .physik-band--entered {
        transition: none !important;
    }

    .physik-video--intro video {
        animation: none !important;
    }
}

/* ═══ CUSTOM STYLES FOR ACCORDION SUB-CARDS IN EINSATZ 2 ═══ */
.restart-card-header-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    flex-grow: 1;
    padding-right: 1.5rem;
}

.restart-card-header-vertical .restart-card-title {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-primary);
}

.restart-card-header-vertical .restart-card-subtitle {
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.45;
}

/* Custom styling for "Die Facetten der Reinheit" header */
.facetten-title {
    font-family: var(--font-montserrat) !important;
    font-style: normal !important;
    font-weight: 300 !important;
}