/* =====================================================================
   BAUSTEINE (Arbeitsplan AP-02)
   Gemeinsame Bausteine für alle Seiten: Farbwelten der Projektstrukturen,
   Navigation mit Menü, Tab-Leiste, Vorschaukarten, Projektköpfe,
   Download-Kasten, Geräterahmen, Zeitleiste und Motion-Bausteine.
   Muster aller Bausteine: docs/muster.html
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Farbwelten (data-marke an <body> oder an einem Baustein)
   --marke        Akzent für Text, Linien, Symbole (Kontrast ≥ 4.5:1 zum Hintergrund)
   --marke-voll   Fläche für Knöpfe, --marke-auf ist die Schrift darauf
   --marke-weich  zarte Fläche (Hintergrund aktiver Tabs, Hervorhebungen)
   --marke-glanz  Lichtschein hinter Bildern und Köpfen
   Geprüft mit werkzeuge/kontraste.mjs
   --------------------------------------------------------------------- */
:root, [data-marke="pytales"] {
    --marke: #d4b06a;
    --marke-voll: #c8a45e;
    --marke-auf: #10131a;
    --marke-weich: rgba(200, 164, 94, 0.13);
    --marke-glanz: rgba(200, 164, 94, 0.22);
    --marke-zweit: #6a9bf0;
}
[data-marke="sensable"] {
    --marke: #3fcaf7;
    --marke-voll: #29c4f6;
    --marke-auf: #06212c;
    --marke-weich: rgba(41, 196, 246, 0.12);
    --marke-glanz: rgba(41, 196, 246, 0.2);
    --marke-zweit: #7fd8c4;
}
[data-marke="lora"] {
    --marke: #a69eff;
    --marke-voll: #5b4fe9;
    --marke-auf: #ffffff;
    --marke-weich: rgba(91, 79, 233, 0.18);
    --marke-glanz: rgba(124, 112, 255, 0.26);
    --marke-zweit: #ffb300;
}
[data-marke="archiv"] {
    --marke: #c9a97f;
    --marke-voll: #b8966a;
    --marke-auf: #14100a;
    --marke-weich: rgba(184, 150, 106, 0.13);
    --marke-glanz: rgba(184, 150, 106, 0.18);
    --marke-zweit: #a3abb9;
}
body.light-mode, body.light-mode [data-marke="pytales"] {
    --marke: #7f6022;
    --marke-voll: #c8a45e;
    --marke-auf: #10131a;
    --marke-weich: rgba(154, 122, 53, 0.1);
    --marke-glanz: rgba(200, 164, 94, 0.22);
    --marke-zweit: #1f5fbf;
}
body.light-mode[data-marke="sensable"], body.light-mode [data-marke="sensable"] {
    --marke: #0a6c91;
    --marke-voll: #0a74a0;
    --marke-auf: #ffffff;
    --marke-weich: rgba(11, 127, 174, 0.09);
    --marke-glanz: rgba(41, 196, 246, 0.2);
    --marke-zweit: #1d7f6c;
}
body.light-mode[data-marke="lora"], body.light-mode [data-marke="lora"] {
    --marke: #4a3fd6;
    --marke-voll: #5b4fe9;
    --marke-auf: #ffffff;
    --marke-weich: rgba(91, 79, 233, 0.09);
    --marke-glanz: rgba(124, 112, 255, 0.2);
    --marke-zweit: #b26b00;
}
body.light-mode[data-marke="archiv"], body.light-mode [data-marke="archiv"] {
    --marke: #74572f;
    --marke-voll: #b8966a;
    --marke-auf: #14100a;
    --marke-weich: rgba(122, 92, 54, 0.09);
    --marke-glanz: rgba(184, 150, 106, 0.18);
    --marke-zweit: #4b5563;
}

/* Abschnittsmarken und Lichtschein nehmen die Farbe der Struktur an */
body[data-marke] .section-label, [data-marke] > .section-label, .struktur-kopf .section-label, .projekt-kopf .section-label { color: var(--marke); }
body[data-marke] .ambient-glow { background: radial-gradient(ellipse at center, var(--marke-glanz) 0%, transparent 70%); opacity: 0.45; }

/* Knöpfe in der Markenfarbe */
.marke-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 14px;
    background: var(--marke-voll); color: var(--marke-auf); border: 1px solid transparent; cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.3s ease, filter 0.2s;
}
.marke-btn:hover { color: var(--marke-auf); filter: brightness(1.06); box-shadow: 0 12px 26px -14px var(--marke-voll); }
.marke-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.marke-btn:focus-visible { outline: 2px solid var(--marke); outline-offset: 3px; }
.primary-btn svg, .ghost-btn svg { flex-shrink: 0; }
.primary-btn > svg, .ghost-btn > svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------------
   2. Sprunglink, Kopfleiste, Menü
   --------------------------------------------------------------------- */
.skip-link {
    position: fixed; top: 10px; left: 12px; z-index: 2000;
    padding: 10px 16px; border-radius: 10px; background: var(--text-light); color: var(--bg-main);
    font-weight: 600; transform: translateY(-150%); transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; color: var(--bg-main); outline: 2px solid var(--primary); outline-offset: 2px; }
main:focus { outline: none; }

.zeichen { width: 22px; height: 22px; flex-shrink: 0; display: block; }
.brand-zeichen { width: 32px; height: 32px; transition: transform 0.5s var(--ease-out); }
.wortmarke { display: block; height: 14px; width: auto; color: var(--text-light); }
.top-bar .wortmarke { height: 15px; }
.fuss-brand .wortmarke { height: 15px; }
img.zeichen { object-fit: contain; }
.home-brand-combo:hover .brand-zeichen { transform: rotate(-6deg) scale(1.08); }
.zeichen-sensable { color: #29c4f6; --zeichen-hell: #e9fbff; }
body.light-mode .zeichen-sensable { color: #0b7fae; --zeichen-hell: #ffffff; }
.zeichen-archiv { color: #b8966a; }
body.light-mode .zeichen-archiv { color: #8a6a40; }

/* Unterstrich des aktiven Bereichs in dessen Farbe */
.nav-link.active::after { background: var(--marke, var(--primary)); }
.nav-link[data-marke="pytales"].active::after { background: #c8a45e; }
.nav-link[data-marke="sensable"].active::after { background: #29c4f6; }
.nav-link[data-marke="lora"].active::after { background: #7c70ff; }
.nav-link[data-marke="archiv"].active::after { background: #b8966a; }
.nav-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.menu-toggle {
    display: none; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px;
    border-radius: 18px; border: 1px solid var(--border-light); background: var(--btn-ghost-bg, rgba(255,255,255,0.03));
    color: var(--text-light); font: 600 13px var(--font-sans); cursor: pointer;
}
.menu-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.menu-icon { position: relative; width: 16px; height: 12px; display: inline-block; }
.menu-icon i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease-out), opacity 0.2s; }
.menu-icon i:nth-child(1) { top: 0; }
.menu-icon i:nth-child(2) { top: 5px; }
.menu-icon i:nth-child(3) { top: 10px; }
.top-bar.menu-offen .menu-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.top-bar.menu-offen .menu-icon i:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.top-bar.menu-offen .menu-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
    .js .top-bar { padding: 0 12px 0 16px; gap: 10px; }
    .js .top-bar .separator { display: none; }
    .js .top-bar .menu-toggle { display: inline-flex; margin-left: auto; }
    .js .top-bar .theme-toggle-btn { margin-left: 0; }
    .js .top-bar .nav-links {
        position: fixed; top: 64px; left: 0; right: 0; z-index: 999;
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 10px 14px 18px; overflow: visible; white-space: normal;
        /* deckend: innerhalb der Kopfleiste (selbst mit backdrop-filter) greift keine eigene Unschärfe */
        background: var(--bg-main);
        border-bottom: 1px solid var(--border-light); box-shadow: 0 24px 40px -24px var(--glass-shadow);
        -webkit-mask-image: none; mask-image: none;
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
    }
    .js .top-bar.menu-offen .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s; }
    .js .top-bar .nav-link { padding: 13px 14px; font-size: 15.5px; }
    .js .top-bar .nav-link.active { background: var(--btn-ghost-bg-hover, rgba(255,255,255,0.05)); }
    .js .top-bar .nav-link.active::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
    .js .top-bar .nav-pill { display: none; }
    /* Seite unter dem geöffneten Menü abdunkeln (Klick darauf schließt das Menü) */
    .js .top-bar::after {
        content: ""; position: fixed; left: 0; right: 0; top: 64px; height: calc(100dvh - 64px); z-index: 998;
        background: rgba(5, 7, 12, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }
    .js .top-bar.menu-offen::after { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
}
@media (max-width: 380px) {
    .js .top-bar .menu-text { display: none; }
    .js .top-bar .menu-toggle { padding: 0 10px; }
}

/* ---------------------------------------------------------------------
   3. Tab-Leiste einer Projektstruktur
   --------------------------------------------------------------------- */
.struktur-tabs { position: sticky; top: 76px; z-index: 40; margin: 0 0 28px; view-transition-name: struktur-tabs; }
.struktur-tabs-inner {
    display: flex; align-items: center; gap: 6px; padding: 6px;
    border: 1px solid var(--border-light); border-radius: 14px;
    background: var(--bg-panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 30px -24px var(--glass-shadow);
}
.struktur-tabs-marke {
    display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
    padding: 6px 14px 6px 8px; margin-right: 4px; border-right: 1px solid var(--border-light);
    color: var(--text-light); font-weight: 700; font-size: 13.5px; font-family: var(--font-serif);
}
.struktur-tabs-marke:hover { color: var(--marke); }
.struktur-tabs-marke .zeichen { width: 22px; height: 22px; }
.struktur-tabs ul {
    list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; min-width: 0;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.struktur-tabs ul::-webkit-scrollbar { display: none; }
.struktur-tabs li { flex-shrink: 0; }
.struktur-tabs li a {
    position: relative; display: block; padding: 8px 14px; border-radius: 9px;
    color: var(--text-main); font-weight: 500; font-size: 13.5px; white-space: nowrap;
}
.struktur-tabs li a:hover { color: var(--text-light); background: var(--btn-ghost-bg-hover, rgba(255,255,255,0.04)); }
.struktur-tabs li a.ist-aktiv { color: var(--text-light); font-weight: 600; }
.struktur-tabs li a.ist-aktiv::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: var(--marke-weich); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--marke) 35%, transparent);
    view-transition-name: tab-anzeiger;
}
.struktur-tabs li a { isolation: isolate; }
.struktur-tabs li a.ist-aktiv::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--marke);
}
.struktur-tabs li a:focus-visible { outline: 2px solid var(--marke); outline-offset: 1px; }
@media (max-width: 640px) {
    .struktur-tabs ul {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
        mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
        padding: 0 10px;
    }
    .struktur-tabs { top: 72px; margin-bottom: 22px; }
    .struktur-tabs-marke span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .struktur-tabs-marke { padding: 6px 10px 6px 6px; }
    .struktur-tabs li a { padding: 8px 11px; font-size: 13px; }
}
::view-transition-group(tab-anzeiger) { animation-duration: 0.4s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-group(struktur-tabs) { animation-duration: 0.3s; }

/* Bilder fliegen von der Vorschaukarte in den Projektkopf (gleicher view-transition-name) */
::view-transition-group(*) { animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(*), ::view-transition-new(*) { animation-duration: 0.35s; }

/* ---------------------------------------------------------------------
   4. Köpfe: Projektstruktur und Projekt
   --------------------------------------------------------------------- */
.struktur-kopf { position: relative; padding: 18px 0 34px; max-width: 860px; }
.struktur-kopf::before {
    content: ""; position: absolute; left: -120px; top: -80px; width: min(520px, calc(100% + 120px)); height: 360px; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, var(--marke-glanz), transparent); filter: blur(10px); opacity: 0.8;
}
.gross-zeichen, .struktur-kopf .gross-zeichen { width: 64px; height: 64px; margin-bottom: 18px; }
.struktur-kopf h1 { font-family: var(--font-serif); font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1.08; margin-bottom: 14px; }
.struktur-kopf .lead { font-size: 17px; max-width: 720px; }
.kopf-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kopf-chips li {
    font-size: 12.5px; font-weight: 500; color: var(--text-light); padding: 5px 12px; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--marke) 35%, var(--border-light)); background: var(--marke-weich);
}

.projekt-kopf {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center;
    padding: 12px 0 44px;
}
.projekt-kopf::before {
    content: ""; position: absolute; right: -60px; top: -40px; width: 640px; height: 460px; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, var(--marke-glanz), transparent); filter: blur(12px);
}
.projekt-kopf h1 { font-family: var(--font-serif); font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.06; margin-bottom: 10px; }
.projekt-kopf .untertitel { font-size: 15px; color: var(--marke); font-weight: 600; margin: 0 0 16px; }
.projekt-kopf .lead { font-size: 16.5px; margin-bottom: 22px; }
.projekt-aktionen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.projekt-medien { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--border-light); background: var(--bg-panel); box-shadow: 0 30px 60px -36px var(--glass-shadow); }
.projekt-medien > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.projekt-medien.ohne-rahmen { border: 0; background: none; box-shadow: none; overflow: visible; }
@media (max-width: 900px) {
    .projekt-kopf { grid-template-columns: 1fr; gap: 28px; }
    .projekt-kopf::before { right: 0; width: 100%; }
}

/* Abschnitte auf Projektseiten */
.abschnitt { margin: 0 0 56px; }
.abschnitt > h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.abschnitt > .abschnitt-lead { max-width: 720px; font-size: 15.5px; margin-bottom: 24px; }
.kachel-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.kachel {
    position: relative; padding: 20px 20px 18px; border-radius: 14px; border: 1px solid var(--border-light); background: var(--bg-panel);
    transition: transform 0.4s var(--ease-out), border-color 0.25s;
}
.kachel:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--marke) 40%, var(--border-light)); }
.kachel h3 { font-size: 1rem; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.kachel p { font-size: 13.5px; margin: 0; line-height: 1.65; }
.kachel-symbol { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--marke-weich); color: var(--marke); flex-shrink: 0; }
.kachel-symbol svg { width: 19px; height: 19px; }

/* ---------------------------------------------------------------------
   5. Vorschaukarten
   --------------------------------------------------------------------- */
.karten-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.vorschau-karte {
    --tone: var(--marke);
    position: relative; display: flex; flex-direction: column; min-width: 0;
    border: 1px solid var(--border-light); border-radius: 18px; background: var(--bg-panel); overflow: hidden;
    transition: transform 0.5s var(--ease-out), border-color 0.25s ease, box-shadow 0.5s ease;
}
.vorschau-karte:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--marke) 45%, var(--border-light));
    box-shadow: 0 28px 50px -30px color-mix(in srgb, var(--marke-voll) 60%, transparent);
}
.vorschau-karte:has(.vorschau-ziel:focus-visible) { outline: 2px solid var(--marke); outline-offset: 3px; }
.vorschau-medien {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden; flex-shrink: 0;
    background: radial-gradient(120% 90% at 30% 20%, var(--marke-weich), transparent 70%), var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
}
.vorschau-medien > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease-out), filter 0.4s ease; }
.vorschau-karte:hover .vorschau-medien > img { transform: scale(1.045); filter: saturate(1.06) brightness(1.04); }
.vorschau-text { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.vorschau-text .badge-row { margin-bottom: 12px; }
.vorschau-text h2, .vorschau-text h3 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; margin: 0 0 8px; }
.vorschau-text p { font-size: 14px; line-height: 1.68; margin-bottom: 14px; }
.vorschau-ziel { color: var(--text-light); }
.vorschau-ziel:hover { color: var(--text-light); }
.vorschau-ziel::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.vorschau-ziel:focus-visible { outline: none; }
.vorschau-mehr { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--marke); font-weight: 600; font-size: 13.5px; }
.vorschau-mehr svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.vorschau-karte:hover .vorschau-mehr svg { transform: translateX(4px); }
@media (min-width: 900px) {
    .vorschau-karte.ist-gross { grid-column: 1 / -1; flex-direction: row; }
    .vorschau-karte.ist-gross .vorschau-medien { width: 58%; aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--border-light); }
    .vorschau-karte.ist-gross .vorschau-text { padding: 34px 34px 30px; justify-content: center; }
    .vorschau-karte.ist-gross h2, .vorschau-karte.ist-gross h3 { font-size: 2rem; }
    .vorschau-karte.ist-gross p { font-size: 15px; }
}

.plattformen { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; }
.plattformen li {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: 999px;
    border: 1px solid var(--border-light); color: var(--text-muted); font-size: 12px; font-weight: 500;
}
.plattformen svg { width: 15px; height: 15px; color: var(--marke); }

.karten-gruppe { margin-bottom: 64px; }
.karten-gruppe-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.karten-gruppe-titel { display: inline-flex; align-items: center; gap: 12px; color: var(--text-light); }
.karten-gruppe-titel h2 { font-family: var(--font-serif); font-size: 1.8rem; margin: 0; }
.karten-gruppe-titel .zeichen { width: 30px; height: 30px; }
.karten-gruppe-titel:hover h2 { color: var(--marke); }
.karten-gruppe-kopf p { margin: 0; max-width: 520px; font-size: 14px; }

/* ---------------------------------------------------------------------
   6. Inszenierungen für Projekte ohne eigenes Bild (Mockups)
   Laufen nur, solange sie sichtbar sind (.ist-sichtbar setzt script.js).
   --------------------------------------------------------------------- */
.mockup { position: absolute; inset: 0; overflow: hidden; }
.mockup:not(.ist-sichtbar), .mockup:not(.ist-sichtbar) * { animation-play-state: paused !important; }
.projekt-medien .mockup { position: absolute; }

/* Aeterna: Fächer aus drei Karten mit goldenen Strahlen */
.mockup-karten { display: grid; place-items: center; background: radial-gradient(70% 90% at 50% 60%, rgba(200, 164, 94, 0.22), transparent 70%), linear-gradient(160deg, #1b1610, #0d0b08); }
.mk-strahlen {
    position: absolute; width: 160%; aspect-ratio: 1; left: -30%; top: -60%; z-index: 0; opacity: 0.55;
    background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(246, 214, 140, 0.22) 0deg 6deg, transparent 6deg 18deg);
    -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 75%); mask-image: radial-gradient(closest-side, #000 20%, transparent 75%);
    animation: mkDrehen 40s linear infinite;
}
.mk-karte {
    position: absolute; z-index: 1; width: 23%; aspect-ratio: 5 / 7; border-radius: 9px; top: 50%; left: 50%;
    background: linear-gradient(160deg, #3b2c18, #1a130b); border: 2px solid #c8a45e;
    box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.7), inset 0 0 0 3px rgba(0, 0, 0, 0.35), inset 0 0 0 4px rgba(246, 214, 140, 0.35);
    transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateY(var(--y, 0px)); transform-origin: 50% 140%;
    transition: transform 0.7s var(--ease-out);
}
.mk-karte i { position: absolute; inset: 14% 14% 38%; border-radius: 4px; background: radial-gradient(circle at 50% 40%, rgba(246, 214, 140, 0.55), rgba(120, 86, 40, 0.3) 60%, transparent 70%); }
.mk-karte::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 14%; height: 16%; border-radius: 3px; background: repeating-linear-gradient(180deg, rgba(246, 214, 140, 0.45) 0 2px, transparent 2px 6px); }
.mk-karte:nth-child(1) { --r: -16deg; --y: 4px; }
.mk-karte:nth-child(2) { --r: 0deg; --y: -8px; z-index: 2; animation: mkSchweben 5s ease-in-out infinite; }
.mk-karte:nth-child(3) { --r: 16deg; --y: 4px; }
.vorschau-karte:hover .mk-karte:nth-child(1), .projekt-medien:hover .mk-karte:nth-child(1) { --r: -24deg; }
.vorschau-karte:hover .mk-karte:nth-child(3), .projekt-medien:hover .mk-karte:nth-child(3) { --r: 24deg; }
body.light-mode .mockup-karten { background: radial-gradient(70% 90% at 50% 60%, rgba(200, 164, 94, 0.32), transparent 70%), linear-gradient(160deg, #f6efe1, #e9dcc0); }
body.light-mode .mk-strahlen { background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(154, 122, 53, 0.22) 0deg 6deg, transparent 6deg 18deg); }
@keyframes mkDrehen { to { transform: rotate(360deg); } }
@keyframes mkSchweben { 50% { transform: translate(-50%, -50%) rotate(0deg) translateY(-16px); } }

/* Werkzeuge: Pixelbild baut sich auf, daneben Equalizer */
.mockup-pixel { display: grid; place-items: center; background: radial-gradient(80% 90% at 40% 30%, rgba(169, 133, 224, 0.18), transparent 70%), #10131c; }
body.light-mode .mockup-pixel { background: radial-gradient(80% 90% at 40% 30%, rgba(169, 133, 224, 0.2), transparent 70%), #e9ecf4; }
.px-raster { position: relative; width: min(46%, 168px); aspect-ratio: 1; }
.px-raster i {
    position: absolute; width: calc(100% / 12); height: calc(100% / 12);
    left: calc(var(--x) * 100% / 12); top: calc(var(--y) * 100% / 12);
    animation: pxRein 6s var(--ease-out) infinite; animation-delay: calc(var(--n) * 0.09s);
}
.px-a { background: #e8eef7; } .px-b { background: #8fb4f5; } .px-c { background: #d9a441; } .px-d { background: #8a5a2b; } .px-e { background: #a985e0; }
@keyframes pxRein { 0%, 6% { transform: scale(0); opacity: 0; } 14%, 86% { transform: scale(1); opacity: 1; } 96%, 100% { transform: scale(0); opacity: 0; } }
.px-balken { position: absolute; right: 7%; bottom: 12%; display: flex; gap: 4px; align-items: flex-end; height: 26%; }
.px-balken i { width: 7px; height: 100%; border-radius: 2px; background: linear-gradient(#e07a7a, #d9a441); transform-origin: bottom; animation: pxBalken 1.1s ease-in-out infinite alternate; }
.px-balken i:nth-child(2) { animation-delay: -0.3s; } .px-balken i:nth-child(3) { animation-delay: -0.7s; } .px-balken i:nth-child(4) { animation-delay: -0.2s; }
.px-balken i:nth-child(5) { animation-delay: -0.9s; } .px-balken i:nth-child(6) { animation-delay: -0.5s; } .px-balken i:nth-child(7) { animation-delay: -0.1s; }
@keyframes pxBalken { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

/* Klassenzimmer VR: Raum in Draufsicht, ein Weg zeichnet sich */
.mockup-raum { display: grid; place-items: center; background: radial-gradient(80% 90% at 50% 40%, rgba(41, 196, 246, 0.16), transparent 70%), #0d1419; }
body.light-mode .mockup-raum { background: radial-gradient(80% 90% at 50% 40%, rgba(41, 196, 246, 0.16), transparent 70%), #e6f1f5; }
.mockup-raum svg { width: 88%; height: auto; overflow: visible; }
.raum-boden path { fill: rgba(127, 216, 196, 0.08); stroke: rgba(127, 216, 196, 0.45); stroke-width: 1.2; }
.raum-tische path { fill: rgba(41, 196, 246, 0.25); stroke: rgba(41, 196, 246, 0.8); stroke-width: 1; }
.raum-tafel { fill: rgba(255, 255, 255, 0.06); stroke: rgba(127, 216, 196, 0.45); stroke-width: 1; }
.raum-weg { fill: none; stroke: #ffb35c; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: raumWeg 6s ease-in-out infinite; }
.raum-rolli { fill: #ffb35c; animation: raumPuls 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes raumWeg { 0% { stroke-dashoffset: 220; } 55%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -220; } }
@keyframes raumPuls { 0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Archiv: das Zeichen von Recorded History auf altem Filmstreifen */
.mockup-archiv { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: radial-gradient(80% 90% at 50% 40%, rgba(184, 150, 106, 0.28), transparent 70%), linear-gradient(160deg, #241c12, #0f0b07); color: #f4ebd9; }
.ar-film { position: absolute; left: 0; right: 0; top: 0; height: 9%; background: repeating-linear-gradient(90deg, rgba(244, 235, 217, 0.22) 0 14px, transparent 14px 28px); animation: arFilm 6s linear infinite; }
.ar-film.ar-unten { top: auto; bottom: 0; animation-direction: reverse; }
.ar-logo { width: 15%; aspect-ratio: 1; border-radius: 50%; background: #e3261b; display: grid; place-items: center; box-shadow: 0 8px 22px -8px rgba(227, 38, 27, 0.7); }
.ar-logo b { font: italic 700 clamp(18px, 4vw, 34px) / 1 var(--font-serif); color: #fff; }
.ar-rec { font: 800 clamp(34px, 8vw, 72px) / 1 var(--font-sans); letter-spacing: 2px; text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.ar-titel { font: 600 clamp(11px, 1.6vw, 14px) / 1.2 var(--font-serif); letter-spacing: 1px; color: #d8c7a6; }
@keyframes arFilm { to { background-position: 28px 0; } }

/* Lora: kleiner Chatverlauf */
.mockup-chat { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 9% 0 26%; background: radial-gradient(80% 90% at 30% 40%, rgba(124, 112, 255, 0.25), transparent 70%), #12101f; }
body.light-mode .mockup-chat { background: radial-gradient(80% 90% at 30% 40%, rgba(124, 112, 255, 0.2), transparent 70%), #f1efff; }
.chat-blase { align-self: flex-start; max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; opacity: 0; transform: translateY(8px); animation: chatRein 7.5s var(--ease-out) infinite; }
.chat-nutzer { align-self: flex-end; background: #5b4fe9; color: #fff; border-bottom-right-radius: 4px; }
.chat-lora { background: rgba(255, 255, 255, 0.92); color: #1b1b2f; border-bottom-left-radius: 4px; animation-delay: 0.9s; display: inline-flex; gap: 4px; }
.chat-lora b { font-size: 9px; animation: chatPunkt 1s ease-in-out infinite; }
.chat-lora b:nth-child(2) { animation-delay: 0.15s; } .chat-lora b:nth-child(3) { animation-delay: 0.3s; }
.chat-karte { background: rgba(255, 255, 255, 0.92); color: #1b1b2f; border-left: 3px solid #ffb300; animation-delay: 2.2s; }
.chat-karte em { font-style: normal; font-weight: 600; }
body.light-mode .chat-lora, body.light-mode .chat-karte { background: #fff; box-shadow: 0 6px 16px -10px rgba(40, 30, 120, 0.4); }
.chat-lora-zeichen { position: absolute; left: 7%; bottom: 14%; width: 15%; height: auto; animation: loraHuepfen 2.6s var(--ease-out) infinite; }
@keyframes chatRein { 0% { opacity: 0; transform: translateY(8px); } 8%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes chatPunkt { 50% { opacity: 0.3; transform: translateY(-2px); } }
@keyframes loraHuepfen { 0%, 60%, 100% { transform: translateY(0) scale(1, 1); } 70% { transform: translateY(0) scale(1.06, 0.92); } 82% { transform: translateY(-14%) scale(0.96, 1.05); } 92% { transform: translateY(0) scale(1.04, 0.96); } }

/* Zeichen bewegen sich ein wenig (Struktur-Köpfe) */
.gross-zeichen.ist-figur { width: 104px; height: auto; animation: figurWippen 6s ease-in-out infinite; transform-origin: 50% 100%; }
.gross-zeichen .auge-iris { animation: augeSchauen 7s ease-in-out infinite; }
.gross-zeichen.zeichen-lora { animation: loraHuepfen 3.2s var(--ease-out) infinite; transform-origin: 50% 100%; }
.gross-zeichen .lora-stern { animation: sternGlimmen 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes figurWippen { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-2deg) translateY(-2px); } }
@keyframes augeSchauen { 0%, 20%, 100% { transform: translateX(0); } 30%, 45% { transform: translateX(-3px); } 60%, 75% { transform: translateX(3px); } }
@keyframes sternGlimmen { 50% { transform: scale(1.25) rotate(20deg); opacity: 0.8; } }

/* ---------------------------------------------------------------------
   7. Download-Kasten mit QR-Code
   --------------------------------------------------------------------- */
.download-kasten {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start;
    padding: 26px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--marke) 35%, var(--border-light));
    background: linear-gradient(135deg, var(--marke-weich), transparent 60%), var(--bg-panel);
}
.download-kopf { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.download-kopf h3 { margin: 0 0 2px; font-size: 1.2rem; }
.download-symbol { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--marke-voll); color: var(--marke-auf); flex-shrink: 0; }
.download-symbol svg { width: 26px; height: 26px; }
.download-meta { margin: 0; font-size: 13px; color: var(--text-muted); }
.download-aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.download-aktionen .primary-btn { background: var(--marke-voll); color: var(--marke-auf); border-color: transparent; }
.download-aktionen .primary-btn:hover { color: var(--marke-auf); filter: brightness(1.06); }
.download-neu { font-size: 13.5px; margin-bottom: 12px; }
.download-neu strong { color: var(--text-light); }
.download-schritte { border-top: 1px solid var(--border-light); padding-top: 12px; }
.download-schritte summary { cursor: pointer; font-weight: 600; color: var(--text-light); font-size: 14px; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.download-schritte summary::-webkit-details-marker { display: none; }
.download-schritte summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--marke); border-bottom: 2px solid var(--marke); transform: rotate(-45deg); transition: transform 0.3s var(--ease-out); }
.download-schritte[open] summary::before { transform: rotate(45deg); }
.download-schritte summary:focus-visible { outline: 2px solid var(--marke); outline-offset: 3px; border-radius: 4px; }
.download-schritte ol { margin: 12px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.7; }
.download-schritte li { margin-bottom: 6px; }
.download-qr { margin: 0; width: 168px; text-align: center; }
.qr-flaeche { padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.6); }
.qr-flaeche svg { display: block; width: 100%; height: auto; }
.download-qr figcaption { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.45; }
@media (max-width: 720px), (hover: none) and (pointer: coarse) {
    .download-kasten { grid-template-columns: 1fr; }
    .download-qr { display: none; }
}

/* ---------------------------------------------------------------------
   8. Geräterahmen
   --------------------------------------------------------------------- */
.geraet-handy {
    position: relative; width: min(100%, 260px); aspect-ratio: 9 / 19.5; margin: 0 auto; padding: 10px;
    border-radius: 38px; background: #0b0c10; box-shadow: 0 0 0 2px #2a2f3a, 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.geraet-handy::before { content: ""; position: absolute; top: 18px; left: 50%; width: 22%; height: 18px; margin-left: -11%; border-radius: 12px; background: #0b0c10; z-index: 2; }
.geraet-handy > * { width: 100%; height: 100%; border-radius: 29px; overflow: hidden; display: block; object-fit: cover; }
.geraet-handy.quer { width: min(100%, 560px); aspect-ratio: 19.5 / 9; }
.geraet-handy.quer::before { top: 50%; left: 18px; width: 18px; height: 22%; margin: -11% 0 0; }
.geraet-browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-highlight); background: var(--bg-panel); box-shadow: 0 30px 60px -36px var(--glass-shadow); }
.geraet-browser::before {
    content: ""; display: block; height: 30px; border-bottom: 1px solid var(--border-light);
    background: radial-gradient(circle at 16px 15px, #e07a7a 4px, transparent 5px), radial-gradient(circle at 32px 15px, #d9a441 4px, transparent 5px), radial-gradient(circle at 48px 15px, #4fb286 4px, transparent 5px), var(--bg-subtle);
}
.geraet-browser > * { display: block; width: 100%; }
.geraet-brille { position: relative; border-radius: 28px 28px 34px 34px; padding: 12px; background: linear-gradient(#22262f, #0f1116); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.geraet-brille > * { display: block; width: 100%; border-radius: 18px; aspect-ratio: 2 / 1; object-fit: cover; }
.geraet-brille::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 16%; height: 22%; margin-left: -8%; border-radius: 40% 40% 0 0; background: linear-gradient(#22262f, #0f1116); }

/* ---------------------------------------------------------------------
   9. Profil: Schwerpunkte, Zeitleiste, Kontakt
   --------------------------------------------------------------------- */
.schwerpunkte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.schwerpunkt {
    position: relative; padding: 22px 22px 18px; border-radius: 16px; border: 1px solid var(--border-light); background: var(--bg-panel); overflow: hidden;
    transition: transform 0.45s var(--ease-out), border-color 0.25s ease;
}
.schwerpunkt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--marke-voll); }
.schwerpunkt:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--marke) 40%, var(--border-light)); }
.schwerpunkt h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 1.25rem; margin: 2px 0 14px; }
.schwerpunkt h3 a { color: var(--text-light); }
.schwerpunkt h3 a:hover { color: var(--marke); }
.schwerpunkt h3 .zeichen { width: 28px; height: 28px; }
.schwerpunkt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.schwerpunkt li { position: relative; padding-left: 18px; font-size: 14px; color: var(--text-light); line-height: 1.5; }
.schwerpunkt li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; background: var(--marke); transform: rotate(45deg); }

.zeitleiste { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--border-light); }
.zeitleiste li { position: relative; padding: 0 0 26px; }
.zeitleiste li:last-child { padding-bottom: 0; }
.zeitleiste li::before { content: ""; position: absolute; left: -33px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-main); border: 2px solid var(--marke); }
.zeitleiste .zeit { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--marke); margin-bottom: 4px; }
.zeitleiste h3 { font-size: 1.05rem; margin: 0 0 4px; }
.zeitleiste p { margin: 0; font-size: 14px; }

.titel-kasten { padding: 26px 28px; border-radius: 16px; border: 1px solid var(--border-light); border-left: 3px solid var(--marke-voll); background: var(--bg-panel); }
.titel-kasten .titel { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 600; color: var(--text-light); line-height: 1.25; margin: 6px 0 8px; }
.titel-kasten .untertitel { font-size: 15px; margin: 0; }

.kontakt-karte { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 24px 26px; border-radius: 16px; border: 1px solid var(--border-light); background: var(--bg-panel); }
.kontakt-karte p { margin: 0; }
.kontakt-mail { font-size: 17px; font-weight: 600; color: var(--text-light); word-break: break-all; }

/* ---------------------------------------------------------------------
   10. Hinweise, Video auf Klick, Fuß
   --------------------------------------------------------------------- */
.hinweis-kasten { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--marke) 35%, var(--border-light)); background: var(--marke-weich); font-size: 14px; }
.hinweis-kasten svg { width: 20px; height: 20px; color: var(--marke); flex-shrink: 0; margin-top: 2px; }
.hinweis-kasten p { margin: 0; font-size: 14px; }

.video-laden { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-light); background: #0b0d12; }
.video-laden > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.video-laden .video-inhalt { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; color: #eef1f6; }
.video-laden .video-inhalt p { margin: 0; max-width: 520px; font-size: 13px; color: #c9d0dc; }
.video-laden .video-inhalt a { color: #8fb4f5; }
.video-laden iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.site-footer .inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px 40px; align-items: start; }
.site-footer .fuss-marke p { margin: 10px 0 0; font-size: 13px; max-width: 340px; color: var(--text-muted); }
.fuss-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-light) !important; font-family: var(--font-serif); font-weight: 700; font-size: 18px; }
.fuss-brand .zeichen { width: 30px; height: 30px; }
.site-footer .fuss-spalte { display: flex; flex-direction: column; gap: 8px; }
.fuss-titel { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.fuss-copy { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--border-light); font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 700px) { .site-footer .inner { grid-template-columns: 1fr 1fr; } .site-footer .fuss-marke { grid-column: 1 / -1; } }

/* Fehlerseite */
.fehler-kopf { text-align: center; padding: 40px 0 20px; }
.fehler-kopf .gross-zeichen { width: 84px; height: 84px; margin: 0 auto 18px; }
.fehler-kopf h1 { font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 3.2rem); }

/* ---------------------------------------------------------------------
   11. Motion-Bausteine
   --------------------------------------------------------------------- */
/* Gestaffeltes Einblenden: Kinder von [data-stagger] steigen nacheinander auf */
.js [data-stagger] > * { opacity: 0; transform: translateY(14px); }
.js [data-stagger].ist-sichtbar > * { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
/* Magnetische Hauptknöpfe (Position setzt script.js) */
.magnet { transition: transform 0.35s var(--ease-out), box-shadow 0.3s ease, filter 0.2s, background 0.2s; }
/* Parallaxe: [data-parallax] verschiebt sich beim Scrollen leicht (script.js) */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    .mockup *, .mockup, .gross-zeichen, .gross-zeichen * { animation: none !important; }
    .chat-blase { opacity: 1; transform: none; }
    .px-raster i { opacity: 1; transform: none; }
    .raum-weg { stroke-dashoffset: 0; }
    .js [data-stagger] > * { opacity: 1; transform: none; transition: none; }
    .vorschau-karte, .vorschau-karte:hover, .kachel:hover, .schwerpunkt:hover { transform: none; }
    .vorschau-karte:hover .vorschau-medien > img { transform: none; }
    .mk-karte { transition: none; }
    .struktur-tabs li a.ist-aktiv::before { view-transition-name: none; }
    .skip-link, .menu-icon i { transition: none; }
}
@media print {
    .js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
    .struktur-tabs, .menu-toggle, .skip-link { display: none !important; }
}

/* ---------------------------------------------------------------------
   12. Rechtstexte (Impressum, Datenschutz, Barrierefreiheit)
   --------------------------------------------------------------------- */
.rechtstext { max-width: 860px; }
.rechtstext h2 { font-family: var(--font-serif); font-size: 1.7rem; margin-bottom: 14px; }
.rechtstext h3 { font-size: 1.02rem; margin: 26px 0 8px; }
.rechtstext p, .rechtstext li { font-size: 14.5px; line-height: 1.75; }
.rechtstext ul { padding-left: 20px; margin: 0 0 1.25rem; }
.rechtstext li { margin-bottom: 6px; }

/* Links im Fließtext sind auch ohne Farbe erkennbar */
main p a:not([class]), main li a:not([class]), .video-inhalt a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------------------------------------------------------------------
   13. Projekt-Bühne (ersetzt den geteilten Projektkopf, Entscheidung E9)
   Bild bzw. Inszenierung über die ganze Breite, bis unter Kopf- und Tab-Leiste gezogen;
   Titel und Faktenkasten liegen darunter und überlappen den weichen Übergang.
   --------------------------------------------------------------------- */
.projekt-buehne { --unter-leisten: 184px; position: relative; margin: calc(-1 * var(--unter-leisten)) calc(50% - 50vw) 0; }
.buehne-medien {
    position: relative; height: clamp(420px, calc(58vh + var(--unter-leisten) * 0.5), 740px); overflow: hidden;
    background: radial-gradient(90% 90% at 50% 40%, var(--marke-weich), transparent 70%), var(--bg-main);
}
.buehne-medien > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buehne-medien > img[data-parallax] { top: -8%; height: 116%; }
.buehne-medien > .buehne-bild { position: absolute; inset: -6% 0; background-size: cover; background-position: center; }
.buehne-medien::after {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-main) 82%, transparent) 0, transparent calc(var(--unter-leisten) + 40px), transparent 52%, var(--bg-main) 100%),
        linear-gradient(90deg, color-mix(in srgb, var(--bg-main) 40%, transparent), transparent 22%, transparent 78%, color-mix(in srgb, var(--bg-main) 40%, transparent));
}
.buehne-medien .mockup { padding: calc(var(--unter-leisten) - 10px) 0 150px; box-sizing: border-box; }
.buehne-inhalt {
    position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 32px 48px; align-items: end;
    width: min(1160px, calc(100vw - 40px)); margin: -170px auto 0; padding-bottom: 48px;
}
.buehne-text .zeichen.gross-zeichen { margin-bottom: 14px; }
.buehne-text h1 { font-family: var(--font-serif); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin: 0 0 10px; letter-spacing: -0.5px; text-shadow: 0 2px 24px color-mix(in srgb, var(--bg-main) 70%, transparent); }
.buehne-text .untertitel { font-size: 15.5px; color: var(--marke); font-weight: 600; margin: 0 0 14px; }
.buehne-text .lead { font-size: 16.5px; max-width: 680px; margin-bottom: 22px; }
.fakten-karte {
    padding: 20px 22px; border-radius: 16px; border: 1px solid var(--border-light);
    background: color-mix(in srgb, var(--bg-panel) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 50px -30px var(--glass-shadow);
}
.fakten-karte h2 { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--marke); margin: 0 0 12px; font-family: var(--font-sans); }
.fakten-karte dl { margin: 0; display: grid; gap: 10px; }
.fakten-karte dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.fakten-karte dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.fakten-karte dt { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.fakten-karte dd { margin: 0; font-size: 14px; color: var(--text-light); font-weight: 500; }

/* Inszenierungen auf der Bühne größer und in den sichtbaren Bereich gerückt */
.buehne-medien .mk-karte { width: clamp(118px, 13vw, 200px); top: calc(50% + 6px); }
.buehne-medien .mk-strahlen { width: 120%; left: -10%; top: -40%; }
.buehne-medien .px-raster { width: clamp(150px, 20vw, 290px); }
.buehne-medien .px-balken { right: 12%; bottom: 190px; height: 18%; }
.buehne-medien .px-balken i { width: 11px; }
.buehne-medien .mockup-raum svg { width: auto; height: 100%; max-width: 92%; }
.buehne-medien .mockup-chat { padding-left: calc(50% - 250px); padding-right: calc(50% - 250px); gap: 14px; }
.buehne-medien .mockup-chat::before {
    content: ""; position: absolute; left: 50%; width: min(600px, 88vw); transform: translateX(-50%); top: calc(var(--unter-leisten) - 4px); bottom: 150px;
    border-radius: 22px; border: 1px solid rgba(166, 158, 255, 0.22); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: 0 40px 80px -40px rgba(91, 79, 233, 0.6);
}
body.light-mode .buehne-medien .mockup-chat::before { background: rgba(255, 255, 255, 0.7); border-color: rgba(91, 79, 233, 0.18); }
.buehne-medien .chat-blase { font-size: 15px; padding: 12px 16px; }
.buehne-medien .chat-lora-zeichen { left: calc(50% - 400px); bottom: 170px; width: 120px; }

@media (max-width: 900px) {
    .projekt-buehne { --unter-leisten: 172px; }
    .buehne-medien { height: clamp(380px, calc(46vh + 86px), 560px); }
    .buehne-medien .mockup { padding-bottom: 90px; }
    .buehne-inhalt { grid-template-columns: 1fr; margin-top: -96px; gap: 22px; }
    .buehne-medien .chat-lora-zeichen { left: 6%; width: 70px; bottom: 110px; }
    .buehne-medien .mockup-chat { padding-left: 26%; padding-right: 6%; }
    .buehne-medien .px-balken { bottom: 110px; }
}

/* ---------------------------------------------------------------------
   14. SensAble Vision: Sehsimulation zum Umschalten (vereinfachte Vorschau)
   --------------------------------------------------------------------- */
.sim-foto, .sim-schleier { position: absolute; inset: 0; transition: filter 0.6s ease, opacity 0.6s ease, -webkit-backdrop-filter 0.6s ease, backdrop-filter 0.6s ease; }
.sim-foto { background-size: cover; background-position: center 40%; }
.sim-schleier { z-index: 2; pointer-events: none; opacity: 0; }
[data-sim="katarakt"] .sim-foto { filter: blur(3px) sepia(0.5) saturate(0.7) contrast(0.72) brightness(1.08); }
[data-sim="katarakt"] .sim-schleier { opacity: 1; background: radial-gradient(60% 60% at 50% 45%, rgba(255, 248, 225, 0.32), rgba(255, 248, 225, 0.12) 70%); }
[data-sim="amd"] .sim-schleier {
    opacity: 1; backdrop-filter: blur(16px) brightness(0.32) saturate(0.6); -webkit-backdrop-filter: blur(16px) brightness(0.32) saturate(0.6);
    -webkit-mask-image: radial-gradient(circle at 50% 52%, #000 0, #000 12%, rgba(0, 0, 0, 0.6) 20%, transparent 32%); mask-image: radial-gradient(circle at 50% 52%, #000 0, #000 12%, rgba(0, 0, 0, 0.6) 20%, transparent 32%);
}
[data-sim="glaukom"] .sim-schleier {
    opacity: 1; backdrop-filter: blur(8px) brightness(0.12); -webkit-backdrop-filter: blur(8px) brightness(0.12);
    -webkit-mask-image: radial-gradient(ellipse 34% 40% at 50% 52%, transparent 35%, #000 100%); mask-image: radial-gradient(ellipse 34% 40% at 50% 52%, transparent 35%, #000 100%);
}
[data-sim="retinopathie"] .sim-foto { filter: blur(1.4px) saturate(0.85); }
[data-sim="retinopathie"] .sim-schleier {
    opacity: 1;
    background:
        radial-gradient(circle at 38% 40%, rgba(20, 14, 10, 0.85) 0 2.4%, transparent 3.6%),
        radial-gradient(circle at 55% 33%, rgba(20, 14, 10, 0.8) 0 1.8%, transparent 2.8%),
        radial-gradient(circle at 62% 55%, rgba(20, 14, 10, 0.85) 0 3%, transparent 4.4%),
        radial-gradient(circle at 44% 60%, rgba(20, 14, 10, 0.75) 0 1.6%, transparent 2.6%),
        radial-gradient(circle at 30% 52%, rgba(20, 14, 10, 0.7) 0 2%, transparent 3.2%),
        radial-gradient(circle at 70% 38%, rgba(20, 14, 10, 0.75) 0 1.4%, transparent 2.4%);
}
[data-sim="farbe"] .sim-foto { filter: url(#sim-deuteranopie); }
[data-sim][data-normal] .sim-foto { filter: none; }
[data-sim][data-normal] .sim-schleier { opacity: 0; }

.sim-steuerung {
    position: absolute; z-index: 5; left: max(20px, calc(50vw - 580px)); top: calc(var(--unter-leisten) + 18px);
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 8px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); width: max-content; max-width: min(1160px, calc(100vw - 40px));
    background: rgba(8, 11, 18, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #eef1f6;
}
.sim-steuerung .sim-titel { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #8be0fb; margin: 0 6px 0 8px; }
.sim-steuerung button {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; white-space: nowrap;
    border: 1px solid transparent; background: transparent; color: #d9dfe8; font: 500 13.5px var(--font-sans); text-align: left; cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sim-steuerung button:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.sim-steuerung button[aria-pressed="true"] { background: rgba(41, 196, 246, 0.2); border-color: rgba(41, 196, 246, 0.6); color: #fff; font-weight: 600; }
.sim-steuerung button:focus-visible { outline: 2px solid #3fcaf7; outline-offset: 2px; }
.sim-steuerung .sim-normal { border-color: rgba(255, 255, 255, 0.28); }
.sim-steuerung .sim-normal[data-aktiv] { background: #fff; color: #0a0d14; }
.sim-ansage { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) {
    .sim-steuerung { left: 12px; right: 12px; width: auto; top: calc(var(--unter-leisten) + 8px); flex-wrap: nowrap; overflow-x: auto; padding: 6px; scrollbar-width: none; }
    .sim-steuerung::-webkit-scrollbar { display: none; }
    .sim-steuerung .sim-titel { display: none; }
    .sim-steuerung button { flex-shrink: 0; padding: 7px 11px; font-size: 13px; }
}

/* Vorschaukarte SensAble Vision: Simulationen wechseln von selbst */
.mockup-sehen .sehen-bild { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mockup-sehen .sehen-sim { opacity: 0; animation: sehenZyklus 12s ease-in-out infinite; }
.sehen-katarakt { filter: blur(2.5px) sepia(0.5) saturate(0.7) contrast(0.75) brightness(1.08); }
.sehen-glaukom { animation-delay: 4s !important; }
.sehen-glaukom::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 36% 46% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.94) 100%); }
.sehen-amd { animation-delay: 8s !important; filter: blur(0.5px); }
.sehen-amd::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, rgba(25, 25, 25, 0.92) 0, rgba(25, 25, 25, 0.7) 9%, transparent 24%); }
.sehen-etikett { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: grid; }
.sehen-etikett span { grid-area: 1 / 1; padding: 4px 10px; border-radius: 999px; background: rgba(8, 11, 18, 0.75); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; animation: sehenZyklus 12s ease-in-out infinite; }
.sehen-etikett span:nth-child(2) { animation-delay: 4s; }
.sehen-etikett span:nth-child(3) { animation-delay: 8s; }
@keyframes sehenZyklus { 0% { opacity: 0; } 6%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .sim-foto, .sim-schleier { transition: none; }
    .mockup-sehen .sehen-glaukom, .sehen-etikett span:nth-child(2) { opacity: 1 !important; }
}
