﻿/* Qubic Spotlight – globale Styles (ergänzend zum MudBlazor-Theme) */
html,
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--mud-palette-background, #101820);
}

a {
    color: var(--mud-palette-secondary, #4EE0FC);
}

/* Header / Logo – größere AppBar, Inhalt synchron nach unten rücken */
.qs-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;           /* Logo darf schrumpfen, statt die Icons rauszudrücken */
    flex-shrink: 1;
}

.qs-logo img {
    height: 64px;
}

/* Das Banner-Logo ist ein Inline-SVG. Standardhöhe 64px; auf schmalen Screens
   verkleinern, damit die rechten Header-Icons (inkl. Burger-Menü) sicher im
   Bild bleiben und die Toolbar nicht überläuft. */
.qs-logo-svg {
    height: 64px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 600px) {
    .qs-logo-svg {
        height: 46px;
    }
}

@media (max-width: 380px) {
    .qs-logo-svg {
        height: 40px;
    }
}

/* .mud-appbar, .mud-appbar .mud-toolbar { min-height: 84px; height: 84px; } */
/* .mud-layout .mud-main-content { padding-top: 84px; } */

/* ── Qubic-Netzwerk-Statistikleiste (Dashboard) ─────────────────────────── */
.qs-stats {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin: 0px 0px 8px;
}

.qs-stat {
    background: var(--mud-palette-surface, #18222f);
    border: 1px solid var(--mud-palette-lines-default, #243246);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
}

.qs-stat .label {
    font-size: 11px;
    color: var(--mud-palette-secondary, #4EE0FC);
    letter-spacing: .03em;
}

.qs-stat .value {
    font-size: 16px;
    color: var(--mud-palette-text-primary, #f2f5fa);
    font-weight: 500;
    margin-top: 3px;
}

/* Klammerwert (aktuelle Epoche) in der Farbe der Kachel-Überschrift. */
.qs-stat .value .qs-stat-epoch {
    color: var(--mud-palette-secondary, #4EE0FC);
}

/* 24h-Kurschart (Sparkline) füllt den Wertbereich der Kachel. */
.qs-stat .value .qs-spark {
    display: block;
    width: 100%;
    height: 18px;
}

/* 24h-Veränderung in % unter der Sparkline. */
.qs-stat .value .qs-spark-change {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    margin-top: 1px;
}

@media (max-width: 1100px) {
    .qs-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 700px) {
    .qs-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .qs-stats {
        grid-template-columns: 1fr;
    }
}

/* ── Anzeigen-Grid ───────────────────────────────────────────────────────── */
.qs-ads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 12px 0;
}

.qs-ad-card {
    background: var(--mud-palette-surface, #1a2332);
    border: 1px solid var(--mud-palette-lines-default, #243246);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, border-color .15s ease;
}

.qs-ad-card:hover {
    transform: translateY(-3px);
    border-color: var(--mud-palette-secondary, #4EE0FC);
}

.qs-ad-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: var(--mud-palette-background-gray, #0d1117);
}

.qs-ad-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.qs-ad-body h3,
.qs-ad-title {
    display: block;
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--mud-palette-text-primary, #f2f5fa);
    font-weight: 500;
    text-decoration: none;
}

.qs-ad-title:hover {
    color: var(--mud-palette-secondary, #4EE0FC);
}

.qs-ad-body p {
    margin: 0;
    font-size: 13px;
    color: var(--mud-palette-text-secondary, #b9c2cf);
    flex: 1;
}

.qs-ad-eco {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    color: var(--mud-palette-primary, #7e6fff);
    border: 1px solid var(--mud-palette-primary, #2e2a55);
    border-radius: 999px;
    padding: 2px 10px;
    width: fit-content;
}

/* ════════════════════════════════════════════════════════════════════════
   Spotlight / Feed-Seite (/ und /pulse)
   ════════════════════════════════════════════════════════════════════════ */

/* Kopf + Sortierung + Filter ----------------------------------------------- */
.spotlight-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 12px 0 12px;
}

.spotlight-sort {
    flex: 0 0 auto;
}

.spotlight-h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: var(--mud-palette-text-primary, #f2f5fa);
}

.spotlight-sub {
    margin-top: 2px;
    font-size: 14px;
    color: var(--mud-palette-text-secondary, #b9c2cf);
}

.spotlight-sort {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: var(--mud-palette-surface, #1a2332);
    border: 1px solid var(--mud-palette-lines-default, #243246);
    border-radius: 999px;
}

.spotlight-seg {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--mud-palette-text-secondary, #b9c2cf);
    padding: 6px 16px;
    border-radius: 999px;
    transition: background .12s ease, color .12s ease;
}

.spotlight-seg.on {
    background: var(--mud-palette-primary, #7e6fff);
    color: #fff;
}

/* In der Kopfzeile mittig zwischen Titel (links) und Neu/Beliebt (rechts). */
/* .spotlight-filter { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; justify-content: center; } */
.spotlight-filter {
    flex: 0 0 auto;
}

/* Auf dem Smartphone die Ökosystem-Filter ausblenden. */
@media (max-width: 700px) {
    .spotlight-filter {
        display: none;
    }
}


.spotlight-chip {
    border: 1px solid var(--mud-palette-lines-default, #243246);
    background: transparent;
    cursor: pointer;
    color: var(--mud-palette-text-secondary, #b9c2cf);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 13px;
    transition: border-color .12s ease, color .12s ease, background .12s ease;
}

.spotlight-chip:hover {
    border-color: var(--mud-palette-secondary, #4EE0FC);
}

.spotlight-chip.on {
    border-color: var(--mud-palette-primary, #7e6fff);
    color: var(--mud-palette-primary, #7e6fff);
    background: rgba(126, 111, 255, .12);
}

/* Gemeinsame Bausteine ----------------------------------------------------- */
.spotlight-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.spotlight-time {
    font-size: 12px;
    color: var(--mud-palette-text-secondary, #b9c2cf);
}

/* In der Vote-Leiste steht das Datum rechts (ersetzt den früheren Öffnen-Link). */
.spotlight-votes .spotlight-time {
    margin-left: auto;
    white-space: nowrap;
    font-size: 13px;
}

/* Klickbare Karten/Kacheln: ganze Fläche öffnet den Artikel. */
.spotlight-clickable {
    cursor: pointer;
}

.spotlight-clickable:hover .spotlight-post-title,
.spotlight-clickable:hover .spotlight-tile-title,
.spotlight-clickable:hover .spotlight-hero-title,
.spotlight-clickable:hover .qs-ad-title {
    color: var(--mud-palette-secondary, #4EE0FC);
}

.spotlight-post-title,
.spotlight-tile-title,
.spotlight-hero-title {
    text-decoration: none;
    color: var(--mud-palette-text-primary, #f2f5fa);
    font-weight: 600;
    display: block;
}

.spotlight-post-title:hover,
.spotlight-tile-title:hover,
.spotlight-hero-title:hover {
    color: var(--mud-palette-secondary, #4EE0FC);
}

.spotlight-post-text,
.spotlight-tile-text,
.spotlight-hero-text {
    margin: 0;
    color: var(--mud-palette-text-secondary, #b9c2cf);
    font-size: 13px;
    line-height: 1.45;
}

.spotlight-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 8px 0 6px;
}

/* Vote-Leiste (👍/👎 + Öffnen) */
.spotlight-votes {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.spotlight-vote {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    border: 1px solid var(--mud-palette-lines-default, #243246);
    background: transparent;
    color: var(--mud-palette-text-secondary, #b9c2cf);
    border-radius: 999px;
    padding: 4px 11px;
    transition: border-color .12s ease, color .12s ease, background .12s ease;
}

.spotlight-vote:hover {
    border-color: var(--mud-palette-secondary, #4EE0FC);
}

.spotlight-vote .cnt {
    font-variant-numeric: tabular-nums;
}

/* Klick-Zähler (👁) – reine Anzeige, kein Button. */
.spotlight-clicks {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mud-palette-text-secondary, #b9c2cf);
}

.spotlight-clicks .cnt {
    font-variant-numeric: tabular-nums;
}

.spotlight-vote.up.on {
    color: #22c55e;
    border-color: #22c55e;
    background: rgba(34, 197, 94, .12);
}

.spotlight-vote.down.on {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, .12);
}

/* Tab A — Stream ----------------------------------------------------------- */
.margin-stream {
    margin-top: 12px;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spotlight-post {
    margin-top: 12px;
    display: flex;
    background: var(--mud-palette-surface, #1a2332);
    border: 1px solid var(--mud-palette-lines-default, #243246);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease;
}

.spotlight-post:hover {
    transform: translateY(-2px);
    border-color: var(--mud-palette-secondary, #4EE0FC);
}

.spotlight-post-media {
    flex: 0 0 210px;
    display: block;
}

.spotlight-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--mud-palette-background-gray, #0d1117);
}

.spotlight-post-body {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spotlight-post-title {
    font-size: 18px;
}

/* Tab B — Bento ------------------------------------------------------------ */
.spotlight-bento {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    grid-auto-flow: dense;
    gap: 14px;
}

.spotlight-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--mud-palette-surface, #1a2332);
    border: 1px solid var(--mud-palette-lines-default, #243246);
    border-radius: 14px;
    transition: transform .15s ease, border-color .15s ease;
}

.spotlight-tile:hover {
    transform: translateY(-2px);
    border-color: var(--mud-palette-secondary, #4EE0FC);
}

.spotlight-tile-media {
    display: block;
}

.spotlight-tile-media img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: var(--mud-palette-background-gray, #0d1117);
}

.spotlight-tile-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
}

.spotlight-tile-title {
    font-size: 15px;
}

.bento-empty {}

/* Platzhalter */
.tile-lg {
    grid-column: span 2;
    grid-row: span 2;
}

.tile-wide {
    grid-column: span 2;
}

.tile-tall {
    grid-row: span 2;
}

/* In Bento bekommt das Bild eine feste Höhe, der Text bleibt immer sichtbar
   (auch in gespannten Kacheln). Der Body füllt den Resthöhenraum. */
.spotlight-bento .spotlight-tile-media {
    flex: 0 0 auto;
}

.spotlight-bento .spotlight-tile-media img {
    height: 150px;
}

.spotlight-bento .tile-lg .spotlight-tile-media img,
.spotlight-bento .tile-tall .spotlight-tile-media img {
    height: 220px;
}

.spotlight-bento .spotlight-tile-body {
    flex: 1 1 auto;
    overflow: hidden;
}

/* Tab C — Magazin ---------------------------------------------------------- */
.spotlight-mag-hero {
    margin-top: 12px;
    display: flex;
    min-height: 320px;
    overflow: hidden;
    margin-bottom: 18px;
    background: var(--mud-palette-surface, #1a2332);
    border: 1px solid var(--mud-palette-lines-default, #243246);
    border-radius: 16px;
}

.spotlight-hero-media {
    flex: 1.3;
    display: block;
}

.spotlight-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--mud-palette-background-gray, #0d1117);
}

.spotlight-hero-body {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.spotlight-hero-title {
    font-size: 30px;
    line-height: 1.15;
}

.spotlight-hero-text {
    font-size: 15px;
}

.spotlight-badge {
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11px;
    font-weight: 600;
    color: var(--mud-palette-primary, #7e6fff);
    border: 1px solid var(--mud-palette-primary, #7e6fff);
    border-radius: 999px;
    padding: 3px 10px;
}

.spotlight-mag-rest {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

/* Tab D — Wand (Masonry über CSS-Spalten) ---------------------------------- */
.spotlight-wall {
    margin-top: 12px;
    column-count: 4;
    column-gap: 14px;
}

.spotlight-wall-item {
    break-inside: avoid;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--mud-palette-surface, #1a2332);
    border: 1px solid var(--mud-palette-lines-default, #243246);
    border-radius: 14px;
    transition: border-color .15s ease;
}

.spotlight-wall-item:hover {
    border-color: var(--mud-palette-secondary, #4EE0FC);
}

/* In der Wand behalten Bilder ihre natürliche Höhe → echter Masonry-Effekt. */
.spotlight-wall .spotlight-tile-media img {
    height: auto;
    max-height: 340px;
}

/* Responsiv ---------------------------------------------------------------- */
@media (max-width: 1100px) {
    .spotlight-bento {
        grid-template-columns: repeat(3, 1fr);
    }

    .spotlight-wall {
        column-count: 3;
    }
}

@media (max-width: 800px) {
    .spotlight-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .spotlight-wall {
        column-count: 2;
    }

    .spotlight-mag-hero {
        flex-direction: column;
        min-height: 0;
    }

    .spotlight-hero-media img {
        height: 200px;
    }

    .tile-lg,
    .tile-wide {
        grid-column: span 2;
    }

    .tile-lg,
    .tile-tall {
        grid-row: span 1;
    }
}

/* Auf dem Handy zuerst die Anzeigen, dann die Statistik-Panels (API-Daten). */
@media (max-width: 700px) {
    .spotlight-page {
        display: flex;
        flex-direction: column;
    }

    .spotlight-page .qs-stats {
        order: 2;
        margin: 20px 0 8px;
    }

    .spotlight-page .spotlight-feed {
        order: 1;
    }
}

@media (max-width: 560px) {
    .spotlight-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .spotlight-bento .spotlight-tile-media img {
        height: 170px;
    }

    .tile-lg,
    .tile-wide,
    .tile-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .spotlight-wall {
        column-count: 1;
    }

    .spotlight-post {
        flex-direction: column;
    }

    .spotlight-post-media {
        flex: none;
    }

    .spotlight-post-media img {
        height: 180px;
    }

    .spotlight-hero-title {
        font-size: 24px;
    }
}

/* Tabellen-Zebra: dezenter, theme-abhängiger Streifen statt MudBlazor-Standard. */
.mud-table-striped tbody tr:nth-of-type(even):not(.mud-table-no-stripe) {
    background-color: rgba(255, 255, 255, 0.025);
}

.mud-theme-light .mud-table-striped tbody tr:nth-of-type(even):not(.mud-table-no-stripe) {
    background-color: rgba(0, 0, 0, 0.025);
}

/* ── Admin → Besucher-Tab (Charts/Kacheln, mobil-tauglich) ─────────────────── */
/* Zeitraum-Filter wie auf der Startseite (Segment-Buttons), darf auf schmalen
   Screens umbrechen, damit alle fünf Bereiche erreichbar bleiben. */
.vis-range {
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Summen-Kacheln: gleichmäßig wachsend/schrumpfend, mehrere pro Reihe. */
.vis-sumcards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vis-sumcard {
    flex: 1 1 150px;
}

/* Auf schmalen Screens zwei Kacheln pro Reihe (statt sehr breiter Einzelkacheln). */
@media (max-width: 600px) {
    .vis-sumcards {
        gap: 8px;
    }

    .vis-sumcard {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }
}

/* Chart: nie über den Viewport hinaus quetschen; bei Bedarf horizontal scrollen. */
.vis-chart-wrap {
    width: 100%;
    overflow-x: auto;
}

.vis-chart-wrap .mud-chart {
    min-width: 320px;
}

/* Zwei Spalten: links Chart, rechts Länderliste. Auf Mobile (≤ 900px) eine Spalte. */
.vis-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.vis-col-chart,
.vis-col-countries {
    min-width: 0;
}

@media (max-width: 900px) {
    .vis-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

#blazor-error-ui {
    background: #ea580c;
    color: #fff;
    bottom: 0;
    display: none;
    left: 0;
    padding: 0.8rem 1.2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* ════════════════════════════════════════════════════════════════════════
   Showcase / "Spotlight Stage" — kinoartige Präsentation der Dashboard-
   Einträge als erster Tab: Ambient-Glow, Story-Fortschritt, Poster,
   Filmstreifen. (Komponente ShowcaseStage.razor, eingebettet in Spotlight.)
   ════════════════════════════════════════════════════════════════════════ */

/* Steuerungszeile (Zähler + Zurück/Play/Weiter/Vollbild), rechtsbündig
   über der Bühne. Titel/Untertitel liefert der umgebende Dashboard-Tab. */
.showcase-controls-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin: 2px 0 10px;
}

.showcase-counter {
    font-size: 13px;
    color: var(--mud-palette-text-secondary, #b9c2cf);
    font-variant-numeric: tabular-nums;
    margin-right: 6px;
    white-space: nowrap;
}

/* Story-Fortschritt (ein Segment pro Artikel) ------------------------------ */
.showcase-bars {
    display: flex;
    gap: 5px;
    margin: 2px 0 14px;
}

.showcase-bar {
    flex: 1 1 0;
    min-width: 6px;
    height: 4px;
    border-radius: 999px;
    background: var(--mud-palette-lines-default, #243246);
    overflow: hidden;
}

.showcase-bar.done {
    background: linear-gradient(90deg, #7e6fff, #4ee0fc);
    opacity: .45;
}

.showcase-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7e6fff, #4ee0fc);
    transform-origin: left center;
    transform: scaleX(0);
    animation-name: qs-sc-progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.showcase.paused .showcase-bar-fill {
    animation-play-state: paused;
}

@keyframes qs-sc-progress {
    to {
        transform: scaleX(1);
    }
}

/* Bühne --------------------------------------------------------------------- */
/* FESTE Höhe (nicht nur min-height): so bleibt die Bühne beim Wechsel zum
   nächsten Post exakt gleich hoch – der Inhalt wird innerhalb der festen Box
   zentriert, statt die Box mitwachsen zu lassen (kein Höhensprung mehr).
   Die Höhe berücksichtigt, was darüber liegt (Header, Stats-Leiste, Tab-Bar,
   Controls, Fortschrittsbalken) sowie den Filmstreifen darunter, damit unten
   die Funktionen sichtbar bleiben. --qs-sc-reserved fasst diese Abzüge zusammen. */
.showcase {
    --qs-sc-reserved: 470px;
}

.showcase-stage {
    position: relative;
    display: flex;
    align-items: center;
    height: clamp(320px, calc(100dvh - var(--qs-sc-reserved)), 560px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default, #243246);
    background: var(--mud-palette-surface, #1a2332);
}

/* Ambient-Glow: das Artikelbild stark geblurrt als Raumlicht, zwei Ebenen
   für einen weichen Crossfade beim Artikelwechsel. */
.showcase-bg-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.showcase-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: blur(48px) saturate(1.3);
    transform: scale(1.15);
    opacity: 0;
    transition: opacity 1s ease;
}

.showcase-bg.on {
    opacity: .45;
}

/* Ohne Bild: stimmungsvoller Qubic-Farbverlauf statt Bild-Glow. */
.showcase-bg.grad {
    filter: none;
    background:
        radial-gradient(60% 80% at 18% 20%, rgba(126, 111, 255, .38), transparent 60%),
        radial-gradient(50% 70% at 85% 28%, rgba(78, 224, 252, .30), transparent 60%),
        radial-gradient(70% 90% at 60% 92%, rgba(126, 111, 255, .22), transparent 65%);
}

.showcase-bg.grad.on {
    opacity: .9;
}

/* Lesbarkeits-Scrim in Theme-Farbe (funktioniert hell wie dunkel). */
.showcase-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--mud-palette-surface, #1a2332) 0%, transparent 55%),
        linear-gradient(0deg, var(--mud-palette-surface, #1a2332) 0%, transparent 45%);
    opacity: .72;
}

/* Inhalt: links Text, rechts Poster. Füllt die feste Bühnenhöhe komplett aus
   und zentriert darin – da die Box-Höhe fix ist, springt beim Post-Wechsel
   nichts mehr. */
.showcase-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(24px, 1vw, 56px);
    align-items: center;
    width: 100%;
    height: 100%;
    padding: clamp(20px, 1.8vw, 44px) clamp(52px, 6vw, 84px);
    box-sizing: border-box;
}

.showcase-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.showcase-eyebrow .qs-ad-eco {
    margin-top: 0;
}

.showcase-date {
    font-size: 13px;
    color: var(--mud-palette-text-secondary, #b9c2cf);
}

.showcase-title {
    margin: 14px 0 0;
    font-size: clamp(26px, 3.6vw, 44px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--mud-palette-text-primary, #f2f5fa);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-text {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--mud-palette-text-secondary, #b9c2cf);
    /* max-width: 56ch; */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Vote-Leiste: bestehenden Spotlight-Look übernehmen, Abstände anpassen. */
.showcase-votes {
    margin-top: 18px;
    padding-top: 0;
}

.showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(100deg, #7e6fff, #5a8bff 55%, #4ee0fc);
    box-shadow: 0 10px 28px -10px rgba(126, 111, 255, .65);
    transition: transform .15s ease, box-shadow .15s ease;
}

.showcase-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -10px rgba(126, 111, 255, .8);
}

.showcase-cta:active {
    transform: translateY(0);
}

/* Poster: das scharfe Artikelbild als leicht gekippte Bühnen-Karte mit
   Ken-Burns-Zoom; ohne Bild ein Gradient-Platzhalter mit Initial.
   Die Höhe ist auf die verfügbare Bühnen-Innenhöhe gedeckelt, damit das
   Poster bei fester Bühnenhöhe nie über den Rahmen hinausragt. */
.showcase-poster {
    position: relative;
    justify-self: center;
    height: 100%;
    max-height: min(100%, 400px);
    width: auto;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background: var(--mud-palette-background-gray, #0d1117);
    box-shadow: 0 30px 70px -24px rgba(15, 20, 40, .55), 0 0 0 1px var(--mud-palette-lines-default, #243246);
    transform: perspective(1400px) rotateY(-5deg);
    transition: transform .5s cubic-bezier(.2, .7, .25, 1);
}

.showcase-poster:hover {
    transform: perspective(1400px) rotateY(-1deg) scale(1.01);
}

.showcase-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    animation: qs-sc-kenburns 16s ease-in-out infinite alternate;
}

/* Platzhalter liegt UNTER dem Bild und wird nur ohne Bild sichtbar. */
.showcase-poster-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(80% 100% at 20% 0%, rgba(255, 255, 255, .18), transparent 55%),
        linear-gradient(135deg, #7e6fff, #4ee0fc);
}

.showcase-poster-ph span {
    font-family: 'Space Grotesk', 'Roboto', sans-serif;
    font-size: clamp(64px, 8vw, 120px);
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 8px 40px rgba(0, 0, 0, .35);
}

@keyframes qs-sc-kenburns {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.1) translate(-1.8%, 1.4%);
    }
}

/* Pfeile (Glas-Buttons auf der Bühne) --------------------------------------- */
.showcase-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--mud-palette-lines-default, #243246);
    background: var(--mud-palette-surface, #1a2332);
    background: color-mix(in srgb, var(--mud-palette-surface, #1a2332) 72%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--mud-palette-text-primary, #f2f5fa);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px;
    transition: border-color .15s ease, transform .15s ease;
}

.showcase-arrow:hover {
    border-color: var(--mud-palette-secondary, #4EE0FC);
    transform: translateY(-50%) scale(1.08);
}

.showcase-arrow.left {
    left: 16px;
}

.showcase-arrow.right {
    right: 16px;
}

/* Gestaffeltes Einfliegen der Inhalte bei jedem Artikelwechsel. */
.sc-a1, .sc-a2, .sc-a3, .sc-a4, .sc-a5 {
    animation: qs-sc-rise .6s cubic-bezier(.2, .7, .25, 1) backwards;
}

.sc-a1 { animation-delay: .05s; }
.sc-a2 { animation-delay: .14s; }
.sc-a3 { animation-delay: .24s; }
.sc-a4 { animation-delay: .34s; }
.sc-a5 { animation-delay: .44s; }

@keyframes qs-sc-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* Filmstreifen --------------------------------------------------------------- */
.showcase-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 16px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--mud-palette-lines-default, #243246) transparent;
}

.showcase-thumb {
    position: relative;
    flex: 0 0 176px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default, #243246);
    background: var(--mud-palette-surface, #1a2332);
    cursor: pointer;
    padding: 0;
    text-align: left;
    scroll-snap-align: center;
    opacity: .7;
    transition: opacity .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.showcase-thumb:hover {
    opacity: .95;
    border-color: var(--mud-palette-secondary, #4EE0FC);
}

.showcase-thumb.on {
    opacity: 1;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--mud-palette-primary, #7e6fff), 0 8px 22px -10px rgba(126, 111, 255, .7);
    transform: translateY(-2px);
}

/* Platzhalter im Fluss (bestimmt die Höhe), Bild liegt absolut darüber. */
.showcase-thumb-ph {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(126, 111, 255, .9), rgba(78, 224, 252, .85));
}

.showcase-thumb-ph span {
    font-family: 'Space Grotesk', 'Roboto', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
}

.showcase-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 82px;
    object-fit: cover;
    z-index: 1;
}

.showcase-thumb-title {
    display: block;
    padding: 7px 10px 8px;
    font-size: 12px;
    color: var(--mud-palette-text-primary, #f2f5fa);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tastatur-Hinweis ----------------------------------------------------------- */
.showcase-hint {
    margin: 10px 2px 0;
    font-size: 12.5px;
    color: var(--mud-palette-text-secondary, #b9c2cf);
}

.showcase-hint kbd {
    display: inline-block;
    min-width: 22px;
    text-align: center;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--mud-palette-lines-default, #243246);
    background: var(--mud-palette-surface, #1a2332);
    font-family: inherit;
    font-size: 11.5px;
    box-shadow: 0 2px 0 var(--mud-palette-lines-default, #243246);
}

/* Leerzustand ---------------------------------------------------------------- */
.showcase-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 72px 20px;
    text-align: center;
    color: var(--mud-palette-text-secondary, #b9c2cf);
    border: 1px dashed var(--mud-palette-lines-default, #243246);
    border-radius: 20px;
}

.showcase-empty p {
    margin: 0;
    max-width: 460px;
}

/* Vollbild (Kiosk-/Präsentationsmodus) --------------------------------------- */
#qs-showcase:fullscreen {
    background: var(--mud-palette-background, #101820);
    padding: 24px 32px;
    overflow-y: auto;
}

#qs-showcase:fullscreen .showcase-stage {
    height: calc(100dvh - 210px);
    max-height: none;
}

/* Responsiv ------------------------------------------------------------------ */
@media (max-width: 900px) {
    /* Gestapeltes Layout: die feste Bühnenhöhe aufheben und mit dem Inhalt
       fließen lassen (Poster oben, Text darunter). */
    .showcase-stage {
        height: auto;
        min-height: 0;
        align-items: stretch;
    }

    .showcase-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        height: auto;
        padding: 20px 18px 26px;
    }

    /* Poster zuerst (oben), ohne 3D-Kippung; Text darunter. Volle Breite,
       Höhe wieder aus dem Seitenverhältnis (nicht auf Bühnenhöhe gedeckelt). */
    .showcase-poster,
    .showcase-poster:hover {
        order: -1;
        transform: none;
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 16 / 9;
    }

    .showcase-title {
        margin-top: 12px;
        font-size: clamp(22px, 6vw, 30px);
    }

    .showcase-text {
        font-size: 14.5px;
        -webkit-line-clamp: 4;
    }

    /* Auf Touch-Geräten navigiert man per Swipe + Filmstreifen. */
    .showcase-arrow {
        display: none;
    }

    /* Scrim von unten, weil der Text unter dem Poster liegt. */
    .showcase-scrim {
        background: linear-gradient(0deg, var(--mud-palette-surface, #1a2332) 10%, transparent 65%);
        opacity: .8;
    }

    .showcase-thumb {
        flex-basis: 136px;
    }

    .showcase-thumb img,
    .showcase-thumb-ph {
        height: 64px;
    }

    .showcase-thumb-ph span {
        font-size: 22px;
    }
}

/* Weniger Bewegung, wenn das System es wünscht. */
@media (prefers-reduced-motion: reduce) {

    .showcase-poster img,
    .sc-a1, .sc-a2, .sc-a3, .sc-a4, .sc-a5 {
        animation: none;
    }

    .showcase-bg {
        transition: none;
    }

    .showcase-poster,
    .showcase-poster:hover {
        transform: none;
        transition: none;
    }
}