/* mediathek – Stil. Hülle in Tinte, je Bereich eine Farbe: Indigo (Lesen), Petrol (Sehen),
   Samtrot (Live). Mobil zuerst, ab 900 px mit Seitenleiste. Zusammengeführt aus lesen
   (Version 5: Buchrücken, Blätter, Schriftgrößen nach iOS-Textgröße über --px) und sehen
   (Version 2: Titelkacheln, Folgenraster, Filmstreifen). */


@font-face { font-family: 'Literata'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/literata-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/literata-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/hanken-grotesk-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/hanken-grotesk-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/hanken-grotesk-latin-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/hanken-grotesk-latin-ext-500.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/hanken-grotesk-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/hanken-grotesk-latin-ext-600.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --leinen: #ECEEE9;
  --blatt: #F8F9F6;
  --tinte: #1D2B2A;
  --tinte-tief: #0F1A19;
  --auf-tinte: #F8F9F6;
  --grau: #56625F;
  --linie: #D3D8D1;
  --linie-stark: #B9C1BA;
  --spur: #CDD3CB;
  --mulde: #E1E5DE;
  --grau-mulde: #4C5754;
  --indigo: #34409A;
  --indigo-dunkel: #232D78;
  --indigo-hell: #DDE1F4;
  --petrol: #1F5F66;
  --petrol-tief: #174A50;
  --petrol-hauch: #D9E6E6;
  --samt: #8C2F45;
  --samt-tief: #6E2335;
  --samt-hauch: #F3E6E9;
  --auf-farbe: #FFFFFF;
  --bernstein: #A86B12;
  --bernstein-text: #8A560B;
  --gefahr: #A33A2B;
  --abdunkeln: rgba(29, 43, 42, 0.38);
  --band: rgba(255, 255, 255, 0.35);
  --streifen-1: #4E7C77;
  --streifen-2: #688C88;
  --offen: #A9B3AB;
  /* Regalrücken (lesen): dieselben acht Farben wie REGAL_FARBEN in kern-lesen.js */
  --r0: #34409A; --r1: #2D6A6E; --r2: #A86B12; --r3: #7A3E5C;
  --r4: #4F5D6E; --r5: #6B7B3E; --r6: #5B6AC9; --r7: #9C5A3C;
  /* Titelkacheln (sehen): gedeckte Töne, weiße Schrift mindestens 5:1 */
  --k0: #1F5F66; --k1: #4F6B3A; --k2: #9A4B2F; --k3: #3E5566;
  --k4: #6B4560; --k5: #82570F; --k6: #34507A; --k7: #56606C;
  --auf-kachel: #FFFFFF;
  /* Akzent der Seite: Tinte in der Hülle, die Bereichsfarbe auf Seiten eines Bereichs */
  --akzent: var(--tinte);
  --akzent-tief: var(--tinte-tief);
  --akzent-hauch: var(--mulde);
  --auf-akzent: var(--auf-tinte);
  --rand: 20px;
  --schrift: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --lese: 'Literata', Georgia, serif;
  /* Ein „Schrift-Pixel“. Überall 1/16 rem; unter iOS folgt die Grundgröße der Systemeinstellung
     „Textgröße“ (bei Standard 17 px, darum 1/17 rem – die App sieht bei Standard gleich aus). */
  --px: 0.0625rem;
  color-scheme: light;
}
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
  :root { --px: calc(1rem / 17); }
}
@media (prefers-color-scheme: dark) {
  :root {
    --leinen: #12171A;
    --blatt: #1A2125;
    --tinte: #E6EBE8;
    --tinte-tief: #FFFFFF;
    --auf-tinte: #12171A;
    --grau: #9AA6A2;
    --linie: #2C3539;
    --linie-stark: #3C474C;
    --spur: #3A464E;
    --mulde: #252E33;
    --grau-mulde: #A9B4B0;
    --indigo: #8E9AF0;
    --indigo-dunkel: #B4BCF6;
    --indigo-hell: #262E5A;
    --petrol: #6FB3B8;
    --petrol-tief: #9FD0D3;
    --petrol-hauch: #1E3A3D;
    --samt: #E58A9C;
    --samt-tief: #F2B3BF;
    --samt-hauch: #3A1E25;
    --auf-farbe: #12171A;
    --bernstein: #E2A64A;
    --bernstein-text: #E2A64A;
    --gefahr: #F08C7A;
    --abdunkeln: rgba(0, 0, 0, 0.55);
    --band: rgba(255, 255, 255, 0.25);
    --streifen-1: #4F7F7B;
    --streifen-2: #6E9E99;
    --offen: #475655;
    /* dunkle Rückenfarben aufgehellt: mindestens 3:1 gegen den Hintergrund */
    --r0: #5962AC; --r1: #3A7377; --r3: #8D5973; --r4: #5D6A7A;
    --k0: #2D6C73; --k1: #577540; --k2: #A4573A; --k3: #4A6274;
    --k4: #7A526F; --k5: #8C6417; --k6: #42608A; --k7: #626C79;
    color-scheme: dark;
  }
}

/* Bereichsfarben: Seiten eines Bereichs setzen den Akzent um. */
.b-lesen { --akzent: var(--indigo); --akzent-tief: var(--indigo-dunkel); --akzent-hauch: var(--indigo-hell); --auf-akzent: var(--auf-farbe); }
.b-sehen { --akzent: var(--petrol); --akzent-tief: var(--petrol-tief); --akzent-hauch: var(--petrol-hauch); --auf-akzent: var(--auf-farbe); }
.b-live { --akzent: var(--samt); --akzent-tief: var(--samt-tief); --akzent-hauch: var(--samt-hauch); --auf-akzent: var(--auf-farbe); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--leinen);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: calc(16 * var(--px));
  line-height: 1.45;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
body.blatt-offen { overflow: hidden; }
a { color: var(--akzent); }
@media (hover: hover) { a:hover { color: var(--akzent-tief); } }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
[hidden] { display: none !important; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.unsichtbar-datei { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.grau { color: var(--grau); }
.fett { font-weight: 600; }
.klein-text { font-size: calc(14 * var(--px)); }
.zentriert { text-align: center; }
.pfeil-rechts { flex-shrink: 0; color: var(--grau); }

/* Farbklassen der Buchrücken (Index aus kern-lesen.js) */
.f0 { --rf: var(--r0); } .f1 { --rf: var(--r1); } .f2 { --rf: var(--r2); } .f3 { --rf: var(--r3); }
.f4 { --rf: var(--r4); } .f5 { --rf: var(--r5); } .f6 { --rf: var(--r6); } .f7 { --rf: var(--r7); }

/* ---------- Grundgerüst ---------- */

.app { min-height: 100dvh; }
.hauptspalte { min-width: 0; }
#inhalt {
  padding: 0 calc(var(--rand) + env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) calc(var(--rand) + env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top);
  outline: none;
  max-width: 760px;
  margin: 0 auto;
}
.seitenleiste { display: none; }
.nur-breit { display: none !important; }

.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--blatt);
  border-top: 1px solid var(--linie);
  padding: 6px calc(4px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(4px + env(safe-area-inset-left));
}
.leiste a, .leiste button {
  border: none; background: none; padding: 0;
  min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--grau); text-decoration: none; font-size: calc(11.5 * var(--px)); font-weight: 500;
}
.leiste a svg, .leiste button svg { width: 26px; height: 26px; }
.leiste a[aria-current="page"] { color: var(--tinte); font-weight: 600; }

.abgleich-hinweis {
  position: sticky; top: 0; z-index: 9;
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: calc(6px + env(safe-area-inset-top)) var(--rand) 6px;
  background: var(--mulde); color: var(--tinte); font-size: calc(13 * var(--px)); text-align: center;
}
.abgleich-hinweis button { border: none; background: none; color: var(--tinte); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; min-height: 44px; padding: 0 8px; margin: -6px 0; }

/* ---------- Köpfe ---------- */

.kopf { padding: 44px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marke { font-family: var(--lese); font-size: calc(28 * var(--px)); font-weight: 500; letter-spacing: -0.01em; }
.marke.gross { font-size: calc(40 * var(--px)); line-height: 1; }
.seitentitel { margin: 0; font-family: var(--lese); font-size: calc(34 * var(--px)); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.kopf .seitentitel { flex: 1 1 auto; min-width: 0; }
.kopf + .seitentitel { margin-top: 10px; }
.oberzeile { margin: 0; font-size: calc(13 * var(--px)); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grau); }
.rund {
  width: 44px; height: 44px; flex-shrink: 0; border: none; background: transparent; color: var(--tinte);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 22px;
}
a.rund { color: var(--tinte); }
.kopf a.rund { margin-right: -10px; }
.rund.aus { color: var(--linie-stark); }
.rund.umrandet { border: 1px solid var(--linie); background: var(--blatt); font-size: calc(20 * var(--px)); }
.zurueck-kopf { padding-top: 40px; margin: 0 -10px; display: flex; align-items: center; justify-content: space-between; }
.zurueck, .textknopf {
  min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px;
  border: none; background: none; color: var(--akzent); text-decoration: none; font-size: calc(15 * var(--px)); font-weight: 500;
}
.textknopf.gefahr { color: var(--gefahr); }
.textknopf.grau-leise { color: var(--grau); font-size: calc(14 * var(--px)); font-weight: 500; }

/* Kopf von Formularen: Abbrechen | Titel | Sichern (bleibt oben stehen) */
.form-kopf {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  margin: 0 calc(-1 * var(--rand)); padding: calc(40px + env(safe-area-inset-top)) var(--rand) 8px;
  background: var(--blatt); border-bottom: 1px solid var(--linie);
}
.form-kopf h1 { margin: 0; font-size: calc(17 * var(--px)); font-weight: 600; text-align: center; }
.form-kopf .links { justify-self: start; padding-left: 0; font-size: calc(16 * var(--px)); font-weight: 400; }
.form-kopf .rechts { justify-self: end; padding-right: 0; font-size: calc(16 * var(--px)); font-weight: 600; }

/* ---------- Umschalter, Reiter, Filter ---------- */

/* Segmente wie iOS: Bücher · Filme · Serien · Live, Geplant · Besucht, Zu Hause · Im Kino … */
.segment {
  margin-top: 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px;
  background: var(--mulde); border-radius: 10px; padding: 2px;
}
.segment button, .segment a {
  min-height: 36px; border: none; border-radius: 8px; background: transparent; color: var(--tinte);
  font-size: calc(14 * var(--px)); font-weight: 500; display: flex; align-items: center; justify-content: center;
  text-decoration: none; padding: 0 4px; text-align: center; position: relative;
}
.segment button::after, .segment a::after { content: ''; position: absolute; inset: -4px 0; }
.segment [aria-pressed="true"], .segment [aria-current="page"] { background: var(--blatt); font-weight: 600; box-shadow: 0 1px 3px rgba(29, 43, 42, 0.18); }
.segment.gefuellt [aria-pressed="true"] { background: var(--akzent); color: var(--auf-akzent); box-shadow: none; }
.segment button:disabled { opacity: 0.4; }

.reiter {
  margin: 12px calc(-1 * var(--rand)) 0; padding: 0 var(--rand);
  display: flex; gap: 20px; border-bottom: 1px solid var(--linie);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reiter::-webkit-scrollbar { display: none; }
.reiter-link {
  flex-shrink: 0; padding: 0; min-height: 44px; display: flex; align-items: center; color: var(--grau); text-decoration: none;
  font-size: calc(15 * var(--px)); font-weight: 500; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.reiter-link[aria-current="page"], .reiter-link[aria-pressed="true"] { color: var(--tinte); font-weight: 600; border-bottom-color: var(--akzent); }
.reiter.mitte { justify-content: center; gap: 28px; }
@media (hover: hover) and (pointer: fine) {
  .reiter { flex-wrap: wrap; overflow: visible; row-gap: 0; }
}
.listen-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-top: 4px; font-size: calc(14 * var(--px)); color: var(--grau); flex-wrap: wrap; }
.listen-info .filter { display: flex; gap: 8px; flex-wrap: wrap; }
.auswahl {
  min-height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--linie-stark); border-radius: 18px;
  background-color: transparent; color: var(--tinte); font-size: calc(14 * var(--px)); font-weight: 500;
  -webkit-appearance: none; appearance: none; max-width: 100%; position: relative;
  background-image: linear-gradient(45deg, transparent 50%, var(--grau) 50%), linear-gradient(135deg, var(--grau) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
@media (pointer: coarse) { .auswahl { min-height: 44px; border-radius: 22px; } }
.gruppen-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 0 2px; }
.gruppen-kopf h2 { margin: 0; font-family: var(--lese); font-size: calc(17 * var(--px)); font-weight: 600; }
.gruppen-kopf span { font-size: calc(13 * var(--px)); color: var(--grau); }

/* ---------- Felder und Knöpfe ---------- */

.feld {
  width: 100%; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--linie); border-radius: 12px; background: var(--blatt); color: var(--tinte);
  font-size: calc(16 * var(--px)); -webkit-appearance: none; appearance: none;
}
.feld:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 1px var(--akzent); }
.feld[aria-invalid="true"] { border-color: var(--gefahr); }
.feld.gross { min-height: 48px; }
.feld.klein { width: 110px; min-height: 40px; }
.feld:disabled { opacity: 0.55; }
textarea.feld { padding: 10px 12px; min-height: 88px; resize: vertical; line-height: 1.45; }
select.feld {
  background-image: linear-gradient(45deg, transparent 50%, var(--grau) 50%), linear-gradient(135deg, var(--grau) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
input[type="date"].feld, input[type="time"].feld { padding: 0 10px; }
.formfeld { display: block; margin: 0 0 14px; min-width: 0; }
.formfeld > span { display: block; font-size: calc(14 * var(--px)); color: var(--grau); margin-bottom: 6px; }
.feldfehler { margin: 6px 0 0; color: var(--gefahr); font-size: calc(14 * var(--px)); }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.zwei.band { grid-template-columns: minmax(0, 1fr) 90px; }
.zwei.isbn { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.zeile-feld { display: flex; gap: 8px; }
.zeile-feld .feld { flex: 1 1 auto; min-width: 0; }
.dauer-zeile { margin: 0; padding: 0; border: none; min-width: 0; }
.dauer-zeile legend { padding: 0; margin: 0 0 8px; font-size: calc(14 * var(--px)); font-weight: 600; color: var(--tinte); }
.haken { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: calc(15 * var(--px)); }
.haken input { width: 22px; height: 22px; accent-color: var(--akzent); flex-shrink: 0; }

.pille {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 22px;
  border: 1.5px solid var(--akzent); background: transparent; color: var(--akzent);
  font-size: calc(15 * var(--px)); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.pille.voll { background: var(--akzent); color: var(--auf-akzent); }
@media (hover: hover) { .pille.voll:hover { color: var(--auf-akzent); background: var(--akzent-tief); border-color: var(--akzent-tief); } }
.pille.klein { min-height: 36px; padding: 0 14px; font-size: calc(14 * var(--px)); border-radius: 18px; }
.pille.klein::after { content: ''; position: absolute; inset: -4px -2px; }
.pille.breit { width: 100%; }
.pille.hoch { min-height: 52px; border-radius: 26px; font-size: calc(16 * var(--px)); }
.pille.gefahr { border-color: var(--gefahr); color: var(--gefahr); }
.pille.tinte { border-color: var(--tinte); color: var(--tinte); }
.pille.tinte.voll { background: var(--tinte); color: var(--auf-tinte); }
.pille:disabled { opacity: 0.45; cursor: default; }
.pille[aria-pressed="true"]:not(.voll) { background: var(--akzent-hauch); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.knoepfe .textknopf { padding-left: 0; padding-right: 0; margin-right: 12px; }
.zwei-knoepfe { display: grid; grid-template-columns: 2fr 1fr; }
.zwei-knoepfe .pille { width: 100%; }
.dateiwahl { position: relative; overflow: hidden; }

/* Zeilen wie in iOS-Listen: Bezeichnung links, Wert rechts, Pfeil */
.zeilen-gruppe { border-top: 1px solid var(--linie); }
.zeile-link {
  width: 100%; min-height: 50px; margin: 0; padding: 6px 0; border: none; border-bottom: 1px solid var(--linie); background: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--tinte); text-decoration: none; text-align: left; font-size: calc(15 * var(--px));
}
.zeile-link .zl-label { color: var(--grau); flex-shrink: 0; }
.zeile-link .zl-wert { display: flex; align-items: center; gap: 6px; text-align: right; min-width: 0; }
.zeile-link.stark .zl-wert { font-weight: 600; }
.zeile-link.aktion { color: var(--akzent); font-weight: 500; }
.zeile-link.gefahr { color: var(--gefahr); font-weight: 500; }
.zeile-link.zweizeilig .zl-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.zeile-link.zweizeilig .zl-label { font-size: calc(13 * var(--px)); }
p.zeile-link { cursor: default; }
@media (hover: hover) { a.zeile-link:hover, button.zeile-link:hover { color: var(--tinte); } a.zeile-link.aktion:hover { color: var(--akzent-tief); } }

/* ---------- Zeichen der Bereiche ---------- */

.ruecken-zeile {
  flex-shrink: 0; width: 11px; height: 50px; margin-top: 3px; border-radius: 2px 2px 0 0;
  background: var(--rf, var(--r4));
  background-image: linear-gradient(var(--band), var(--band)), linear-gradient(var(--band), var(--band));
  background-size: 100% 2px, 100% 2px; background-position: 0 7px, 0 calc(100% - 9px); background-repeat: no-repeat;
}
.ruecken-zeile.gestrichelt { background: none; border: 1.5px dashed var(--indigo); height: 44px; }
.ruecken-gross { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.ruecken-gross::before {
  content: ''; display: block; width: 22px; height: 112px; border-radius: 2px 2px 0 0;
  background: var(--rf, var(--r4));
  background-image: linear-gradient(var(--band), var(--band)), linear-gradient(var(--band), var(--band));
  background-size: 100% 3px, 100% 3px; background-position: 0 14px, 0 calc(100% - 16px); background-repeat: no-repeat;
}
.ruecken-gross::after { content: ''; display: block; width: 38px; height: 2px; background: var(--linie-stark); }

.kachel {
  flex-shrink: 0; align-self: flex-start; width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--k0); color: var(--auf-kachel);
  font-family: var(--lese); font-size: calc(21 * var(--px)); font-weight: 600; line-height: 1;
  font-variant-numeric: lining-nums; user-select: none; -webkit-user-select: none;
}
.k1 { background: var(--k1); } .k2 { background: var(--k2); } .k3 { background: var(--k3); }
.k4 { background: var(--k4); } .k5 { background: var(--k5); } .k6 { background: var(--k6); } .k7 { background: var(--k7); }
.kachel.gross { width: 64px; height: 64px; border-radius: 14px; font-size: calc(30 * var(--px)); }

/* Datumskarte (Live): 44 × 44, Rand 1,5 px Samtrot, Tag groß, Monat klein in Großbuchstaben */
.datumskarte {
  flex-shrink: 0; align-self: flex-start; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--samt);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: var(--samt);
  user-select: none; -webkit-user-select: none;
}
.datumskarte b { font-family: var(--lese); font-size: calc(19 * var(--px)); font-weight: 600; font-variant-numeric: lining-nums; }
.datumskarte span { margin-top: 2px; font-size: calc(10 * var(--px)); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.datumskarte.gross { width: 72px; height: 72px; border-radius: 14px; border-width: 2px; }
.datumskarte.gross b { font-size: calc(32 * var(--px)); }
.datumskarte.gross span { font-size: calc(13 * var(--px)); }
.datumskarte.vergangen { border-style: dashed; }

.kino-marke {
  display: inline-block; padding: 2px 6px; border-radius: 5px; background: var(--petrol-hauch); color: var(--petrol-tief);
  font-size: calc(11.5 * var(--px)); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.3;
}
.punkt { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--akzent); flex-shrink: 0; }

/* ---------- Listen ---------- */

.liste { list-style: none; margin: 4px 0 0; padding: 0; }
.zeile {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--linie);
  content-visibility: auto; contain-intrinsic-size: auto 80px;
}
.zeile.mitte { align-items: center; }
.zeile-text { flex: 1 1 auto; min-width: 0; }
.z-titel {
  display: block; font-family: var(--lese); font-size: calc(18 * var(--px)); line-height: 1.25; font-weight: 500;
  color: var(--tinte); text-decoration: none; overflow-wrap: anywhere;
}
a.z-titel::after { content: ''; position: absolute; inset: 0; }
@media (hover: hover) and (pointer: fine) {
  a.z-titel:hover { color: var(--akzent); }
}
.zeile .pille { position: relative; z-index: 1; flex-shrink: 0; margin-top: 2px; }
.z-untertitel { font-size: calc(14 * var(--px)); color: var(--grau); margin-top: 2px; }
.z-autor, .z-neben { display: block; margin-top: 3px; font-size: calc(14 * var(--px)); color: var(--grau); overflow-wrap: anywhere; }
.z-neben:empty { display: none; }
.z-meta { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; font-size: calc(13 * var(--px)); color: var(--grau); }
.z-wertung { flex-shrink: 0; align-self: center; font-size: calc(14 * var(--px)); font-weight: 600; color: var(--bernstein-text); white-space: nowrap; }
.status-marke { padding: 1px 8px; border-radius: 10px; background: var(--akzent-hauch); color: var(--akzent-tief); font-weight: 500; }
.bereich-marke { font-size: calc(12 * var(--px)); color: var(--grau); }

/* Lese ich: Balken, Lesestand, „Fertig“ */
.zeile.lese-zeile { padding-bottom: 4px; }
.standbalken { margin-top: 10px; height: 5px; border-radius: 3px; background: var(--spur); overflow: hidden; }
.standbalken > div { height: 100%; border-radius: 3px; background: var(--indigo); }
.standbalken.gross { margin-top: 14px; height: 8px; border-radius: 4px; }
.standbalken.gross > div { border-radius: 4px; }
.z-aktion { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.z-aktion .z-meta { margin-top: 0; }
.stand-knopf {
  position: relative; z-index: 1; border: none; background: none; padding: 0; margin: 0;
  font-size: calc(13 * var(--px)); color: var(--tinte); text-align: left; line-height: inherit; font-variant-numeric: tabular-nums;
}
.stand-knopf::after { content: ''; position: absolute; inset: -13px -6px; }
.stand-knopf.ohne-stand { color: var(--indigo); font-weight: 500; }
.fertig-knopf {
  position: relative; z-index: 1; flex-shrink: 0; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--indigo); border-radius: 18px; background: none;
  display: inline-flex; align-items: center; gap: 6px; color: var(--indigo); font-size: calc(14 * var(--px)); font-weight: 600;
}
.fertig-knopf::after { content: ''; position: absolute; inset: -4px -2px; }
.aufklappen {
  width: 100%; min-height: 66px; padding: 12px 0; border: none; border-bottom: 1px solid var(--linie); background: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--tinte); text-align: left;
}
.aufklappen .af-text { display: flex; flex-direction: column; gap: 2px; }
.aufklappen .af-titel { font-size: calc(15 * var(--px)); font-weight: 600; }
.aufklappen .af-titel span { color: var(--grau); font-weight: 500; }
.aufklappen .af-hilfe { font-size: calc(13 * var(--px)); color: var(--grau); }
.aufklappen svg { flex-shrink: 0; color: var(--grau); transition: transform .2s; }
.aufklappen[aria-expanded="true"] svg { transform: rotate(180deg); }
.leer-gruppe { padding: 24px 0 26px; border-bottom: 1px solid var(--linie); }
.leer-gruppe p { margin: 0 0 12px; color: var(--grau); font-size: calc(14 * var(--px)); line-height: 1.5; }
.leer-gruppe p.gross { color: var(--tinte); font-size: calc(16 * var(--px)); }

/* Gelesen mobil: Titel, Autor, dann eine Zeile mit Datum, Sternen, Seiten */
.zeile.tabelle .zeile-text { display: grid; grid-template-columns: auto auto 1fr; column-gap: 14px; }
.zeile.tabelle .z-titel, .zeile.tabelle .z-autor { grid-column: 1 / -1; }
.zeile.tabelle .z-datum { grid-row: 3; grid-column: 1; margin-top: 6px; font-size: calc(13 * var(--px)); color: var(--grau); }
.zeile.tabelle .z-sterne { grid-row: 3; grid-column: 2; margin-top: 6px; font-size: calc(13 * var(--px)); color: var(--bernstein-text); font-weight: 600; }
.zeile.tabelle .z-seiten { grid-row: 3; grid-column: 3; margin-top: 6px; font-size: calc(13 * var(--px)); color: var(--grau); }
.zeile.tabelle .z-seiten.zahl::after { content: ' S.'; }
.tabellenkopf { list-style: none; }

/* Weiterschauen (sehen) */
.haken-knopf {
  position: relative; z-index: 1; flex-shrink: 0; width: 44px; height: 44px; margin-right: -7px;
  padding: 0; border: none; background: none; color: var(--petrol);
  display: flex; align-items: center; justify-content: center;
}
.haken-knopf > span {
  width: 30px; height: 30px; border-radius: 15px; border: 1.5px solid var(--petrol);
  display: flex; align-items: center; justify-content: center; transition: background-color .12s, color .12s;
}
.haken-knopf:active > span { background: var(--petrol); color: var(--auf-farbe); }
@media (hover: hover) and (pointer: fine) { .haken-knopf:hover > span { background: var(--petrol-hauch); } }
.knopfstapel { display: flex; flex-direction: column; align-items: center; gap: 0; position: relative; z-index: 1; flex-shrink: 0; }
.knopfstapel .haken-knopf { margin-right: 0; }
.knopfstapel .textknopf { position: relative; min-height: 36px; padding: 0 2px; font-size: calc(13 * var(--px)); }
.knopfstapel .textknopf::after { content: ''; position: absolute; inset: -4px -6px; }
.z-weiter { margin-top: 4px; font-size: calc(14 * var(--px)); }
.z-weiter strong { color: var(--petrol); font-weight: 600; }
.fortschritt { margin-top: 8px; display: flex; align-items: center; gap: 10px; font-size: calc(12 * var(--px)); color: var(--grau); }
.fortschritt span { flex-shrink: 0; }
.fortschritt .balken { flex: 1 1 auto; margin: 0; height: 4px; border-radius: 2px; background: var(--offen); }
.fortschritt .balken > div { height: 100%; border-radius: 2px; background: var(--petrol); }
.plakette { display: inline-block; padding: 3px 10px; border-radius: 12px; background: var(--akzent-hauch); color: var(--akzent-tief); font-weight: 600; font-size: calc(13 * var(--px)); }
.plakette.s-abgebrochen, .plakette.s-neu, .plakette.s-gesehen { background: var(--linie); color: var(--tinte); }
.liste.kompakt li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); font-size: calc(15 * var(--px)); }
.liste.kompakt a { color: var(--tinte); text-decoration: none; }

.leer { color: var(--grau); padding: 28px 0 8px; margin: 0; }
.leer p { margin: 0 0 14px; }
.fussnote { margin: 22px 0 0; font-size: calc(13 * var(--px)); color: var(--grau); line-height: 1.5; }
.hilfe { margin: 8px 0 0; font-size: calc(13 * var(--px)); line-height: 1.5; color: var(--grau); }
.hinweisbox { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 12px; background: var(--blatt); font-size: calc(14 * var(--px)); }
.hinweisbox p { margin: 0 0 6px; }
.fehlertext { margin: 10px 0 0; color: var(--gefahr); font-size: calc(14 * var(--px)); }
.hinweistext { margin: 10px 0 0; color: var(--grau); font-size: calc(14 * var(--px)); }
.trefferzahl { margin: 18px 0 2px; font-size: calc(13 * var(--px)); font-weight: 500; color: var(--grau); }
.zeilenlink {
  display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-top: 14px;
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); color: var(--tinte); text-decoration: none; font-size: calc(15 * var(--px));
}
.aufklapp { margin-top: 18px; }
.aufklapp > summary { min-height: 44px; display: flex; align-items: center; color: var(--akzent); font-weight: 500; cursor: pointer; font-size: calc(15 * var(--px)); list-style: none; }
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp h3 { margin: 14px 0 2px; font-size: calc(14 * var(--px)); color: var(--grau); font-weight: 600; }

/* ---------- Jetzt ---------- */

.jetzt-raster { display: flex; flex-direction: column; gap: 22px; margin-top: 18px; }
.jetzt-abschnitt { min-width: 0; }
.jetzt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jetzt-kopf h2 { margin: 0; font-size: calc(20 * var(--px)); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.jetzt-kopf a { min-height: 44px; display: flex; align-items: center; font-size: calc(15 * var(--px)); font-weight: 500; text-decoration: none; }
.karte-liste { list-style: none; margin: 0; padding: 0 16px; background: var(--blatt); border-radius: 14px; }
.karte-liste > li { position: relative; display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.karte-liste > li:last-child { border-bottom: none; }
.karte-liste .ruecken-zeile { margin-top: 0; height: 56px; }
.karte-liste .z-titel { font-size: calc(17 * var(--px)); }
.karte-liste .standbalken { margin-top: 8px; height: 4px; }
.karte-liste .z-meta { margin-top: 4px; }
.karte-liste .leer-zeile { display: block; padding: 16px 0; color: var(--grau); font-size: calc(15 * var(--px)); }
.karte-liste .leer-zeile a { font-weight: 500; }
.frage { background: var(--samt-hauch); margin: 0 -16px; padding: 12px 16px !important; border-radius: 14px 14px 0 0; flex-wrap: wrap; }
.frage:last-child { border-radius: 14px; }
.frage-text { flex: 1 1 100%; display: flex; gap: 14px; align-items: center; min-width: 0; }
.frage-knoepfe { display: flex; gap: 10px; flex: 1 1 100%; justify-content: flex-end; }
.frage-knoepfe .pille { min-height: 36px; border-radius: 18px; padding: 0 18px; font-size: calc(14 * var(--px)); }
.ziel-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: var(--samt-hauch); color: var(--samt-tief); font-size: calc(14 * var(--px)); }
.ziel-zeile a { color: var(--samt-tief); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; flex-shrink: 0; }
.alles-leer { margin-top: 24px; text-align: center; }

/* ---------- Bibliothek ---------- */

.suchbox {
  margin-top: 12px; min-height: 40px; padding: 0 6px 0 12px; display: flex; align-items: center; gap: 8px;
  border-radius: 11px; background: var(--mulde); color: var(--grau);
}
.suchbox:focus-within { box-shadow: 0 0 0 2px var(--tinte); }
.suchbox svg { flex-shrink: 0; }
.suchbox input { flex: 1 1 auto; min-width: 0; width: 100%; min-height: 40px; border: none; background: transparent; outline: none; font-size: calc(16 * var(--px)); color: var(--tinte); -webkit-appearance: none; appearance: none; }
.suchbox input::-webkit-search-cancel-button { display: none; }
.suche-leeren { width: 36px; height: 36px; flex-shrink: 0; border: none; background: none; color: var(--grau); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Erfassen ---------- */

.erfassen-gruppe { margin-top: 18px; }
.erfassen-gruppe h2 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font-size: calc(13 * var(--px)); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--akzent); }
.erfassen-gruppe h2 span { font-size: calc(12 * var(--px)); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--grau); }
.plus-knopf {
  position: relative; z-index: 1; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: none; background: none;
  display: flex; align-items: center; justify-content: center; color: var(--akzent); align-self: center;
}
.plus-knopf > span { width: 30px; height: 30px; border-radius: 15px; border: 1.5px solid var(--akzent); display: flex; align-items: center; justify-content: center; }
.vorhanden-link { position: relative; z-index: 1; font-size: calc(13 * var(--px)); font-weight: 500; color: var(--akzent); }
.ohne-suche-knopf { display: flex; justify-content: center; margin-top: 20px; }
.ohne-suche-knopf .pille { border-color: var(--linie-stark); color: var(--tinte); font-weight: 500; }
.veranstaltung-zeile {
  margin-top: 18px; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 12px 8px 14px; border-radius: 14px;
  background: var(--samt-hauch); text-decoration: none; color: var(--tinte); border: none; width: 100%; text-align: left;
}
.veranstaltung-zeile .vz-zeichen { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--samt); color: var(--samt); display: flex; align-items: center; justify-content: center; }
.veranstaltung-zeile .vz-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; }
.veranstaltung-zeile .vz-titel { font-size: calc(16 * var(--px)); font-weight: 600; color: var(--samt-tief); }
.veranstaltung-zeile .vz-unter { font-size: calc(13.5 * var(--px)); color: var(--grau); }
.ohne-suche { margin-top: 26px; padding: 16px; border: 1px dashed var(--linie-stark); border-radius: 12px; }
.ohne-suche p { margin: 4px 0 6px; font-size: calc(14 * var(--px)); line-height: 1.5; color: var(--grau); }

/* ---------- Buch ---------- */

.buchkopf { padding-top: 14px; display: flex; gap: 18px; align-items: flex-end; }
.buchkopf-text { flex: 1 1 auto; min-width: 0; padding-bottom: 2px; }
.reihe { font-size: calc(13 * var(--px)); color: var(--grau); }
.buchtitel { margin: 4px 0 0; font-family: var(--lese); font-size: calc(32 * var(--px)); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.buchautor { margin-top: 6px; font-size: calc(16 * var(--px)); }
.mitwirkende { margin-top: 3px; font-size: calc(14 * var(--px)); color: var(--grau); }
.buch-zeilen { margin-top: 20px; }

.karte { margin-top: 18px; padding: 18px 16px 12px; background: var(--blatt); border: 1px solid var(--linie); border-radius: 14px; }
.stand-gross { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; row-gap: 2px; font-variant-numeric: lining-nums tabular-nums; }
.stand-zahl { font-family: var(--lese); font-size: calc(40 * var(--px)); line-height: 1; font-weight: 500; white-space: nowrap; }
.stand-neben { font-size: calc(15 * var(--px)); color: var(--grau); }
.stand-fuss { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 10px; font-size: calc(14 * var(--px)); color: var(--grau); }
.stand-fuss .textknopf { margin-right: -10px; font-size: calc(15 * var(--px)); font-weight: 600; }
.karte .standtext { margin: 0; font-size: calc(15 * var(--px)); }
.karte .standform { margin-top: 14px; }
.fertig-frage { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Sterne 1–10 (alle Bereiche): je 31 × 44 Berührfläche, Stern 26 px; schmaler, wenn es eng wird */
.sterne { margin-top: 10px; display: grid; grid-template-columns: repeat(10, minmax(0, 31px)); max-width: 310px; margin-left: -3px; color: var(--bernstein); }
.stern { position: relative; height: 44px; padding: 0; border: none; background: none; color: inherit; display: flex; align-items: center; justify-content: center; }
.stern svg { width: 26px; height: 26px; max-width: 100%; display: block; }
.sterne.klein { grid-template-columns: repeat(10, minmax(0, 28px)); max-width: 280px; }
.sterne.klein .stern svg { width: 21px; height: 21px; }
.bewertung-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bewertung-zeile .sterne { flex: 1 1 auto; }
.bewertung-zahl { font-family: var(--lese); font-size: calc(20 * var(--px)); font-weight: 600; color: var(--bernstein-text); font-variant-numeric: lining-nums; }

.abschnitt { margin-top: 24px; }
.abschnitt h2 { margin: 0 0 8px; font-family: var(--lese); font-size: calc(18 * var(--px)); font-weight: 600; }
.abschnitt.unten { margin-top: 34px; padding-bottom: 8px; }
.durchgaenge { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.durchgang { border-bottom: 1px solid var(--linie); }
.durchgang-knopf {
  width: 100%; min-height: 48px; padding: 10px 0; border: none; background: none; text-align: left;
  display: flex; justify-content: space-between; gap: 12px; font-size: calc(15 * var(--px));
}
.durchgang.bearbeiten { padding: 12px 0; }
.durchgang.bearbeiten label:not(.haken) { display: block; font-size: calc(13 * var(--px)); color: var(--grau); }
.knopfspalte { display: flex; flex-direction: column; align-items: flex-start; }
.knopfspalte .textknopf { padding-left: 0; padding-right: 0; }
.angaben { margin: 0; border-top: 1px solid var(--linie); }
.angaben > div { min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--linie); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; font-size: calc(15 * var(--px)); }
.angaben dt { color: var(--grau); }
.angaben dd { margin: 0; overflow-wrap: anywhere; }
.notiz { width: 100%; }
.loesch-abschnitt { margin-top: 26px; padding-bottom: 8px; }

/* Buch: einspaltig; am Mac zweispaltig (Angaben und Papierkorb rechts). */
.buch-raster { display: flex; flex-direction: column; }
.buch-haupt, .buch-seite { display: contents; }
.angaben-abschnitt { order: 1; }
.notiz-abschnitt { order: 2; }
.loesch-abschnitt { order: 3; }

.formular { margin-top: 18px; }
.zeile.treffer { padding-bottom: 10px; align-items: center; }

/* ---------- Film und Serie ---------- */

.titelkopf { padding-top: 8px; display: flex; gap: 16px; align-items: center; }
.titelkopf-text { min-width: 0; flex: 1 1 auto; }
.titel-gross { margin: 0; font-family: var(--lese); font-size: calc(28 * var(--px)); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.titel-meta { margin-top: 6px; font-size: calc(14 * var(--px)); color: var(--grau); overflow-wrap: anywhere; }
.statuszeile { padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; font-size: calc(14 * var(--px)); }
.statuszeile .textknopf { margin-left: auto; padding-right: 0; }
.hauptknopf { padding-top: 10px; }
.hauptknopf .pille { border-radius: 14px; }

.staffeln { margin-top: 20px; }
.staffel { border-top: 1px solid var(--linie); }
.staffel:last-child { border-bottom: 1px solid var(--linie); }
.staffel-kopf {
  width: 100%; min-height: 54px; padding: 8px 0; border: none; background: none; text-align: left;
  display: flex; align-items: center; gap: 12px;
}
.staffel-name { display: flex; flex-direction: column; width: 108px; flex-shrink: 0; font-size: calc(15 * var(--px)); font-weight: 600; }
.staffel-name .grau { font-size: calc(13 * var(--px)); font-weight: 400; }
.staffel.offen .staffel-name { width: auto; flex: 1 1 auto; }
.raster { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.raster.dicht { gap: 1px; }
.raster span { display: block; height: 8px; border-radius: 2px; background: var(--offen); }
.raster.dicht span { border-radius: 1px; }
.raster span.an { background: var(--petrol); }
.raster-balken { flex: 1 1 auto; height: 8px; border-radius: 2px; background: var(--offen); overflow: hidden; }
.raster-balken > div { height: 100%; background: var(--petrol); }
.staffel.zusammen .staffel-name { width: auto; min-width: 108px; }
.chevron { margin-left: auto; color: var(--grau); display: flex; transition: transform .15s; }
.staffel.offen .chevron { transform: rotate(180deg); }
.staffel-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: -4px 0 0; }
.staffel-werkzeuge .textknopf { padding: 0; font-size: calc(14 * var(--px)); }
.folgenzahl-form { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.staffel-bewertung { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; font-size: calc(13 * var(--px)); }
.folgen { list-style: none; margin: 0 0 6px; padding: 0; }
.folge { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; border-bottom: 1px solid var(--linie); }
.folge:last-child { border-bottom: none; }
.folge-knopf { min-height: 48px; padding: 4px 0; border: none; background: none; text-align: left; display: flex; align-items: center; gap: 12px; min-width: 0; }
.folge-nr { width: 26px; flex-shrink: 0; font-size: calc(13 * var(--px)); color: var(--grau); font-variant-numeric: tabular-nums; }
.folge-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.folge-name { font-size: calc(15 * var(--px)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folge-zeit { font-size: calc(12 * var(--px)); color: var(--grau); }
.folge-bew { font-weight: 600; color: var(--bernstein-text); font-size: calc(14 * var(--px)); white-space: nowrap; }
.abhaken { width: 44px; height: 44px; padding: 0; border: none; background: none; display: flex; align-items: center; justify-content: center; }
.abhaken > span {
  width: 26px; height: 26px; border-radius: 13px; border: 1.5px solid var(--petrol); color: transparent;
  display: flex; align-items: center; justify-content: center;
}
.abhaken.an > span { background: var(--petrol); color: var(--auf-farbe); }
.folge-mehr { grid-column: 1 / -1; padding: 0 0 12px 38px; }
.folge-form { margin-top: 8px; }
.folge-form .formfeld { margin-bottom: 4px; }
.sichtungen { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.sichtung { border-bottom: 1px solid var(--linie); }
.sichtung-knopf { width: 100%; min-height: 48px; padding: 8px 0; border: none; background: none; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: calc(15 * var(--px)); }
.sichtung-knopf .rechts { display: flex; align-items: center; gap: 10px; }
.sichtung.bearbeiten { padding: 12px 0; }

/* Schalter „Im Kino“ (Kino nachtragen, Sichtung bearbeiten) */
.schalter { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex-shrink: 0; font-size: calc(14 * var(--px)); color: var(--grau); }
.schalter input { position: absolute; opacity: 0; width: 51px; height: 31px; margin: 0; right: 0; cursor: pointer; }
.schalter .bahn { position: relative; width: 51px; height: 31px; border-radius: 16px; background: var(--spur); transition: background-color .15s; flex-shrink: 0; }
.schalter .bahn::after { content: ''; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform .15s; }
.schalter input:checked + .bahn { background: var(--petrol); }
.schalter input:checked + .bahn::after { transform: translateX(20px); }
.schalter input:focus-visible + .bahn { outline: 2px solid var(--petrol); outline-offset: 2px; }

/* ---------- Live ---------- */

.besuchkopf { padding-top: 14px; display: flex; gap: 18px; align-items: flex-start; }
.art-pillen { display: flex; flex-wrap: wrap; gap: 6px; }
.art-pillen button {
  position: relative; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1.5px solid var(--linie-stark); background: transparent;
  color: var(--tinte); font-size: calc(14.5 * var(--px)); font-weight: 500;
}
.art-pillen button::after { content: ''; position: absolute; inset: -4px -2px; }
.art-pillen button[aria-pressed="true"] { border-color: var(--samt); background: var(--samt-hauch); color: var(--samt-tief); font-weight: 600; }
.gruppe-feld { margin: 0; padding: 0; border: none; min-width: 0; }
.gruppe-feld > legend { padding: 0 0 8px; font-size: calc(13 * var(--px)); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grau); }
.feldgruppe { background: var(--blatt); border: 1px solid var(--linie); border-radius: 12px; }
.feldgruppe > label, .feldgruppe > .fg-zeile { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-bottom: 1px solid var(--linie); }
.feldgruppe > :last-child { border-bottom: none; }
.feldgruppe .fg-name { width: calc(88 * var(--px)); flex-shrink: 0; font-size: calc(15 * var(--px)); color: var(--grau); }
.feldgruppe input { flex: 1 1 auto; min-width: 0; min-height: 46px; border: none; background: transparent; outline: none; font-size: calc(16 * var(--px)); color: var(--tinte); -webkit-appearance: none; appearance: none; }
.feldgruppe input[type="date"], .feldgruppe input[type="time"] { flex: 1 1 0; }
.feldgruppe input[type="time"] { max-width: 110px; }
.feldgruppe:focus-within { border-color: var(--akzent); }
.live-form { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }

/* Monatsziel: zwölf Felder */
.monatsfelder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.monatsfeld { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: calc(10.5 * var(--px)); color: var(--grau); }
.monatsfeld i { display: block; width: 100%; max-width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid var(--samt); }
.monatsfeld.erreicht i { background: var(--samt); }
.monatsfeld.laufend i { border-style: dashed; }
.monatsfeld.kuenftig i { border-color: var(--linie-stark); }
.monatsfeld.verfehlt i { border-color: var(--samt); opacity: 0.55; }

/* ---------- Blätter (Sheets) ---------- */

.blatt-hintergrund { position: fixed; inset: 0; z-index: 30; background: var(--abdunkeln); }
.blatt {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31;
  max-height: calc(100dvh - 48px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px calc(var(--rand) + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(var(--rand) + env(safe-area-inset-left));
  background: var(--leinen); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}
.blatt.hell { background: var(--blatt); }
.blatt:focus { outline: none; }
.blatt-griff { width: 36px; height: 5px; margin: 0 auto; border-radius: 3px; background: var(--linie-stark); }
.blatt-kopf { margin-top: 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.blatt-kopf h2 { margin: 0; font-size: calc(17 * var(--px)); font-weight: 600; text-align: center; }
.blatt-kopf .links { justify-self: start; padding-left: 0; font-size: calc(16 * var(--px)); font-weight: 400; color: var(--tinte); }
.blatt-kopf .rechts { justify-self: end; padding-right: 0; font-size: calc(16 * var(--px)); font-weight: 600; }
.blatt-unter { margin: 2px 0 0; text-align: center; font-size: calc(13 * var(--px)); color: var(--grau); }
.blatt-optionen { margin-top: 8px; border-top: 1px solid var(--linie); }
.blatt-option {
  width: 100%; min-height: 60px; padding: 8px 0; border: none; border-bottom: 1px solid var(--linie); background: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; color: var(--tinte);
}
.blatt-option .bo-text { display: flex; flex-direction: column; gap: 2px; }
.blatt-option .bo-name { font-size: calc(16 * var(--px)); }
.blatt-option .bo-hilfe { font-size: calc(13 * var(--px)); color: var(--grau); }
.blatt-option[aria-pressed="true"] .bo-name { color: var(--akzent); font-weight: 600; }
.blatt-option svg { color: var(--akzent); flex-shrink: 0; }
.blatt .standform { margin-top: 18px; }
.blatt .standzeile { flex-wrap: nowrap; }
.blatt .standfeld {
  flex: 1 1 auto; width: auto; min-width: 0; min-height: 64px; border-width: 2px; border-color: var(--indigo);
  font-family: var(--lese); font-size: calc(32 * var(--px)); font-weight: 500;
}
.blatt .einheit button { min-height: 52px; }
.blatt-regal { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; min-height: 40px; border-bottom: 2px solid var(--linie-stark); }
.blatt-regal .ruecken { width: calc(var(--b) * 1.6px); height: calc(var(--h) * 1.6px); }
.blatt .liste .zeile { padding: 11px 0; }
.blatt .liste .z-titel { font-size: calc(17 * var(--px)); }
.blatt .liste .ruecken-zeile { height: 44px; margin-top: 2px; }
.blatt-inhalt { margin-top: 14px; display: flex; flex-direction: column; gap: 18px; }
.blatt-titelzeile { display: flex; align-items: center; gap: 14px; }
.blatt-titelzeile .tz-text { display: flex; flex-direction: column; min-width: 0; }
.blatt-titelzeile .tz-name { font-family: var(--lese); font-size: calc(18 * var(--px)); font-weight: 500; }
.stepper { display: flex; align-items: center; justify-content: space-between; font-size: calc(15 * var(--px)); }
.stepper > div { display: flex; align-items: center; gap: 6px; }
.zahlfeld { width: 64px; text-align: center; font-weight: 600; padding: 0 6px; }
.wann { margin: 0; padding: 0; border: none; min-width: 0; }
.wann legend { padding: 0 0 4px; font-size: calc(13 * var(--px)); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grau); }
.radio { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--linie); font-size: calc(16 * var(--px)); }
.radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--akzent); flex-shrink: 0; }
.radio span:nth-of-type(1) { flex: 1 1 auto; }
.radio .grau { font-size: calc(13 * var(--px)); }
.einger { padding: 8px 0 0 32px; grid-template-columns: minmax(0, 1fr) 110px; }

/* Lesestand-Eingabe (Blatt und am Mac in der Karte) */
.standzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.standfeld { flex: 0 0 104px; width: 104px; font-variant-numeric: tabular-nums; }
.einheit {
  display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex-shrink: 0;
  background: var(--mulde); border-radius: 12px; padding: 3px;
}
.einheit button {
  min-height: 38px; min-width: 54px; border: none; border-radius: 9px; background: transparent; color: var(--grau-mulde);
  font-size: calc(14 * var(--px)); font-weight: 500; padding: 0 10px;
}
.einheit button[aria-pressed="true"] { background: var(--blatt); color: var(--indigo); font-weight: 600; box-shadow: 0 1px 2px rgba(29, 43, 42, 0.14); }
.standform .fehlertext { margin-top: 6px; }

/* ---------- Jahr ---------- */

.jahrkopf { padding-top: 34px; display: flex; align-items: center; justify-content: space-between; margin: 0 -8px; }
.jahr { margin: 0; font-family: var(--lese); font-size: calc(52 * var(--px)); line-height: 1; font-weight: 400; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.ziel { margin-top: 18px; }
.zielzeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.zielzeile .textknopf { padding-right: 0; }
.zahl-gross { font-family: var(--lese); font-size: calc(30 * var(--px)); line-height: 1.15; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; color: var(--akzent); }
.zielzeile .zahl-gross { font-weight: 600; font-size: calc(24 * var(--px)); color: var(--tinte); }
.balken { margin-top: 6px; height: 8px; border-radius: 4px; background: var(--spur); overflow: hidden; }
.balken > div { height: 8px; border-radius: 4px; background: var(--akzent); }
.kennzahlen {
  margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--blatt); border-radius: 14px; padding: 4px 16px;
}
.kennzahlen > div { padding: 12px 8px 12px 16px; border-left: 1px solid var(--linie); min-width: 0; }
.kennzahlen > div:nth-child(odd) { padding-left: 0; border-left: none; }
.kennzahlen > div:nth-child(n+3) { border-top: 1px solid var(--linie); }
@media (min-width: 600px) {
  .kennzahlen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kennzahlen > div:nth-child(odd) { padding-left: 16px; border-left: 1px solid var(--linie); }
  .kennzahlen > div:first-child { padding-left: 0; border-left: none; }
  .kennzahlen > div:nth-child(n+3) { border-top: none; }
}
.kennzahlen .kz-name { font-size: calc(14 * var(--px)); }
.kennzahlen .grau { font-size: calc(12 * var(--px)); }
/* Schmale Geräte und große Systemschrift: Zahlen wachsen nicht über ihre Spalte hinaus. */
.kennzahlen .zahl-gross { font-size: min(calc(30 * var(--px)), 7.5vw); }
.kz-vergleich { margin-top: 4px; font-size: calc(12 * var(--px)); line-height: 1.35; color: var(--grau); }
.schnitt-zeile { margin-top: 10px; font-size: calc(14 * var(--px)); color: var(--grau); }
.schnitt-zeile b { color: var(--bernstein-text); }
.ziel-link { padding-left: 0; }
.regal-abschnitt { margin-top: 22px; }
.regal-abschnitt h2, .hoehepunkte h2, .streifen-abschnitt h2, .abschnitt-titel { margin: 0; font-family: var(--lese); font-size: calc(20 * var(--px)); font-weight: 600; }
.regal-abschnitt .hilfe { margin-top: 4px; }
.regal { margin-top: 8px; }
.brett { position: relative; display: flex; align-items: flex-end; gap: 10px; min-height: 44px; border-bottom: 2px solid var(--linie-stark); padding-top: 4px; }
.monat { width: 2.5em; flex-shrink: 0; font-size: calc(12 * var(--px)); color: var(--grau); padding-bottom: 3px; }
.ruecken-reihe { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; row-gap: 4px; }
.ruecken {
  display: block; border-radius: 1px 1px 0 0; background: var(--rf, var(--r4));
  width: calc(var(--b) * 1px); height: calc(var(--h) * 1.45px);
}
.ruecken.ohne-seiten { opacity: 0.55; }
.brett-zahl { width: 2em; flex-shrink: 0; text-align: right; font-size: calc(12 * var(--px)); padding-bottom: 3px; color: var(--grau); font-variant-numeric: tabular-nums; }
.brett-zahl.meist { color: var(--tinte); font-weight: 600; }
.brett-knopf { position: absolute; inset: 0 0 -2px 0; z-index: 1; width: 100%; border: none; background: transparent; padding: 0; }
@media (hover: hover) and (pointer: fine) {
  .brett-knopf { right: auto; width: 3em; }
  .ruecken:hover, .ruecken:focus-visible { filter: brightness(1.25); }
}
.hoehepunkte { margin-top: 26px; }
.hoehepunkte .zeilen-gruppe { margin-top: 8px; }
.jahresliste { margin-top: 0; }
.jahresliste summary {
  min-height: 48px; display: flex; align-items: center; justify-content: space-between; list-style: none;
  border-bottom: 1px solid var(--linie); color: var(--akzent); font-weight: 500; cursor: pointer; font-size: calc(15 * var(--px));
}
.jahresliste summary::-webkit-details-marker { display: none; }

/* Jahresfilmstreifen (Sehen): Kino gefüllt, zu Hause umrandet, Serien als Blöcke */
.streifen-abschnitt { margin-top: 22px; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: calc(12 * var(--px)); color: var(--grau); margin: 4px 0 6px; }
.legende span { display: flex; align-items: center; gap: 6px; }
.legende i { display: inline-block; }
.legende .bild, .monat-inhalt .bild { width: 6px; height: 14px; border-radius: 1px; border: 1.5px solid var(--petrol); background: transparent; }
.legende .bild.kino, .monat-inhalt .bild.kino { background: var(--petrol); }
.legende .block { width: 22px; height: 8px; border-radius: 2px; background: var(--streifen-1); }
.monat-zeile { display: flex; align-items: center; gap: 10px; min-height: 28px; border-bottom: 1px solid var(--linie); padding: 3px 0; }
.monat-inhalt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; row-gap: 4px; min-width: 0; }
.monat-inhalt .bild { display: block; position: relative; }
.monat-inhalt .block { display: block; height: 8px; border-radius: 2px; background: var(--streifen-1); position: relative; }
.monat-inhalt .block.b2 { background: var(--streifen-2); }
.monat-inhalt a::after { content: ''; position: absolute; inset: -9px -1px; }
@media (hover: hover) { .monat-inhalt a:hover { filter: brightness(1.2); } }

/* ---------- Mehr ---------- */

.einstellungs-gruppe { margin-top: 24px; }
.einstellungs-gruppe h2 { margin: 0 0 6px; font-size: calc(13 * var(--px)); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grau); }
.einstellungs-gruppe h2.b-lesen, .einstellungs-gruppe h2.b-sehen, .einstellungs-gruppe h2.b-live { color: var(--akzent); }
.einstellungs-gruppe > p { margin: 0 0 8px; font-size: calc(14 * var(--px)); line-height: 1.5; color: var(--grau); }
.einstellungs-fuss { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: calc(13 * var(--px)); color: var(--grau); }
.einstellungs-fuss a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: calc(14 * var(--px)); }
.bericht { margin: 10px 0; padding-left: 20px; }
.bericht-details { margin-top: 6px; font-size: calc(14 * var(--px)); }
.bericht-details summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; color: var(--akzent); }
.bericht-details ul { margin: 4px 0 8px; padding-left: 20px; color: var(--grau); max-height: 320px; overflow: auto; }
.gegenprobe { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: calc(13 * var(--px)); font-variant-numeric: tabular-nums; }
.gegenprobe th, .gegenprobe td { padding: 6px 4px; border-bottom: 1px solid var(--linie); text-align: right; }
.gegenprobe th:first-child, .gegenprobe td:first-child { text-align: left; }
.gegenprobe th { color: var(--grau); font-weight: 500; }
.tabellen-rahmen { overflow-x: auto; }

/* ---------- Meldung ---------- */

.meldung {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 40;
  bottom: calc(84px + env(safe-area-inset-bottom));
  max-width: calc(100% - 32px); width: max-content;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; border-radius: 14px; background: var(--tinte); color: var(--leinen); font-size: calc(14 * var(--px));
  opacity: 0; transition: opacity .2s, transform .2s;
}
.meldung.sichtbar { opacity: 1; transform: translateX(-50%) translateY(0); }
.meldung-knopf { border: none; background: none; color: var(--leinen); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; min-height: 44px; padding: 0 6px; margin: -6px -4px; }
@media (prefers-reduced-motion: reduce) { .meldung, .aufklappen svg, .chevron, .schalter .bahn, .schalter .bahn::after { transition: none; } }

/* ---------- Einfache Seiten: Anmeldung, Impressum ---------- */

body.einfach { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.anmeldung { max-width: 380px; min-height: 100dvh; margin: 0 auto; padding: 14vh 32px 24px; display: flex; flex-direction: column; align-items: center; }
.anmeldung .zeichen { display: block; width: 132px; height: 132px; }
.anmeldung .marke { margin: 22px 0 0; }
.anmeldung .unterzeile { margin: 6px 0 0; font-size: calc(15 * var(--px)); color: var(--grau); }
.anmeldeform { margin-top: 40px; width: 100%; }
.anmeldeform .pille { margin-top: 16px; }
.anmeldung .fuss { margin-top: auto; padding-top: 32px; text-align: center; }
.anmeldung .fuss a { display: inline-flex; align-items: center; min-height: 44px; font-size: calc(14 * var(--px)); text-decoration: none; color: var(--grau); }
.textseite { max-width: 680px; margin: 0 auto; padding: 32px var(--rand) 48px; line-height: 1.6; }
.textseite h1 { font-family: var(--lese); font-size: calc(28 * var(--px)); margin: 28px 0 6px; }
.textseite h2 { font-family: var(--lese); font-size: calc(18 * var(--px)); margin: 22px 0 4px; }
.textseite p { margin: 0 0 10px; }

/* ---------- Breit: Mac und iPad quer ---------- */

@media (min-width: 900px) {
  .nur-schmal { display: none !important; }
  .nur-breit { display: revert !important; }
  .app { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
  .leiste { display: none; }
  .seitenleiste {
    display: flex; flex-direction: column; gap: 3px;
    position: sticky; top: 0; height: 100dvh; overflow-y: auto;
    padding: calc(22px + env(safe-area-inset-top)) 14px 24px calc(14px + env(safe-area-inset-left));
    background: var(--blatt); border-right: 1px solid var(--linie);
  }
  .sl-marke { display: flex; align-items: center; gap: 10px; padding: 0 10px 14px; font-family: var(--lese); font-size: calc(20 * var(--px)); font-weight: 500; color: var(--tinte); text-decoration: none; }
  .sl-marke svg { width: 30px; height: 30px; flex-shrink: 0; }
  .sl-erfassen { margin: 0 2px 12px; min-height: 38px; border-radius: 19px; background: var(--tinte); color: var(--auf-tinte); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: calc(15 * var(--px)); font-weight: 600; text-decoration: none; border: none; }
  .sl-erfassen:hover { color: var(--auf-tinte); background: var(--tinte-tief); }
  .sl-gruppe { margin: 14px 10px 2px; font-size: calc(12 * var(--px)); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--akzent); }
  .sl-trenner { margin-top: 14px; border-top: 1px solid var(--linie); padding-top: 10px; display: flex; flex-direction: column; gap: 3px; }
  .seiten-link {
    display: flex; justify-content: space-between; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px;
    color: var(--tinte); text-decoration: none; font-size: calc(15 * var(--px));
  }
  .seiten-link .anzahl { color: var(--grau); font-variant-numeric: tabular-nums; font-size: calc(13 * var(--px)); }
  .seiten-link:hover { background: var(--mulde); color: var(--tinte); }
  .seiten-link[aria-current="page"] { background: var(--mulde); font-weight: 600; }
  #inhalt { padding: 0 40px 64px; max-width: 1060px; margin: 0; }
  .kopf, .zurueck-kopf { padding-top: 30px; }
  .form-kopf { margin: 0 -40px; padding: 24px 40px 10px; }
  .jahrkopf { padding-top: 30px; justify-content: flex-start; gap: 18px; }
  .meldung { bottom: 28px; }
  .jetzt-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; align-items: start; }

  /* Gelesen als Tabelle */
  .liste-gelesen .tabellenkopf, .liste-gelesen .zeile.tabelle .zeile-text {
    display: grid !important; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 64px 70px 196px; column-gap: 16px; align-items: baseline;
  }
  .liste-gelesen .tabellenkopf { padding: 8px 0 10px 25px; border-bottom: 1px solid var(--linie-stark); font-size: calc(13 * var(--px)); color: var(--grau); }
  .liste-gelesen .zeile.tabelle { padding: 11px 0; gap: 14px; align-items: center; contain-intrinsic-size: auto 48px; }
  .liste-gelesen .ruecken-zeile { width: 6px; height: 26px; margin-top: 0; background-image: none; }
  .liste-gelesen .zeile.tabelle .z-titel { grid-column: auto; font-size: calc(17 * var(--px)); }
  .liste-gelesen .zeile.tabelle .z-autor { grid-column: auto; margin: 0; font-size: calc(15 * var(--px)); }
  .liste-gelesen .zeile.tabelle .z-seiten,
  .liste-gelesen .zeile.tabelle .z-sterne,
  .liste-gelesen .zeile.tabelle .z-datum { grid-row: auto; grid-column: auto; margin: 0; font-size: calc(15 * var(--px)); color: var(--tinte); }
  .liste-gelesen .zeile.tabelle .z-sterne { color: var(--bernstein-text); }
  .liste-gelesen .zeile.tabelle .z-seiten::after { content: none; }
  .liste-gelesen .zeile.tabelle .z-seiten:not(.zahl) { color: var(--grau); }
  #inhalt.schmal { max-width: 820px; }

  /* Buch zweispaltig */
  .buch-raster { display: grid; grid-template-columns: minmax(0, 1fr) 260px; column-gap: 40px; align-items: start; }
  .buch-haupt, .buch-seite { display: block; }
  .buch-seite { padding-top: 18px; }
  .buch-seite .abschnitt:first-child { margin-top: 0; }
  .buch-seite .angaben > div { display: flex; flex-direction: column; gap: 2px; }
  .buch-seite .angaben dt { font-size: calc(13 * var(--px)); }
  .buchtitel { font-size: calc(42 * var(--px)); }
  .ruecken-gross::before { width: 26px; height: 136px; }
  .karte { padding: 20px; }
  .stand-zahl { font-size: calc(44 * var(--px)); }

  /* Jahr: größeres Regal, Höhepunkte rechts */
  .statistik-raster { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 40px; align-items: start; }
  .statistik-raster .hoehepunkte { margin-top: 22px; }
  .kennzahlen .zahl-gross { font-size: calc(34 * var(--px)); }
  .brett { min-height: 56px; }
  .ruecken { width: calc(var(--b) * 1.5px); height: calc(var(--h) * 1.8px); }

  /* Blätter am Mac als Fenster in der Mitte */
  .blatt { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 48px)); max-height: calc(100dvh - 96px); border-radius: 16px; padding: 12px 24px 24px; }
  .blatt-griff { display: none; }
}
@media (min-width: 900px) and (hover: hover) {
  .liste .zeile:hover .z-titel { color: var(--akzent); }
}
.anmeldung .zeichen svg { display: block; width: 100%; height: 100%; }
