/* lesen – Stil. Leinen, Tinte, Indigo. Mobil zuerst, ab 900 px mit Seitenleiste. */

@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;
  --grau: #56625F;
  --linie: #D3D8D1;
  --linie-stark: #B9C1BA;
  --indigo: #34409A;
  --indigo-dunkel: #232D78;
  --indigo-hell: #DDE1F4;
  --auf-indigo: #FFFFFF;
  --bernstein: #A86B12;
  --gefahr: #A33A2B;
  --rand: 20px;
  --schrift: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --lese: 'Literata', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --leinen: #12171A;
    --blatt: #1A2125;
    --tinte: #E6EBE8;
    --grau: #9AA6A2;
    --linie: #2C3539;
    --linie-stark: #3C474C;
    --indigo: #8E9AF0;
    --indigo-dunkel: #B4BCF6;
    --indigo-hell: #262E5A;
    --auf-indigo: #12171A;
    --bernstein: #E2A64A;
    --gefahr: #F08C7A;
    color-scheme: dark;
  }
}

*, *::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: 16px;
  line-height: 1.45;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--indigo); }
@media (hover: hover) { a:hover { color: var(--indigo-dunkel); } }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--indigo); 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: 14px; }

/* ---------- 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(4, minmax(0, 1fr));
  background: var(--blatt);
  border-top: 1px solid var(--linie);
  padding: 6px calc(8px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
}
.leiste a {
  min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--grau); text-decoration: none; font-size: 12px; font-weight: 500;
}
.leiste a[aria-current="page"] { color: var(--indigo); 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(--indigo-hell); color: var(--tinte); font-size: 13px; text-align: center;
}
.abgleich-hinweis button { border: none; background: none; color: var(--indigo); font-weight: 600; min-height: 32px; padding: 0 6px; }

/* ---------- 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: 28px; font-weight: 600; letter-spacing: -0.01em; }
.marke.gross { font-size: 44px; }
.seitentitel { margin: 0; font-family: var(--lese); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.kopf + .seitentitel { margin-top: 10px; }
.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(--indigo); }
.kopf a.rund { color: var(--tinte); margin-right: -10px; }
.rund.aus { color: var(--linie-stark); }
.zurueck-kopf { padding-top: 40px; margin: 0 -10px; }
.zurueck, .textknopf {
  min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px;
  border: none; background: none; color: var(--indigo); text-decoration: none; font-size: 15px; font-weight: 500;
}
.textknopf.gefahr { color: var(--gefahr); }

/* ---------- Reiter und Filter ---------- */

.reiter {
  margin: 14px calc(-1 * var(--rand)) 0; padding: 0 var(--rand);
  display: flex; gap: 22px; 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: 12px 0; min-height: 44px; color: var(--grau); text-decoration: none; font-size: 15px; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.reiter-link[aria-current="page"] { color: var(--tinte); font-weight: 600; border-bottom-color: var(--indigo); }
.reiter-link .anzahl { color: var(--grau); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .reiter { flex-wrap: wrap; overflow: visible; row-gap: 0; }
}
.filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.filter-zahl { font-size: 14px; 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: 16px; -webkit-appearance: none; appearance: none;
}
.feld:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 1px var(--indigo); }
.feld.gross { min-height: 48px; }
textarea.feld { padding: 10px 12px; min-height: 76px; resize: vertical; line-height: 1.45; }
select.feld, .auswahl {
  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;
}
.auswahl {
  min-height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--linie); border-radius: 10px;
  background-color: var(--blatt); color: var(--tinte); font-size: 15px; -webkit-appearance: none; appearance: none;
}
input[type="date"].feld { padding: 0 10px; }
.formfeld { display: block; margin: 0 0 14px; }
.formfeld > span { display: block; font-size: 14px; color: var(--grau); margin-bottom: 6px; }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.zeile-feld { display: flex; gap: 8px; }
.zeile-feld .feld { flex: 1 1 auto; min-width: 0; }
.haken { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.haken input { width: 22px; height: 22px; accent-color: var(--indigo); }

.pille {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 22px;
  border: 1px solid var(--indigo); background: transparent; color: var(--indigo);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.pille.voll { background: var(--indigo); color: var(--auf-indigo); }
@media (hover: hover) { .pille.voll:hover { color: var(--auf-indigo); background: var(--indigo-dunkel); border-color: var(--indigo-dunkel); } }
.pille.klein { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 18px; }
.pille.breit { width: 100%; }
.pille.gefahr { border-color: var(--gefahr); color: var(--gefahr); }
.pille:disabled { opacity: 0.45; cursor: default; }
.pille.klein::after { content: ''; position: absolute; inset: -4px -2px; }
.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; }
.dateiwahl { position: relative; overflow: hidden; }

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

.liste { list-style: none; margin: 4px 0 0; padding: 0; }
.zeile {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--linie);
  content-visibility: auto; contain-intrinsic-size: auto 88px;
}
.zeile-text { flex: 1 1 auto; min-width: 0; }
.z-titel {
  display: block; font-family: var(--lese); font-size: 19px; 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(--indigo); }
}
.zeile .pille { position: relative; z-index: 1; flex-shrink: 0; margin-top: 2px; }
.z-untertitel { font-size: 14px; color: var(--grau); margin-top: 2px; }
.z-autor { display: block; margin-top: 3px; font-size: 14px; color: var(--grau); }
.z-meta { margin-top: 8px; display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; font-size: 13px; color: var(--grau); }

/* 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: 8px; font-size: 13px; color: var(--grau); }
.zeile.tabelle .z-sterne { grid-row: 3; grid-column: 2; margin-top: 7px; font-size: 13px; color: var(--bernstein); letter-spacing: 1px; }
.zeile.tabelle .z-seiten { grid-row: 3; grid-column: 3; margin-top: 8px; font-size: 13px; color: var(--grau); }
.zeile.tabelle .z-seiten.zahl::after { content: ' S.'; }
.zeile.tabelle .z-seiten.ohne { display: none; }
.tabellenkopf { list-style: none; }

.leer { color: var(--grau); padding: 28px 0 8px; margin: 0; }
.leer p { margin: 0 0 14px; }
.fussnote { margin: 22px 0 0; font-size: 13px; color: var(--grau); line-height: 1.5; }
.hilfe { margin: 8px 0 0; font-size: 13px; 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: 14px; }
.fehlertext { margin: 10px 0 0; color: var(--gefahr); font-size: 14px; }
.hinweistext { margin: 10px 0 0; color: var(--grau); font-size: 14px; }
.trefferzahl { margin: 22px 0 0; font-size: 14px; font-weight: 500; color: var(--grau); }

.suchfeld { margin-top: 16px; }

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

.buchkopf { padding-top: 14px; }
.reihe { font-size: 13px; color: var(--grau); }
.buchtitel { margin: 6px 0 0; font-family: var(--lese); font-size: 32px; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.buchautor { margin-top: 8px; font-size: 16px; }
.mitwirkende { margin-top: 4px; font-size: 14px; color: var(--grau); }

.segment {
  margin-top: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--blatt); border: 1px solid var(--linie); border-radius: 12px; padding: 3px;
}
.segment button {
  min-height: 44px; border: none; border-radius: 9px; background: transparent; color: var(--grau);
  font-size: 13px; font-weight: 500; padding: 0 2px;
}
.segment button[aria-pressed="true"] { background: var(--indigo); color: var(--auf-indigo); font-weight: 600; }

.bewertung { padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sterne { display: flex; gap: 2px; color: var(--bernstein); margin-left: -7px; }
.stern { position: relative; width: 44px; height: 44px; padding: 7px; border: none; background: none; color: inherit; }
.stern svg { display: block; }
.stern-voll { position: absolute; left: 7px; top: 7px; height: 30px; overflow: hidden; pointer-events: none; }
.sterne-text { font-size: 14px; color: var(--grau); white-space: nowrap; }

.abschnitt { margin-top: 26px; }
.abschnitt h2 { margin: 0 0 8px; font-family: var(--lese); font-size: 18px; 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: 15px;
}
.durchgang.bearbeiten { padding: 12px 0; }
.durchgang.bearbeiten label:not(.haken) { display: block; font-size: 13px; color: var(--grau); }
.angaben { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); row-gap: 10px; column-gap: 8px; font-size: 15px; }
.angaben dt { color: var(--grau); }
.angaben dd { margin: 0; overflow-wrap: anywhere; }
.notiz { width: 100%; }

.formular { margin-top: 18px; }
.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: 14px; line-height: 1.5; color: var(--grau); }
.ohne-suche .textknopf { padding: 0; font-weight: 600; }
.nachschlagen { margin-top: 20px; }

/* ---------- Statistik ---------- */

.jahrkopf { padding-top: 34px; display: flex; align-items: center; justify-content: space-between; margin: 0 -12px; }
.jahr { margin: 0; font-family: var(--lese); font-size: 52px; line-height: 1; font-weight: 400; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.jahr.klein { font-size: 30px; }
.ziel { margin-top: 18px; }
.zielzeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.zielzeile .textknopf { min-height: 32px; padding: 0; }
.zahl-gross { font-family: var(--lese); font-size: 24px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.zielzeile .zahl-gross { font-weight: 600; font-size: 22px; }
.balken { margin-top: 10px; height: 8px; border-radius: 4px; background: var(--linie); overflow: hidden; }
.balken > div { height: 8px; border-radius: 4px; background: var(--indigo); }
.kennzahlen {
  margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
}
.kennzahlen > div { padding: 12px 0 12px 14px; border-left: 1px solid var(--linie); }
.kennzahlen > div:first-child { padding-left: 0; border-left: none; }
.kennzahlen .grau { font-size: 13px; }
.regal-abschnitt { margin-top: 24px; }
.regal-abschnitt h2 { margin: 0 0 4px; font-family: var(--lese); font-size: 18px; font-weight: 600; }
.regal { margin-top: 10px; }
.brett { display: flex; align-items: flex-end; gap: 10px; min-height: 27px; border-bottom: 2px solid var(--linie-stark); padding-top: 4px; }
.monat { width: 30px; flex-shrink: 0; font-size: 12px; color: var(--grau); padding-bottom: 3px; }
.ruecken-reihe { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; row-gap: 4px; }
.ruecken { display: block; border-radius: 1px 1px 0 0; }
.ruecken.ohne-seiten { opacity: 0.55; }
.ruecken:hover, .ruecken:focus-visible { filter: brightness(1.25); }
.jahresliste { margin-top: 18px; }
.jahresliste summary { min-height: 44px; display: flex; align-items: center; color: var(--indigo); font-weight: 500; cursor: pointer; }

/* ---------- Einstellungen ---------- */

.bericht { margin: 10px 0; padding-left: 20px; }
.bericht-details { margin-top: 6px; font-size: 14px; }
.bericht-details summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; color: var(--indigo); }
.bericht-details ul { margin: 4px 0 8px; padding-left: 20px; color: var(--grau); max-height: 320px; overflow: auto; }
.zeilenlink {
  display: flex; justify-content: space-between; align-items: center; min-height: 48px;
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); color: var(--tinte); text-decoration: none;
}

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

.meldung {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 20;
  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: 14px;
  opacity: 0; transition: opacity .2s, transform .2s;
}
.meldung.sichtbar { opacity: 1; transform: translateX(-50%) translateY(0); }
.meldung-knopf { border: none; background: none; color: var(--indigo-hell); font-weight: 600; min-height: 36px; padding: 0 4px; }
@media (prefers-color-scheme: dark) { .meldung-knopf { color: var(--indigo); } }

/* ---------- 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; margin: 0 auto; padding: 18vh var(--rand) 40px; }
.anmeldung .marke { margin-bottom: 28px; }
.anmeldeform .pille { margin-top: 8px; }
.textseite { max-width: 680px; margin: 0 auto; padding: 32px var(--rand) 48px; line-height: 1.6; }
.textseite h1 { font-family: var(--lese); font-size: 28px; margin: 28px 0 6px; }
.textseite h2 { font-family: var(--lese); font-size: 18px; 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: 26px;
    position: sticky; top: 0; height: 100dvh; overflow-y: auto;
    padding: calc(32px + env(safe-area-inset-top)) 22px 24px calc(22px + env(safe-area-inset-left));
    background: var(--blatt); border-right: 1px solid var(--linie);
  }
  .seitenleiste .marke { font-size: 30px; }
  .seiten-nav { display: flex; flex-direction: column; gap: 2px; }
  .seiten-nav.weitere { border-top: 1px solid var(--linie); padding-top: 16px; }
  .seiten-link {
    display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px;
    color: var(--tinte); text-decoration: none; font-size: 15px;
  }
  .seiten-link .anzahl { color: var(--grau); font-variant-numeric: tabular-nums; }
  .seiten-link:hover { background: var(--leinen); color: var(--tinte); }
  .seiten-link[aria-current="page"] { background: var(--indigo-hell); color: var(--indigo-dunkel); font-weight: 600; }
  #inhalt { padding: 0 40px 64px; max-width: 1060px; margin: 0; }
  .kopf, .zurueck-kopf { padding-top: 30px; }
  .kopf-breit { display: flex !important; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 32px 0 12px; }
  .kopf-breit h1 { margin: 0; font-family: var(--lese); font-size: 34px; font-weight: 600; letter-spacing: -0.01em; }
  .werkzeuge { display: flex; gap: 10px; align-items: center; }
  .werkzeuge .feld { width: 260px; min-height: 40px; border-radius: 10px; font-size: 15px; }
  .jahrkopf { padding-top: 30px; justify-content: flex-start; gap: 18px; }
  .meldung { bottom: 28px; }

  .liste-gelesen .tabellenkopf, .liste-gelesen .zeile.tabelle .zeile-text {
    display: grid !important; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 90px 110px 110px; column-gap: 16px; align-items: baseline;
  }
  .liste-gelesen .tabellenkopf { padding: 8px 0 10px; border-bottom: 1px solid var(--linie-stark); font-size: 13px; color: var(--grau); }
  .liste-gelesen .zeile.tabelle { padding: 12px 0; contain-intrinsic-size: auto 48px; }
  .liste-gelesen .zeile.tabelle .z-titel { grid-column: auto; font-size: 17px; }
  .liste-gelesen .zeile.tabelle .z-autor { grid-column: auto; margin: 0; font-size: 15px; }
  .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: 15px; color: var(--tinte); }
  .liste-gelesen .zeile.tabelle .z-sterne { color: var(--bernstein); }
  .liste-gelesen .zeile.tabelle .z-seiten::after { content: none; }
  .liste-gelesen .zeile.tabelle .z-seiten.ohne { display: block; color: var(--grau); }
  #inhalt:not(.ansicht-liste):not(.ansicht-suche) { max-width: 820px; }
}
@media (min-width: 900px) and (hover: hover) {
  .liste .zeile:hover .z-titel { color: var(--indigo); }
}

.abschnitt > .textknopf.dateiwahl { padding-left: 0; padding-right: 0; }
