/* ==========================================================================
   GOA Festival – public site styles
   Colors, logo and background are edition-specific and injected as CSS
   custom properties by fragments/head.html. This file only defines how
   those tokens are used, so a new "Jahr" automatically re-skins the page.
   ========================================================================== */

@font-face {
    font-family: 'Brugty';
    src: url('/fonts/Brugty.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #2f6f68;
    --color-secondary: #e0559a;
    --color-accent: #f2c14e;
    /* Box/heading/text roles used to be improvised from primary/secondary/accent above;
       these are the dedicated, independently-editable tokens fragments/head.html sets
       per edition (see Edition.colorBox/colorAccentBox/colorHeading/colorHeadingOutline/
       colorText). Defaults here match what the old scheme already looked like. */
    --color-box: #2f6f68;
    --color-accent-box: #2f6f68;
    --color-heading: #f2c14e;
    /* Text sitting on an Akzent-Kasten background (buttons, modal text, headliner/teaser
       box, Archiv dropdown) - defaults to the same value as --color-heading. */
    --color-button: #f2c14e;
    --color-heading-outline: #2f6f68;
    --color-text: #f2c14e;
    /* Corner rounding for content/accent boxes (Edition.boxRadius) and, separately, for
       CTA buttons/nav pills (Edition.pillRadius) - two different shape languages. The
       999px default here is well past any of these elements' half-height, so CSS's own
       clamping keeps them fully rounded exactly as before either field existed. */
    --box-radius: 20px;
    --pill-radius: 999px;
    --bg-image: none;
    /* Named so fragments/head.html can switch --font-display/--font-body to a whole
       different stack per edition (var(--font-stack-...)) without needing to embed
       quoted font-family strings inside a Thymeleaf expression. */
    --font-stack-brugty: 'Brugty', 'Baloo 2', 'Comic Sans MS', cursive, sans-serif;
    --font-stack-poppins: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --font-stack-bebas: 'Bebas Neue', 'Oswald', Impact, sans-serif;
    /* Body-text companion for the Bebas Neue heading font: same condensed-sans family,
       but with real lowercase letterforms and a normal weight, so Fließtext in an
       edition using Bebas Neue stays legible instead of rendering in all-caps display type. */
    --font-stack-oswald: 'Oswald', 'Segoe UI', Arial, sans-serif;
    --font-display: var(--font-stack-brugty);
    --font-body: var(--font-stack-poppins);
    /* Brugty/Poppins each only really exist as one weight here, so these default to
       the browser's normal. An edition on a font with real weight variants (e.g.
       Bebas Neue) overrides both via fragments/head.html. */
    --font-weight-display: normal;
    --font-weight-body: normal;
}

* { box-sizing: border-box; }

/* The canvas color goes on <html> only: <body> is a normal in-flow box that
   paints above z-index:-1 fixed children (like .page-bg) regardless of
   z-index, so giving it its own opaque background would blot out the fixed
   backdrop everywhere. */
html {
    background: #171717;
    font-size: 118%;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-weight: var(--font-weight-body, normal);
    color: var(--color-text);
    scroll-behavior: smooth;
}

/* Keeps the footer pinned to the bottom of the viewport on short pages
   instead of floating right after the content - .site-footer (the last
   flex item) gets pushed down by margin-top:auto. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* Puffy "sticker" heading look: an oversized text-stroke relative to the
   font-size makes adjacent letters' outlines merge into a solid blob, and
   paint-order keeps the fill on top so the glyph itself stays legible. */
.bubble-text {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-heading);
    -webkit-text-stroke: 0.16em var(--color-heading-outline);
    paint-order: stroke fill;
    line-height: 1.3;
    margin: 0;
}

/* ---------------------------------- Nav ---------------------------------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-primary);
    padding: 0.6rem 1.5rem;
    flex-wrap: wrap;
}

.site-nav .brand {
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-weight: bold;
    color: var(--color-heading);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.site-nav .brand img { height: 42px; width: auto; }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.4rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-nav .pill {
    background: var(--color-accent-box);
    color: var(--color-button);
    text-decoration: none;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: var(--pill-radius);
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
    cursor: pointer;
}

/* Only the Newsletter pill gets an outline, in 2. Akzentfarbe - the other nav pills
   (Event-Infos, Line-Up, FAQ, ...) stay borderless. */
.site-nav .pill-newsletter {
    border: 2px solid var(--color-secondary);
}

.nav-socials { display: flex; gap: 0.5rem; align-items: center; }
.nav-socials a { display: inline-flex; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-socials a:hover { transform: scale(1.08); opacity: 0.9; }
.nav-socials img { width: 30px; height: 30px; border-radius: 50%; }

.nav-history {
    text-decoration: none;
    color: var(--color-heading);
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-weight: 600;
    opacity: 0.85;
    font-size: 1.05rem;
    white-space: nowrap;
}

.nav-history-dropdown { position: relative; }

.nav-history-dropdown .dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-history-dropdown .caret {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.nav-history-dropdown.open .caret { transform: rotate(180deg); }

.nav-history-dropdown .dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.6rem;
    background: var(--color-accent-box);
    border-radius: var(--box-radius);
    padding: 0.5rem;
    min-width: 140px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    z-index: 60;
}

.nav-history-dropdown.open .dropdown-menu { display: flex; }

.nav-history-dropdown .dropdown-menu a {
    text-decoration: none;
    color: var(--color-button);
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-weight: 600;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-history-dropdown .dropdown-menu a:hover {
    background: color-mix(in srgb, var(--color-accent-box) 70%, black);
}

.nav-history-dropdown .dropdown-menu a.dropdown-hof-link {
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 30%, transparent);
    margin-bottom: 0.25rem;
    padding-bottom: 0.6rem;
}

/* ---------------------------------- Modal ----------------------------------- */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.open { display: flex; }

.modal-box {
    position: relative;
    background: var(--color-accent-box);
    border: 4px solid var(--color-heading-outline);
    border-radius: var(--box-radius);
    padding: 2rem 1.75rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.modal-box h3 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-button);
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}

.modal-box p {
    color: var(--color-button);
    margin: 0 0 1.25rem;
}

.modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--color-button);
    cursor: pointer;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input[type="email"] {
    padding: 0.7rem 1rem;
    border-radius: var(--pill-radius);
    border: 2px solid var(--color-primary);
    font-family: var(--font-body);
    font-weight: var(--font-weight-body, normal);
    font-size: 1rem;
}

.newsletter-submit {
    background: var(--color-accent-box);
    color: var(--color-button);
    border: none;
    border-radius: var(--pill-radius);
    padding: 0.7rem 1.4rem;
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.newsletter-submit:hover { transform: scale(1.03); }

.newsletter-success { color: #1c7a4c; font-weight: 600; margin-top: 1rem; margin-bottom: 0; }
.newsletter-error { color: #c0392b; font-weight: 600; margin-top: 1rem; margin-bottom: 0; }

/* ------------------------------- Fixed backdrop ---------------------------- */

/* A dedicated fixed layer behind everything, instead of
   background-attachment:fixed on .hero: that property is notoriously
   unreliable on mobile browsers (iOS Safari in particular), where it can
   bleed through supposedly-opaque sections further down the page. A plain
   position:fixed element sits below all content via z-index, so any
   section with its own opaque background reliably covers it once scrolled
   into view. */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* inset:0's implicit height (computed from bottom:0 against whatever the
       viewport currently is) is exactly what made this visibly resize/flash
       as the mobile URL bar showed and hid - it recalculates on every
       transition. An explicit, stable height doesn't. Sized to the *large*
       viewport (bar hidden) rather than the small one, so there's no gap of
       bare page background below it once the bar hides and the page grows
       taller than a small-viewport-sized layer would cover. */
    height: 100vh;
    height: 100lvh;
    z-index: -1;
    background-image: var(--bg-image);
    background-color: #2a2a2a;
    background-size: cover;
    background-position: center;
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
    /* svh (small viewport height) ignores the mobile browser's collapsible
       URL bar, so the hero - and the fixed .page-bg behind it - don't
       visibly resize/jump as it shows and hides while scrolling. Falls
       back to plain vh on browsers that don't support svh yet. */
    min-height: 85vh;
    min-height: 85svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

/* Above the mobile nav breakpoint, the nav bar has one consistent, predictable
   height (no wrapping brand text), so the hero can fill exactly the rest of
   the viewport instead of the 85vh approximation - which otherwise leaves a
   sliver of the next section peeking in below the fold on tall/wide screens,
   forcing an unnecessary nudge-scroll even though the hero visually looks
   like it already fills the screen. */
@media (min-width: 701px) {
    .hero {
        min-height: calc(100vh - 70px);
        min-height: calc(100svh - 70px);
    }

    /* When the hero is the only thing above the footer (no Event-Infos/Line-Up/FAQ
       sections render), filling the screen right up to the nav leaves no room for
       the footer - it would then sit just below the fold, needing a scroll despite
       there visibly being enough space. Reserve the footer's height too here. */
    .hero--standalone {
        min-height: calc(100vh - 150px);
        min-height: calc(100svh - 150px);
    }
}

.hero-inner { max-width: 1100px; min-width: 0; width: 100%; }

.hero-logo {
    max-width: 100%;
    width: min(90vw, 820px);
    height: auto;
    margin: 0 auto;
}

.hero-location-image {
    max-width: 100%;
    width: min(70vw, 480px);
    height: auto;
    margin: 2rem auto 0;
}

.hero-title {
    font-size: clamp(2.4rem, 9vw, 4.4rem);
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-heading);
    -webkit-text-stroke: 0.16em var(--color-heading-outline);
    paint-order: stroke fill;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0;
    overflow-wrap: break-word;
}

.hero-year {
    font-size: clamp(3.6rem, 16vw, 8.6rem);
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-heading);
    -webkit-text-stroke: 0.16em var(--color-heading-outline);
    paint-order: stroke fill;
    line-height: 1.3;
    margin: 0.5rem 0 2rem;
}

.headliner-box {
    display: inline-block;
    background: var(--color-accent-box);
    border: 4px solid var(--color-heading-outline);
    border-radius: var(--box-radius);
    padding: 1.25rem 3rem;
    transform: rotate(-2.5deg);
}

/* Solid primary-colored text, no outline - accent-on-secondary often doesn't
   contrast well enough for an accent-fill/primary-stroke treatment to carry it. */
.headliner-name {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-size: clamp(2rem, 7vw, 3.2rem);
    color: var(--color-button);
    overflow-wrap: break-word;
}

.headliner-date {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-size: clamp(1.6rem, 5.5vw, 2.4rem);
    color: var(--color-button);
    margin-top: 0.25rem;
}

.hero-hall-of-fame-link {
    /* display:block (not inline-block) so it always starts on its own line below
       whatever precedes it - an inline-block only wraps once the line actually
       runs out of room, which left it sitting beside the headliner box on wide
       viewports instead of underneath it. width:fit-content keeps it sized to
       its own content instead of stretching full-width, margin:auto re-centers it. */
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
    padding: 0.9rem 2.2rem;
    background: var(--color-accent-box);
    color: var(--color-button);
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-weight: 600;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    text-decoration: none;
    border-radius: var(--pill-radius);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-hall-of-fame-link:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.kneipenkonzert-teaser {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: fit-content;
    max-width: 92%;
    margin: 2rem auto 0;
    padding: 1.1rem 2.75rem 1.4rem;
    background: var(--color-accent-box);
    border: 4px solid var(--color-heading-outline);
    border-radius: var(--box-radius);
    text-decoration: none;
    transform: rotate(1.5deg);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kneipenkonzert-teaser:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.kneipenkonzert-teaser-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-text);
    opacity: 0.9;
}

.kneipenkonzert-teaser-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-button);
    font-size: clamp(1.7rem, 4.8vw, 2.6rem);
    line-height: 1.15;
    text-align: center;
}

.kneipenkonzert-teaser-date {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-button);
    font-size: clamp(1.15rem, 3.2vw, 1.5rem);
}

/* --------------------------------- Sections -------------------------------- */

/* .section-band carries a section's full-bleed background color; .section
   inside it constrains and centers the actual content to a readable width. */
.section-band { width: 100%; }

.section { padding: 3.5rem 1.5rem; max-width: 1440px; margin: 0 auto; }

/* A short rule between sections instead of a hard color-block edge, so the
   backdrop veil can stay the same everywhere while sections still read as
   separate. */
.section-divider {
    width: 120px;
    height: 2px;
    margin: 2.5rem auto;
    border: none;
    background: rgba(255, 255, 255, 0.3);
}

.section-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    color: var(--color-heading);
    -webkit-text-stroke: 0.14em var(--color-heading-outline);
    paint-order: stroke fill;
    line-height: 1.3;
    margin: 0 0 2rem;
    overflow-wrap: break-word;
}

.section-infos { background: #0000004f; }

.infos-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 800px) {
    .infos-grid { grid-template-columns: 1fr; }
}

/* One panel holding all three Was/Wann/Wo rows, each row a two-column
   [big bubble label | answer text] layout - matching the real site instead
   of three separate stacked cards. */
/* .info-row uses display:contents so its label+paragraph become direct
   children of this grid - that's what makes all three rows share one
   column width and left-align their answer text at the same position,
   instead of each row sizing its own label column independently. */
.info-panel {
    background: color-mix(in srgb, var(--color-box) 82%, transparent);
    border-radius: var(--box-radius);
    padding: 1.75rem 2.25rem;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 2rem;
    row-gap: 1.5rem;
    align-items: start;
}

.info-row { display: contents; }

@media (max-width: 480px) {
    .info-panel { grid-template-columns: 1fr; row-gap: 0.5rem; }
}

.info-label {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-size: clamp(2.2rem, 6vw, 3rem);
    -webkit-text-stroke: 0.16em var(--color-heading-outline);
    paint-order: stroke fill;
    line-height: 1.3;
    color: #ab77b3;
    white-space: nowrap;
}

.info-row p {
    margin: 0;
    line-height: 1.5;
    font-size: 1.15rem;
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: #d9a441;
    align-self: center;
}

.infos-map { display: flex; flex-direction: column; gap: 1rem; height: 100%; }

.map-frame {
    width: 100%;
    flex: 1;
    min-height: 220px;
    border: 0;
    border-radius: 18px;
}

.route-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: var(--color-accent-box);
    color: var(--color-button);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.9rem 1.4rem;
    border-radius: var(--pill-radius);
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
}

/* --------------------------------- Line-up --------------------------------- */

.section-lineup { background: #0000004f; }

.day-block { margin-bottom: 2.5rem; }

.day-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-heading);
    -webkit-text-stroke: 0.14em var(--color-heading-outline);
    paint-order: stroke fill;
    line-height: 1.3;
    text-align: center;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 1.5rem;
}

.band-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.875rem;
}

@media (max-width: 768px) {
    .band-grid { grid-template-columns: 1fr; }
}

.band-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 32px;
    background-color: #333;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.band-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.band-card:hover img {
    transform: scale(1.06);
    filter: brightness(70%);
}

.band-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    padding: 1.5rem 1rem 0.9rem;
}

.band-card-name {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-heading);
    font-size: 1.6rem;
}

.band-card-genre, .band-card-time { font-size: 1rem; opacity: 0.9; }

@media (max-width: 480px) {
    .band-card { border-radius: 20px; }
}

.empty-hint { opacity: 0.7; text-align: center; }

/* ------------------------------ Kneipenkonzerte ------------------------------ */

.hero-simple { min-height: 20vh; min-height: 20svh; padding-bottom: 1rem; }

.show-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    justify-content: center;
    gap: 1.875rem;
}

.show-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 32px;
    background-color: #333;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.show-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.show-card:hover img {
    transform: scale(1.06);
    filter: brightness(70%);
}

.show-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    padding: 1.5rem 1rem 0.9rem;
}

.show-card-date {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
    opacity: 0.85;
}

.show-card-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-heading);
    font-size: 1.5rem;
    margin-top: 0.15rem;
}

.show-card-headliner { font-size: 1rem; color: var(--color-text); opacity: 0.9; margin-top: 0.15rem; }

.show-card-past { opacity: 0.75; }

/* No photo to show yet - a colored "sticker" card instead of a bare gray box,
   with the text centered rather than pinned to the bottom (no image means no
   need for the bottom-scrim treatment above). */
.show-card-noimage {
    background: var(--color-accent-box);
    border: 4px solid var(--color-heading-outline);
    /* Overrides .show-card's fixed 32px - as a text box (no photo), it follows the
       edition's box-radius setting like the other content/accent boxes. */
    border-radius: var(--box-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.show-card-noimage:hover { transform: scale(1.03); }

.show-card-noimage .show-card-overlay {
    position: static;
    background: none;
    padding: 1.5rem;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.show-card-noimage .show-card-title {
    color: var(--color-button);
    font-size: clamp(1.3rem, 5vw, 1.7rem);
    overflow-wrap: break-word;
}

.show-card-noimage .show-card-date,
.show-card-noimage .show-card-headliner {
    color: var(--color-button);
    opacity: 1;
}

@media (max-width: 480px) {
    .show-card { border-radius: 20px; }
}

/* ----------------------------------- FAQ ------------------------------------ */

.section-faq { background: #0000004f; }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
    border-radius: var(--box-radius);
    overflow: hidden;
}

/* The title bar stays fully opaque; only the content underneath (.faq-answer)
   is translucent, so the question row stays easy to read against the busy
   backdrop. */
.faq-question {
    width: 100%;
    text-align: left;
    background: color-mix(in srgb, var(--color-box) 92%, black);
    border: none;
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-weight: 600;
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
}

.faq-caret { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-caret { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: color-mix(in srgb, var(--color-box) 82%, transparent);
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer { max-height: 400px; padding: 1.1rem 1.5rem; }
.faq-answer p { margin: 0; font-weight: 700; line-height: 1.5; }

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
    margin-top: auto;
    text-align: center;
    padding: 1.5rem;
    background: #0000004f;
}

.site-footer a { text-decoration: none; font-size: 0.85rem; font-weight: 700; color: var(--color-heading); }

/* -------------------------------- Band detail -------------------------------- */

.band-detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 2rem;
    padding: 2.5rem 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .band-detail-hero { grid-template-columns: 1fr; }
}

.band-detail-image { min-width: 0; }

.band-detail-image img {
    border-radius: 18px;
    width: 100%;
    height: 100%;
    /* Matches .band-card's ratio (the Line-Up overview) as a floor: the grid's
       row-stretch can still make this taller to match a longer text card, but
       it should never end up shorter/more landscape than the overview photo. */
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.band-detail-card {
    background: color-mix(in srgb, var(--color-box) 82%, transparent);
    border-radius: var(--box-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.band-detail-name {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    color: var(--color-heading);
    -webkit-text-stroke: 1.5px var(--color-heading-outline);
    paint-order: stroke fill;
    margin: 0;
    overflow-wrap: break-word;
}

.band-detail-datetime {
    color: var(--color-heading);
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-weight: 600;
    font-size: 1.5rem;
}

.band-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin: 1.25rem 0;
}

.meta-label {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-heading);
    -webkit-text-stroke: 1px var(--color-heading-outline);
    paint-order: stroke fill;
    display: block;
    font-size: 1.35rem;
}

.band-detail-meta p { margin: 0.2rem 0 0; }

.band-detail-description { line-height: 1.6; opacity: 0.95; }

.band-detail-socials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.band-detail-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.band-detail-socials a:hover { transform: scale(1.08); opacity: 0.9; }
.band-detail-socials img { width: 32px; height: 32px; border-radius: 50%; }

.band-detail-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--pill-radius);
    background: var(--color-accent-box);
    color: var(--color-button);
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    width: fit-content;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.band-detail-share-btn:hover { transform: scale(1.03); opacity: 0.9; }

.band-detail-video {
    max-width: 1600px;
    margin: 0 auto 2.5rem;
    padding: 0 2.5rem;
}

.band-detail-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 18px;
}

.band-detail-gallery { max-width: 1600px; margin: 0 auto; padding: 0 2.5rem 2.5rem; }

.gallery-panel {
    background: color-mix(in srgb, var(--color-primary) 82%, transparent);
    border-radius: 20px;
    padding: 2rem;
}

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

@media (min-width: 700px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-grid img {
    border-radius: 18px;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-grid img:hover { transform: scale(1.06); opacity: 0.92; }

.band-detail-back { text-align: center; padding-bottom: 2rem; }
.band-detail-back a { text-decoration: none; opacity: 0.85; }

/* --------------------------------- Legal page -------------------------------- */

.legal-page { background: #0000004f; min-height: 50vh; min-height: 50svh; }
.legal-text { line-height: 1.6; opacity: 0.95; font-weight: 700; }
.legal-text a { color: inherit; text-decoration: underline; }

/* --------------------------------- Hall of Fame -------------------------------- */

.hall-of-fame-page { background: #0000004f; min-height: 70vh; min-height: 70svh; }

.hall-of-fame-intro {
    text-align: center;
    max-width: 640px;
    margin: -1rem auto 2.5rem;
    opacity: 0.85;
}

.hall-of-fame-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .hall-of-fame-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .hall-of-fame-grid { grid-template-columns: 1fr; }
}

.hof-card-wrap {
    /* Starts hidden/offset and settles in once scrolled into view (see main.js), with a
       small per-column delay below so a row cascades in left-to-right instead of popping
       in all at once. Separate from the flip transform below (applied to .hof-card-inner),
       since both animating the same element's "transform" would fight each other. */
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    perspective: 1600px;
}

.hof-card-wrap.in-view { opacity: 1; transform: translateY(0) scale(1); }

.hof-card-wrap:nth-child(4n+2) { transition-delay: 0.08s; }
.hof-card-wrap:nth-child(4n+3) { transition-delay: 0.16s; }
.hof-card-wrap:nth-child(4n+4) { transition-delay: 0.24s; }

.hof-card {
    display: block;
    text-decoration: none;
}

.hof-card-inner {
    position: relative;
    aspect-ratio: 4 / 5;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hof-card:hover .hof-card-inner,
.hof-card:focus-visible .hof-card-inner {
    transform: rotateY(180deg);
}

.hof-card-face {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    background: #222;
    backface-visibility: hidden;
    transition: box-shadow 0.3s ease;
}

.hof-card:hover .hof-card-face {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}

/* Pre-rotated so it lands right-side-up once the inner element's own 180deg flip settles. */
.hof-card-back { transform: rotateY(180deg); }

.hof-card-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 480px) {
    .hof-card-face { border-radius: 18px; }
}

/* --------------------------------- Fan-Upload -------------------------------- */

.fan-upload-page { background: #0000004f; min-height: 70vh; min-height: 70svh; }

.fan-upload-section { max-width: 640px; margin: 0 auto; text-align: center; }

.fan-upload-intro { opacity: 0.9; line-height: 1.5; margin-bottom: 2rem; }

.fan-upload-flash { font-size: 1.05rem; margin-bottom: 1.5rem; }

.fan-upload-form { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.fan-upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 3rem 1.5rem;
    background: color-mix(in srgb, var(--color-secondary) 55%, transparent);
    border: 3px dashed var(--color-accent);
    border-radius: 28px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.fan-upload-dropzone:hover {
    transform: scale(1.02);
    background: color-mix(in srgb, var(--color-secondary) 75%, transparent);
}

.fan-upload-icon { font-size: 2.8rem; }

.fan-upload-label {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-size: 1.4rem;
    color: var(--color-heading);
}

.fan-upload-hint { font-size: 0.9rem; opacity: 0.8; }

/* The real file input stays in the DOM (for the form submit and for accessibility/
   keyboard support) but is visually hidden - the whole dropzone label is the control. */
.fan-upload-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.fan-upload-filelist {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.fan-upload-filelist li {
    font-size: 0.95rem;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
}

.fan-upload-submit {
    padding: 0.9rem 2.6rem;
    background: var(--color-accent-box);
    color: var(--color-button);
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    font-weight: 600;
    font-size: 1.2rem;
    border: none;
    border-radius: var(--pill-radius);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fan-upload-submit:hover { transform: scale(1.05); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }

.fan-upload-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* --------------------------------- Responsive -------------------------------- */

@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 0.75rem;
    }
    .nav-links.open { display: flex; }

    /* Desktop anchors the menu to the toggle's right edge, which sits far
       right in the nav bar there. On mobile the stacked nav-links are
       left-aligned instead, so that same right:0 anchor pushed a
       min-width:140px menu off the left edge of the screen. */
    .nav-history-dropdown .dropdown-menu {
        left: 0;
        right: auto;
    }
}

/* On phones the fixed 1.5-2.5rem side padding ate a noticeable chunk of an
   already-narrow screen; trim it down so content actually uses the width. */
@media (max-width: 480px) {
    .hero,
    .section,
    .band-detail-hero,
    .band-detail-gallery,
    .band-detail-video {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Hidden GOA-2026 recap (js/easter-egg.js): video backdrop + a card in the
   same gold/teal outline style as the original OBS countdown overlays. */
body.egg-open { overflow: hidden; }

.egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.egg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.egg-scrim {
    position: absolute;
    inset: 0;
}

.egg-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid var(--color-accent);
    background: rgba(0,0,0,0.5);
    color: var(--color-heading);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.egg-card {
    position: relative;
    z-index: 1;
    width: min(640px, 92vw);
    max-height: min(78vh, calc(100vh - 130px));
    overflow-y: auto;
    padding-top: 18px;
    text-align: center;
    margin-bottom: 130px;
}

.egg-stage {
    animation: egg-float 6s ease-in-out infinite;
}


.egg-slide {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.egg-slide.egg-pop {
    opacity: 1;
    transform: scale(1);
}

.egg-photo {
    width: min(340px, 70vw);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0 auto 1.25rem;
    border-radius: 24px;
    border: 4px solid var(--color-primary);
    box-shadow:
        0 0 0 3px var(--color-primary),
        0 0 0 6px var(--color-accent),
        0 20px 50px rgba(0,0,0,0.85);
}

.egg-name,
.egg-sub {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-heading);
    -webkit-text-stroke: 2px var(--color-heading-outline);
    text-shadow:
        -2px -2px 0 var(--color-primary),
         2px -2px 0 var(--color-primary),
        -2px  2px 0 var(--color-primary),
         2px  2px 0 var(--color-primary),
         0 10px 26px rgba(0,0,0,0.9);
    letter-spacing: 2px;
}

.egg-name {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    line-height: 1;
    text-transform: uppercase;
}

.egg-name.egg-finale {
    font-size: clamp(2.6rem, 8vw, 4.6rem);
}

.egg-sub {
    margin-top: 0.9rem;
    font-size: clamp(1rem, 2.4vw, 1.4rem);
    -webkit-text-stroke: 1.2px var(--color-heading-outline);
}


.egg-elapsed,
.egg-elapsed-label,
.egg-time-value,
.egg-time-label,
.egg-separator {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-heading);
    -webkit-text-stroke: 2px var(--color-heading-outline);
    text-shadow:
        -2px -2px 0 var(--color-primary),
         2px -2px 0 var(--color-primary),
        -2px  2px 0 var(--color-primary),
         2px  2px 0 var(--color-primary),
         0 10px 26px rgba(0,0,0,0.9);
}

.egg-elapsed {
    margin-top: 0.9rem;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1;
    letter-spacing: 2px;
}

.egg-elapsed-label {
    margin-top: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    letter-spacing: 3px;
    -webkit-text-stroke: 1.2px var(--color-heading-outline);
}

@keyframes egg-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.egg-clock {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(0.3rem, 1.6vw, 1rem);
}

.egg-time-block { text-align: center; min-width: 0; flex: 0 0 auto; }

.egg-time-value {
    font-size: clamp(1.1rem, 3.6vw, 2.6rem);
    line-height: 1;
    white-space: nowrap;
}

.egg-time-label {
    margin-top: 0.3rem;
    font-size: clamp(0.5rem, 1.1vw, 0.8rem);
    letter-spacing: 1px;
    -webkit-text-stroke: 1px var(--color-heading-outline);
}

.egg-separator {
    font-size: clamp(1.1rem, 3.6vw, 2.6rem);
    line-height: 1;
    flex: 0 0 auto;
}

.egg-thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.5rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.egg-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 2px solid var(--color-primary);
    background: rgba(0,0,0,0.4) center / cover no-repeat;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    padding: 0;
    flex: 0 0 auto;
}

.egg-thumb:hover { opacity: 0.85; }

.egg-thumb.active {
    opacity: 1;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-primary), 0 0 14px rgba(0,0,0,0.6);
    transform: scale(1.08);
}

/* Hidden GOA-2025-Recap (js/easter-egg-2025.js): press-and-hold the hero
   logo to open a shuffled fullscreen photo slideshow. */
.egg2-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.egg2-viewer {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.egg2-img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.egg2-img.visible { opacity: 1; }

.egg2-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid var(--color-accent);
    background: rgba(0,0,0,0.5);
    color: var(--color-heading);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.egg2-counter {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
    font-family: var(--font-body);
    font-weight: var(--font-weight-body, normal);
    color: var(--color-heading);
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.egg2-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.egg2-controls button {
    border: 2px solid var(--color-primary);
    background: rgba(0,0,0,0.5);
    color: var(--color-heading);
    cursor: pointer;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.egg2-prev,
.egg2-next {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
}

.egg2-playpause {
    width: 60px;
    height: 60px;
    font-size: 1rem;
}

.egg2-controls button:hover { border-color: var(--color-accent); }

/* Hidden "GTA oder Harburg?" quiz (js/easter-egg-gta.js): 5x Klick auf das
   Logo auf der Hauptseite. */
.egg3-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.egg3-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.egg3-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid var(--color-accent);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-heading);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.egg3-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(82vh, calc(100vh - 80px));
    overflow-y: auto;
    background: var(--color-primary);
    border: 4px solid var(--color-accent);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.egg3-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display, normal);
    color: var(--color-heading);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.egg3-text {
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.5;
}

.egg3-progress {
    color: var(--color-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.egg3-clue {
    color: var(--color-text);
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.egg3-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.egg3-btn {
    font-family: var(--font-body);
    font-weight: var(--font-weight-body, normal);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 2px solid var(--color-accent);
    background: var(--color-accent);
    color: var(--color-button);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.egg3-btn:hover { transform: translateY(-2px); }

.egg3-choice {
    flex: 1 1 140px;
    background: transparent;
    color: var(--color-heading);
}

.egg3-choice:disabled { cursor: default; transform: none; opacity: 0.7; }

.egg3-choice.egg3-correct {
    background: #3fae6a;
    border-color: #3fae6a;
    color: #fff;
    opacity: 1;
}

.egg3-choice.egg3-wrong {
    background: #d9534f;
    border-color: #d9534f;
    color: #fff;
    opacity: 1;
}

.egg3-verdict {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.egg3-verdict-ok { color: #6be39a; }
.egg3-verdict-bad { color: #ff9b97; }

.egg3-case-title {
    color: var(--color-text);
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 0.6rem;
}

.egg3-source {
    display: inline-block;
    color: var(--color-heading);
    font-size: 0.85rem;
    text-decoration: underline;
    margin-bottom: 1.25rem;
    word-break: break-word;
}

.egg3-btn-next,
.egg3-btn-start {
    display: block;
    margin: 0 auto;
}

/* Tighter spacing so a question + both buttons + the reveal fit with less
   scrolling inside the card on small phone screens. */
@media (max-width: 480px) {
    .egg3-overlay { padding: 1rem; }
    .egg3-card { max-height: 88vh; padding: 1.25rem 1.25rem 1.5rem; }
    .egg3-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
    .egg3-clue { font-size: 1.05rem; margin-bottom: 1rem; }
    .egg3-choices { gap: 0.6rem; margin-bottom: 0.75rem; }
    .egg3-btn { padding: 0.7rem 1.25rem; }
    .egg3-verdict { font-size: 1rem; }
    .egg3-source { margin-bottom: 0.85rem; }
}

/* -------------------- Easter egg: Grumbrechtstraße oder ausgedacht? -------------------- */
.myst-key-entry:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.hero-logo, .hero-title { touch-action: manipulation; }

.myst-overlay {
    --myst-ink: #f5eee3;
    --myst-muted: #bfcbc6;
    --myst-copper: #edac7a;
    --myst-line: #3e5050;
    --myst-gutter: max(clamp(1rem, 5vw, 4rem), calc((100vw - 1300px) / 2));
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #0c1416;
    color: var(--myst-ink);
    font: 1rem/1.5 "Segoe UI", Arial, sans-serif;
    color-scheme: dark;
}

.myst-overlay[open] { display: flex; flex-direction: column; }
.myst-overlay::backdrop { background: #071011; }
.myst-overlay [hidden] { display: none; }
.myst-overlay h1, .myst-overlay h2, .myst-overlay p { margin: 0; }
.myst-overlay :is(h1, h2)[tabindex="-1"]:focus { outline: none; }
.myst-overlay button { font-family: inherit; cursor: pointer; }
.myst-overlay button:focus-visible, .myst-key-entry:focus-visible {
    outline: 3px solid #ace8e0;
    outline-offset: 3px;
}

.myst-bar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .5rem var(--myst-gutter);
    border-bottom: 1px solid var(--myst-line);
    background: #101c1e;
}

.myst-channel, .myst-tools { display: flex; align-items: center; gap: .75rem; }
.myst-channel b {
    border: 1px solid var(--myst-copper);
    padding: .04em .38em .1em;
    color: var(--myst-copper);
    font: bold 1.13rem/1.2 Georgia, serif;
    letter-spacing: -.055em;
}

.myst-channel span, .myst-kicker, .myst-still span {
    font: 600 .7rem/1.4 Consolas, "Courier New", monospace;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.myst-channel span { color: var(--myst-muted); }
.myst-tools { gap: .35rem; }
.myst-tools button, .myst-reread {
    min-height: 44px;
    padding: .3rem .55rem;
    border: 0;
    background: transparent;
    color: var(--myst-muted);
    font-size: .82rem;
}
.myst-tools button:hover, .myst-reread:hover { color: white; text-decoration: underline; }
.myst-tools .myst-close { min-width: 44px; padding: 0; font: 1.6rem/1 Arial, sans-serif; }

.myst-stage { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.myst-opening {
    display: flex;
    align-items: flex-end;
    min-height: clamp(280px, 45vh, 500px);
    padding: clamp(1.4rem, 5vh, 3.5rem) var(--myst-gutter);
    border-bottom: 1px solid #78604d;
    background: linear-gradient(90deg, #091112e6, #0a11154d 60%, transparent 85%),
                linear-gradient(0deg, #081011b5, transparent 46%),
                url('../mystery/treppenhaus.webp') center 52% / cover;
}

.myst-kicker { color: var(--myst-copper); }
.myst-opening h1 {
    margin: .5rem 0 .65rem;
    font: normal clamp(2rem, 5.8vw, 5.2rem)/.98 Georgia, "Times New Roman", serif;
    letter-spacing: -.053em;
    text-shadow: 0 2px 22px #04101488;
}
.myst-opening h1 em { font-weight: normal; color: #ffd1a6; }
.myst-opening-copy > p:last-child { color: #e2e6dd; font-size: .95rem; }
.myst-program { padding: 1.2rem var(--myst-gutter) 2rem; }
.myst-program-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .85rem; }
.myst-program h2 { font: normal 1.45rem/1.25 Georgia, serif; }
.myst-program-heading p { color: var(--myst-muted); font-size: .85rem; }

.myst-episodes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.7rem, 1.8vw, 1.35rem);
    list-style: none;
    padding: 0;
    margin: 0;
}
.myst-episodes > li { display: grid; grid-template-rows: 1fr auto; }
.myst-restart {
    min-height: 44px;
    padding: .4rem .85rem;
    border: 1px solid var(--myst-line);
    border-top: 0;
    background: transparent;
    color: var(--myst-muted);
    font-size: .8rem;
    text-align: left;
}
.myst-restart:hover { color: var(--myst-ink); text-decoration: underline; }
.myst-art-1 { --still: url('../mystery/fassade.webp'); }
.myst-art-2 { --still: url('../mystery/haustuer.webp'); }
.myst-art-3 { --still: url('../mystery/sessel.webp'); }
.myst-art-4 { --still: url('../mystery/fenster.webp'); }
.myst-studio { --still: url('../mystery/studio.webp'); }
.myst-episode {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
    color: inherit;
    background: #152022;
    border: 1px solid #354343;
}
.myst-episode:hover { background: #1d2a2b; border-color: var(--myst-copper); }
.myst-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 2.45;
    background: var(--still) center / cover;
}
.myst-episode-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: .8rem .85rem; }
.myst-episode-copy strong { margin: .18rem 0 .3rem; font: normal 1.18rem/1.17 Georgia, serif; }
.myst-meta { font-size: .82rem; color: var(--myst-muted); }
.myst-link { margin-top: auto; padding-top: .65rem; font-size: .8rem; font-weight: 600; color: #f4cba7; }
.myst-episode:hover .myst-link { text-decoration: underline; }

.myst-scene {
    width: min(100%, 1450px);
    min-height: 100%;
    margin: auto;
    padding: clamp(1.1rem, 5vw, 4.5rem);
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: clamp(1.5rem, 5vw, 5rem);
}
.myst-still {
    position: relative;
    align-self: stretch;
    min-height: clamp(290px, 52vh, 600px);
    background: linear-gradient(0deg, #091011cf, transparent 32%), var(--still) center / cover;
    border-block: 1px solid #54615c;
}
.myst-still.myst-studio { background-position: center, 72% center; }
.myst-still span {
    position: absolute;
    inset: auto auto 1rem 1rem;
    max-width: calc(100% - 2rem);
    border-left: 3px solid var(--myst-copper);
    padding-left: .65rem;
    color: #fff4e8;
    text-shadow: 0 1px 6px black;
}
.myst-script { padding: .5rem 0; }
.myst-script h2 {
    margin: .65rem 0 .85rem;
    font: normal clamp(1.75rem, 3.4vw, 3.45rem)/1.06 Georgia, serif;
    letter-spacing: -.036em;
    overflow-wrap: break-word;
}
.myst-script p:not(.myst-kicker) { margin-bottom: .85rem; line-height: 1.6; white-space: pre-line; }
.myst-script .myst-lede, .myst-script .myst-signoff {
    font: italic 1.2rem/1.45 Georgia, serif;
    color: #f3caab;
}
.myst-script .myst-case-name { color: var(--myst-copper); font-weight: 600; }
.myst-pick { padding-top: .75rem; border-top: 1px solid var(--myst-line); color: var(--myst-muted); font-size: .86rem; }
.myst-pick strong { color: var(--myst-ink); }
.myst-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.myst-btn {
    min-height: 44px;
    padding: .58rem 1.1rem;
    border: 1px solid var(--myst-copper);
    border-radius: 2px;
    background: var(--myst-copper);
    color: #21170f;
    font-size: .9rem;
    font-weight: 650;
}
.myst-btn:hover { background: #ffd0a7; }
.myst-secondary { background: transparent; color: #f5c399; }
.myst-secondary:hover { background: #322b26; }
.myst-reread { flex-basis: 100%; padding-left: 0; text-align: left; text-decoration: underline; }
.myst-message { padding: 2rem var(--myst-gutter); }
.myst-message .myst-btn { margin-top: 1rem; }

.myst-episode:disabled {
    cursor: default;
    border-color: #344144;
    background: #142023;
}
.myst-episode:disabled .myst-thumb { filter: grayscale(.8) brightness(.58); }
.myst-episode:disabled .myst-link { color: var(--myst-muted); text-decoration: none; }
.myst-motion { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; margin-top: .6rem; color: var(--myst-muted); font-size: .83rem; cursor: pointer; }
.myst-motion input { accent-color: var(--myst-copper); }
.myst-breakdown { list-style: none; margin: .8rem 0; padding: 0; }
.myst-breakdown li { padding: .4rem 0; border-top: 1px solid var(--myst-line); }
.myst-breakdown span { display: block; color: var(--myst-muted); font-size: .82rem; }
.myst-intertitle {
    min-height: 100%;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 2rem 1rem;
    text-align: center;
    color: #e5c398;
    background: #050809;
}
.myst-intertitle h2 { max-width: 23ch; font: normal clamp(1.3rem, 3.7vw, 3rem)/1.23 Georgia, serif; letter-spacing: .075em; }
.myst-final-card { background: #000; }
.myst-final-card .myst-actions { justify-content: center; }
.myst-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.myst-still { isolation: isolate; overflow: hidden; }
.myst-still::before, .myst-still::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.myst-still::before { z-index: -2; background: inherit; }
.myst-still::after {
    z-index: -1;
    opacity: .12;
    background: repeating-linear-gradient(0deg, #13202466 0 1px, transparent 1px 4px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23g)' opacity='.7' d='M0 0h96v96H0z'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
    .myst-overlay:not(.myst-reduced) :is(.myst-opening-copy, .myst-script, .myst-still, .myst-intertitle h2) { animation: myst-cut .45s ease-out; }
    .myst-overlay:not(.myst-reduced) .myst-still::before { animation: myst-camera 8s ease-out both; }
    @keyframes myst-cut { from { opacity: .35; } to { opacity: 1; } }
    @keyframes myst-camera { from { transform: scale(1); } to { transform: scale(1.045); } }
}
@media (max-width: 900px) {
    .myst-episodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .myst-scene { display: block; padding: 0; }
    .myst-still { min-height: 0; height: clamp(145px, 26vh, 245px); }
    .myst-still.myst-studio { background-position: center, 72% 31%; }
    .myst-script { padding: 1.25rem var(--myst-gutter) 2.2rem; }
}
@media (max-width: 560px) {
    .myst-channel { gap: .45rem; }
    .myst-bar { padding-inline: .65rem; }
    .myst-channel span { font-size: .65rem; letter-spacing: .07em; }
    .myst-tools { gap: 0; }
    .myst-tools button { padding-inline: .35rem; }
    .myst-opening { min-height: 255px; background-position: center, center, 66% center; }
    .myst-opening h1 { font-size: clamp(1.6rem, 8vw, 2.35rem); }
    .myst-episodes { grid-template-columns: 1fr; }
    .myst-episode { display: grid; grid-template-columns: 29% minmax(0, 1fr); }
    .myst-thumb { height: 100%; aspect-ratio: auto; }
    .myst-link { padding-top: .25rem; }
}
@media (max-width: 420px) {
    .myst-bar:has([data-action="archive"]:not([hidden])) .myst-channel span { display: none; }
}
