/* Schrift: Hausschrift Souris Schmal (Regular, Bold), eigener Entwurf der Petit Souris, keine Fremdlizenz.
   Selbst gehostet als WOFF2-Teilmenge (Zeichen der 24 Sprachen, Ziffern, €, –, …). Keine externen Schriften. */
@font-face {
    font-family: "PSOrvia Souris"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/souris-schmal-regular-N-etPsj.woff2") format("woff2");
}
@font-face {
    font-family: "PSOrvia Souris"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("../fonts/souris-schmal-bold-wliv2fH.woff2") format("woff2");
}
/* PSOrvia – eigenständiger Hauslook: Sichtgerät (dunkles Glas, P31-Grün) als Akzent.
   Keine externen Schriften: Hausschrift selbst gehostet, Systemschriften als Rückfall. Kontraste: WCAG AA (Text >= 4,5:1, Bedienelemente >= 3:1). */
:root {
    --bg: #f5f6f2;
    --surface: #ffffff;
    --surface-2: #eceee8;
    --text: #12161b;
    --muted: #455059;
    --line: #c9cec6;
    --accent: #0a6a37;      /* Grün auf hellem Grund, 6:1 */
    --on-accent: #ffffff;
    --focus: #0a4fc4;
    --err: #b3261e;         /* Fehler auf hellem Grund, 6,5:1 */
    --glass: #06090c;
    --phosphor: #7dffa8;    /* P31 */
    --radius: 10px;
    --font: "PSOrvia Souris", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: "PSOrvia Souris", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: "PSOrvia Souris", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b0e12; --surface: #12171d; --surface-2: #1a2028; --text: #e9edf0; --muted: #a9b3bb;
        --line: #333c46; --accent: #7dffa8; --on-accent: #04140a; --focus: #8db4ff; --err: #ff9b92; color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0b0e12; --surface: #12171d; --surface-2: #1a2028; --text: #e9edf0; --muted: #a9b3bb;
    --line: #333c46; --accent: #7dffa8; --on-accent: #04140a; --focus: #8db4ff; --err: #ff9b92; color-scheme: dark;
}

/* Schrifttokens: eine Quelle für alle Seiten, Soll = Startseite. Untergrenze 13 px (Hausregel). Prüfung: tools/schrift-messung.py messen */
:root {
    --fs-h1: clamp(2.4rem, 6vw, 4.25rem);
    --fs-h2: clamp(1.75rem, 3.6vw, 2.5rem);
    --fs-h3: 1.375rem;              /* auch Kachel- und Kartentitel */
    --fs-lead: clamp(1.25rem, 2vw, 1.5rem);
    --fs-body: 1.125rem;               /* Fließtext, Kacheltext, Tabellen, Knöpfe */
    --fs-small: 1rem;                  /* Fußzeile, Hinweise, Statuszeilen */
    --fs-caption: 1rem;               /* Bildunterschrift, Kachelfuß, Marken, Zeit */
    --fs-micro: 1rem;                /* Eyebrow, Abzeichen, Filtertitel */
    --fs-stat: clamp(2.4rem, 7vw, 4.6rem);   /* Zahlenkachel der Startseite */
    --fs-stat-s: 1.5rem;           /* Zahlenkacheln in schmalen Spalten (Geschichte) */
    --fs-display: clamp(2.6rem, 9vw, 7rem);  /* Neuheiten-Bühne der Startseite */
    --fs-brand: 1.25rem;
    --fs-nav: var(--fs-body);             /* Hauptmenü und Sprachwahl */
    --lh-body: 1.6; --lh-tight: 1.25;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: var(--fs-body)/var(--lh-body) var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
p { max-width: 75ch; }   /* Zeilenlänge lesbar halten */
h1, h2 { font-family: var(--display); font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.045em; margin: .3em 0 .4em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.035em; margin: 1.6em 0 .5em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-tight); margin: 1.4em 0 .4em; text-transform: none; }
.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
.block { padding-block: clamp(2.5rem, 7vw, 6rem); }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 40rem; }
.eyebrow { font: var(--fs-micro)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: .5rem; top: -4rem; background: var(--surface); color: var(--text); padding: .6rem 1rem; border-radius: 6px; z-index: 10; border: 2px solid var(--focus); }
.skip:focus { top: .5rem; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .top { background: color-mix(in srgb, var(--bg) 68%, transparent); backdrop-filter: blur(16px) saturate(1.5); } }
.top__in { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: var(--fs-brand); letter-spacing: .06em; }
.brand__name span { font-weight: 400; }
.brand__mark { width: 2rem; height: 2rem; }
.brand__glass { fill: var(--glass); }
.brand__trace { fill: none; stroke: var(--phosphor); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem; margin-right: auto; }
.nav a { color: var(--text); text-decoration: none; font-size: var(--fs-nav); padding: .55rem .8rem; border-radius: 8px; min-height: 2.75rem; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--accent); font-weight: 600; }
.tools { display: flex; align-items: center; gap: .5rem; order: 2; }
.langmenu { position: relative; }
.langmenu > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: 0 .6rem; border-radius: 8px; cursor: pointer; color: var(--text); font: 600 var(--fs-nav) var(--mono); }
.langmenu > summary::-webkit-details-marker { display: none; }
.langmenu > summary svg { width: 1.1rem; height: 1.1rem; }
.langmenu > summary .chev { width: .9rem; height: .9rem; transition: transform .15s; }
.langmenu[open] > summary .chev { transform: rotate(180deg); }
.langmenu > summary:hover, .langmenu[open] > summary { background: var(--surface-2); }
.langs { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 50; display: grid; grid-template-columns: repeat(2, minmax(9.5rem, 1fr)); gap: .1rem; list-style: none; margin: 0; padding: .4rem; background: var(--surface, var(--bg)); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px -12px rgba(0,0,0,.35); }
.langs a { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: 0 .6rem; color: var(--text); text-decoration: none; border-radius: 8px; font-size: var(--fs-body, 1rem); }
.langs a .code { font: 600 var(--fs-caption) var(--mono); min-width: 1.8rem; color: var(--muted, var(--text)); }
.langs a:hover { background: var(--surface-2); }
.langs a[aria-current] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 40rem) { .langs { position: fixed; left: 16px; right: 16px; top: 4.5rem; grid-template-columns: repeat(2, 1fr); max-height: calc(100vh - 6rem); overflow-y: auto; } }
.theme { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.theme svg { width: 1.4rem; height: 1.4rem; }
.theme:hover { background: var(--surface-2); }

/* Knöpfe */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 1.4rem; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font: 600 var(--fs-body) var(--font); text-decoration: none; border: 2px solid var(--accent); cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--accent); }
fieldset[disabled] .btn { opacity: .6; cursor: not-allowed; }



/* Karten */
.grid { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card:hover, .card:focus-within { border-color: var(--accent); }
picture { display: contents; }
.card__img { display: block; aspect-ratio: 4 / 3; background: var(--glass); }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__none { display: grid; place-items: center; height: 100%; color: #a9b3bb; font-size: var(--fs-caption); }
.card__body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__title { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-tight); }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { margin: 0; color: var(--muted); font-size: var(--fs-body); }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 0; margin-top: auto; padding-top: .4rem; }
.badge { display: inline-block; font: 600 var(--fs-micro)/1 var(--mono); padding: .35rem .55rem; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.badge--free { border-color: var(--accent); }
.badge--paid { border-style: dashed; border-color: var(--muted); }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.5rem 0 1rem; }
.filters__h { display: block; font: var(--fs-micro) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.filters ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.filters a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .3rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; background: var(--surface); }
.filters a:hover { border-color: var(--accent); }
.filters a[aria-current] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.filters a[aria-current]::before { content: "✓ "; margin-right: .3em; }

/* Plugin-Seite */
.plugin__head { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) { .plugin__head { grid-template-columns: 1fr 1.2fr; } }
.shot { margin: 0; background: var(--glass); border-radius: 14px; padding: .75rem; border: 1px solid var(--line); }
.shot img { width: 100%; height: auto; border-radius: 6px; }
.shot__none { padding: 3rem 1rem; text-align: center; color: #a9b3bb; }
.plugin__cols { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .plugin__cols { grid-template-columns: 1.6fr 1fr; } }
.list { padding-left: 1.2rem; } .list li { margin: .4rem 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.notice { padding: .8rem 1rem; border: 2px dashed var(--muted); border-radius: var(--radius); background: var(--surface); }

.tiles { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 2rem 0; }
.tiles li { padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.tiles h2, .tiles h3 { margin-top: 0; font-size: var(--fs-h3); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .5rem 0 1rem; }
.chips li { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-family: var(--mono); font-size: var(--fs-caption); }
.names { columns: 12rem; padding-left: 1.2rem; }

.form { display: grid; gap: .5rem; max-width: 30rem; }
.form fieldset { border: 0; padding: 0; display: grid; gap: .5rem; }
.form label { font-weight: 600; margin-top: .5rem; }
.form textarea, .form input { font: inherit; padding: .7rem; border: 2px solid var(--muted); border-radius: 8px; background: var(--surface); color: var(--text); }
.contact { max-width: none; gap: 1rem; } .field-row .field label { margin-top: 0; }
.contact .field { display: grid; gap: .3rem; }
.contact .field label { margin-top: 0; }
.contact textarea { min-height: 9rem; resize: vertical; width: 100%; }
.contact input { width: 100%; }
.contact input:focus-visible, .contact textarea:focus-visible { border-color: var(--accent); }
.contact [aria-invalid="true"], .contact .field:has(.field__err) input, .contact .field:has(.field__err) textarea { border-color: var(--err); }
.field__err ul { list-style: none; margin: 0; padding: 0; color: var(--err); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 1rem 0; padding: .8rem 1rem; border: 2px solid var(--line); border-left-width: 6px; border-radius: var(--radius); background: var(--surface); max-width: 36rem; }
.notice ul { margin: 0; padding-left: 1.2rem; }
.notice--ok { border-color: var(--accent); }
.notice--err { border-color: var(--err); }
.small { font-size: var(--fs-caption); }

.foot { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 1.5rem; color: var(--muted); font-size: var(--fs-small); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 3rem; align-items: start; }
.foot__brand { display: grid; gap: .5rem; } .foot .foot__brand .brand { display: flex; padding: 0; margin-bottom: .25rem; }
.foot p a { display: inline; padding: 0; } .foot p { line-height: 1.6; }
.foot .foot__links a { padding: .35rem 0; } .foot .foot__links { margin-top: -.35rem; }
.foot .foot__links { display: grid; grid-template-columns: repeat(2, max-content); gap: .1rem 2rem; align-content: start; }
.foot__base { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; }
@media (max-width: 56rem) { .foot__in { grid-template-columns: 1fr 1fr; } .foot__nl { grid-column: 1 / -1; } }
@media (max-width: 40rem) { .foot__in { grid-template-columns: 1fr; gap: 1.5rem; } .foot .foot__links { grid-template-columns: 1fr 1fr; } }
.foot p { margin: 0; } .foot ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.foot a { display: inline-block; padding: .5rem 0; }
@media (max-width: 40rem) { .tools { margin-left: auto; } }

/* Burgermenü (nur mit JavaScript: Klasse has-burger) */
.menu { display: contents; }
.burger, .burger-backdrop { display: none; }
.burger { width: 2.75rem; height: 2.75rem; margin-left: auto; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; cursor: pointer; place-items: center; }
.burger:hover { background: var(--surface-2); }
.burger svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.burger__close { display: none; }
.is-burger-open .burger__open { display: none; }
.is-burger-open .burger__close { display: inline; }
html.burger-lock { overflow: hidden; }
@media (max-width: 60rem) {
    /* Mit JS (html.js) sofort die zugeklappte Leiste zeigen, sonst springt die Seite, sobald der Controller anläuft (CLS). */
    html.js .top__in:not(.has-burger) .menu { display: none; }
    html.js .top__in:not(.has-burger) .burger { display: grid; }
    .has-burger .burger { display: grid; }
    .has-burger .menu {
        display: flex; flex-direction: column; gap: 1rem; position: absolute; top: 100%; right: 0; z-index: 2;
        width: min(20rem, 86vw); max-height: calc(100dvh - 4rem); overflow-y: auto; padding: 1rem;
        background: var(--surface); border: 1px solid var(--line); border-right: 0; border-radius: 0 0 0 var(--radius);
        visibility: hidden; opacity: 0; transform: translateY(-.5rem); /* nicht seitwärts: sonst waagerechte Rollleiste mobil */ transition: opacity .2s, transform .2s, visibility 0s .2s;
    }
    .has-burger.is-burger-open .menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
    .has-burger .nav { flex-direction: column; flex-wrap: nowrap; margin: 0; }
    .has-burger .nav a { min-height: 2.75rem; }
    html.js .tools { order: 0; margin-left: auto; }
    html.js .burger { margin-left: 0; }
    .has-burger .burger-backdrop {
        display: block; position: absolute; top: 100%; left: 0; width: 100vw; height: 100dvh; z-index: 1;
        background: color-mix(in srgb, var(--bg) 60%, #000); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
    }
    .has-burger.is-burger-open .burger-backdrop { opacity: .55; visibility: visible; transition: opacity .2s; }
}

/* Startseite: Rahmenwerk, Bühne für freigegebene Neuheit */
.soon { color: var(--muted); padding-block: 1rem 3rem; }

/* Highlights */
.hl { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .75rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.hl li { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

.hl--list { grid-template-columns: 1fr; }
.highlights h2 { margin-top: 0; }

/* ---------- Tiefe: Körnung, weiche Verläufe ---------- */
body {
    background:
        radial-gradient(70rem 40rem at 90% -5%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
        radial-gradient(50rem 36rem at -10% 40%, color-mix(in srgb, var(--focus) 7%, transparent), transparent 70%),
        var(--bg);
    background-attachment: fixed, fixed, scroll;
}
body::before {
    content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .06;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::before { opacity: .09; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { opacity: .09; } }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__in { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 9vw, 8rem); align-items: center; }
@media (min-width: 56rem) { .hero__in { grid-template-columns: 1.15fr .85fr; } }
.hero .lead { margin-bottom: 0; }
.scope { aspect-ratio: 4 / 3; background: var(--glass); border-radius: 20px; border: 6px solid #4b5560; overflow: hidden; position: relative;
    box-shadow: 0 0 0 1px #0007, inset 0 0 50px #000a, 0 0 60px color-mix(in srgb, var(--phosphor) 22%, transparent), 0 30px 60px -30px #0008; }
.scope canvas { width: 100%; height: 100%; display: block; }
.scope::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, #000a 100%); pointer-events: none; }

/* ---------- Bento ---------- */
/* ---------- Kachel-Komponente (partials/_tile.html.twig) ----------
   Ein Raster: 12 Spalten (S = 4, M = 6, L = 8), feste Mindesthöhe der Zeile, gleiche Abstände, Radien, Rand.
   Aufbau jeder Kachel: oben Symbol/Motiv/Zahl (.tile__top), dann Überschrift (h3), Text, Fußnote unten bündig. */
.bento { --row: 11rem; list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; grid-auto-rows: minmax(var(--row), auto); grid-auto-flow: dense; }
.tile { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: 20px; border: 1px solid var(--line); position: relative; overflow: hidden;
    background: linear-gradient(150deg, var(--surface), var(--surface-2)); }
.tile__top { display: flex; align-items: flex-start; min-height: 3.5rem; margin-bottom: .4rem; }
.tile__title { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-tight); }
.tile__text, .tile p { margin: 0; color: var(--muted); }
.tile__foot { margin-top: auto !important; padding-top: .6rem; border-top: 1px solid var(--line); font-size: var(--fs-caption); }
.tile__text + .tile__foot, .tile__title + .tile__foot { margin-top: auto; }
.tile__text { margin-bottom: .6rem !important; }
.tile__foot a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border: 2px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: var(--fs-body); font-weight: 700; text-decoration: none; transition: background-color .15s, color .15s; }
.tile__foot a::after { content: "→"; font-weight: 700; transition: transform .15s; }
.tile__foot a:hover { background: var(--accent); color: var(--on-accent, #fff); }
.tile__foot a:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .tile__foot a, .tile__foot a::after { transition: none; } }
.tile__foot a:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 2px; }
.tile .hl__icon { color: var(--accent); width: 2.6rem; height: 2.6rem; margin: 0; }
.tile .motif { color: var(--accent); width: 11rem; height: 3.5rem; margin: 0; }
.tile--accent { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.tile--art { padding: 0; min-height: 15rem; background: var(--glass); border-color: #2b3a31; }
.tile__art, .tile__art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tile--stat { justify-content: space-between; }
.tile--stat .tile__top { margin: 0; }
@media (min-width: 52rem) {
    .bento { --row: 15rem; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
    .tile { grid-column: span 4; }
    .tile--s3 { grid-column: span 3; } .tile--s4 { grid-column: span 4; } .tile--s6 { grid-column: span 6; } .tile--s8 { grid-column: span 8; }
    .tile--tall { grid-row: span 2; }
}
.tile--glass { background: radial-gradient(circle at 20% 0%, #0f2a1a 0%, var(--glass) 60%); border-color: #2b3a31; color: #c9d3da; }
.tile--glass p, .tile--glass .stat__post, .tile--glass .stat__pre { color: #b9c5cd; }
.stat__num { font: 700 var(--fs-stat)/1 var(--display); letter-spacing: -.05em; color: var(--phosphor); font-variant-numeric: tabular-nums;
    text-shadow: 0 0 .35em color-mix(in srgb, var(--phosphor) 55%, transparent), 0 0 1.2em color-mix(in srgb, var(--phosphor) 25%, transparent); }
.stat__pre, .stat__post { font: 600 var(--fs-small) var(--mono); letter-spacing: .04em; }
.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; }
.art-trace { fill: none; stroke: var(--phosphor); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--phosphor)); }
.art-grid { stroke: #7dffa826; stroke-width: 1; fill: none; }
.art-knob { fill: #0d1612; stroke: #3b5546; stroke-width: 2; } .art-tick { stroke: var(--phosphor); stroke-width: 3; stroke-linecap: round; }
.art-flow { fill: none; stroke: #7dffa860; stroke-width: 2; stroke-dasharray: 5 7; } .art-node { fill: #0d1612; stroke: var(--phosphor); stroke-width: 2; }

/* ---------- Neuheiten-Bühne (nur mit freigegebenem Plugin) ---------- */
.spot { min-height: 100svh; display: grid; align-items: center; color: #e9edf0; position: relative; overflow: hidden;
    background: radial-gradient(60rem 40rem at 70% 40%, #12351f 0%, transparent 70%), linear-gradient(180deg, #06090c, #0b1410 60%, #06090c); border-block: 1px solid #2b3a31; }
.spot__in { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
@media (min-width: 56rem) { .spot__in { grid-template-columns: .8fr 1.2fr; } }
.spot .eyebrow { color: var(--phosphor); }
.spot h2 { font-size: var(--fs-display); line-height: 1; margin: .2em 0 .3em; color: var(--phosphor); text-shadow: 0 0 .4em #7dffa855; }
.spot .lead, .spot .muted { color: #c3ced6; }
.spot .btn { background: var(--phosphor); border-color: var(--phosphor); color: #04140a; }
.spot .btn--ghost { background: transparent; color: var(--phosphor); }
.spot__view { perspective: 1400px; }
.spot__img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 40px 80px -20px #000c, 0 0 80px #7dffa822; }
.soon { color: var(--muted); padding-block: 1rem 3rem; }

/* ---------- Player ---------- */
.player { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin: .8rem 0; }
.player__title { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.player__btn { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; display: grid; place-items: center; padding: 0; }
.player__btn svg { width: 1.3rem; height: 1.3rem; } .player__btn .i-pause { display: none; }
.player__btn[aria-pressed="true"] .i-play { display: none; } .player__btn[aria-pressed="true"] .i-pause { display: block; }
.player__wave { height: 3.2rem; border-radius: 8px; cursor: pointer; min-width: 0; }
.player__wave canvas { width: 100%; height: 100%; display: block; }
.player__time { font: 600 var(--fs-caption) var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.player__note { color: var(--muted); font-size: var(--fs-caption); margin: 0; }

/* ---------- Interaktion, Fokus ---------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--focus) 25%, transparent); }
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--accent), 0 6px 14px -8px var(--accent); }
.btn { transition: box-shadow .2s, transform .2s, filter .2s; }
.btn:hover, .btn:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn:active { transform: translateY(1px); }
.btn--ghost:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.player__btn:hover { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
    .tile, .card, .hl li { transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
    .tile:hover, .card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--accent) 50%, #000); }
    /* Fluss nur bei Bedienung: stroke-dashoffset läuft nicht auf der Grafikkarte, Daueranimation hielte den Hauptthread wach */
    .tile:hover .art-flow, .tile:focus-within .art-flow { animation: flow 2.4s linear infinite; } @keyframes flow { to { stroke-dashoffset: -24; } }
    /* Seitenübergänge (mehrseitig) */
    @view-transition { navigation: auto; }
    .top { view-transition-name: top; }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
    /* Einblendungen beim Scrollen */
    @supports (animation-timeline: view()) {
        .tile, .reveal, .card, .tiles li, .hl li, .player { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
        @keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
        .spot__img { animation: tilt linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
        @keyframes tilt {
            from { transform: rotateX(16deg) rotateY(-18deg) scale(.86); }
            50% { transform: rotateX(0) rotateY(0) scale(1); }
            to { transform: rotateX(-10deg) rotateY(14deg) scale(.92); }
        }
    }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.hl__icon { flex: none; color: var(--accent); margin-top: .1rem; }

/* Lizenzen Dritter */
.lic { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 .75rem; padding: .25rem 1rem; }
.lic > summary { cursor: pointer; padding: .6rem 0; min-height: 44px; font-weight: 600; }
.lic__meta { color: var(--muted); font-size: var(--fs-small); margin: 0 0 .5rem; }
.lic__txt { font: var(--fs-caption)/1.45 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2, var(--bg)); border: 1px solid var(--line); border-radius: 6px; padding: .75rem; max-height: 24rem; overflow: auto; }
.lic__flag { border: 1px solid var(--line); border-radius: 4px; padding: 0 .35rem; font-size: var(--fs-micro); color: var(--muted); margin-left: .4rem; }

/* Feature-Seiten */
.tile__img { width: calc(100% + 3rem); margin: -1.5rem -1.5rem .5rem; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); display: block; }
.feature .prose { max-width: 46rem; }
.feature .prose h2 { margin-top: 2rem; }
.feature section { margin-top: 2.5rem; }
.feature__hero { margin: 1.5rem 0; }
.feature__hero img, .feature__video { width: 100%; height: auto; max-width: 56rem; border-radius: 16px; border: 1px solid var(--line); display: block; background: var(--glass); }
.feature__gallery { display: grid; gap: 1.5rem; list-style: none; padding: 0; margin: 2rem 0; max-width: 46rem; } /* Bilder in Breite des Textblocks, ohne Überschrift */
.feature__gallery img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
.badges a.badge { text-decoration: none; }
.ab { border: 1px solid var(--line); border-radius: 16px; padding: .4rem 1rem; margin: 1rem 0; background: var(--surface-2); }
.ab .player { border: 0; padding-inline: 0; margin: .4rem 0; background: transparent; }
.ab__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.ab__label { font: var(--fs-micro) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: .5rem; }
.ab__btn { min-height: 2.75rem; padding: .3rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.ab__btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.ab__btn[aria-pressed="true"]::before { content: "✓ "; }
.ab [hidden] { display: none; }
/* Mobil: Beschriftung über die volle Breite, Vorher/Nachher darunter nebeneinander, gleich breit. */
@media (max-width: 640px) {
    .ab__label { flex-basis: 100%; margin-right: 0; }
    .ab__btn { flex: 1 1 0; min-width: 0; padding-inline: .6rem; }
}

/* Produktfilm auf der Programmseite: 16:9 am Rechner, 4:5 mobil */
.pfilm { padding-block: clamp(1rem, 3vw, 2rem); }
.pfilm__frame { margin: 0 auto; max-width: 64rem; background: #000; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.pfilm video { display: block; width: 100%; height: auto; background: #000; }
.pfilm__frame--16x9 video { aspect-ratio: 16 / 9; }
.pfilm__frame--4x5 { display: none; max-width: 30rem; }
.pfilm__frame--4x5 video { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .pfilm__frame--16x9 { display: none; } .pfilm__frame--4x5 { display: block; } }

/* Vorstellungsfilm */
.film { padding-block: clamp(1.5rem, 4vw, 3rem); }
.film__frame { margin: 0 auto; max-width: 70rem; background: #000; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
@media (max-aspect-ratio: 1/1) { .film__frame { max-width: 26rem; } .film video { aspect-ratio: 9 / 16; max-height: 82svh; } }

.downloads { list-style: none; padding: 0; display: grid; gap: 1rem; }
.downloads li { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.downloads .btn { margin: .5rem .75rem .5rem 0; }
.downloads code { overflow-wrap: anywhere; }

/* ---------- Geschichte von PSOrvia (templates/page/history.html.twig) ---------- */
.history p { max-width: 46rem; } /* Seite volle Breite wie die übrigen, Fließtext lesbar (wie .feature .prose) */
.history section { margin-top: 2.5rem; }
.history h3 { margin-top: 2rem; }
.history-facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 1.5rem 0; }
.history-facts div { padding: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.history-facts dt { color: var(--muted); }
.history-facts dd { margin: .25rem 0 0; font-size: var(--fs-stat-s); font-weight: 700; }

/* Geschichte: 5 Karten und 5 Kacheln ohne Waisen */
.tiles--five { grid-template-columns: 1fr; }
.history-facts { grid-template-columns: repeat(2, 1fr); }
.history-facts div:last-child { grid-column: 1 / -1; }
.history-facts dd { overflow-wrap: anywhere; }
@media (min-width: 48rem) {
    .tiles--five { grid-template-columns: repeat(6, 1fr); }
    .tiles--five li { grid-column: span 2; }
    .tiles--five li:nth-child(n+4) { grid-column: span 3; }
    .history-facts { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
    .history-facts div:last-child { grid-column: auto; }
    .history-facts div { padding: .8rem .7rem; }
    .history-facts dt { font-size: var(--fs-caption); }
}

.shot--wide { margin: 1.5rem 0; max-width: 60rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.gallery .shot img { height: auto; display: block; }
.gallery .shot a { display: block; border-radius: 6px; }
.gallery .shot figcaption { margin-top: .55rem; font-size: max(.85rem, 13px); text-align: center; color: #dfe5ea; }
/* Acht Bilder: Handy und Tablet 2 x 4, Rechner 4 x 2 */
.gallery:has(figcaption) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gallery:has(figcaption) .shot { padding: .4rem; border-radius: 10px; }
@media (min-width: 62rem) { .gallery:has(figcaption) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } .gallery:has(figcaption) .shot { padding: .6rem; border-radius: 14px; } }
/* ---------- Galerie und Lightbox (gallery_controller.js) ---------- */
.gallery .shot a { position: relative; cursor: zoom-in; }
.gallery .shot a.gallery__video { cursor: pointer; }
.gallery__play, .gallery__badge { position: absolute; display: flex; align-items: center; gap: .4rem; border-radius: 999px; color: #fff; font: 600 max(.9rem, 13px)/1 var(--font); background: color-mix(in srgb, var(--glass) 74%, transparent); border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px -6px rgba(0,0,0,.6); pointer-events: none; }
.gallery__play { left: 50%; top: 50%; transform: translate(-50%, -50%); padding: .5rem .9rem .5rem .6rem; }
.gallery__play svg { width: 1.4rem; height: 1.4rem; fill: var(--phosphor); }
.gallery__badge { right: .5rem; bottom: .5rem; padding: .35rem .65rem; }
html.gallery-lock { overflow: hidden; padding-right: var(--lb-sb, 0); }

.lb { position: fixed; inset: 0; z-index: 1000; overflow: hidden; color: var(--text); font-family: var(--font); touch-action: none; user-select: none; -webkit-user-select: none;
      --lb-glass: color-mix(in srgb, var(--surface) 80%, transparent); --lb-edge: color-mix(in srgb, var(--line) 85%, transparent); --lb-gloss: inset 0 1px 0 rgba(255,255,255,.14); --lb-tint: .2; }
:root[data-theme="dark"] .lb { --lb-tint: .32; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lb { --lb-tint: .32; } }
.lb[hidden] { display: none; }
.lb__veil { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 86%, transparent); opacity: 0; }
@supports (backdrop-filter: blur(1px)) { .lb__veil { backdrop-filter: blur(22px) saturate(1.4); } }
.lb.is-full .lb__veil { background: var(--bg); }
.lb__tint { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; background-image: radial-gradient(120% 90% at 50% 45%, transparent 0, var(--bg) 100%); background-blend-mode: normal; }
.lb__tint.is-on { opacity: var(--lb-tint); }
.lb__stage, .lb__track { position: absolute; inset: 0; }
.lb__track { will-change: transform; }
/* Im Zoom und in der Führung bleibt das Bild zwischen Kopfleiste und Unterschrift. */
.lb.is-zoomed .lb__stage, .lb.is-tour .lb__stage { clip-path: inset(var(--lb-ct, 0) 0 var(--lb-cb, 0) 0); }
.lb__slide { position: absolute; top: 0; width: 100%; height: 100%; }
.lb__frame { position: absolute; transform-origin: 0 0; will-change: transform; }
.lb.is-zoomed .lb__frame { cursor: grab; }
.lb__pic { position: absolute; inset: 0; overflow: hidden; border-radius: 8px; background: var(--glass); box-shadow: 0 0 0 1px var(--lb-edge), 0 28px 80px -24px rgba(0,0,0,.6); }
.lb__ph, .lb__img, .lb__vid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.lb__ph { filter: blur(10px); transform: scale(1.05); }
.lb__img { opacity: 0; transition: opacity .3s ease; }
.lb__frame.is-loaded .lb__img { opacity: 1; }
.lb__frame .lb__img.lb__img--in:not(.is-on) { opacity: 0; }
.lb__img--in { transition: opacity .4s ease; }
.lb__vid { object-fit: contain; background: #000; }

.lb__ui { opacity: 0; }
.lb__top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem 1rem; pointer-events: none; }
.lb__top > * { pointer-events: auto; }
.lb__count { margin: 0; min-width: 3.4rem; padding: .45rem .8rem; border-radius: 999px; background: var(--lb-glass); border: 1px solid var(--lb-edge); box-shadow: var(--lb-gloss); font: 600 max(.95rem, 13px)/1.2 var(--font); font-variant-numeric: tabular-nums; text-align: center; }
.lb__tools { display: flex; gap: .4rem; align-items: center; }
.lb__btn { width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; padding: 0; border-radius: 12px; border: 1px solid var(--lb-edge); background: var(--lb-glass); color: var(--text); box-shadow: var(--lb-gloss); cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
@supports (backdrop-filter: blur(1px)) { .lb__btn, .lb__count, .lb__switch { backdrop-filter: blur(10px); } }
.lb__btn svg, .lb__switch svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lb__btn .lb__fill, .lb__switch .lb__fill { fill: currentColor; stroke: none; }
.lb__btn .lb__thin { stroke-width: 1.3; }
.lb__btn:hover:not(:disabled) { border-color: var(--accent); box-shadow: var(--lb-gloss), 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.lb__btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--lb-glass)); }
.lb__btn:disabled { opacity: .35; cursor: default; }
.lb__zoom[aria-pressed="true"] .lb__plus, .lb__full .lb__out, .lb__full[aria-pressed="true"] .lb__in, .lb__show .lb__i-pause, .lb__show[aria-pressed="true"] .lb__i-play { display: none; }
.lb__full[aria-pressed="true"] .lb__out, .lb__show[aria-pressed="true"] .lb__i-pause { display: inline; }
@media (hover: none), (pointer: coarse) { .lb__loupe { display: none; } }
.lb__langbtn { width: auto; grid-auto-flow: column; gap: .35rem; padding: 0 .65rem; }
.lb__code { font: 700 max(.9rem, 13px)/1 var(--font); letter-spacing: .04em; }
.lb__langs { position: absolute; top: 4rem; right: 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 5rem); overflow: auto; scrollbar-width: none; padding: .5rem; border-radius: 14px; background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--line); box-shadow: var(--lb-gloss), 0 24px 60px -18px rgba(0,0,0,.55); }
.lb__langs::-webkit-scrollbar { display: none; }
.lb__langs[hidden] { display: none; }
.lb__langitem { display: flex; align-items: center; gap: .5rem; min-height: 2.6rem; padding: .3rem .6rem; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text); font: max(.95rem, 13px)/1.2 var(--font); text-align: left; cursor: pointer; }
.lb__langitem .lb__code { color: var(--muted); min-width: 1.8rem; }
.lb__langitem:hover { background: var(--surface-2); }
.lb__langitem[aria-current] { border-color: var(--accent); color: var(--accent); }
.lb__switch { display: inline-flex; align-items: center; gap: .45rem; height: 2.75rem; padding: 0 .8rem 0 .55rem; border-radius: 999px; border: 1px solid var(--lb-edge); background: var(--lb-glass); color: var(--text); box-shadow: var(--lb-gloss); font: 600 max(.95rem, 13px)/1 var(--font); cursor: pointer; }
.lb__knob { position: relative; width: 2.1rem; height: 1.25rem; border-radius: 999px; background: var(--line); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); transition: background-color .2s; flex: none; }
.lb__knob::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: .95rem; height: .95rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .2s ease; }
.lb__switch[aria-pressed="true"] .lb__knob { background: var(--accent); }
.lb__switch[aria-pressed="true"] .lb__knob::after { transform: translateX(.85rem); }
.lb__switch[aria-pressed="false"] .lb__wave { opacity: .25; }
.lb.sounds-off .lb__sound { display: none; }

.lb__nav { position: absolute; top: 50%; width: 3.25rem; height: 3.25rem; border-radius: 50%; margin-top: -1.625rem; }
.lb__nav--prev { left: 1.25rem; } .lb__nav--next { right: 1.25rem; }
.lb__nav svg { width: 1.6rem; height: 1.6rem; }
.lb__foot { position: absolute; left: 0; right: 0; bottom: 0; padding: .4rem .75rem max(.75rem, env(safe-area-inset-bottom)); background: linear-gradient(to top, color-mix(in srgb, var(--bg) 70%, transparent), transparent); }
.lb__cap { margin: 0 auto .4rem; min-height: 2.75rem; display: flex; align-items: center; justify-content: center; padding: 0 3.5rem; font: 600 var(--fs-caption)/1.3 var(--font); text-align: center; }
.lb__strip { display: flex; gap: .5rem; justify-content: safe center; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.lb__strip::-webkit-scrollbar { display: none; }
.lb__thumb { position: relative; flex: none; width: 4rem; height: 2.75rem; padding: 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--lb-edge); background: var(--glass); opacity: .55; cursor: pointer; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb__thumb:hover { opacity: .85; }
.lb__thumb[aria-current] { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }
.lb__thumb.is-video::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -5px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
@media (max-width: 640px) {
    .lb__top { padding: .5rem; gap: .3rem; }
    .lb__tools { gap: .25rem; }
    .lb__swtext, .lb__langbtn svg { display: none; }
    .lb__switch { padding: 0 .5rem; gap: .3rem; }
    .lb__count { min-width: 0; padding: .45rem .55rem; }
    .lb__nav { top: auto; bottom: calc(max(.75rem, env(safe-area-inset-bottom)) + 2.75rem + 8px + .4rem + 2px); margin: 0; width: 2.75rem; height: 2.75rem; }
    .lb__nav--prev { left: .5rem; } .lb__nav--next { right: .5rem; }
    .lb__langs { grid-template-columns: repeat(2, minmax(0, 1fr)); right: .5rem; top: 3.5rem; width: calc(100vw - 1rem); }
}

/* Hinweispunkte */
.lb__spots { position: absolute; inset: 0; pointer-events: none; transition: opacity .2s; }
.lb:not(.is-ready) .lb__spots, .lb.is-zoomed .lb__spots, .lb.is-show .lb__spots { opacity: 0; visibility: hidden; }
.lb__spot { position: absolute; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; padding: 0; border: 0; background: none; pointer-events: auto; cursor: help; }
.lb__spot::before, .lb__spot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; }
.lb__spot::before { background: var(--phosphor); box-shadow: 0 0 0 2px var(--glass), 0 0 12px var(--phosphor); }
.lb__spot::after { border: 2px solid var(--phosphor); animation: lb-pulse 2.2s ease-out infinite; }
@keyframes lb-pulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.lb__tip { position: absolute; left: -.5rem; bottom: calc(100% - .25rem); width: max-content; max-width: min(16rem, 70vw); padding: .5rem .75rem; border-radius: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--lb-gloss), 0 12px 30px -10px rgba(0,0,0,.55); font: max(.95rem, 13px)/1.35 var(--font); text-align: left; white-space: normal; opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; pointer-events: none; }
.lb__spot.is-left .lb__tip { left: auto; right: -.5rem; }
.lb__spot.is-below .lb__tip { bottom: auto; top: calc(100% - .25rem); transform: translateY(-4px); }
.lb__spot:hover .lb__tip, .lb__spot:focus-visible .lb__tip, .lb__spot[aria-expanded="true"] .lb__tip { opacity: 1; transform: none; }

/* Klang, Video, Lupe, Themes */
.lb__sound { position: absolute; border-radius: 50%; transition: opacity .2s; }
.lb:not(.is-ready) .lb__sound, .lb:not(.is-ready) .lb__vbar { opacity: 0; pointer-events: none; }
.lb__sound[aria-pressed="true"] .lb__wave { animation: lb-wave 1.1s ease-in-out infinite alternate; }
@keyframes lb-wave { from { opacity: .35; } to { opacity: 1; } }
.lb__vbar { position: absolute; transform: translateY(-100%); display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: 0 0 8px 8px; background: linear-gradient(to top, rgba(4,8,10,.78), transparent); color: #fff; }
.lb__vbar .lb__btn { border-radius: 50%; color: #fff; background: rgba(6,9,12,.55); border-color: rgba(255,255,255,.25); }
.lb__vplay.is-paused svg:nth-of-type(2), .lb__vplay:not(.is-paused) svg:first-of-type, .lb__vmute.is-muted svg:nth-of-type(2), .lb__vmute:not(.is-muted) svg:first-of-type { display: none; }
.lb__seek { flex: 1; min-width: 4rem; height: 2.75rem; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.lb__seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--phosphor) var(--p, 0%), rgba(255,255,255,.3) var(--p, 0%)); }
.lb__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--phosphor); box-shadow: 0 0 8px var(--phosphor); }
.lb__seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.lb__seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--phosphor); }
.lb__seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--phosphor); }
.lb__time { font: 600 max(.85rem, 13px)/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 420px) { .lb__time { display: none; } }
.lb__lens { position: absolute; left: 0; top: 0; width: 180px; height: 180px; border-radius: 50%; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .15s; background: var(--glass); box-shadow: 0 0 0 2px var(--phosphor), 0 0 0 5px color-mix(in srgb, var(--glass) 60%, transparent), 0 16px 40px -8px rgba(0,0,0,.6); will-change: transform; }
.lb__lens.is-on { opacity: 1; }
.lb__lens img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; }
.lb__themes { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: 0 .75rem; visibility: hidden; }
.lb.any-themes .lb__themes { height: 5.5rem; }
.lb.has-themes .lb__themes { visibility: visible; }
.lb.is-zoomed .lb__themes, .lb.is-tour .lb__themes { visibility: hidden; opacity: 0 !important; }
.lb__trow { display: flex; align-items: center; gap: .6rem; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px 4px; border-radius: 14px; background: var(--lb-glass); border: 1px solid var(--lb-edge); box-shadow: var(--lb-gloss); }
.lb__trow::-webkit-scrollbar { display: none; }
.lb__tall { width: auto; flex: none; grid-auto-flow: column; gap: .35rem; padding: 0 .7rem; border: 0; background: none; box-shadow: none; font: 600 max(.95rem, 13px)/1 var(--font); }
.lb__tall svg { width: 1.1rem; height: 1.1rem; }
.lb__tall svg:nth-of-type(2), .lb__tall[aria-pressed="true"] svg:first-of-type { display: none; }
.lb__tall[aria-pressed="true"] svg:nth-of-type(2) { display: inline; }
.lb__tgroup { display: flex; align-items: center; flex: none; padding-left: .5rem; border-left: 1px solid var(--lb-edge); }
.lb__tlabel { margin-right: .25rem; color: var(--muted); font: 600 13px/1 var(--font); }
.lb__dot { flex: none; width: 1.9rem; height: 2.75rem; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.lb__dot span { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px var(--lb-edge); transition: transform .15s, box-shadow .15s; }
.lb__dot:hover span { transform: scale(1.15); }
.lb__dot[aria-pressed="true"] span { transform: scale(1.2); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent), 0 0 12px var(--accent); }
.lb__tname { margin: 0; min-height: 1.4rem; font: 600 max(.95rem, 13px)/1.4 var(--font); font-variant-numeric: tabular-nums; }
.lb__glow { position: absolute; inset: 0; border-radius: 8px; opacity: .55; pointer-events: none; will-change: opacity, transform; }
.lb__pic { will-change: transform; }
.lb__layers, .lb__morph { position: absolute; inset: 0; pointer-events: none; }
.lb__layer, .lb__cell { position: absolute; overflow: hidden; }
.lb__layer { box-shadow: 0 2px 8px -2px rgba(0,0,0,.45); will-change: transform; }
.lb__layer img, .lb__cell img { position: absolute; max-width: none; display: block; }
.lb__cell { opacity: 0; transition: opacity .36s ease; }
.lb__cell.is-on { opacity: 1; }
.lb__hits { position: absolute; inset: 0; pointer-events: none; }
.lb:not(.is-ready) .lb__hits, .lb.is-zoomed .lb__hits, .lb.is-show .lb__hits, .lb.is-tour .lb__hits { visibility: hidden; }
.lb__hit { position: absolute; padding: 0; border: 0; border-radius: 6px; background: none; pointer-events: auto; cursor: pointer; }
.lb__hit::after { content: ""; position: absolute; inset: -2px; border-radius: 7px; border: 1.5px solid var(--phosphor); box-shadow: 0 0 10px color-mix(in srgb, var(--phosphor) 55%, transparent); opacity: 0; transition: opacity .15s; }
.lb__hit:hover::after, .lb__hit:focus-visible::after, .lb__hit.is-armed::after { opacity: 1; }
.lb__hit:focus-visible { outline: none; box-shadow: none; }
.lb.is-tour .lb__spots { opacity: 0; visibility: hidden; }
.lb__menu { position: absolute; top: 4rem; right: 1rem; display: grid; gap: 2px; min-width: 13rem; padding: .4rem; border-radius: 14px; background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--line); box-shadow: var(--lb-gloss), 0 24px 60px -18px rgba(0,0,0,.55); }
.lb__menu[hidden] { display: none; }
.lb__mi { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .75rem; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text); font: 600 max(.95rem, 13px)/1.2 var(--font); text-align: left; cursor: pointer; }
.lb__mi svg { width: 1.3rem; height: 1.3rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lb__mi .lb__fill { fill: currentColor; stroke: none; }
.lb__mi .lb__thin { stroke-width: 1.3; }
.lb__mi:hover { background: var(--surface-2); }
.lb__mi[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.lb.is-video .lb__loupe, .lb.is-video .lb__tourbtn { display: none; }
@media (max-width: 640px) { .lb__menu { right: .5rem; top: 3.5rem; } }
.lb__ring { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--phosphor); box-shadow: 0 0 0 4px color-mix(in srgb, var(--phosphor) 25%, transparent), 0 0 18px var(--phosphor); opacity: 0; transition: opacity .25s; pointer-events: none; }
.lb__ring.is-on { opacity: 1; }
.lb__tourtip { position: absolute; left: 50%; bottom: 8.5rem; transform: translateX(-50%); width: max-content; max-width: min(32rem, calc(100vw - 2rem)); margin: 0; padding: .65rem 1rem; border-radius: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--lb-gloss), 0 16px 40px -12px rgba(0,0,0,.6); font: 600 max(1rem, 13px)/1.4 var(--font); text-align: center; pointer-events: none; }
.lb__tourtip[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .lb__spot::after, .lb__sound[aria-pressed="true"] .lb__wave { animation: none; } .lb__spot::after { display: none; } }

.banks { margin-top: 2.5rem; }
.banks__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.banks__list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .75rem; }
.banks__list li { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.banks__list p { margin: .3rem 0 0; }
/* /download: jede Box genau zwei Zeilen, Dateiname kürzt statt umzubrechen, Knopf feste Spalte. */
.dl-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; flex-wrap: nowrap; }
.dl-list li > div { min-width: 0; }
.dl-list__file { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-small); }
.dl-list li > div > :not(.dl-list__file, p) { white-space: nowrap; }
@media (max-width: 36rem) { .dl-list li { grid-template-columns: minmax(0, 1fr); } .dl-list .btn { justify-self: stretch; text-align: center; } }

/* Handbuch (/plugins/<slug>/manual): Inhaltsverzeichnis links, Text rechts; schmal untereinander. */
.manual__cols { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 62rem) { .manual__cols { grid-template-columns: 17rem minmax(0, 1fr); } .manual__toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; } }
.manual__toc h2 { font-size: var(--fs-h3); margin: 0 0 .5rem; }
.manual__toc ul { list-style: none; margin: 0; padding: 0; }
.manual__toc li { margin: .15rem 0; }
.manual__toc--l3 { padding-left: 1rem; font-size: var(--fs-small); }
.manual__body { max-width: 56rem; overflow-wrap: anywhere; }
.manual__body h2 { font-size: var(--fs-h3); margin: 2rem 0 .6rem; scroll-margin-top: 1rem; }
.manual__body h3, .manual__body h4 { font-size: var(--fs-body); margin: 1.4rem 0 .4rem; scroll-margin-top: 1rem; }
.manual__body img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.manual__body blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 4px solid var(--line); background: var(--surface); }
.manual__body blockquote p { margin: .3rem 0; }
.manual__body code, .manual__body pre { font-family: var(--mono); font-size: var(--fs-small); background: var(--surface-2); border-radius: 4px; }
.manual__body code { padding: .05rem .3rem; }
.manual__body pre { padding: .8rem 1rem; overflow-x: auto; }
.manual__body pre code { padding: 0; background: none; }
.manual__table { overflow-x: auto; margin: 1rem 0; }
.manual__table table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); }
.manual__table th, .manual__table td { border: 1px solid var(--line); padding: .35rem .6rem; text-align: left; vertical-align: top; }
.manual__table th { background: var(--surface-2); }

/* Kaufbereich der Produktseiten (nur sichtbar, wenn data/shop.json einen Eintrag hat) */
.buy { margin: 1rem 0; }
.buy__price { font-size: 1.5rem; margin: 0 0 .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* PSOrvia Base (/base) */
.basenav { border-bottom: 1px solid var(--line); }
.basenav ul { list-style: none; margin: 0 auto; padding: .4rem 16px; display: flex; flex-wrap: wrap; gap: .25rem 1rem; max-width: 72rem; }
.basenav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .25rem; }
.basenav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.base-hero { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 40rem) { .base-hero { grid-template-columns: 6rem minmax(0, 1fr); } }
.base-hero__icon { width: 6rem; height: 6rem; border-radius: 1rem; }
.codeblock { font-family: var(--mono); font-size: var(--fs-small); background: var(--surface-2); border-radius: 4px; padding: .8rem 1rem; overflow-x: auto; max-width: 100%; }
.codeblock code { background: none; padding: 0; }
.cmp .val { white-space: nowrap; }
.cmp .val--no, .cmp .val--notbuilt { color: var(--err); }
.cmp .val--yes { color: var(--accent); }
.doc-pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* Download-Seite: Installer als Hauptweg, Einzelpakete eingeklappt als "weitere Formate" */
.more-formats { margin: 1rem 0; }
.more-formats > summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.more-formats > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.downloads--installer { margin-bottom: 2rem; }

/* Verweis auf das Klanggelände (PSOrvia FM-Seite) */
.terrain-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); }
.terrain-link h2 { margin: 0 0 .25rem; font-size: var(--fs-lead); }
.terrain-link p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Bereich „Neu“, Startleiste, Newsletter */
.neu-list { display: grid; gap: 1.5rem; margin: 2rem 0; }
.neu-item { display: grid; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 5rem; }
.neu-item__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius) - 2px); background: var(--surface-2); }
.neu-item__title { font-size: var(--fs-h3); margin: .2em 0; }
.neu-item__text p { margin: .4rem 0; }
@media (min-width: 52rem) { .neu-item { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; padding: 1.25rem; } }
.neu-strip__list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; }
.neu-strip__item { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.neu-strip__item h3 { font-size: var(--fs-h3); margin: .2em 0; }
.neu-strip__item p { margin: .3rem 0; }
@media (min-width: 52rem) { .neu-strip__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot__nl { display: grid; gap: .5rem; }
.foot__nl form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .foot__nl form strong { flex-basis: 100%; color: var(--text); }
.foot__nl input[type=email] { font: inherit; padding: .6rem .8rem; min-height: 44px; border: 2px solid var(--muted); border-radius: 8px; background: var(--surface); color: var(--text); flex: 1 1 12rem; max-width: none; }
.foot__nl .btn { min-height: 44px; cursor: pointer; border: 0; font: inherit; font-weight: 600; }
@media (max-width: 40rem) { .foot__nl form { display: grid; } .foot__nl input[type=email] { max-width: none; } .foot__nl .btn { width: 100%; } }
/* Newsletter-Maske ruhig (Hannes 19.11.): eine Karte, alle Überschriften gleich, Häkchen bündig, Hausfarbe, Knopf über die volle Breite auf dem Handy */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; max-width: none; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem 4rem; align-items: start; }
.split__text .lead { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; } .field-row .field { display: grid; gap: .5rem; align-content: start; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .field-row { grid-template-columns: 1fr; } .form-card .btn { width: 100%; } }
.nl-form .checks { display: grid; gap: 0; border: 0; padding: 0; margin: .5rem 0 0; min-width: 0; }
.nl-form .checks legend { font-weight: 600; padding: 0; margin: 0 0 .25rem; }
.nl-form .checks label { display: flex; gap: .75rem; align-items: center; font-weight: 400; margin: 0; min-height: 44px; }
.nl-form .checks input { width: 1.25rem; height: 1.25rem; padding: 0; margin: 0; border: 0; flex: none; accent-color: var(--accent); }
.nl-form .small { margin: .5rem 0 0; }
.nl-form select { font: inherit; padding: .7rem; border: 2px solid var(--muted); border-radius: 8px; background: var(--surface); color: var(--text); }

/* Presse-Übersicht: eine ruhige Zeile je Produkt */
.press-list { list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; display: grid; gap: 1rem; }
.press-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.5rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.press-item__icon { width: 96px; height: 96px; border-radius: 20px; }
.press-item__body { display: grid; gap: .75rem; } .press-item__body h2 { margin: 0; font-size: 1.5rem; } .press-item__body p { margin: 0; max-width: 60ch; }
.press-item__actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; margin-top: .25rem; }
.press-item__size { font-weight: 400; opacity: .85; margin-left: .6rem; }
@media (max-width: 40rem) { .press-item { grid-template-columns: 1fr; padding: 1.25rem; } .press-item__icon { width: 72px; height: 72px; } .press-item__actions .btn { width: 100%; } }

/* verhüllte Kontaktadresse */
.mx-at::before { content: "@"; }

/* Lernanleitungen /lernen/<slug> */
.lesson { max-width: 52rem; }
.lesson__draft { color: var(--err); }
.lesson__result { border: 1px solid var(--accent); border-radius: 16px; padding: 1rem 1.25rem 1.25rem; margin: 1.5rem 0; background: var(--surface-2); }
.lesson__result h2 { margin-top: 0; }
.lesson__downloads { display: flex; flex-wrap: wrap; gap: .75rem; }
.lesson__steps { list-style: none; padding: 0; margin: 2rem 0 0; }
.lesson__step { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem; }
.lesson__step h2 { display: flex; align-items: center; gap: .75rem; margin-top: 0; }
.lesson__n { display: inline-grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 1.1rem var(--font); }
.lesson__values { border-collapse: collapse; margin: 1rem 0; min-width: 18rem; max-width: 100%; }
.lesson__values caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }
.lesson__values th, .lesson__values td { text-align: left; padding: .3rem .8rem .3rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.lesson__values th[scope="rowgroup"] { font-weight: 700; padding-top: .8rem; border-bottom-color: var(--accent); }
.lesson__values td { font: 700 var(--fs-body) var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lesson__fig { margin: 1.25rem 0 0; }

.lesson__fig figcaption { color: var(--muted); font-size: var(--fs-small, .9rem); margin-top: .5rem; }
@media (max-width: 40rem) { .lesson__values { width: 100%; } }

/* Lernanleitungen: Vorher/Nachher, Bildmarkierung, Spektrum, Quiz */
:root { --ring: #0a4fc4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ring: #8db4ff; } }
:root[data-theme="dark"] { --ring: #8db4ff; }
.lesson__stage { position: relative; }
.lesson__stage img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; background: var(--glass); }
.lesson__img-before { position: absolute; inset: 0; height: 100% !important; }
.lesson__ring { position: absolute; border: 3px solid var(--ring); border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); pointer-events: none; }
.lesson__fig.is-anim .lesson__img-after { opacity: 0; transition: opacity 1.4s ease; }
.lesson__fig.is-anim.is-done .lesson__img-after { opacity: 1; }
.lesson__fig.is-anim .lesson__ring { animation: lesson-pulse 2.4s ease-in-out 3; }
@keyframes lesson-pulse { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .lesson__fig .lesson__img-after { opacity: 1 !important; transition: none !important; } .lesson__ring { animation: none !important; } }
.lesson__q fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.25rem; background: var(--surface); }
.lesson__q legend { font-weight: 700; padding: 0 .4rem; }
.lesson__opts { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .6rem; }
.lesson__opts li { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.lesson__opts input { width: 1.4rem; height: 1.4rem; accent-color: var(--accent); }
.lesson__opts .btn { min-height: 2.6rem; }
.lesson__opts .btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.lesson__result-line { font-weight: 700; min-height: 1.5rem; }
.lesson__result-line[data-state="right"] { color: var(--accent); }
.lesson__result-line[data-state="wrong"] { color: var(--err); }



/* Lernanleitungen: Eckdaten, Fachwörter, Fortschritt, Varianten, Spickzettel, Druck */
.lesson__facts { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 1rem 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lesson__facts div { display: flex; flex-direction: column; }
.lesson__facts dt { color: var(--muted); font-size: .9rem; }
.lesson__facts dd { margin: 0; font-weight: 700; }
.lesson__link { background: none; border: 0; padding: .6rem 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; min-height: 2.75rem; }
.lesson__tools { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; align-items: center; margin: .2rem 0 .6rem; }
.lesson__done { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; cursor: pointer; font-weight: 600; }
.lesson__done input { width: 1.4rem; height: 1.4rem; accent-color: var(--accent); }
.lesson__progress progress { width: 100%; height: 1rem; accent-color: var(--accent); }
.lesson__termwrap { position: relative; }
.lesson__term { color: inherit; text-decoration: underline dotted var(--accent) 2px; text-underline-offset: 3px; cursor: help; }
.lesson__term:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lesson__def { display: block; margin: .4rem 0; padding: .6rem .8rem; border: 1px solid var(--accent); border-radius: 10px; background: var(--surface-2); font-size: .95rem; max-width: 36rem; }
.lesson__def[hidden] { display: none; }
.lesson__open { display: inline-block; margin: 0 0 0 .5rem; vertical-align: top; }
.lesson__open summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.2rem; border: 2px solid var(--accent); border-radius: var(--radius); color: var(--accent); font-weight: 600; }
.lesson__open p { max-width: 36rem; margin-top: .6rem; }
.lesson__kv { margin: 1rem 0; }
.lesson__viewhint { max-width: 40rem; color: var(--muted, inherit); font-size: .95rem; }
.lesson__variants { margin-top: 3rem; }
.lesson__variant { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }
.lesson__more { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.lesson__glossary > div { border-top: 1px solid var(--line); padding: .8rem 0; scroll-margin-top: 5rem; }
.lesson__glossary dt { font-weight: 700; font-size: 1.1rem; }
.lesson__glossary dd { margin: .2rem 0 0; }
.lesson__glossary > div:target { background: var(--surface-2); }
.lesson__cheat { list-style: none; padding: 0; columns: 2 18rem; column-gap: 2rem; }
.lesson__cheat li { break-inside: avoid; margin-bottom: 1.2rem; }
.lesson__cheat h2 { font-size: 1.15rem; margin: 0 0 .3rem; }
.lesson__step:target h2 { outline: 2px solid var(--accent); outline-offset: 4px; }
@media print {
    header.top, footer, .skip, .lesson__noprint, .lesson__downloads, .lesson__tools, .lesson__progress, .lesson__open, .lesson__kv, .player, .lesson__quiz, .lesson__fig, .lesson__cheatlink { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .lesson { max-width: none; }
    .lesson__values td, .lesson__values th { border-color: #999; color: #000; }
    .lesson__step, .lesson__cheat li { break-inside: avoid; }
    .lesson--cheat .lesson__cheat { columns: 2; }
}

/* Hauptmenü mit vier Gruppen (Schalter NAV_NEU) */
.nav--gruppen { flex-wrap: nowrap; }
.ng { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.ng__g { margin: 0; }
.ng__d { position: relative; }
.ng__d > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: .55rem .8rem; border-radius: 8px; cursor: pointer; color: var(--text); font-size: var(--fs-nav); }
.ng__d > summary::-webkit-details-marker { display: none; }
.ng__d > summary:hover, .ng__d[open] > summary { background: var(--surface-2); }
.ng__d > summary[data-here] { box-shadow: inset 0 -3px 0 var(--accent); font-weight: 600; }
.ng__d > summary:focus-visible, .nav--gruppen a:focus-visible, .nav__dl:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ng__d > summary .chev { width: .9rem; height: .9rem; transition: transform .15s; }
.ng__d[open] > summary .chev { transform: rotate(180deg); }
.ng__p { list-style: none; margin: 0; padding: .4rem; display: grid; gap: .1rem; }
.ng__p li { margin: 0; }
.ng__p a { display: flex; width: 100%; box-sizing: border-box; }
.nav__dl { order: 3; white-space: nowrap; min-height: 2.75rem; padding-block: .45rem; }
@media (min-width: 60.01rem) {
    .ng__p { position: absolute; left: 0; top: calc(100% + .35rem); z-index: 50; min-width: 13rem; width: max-content; max-width: 20rem; background: var(--surface, var(--bg)); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px -12px rgba(0,0,0,.35); }
}
@media (max-width: 60rem) {
    .has-burger .ng { flex-direction: column; flex-wrap: nowrap; }
    .has-burger .ng__d > summary { width: 100%; box-sizing: border-box; justify-content: space-between; }
    .has-burger .ng__p { padding: 0 0 .4rem .8rem; }
    .has-burger .nav__dl { order: 0; align-self: stretch; }
    .ng__p a { white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .ng__d > summary .chev { transition: none; } }

/* Lernen: Übersichtskarten und Block auf der Player-Seite */
.lernen__cards { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.lernen__meta { margin: 0; font-size: var(--fs-caption); }
.lernen__go { margin: auto 0 0; padding-top: .6rem; color: var(--accent); font-weight: 600; }
.lernen__glossar { margin-top: 1rem; }
.lernen-block { margin: 2rem 0; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lernen-block h2 { margin-top: 0; }
.lernen-block ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.lernen-block li { margin: .25rem 0; }

/* Faktenblock + „Ohne Haken“ auf den Produktseiten (templates/plugins/_fakten.html.twig) */
.fakten { margin: 2rem 0; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fakten h2 { margin-top: 0; }
.fakten h3 { margin: 0 0 .4rem; font-size: var(--fs-lead); }
.fakten__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 2rem; }
.fakten__list { margin: 0; padding: 0; list-style: none; }
.fakten__list li { margin: .3rem 0; }
.fakten__list--haken li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
