/* Schriften lokal eingebunden (SIL Open Font License): Playwrite GB S, Quicksand */
@font-face { font-family: "Playwrite GB S"; font-weight: 300; font-style: normal; font-display: swap; src: url("/static/fonts/playwrite-gb-s-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Playwrite GB S"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/playwrite-gb-s-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/quicksand-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/quicksand-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/quicksand-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/fonts/quicksand-latin-700-normal.woff2") format("woff2"); }

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/static/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

/* Lesenest – Pastell-Lavendel, handgeschrieben + weich */
:root {
  /* Ton-Look: weiche, aufgeblasene Flächen in Flieder und Creme */
  --blush: #f6eff6;
  --paper: #fdfaff;
  --card: #fdfaff;
  --surface: #fdfaff;
  --surface-2: #f3edfa;
  --line: #e6dcf3;
  --lav-50: #f3edfa;
  --lav-100: #ece5fb;
  --lav-200: #dccff6;
  --lav-300: #b79be3;
  --lav-400: #9a80ec;
  --lav-500: #7b5bd8;
  --lav-600: #6540c4;
  --ink: #3a2f55;
  --ink-soft: #6f6390;
  --pink: #f4b6c9;
  --peach: #f8e3d3;
  --sage: #9bbb8f;
  --sky: #bccdf2;
  --gold: #f2cf72;
  --shadow: 5px 7px 16px rgba(122, 96, 180, .15), -4px -4px 11px rgba(255, 255, 255, .95);
  --sh-raise: 10px 14px 30px rgba(122, 96, 180, .17), -8px -8px 22px rgba(255, 255, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .9);
  --sh-small: 5px 7px 16px rgba(122, 96, 180, .15), -4px -4px 11px rgba(255, 255, 255, .95);
  --sh-inset: inset 3px 4px 9px rgba(122, 96, 180, .15), inset -3px -3px 8px rgba(255, 255, 255, .95);
  --sh-btn: 0 10px 20px rgba(116, 85, 214, .34), inset 0 2px 0 rgba(255, 255, 255, .38), inset 0 -3px 0 rgba(60, 30, 140, .2);
  --clay: linear-gradient(160deg, #ffffff 0%, #fdfaff 55%, #f8f2fc 100%);
  --clay-sm: linear-gradient(160deg, #ffffff, #f3edfa);
  --violet-deep: #6540c4;
  --r-lg: 30px;
  --r-md: 20px;
  --r-sm: 16px;
  --script: "Playwrite GB S", "Bradley Hand", "Segoe Print", cursive;
  --sans: "Quicksand", "SF Pro Rounded", "Helvetica Neue", system-ui, sans-serif;
  --num: "Quicksand", "SF Pro Rounded", system-ui, sans-serif;
  /* Diagrammfarben (Themes überschreiben sie) */
  --ch-line: #9b7bd4; --ch-fill: #c6b0ea; --ch-grid: #f0e4f4; --ch-bar: #b093e0; --ring-bg: #fff;
  --ch-ring-a: #f4b6c9; --ch-ring-b: #9b7bd4; --ch-ring-track: #f3e3ee;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 600 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  background: linear-gradient(160deg, #fbf1ec 0%, #f6eff6 42%, #ece5fb 100%) fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--lav-400); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Rahmen ---------- */
.app {
  display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start;
  max-width: 1480px; margin: 0 auto; padding: 24px; min-height: 100vh;
}
.side {
  position: sticky; top: 24px; height: calc(100vh - 48px); overflow: auto; display: flex; flex-direction: column; gap: 22px;
  padding: 24px 18px 20px; border-radius: 30px; background: var(--clay); box-shadow: var(--sh-raise);
  scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; text-decoration: none; position: relative; }
.logo { width: 48px; height: 44px; flex: none; display: grid; place-items: center; }
.logo svg { width: 100%; height: 100%; overflow: visible; }
/* Buchvogel: Farben je Design über Variablen */
:root { --lg-bird: #6b4fc8; --lg-page: #b6a1f0; --lg-edge: #f4eeff; }
.lg-bird { fill: var(--lg-bird); } .lg-page { fill: var(--lg-page); } .lg-edge { fill: var(--lg-edge); }
.brandtxt { display: flex; flex-direction: column; min-width: 0; }
.brand b { font: 400 1.5rem/1.25 var(--script); color: #5d4a7e; }
.brand small { font: 700 .78rem/1.3 var(--sans); color: var(--ink-soft); }
.nav { display: grid; gap: 6px; }
.nav a, .nav .navbtn {
  display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 16px; border-radius: 16px; width: 100%;
  text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink-soft); background: none; border: 0; cursor: pointer;
  font-family: inherit; text-align: left; transition: background .15s, color .15s;
}
@media (hover: hover) { .nav a:hover, .nav .navbtn:hover { background: rgba(236, 229, 251, .7); color: var(--violet-deep); } }
.nav a[aria-current="page"] {
  color: var(--violet-deep); font-weight: 800; background: linear-gradient(160deg, #f0eafc, #e6dcf9); box-shadow: var(--sh-small);
}
.nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-art { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 10px; }
.side-art img { width: 168px; max-width: 100%; height: auto; display: block; }
.side-note { font: 700 .85rem/1.3 var(--sans); color: var(--ink-soft); text-align: center; }

/* ---------- Hauptbereich ---------- */
.main { min-width: 0; padding: 0 0 40px; }
.top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.hello { flex: 1 1 280px; min-width: 0; position: relative; }
.hello h1 { font: 400 2rem/1.25 var(--script); color: #5d4a7e; }
.hello p { font: 600 1rem/1.4 var(--sans); color: var(--ink-soft); }
body[data-view="start"] .hello { display: none; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 50px;
  background: linear-gradient(160deg, #fff, var(--surface-2)); border: 0; border-radius: 999px; box-shadow: var(--sh-small);
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-weight: 600; }
.search input::placeholder { color: #a79cc2; }
.search:focus-within { box-shadow: var(--sh-small), 0 0 0 3px rgba(123, 91, 216, .28); }
.search svg { width: 20px; height: 20px; stroke: #9a8fb8; fill: none; stroke-width: 2; stroke-linecap: round; }
.avatar {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(160deg, var(--pink), var(--lav-300)); border: 3px solid #fff; box-shadow: var(--sh-small);
  font: 800 1.2rem/1 var(--sans); color: #fff; text-decoration: none;
 padding: 0; overflow: hidden; cursor: pointer;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar:focus-visible { outline: 3px solid rgba(123, 91, 216, .5); outline-offset: 2px; }
.avatar.big { width: 52px; height: 52px; font-size: 1.3rem; cursor: default; }
.usermenu { position: relative; flex: none; }
.menu {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; width: 270px; max-width: calc(100vw - 28px);
  padding: 10px; display: grid; gap: 2px; border-radius: 22px;
  background: linear-gradient(160deg, #fff, var(--surface-2, #f3edfa)); box-shadow: var(--sh-raise);
}
.menu[hidden] { display: none; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line, #e6dcf3); margin-bottom: 6px; }
.menu-head .who { display: grid; min-width: 0; }
.menu-head b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head small { color: var(--ink-soft); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu button, .menu a {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 14px;
  background: none; color: var(--ink); font: 700 .95rem var(--sans); text-align: left; text-decoration: none; cursor: pointer;
}
.menu svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--lav-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible { background: var(--lav-100); outline: none; }
.menu-sep { height: 1px; margin: 4px 8px; background: var(--line, #e6dcf3); }
.cropper { position: relative; width: 280px; height: 280px; max-width: 100%; margin: 6px auto 0; border-radius: 22px; overflow: hidden; background: #ece5fb; box-shadow: var(--sh-inset); cursor: grab; touch-action: none; user-select: none; }
.cropper.drag { cursor: grabbing; }
.cropper:focus-visible { outline: 3px solid rgba(123, 91, 216, .5); outline-offset: 3px; }
.cropper canvas { width: 100%; height: 100%; display: block; }
.cropmask { position: absolute; inset: 14px; border-radius: 50%; box-shadow: 0 0 0 400px rgba(58, 47, 85, .45), inset 0 0 0 3px rgba(255, 255, 255, .9); pointer-events: none; }
.hero { position: relative; overflow: hidden; padding: 0; aspect-ratio: 8 / 3; min-height: 190px; margin-bottom: 22px; border-radius: 30px; background: var(--clay); box-shadow: var(--sh-raise); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.hero-txt { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); width: 40%; display: flex; flex-direction: column; gap: 6px; }
.hero-txt h1 { font: 400 clamp(1.4rem, 2.6vw, 2.1rem)/1.25 var(--script); color: #5d4a7e; }
.hero-txt p { color: var(--ink-soft); font-weight: 600; }

/* ---------- Buttons & Formulare ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--lav-300); background: #fff; color: var(--lav-600);
  font-weight: 800; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; text-decoration: none;
}
.btn:hover { background: var(--lav-50); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--lav-500); border-color: var(--lav-500); color: #fff; box-shadow: 0 6px 14px rgba(127, 95, 188, .3); }
.btn.primary:hover { background: var(--lav-600); }
.btn.small { min-height: 32px; padding: 0 13px; font-size: .85rem; }
.btn.danger { color: #b2476b; border-color: #efbfd0; }
.btn.danger.armed { background: #c4547d; color: #fff; border-color: #c4547d; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span, .label { font-weight: 800; font-size: .82rem; color: var(--ink-soft); }
.field input, .field select, .field textarea, .inp {
  width: 100%; min-height: 40px; padding: 8px 12px; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); outline: 0; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { border-color: var(--lav-400); box-shadow: 0 0 0 3px rgba(176, 147, 224, .22); }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.seg { display: flex; background: var(--lav-50); padding: 4px; border-radius: 999px; gap: 2px; border: 1.5px solid var(--line); flex-wrap: wrap; }
.seg label { flex: 1; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .88rem; color: var(--ink-soft); white-space: nowrap; }
.seg input:checked + span { background: var(--lav-500); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--lav-400); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--lav-100);
  font-weight: 800; font-size: .82rem; color: var(--lav-600); border: 0; cursor: pointer;
}
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--lav-300)); display: inline-block; }
.chip.on { background: var(--lav-500); color: #fff; }
.chipcheck input { position: absolute; opacity: 0; }
.chipcheck input:checked + .chip { background: var(--lav-500); color: #fff; }
.chipcheck input:focus-visible + .chip { outline: 3px solid var(--lav-400); outline-offset: 1px; }
.hint { font-size: .85rem; color: var(--ink-soft); }
.hint.bad { color: #b2476b; font-weight: 700; }
.hint.good { color: #4f8a56; font-weight: 700; }

/* ---------- Karten ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px 18px;
  box-shadow: var(--shadow); position: relative; min-width: 0;
}
.card h2 { font: 400 1.32rem/1.3 var(--script); color: #5d4a7e; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card h2 .more { margin-left: auto; font: 800 .8rem var(--sans); color: var(--ink-soft); text-decoration: none; }
.card h2 .more:hover { color: var(--lav-600); }
.card h2 svg { width: 18px; height: 18px; flex: none; }
.page-title { font: 300 1.95rem/1.25 var(--script); color: #3f3055; margin: 0 0 4px; }
.page-sub { color: var(--ink-soft); margin-bottom: 18px; }
.bar { height: 10px; background: var(--lav-100); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lav-300), var(--lav-500)); min-width: 0; transition: width .5s; }
.bar.pink > i { background: linear-gradient(90deg, #f8cbd8, #ee9bb7); }
.bar.sage > i { background: linear-gradient(90deg, #cfe5c9, #96c18d); }
.bar.thin { height: 7px; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.empty { text-align: center; padding: 28px 12px; color: var(--ink-soft); }
.empty b { display: block; font: 400 1.18rem/1.3 var(--script); color: var(--lav-600); margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }

/* Fokus */
.focus { display: flex; gap: 18px; align-items: center; }
.ring { position: relative; width: 132px; flex: none; }
.ring svg { width: 100%; transform: rotate(-90deg); }
.ring .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring b { font: 500 2.05rem/1 var(--num); color: #3f3055; }
.ring small { font-weight: 700; color: var(--ink-soft); font-size: .75rem; }
.focus-side { flex: 1; min-width: 0; display: grid; gap: 10px; }
.note-line { background: var(--lav-50); border-radius: 12px; padding: 8px 12px; font: 600 .9rem/1.4 var(--sans); color: #6a5a85; }

/* Timer */
.timer { text-align: center; }
.timer .clock { font: 500 3.53rem/1 var(--num); letter-spacing: .02em; color: #3f3055; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.timer .ctl { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.timer .pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 360px; margin: 0 auto; text-align: left; }
.timer .pick select { min-height: 36px; padding: 4px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; width: 100%; }
.timer.running .clock { color: var(--lav-600); }

/* Bücherlisten */
.mini { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); width: 100%; text-align: left; background: none; border-inline: 0; border-top: 0; cursor: pointer; }
.mini:last-child { border-bottom: 0; }
.mini:hover .t { color: var(--lav-600); }
.mini .t { font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini .a { font-size: .82rem; color: var(--ink-soft); }
.cover { position: relative; aspect-ratio: 2/3; border-radius: 2px; overflow: hidden; box-shadow: 3px 4px 10px rgba(110, 80, 160, .25); background: var(--lav-200); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.ph { display: grid; place-items: center; padding: 8%; text-align: center; color: #fff; font: 700 .78rem/1.15 var(--sans); }
.cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: rgba(255, 255, 255, .35); z-index: 1; }
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 15px; height: 15px; fill: #eadff3; stroke: none; }
.stars svg.on { fill: var(--gold); }
.stars.big svg { width: 28px; height: 28px; }
.starpick { display: inline-flex; gap: 2px; }
.starpick button { background: none; border: 0; padding: 2px; cursor: pointer; }

/* Zitat-Polaroid */
.polaroid { background: #fff; padding: 12px 12px 16px; border-radius: 6px; box-shadow: 0 8px 20px rgba(110, 80, 160, .2); transform: rotate(-1.4deg); position: relative; }
.polaroid .pic { background: linear-gradient(160deg, #c9b0ec, #f4b6c9 70%, #f9d9c1); border-radius: 3px; padding: 26px 20px 22px; text-align: center; color: #fff; min-height: 160px; display: grid; align-content: center; gap: 8px; }
.polaroid q { quotes: "„" "“"; font: 700 1.2rem/1.3 var(--sans); text-shadow: 0 1px 6px rgba(90, 50, 140, .3); }
.polaroid cite { font-style: normal; font-weight: 700; font-size: .82rem; opacity: .95; }
.tape { position: absolute; width: 90px; height: 24px; background: rgba(196, 176, 232, .65); top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); }

/* Bücherraster */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .seg { flex: 1 1 auto; max-width: 560px; }
.toolbar .sel { min-height: 40px; padding: 6px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; }
.books { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bk { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.bk .cover { transition: transform .18s; }
.bk:hover .cover { transform: translateY(-4px) rotate(-1deg); }
.bk .t { font-weight: 800; line-height: 1.2; }
.bk .a { font-size: .82rem; color: var(--ink-soft); margin-top: -4px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; padding: 1px 9px; border-radius: 99px; background: var(--lav-100); color: var(--lav-600); }
.tag.wunsch { background: #fde4ec; color: #b2476b; }
.tag.lese { background: #e5f1e1; color: #4f8a56; }

/* Zitate */
.quotes { columns: 2 320px; column-gap: 20px; }
.qcard { break-inside: avoid; margin: 0 0 20px; background: #fffdf4; border: 1.5px solid #f1e6c6; border-radius: 6px; padding: 24px 20px 16px; position: relative; box-shadow: var(--shadow); }
.qcard:nth-child(even) { background: #fcf5ff; border-color: var(--line); }
.qcard .tape { top: -10px; width: 70px; height: 20px; background: rgba(244, 182, 201, .6); }
.qcard blockquote { margin: 0 0 10px; font: 600 1.1rem/1.4 var(--sans); color: #4d3d66; }
.qcard footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-soft); }
.x { background: none; border: 0; color: var(--ink-soft); cursor: pointer; padding: 4px; border-radius: 8px; }
.x:hover { color: #b2476b; background: #fde4ec; }
.x svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Regale */
.shelves { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.shelf { text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px 0; cursor: pointer; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; gap: 6px; transition: transform .15s; }
.shelf:hover { transform: translateY(-3px); }
.shelf h3 { font: 400 1.18rem/1.3 var(--script); color: #3f3055; display: flex; gap: 8px; align-items: center; }
.shelf h3 i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.shelf .spines { display: flex; align-items: flex-end; gap: 4px; height: 172px; margin-top: 8px; border-bottom: 10px solid var(--c); margin-inline: -18px; padding-inline: 18px; }
.spines i { background: var(--sp, var(--c)); flex: 0 0 32px; border-radius: 4px 4px 0 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 8px 0; box-shadow: inset -3px 0 0 rgba(63, 48, 85, .10), inset 2px 0 0 rgba(255, 255, 255, .35); }
.spines i span { writing-mode: vertical-rl; transform: rotate(180deg); font: 800 .74rem/1.1 var(--sans); color: var(--spt, #3f3055); max-height: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spines [hidden] { display: none; }
.shelf .spines { position: relative; }
.spines .deco { position: absolute; right: 18px; bottom: 0; z-index: 2; pointer-events: none; }
.spines .deco { display: flex; align-items: flex-end; --ds: 1; }
.spines .deco::before { content: ""; position: absolute; left: 3%; right: 1%; bottom: -3px; height: 10px; z-index: 0; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(50, 30, 80, .5), rgba(50, 30, 80, 0) 72%); }
.spines .deco img { display: block; flex: none; position: relative; z-index: 1; width: calc(var(--w) * 1px * var(--k, 1) * var(--ds)); height: calc(var(--h) * 1px * var(--k, 1) * var(--ds)); transform: translateY(calc(var(--y, 0) * 1%)); margin-left: -6px; filter: drop-shadow(0 2px 2px rgba(60,40,90,.18)); }
.spines .deco img:first-child { margin-left: 0; }
@media (max-width: 520px) { .spines .deco { --ds: .85; } }
.spines .deco .pot { fill: color-mix(in srgb, var(--c) 70%, #3f3055); }
.spines .deco .pot2 { fill: color-mix(in srgb, var(--c) 85%, #3f3055); }
.shelf .spines { overflow: visible; }
.spines .spmore { flex: none; position: relative; width: 66px; height: 46px; align-self: flex-end; margin-right: 2px; }
.spines .spmore svg { display: block; }
.spines .spmore b { position: absolute; left: 0; right: 6px; top: 3px; text-align: center; font: 800 .8rem var(--sans); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.shelfname { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.shelfname:hover { text-decoration: underline; }
/* Regal-Popup */
.modal h2 .shp-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--c); margin-right: 10px; vertical-align: 1px; }
.shp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; }
.shp-tile { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 9px 6px; text-align: center; }
.shp-tile b { font-variant-numeric: lining-nums; display: block; font: 400 1.4rem/1.2 var(--script); color: #c9497a; }
.shp-tile span { font-size: .66rem; font-weight: 800; color: var(--ink-soft); letter-spacing: .03em; text-transform: uppercase; }
.shp-sort { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.shp-sort button { border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 5px 12px; font: 700 .8rem var(--sans); color: var(--ink); cursor: pointer; }
.shp-sort button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.shp-list { display: flex; flex-direction: column; gap: 8px; max-height: min(56vh, 520px); overflow: auto; margin: 0 -6px; padding: 0 6px 2px; }
.shp-grp { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 8px 0 0; }
.shp-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; text-align: left; width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 18px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.shp-row:hover, .shp-row:focus-visible { border-color: var(--c, #b79be0); outline: none; }
.shp-cv { width: 52px; }
.shp-in { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shp-in b { font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.shp-au { font-size: .82rem; color: var(--ink-soft); }
.shp-meta { font-size: .78rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.shp-meta em { font-style: normal; }
.shp-bar { height: 6px; border-radius: 99px; background: var(--lav-100); overflow: hidden; margin-top: 4px; max-width: 210px; }
.shp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f6a8c4, #d9608f); border-radius: 99px; }
.shp-go { font-size: 1.3rem; color: var(--ink-soft); }
.shp-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 520px) { .shp-tiles { grid-template-columns: repeat(2, 1fr); } }
.newshelf { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; background: var(--lav-50); border-radius: var(--r-lg); padding: 16px; margin-bottom: 20px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; max-width: 356px; }
.swatches label { cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--lav-500); }
.swatches input:focus-visible + span { outline: 3px solid var(--lav-400); outline-offset: 2px; }

/* Statistik */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 18px; }
.tile { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow); }
.tile b { display: block; font: 500 1.97rem/1 var(--num); color: var(--lav-600); }
.tile span { font-weight: 700; color: var(--ink-soft); font-size: .85rem; }
.genre { display: grid; grid-template-columns: 110px 1fr 26px; gap: 10px; align-items: center; margin: 8px 0; font-weight: 700; font-size: .9rem; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font: 600 10.5px var(--sans); fill: var(--ink-soft); }
.chart text.ax { font-size: 10px; opacity: .75; }
.chart text.m { opacity: .8; }
.chart text.m.now, .chart .bt.now text.m { fill: var(--ink); font-weight: 800; opacity: 1; }
.chart text.v { font: 800 11px var(--sans); fill: var(--ink); }
.cx { width: 100%; min-width: 0; }

/* Lesen-Ansicht */
.now { display: grid; gap: 16px; }
.nowbook { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.nowbook h3 { font: 400 1.18rem/1.3 var(--script); color: #3f3055; }
.nowbook .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Modal & Toast */
.scrim { position: fixed; inset: 0; background: rgba(74, 59, 94, .38); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--paper); width: min(680px, 100%); border-radius: 28px; border: 5px solid #fff; box-shadow: 0 24px 70px rgba(70, 40, 120, .35); padding: 22px 24px 22px; margin: auto; position: relative; }
.modal.narrow { width: min(440px, 100%); }
.modal h2 { font: 400 1.65rem/1.3 var(--script); color: #5d4a7e; margin-bottom: 14px; padding-right: 36px; }
.modal .close { position: absolute; right: 16px; top: 16px; }
.form { display: grid; gap: 14px; }
.form-head { display: grid; grid-template-columns: 112px 1fr; gap: 16px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.actions .left { margin-right: auto; }
.coverbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.coverbtns label.btn { cursor: pointer; }
.coverbtns [hidden] { display: none; }
.isbn { display: flex; gap: 8px; }
.isbn input { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 800; z-index: 80; box-shadow: 0 10px 30px rgba(60, 40, 90, .35); animation: pop .25s ease-out; }
.toast.bad { background: #b2476b; }
@keyframes pop { from { transform: translate(-50%, 10px); opacity: 0; } }
.qlist { display: grid; gap: 8px; }
.qitem { display: flex; gap: 8px; align-items: flex-start; background: #fffdf4; border: 1px solid #f1e6c6; border-radius: 10px; padding: 8px 10px; font: 600 1rem/1.35 var(--sans); }
.qitem span { flex: 1; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span2 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .focus { flex-direction: column; text-align: center; }
  .focus-side { width: 100%; }
  .form-head { grid-template-columns: 84px 1fr; }
  .hello h1 { font-size: 2.1rem; }
  .search { flex-basis: 100%; order: 3; }
  .timer .clock { font-size: 3.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Feinschliff */
.tag, .bk .stars { align-self: flex-start; }
.cover.ph.sm { font-size: 1.5rem; padding: 0; }
.ring b { font-size: 2rem; }
.ring small { font-size: .72rem; }

.card .tile b { font-size: 1.6rem; line-height: 1.05; margin: 2px 0 4px; }
.tiles .tile b { font-size: 2rem; }
.focus { min-height: 150px; }

.mini .a { display: block; }
.mini > span { min-width: 0; }

.weekgrid { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 16px; align-items: center; }
@media (max-width: 640px) { .weekgrid { grid-template-columns: 1fr; } }

/* Schrift-Feinschliff */
.hello h1 { letter-spacing: -.01em; }
.card h2 { font-weight: 400; }
.timer .clock { letter-spacing: .01em; }
.hello p { margin-top: 6px; }

/* ---------- Anmeldung & Konten ---------- */
body[data-mode="auth"] .app { display: none; }
body[data-mode="app"] #auth, body[data-mode="loading"] #auth { display: none; }
body[data-mode="loading"] .app { visibility: hidden; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--lav-500); }
.check.left { margin-right: auto; }
.cmd { background: #3f3055; color: #f3eafc; padding: 12px 14px; border-radius: 12px; font: 600 .82rem/1.5 ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto; margin: 0 0 10px; white-space: pre; }
.users { display: grid; gap: 0; }
.userrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.userrow:last-child { border-bottom: 0; }
.useract { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .userrow { grid-template-columns: 1fr auto; }
  .userrow .useract { grid-column: 1 / -1; justify-content: flex-start; }
  .authcard { padding: 30px 20px 22px; }
}
.tag.plain { background: #f1ecf5; color: var(--ink-soft); }

/* Zwei-Faktor-Anmeldung */
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.center { text-align: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--lav-600); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--lav-500); }
.tfsteps { margin: 0 0 6px 20px; color: var(--ink-soft); font-size: .9rem; display: grid; gap: 2px; }
.tfh { font: 400 1.2rem/1.3 var(--script); color: var(--lav-600); margin: 0 0 6px; }
.qrbox { display: flex; justify-content: center; margin: 12px 0; }
.qrbox svg { border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.secretline, .codes span { font: 700 .95rem/1.5 ui-monospace, "SF Mono", Menlo, monospace; background: var(--lav-100); color: #3f3055; border-radius: 10px; user-select: all; }
.secretline { text-align: center; letter-spacing: .06em; padding: 8px 10px; margin: 0 0 14px; word-break: break-all; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.codes span { text-align: center; padding: 8px 6px; }
.secretline { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
.secretline span { white-space: nowrap; }

.bk.static { display: flex; flex-direction: column; gap: 4px; text-align: left; align-items: stretch; }
.bk.static .btn { align-self: flex-start; margin-top: 4px; }

.notice { display: block; margin-bottom: 16px; padding: 10px 16px; border-radius: 12px; background: #fff4d6; border: 1px solid #f1e6c6; color: #6b5a2a; text-decoration: none; font-weight: 700; }
.notice b { text-decoration: underline; }

/* =====================================================================
   Ton-Look: Bauteile (weiche Tonflächen, doppelte Schatten, runde Formen)
   ===================================================================== */
.card, .tile, .shelf, .qcard, .hero, .newshelf { border: 0; }
.card { background: var(--clay); border-radius: 30px; box-shadow: var(--sh-raise); padding: 24px; }
.card h2 { font: 800 1.08rem/1.3 var(--sans); color: var(--ink); margin-bottom: 14px; }
.card h2 .more { color: var(--violet-deep); font-weight: 700; }
.tile { background: var(--clay-sm); border-radius: 20px; box-shadow: var(--sh-small); padding: 16px 18px; }
.page-title { font: 400 1.9rem/1.3 var(--script); color: #5d4a7e; }

.btn {
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 16px; font-weight: 800; font-size: 15px; color: var(--violet-deep);
  background: var(--clay-sm); box-shadow: var(--sh-small);
}
.btn:hover { background: linear-gradient(160deg, #fff, #ece5fb); }
.btn:active { transform: translateY(1px); box-shadow: var(--sh-inset); }
.btn.primary { color: #fff; background: linear-gradient(180deg, #9a80ec 0%, #7456d6 100%); box-shadow: var(--sh-btn); border: 0; }
.btn.primary:hover { background: linear-gradient(180deg, #a48bf0 0%, #6a4bd0 100%); }
.btn.primary:active { box-shadow: 0 4px 10px rgba(116, 85, 214, .3), inset 0 2px 0 rgba(255, 255, 255, .3); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 13px; }
.btn.danger { color: #b2476b; }
.btn.danger.armed { background: linear-gradient(180deg, #d86a93, #c4547d); color: #fff; box-shadow: 0 8px 16px rgba(196, 84, 125, .3); }

.field input, .field select, .field textarea, .inp {
  min-height: 50px; padding: 10px 16px; background: var(--surface-2); border: 0; border-radius: 18px; box-shadow: var(--sh-inset); font-weight: 600;
}
.field textarea { min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #a79cc2; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { box-shadow: var(--sh-inset), 0 0 0 3px rgba(123, 91, 216, .28); }
.field > span, .label { font-weight: 800; font-size: .88rem; color: var(--ink); }
.toolbar .sel, .timer .pick select {
  min-height: 46px; padding: 6px 16px; background: var(--surface-2); border: 0; border-radius: 999px; box-shadow: var(--sh-inset); font-weight: 700;
}
.timer .pick select { min-height: 40px; }
.seg { background: var(--surface-2); border: 0; border-radius: 999px; box-shadow: var(--sh-inset); padding: 4px; }
.seg input:checked + span { background: linear-gradient(180deg, #9a80ec, #7456d6); color: #fff; box-shadow: 0 6px 12px rgba(116, 85, 214, .3); }
.chip { height: 32px; padding: 0 14px; background: var(--lav-100); color: var(--violet-deep); }
.chip.on, .chipcheck input:checked + .chip { background: linear-gradient(180deg, #9a80ec, #7456d6); color: #fff; box-shadow: 0 6px 12px rgba(116, 85, 214, .3); }
.tag { background: var(--lav-100); color: var(--violet-deep); }
.tag.wunsch { background: #fbe1ea; color: #b2476b; }
.tag.lese { background: #fbf0cf; color: #8a6a14; }
.tag.gelesen, .tag.sage { background: #e4f0df; color: #5f8a55; }
.note-line { background: var(--surface-2); box-shadow: var(--sh-inset); border-radius: 16px; color: var(--ink-soft); }
.bar { height: 10px; background: var(--surface-2); box-shadow: var(--sh-inset); border-radius: 6px; }
.bar > i { background: linear-gradient(90deg, #b79be3, #7b5bd8); border-radius: 6px; }
.bar.thin { height: 8px; }

.cover { border-radius: 2px; box-shadow: 6px 9px 18px rgba(110, 80, 160, .3), inset 0 1px 0 rgba(255, 255, 255, .4); }
.cover::before { width: 8%; background: rgba(255, 255, 255, .34); }
.mini { border-bottom: 1px solid var(--line); }
.bk:hover .cover { transform: translateY(-5px); }

.polaroid { background: var(--clay-sm); border-radius: 24px; box-shadow: var(--sh-small); transform: none; padding: 12px; }
.polaroid .pic { border-radius: 16px; }
.tape { background: rgba(242, 207, 114, .7); border-radius: 4px; }
.qcard { background: var(--clay-sm); border-radius: 24px; box-shadow: var(--sh-small); padding: 26px 22px 16px; }
.qcard:nth-child(even) { background: linear-gradient(160deg, #fff, #f6f0fc); }
.qcard .tape { background: rgba(242, 207, 114, .7); }
.qitem { background: var(--surface-2); border: 0; border-radius: 14px; box-shadow: var(--sh-inset); }
.shelf { background: var(--clay); border-radius: 26px; box-shadow: var(--sh-small); }
.newshelf { background: var(--surface-2); border-radius: 24px; box-shadow: var(--sh-inset); }
.swatches span { border-color: #fff; box-shadow: var(--sh-small); }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--lav-500); }

.scrim { background: rgba(58, 47, 85, .4); }
.modal { background: var(--clay); border: 0; border-radius: 30px; box-shadow: var(--sh-raise), 0 30px 70px rgba(58, 47, 85, .3); }
.modal h2 { font: 400 1.6rem/1.3 var(--script); color: #5d4a7e; }
.toast { background: var(--ink); }
.notice { background: linear-gradient(160deg, #fff7dc, #fbefc9); border: 0; border-radius: 20px; box-shadow: var(--sh-small); padding: 12px 18px; }
.cmd { background: #3a2f55; border-radius: 16px; }
.secretline, .codes span { background: var(--surface-2); box-shadow: var(--sh-inset); }
.qrbox svg { border: 0; box-shadow: var(--sh-small); }
.userrow { border-bottom: 1px solid var(--line); }
.tag.plain { background: var(--surface-2); color: var(--ink-soft); }
.tfh { font: 800 1rem/1.3 var(--sans); color: var(--violet-deep); }
.empty b { font: 800 1.08rem/1.3 var(--sans); color: var(--ink); }

/* ---------- Anmeldung: Szene füllt den ganzen Bildschirm, Karte liegt auf der Wand ---------- */
.authwrap { min-height: 100vh; display: block; padding: 0; }
.authstage {
  position: relative; width: 100%; min-height: max(100vh, 760px); overflow: hidden;
  background: linear-gradient(180deg, #fdf1ea 0, #f6dfce 18%, #f2d4bc 34%, #f2d4bc 100%);
  display: flex; align-items: center; justify-content: flex-end; padding: 40px clamp(24px, 6vw, 150px) 40px 40px;
}
.authart {
  position: absolute; left: 0; right: 0; bottom: 0; top: 230px; width: 100%; height: calc(100% - 230px);
  object-fit: cover; object-position: left 25%; display: block; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
}
.authhero { position: absolute; left: clamp(28px, 5vw, 96px); top: 40px; max-width: 560px; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.authhero .brand { padding: 0; margin-bottom: 14px; }
.authhero .logo { width: 64px; height: 58px; }
.authhero h2 { font: 700 2.1rem/1.15 var(--sans); color: var(--ink); }
.authhero h2 svg { width: 32px; height: 32px; display: inline-block; vertical-align: -5px; margin-left: 8px; }
.authhero p { font-size: 1.1rem; line-height: 1.5; color: var(--ink-soft); max-width: 340px; }
.authcard {
  position: relative; z-index: 2; width: min(400px, 100%); padding: 38px 34px 30px; border-radius: 30px;
  background: linear-gradient(165deg, #fffefd 0%, #fcf8fc 100%); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 70px rgba(122, 78, 70, .22), 0 10px 24px rgba(122, 78, 70, .12), inset 0 1px 0 #fff;
}
.authcard h1 { font: 400 1.9rem/1.3 var(--script); color: #5d4a7e; text-align: center; margin-bottom: 6px; }
.authcard > p { text-align: center; margin-bottom: 18px; }
.authcard .form .btn.primary { margin-top: 4px; min-height: 52px; font-size: 16px; }
@media (min-width: 1300px) { .authcard { zoom: 1.1; } }
@media (min-width: 1600px) { .authcard { zoom: 1.2; } }
@media (min-width: 1900px) { .authcard { zoom: 1.3; } }
@media (max-width: 1180px) {
  .authart { right: 280px; width: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%), linear-gradient(to right, #000 82%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 16%), linear-gradient(to right, #000 82%, transparent); mask-composite: intersect; }
}
@media (max-width: 960px) {
  .authstage { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; min-height: 100vh; }
  .authhero { position: static; padding: 26px 26px 0; max-width: none; }
  .authhero h2 { font-size: 1.9rem; }
  .authcard { margin: 22px auto 0; width: calc(100% - 32px); max-width: 440px; }
  .authart { position: static; width: 100%; height: auto; margin-top: auto; padding-top: 0; display: block; object-fit: initial; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%); -webkit-mask-composite: source-over; mask-composite: add; }
}
@media (max-width: 640px) {
  .authwrap, .authstage { min-height: 100vh; min-height: 100dvh; }
  .authstage { background: linear-gradient(180deg, #fdf1ea 0, #f6dfce 30%, #f2d4bc 100%); }
  /* Handy: Logo oben, kleine Szene, Karte darüber; der Gruß steht schon im Kartenkopf */
  .authhero { order: 1; padding: max(18px, env(safe-area-inset-top)) 20px 0; align-items: center; }
  .authhero .brand { display: flex; margin: 0; }
  .authhero h2, .authhero p { display: none; }
  .authart { order: 2; flex: 1 1 0; height: auto; min-height: 120px; max-height: 56dvh; object-fit: cover; object-position: 32% 35%; margin-top: 8px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent); }
  .authcard { order: 3; margin: -34px auto 0; padding: 24px 18px 20px; width: calc(100% - 24px); border-radius: 26px; }
  .authcard h1 { font-size: 1.6rem; }
  .authcard > p { margin-bottom: 12px; font-size: .92rem; }
  .authcard .form { gap: 10px; }
  .authwrap .authcard { margin-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) and (max-height: 660px) { .authcard h1 { font-size: 1.35rem; margin-bottom: 2px; } .authcard > p { display: none; } .authcard { padding-top: 18px; } .authart { min-height: 96px; } }
.pwbox { position: relative; display: block; }
.pwbox input { width: 100%; padding-right: 52px; }
.pwtoggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-soft); border-radius: 50%; cursor: pointer; }
.pwtoggle svg { width: 22px; height: 22px; }
.pwtoggle .slash { opacity: 0; }
.pwtoggle.on .slash { opacity: 1; }
.pwtoggle:focus-visible { outline: 2px solid var(--lav-600, #6a4cc4); }

/* ---------- Responsiv (Ton-Look) ---------- */
@media (max-width: 1180px) {
  .app { grid-template-columns: 214px minmax(0, 1fr); gap: 20px; padding: 20px; }
  .side { top: 20px; height: calc(100vh - 40px); }
  .side-art img { width: 140px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; gap: 0; padding: 16px 16px 112px; }
  .side {
    position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; height: auto; max-height: none; z-index: 40;
    flex-direction: row; align-items: center; justify-content: center; gap: 4px; padding: 8px 10px; border-radius: 28px;
    overflow: visible; box-shadow: var(--sh-raise), 0 12px 30px rgba(58, 47, 85, .18);
  }
  .brand, .side-art { display: none; }
  .nav { display: flex; flex: 1; gap: 2px; justify-content: space-between; }
  .nav a, .nav .navbtn { flex: 1 1 0; width: auto; min-width: 0; min-height: 52px; padding: 0; justify-content: center; border-radius: 18px; }
  .nav a span, .nav .navbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav svg { width: 23px; height: 23px; }
  .main { padding-bottom: 8px; }
  body[data-mode="auth"] .side { display: none; }
}
@media (max-width: 640px) {
  .app { padding: 14px 14px 112px; }
  .hello h1 { font-size: 1.7rem; }
  .hero { aspect-ratio: auto; min-height: 0; border-radius: 26px; display: flex; flex-direction: column; }
  .hero img { position: static; height: auto; aspect-ratio: 16 / 8; }
  .hero-txt { position: static; transform: none; width: auto; padding: 4px 22px 20px; }
  .hero-txt h1 { font-size: 1.45rem; }
  .card { padding: 20px; border-radius: 26px; }
  .search { order: 3; flex-basis: 100%; }
}
@media (max-width: 900px) { .toast { bottom: 108px; } }
@media (max-width: 1180px) { .brand small { display: none; } }
@media (max-height: 820px) and (min-width: 901px) { .side-art img { width: 120px; } }
.field .seg input, .field .chipcheck input, .field .swatches input, .seg input, .swatches input, .chipcheck input { width: 1px; min-height: 0; padding: 0; box-shadow: none; background: none; }

/* Zuschnitt-Dialog: Regler im Ton-Look, mehr Luft */
#cropZoom { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; min-height: 0; padding: 0; border: 0; border-radius: 6px; background: var(--surface-2); box-shadow: var(--sh-inset); accent-color: var(--lav-500); }
#cropZoom::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #9a80ec, #7456d6); box-shadow: 0 4px 10px rgba(116, 85, 214, .4), inset 0 2px 0 rgba(255, 255, 255, .4); cursor: pointer; }
#cropZoom::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #9a80ec, #7456d6); box-shadow: 0 4px 10px rgba(116, 85, 214, .4); cursor: pointer; }
#cropHint { margin: 12px 0 16px; }

/* Benutzermenü: klar von den Karten dahinter abgesetzt */
.menu { background: #fff; border: 1.5px solid var(--lav-200); box-shadow: 0 18px 44px rgba(70, 45, 130, .30), 0 4px 12px rgba(70, 45, 130, .16); }
.menu-head { border-bottom-color: var(--lav-200); }
.menu-sep { background: var(--lav-200); }
.menu button, .menu a { color: #2b2147; font-weight: 700; }
.menu svg { stroke: var(--lav-600); }
.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible { background: var(--lav-100); color: #1f1638; }
.menu-head small { color: #5a4e7c; }

.profilrow { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.profilrow > div { flex: 1 1 260px; }
.avatar.xl { width: 96px; height: 96px; font-size: 2.4rem; cursor: default; flex: none; }
.menu-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--lav-500); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
[id^="sec-"] { scroll-margin-top: 20px; }
.flash { animation: secflash 1.5s ease-out; }
@keyframes secflash { 0% { box-shadow: var(--sh-raise), 0 0 0 4px rgba(123, 91, 216, .55); } 100% { box-shadow: var(--sh-raise), 0 0 0 4px rgba(123, 91, 216, 0); } }
#sec-profil { grid-column: 1 / -1; }

/* Cover suchen, Foto, Scanner */
.coverbtns .btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.isbn .iconbtn { width: 46px; min-width: 46px; padding: 0; flex: none; }
.isbn .iconbtn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.csearch { margin-top: 10px; padding: 12px; border-radius: 18px; background: var(--surface-2); box-shadow: var(--sh-inset); display: grid; gap: 10px; }
.csearch[hidden], .scanbox[hidden] { display: none; }
.csresults { display: grid; gap: 10px; max-height: 340px; overflow: auto; padding: 4px 4px 8px; margin: 0 -4px; }
.csitem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 14px; background: #fff; text-align: left; cursor: pointer; box-shadow: var(--sh-small); color: var(--ink); font: inherit; }
.csitem:hover, .csitem:focus-visible { outline: 2px solid var(--lav-400); outline-offset: -2px; }
.csitem img { width: 52px; height: 78px; object-fit: cover; border-radius: 4px 8px 8px 4px; flex: none; background: var(--lav-100); }
.csitem span { display: grid; gap: 2px; min-width: 0; }
.csitem b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.csitem small { color: var(--ink-soft); font-weight: 600; }
.scanbox { position: relative; margin-top: 10px; border-radius: 18px; overflow: hidden; background: #1d1630; box-shadow: var(--sh-inset); }
.scanbox video { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.scanframe { position: absolute; left: 12%; right: 12%; top: 18%; height: 46%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(29, 22, 48, .35); pointer-events: none; }
.scanbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #fff; }
.scanbar .hint { margin: 0; }
@media (max-width: 640px) {
  .isbn { flex-wrap: wrap; }
  .isbn input { flex: 1 1 100%; }
  .isbn .btn:not(.iconbtn) { flex: 1 1 auto; }
}

.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0 16px; }
.subh { font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; color: var(--ink); }

.csrow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.csnoimg { width: 52px; height: 78px; border-radius: 4px 8px 8px 4px; flex: none; background: linear-gradient(160deg, var(--lav-100), var(--surface-2)); }
.csitem small.csisbn { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .csrow { grid-template-columns: 1fr; } }

.bar.blue > i { background: linear-gradient(90deg, #cfdcf6, #8fb0e8); }
.tag.sub { background: #e1eafb; color: #3f65a8; }
.dupbox { margin-top: 10px; padding: 12px; border-radius: 18px; background: var(--surface-2); box-shadow: var(--sh-inset); display: grid; gap: 8px; }
.dupbox[hidden] { display: none; }
.dupbox p { margin: 0; }
.dupt.bad { color: #b2476b; }
.dupitem { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: var(--sh-small); }
.dupitem > span { display: grid; gap: 2px; min-width: 0; }
.dupitem small { color: var(--ink-soft); font-weight: 600; }
.dupitem .btn { flex: none; }

/* Alle Fenster (Dialoge, Menüs, Hinweise) wie das Benutzermenü: weiße Fläche, feine Lavendel-Linie, weicher dunkler Schatten, kein weißer Schein. */
:root { --pop-border: 1.5px solid var(--lav-200); --pop-shadow: 0 18px 44px rgba(70, 45, 130, .30), 0 4px 12px rgba(70, 45, 130, .16); }
.menu, .modal { background: #fff; border: var(--pop-border); box-shadow: var(--pop-shadow); }
.toast { box-shadow: var(--pop-shadow); }

/* ---- Buch anlegen: Suchen, Prüfen, Speichern */
.fq { display: flex; gap: 8px; }
.fq .inp { flex: 1; min-width: 0; }
.fq .iconbtn { width: 46px; min-width: 46px; padding: 0; flex: none; }
.fq .iconbtn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
#findStep { display: grid; gap: 10px; }
#findStep .csresults { max-height: 46vh; }
.fqfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.fqfoot[hidden], .quickbox[hidden], #findStep[hidden], #bookForm[hidden] { display: none; }
.fqfoot .btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.linkbtn { background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 700; color: var(--lav-600, #6a4cc4); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover, .linkbtn:focus-visible { color: var(--violet-deep, #4d35a3); outline: none; }
.linkbtn[hidden] { display: none; }
.check-head { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: start; }
.coverbox { display: grid; gap: 6px; justify-items: center; }
.coverbox #coverPrev { width: 100%; }
.covertools { padding: 12px; border-radius: 18px; background: var(--surface-2); box-shadow: var(--sh-inset); }
.covertools[hidden] { display: none; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.extras[hidden], .extras [hidden] { display: none !important; }
details.more { border-radius: 18px; background: var(--surface-2); box-shadow: var(--sh-inset); padding: 4px 14px; }
details.more > summary { cursor: pointer; font-weight: 800; color: var(--lav-600, #6a4cc4); padding: 10px 0; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸"; display: inline-block; margin-right: 8px; transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(90deg); }
.morebody { display: grid; gap: 14px; padding: 4px 0 14px; }
.quickbox { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface-2); box-shadow: var(--sh-inset); }
.quickhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.seg.small label span { padding: 6px 14px; min-height: 0; font-size: .9rem; }
.quicklist { display: grid; gap: 8px; max-height: 38vh; overflow: auto; }
.qrow { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; background: #fff; box-shadow: var(--sh-small); }
.qrow > span:not(.csnoimg):not(.qmark) { display: grid; gap: 2px; min-width: 0; flex: 1; }
.qrow small { color: var(--ink-soft); font-weight: 600; }
.qrow img { width: 36px; height: 54px; object-fit: cover; border-radius: 3px 6px 6px 3px; flex: none; }
.qrow.wait { opacity: .7; }
.qrow.bad small { color: #b2476b; }
.qmark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--surface-2); color: var(--ink-soft); }
.qmark.good { background: #e4f0df; color: #3f7f4a; }
.csnoimg.sm { width: 36px; height: 54px; }
@media (max-width: 560px) {
  .check-head { grid-template-columns: 96px 1fr; gap: 12px; }
  .fq { flex-wrap: wrap; }
  .fq .inp { flex-basis: 100%; }
  .fq .btn.primary { flex: 1; }
}

/* ---------- Ansichten der Bücherlisten ---------- */
.bk .meta { display: none; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }

/* Klein: dichteres Raster, nur Titel */
.books[data-view="klein"] { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; }
.books[data-view="klein"] .t { font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.books[data-view="klein"] .a, .books[data-view="klein"] .tag, .books[data-view="klein"] .stars, .books[data-view="klein"] .bar { display: none; }
.books[data-view="klein"] .bk { gap: 6px; }
.books[data-view="klein"] .cover.ph span { font-size: .66rem; }
.books[data-view="klein"] .bk.static .btn { font-size: .7rem; padding: 4px 8px; }
.books[data-view="klein"] .bk.static .btn svg { display: none; }

/* Nur Cover: wie ein Regal, Titel erscheint beim Darüberfahren */
.books[data-view="cover"] { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px 10px; }
.books[data-view="cover"] .t, .books[data-view="cover"] .a, .books[data-view="cover"] .tag, .books[data-view="cover"] .stars, .books[data-view="cover"] .bar, .books[data-view="cover"] .bk.static .btn { display: none; }
.books[data-view="cover"] .cover { box-shadow: 2px 3px 7px rgba(110, 80, 160, .25); }
.books[data-view="cover"] .cover.ph span { font-size: .56rem; }
.books[data-view="cover"] .bk.static { cursor: default; }

/* Liste und Detailliste: eine Zeile je Buch */
.books[data-view="liste"], .books[data-view="detail"] { grid-template-columns: 1fr; gap: 8px; }
.books[data-view="liste"] .bk, .books[data-view="detail"] .bk { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "c t g" "c a g"; align-items: center; column-gap: 14px; row-gap: 0; padding: 8px 14px 8px 10px; background: #fff; border-radius: 14px; box-shadow: var(--sh-small); }
.books[data-view="liste"] .bk .cover, .books[data-view="detail"] .bk .cover { grid-area: c; }
.books[data-view="liste"] .bk .t, .books[data-view="detail"] .bk .t { grid-area: t; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: end; }
.books[data-view="liste"] .bk .a, .books[data-view="detail"] .bk .a { grid-area: a; margin-top: 0; align-self: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.books[data-view="liste"] .bk .tag, .books[data-view="liste"] .bk .stars, .books[data-view="detail"] .bk .tag, .books[data-view="detail"] .bk .stars, .books[data-view="liste"] .bk.static .btn, .books[data-view="detail"] .bk.static .btn { grid-area: g; align-self: center; justify-self: end; margin: 0; }
.books[data-view="liste"] .bk .bar, .books[data-view="liste"] .bk .meta { display: none; }
.books[data-view="liste"] .bk:hover .cover, .books[data-view="detail"] .bk:hover .cover { transform: none; }
.books[data-view="liste"] .bk:hover, .books[data-view="detail"] .bk:hover { outline: 2px solid var(--lav-300, var(--lav-400)); outline-offset: -2px; }
.books[data-view="liste"] .bk.static:hover, .books[data-view="detail"] .bk.static:hover { outline: 0; }
.books[data-view="liste"] .cover.ph span, .books[data-view="detail"] .cover.ph span { font-size: 0; }
.books[data-view="liste"] .cover.ph span::first-letter, .books[data-view="detail"] .cover.ph span::first-letter { font-size: 1.15rem; }
.books[data-view="liste"] .bk .cover { box-shadow: 1px 2px 5px rgba(110, 80, 160, .25); }
.books[data-view="detail"] .bk { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "c t g" "c a g" "c m g" "c b g"; padding: 10px 16px 10px 10px; }
.books[data-view="detail"] .bk .meta { display: block; grid-area: m; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.books[data-view="detail"] .bk .bar { grid-area: b; max-width: 260px; margin-top: 6px; }
.books[data-view="detail"] .bk .t { white-space: normal; }

@media (max-width: 640px) {
  .books[data-view="normal"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .books[data-view="detail"] .bk { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "c t" "c a" "c m" "c g" "c b"; }
  .books[data-view="detail"] .bk .tag, .books[data-view="detail"] .bk .stars, .books[data-view="detail"] .bk.static .btn { justify-self: start; margin-top: 4px; }
  .books[data-view="liste"] .bk { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 10px; padding-right: 10px; }
}
.books[data-view="liste"] .bk:has(.a.noa) .t, .books[data-view="detail"] .bk:has(.a.noa) .t { grid-row: 1 / 3; align-self: center; }
.books[data-view="liste"] .bk .a.noa, .books[data-view="detail"] .bk .a.noa { display: none; }
.books[data-view="detail"] .bk:has(.a.noa) .t { grid-row: 1; align-self: end; }

/* Detailliste: Textblock mittig neben dem Cover statt über die Coverhöhe verteilt */
.books[data-view="detail"] .bk { grid-template-areas: "c . g" "c t g" "c a g" "c m g" "c b g" "c . g"; grid-template-rows: 1fr auto auto auto auto 1fr; row-gap: 0; }
.books[data-view="detail"] .bk:has(.a.noa) .t { grid-row: 2; align-self: end; }
@media (max-width: 640px) {
  .books[data-view="detail"] .bk { grid-template-areas: "c ." "c t" "c a" "c m" "c g" "c b" "c ."; grid-template-rows: 1fr auto auto auto auto auto 1fr; }
}

/* ---------- Werkzeugleiste: Piktogramme mit Auswahlmenü ---------- */
.toolbar .tools { display: flex; gap: 8px; flex-wrap: wrap; }
.popmenu .cnt { font-style: normal; font-weight: 800; font-size: .8rem; color: var(--ink-soft); background: var(--lav-100); border-radius: 99px; padding: 1px 9px; }
.popmenu button.on .cnt { background: #fff; color: var(--lav-600); }
.popmenu .cnt + svg { margin-left: -4px; }
.popwrap { position: relative; display: inline-flex; }
.tbtn { display: inline-flex; align-items: center; gap: 8px; min-width: 46px; height: 46px; padding: 0 13px; justify-content: center; border: 0; border-radius: 999px; background: var(--surface-2, #f3edfa); box-shadow: var(--sh-small); color: var(--lav-600); font: 800 .88rem var(--sans); cursor: pointer; }
.tbtn svg { width: 22px; height: 22px; flex: none; }
.tbtn:hover { background: var(--lav-100); }
.tbtn.on { background: var(--lav-500); color: #fff; }
.tbtn:focus-visible { outline: 3px solid var(--lav-400); outline-offset: 2px; }
.tbtn .tlabel { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popmenu { right: 0; left: auto; top: calc(100% + 8px); width: max-content; min-width: 210px; max-width: min(300px, calc(100vw - 28px)); }
.popmenu button { justify-content: flex-start; }
.popmenu button span { flex: 1; }
.popmenu button.on { background: var(--lav-100); color: var(--lav-600); }
.popmenu button.on svg:last-child { stroke: var(--lav-600); }
.popmenu .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
@media (max-width: 640px) {
  .toolbar { position: relative; }
  .toolbar .tools { width: 100%; gap: 8px; }
  .tbtn { min-width: 48px; height: 48px; }
  .tbtn .tlabel:not(.keep) { display: none; }
  .tbtn .tlabel.keep { max-width: 110px; }
  .popwrap { position: static; }
  .popmenu { left: 0; right: 0; top: calc(100% + 6px); width: auto; max-width: none; min-width: 0; }
}

/* ---------- Benutzermenü: Design-Auswahl ---------- */
.menu-label { padding: 6px 12px 2px; font: 800 .74rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.menu .swatch { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 1px rgba(0, 0, 0, .12); }
.menu button span { flex: 1; }
.menu button[role="menuitemradio"].on { background: var(--lav-100); color: var(--violet-deep); }
.menu button[role="menuitemradio"].on svg:last-child { stroke: var(--violet-deep); }

/* =====================================================================
   Theme „Kirschblüte“: rosa Glas, feine Serifen, sanfte Leuchtränder.
   Aktiv mit <html data-theme="kirschbluete">. Das Standarddesign „Lavendel“ bleibt unberührt.
   ===================================================================== */
html[data-theme="kirschbluete"] {
  --blush: #fdeef3; --paper: #fff9fb; --card: #fff9fb; --surface: #fff9fb; --surface-2: #fff0f5; --line: #f6d6e3;
  --lav-50: #fff2f6; --lav-100: #ffe4ed; --lav-200: #fbd0e0; --lav-300: #f4a9c3; --lav-400: #ec86ad; --lav-500: #cf5784; --lav-600: #a63a63;
  --ink: #5a2d45; --ink-soft: #84506b; --violet-deep: #a63a63;
  --shadow: 0 8px 22px rgba(214, 100, 145, .14), inset 0 1px 0 rgba(255, 255, 255, .85);
  --sh-small: 0 6px 16px rgba(214, 100, 145, .14), inset 0 1px 0 rgba(255, 255, 255, .85);
  --sh-raise: 0 14px 34px rgba(214, 100, 145, .17), inset 0 1px 0 rgba(255, 255, 255, .9);
  --sh-inset: inset 0 2px 6px rgba(214, 100, 145, .13), inset 0 0 0 1px rgba(255, 255, 255, .6);
  --sh-btn: 0 10px 20px rgba(207, 87, 132, .32), inset 0 1px 0 rgba(255, 255, 255, .4);
  --clay: linear-gradient(160deg, rgba(255, 255, 255, .8), rgba(255, 236, 244, .6));
  --clay-sm: linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(255, 240, 246, .62));
  --script: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ch-line: #d9608f; --ch-fill: #f6a8c4; --ch-grid: #fbe0ea; --ch-bar: #ee8cb0;
  --ch-ring-a: #f9c4d6; --ch-ring-b: #d9608f; --ch-ring-track: #fbe3ec;
}
html[data-theme="kirschbluete"] body {
  background:
    radial-gradient(55% 38% at 8% 0%, rgba(255, 214, 230, .9) 0, transparent 70%),
    radial-gradient(45% 36% at 100% 18%, rgba(255, 232, 242, .95) 0, transparent 70%),
    radial-gradient(50% 40% at 70% 100%, rgba(250, 205, 224, .7) 0, transparent 70%),
    linear-gradient(160deg, #ffeef4 0%, #fde4ee 48%, #f9d6e6 100%) fixed;
}
/* Überschriften in Serifenschrift; font-size-adjust gleicht die kleinere x-Höhe der Cormorant aus */
html[data-theme="kirschbluete"] :is(.brand b, .hello h1, .hero-txt h1, .card h2, .rail h2, .page-title, .empty b, .shelf h3, .nowbook h3, .modal h2, .tfh, .authcard h1) {
  font-family: var(--script); font-weight: 500; font-size-adjust: .5; color: #6b2f4d; letter-spacing: .005em;
}
html[data-theme="kirschbluete"] .card h2 { font-weight: 600; }
html[data-theme="kirschbluete"] :is(.page-title, .hello h1) { font-style: normal; }
html[data-theme="kirschbluete"] .hello h1 em, html[data-theme="kirschbluete"] .page-title em { font-style: italic; color: var(--lav-500); }
/* Glasflächen */
html[data-theme="kirschbluete"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .search, .menu, .newshelf) {
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
}
html[data-theme="kirschbluete"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid) { border: 1.5px solid rgba(255, 255, 255, .85); }
html[data-theme="kirschbluete"] .card, html[data-theme="kirschbluete"] .shelf { border-radius: 26px; }
html[data-theme="kirschbluete"] .side { border-radius: 28px; }
html[data-theme="kirschbluete"] .search { background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(255, 240, 246, .65)); border: 1.5px solid rgba(255, 255, 255, .85); }
html[data-theme="kirschbluete"] .search:focus-within { box-shadow: var(--sh-small), 0 0 0 3px rgba(223, 107, 151, .3); }
html[data-theme="kirschbluete"] .search input::placeholder, html[data-theme="kirschbluete"] .field input::placeholder, html[data-theme="kirschbluete"] .field textarea::placeholder { color: #b98aa3; }
html[data-theme="kirschbluete"] .search svg { stroke: #c27a9d; }
html[data-theme="kirschbluete"] .field input:focus, html[data-theme="kirschbluete"] .field select:focus, html[data-theme="kirschbluete"] .field textarea:focus, html[data-theme="kirschbluete"] .inp:focus { box-shadow: var(--sh-inset), 0 0 0 3px rgba(223, 107, 151, .3); }
html[data-theme="kirschbluete"] :focus-visible { outline-color: var(--lav-400); }
html[data-theme="kirschbluete"] .field input, html[data-theme="kirschbluete"] .field select, html[data-theme="kirschbluete"] .field textarea, html[data-theme="kirschbluete"] .inp { background: rgba(255, 255, 255, .72); }
/* Navigation */
html[data-theme="kirschbluete"] .nav a[aria-current="page"] { background: linear-gradient(160deg, #ffe3ee, #ffd0e1); box-shadow: var(--sh-small); }
@media (hover: hover) { html[data-theme="kirschbluete"] .nav a:hover, html[data-theme="kirschbluete"] .nav .navbtn:hover { background: rgba(255, 226, 238, .75); } }
/* Akzentflächen: Rosé statt Violett */
html[data-theme="kirschbluete"] { --lg-bird: #c2507c; --lg-page: #f4a9c5; --lg-edge: #fff1f6; }
html[data-theme="kirschbluete"] .btn.primary, html[data-theme="kirschbluete"] .seg input:checked + span, html[data-theme="kirschbluete"] .chip.on, html[data-theme="kirschbluete"] .chipcheck input:checked + .chip { background: linear-gradient(180deg, #e0709b 0%, #c9497a 100%); box-shadow: 0 8px 16px rgba(201, 73, 122, .3); }
html[data-theme="kirschbluete"] .btn.primary:hover { background: linear-gradient(180deg, #e67ca4 0%, #be3f70 100%); }
html[data-theme="kirschbluete"] .btn:hover { background: linear-gradient(160deg, #fff, #ffe9f1); }
html[data-theme="kirschbluete"] .bar > i { background: linear-gradient(90deg, #f6a8c4, #d9608f); }
html[data-theme="kirschbluete"] .avatar { background: linear-gradient(160deg, #f9c4d6, #e0709b); border-color: rgba(255, 255, 255, .95); }
html[data-theme="kirschbluete"] .tbtn.on { background: linear-gradient(180deg, #e0709b, #c9497a); }
html[data-theme="kirschbluete"] .tbtn { background: rgba(255, 255, 255, .7); border: 1.5px solid rgba(255, 255, 255, .85); }
html[data-theme="kirschbluete"] .tbtn.on { border-color: transparent; }
html[data-theme="kirschbluete"] .seg { background: rgba(255, 240, 245, .8); }
html[data-theme="kirschbluete"] .cover { box-shadow: 5px 8px 16px rgba(180, 80, 120, .28), inset 0 1px 0 rgba(255, 255, 255, .45); }
html[data-theme="kirschbluete"] .tape { background: rgba(249, 196, 214, .75); }
html[data-theme="kirschbluete"] .qcard:nth-child(even) { background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(255, 232, 242, .7)); }
/* Fenster und Hinweise */
html[data-theme="kirschbluete"] .scrim { background: rgba(90, 45, 69, .36); }
html[data-theme="kirschbluete"] .modal { background: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(255, 240, 246, .92)); border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 28px; }
html[data-theme="kirschbluete"] .menu { background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 238, 245, .92)); border: 1.5px solid rgba(255, 255, 255, .9); }
html[data-theme="kirschbluete"] .toast { background: #5a2d45; }
html[data-theme="kirschbluete"] .nav svg, html[data-theme="kirschbluete"] .menu svg { stroke-width: 1.7; }
html[data-theme="kirschbluete"] .menu svg { stroke: var(--lav-400); }
html[data-theme="kirschbluete"] .stars svg, html[data-theme="kirschbluete"] .star { filter: none; }

@media (max-width: 640px) {
  #userMenu { position: fixed; left: 14px; right: 14px; width: auto; max-width: none; max-height: calc(100dvh - 110px); overflow-y: auto; }
}

/* =====================================================================
   Theme „Nachtleuchten“: tiefes Indigo, leuchtendes Rosa, Glas mit Neonrand.
   Dunkles Theme: überschreibt auch alle hell eingefärbten Bauteile.
   ===================================================================== */
html[data-theme="nacht"] {
  color-scheme: dark;
  --blush: #1b1038; --paper: #25134a; --card: #25134a; --surface: #25134a; --surface-2: rgba(255, 255, 255, .075); --line: rgba(255, 150, 210, .3);
  --lav-50: rgba(255, 255, 255, .06); --lav-100: rgba(255, 120, 195, .17); --lav-200: rgba(255, 120, 195, .3); --lav-300: #ff9fd0; --lav-400: #ff7fc0; --lav-500: #e8479a; --lav-600: #ffa3d3;
  --ink: #ffeaf6; --ink-soft: #dcaed0; --violet-deep: #ffa3d3;
  --pink: #ff8fc6; --peach: #ffb0c8; --sage: #8fe0b0; --sky: #9db4ff; --gold: #ffd98a;
  --shadow: 0 0 18px rgba(255, 95, 175, .16), inset 0 1px 0 rgba(255, 255, 255, .1);
  --sh-small: 0 0 14px rgba(255, 95, 175, .16), inset 0 1px 0 rgba(255, 255, 255, .1);
  --sh-raise: 0 0 26px rgba(255, 95, 175, .2), 0 14px 34px rgba(8, 2, 28, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  --sh-inset: inset 0 2px 8px rgba(8, 2, 28, .45), inset 0 0 0 1px rgba(255, 150, 210, .18);
  --sh-btn: 0 0 20px rgba(255, 95, 175, .5), inset 0 1px 0 rgba(255, 255, 255, .35);
  --clay: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  --clay-sm: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
  --ch-line: #ff7fc0; --ch-fill: #ff5fae; --ch-grid: rgba(255, 150, 210, .2); --ch-bar: #ff7fc0; --ring-bg: #1f1637;
  --ch-ring-a: #ffb0d8; --ch-ring-b: #ff4fa5; --ch-ring-track: rgba(255, 150, 210, .2);
}
html[data-theme="nacht"] body {
  color: var(--ink);
  background:
    radial-gradient(45% 35% at 12% 6%, rgba(255, 79, 165, .28) 0, transparent 70%),
    radial-gradient(40% 35% at 95% 22%, rgba(150, 90, 255, .3) 0, transparent 70%),
    radial-gradient(50% 40% at 60% 100%, rgba(255, 79, 165, .2) 0, transparent 70%),
    linear-gradient(170deg, #150a30 0%, #231048 50%, #2e1458 100%) fixed;
}
/* Funkelnde Sterne im Hintergrund (nur Deko, ohne Bilder) */
html[data-theme="nacht"] body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 22% 62%, #ffd0ea 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 37% 28%, #ffd0ea 50%, transparent 52%), radial-gradient(1px 1px at 51% 83%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 66% 9%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 78% 47%, #ffd0ea 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 91% 71%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 15% 90%, #ffd0ea 50%, transparent 52%),
    radial-gradient(1px 1px at 58% 52%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 84% 92%, #ffd0ea 50%, transparent 52%);
}
html[data-theme="nacht"] .app, html[data-theme="nacht"] #layer { position: relative; z-index: 1; }
html[data-theme="nacht"] :is(.brand b, .hello h1, .page-title, .card h2, .rail h2, .empty b, .shelf h3, .nowbook h3, .modal h2, .tfh, .authcard h1) { color: #ffd6ec; text-shadow: 0 0 14px rgba(255, 95, 175, .45); }
html[data-theme="nacht"] :is(.ring b, .timer .clock) { color: var(--ink); }
html[data-theme="nacht"] .secretline, html[data-theme="nacht"] .codes span { color: var(--ink); background: var(--lav-100); }
/* Hero: Text liegt am Desktop auf dem hellen Bild, am Handy darunter */
html[data-theme="nacht"] .hero-txt h1 { color: #4a2160; text-shadow: none; }
html[data-theme="nacht"] .hero-txt p { color: #6a4a85; }
@media (max-width: 640px) { html[data-theme="nacht"] .hero-txt h1 { color: #ffd6ec; text-shadow: 0 0 14px rgba(255, 95, 175, .45); } html[data-theme="nacht"] .hero-txt p { color: var(--ink-soft); } }
/* Glasflächen mit Neonrand */
html[data-theme="nacht"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .hero, .newshelf, .search, .tbtn) { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-theme="nacht"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .hero) { border: 1.5px solid rgba(255, 140, 205, .42); }
html[data-theme="nacht"] .card, html[data-theme="nacht"] .shelf, html[data-theme="nacht"] .hero { border-radius: 26px; }
html[data-theme="nacht"] .search { background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 140, 205, .4); }
html[data-theme="nacht"] .search:focus-within { box-shadow: var(--sh-small), 0 0 0 3px rgba(255, 95, 175, .38); }
html[data-theme="nacht"] .search input::placeholder, html[data-theme="nacht"] .field input::placeholder, html[data-theme="nacht"] .field textarea::placeholder { color: #b98ab0; }
html[data-theme="nacht"] .search svg { stroke: #ff9ccf; }
html[data-theme="nacht"] .field input, html[data-theme="nacht"] .field select, html[data-theme="nacht"] .field textarea, html[data-theme="nacht"] .inp, html[data-theme="nacht"] .toolbar .sel, html[data-theme="nacht"] .timer .pick select { background: rgba(255, 255, 255, .08); color: var(--ink); }
html[data-theme="nacht"] .field input:focus, html[data-theme="nacht"] .field select:focus, html[data-theme="nacht"] .field textarea:focus, html[data-theme="nacht"] .inp:focus { box-shadow: var(--sh-inset), 0 0 0 3px rgba(255, 95, 175, .4); }
html[data-theme="nacht"] .timer .pick select option, html[data-theme="nacht"] .field select option { background: #25134a; color: var(--ink); }
html[data-theme="nacht"] .seg { background: rgba(255, 255, 255, .07); }
html[data-theme="nacht"] { --lg-bird: #ff5fae; --lg-page: #b48cff; --lg-edge: #ffe3f3; }
html[data-theme="nacht"] .logo svg { filter: drop-shadow(0 0 8px rgba(255, 95, 175, .55)); }
html[data-theme="nacht"] .nav a[aria-current="page"] { background: linear-gradient(160deg, rgba(255, 95, 175, .3), rgba(255, 95, 175, .14)); box-shadow: 0 0 16px rgba(255, 95, 175, .3), inset 0 0 0 1px rgba(255, 140, 205, .4); }
@media (hover: hover) { html[data-theme="nacht"] .nav a:hover, html[data-theme="nacht"] .nav .navbtn:hover { background: rgba(255, 95, 175, .16); } }
/* Knöpfe */
html[data-theme="nacht"] .btn { background: rgba(255, 255, 255, .09); color: var(--violet-deep); border: 1.5px solid rgba(255, 140, 205, .35); }
html[data-theme="nacht"] .btn:hover { background: rgba(255, 95, 175, .2); }
html[data-theme="nacht"] .btn.primary, html[data-theme="nacht"] .seg input:checked + span, html[data-theme="nacht"] .chip.on, html[data-theme="nacht"] .chipcheck input:checked + .chip, html[data-theme="nacht"] .tbtn.on { background: linear-gradient(180deg, #f0589f 0%, #cf3a8b 100%); color: #fff; border-color: rgba(255, 190, 225, .6); box-shadow: 0 0 18px rgba(255, 95, 175, .5); }
html[data-theme="nacht"] .btn.primary:hover { background: linear-gradient(180deg, #f56aac 0%, #d9449a 100%); }
html[data-theme="nacht"] .btn.danger { color: #ff9fbf; }
html[data-theme="nacht"] .tbtn { background: rgba(255, 255, 255, .09); color: var(--violet-deep); border: 1.5px solid rgba(255, 140, 205, .35); }
html[data-theme="nacht"] .tbtn:hover { background: rgba(255, 95, 175, .2); }
html[data-theme="nacht"] .chip { background: var(--lav-100); color: var(--violet-deep); }
html[data-theme="nacht"] .avatar { background: linear-gradient(160deg, #ff8fc6, #b05bff); border-color: rgba(255, 200, 230, .85); box-shadow: 0 0 16px rgba(255, 95, 175, .5); }
html[data-theme="nacht"] .bar > i { background: linear-gradient(90deg, #ff8fc6, #ff4fa5); box-shadow: 0 0 10px rgba(255, 95, 175, .6); }
html[data-theme="nacht"] .bar.pink > i { background: linear-gradient(90deg, #ffb0d8, #ff5fae); }
html[data-theme="nacht"] .stars svg { fill: rgba(255, 255, 255, .18); }
/* Etiketten */
html[data-theme="nacht"] .tag { background: rgba(255, 130, 200, .18); color: #ffb8de; }
html[data-theme="nacht"] .tag.wunsch { background: rgba(255, 120, 160, .2); color: #ff9fbf; }
html[data-theme="nacht"] .tag.lese { background: rgba(255, 214, 120, .18); color: #ffd98a; }
html[data-theme="nacht"] .tag.gelesen, html[data-theme="nacht"] .tag.sage { background: rgba(130, 230, 170, .16); color: #9ee8b8; }
html[data-theme="nacht"] .tag.sub { background: rgba(140, 170, 255, .2); color: #b8c9ff; }
html[data-theme="nacht"] .tag.plain { background: rgba(255, 255, 255, .08); color: var(--ink-soft); }
/* Bücher, Karten, Zitate */
html[data-theme="nacht"] .cover { box-shadow: 0 0 16px rgba(255, 95, 175, .32), 4px 8px 16px rgba(8, 2, 28, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
html[data-theme="nacht"] .books[data-view="liste"] .bk, html[data-theme="nacht"] .books[data-view="detail"] .bk { background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 140, 205, .3); }
html[data-theme="nacht"] .polaroid, html[data-theme="nacht"] .qcard, html[data-theme="nacht"] .qcard:nth-child(even) { background: var(--clay-sm); }
html[data-theme="nacht"] .tape { background: rgba(255, 143, 198, .55); }
html[data-theme="nacht"] .qitem { background: rgba(255, 255, 255, .07); border-color: rgba(255, 140, 205, .25); color: var(--ink); }
html[data-theme="nacht"] .x:hover { color: #ff9fbf; background: rgba(255, 120, 160, .2); }
html[data-theme="nacht"] .swatches span { border-color: rgba(255, 255, 255, .8); }
html[data-theme="nacht"] .notice { background: linear-gradient(160deg, rgba(255, 214, 120, .2), rgba(255, 214, 120, .1)); color: #ffe7b0; border: 1px solid rgba(255, 214, 120, .35); }
html[data-theme="nacht"] .csitem, html[data-theme="nacht"] .scanbar, html[data-theme="nacht"] .dupitem, html[data-theme="nacht"] .qrow { background: rgba(255, 255, 255, .08); color: var(--ink); }
html[data-theme="nacht"] .qmark.good { background: rgba(130, 230, 170, .2); color: #9ee8b8; }
html[data-theme="nacht"] .csnoimg { background: linear-gradient(160deg, rgba(255, 120, 195, .22), rgba(255, 255, 255, .06)); }
html[data-theme="nacht"] .popmenu button.on .cnt { background: rgba(255, 255, 255, .14); color: var(--violet-deep); }
/* Fenster, Menüs, Hinweise */
html[data-theme="nacht"] .scrim { background: rgba(10, 4, 30, .6); }
html[data-theme="nacht"] .modal { background: linear-gradient(160deg, rgba(48, 22, 92, .97), rgba(30, 14, 62, .97)); border: 1.5px solid rgba(255, 140, 205, .5); box-shadow: 0 0 34px rgba(255, 95, 175, .28), 0 30px 70px rgba(5, 0, 20, .6); }
html[data-theme="nacht"] .menu { background: linear-gradient(160deg, rgba(48, 22, 92, .98), rgba(30, 14, 62, .98)); border: 1.5px solid rgba(255, 140, 205, .5); box-shadow: 0 0 28px rgba(255, 95, 175, .28), 0 18px 44px rgba(5, 0, 20, .55); }
html[data-theme="nacht"] .menu svg { stroke: #ff9ccf; }
html[data-theme="nacht"] .menu button:hover, html[data-theme="nacht"] .menu a:hover, html[data-theme="nacht"] .menu button:focus-visible, html[data-theme="nacht"] .menu a:focus-visible { background: rgba(255, 95, 175, .18); }
html[data-theme="nacht"] .toast { background: #2f1660; color: var(--ink); border: 1.5px solid rgba(255, 140, 205, .5); box-shadow: 0 0 20px rgba(255, 95, 175, .35); }
html[data-theme="nacht"] .toast.bad { background: #5a1740; }
@media (max-width: 900px) { html[data-theme="nacht"] .side { box-shadow: var(--sh-raise); background: linear-gradient(160deg, rgba(48, 22, 92, .94), rgba(30, 14, 62, .94)); } }
/* Anmeldeseite */
html[data-theme="nacht"] .authstage { background: linear-gradient(180deg, #150a30 0, #231048 40%, #2e1458 100%); }
html[data-theme="nacht"] .authart { filter: brightness(.5) saturate(1.3) hue-rotate(-25deg); opacity: .85; }
html[data-theme="nacht"] .authcard { background: linear-gradient(165deg, rgba(48, 22, 92, .95), rgba(30, 14, 62, .95)); border: 1.5px solid rgba(255, 140, 205, .5); box-shadow: 0 0 34px rgba(255, 95, 175, .28), 0 30px 70px rgba(5, 0, 20, .55); }
html[data-theme="nacht"] { background: #1f0f40; }
html[data-theme="nacht"] body { min-height: 100vh; }
/* Nachtleuchten: Textfarben, die im hellen Design fest eingestellt sind */
html[data-theme="nacht"] :is(.menu button, .menu a, .popmenu button, .popmenu a, .menu-head b) { color: var(--ink); }
html[data-theme="nacht"] :is(.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible) { color: #fff; }
html[data-theme="nacht"] :is(.menu-head small, .menu-label, .page-sub, .hint, .qcard cite, .note-line) { color: var(--ink-soft); }
html[data-theme="nacht"] .qcard blockquote { color: var(--ink); }
html[data-theme="nacht"] .hint.bad, html[data-theme="nacht"] .dupt.bad, html[data-theme="nacht"] .qrow.bad small { color: #ff9fbf; }
html[data-theme="nacht"] .hint.good { color: #9ee8b8; }
html[data-theme="nacht"] :is(.linkbtn, details.more > summary) { color: #ffa3d3; }
html[data-theme="nacht"] :is(.linkbtn:hover, .linkbtn:focus-visible) { color: #fff; }

/* ---------------------------------------------------------------- Offline-Betrieb */
.iconbtn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--violet-deep); background: var(--clay-sm); box-shadow: var(--sh-small); }
.iconbtn[hidden] { display: none; }
.iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn.off { color: #b2476b; }
.iconbtn .syncn { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--lav-500); color: #fff; font: 800 .72rem/20px var(--sans); text-align: center; }
.iconbtn:focus-visible { outline: 3px solid var(--lav-400); outline-offset: 2px; }
.syncl { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; max-height: 40vh; overflow: auto; }
.syncl li { padding: 8px 12px; border-radius: 12px; background: var(--lav-50); font-weight: 600; font-size: .92rem; }
.tag.wait { background: #fff4d6; color: #8a6a14; }
.updatebar { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: var(--sh-raise); }
@media (max-width: 900px) {
  .updatebar { bottom: calc(118px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 40px); max-width: 440px; justify-content: space-between; gap: 10px; padding: 5px 6px 5px 16px; font-size: .84rem; }
  .updatebar span { white-space: nowrap; }
  .updatebar .btn { white-space: nowrap; font-size: .8rem; min-height: 0; padding: 7px 14px; }
}
html[data-theme="kirschbluete"] .iconbtn { background: rgba(255, 255, 255, .72); }
html[data-theme="nacht"] .iconbtn { background: rgba(255, 255, 255, .09); border: 1.5px solid rgba(255, 140, 205, .35); color: #ffa3d3; }
html[data-theme="nacht"] .iconbtn.off { color: #ff9fbf; }
html[data-theme="nacht"] .syncl li { background: rgba(255, 255, 255, .07); }
html[data-theme="nacht"] .tag.wait { background: rgba(255, 214, 120, .18); color: #ffd98a; }
html[data-theme="nacht"] .updatebar { background: #2f1660; border: 1.5px solid rgba(255, 140, 205, .5); }

/* ---------------------------------------------------------------- Kopfzeile am Handy: Logo links, Suche als Pictogramm */
.top .brand.mbrand, #searchBtn { display: none; }
@media (max-width: 900px) { .top .brand.mbrand { display: flex; flex: none; padding: 0; } .top .mbrand .logo { width: 46px; height: 42px; } .top .mbrand b { font-size: 1.45rem; line-height: 1.1; } .top .mbrand small { display: none; } }
@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
  .top .hello { display: none; }
  .top .brand.mbrand { order: 0; margin-right: auto; }
  #searchBtn { display: grid; order: 2; }
  .top #syncBtn { order: 3; }
  .top #addBook { order: 4; width: 46px; height: 46px; padding: 0; border-radius: 50%; gap: 0; justify-content: center; }
  .top #addBook .lbl { display: none; }
  .top #addBook svg { margin: 0; width: 22px; height: 22px; }
  .top .usermenu { order: 5; }
  .top .search { order: 9; flex: 1 1 100%; margin: 0; display: none; }
  .top.searching .search { display: flex; }
  .top:has(#syncBtn:not([hidden])) .mbrand b { display: none; }
}
html[data-theme="nacht"] .top .mbrand b, html[data-theme="kirschbluete"] .top .mbrand b { font-size: 1.45rem; }

/* ---------- Startseite: Seite eintragen, Stoppuhr, Heute mit Tagesziel ---------- */
.pgcard h2, .pgtoday h2 { margin-bottom: 12px; }
.pgbook { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; margin-bottom: 8px; }
.pgbook .t { display: block; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.pgswitch { display: inline-block; margin-top: 6px; padding: 2px 0; font-size: .85rem; text-align: left; }
.pgh { margin: 14px 0 4px; font: 800 .74rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.pgpick { max-height: 60vh; overflow-y: auto; margin: 0 -4px 14px; padding: 0 4px; }
.pgbook .a { display: block; font-size: .82rem; color: var(--ink-soft); }
.pgbig { text-align: center; margin: 10px 0 2px; display: grid; justify-items: center; gap: 2px; }
.pgnum { width: 100%; max-width: 240px; border: 0; border-bottom: 2px dashed var(--lav-200); background: transparent; text-align: center; font: 500 3.3rem/1.1 var(--num); color: var(--lav-600); font-variant-numeric: tabular-nums; padding: 0 4px; -moz-appearance: textfield; appearance: textfield; border-radius: 0; }
.pgnum::-webkit-outer-spin-button, .pgnum::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pgnum:focus { outline: none; border-bottom-color: var(--lav-500); }
.pgrange { -webkit-appearance: none; appearance: none; width: calc(100% - 12px); margin: 18px 6px 4px; height: 28px; background: transparent; cursor: pointer; }
.pgrange::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--lav-300) 0, var(--lav-500) var(--p, 0%), var(--lav-100) var(--p, 0%)); }
.pgrange::-moz-range-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--lav-300) 0, var(--lav-500) var(--p, 0%), var(--lav-100) var(--p, 0%)); }
.pgrange::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--lav-500); box-shadow: 0 2px 8px rgba(60, 30, 140, .3); }
.pgrange::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--lav-500); box-shadow: 0 2px 8px rgba(60, 30, 140, .3); }
.pgrange:focus-visible { outline: 3px solid var(--lav-400); outline-offset: 4px; border-radius: 99px; }
.pgends { display: flex; justify-content: space-between; margin: 0 6px 12px; font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
.pgsteps { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0 14px; }
.pgsteps .pgstep { min-width: 56px; min-height: 40px; justify-content: center; font-size: .95rem; padding: 0 14px; }
.pgsave { width: 100%; min-height: 50px; justify-content: center; }
.pgsave:disabled { opacity: .55; cursor: default; }
.pgalt { text-align: center; margin: 14px 0 0; font-size: .88rem; color: var(--ink-soft); font-weight: 700; }
.pgalt b { font-variant-numeric: tabular-nums; color: var(--ink); }
.pgcard h2 + .pgbook, .pgcard h2 + .timer-slot { margin-top: 0; }
.pgcard .timer { margin-top: 4px; }
.pgcard .timer .pick.one { grid-template-columns: 1fr; max-width: 260px; }

.pgtotal { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.pgtotal b { font: 500 2.6rem/1 var(--num); color: var(--lav-600); font-variant-numeric: tabular-nums; }
.pgtotal span { font-weight: 800; color: var(--ink-soft); }
.pgtotal em { margin-left: auto; font-style: normal; font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.pgtotal em.ok { color: var(--lav-600); }
.pgscale { position: relative; height: 12px; margin: 30px 0 10px; border-radius: 99px; background: var(--lav-100); }
.pgscale > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--lav-300), var(--lav-500)); transition: width .5s; }
.pgscale.thin { height: 9px; margin: 26px 0 6px; }
/* Zielmarke: Ring in der Themefarbe, mit Rand in Kartenfarbe, damit sie auf Balken und Spur lesbar bleibt */
.pgmark { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--card); border: 3px solid var(--lav-500); box-shadow: 0 0 0 2px var(--card); }
.pgmark u { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); color: var(--lav-600); font: 800 .72rem/1.3 var(--sans); text-decoration: none; white-space: nowrap; }
.pgscale.thin .pgmark { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-width: 2.5px; }
.pgscale.thin .pgmark u { font-size: .66rem; }
.pgrows { display: grid; gap: 4px; margin: 12px 0; }
.pgrow { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: baseline; width: 100%; padding: 4px 0; background: none; border: 0; border-top: 1px dashed var(--line); text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.pgrow:first-child { border-top: 0; }
.pgrow .t { font-weight: 800; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgrow .n { font-weight: 800; font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pgrow .pgscale { grid-column: 1 / -1; }
.pgnogoal { margin: 2px 0 12px; }
.pgtoday .more { background: none; border: 0; }
.pgtoday .note-line { margin-top: 8px; }

html[data-theme="kirschbluete"] .pgscale > i { background: linear-gradient(90deg, #f6a8c4, #d9608f); }
html[data-theme="kirschbluete"] .pgrange::-webkit-slider-runnable-track { background: linear-gradient(90deg, #f6a8c4, #d9608f var(--p, 0%), var(--lav-100) var(--p, 0%)); }
html[data-theme="kirschbluete"] .pgrange::-moz-range-track { background: linear-gradient(90deg, #f6a8c4, #d9608f var(--p, 0%), var(--lav-100) var(--p, 0%)); }
html[data-theme="kirschbluete"] html[data-theme="kirschbluete"] .pgmark { border-color: #d9608f; }
html[data-theme="kirschbluete"] .pgrange::-webkit-slider-thumb { border-color: #d9608f; }
html[data-theme="kirschbluete"] .pgrange::-moz-range-thumb { border-color: #d9608f; }
html[data-theme="kirschbluete"] .pgnum, html[data-theme="kirschbluete"] .pgtotal b, html[data-theme="kirschbluete"] .pgtoday .tb .big b { color: #c9497a; }

html[data-theme="nacht"] html[data-theme="nacht"] .pgscale { background: rgba(255, 255, 255, .1); }
html[data-theme="nacht"] .pgscale > i { background: linear-gradient(90deg, #ff8fc6, #ff4fa5); box-shadow: 0 0 10px rgba(255, 95, 175, .6); }
html[data-theme="nacht"] html[data-theme="nacht"] .pgmark { background: #25134a; border-color: #ffd6ec; box-shadow: 0 0 0 2px #25134a, 0 0 10px rgba(255, 190, 225, .8); }
html[data-theme="nacht"] .pgmark u { color: #ffd6ec; }
html[data-theme="nacht"] .pgrange::-webkit-slider-runnable-track { background: linear-gradient(90deg, #ff8fc6, #ff4fa5 var(--p, 0%), rgba(255, 255, 255, .12) var(--p, 0%)); }
html[data-theme="nacht"] .pgrange::-moz-range-track { background: linear-gradient(90deg, #ff8fc6, #ff4fa5 var(--p, 0%), rgba(255, 255, 255, .12) var(--p, 0%)); }
html[data-theme="nacht"] .pgrange::-webkit-slider-thumb { background: #2a0f4f; border-color: #ff8fc6; box-shadow: 0 0 12px rgba(255, 95, 175, .7); }
html[data-theme="nacht"] .pgrange::-moz-range-thumb { background: #2a0f4f; border-color: #ff8fc6; }
html[data-theme="nacht"] .pgnum { border-bottom-color: rgba(255, 140, 205, .4); color: #ffd6ec; text-shadow: 0 0 14px rgba(255, 95, 175, .5); }
html[data-theme="nacht"] .pgtotal b { color: #ffd6ec; text-shadow: 0 0 14px rgba(255, 95, 175, .5); }
html[data-theme="nacht"] .pgtotal em.ok { color: #ffd6ec; }
html[data-theme="nacht"] .pgrow { color: var(--ink); border-color: rgba(255, 140, 205, .25); }

@media (max-width: 640px) {
  .pgnum { font-size: 3.6rem; }
  }

/* Nachtragen */
.bfinfo{margin:0 0 12px;font-weight:600}
.bfpre{margin:-4px 0 10px}
#bfForm .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pgback{margin:10px 0 0;text-align:center}
.pgback [hidden]{display:none}

/* Heute: Gesamtbeschriftung und Lesereihen je Buch */
.pgcap { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .8rem; font-weight: 800; color: var(--ink-soft); }
.pgcap span:last-child { font-variant-numeric: tabular-nums; }
.pgtoday .pgcap + .pgscale { margin-top: 28px; }


/* Heute: Gesamtkasten und Buchzeilen */
.pgtoday { grid-column: 1 / -1; container-type: inline-size; container-name: pgt; }
.pgtoday .tb { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 36px; align-items: center; padding: 18px 22px 12px; margin: 6px 0 4px; border-radius: 22px; background: linear-gradient(135deg, var(--lav-100), var(--lav-50)); border: 1px solid var(--line); }
html[data-theme="kirschbluete"] .pgtoday .tb { background: linear-gradient(135deg, #ffe4ed, rgba(255, 255, 255, .6)); }
html[data-theme="nacht"] .pgtoday .tb { background: linear-gradient(135deg, rgba(255, 95, 175, .2), rgba(255, 255, 255, .04)); border-color: rgba(255, 140, 205, .35); box-shadow: 0 0 22px rgba(255, 95, 175, .16); }
.pgtoday .tb .big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pgtoday .tb .big b { font: 500 3.4rem/1 var(--num); color: var(--lav-600); font-variant-numeric: tabular-nums; }
html[data-theme="nacht"] .pgtoday .tb .big b { color: #ffd6ec; text-shadow: 0 0 16px rgba(255, 95, 175, .55); }
.pgtoday .tb .big span { font-weight: 800; color: var(--ink-soft); }
.pgtoday .tst { margin-top: 4px; font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.pgtoday .tst .ok { display: inline-flex; align-items: center; gap: 5px; color: var(--lav-600); white-space: nowrap; }
html[data-theme="nacht"] .pgtoday .tst .ok { color: #ffd6ec; }
.pgtoday .tst svg { width: 15px; height: 15px; }
.pgtoday .tb .pgcap { margin-top: 0; }
.pgtoday .tb .pgscale { height: 14px; margin: 30px 0 8px; }
.pgtoday .tb .pgscale .pgmark { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-width: 4px; }
.pgtoday .tb .pgscale .pgmark u { font-size: .74rem; }
.pgtoday .pgnogoal { margin: 0; }
.pgtoday .pgh { margin: 16px 0 6px; }
.pgstreaks { display: grid; gap: 10px; }
.pgstreak { --cw: 72px; --fa: #ffc47a; --fb: #f08a4b; --fglow: rgba(240, 138, 75, .4); --tr: var(--lav-100); position: relative; display: grid; grid-template-columns: var(--cw) minmax(170px, 1.15fr) minmax(150px, 2fr) minmax(max-content, 1fr) minmax(190px, auto) 34px; gap: 12px 18px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--lav-50); border: 1px solid var(--line); }
html[data-theme="kirschbluete"] .pgstreak { --fa: #ffb9a0; --fb: #ee6a85; --fglow: rgba(238, 106, 133, .4); background: rgba(255, 255, 255, .55); }
html[data-theme="nacht"] .pgstreak { --fa: #ffc27a; --fb: #ff5fae; --fglow: rgba(255, 95, 175, .6); --tr: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); border-color: rgba(255, 140, 205, .22); --card: #25134a; }
.pgstreak .bcv { padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.pgstreak .bcv .cover { width: var(--cw); }
.pgstreak .bnt { display: block; max-width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.pgstreak .bnt .t { display: block; font: 800 1rem/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgstreak .bnt .a { display: block; margin-top: 2px; font: 700 .78rem/1.2 var(--sans); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgstreak .bnt:hover .t { color: var(--lav-600); }
.pgstreak .bto, .pgstreak .bov, .pgstreak .bst { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pgstreak .bl { white-space: nowrap; font: 800 .78rem/1.25 var(--sans); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pgstreak .bsub { font: 700 .76rem/1.25 var(--sans); color: var(--ink-soft); }
.pgstreak .bsub b, .pgstreak .bl b { color: var(--lav-600); }
html[data-theme="nacht"] .pgstreak .bsub b, html[data-theme="nacht"] .pgstreak .bl b { color: #ffd6ec; }
.pgstreak .pgscale { margin: 20px 0 0; height: 5px; }
.pgstreak .bl.mob, .pgstreak .mob { display: none; }
.pgstreak .n { font-size: .78rem; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.pgstreak .n b { font: 500 1.2rem/1 var(--num); color: var(--fb); margin-right: 2px; }
.pgstreak:not(.hot) .n b { color: var(--ink-soft); }
.pgstreak .dots { display: flex; gap: 4px; }
.pgstreak .dot i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--tr); }
.pgstreak .dot.on i { background: linear-gradient(160deg, var(--fa), var(--fb)); }
html[data-theme="nacht"] .pgstreak .dot.on i { box-shadow: 0 0 8px var(--fglow); }
.pgstreak .dot.td i { box-shadow: 0 0 0 1.5px var(--card), 0 0 0 3px var(--lav-500); }
html[data-theme="nacht"] .pgstreak .dot.on.td i { box-shadow: 0 0 8px var(--fglow), 0 0 0 1.5px #25134a, 0 0 0 3px #ffd6ec; }
.pgstreak .bgo { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1.5px solid var(--lav-300); background: transparent; color: var(--lav-600); cursor: pointer; }
.pgstreak .bgo svg { width: 15px; height: 15px; }
.pgstreak .bgo:hover { background: var(--lav-100); }
html[data-theme="nacht"] .pgstreak .bgo { color: #ffd6ec; border-color: rgba(255, 140, 205, .55); }
.pgall { display: block; margin: 10px auto 0; font-weight: 800; }
@container pgt (max-width: 939px) and (min-width: 700px) {
  .pgstreak { grid-template-columns: var(--cw) minmax(150px, 1fr) minmax(150px, 1.4fr) minmax(max-content, 1fr) 34px; }
  .pgstreak .bst { grid-column: 2 / 5; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 640px) {
  .pgtoday .tb { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px 8px; }
  .pgtoday .tb .big b { font-size: 3rem; }
}
@container pgt (max-width: 699px) {
  .pgstreak { --cw: 72px; grid-template-columns: var(--cw) minmax(0, 1fr); grid-template-areas: "cv ti" "cv to" "cv ov" "st st"; gap: 3px 12px; padding: 10px; align-items: start; }
  .pgstreak .bcv { grid-area: cv; }
  .pgstreak .bti { grid-area: ti; padding-right: 38px; }
  .pgstreak .bto { grid-area: to; }
  .pgstreak .bov { grid-area: ov; }
  .pgstreak .bst { grid-area: st; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
  .pgstreak .bgo { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; }
  .pgstreak .dsk { display: none; }
  .pgstreak .bl.mob { display: block; }
  .pgstreak .mob { display: inline; }
  .pgstreak .dot i { width: 11px; height: 11px; }
}

/* Wo bist du gerade?: Cover links, Eingabe rechts (volle Breite) */
.pgcard { grid-column: 1 / -1; }
.w2 { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 8px 30px; align-items: start; }
.w2 .cv .cover { width: 100%; display: block; }
.w2 .tt { font-weight: 800; font-size: 1.55rem; line-height: 1.2; margin: 2px 0 2px; overflow-wrap: anywhere; }
.w2 .au { color: var(--ink-soft); font-weight: 700; margin: 0 0 6px; }
.w2 .sw { margin: 0 0 14px; }
.w2 .ent { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 6px 0 4px; }
.w2 .nb { display: grid; gap: 2px; }
.w2 .nb label { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.w2 .nb .pgnum { width: 7ch; text-align: left; margin: 0; }
.w2 .pgsteps { margin: 0; }
.w2 .pr { display: flex; justify-content: space-between; font-weight: 800; font-size: .9rem; margin: 6px 0 2px; }
.w2 .pr span:last-child { color: var(--ink-soft); }
.w2 .btns { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.w2 .btns .btn { width: auto; flex: 1 1 200px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; }
.w2 .btns svg { width: 18px; height: 18px; }
.w2 .btns b { font-variant-numeric: tabular-nums; }
.w2 .alt { margin: 12px 0 0; font-size: .85rem; color: var(--ink-soft); font-weight: 700; text-align: left; }
.w2 .pgalt { text-align: left; }
.w2 .timer-slot { margin-top: 6px; }
@media (max-width: 640px) {
  .w2 { grid-template-columns: 84px minmax(0, 1fr); gap: 6px 14px; }
  .w2 .main { display: contents; }
  .w2 .head { grid-column: 2; grid-row: 1; }
  .w2 .body { grid-column: 1 / -1; }
  .w2 .tt { font-size: 1.1rem; }
  .w2 .au { font-size: .85rem; }
  .w2 .sw { margin-bottom: 4px; }
}
/* Wo bist du gerade?: Inhalt füllt genau die Höhe des Covers */
.w2 { align-items: stretch; }
.w2 .main { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.w2 .head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.w2 .hr { display: grid; gap: 6px; justify-items: end; text-align: right; flex: none; padding-top: 4px; }
.w2 .hr [hidden] { display: none !important; }
.w2 .tt { font-size: 1.4rem; margin-top: 0; }
.w2 .au { margin: 0; }
.w2 .body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; margin-top: 6px; }
.w2 .ent { margin: 0; }
.w2 .pr { margin: 0; }
.w2 .pgrange { margin: 0; }
.w2 .btns { margin-top: 4px; }
.w2 .btns .btn { min-height: 46px; }
@media (max-width: 640px) {
  .w2 .main { display: contents; }
  .w2 .head { display: block; grid-column: 2; grid-row: 1; }
  .w2 .hr { justify-items: start; text-align: left; padding: 6px 0 0; }
  .w2 .body { margin-top: 8px; gap: 10px; }
}
.w2 .hr .linkbtn { text-align: inherit; }

/* Stapel ungelesener Bücher: Spalte rechts (ab 1400 px) oder Karte im Raster */
.rail { display: none; }
.rail[hidden] { display: none !important; }
.rail, .stackcard { --pile-pad: 12px; }
.rh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rh h2 { margin: 0; }
.rh .cnt { white-space: nowrap; margin: 2px 0 0; font: 700 .74rem/1.3 var(--sans); color: var(--ink-soft); }
.rh .more { flex: none; }
.pile { display: flex; flex-direction: column; padding: var(--pile-pad) 10px 2px; min-height: 0; }
.pile > :first-child { margin-top: auto; }
.pileshelf { height: 9px; border-radius: 99px; background: linear-gradient(180deg, var(--lav-200), var(--lav-300)); margin-top: 2px; flex: none; box-shadow: 0 3px 8px rgba(110, 80, 160, .25); }
.sp { position: relative; display: flex; align-items: center; flex: none; height: var(--h); width: var(--w); margin: -1px 0 0 var(--o); padding: 0; transform: rotate(var(--r)); border: 0; border-radius: 5px 9px 9px 5px; cursor: pointer; text-align: left; font: 800 .8rem/1.1 var(--sans); overflow: hidden; box-shadow: 0 2px 4px rgba(60, 40, 100, .22), inset 8px 0 0 rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .4); transition: transform .15s; }
.sp .t { flex: 1; min-width: 0; padding: 0 12px 0 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .sp:hover { transform: rotate(0deg) translateX(6px); } }
html[data-theme="nacht"] .sp { box-shadow: 0 0 10px rgba(255, 95, 175, .25), inset 8px 0 0 rgba(0, 0, 0, .2); }
.stackcard .pile { padding-top: 14px; }
.pilemore { display: block; margin: 8px 0 0; text-align: center; }
.rail .pileshelf { position: sticky; bottom: 0; }
.btn .lbl { display: inline; font-size: inherit; color: inherit; margin: 0; font-weight: inherit; }
@media (min-width: 1400px) {
  body[data-view="start"] .app { grid-template-columns: 248px minmax(0, 1fr) 300px; }
  body[data-view="start"] .rail:not([hidden]) { position: sticky; top: 24px; height: calc(100vh - 48px); display: flex; flex-direction: column; padding: 22px 18px 18px; border-radius: 30px; background: var(--clay); box-shadow: var(--sh-raise); min-width: 0; overflow: hidden; }
  body[data-view="start"] .rail .pile { flex: 1; overflow-y: auto; scrollbar-width: none; }
  body[data-view="start"] .stackcard { display: none; }
}
.rail h2 { font: 800 1.08rem/1.3 var(--sans); color: var(--ink); }
html[data-theme="kirschbluete"] .rail h2 { font-weight: 600; }
.rh .more { font: 700 .8rem var(--sans); color: var(--violet-deep); text-decoration: none; }
.rh .more:hover { color: var(--lav-600); }
html[data-theme="nacht"] .rail h2 { color: #ffd6ec; }

/* ---------------------------------------------------------------- Wie eine native App am Touchgerät:
   Eingabefelder mit mindestens 16 px verhindern das automatische Heranzoomen (iOS), kein Doppeltipp-Zoom, keine graue Tippmarkierung. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (pointer: coarse) {
  input, select, textarea, .field input, .field select, .field textarea, .inp, .toolbar .sel, .timer .pick select { font-size: max(16px, 1em) !important; }
  html, body, button, a, input, select, textarea, label, [data-act], [data-open] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  body { overscroll-behavior-y: none; }
  button, .btn, .tabs a, nav a, [data-act] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}

/* ---------------------------------------------------------------- Lesekalender (Statistik): Tagesblätter */
.calwide { grid-column: 1 / -1; }
.calhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.calhead h2 { margin: 0; }
.calhead .calmon { font: 800 .95rem var(--sans); color: var(--lav-600); text-transform: capitalize; }
.calnav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.calnav button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--lav-300); background: transparent; color: var(--lav-600); font: 800 1.1rem/1 var(--sans); cursor: pointer; }
.calnav button:hover { background: var(--lav-100); }
.calnav .calnow { width: auto; padding: 0 14px; font-size: .8rem; }
.calsum { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; }
.calsum span { padding: 5px 12px; border-radius: 99px; background: var(--lav-100); font: 800 .76rem var(--sans); color: var(--ink-soft); }
.calsum span b { color: var(--lav-600); font-size: .92rem; }
.calmsg, .calhint { margin: 12px 0 0; }
.calwd, .calgr { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.calwd { margin-bottom: 6px; }
.calwd i { font: 800 .7rem var(--sans); font-style: normal; color: var(--ink-soft); text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.calgr .cl { position: relative; aspect-ratio: 1 / 1.2; padding: 0; border: 0; border-radius: 12px 12px 10px 10px; background: #fff; box-shadow: 0 3px 8px rgba(80, 50, 120, .16); display: flex; flex-direction: column; overflow: hidden; min-width: 0; cursor: pointer; font: inherit; color: inherit; text-align: center; }
.calgr .cl.out { visibility: hidden; box-shadow: none; cursor: default; }
.calgr .cl .h { height: 26px; flex: none; display: flex; align-items: center; justify-content: center; gap: 5px; background: linear-gradient(180deg, var(--lav-300), #a98be0); color: #fff; font: 800 .8rem var(--sans); position: relative; }
.calgr .cl .h::before, .calgr .cl .h::after { content: ""; position: absolute; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .75); }
.calgr .cl .h::before { left: 12%; }
.calgr .cl .h::after { right: 12%; }
.calgr .cl .h span { font-size: .62rem; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }
.calgr .cl .h em { font-style: normal; display: inline-flex; }
.calgr .cl .h em svg { width: 14px; height: 14px; fill: #fff; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .8)); }
.calgr .cl.idle { box-shadow: none; background: transparent; border: 1px dashed var(--line); }
.calgr .cl.idle .h { background: var(--line); color: var(--ink-soft); opacity: .7; }
.calgr .cl.idle .h::before, .calgr .cl.idle .h::after { background: rgba(255, 255, 255, .6); }
.calgr .cl.idle .b .num { color: var(--ink-soft); opacity: .45; }
.calgr .cl.idle .tear { display: none; }
.calgr .cl.fin .h { background: linear-gradient(180deg, #f58fb4, #d9558a); }
.calgr .cl .b { flex: 1; display: flex; align-items: center; justify-content: center; padding: 5px 5px 14px; min-height: 0; position: relative; width: 100%; }
.calgr .cl .b .cover { width: 62%; max-height: 100%; box-shadow: 0 3px 8px rgba(60, 40, 100, .3); aspect-ratio: 2 / 3; }
.calgr .cl .b .cover + .cover { position: absolute; width: 50%; right: 6px; bottom: 14px; transform: rotate(7deg); }
.calgr .cl .b .num { font: 500 1.6rem var(--num); color: var(--lav-300); }
.calgr .cl .b .pp { position: absolute; left: 6px; bottom: 3px; font: 800 .62rem var(--sans); color: var(--ink-soft); }
.calgr .cl .b .more { position: absolute; right: 5px; top: 3px; padding: 0 6px; border-radius: 99px; background: var(--lav-600); color: #fff; font: 800 .6rem/1.6 var(--sans); }
.calgr .cl .tear { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(90deg, transparent 0 5px, var(--lav-100) 5px 7px); }
.calgr .cl.fut { opacity: .4; cursor: default; }
.calgr .cl.today { outline: 2.5px solid var(--lav-500); outline-offset: 1px; }
.calgr .cl.sel { outline: 2.5px solid #d9558a; outline-offset: 1px; }
.calgr .cl:focus-visible { outline: 3px solid var(--lav-500); outline-offset: 2px; }
.caldet { margin-top: 4px; }
.caldet-empty { margin: 0; }
.caldet h3 { margin: 0 0 8px; font: 800 .95rem var(--sans); }
.calbk { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; width: 100%; padding: 6px 0; border: 0; border-top: 1px dashed var(--line); background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.caldet h3 + .calbk { border-top: 0; }
.calbk .cover { width: 44px; }
.calbk b { display: block; font: 800 .9rem/1.2 var(--sans); }
.calbk .a, .calbk .s { display: block; font: 700 .76rem/1.3 var(--sans); color: var(--ink-soft); }
.calbk .done { font-style: normal; font-weight: 800; color: #d9558a; display: inline-flex; align-items: center; gap: 4px; }
.calbk .done svg { width: 13px; height: 13px; fill: currentColor; }
html[data-theme="nacht"] .calgr .cl { background: #2a1855; box-shadow: 0 0 10px rgba(255, 95, 175, .18); }
html[data-theme="nacht"] .calgr .cl .tear { background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, .12) 5px 7px); }
html[data-theme="nacht"] .calgr .cl .b .num { color: rgba(255, 255, 255, .22); }
html[data-theme="nacht"] .calgr .cl .h { background: linear-gradient(180deg, #7a56c9, #5c3fa8); }
html[data-theme="nacht"] .calgr .cl.fin .h { background: linear-gradient(180deg, #ff6fae, #d9448a); }
html[data-theme="nacht"] .calbk .done, html[data-theme="nacht"] .calhead .calmon { color: #ffa3d3; }
html[data-theme="nacht"] .calsum span b { color: #ffd6ec; }
html[data-theme="nacht"] .caldet { background: rgba(255, 255, 255, .06); }
html[data-theme="kirschbluete"] .calgr .cl:not(.fin) .h { background: linear-gradient(180deg, #f3b2c8, #e58aae); }
@media (max-width: 640px) {
  .calwide { padding-left: 12px; padding-right: 12px; }
  .calwd, .calgr { gap: 4px; }
  .calgr .cl { border-radius: 9px 9px 8px 8px; }
  .calgr .cl .h { height: 18px; font-size: .68rem; }
  .calgr .cl .h span, .calgr .cl .h::before, .calgr .cl .h::after { display: none; }
  .calgr .cl .b { padding: 3px 3px 8px; }
  .calgr .cl .b .num { font-size: 1.1rem; }
  .calgr .cl .b .pp { display: none; }
  .calgr .cl .tear { height: 3px; }
  .calgr .cl .b .cover + .cover { right: 2px; bottom: 8px; }
}

/* ===== Bewertung in halben Sternen (0 bis 10) und "Als beendet markieren" ===== */
.rate { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: .85rem; color: var(--ink); white-space: nowrap; }
.rate svg { width: 15px; height: 15px; fill: var(--gold); stroke: rgba(150, 100, 20, .35); stroke-width: 1; }
.rate small { font-weight: 700; opacity: .6; font-size: .72rem; }
.ratebox { display: flex; flex-direction: column; gap: 8px; }
.stars10 { position: relative; display: flex; justify-content: center; gap: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none; max-width: 100%; }
.stars10:focus-visible { outline: 2px solid var(--lav-500, #8a6ad8); outline-offset: 4px; border-radius: 8px; }
.stars10 .st { position: relative; display: block; flex: 1 1 0; max-width: 42px; aspect-ratio: 1; line-height: 0; cursor: pointer; }
.stars10 .st svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--line); }
.stars10 .st svg.g { fill: var(--gold); stroke: rgba(150, 100, 20, .35); stroke-width: .8; clip-path: inset(0 100% 0 0); transition: clip-path .15s; }
.stars10 .st.full svg.g { clip-path: inset(0 0 0 0); }
.stars10 .st.half svg.g { clip-path: inset(0 50% 0 0); }
.stars10 .st.pop { animation: starpop .45s both; }
@keyframes starpop { 0% { transform: scale(.2) rotate(-40deg); } 70% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(1); } }
.ratescore { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 6px; text-align: center; }
.ratescore b { font: 500 1.9rem/1 var(--script, var(--sans)); color: var(--ink); }
.ratescore > span { color: var(--ink-soft); font-weight: 700; }
.ratescore .rateword { flex-basis: 100%; font-size: .85rem; min-height: 1.2em; }
.ratescore .linkbtn { flex-basis: 100%; font-size: .8rem; }

/* Button auf der Karte */
.pgfin { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 50px; height: 50px; padding: 0; border-radius: 50%; color: var(--lav-600, #6a4cc4); background: transparent; border: 1.5px dashed var(--lav-400, #b9a2ec); cursor: pointer; transition: background .15s, transform .1s; }
.pgfin svg { width: 22px; height: 22px; flex: none; }
.w2 .btns .pgsave { flex: 1 1 140px; }
.w2 .btns .pgfin { flex: none; min-height: 0; align-self: center; }
.w2 .btns2 { margin-top: 10px; }
.tchips .pgfin { width: 40px; height: 40px; margin-left: auto; }
.pgfin:hover { background: var(--surface-2, rgba(150, 120, 220, .1)); }
.pgfin:active { transform: scale(.98); }
.go .pgfin, .go .btns { pointer-events: none; opacity: .55; }

/* Bestätigung und Bewertungs-Popup */
.finq { text-align: center; }
.finq-i { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #ee9ab9, #c04a7d); box-shadow: 0 6px 16px rgba(192, 74, 125, .35); }
.finq-i svg { width: 28px; height: 28px; }
.finq h2 { padding-right: 0; margin-bottom: 8px; }
.finq p { color: var(--ink-soft); margin-bottom: 18px; line-height: 1.45; }
.finq .actions, .ratesheet .actions { justify-content: center; margin-top: 14px; }
.ratesheet h2 { padding-right: 36px; margin-bottom: 0; }

/* Toast mit Aktion */
.toast.act { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; }
.toast.act button { background: rgba(255, 255, 255, .2); color: inherit; border: 0; border-radius: 999px; font: inherit; font-weight: 800; padding: 8px 14px; min-height: 36px; cursor: pointer; }
.toast.act button:hover { background: rgba(255, 255, 255, .32); }

/* Feier auf der Karte */
#pgCard { position: relative; }
#pgCard .cv { position: relative; }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; z-index: 5; }
.fx .ring { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--pink, #d9558a); opacity: 0; transform: translate(-50%, -50%); }
.fx .ring.r2 { border-color: var(--gold); }
.fx .ring.r3 { border-color: #f3a6c3; border-width: 5px; }
.go .fx .ring { animation: finripple .9s .1s ease-out forwards; }
.go .fx .ring.r2 { animation: finripple 1s .3s ease-out forwards; }
.go .fx .ring.r3 { animation: finripple 1.1s .5s ease-out forwards; }
@keyframes finripple { 0% { opacity: .8; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(16); } }
.fx .pt { position: absolute; width: 11px; height: 14px; border-radius: 50% 0 50% 0; opacity: 0; }
.go .fx .pt { animation: finfly 1.6s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes finfly { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); } }
.fx .sparkle { position: absolute; width: 14px; height: 14px; opacity: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.go .fx .sparkle { animation: finspark 1.1s ease-out forwards; }
@keyframes finspark { 0% { opacity: 1; transform: translate(0, 0) scale(.3); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.4) rotate(90deg); } }
.fx .rain { position: absolute; top: -24px; width: 10px; height: 15px; border-radius: 50% 0 50% 0; opacity: 0; }
.go .fx .rain { animation: finfall 2.1s ease-in forwards; }
@keyframes finfall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 1; transform: translate(var(--x), 520px) rotate(var(--r)); } }
.cv.hop { animation: finhop .9s cubic-bezier(.3, 1.3, .5, 1); z-index: 6; }
@keyframes finhop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-22px) scale(1.1); } 70% { transform: translateY(-8px) scale(1.06); } 100% { transform: translateY(0) scale(1); } }
.cv .seal { position: absolute; right: -10px; bottom: -10px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; z-index: 4; opacity: 0; transform: scale(.2) rotate(-90deg); background: linear-gradient(150deg, #ee9ab9, #c04a7d); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(192, 74, 125, .45); animation: finseal .8s .75s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.cv .seal svg { width: 22px; height: 22px; }
@keyframes finseal { to { opacity: 1; transform: scale(1) rotate(0); } }
.cv .shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); transform: translateX(-120%); animation: finshine 1s .55s ease-out; }
@keyframes finshine { to { transform: translateX(120%); } }
#pgCard.shake { animation: finshake .6s .55s; }
@keyframes finshake { 0%, 100% { transform: none; } 15% { transform: translate(-5px, 2px) rotate(-.3deg); } 30% { transform: translate(5px, -2px) rotate(.3deg); } 45% { transform: translate(-4px, 1px); } 60% { transform: translate(3px, -1px); } 80% { transform: translate(-1px, 0); } }
#pgCard.glow { box-shadow: 0 10px 30px rgba(190, 90, 140, .18), 0 0 0 6px rgba(243, 166, 195, .55), 0 0 60px 14px rgba(232, 176, 74, .35); transition: box-shadow .4s; }
#pgCard.go .pgrange { transition: none; }
#pgCard.go .pgrange::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(232, 176, 74, .45); }
html[data-theme="nacht"] .stars10 .st svg { fill: rgba(255, 255, 255, .16); }
html[data-theme="nacht"] .finq-i { box-shadow: 0 0 18px rgba(255, 95, 175, .5); }

@media (max-width: 600px) {
  .stars10 .st { max-width: 34px; }
  .ratescore b { font-size: 1.7rem; }
  .pgfin { width: 46px; height: 46px; }
  .finq .actions, .ratesheet .actions { flex-direction: column-reverse; align-items: stretch; }
  .finq .actions .btn, .ratesheet .actions .btn { width: 100%; min-height: 48px; justify-content: center; }
  .toast.act { max-width: calc(100vw - 24px); }
  .cv .seal { width: 38px; height: 38px; right: -6px; bottom: -6px; }
  .cv .seal svg { width: 19px; height: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .cv.hop, #pgCard.shake, .cv .shine { animation: none; }
}
.toast.act { width: max-content; max-width: calc(100vw - 24px); }
.toast.act span { white-space: nowrap; }

/* Beenden rückgängig im Buchdialog */
.undobar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 0 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2, rgba(150, 120, 220, .1)); border: 1.5px dashed var(--lav-400, #b9a2ec); font-size: .88rem; color: var(--ink-soft); }
.undobar b { color: var(--ink); }
.undobar .btn { flex: none; }
@media (max-width: 600px) { .undobar { flex-direction: column; align-items: stretch; text-align: center; } .undobar .btn { min-height: 44px; justify-content: center; } }

/* ===== Messmodus, Lesetempo, Zeit-Ansicht ===== */
.lbl { display: block; font-size: .82rem; color: var(--ink-soft); font-weight: 800; margin: 4px 0; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 14px; }
.opt { border: 2px solid var(--line); border-radius: 18px; padding: 14px; background: var(--card); cursor: pointer; text-align: left; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 6px; min-height: 112px; transition: border-color .15s, box-shadow .15s; }
.opt.on { border-color: var(--lav-600, #6a4cc4); box-shadow: 0 0 0 3px rgba(130, 100, 210, .16); }
.opt b { font-weight: 800; }
.opt span { font-size: .82rem; color: var(--ink-soft); line-height: 1.35; }
.opt svg { width: 26px; height: 26px; fill: none; stroke: var(--lav-600, #6a4cc4); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.paces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.pace { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 8px; background: var(--card); cursor: pointer; font: inherit; color: var(--ink); text-align: center; min-height: 52px; }
.pace.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pace b { display: block; }
.pace small { opacity: .8; font-size: .75rem; }
.sw { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-weight: 700; font-size: .9rem; color: var(--ink); cursor: pointer; }
.sw input { width: 20px; height: 20px; accent-color: var(--lav-600, #6a4cc4); }
.arow { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.arow .l b { display: block; }
.arow .l small { color: var(--ink-soft); }
.arow input { width: 100%; box-sizing: border-box; }
.est { margin: 2px 0 0; font-size: .84rem; color: var(--ink-soft); }
.est b { color: var(--ink); }
.tbar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lav-300, #c4b0f0), var(--lav-600, #6a4cc4)); border-radius: 99px; transition: width .4s; }
html[data-theme="kirschbluete"] .tbar i { background: linear-gradient(90deg, #f0a2bb, #c04a7d); }
.tgoal { display: grid; gap: 6px; }
.tgoal .pr { display: flex; justify-content: space-between; font-weight: 800; font-size: .9rem; }
.tadd { display: grid; gap: 4px; }
.tchips { display: flex; gap: 8px; flex-wrap: wrap; }
.tchips .chip { min-height: 40px; }
.w2 .timer .clock { font-size: 3rem; }
@media (max-width: 600px) {
  .opts { grid-template-columns: 1fr; }
  .opt { min-height: 0; }
  .arow { grid-template-columns: 1fr 90px; }
  .tchips .chip { flex: 1 1 auto; min-height: 44px; }
}

/* ===== Statistik ===== */
.st-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(300px, auto); gap: 22px; align-items: center; padding: 22px 26px; border-radius: var(--r-lg, 24px); margin-bottom: 16px; background: linear-gradient(135deg, var(--lav-100, #f1ebff), var(--card) 70%); border: 1.5px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.st-hero::after { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--ch-ring-a) 0%, transparent 68%); opacity: .35; pointer-events: none; }
.st-ring { width: 130px; height: 130px; display: block; }
.st-ring .arc line.off { stroke: var(--ch-ring-track); }
.st-ring .star path { fill: #f06fa8; stroke: #fff; stroke-width: 1; stroke-linejoin: round; }
.st-ring .star { filter: drop-shadow(0 0 3px rgba(240, 111, 168, .6)); }
.st-ring .st-rn { font: 500 2.1rem var(--num, var(--sans)); fill: var(--ink); }
.st-ring .st-rg { font: 700 .8rem var(--sans); fill: var(--ink-soft); }
.st-hero h3 { margin: 0 0 2px; font: 800 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.st-hero .st-big { margin: 0 0 8px; font: 500 1.9rem/1.15 var(--num, var(--sans)); color: var(--ink); }
.st-hero .st-note { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font: 800 .78rem var(--sans); }
.st-pill.ok { background: rgba(120, 180, 120, .22); color: #3c7a3c; }
.st-pill.late { background: rgba(230, 150, 80, .22); color: #a8581a; }
.st-pill svg { width: 14px; height: 14px; }
html[data-theme="nacht"] .st-pill.ok { color: #8fe0b0; background: rgba(143, 224, 176, .15); }
html[data-theme="nacht"] .st-pill.late { color: #ffb36b; background: rgba(255, 179, 107, .15); }
.st-hero .st-side { display: grid; gap: 10px; position: relative; z-index: 1; }
.st-hero .st-chip { display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 14px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); min-width: 300px; }
.st-hero .st-chip .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-hero .st-chip .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lav-100, #f1ebff); color: var(--lav-600, #6a4cc4); }
.st-hero .st-chip.hot .ic { background: linear-gradient(150deg, #ffd7a8, #ff9d6b); color: #fff; }
.st-hero .st-chip .ic svg, .st-tile .ic svg { width: 22px; height: 22px; }
.st-hero .st-chip b { font: 500 1.45rem/1.1 var(--num, var(--sans)); color: var(--ink); white-space: nowrap; }
.st-hero .st-chip .tx > span { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.st-hero .st-chip .tr { font-size: .8rem; font-weight: 800; white-space: nowrap; }
.st-chip .tr.up { color: #3c7a3c; } .st-chip .tr.down { color: #b2476b; }
.st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.st-tile { position: relative; padding: 16px 18px 16px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-tile .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 8px; background: var(--lav-100, #f1ebff); color: var(--lav-600, #6a4cc4); }
.st-tile.t2 .ic { background: rgba(110, 170, 230, .22); color: #3b78c0; }
.st-tile.t3 .ic { background: rgba(242, 207, 114, .35); color: #b8860b; }
.st-tile.t4 .ic { background: rgba(140, 190, 140, .28); color: #3c7a3c; }
html[data-theme="nacht"] .st-tile .ic { background: rgba(255, 150, 210, .16); color: var(--pink, #ff8fc6); }
.st-tile b { font: 500 1.9rem/1.1 var(--num, var(--sans)); color: var(--ink); overflow-wrap: anywhere; }
.st-tile b em { font: 700 .9rem var(--sans); font-style: normal; color: var(--ink-soft); margin-left: 2px; }
.st-tile .lb { margin-top: 4px; font-size: .9rem; font-weight: 800; color: var(--ink); }
.st-tile .dt { font-size: .85rem; font-weight: 600; color: var(--ink-soft); min-height: 1.3em; }
.st-tile .dt .mst { margin-top: 2px; }
.est-tag { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: var(--surface-2, rgba(150, 120, 220, .12)); color: var(--ink-soft); margin-left: 6px; vertical-align: middle; }
.mst { display: flex; gap: 2px; margin-top: 6px; }
.mst i { width: 13px; height: 13px; background: var(--line); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.mst i.on { background: var(--gold); }
.st-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.st-grid .st-full, .st-grid .calwide { grid-column: 1 / -1; }
.st-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.st-h h2 { margin: 0; }
.st-bars .avg { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 4 5; opacity: .45; }
.st-bars .al { font: 700 11px var(--sans); fill: var(--ink-soft); }
.st-bars .bt path.lo { fill-opacity: .38; }
.st-bars .bt path.hi { fill-opacity: 1; }
.st-bars .bt.fut path { fill-opacity: .2; }
.st-bars .bt.now path { stroke: var(--ink); stroke-width: 1.8; }
.st-bars text.v { font: 800 11px var(--sans); fill: var(--ink); }
.st-bars text.m { font-size: 11px; }
.st-bars .fut text.m { opacity: .45; }
.st-gen { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-gen li { display: grid; grid-template-columns: 24px fit-content(55%) minmax(36px, 1fr) 28px; gap: 10px; align-items: center; font-weight: 700; font-size: .9rem; }
.st-gen .rk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--lav-100, #f1ebff); color: var(--lav-600, #6a4cc4); }
.st-gen li:first-child .rk { background: var(--gold); color: #6b4a00; }
.st-gen .gn { overflow-wrap: anywhere; line-height: 1.2; }
.st-cmp .st-vs-lead { margin: 0 0 14px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.st-cmp .st-vs-lead b { color: var(--ink); font-size: 1.05rem; }
.st-vs { display: grid; gap: 10px; }
.st-vs .r { display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-weight: 700; font-size: .9rem; }
.st-vs .t { height: 16px; border-radius: 8px; background: var(--ch-ring-track); overflow: hidden; }
.st-vs .t i { display: block; height: 100%; border-radius: 8px; background: var(--ch-bar); }
.st-vs .t i.b { opacity: .4; }
.st-vs b { text-align: right; }
.st-cmp .st-vs-foot { margin: 14px 0 0; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.st-gen .gc { text-align: right; color: var(--ink-soft); }
.st-done { display: grid; grid-template-columns: repeat(6, minmax(0, 132px)); justify-content: space-between; gap: 14px; }
.st-done .dn { display: flex; flex-direction: column; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: var(--ink); font: inherit; min-width: 0; }
.st-done .dn .cv { display: block; transition: transform .18s; }
.st-done .dn:hover .cv { transform: translateY(-4px); }
.st-done .dn .t { font-weight: 800; font-size: .8rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-done .dn .r { font-size: .75rem; color: var(--ink-soft); }
.st-stack { display: flex; height: 22px; border-radius: 99px; overflow: hidden; gap: 3px; background: none; }
.st-stack i { display: block; min-width: 8px; }
.st-stack i.none { background: var(--line); }
.st-stack i.gelesen, .st-leg i.gelesen { background: linear-gradient(90deg, #cfe5c9, #96c18d); }
.st-stack i.lese, .st-leg i.lese { background: linear-gradient(90deg, var(--lav-300, #c4b0f0), var(--lav-500, #8a6ad8)); }
.st-stack i.sub, .st-leg i.sub { background: linear-gradient(90deg, #cfdcf6, #8fb0e8); }
.st-stack i.wunsch, .st-leg i.wunsch { background: linear-gradient(90deg, #f8cbd8, #ee9bb7); }
.st-leg { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.st-leg span { display: inline-flex; align-items: center; gap: 6px; }
.st-leg i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.st-leg b { color: var(--ink); }
@media (max-width: 900px) {
  .st-hero { grid-template-columns: auto minmax(0, 1fr); }
  .st-hero .st-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .st-hero .st-chip { min-width: 0; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-done { grid-template-columns: repeat(3, minmax(0, 132px)); }
}
@media (max-width: 520px) {
  .st-hero { padding: 18px 16px; gap: 14px 16px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .st-hero .st-note { justify-content: center; }
  .st-hero .st-side { grid-template-columns: 1fr; width: 100%; gap: 8px; }
  .st-hero .st-chip { justify-content: flex-start; text-align: left; padding: 10px 14px 10px 12px; }
  .st-hero .st-chip .ic { width: 36px; height: 36px; }
  .st-tile { padding: 14px; }
  .st-tile b { font-size: 1.55rem; }
  .st-gen li { grid-template-columns: 24px fit-content(50%) minmax(30px, 1fr) 24px; gap: 8px; font-size: .86rem; }
}

.st-bars { max-width: 100%; }


/* ---- Regalfarben, Diagramm-Sprechblase, Gemeinschaft, Ausrichtung der Buchkarten ---- */
.charttip { position: fixed; z-index: 400; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; padding: 7px 11px; border-radius: 12px; background: var(--ink); color: var(--paper, #fff); font: 700 .78rem/1.25 var(--sans); box-shadow: 0 8px 22px rgba(40, 20, 80, .28); text-align: center; white-space: nowrap; }
.charttip.on { opacity: 1; transform: none; }
.charttip b { display: block; font-size: .95rem; font-weight: 800; }
.charttip span { display: block; opacity: .8; font-weight: 600; }
html[data-theme="nacht"] .charttip { background: #ffeaf6; color: #2a1250; box-shadow: 0 0 20px rgba(255, 95, 175, .45); }
.chart .pt, .chart .bt { cursor: default; outline: none; }
.chart .hv, .chart .end { fill: var(--ch-line); stroke: none; }
.chart .hv { opacity: 0; transition: opacity .12s; }
.chart .pt:hover .hv, .chart .pt:focus-visible .hv { opacity: 1; }
.chart .bt path, .chart .bt rect[data-anchor] { transition: fill-opacity .12s; }
.chart .bt:hover path, .chart .bt:focus-visible path { fill-opacity: 1; }

.catbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 4px 0 14px; }
.catbar .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.catbar .chip small { opacity: .7; font-weight: 700; margin-left: 2px; }
.bk.static { position: relative; }
.bk.static .pick { position: absolute; top: 6px; left: 6px; z-index: 3; cursor: pointer; }
.bk.static .pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk.static .pick span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .92); border: 2px solid var(--lav-300, #c6b0ea); box-shadow: 0 2px 6px rgba(60, 40, 100, .25); transition: background .12s, transform .12s; }
.bk.static .pick input:checked + span { background: var(--lav-500); border-color: var(--lav-500); }
.bk.static .pick input:checked + span::after { content: ""; width: 12px; height: 7px; border: 3px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.bk.static .pick input:focus-visible + span { outline: 3px solid var(--lav-400); outline-offset: 2px; }
.bk.static.picked .cover { outline: 3px solid var(--lav-500); outline-offset: 2px; }
.books[data-view="cover"] .bk.static .pick { top: 3px; left: 3px; }
.books[data-view="cover"] .bk.static .pick span { width: 20px; height: 20px; border-radius: 6px; }
.books[data-view="liste"] .bk.static .pick, .books[data-view="detail"] .bk.static .pick { position: static; grid-area: g; }
.catpick { position: sticky; bottom: 14px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; padding: 10px 16px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--lav-200); box-shadow: 0 10px 30px rgba(70, 45, 130, .22); transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; }
.catpick.on { transform: none; opacity: 1; pointer-events: auto; }
.catpick span { margin-right: auto; font-weight: 700; color: var(--ink); }
html[data-theme="nacht"] .catpick { background: #2a1552; border-color: rgba(255, 140, 205, .5); box-shadow: 0 0 26px rgba(255, 95, 175, .3); }
@media (max-width: 640px) { .catpick { bottom: 78px; border-radius: 16px; } .catpick span { flex: 1 0 100%; } }
.tag.have { background: var(--surface-2); color: var(--ink-soft); }

/* Karten gleich hoch ausrichten: Titel immer zwei, Autor immer eine Zeile, danach Meta und Status auf einer Linie */
.books[data-view="normal"] .bk .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.books[data-view="normal"] .bk .a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.25em; }
.books[data-view="normal"] .bk { gap: 6px; }
.books[data-view="normal"] .bk .tag, .books[data-view="normal"] .bk .rate, .books[data-view="normal"] .bk .stars { min-height: 22px; display: inline-flex; align-items: center; }
.books[data-view="normal"] .bk.static { align-items: stretch; }
.books[data-view="normal"] .bk.static .btn { margin-top: 2px; }
.books[data-view="normal"] .bk .bar.thin { width: 100%; }
.bk .t { color: var(--ink); }
.bk .a, .bk .meta { color: var(--ink-soft); }

/* Themes: Status- und Art-Etiketten in den Farben des jeweiligen Themes */
html[data-theme="kirschbluete"] .tag { background: #ffe4ed; color: #a63a63; }
html[data-theme="kirschbluete"] .tag.lese { background: #fbd0e0; color: #8f2f59; }
html[data-theme="kirschbluete"] .tag.gelesen, html[data-theme="kirschbluete"] .tag.sage { background: #ffd9e6; color: #b2476b; }
html[data-theme="kirschbluete"] .tag.sub { background: #f6dcec; color: #8a3a74; }
html[data-theme="kirschbluete"] .tag.wunsch { background: #fff0d9; color: #a8672a; }
html[data-theme="kirschbluete"] .tag.plain, html[data-theme="kirschbluete"] .tag.have { background: #fff0f5; color: #84506b; }
html[data-theme="kirschbluete"] .tag.wait { background: #fff0d9; color: #a8672a; }
html[data-theme="kirschbluete"] .bk .stars svg { fill: #f6d6e3; }
html[data-theme="kirschbluete"] .bk .stars svg.on { fill: #e8b04a; }
html[data-theme="kirschbluete"] .bk.static .pick span { border-color: #ec86ad; }
html[data-theme="kirschbluete"] .catpick { border-color: #fbd0e0; box-shadow: 0 10px 30px rgba(214, 100, 145, .22); }
html[data-theme="nacht"] .tag.have { background: rgba(255, 255, 255, .08); color: var(--ink-soft); }
html[data-theme="nacht"] .bk.static .pick span { background: rgba(37, 19, 74, .92); border-color: #ff7fc0; }
html[data-theme="nacht"] .bk .stars svg { fill: rgba(255, 255, 255, .16); }
html[data-theme="nacht"] .bk .stars svg.on { fill: #ffd98a; }


/* ---- Jetzt lesen: Kompakt-Zeile mit Lesezeichen an der Cover-Ecke ---- */
.lzcard { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 12px 16px 10px 14px; align-items: start; }
.lzcv { position: relative; }
.lzcv .cover { width: 62px; }
.lzrib { position: absolute; right: 5px; top: -3px; width: 14px; height: 30px; z-index: 3; background: linear-gradient(180deg, var(--c1), var(--c2)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); box-shadow: 0 3px 6px rgba(0, 0, 0, .2); filter: saturate(1.25) brightness(.94); }
.lzmid { display: grid; gap: 6px; min-width: 0; }
.lzhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lzl { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; }
.lzcard h3 { font: 400 1.1rem/1.25 var(--script); color: var(--ink); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lzau { font: 700 .82rem var(--sans); color: var(--ink-soft); white-space: nowrap; }
.lzchip { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font: 800 .76rem var(--sans); background: #fde9d6; color: #b4571f; }
.lzchip svg { width: 13px; height: 13px; fill: currentColor; }
html[data-theme="nacht"] .lzchip { background: rgba(255, 170, 90, .18); color: #ffc58a; }
.lzrow { display: grid; grid-template-columns: minmax(0, 1fr) clamp(230px, 34%, 380px) auto; gap: 18px; align-items: center; }
.lzprog { display: grid; gap: 4px; min-width: 0; }
.lzbar { height: 10px; border-radius: 99px; background: var(--ch-grid); overflow: hidden; }
.lzbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width .4s; }
.lzmeta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; font: 700 .78rem var(--sans); color: var(--ink-soft); }
.lzmeta em { font-style: normal; opacity: .75; }
.lzacts { display: flex; align-items: center; gap: 8px; }
.lzacts .btn { padding: 7px 14px; }
.lzcard .pgfin { width: 40px; height: 40px; }
.lzq { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-width: 0; font: italic 500 .94rem/1.3 "Cormorant Garamond", serif; color: var(--ink); }
.lzq > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lzq.none { font: 600 .78rem var(--sans); font-style: normal; color: var(--ink-soft); }
.lzq small { font: 700 .68rem var(--sans); font-style: normal; color: var(--ink-soft); }
.lzq .linkbtn { flex: none; display: inline-flex; align-items: center; gap: 5px; font: 800 .76rem var(--sans); font-style: normal; white-space: nowrap; text-decoration: none; }
.lzq .linkbtn:hover span { text-decoration: underline; }
.lzq .linkbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.go .lzcard { pointer-events: none; }
@media (max-width: 720px) {
  .lzrow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .lzacts .btn { flex: 1; }
  .lzl { display: block; }
  .lzcard h3 { white-space: normal; }
  .lzau { display: block; white-space: normal; }
  .lzhead { align-items: flex-start; }
  .lzd { display: none; }
}

/* ---- Überschriften-Stufen (global): Begrüßung > Seitentitel > Kartentitel; Jetzt lesen über die volle Breite ---- */
:root { --fs-h1: 2.1rem; --fs-h2: 1.55rem; --fs-h3: 1.1rem; }
.hello h1 { font-size: var(--fs-h1); }
.page-title { font-size: var(--fs-h2); }
.modal h2 { font-size: var(--fs-h2); }
.card h2, .rail h2, .empty b { font-size: var(--fs-h3); }
.shelf h3 { font-size: var(--fs-h3); }
.grid > .now { grid-column: 1 / -1; }
@media (max-width: 640px) {
  :root { --fs-h1: 1.7rem; --fs-h2: 1.35rem; --fs-h3: 1.05rem; }
  .hello h1 { font-size: var(--fs-h1); }
}

/* ---------- Statusleiste (nur Desktop) ---------- */
.statusbar { display: none; }
@media (min-width: 901px) {
  .statusbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 24px;
    font: 600 .76rem/1 var(--sans); color: var(--ink-soft); background: var(--clay); box-shadow: 0 -1px 0 rgba(120, 100, 160, .16);
  }
  .statusbar[hidden] { display: none; }
  .statusbar b { font-weight: 800; color: var(--ink); }
  .statusbar .sb-gap { flex: 1; }
  .statusbar .sb-state { display: inline-flex; align-items: center; gap: 7px; }
  .statusbar .sb-state i { width: 8px; height: 8px; border-radius: 50%; background: #3f9b6b; }
  .statusbar .sb-state.new i { background: #d08a1e; }
  .statusbar .sb-state.off i { background: #b2476b; }
  .statusbar .linkbtn { font-size: inherit; }
  .app { padding-bottom: 52px; min-height: 100vh; }
  .side { height: calc(100vh - 76px); }
  .toast { bottom: 46px; }
  .updatebar { bottom: 46px; }
}

.lzbars { height: 56px; min-width: 0; }
.lzsvg { display: block; overflow: visible; }
.lzbase { stroke: var(--ch-grid); stroke-width: 1; }
.lzbar2 { fill: var(--ch-bar); fill-opacity: .8; transition: fill-opacity .12s; }
.lzbar0 { fill: var(--ch-grid); }
.lzbg { outline: none; cursor: default; }
.lzbg.now .lzbar2, .lzbg:hover .lzbar2, .lzbg:focus-visible .lzbar2 { fill-opacity: 1; }
.lzcap { font: 600 10px var(--sans); fill: var(--ink-soft); opacity: .75; }
.lzcap.now { font-weight: 800; fill: var(--ink); opacity: 1; }

/* Import-Dialog: Auswahl Hinzufügen / Ersetzen */
.impopts{display:grid;gap:8px}
.impopt{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:14px;cursor:pointer;text-align:left}
.impopt input[type=radio]{appearance:auto;-webkit-appearance:radio;width:18px;height:18px;min-width:18px;padding:0;margin:2px 0 0;flex:none;border:0;box-shadow:none;background:none;accent-color:var(--violet-deep)}
.impopt span{display:grid;gap:2px;min-width:0;flex:1}
.impopt small{color:var(--ink-soft);font-size:.82rem;line-height:1.35}
.impopt:has(input:checked){border-color:var(--violet-deep);background:color-mix(in srgb,var(--violet-deep) 8%,transparent)}

/* Buchdialog: Reihe, Ausgabe, Kauf */
.morebody .subhead{font-weight:700;color:var(--violet-deep);font-size:.9rem;margin:14px 0 -2px}
.morebody .row.rsn{grid-template-columns:minmax(0,1fr) 96px}
.morebody .row.rpr{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 84px}
.morebody .field input,.morebody .field select{min-width:0}
.morebody textarea[name=description]{min-height:96px;resize:vertical}
.bk .sr { font-size: .74rem; color: var(--violet-deep); font-weight: 700; margin-top: -4px; line-height: 1.25; }
.books:not([data-view="normal"]) .bk .sr { display: none; }

/* ================================================================ Buch bearbeiten: Schritte, deutlicher Rand, Auswahllisten (1.5.0)
   Feldrand mindestens 3 : 1 gegen die Karte, Platzhalter mindestens 4,5 : 1 (gemessen je Theme). */
:root {
  --fld-bg: #ffffff; --fld-edge: #8672bb; --fld-ph: #766a97; --fld-focus: rgba(123, 91, 216, .32);
  --grad-pri: linear-gradient(180deg, #9a80ec, #7456d6); --list-bg: #ffffff; --list-sel: #ece5fb;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236540c4' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
html[data-theme="kirschbluete"] {
  --fld-bg: #ffffff; --fld-edge: #b5648a; --fld-ph: #8c5a74; --fld-focus: rgba(201, 73, 122, .32);
  --grad-pri: linear-gradient(180deg, #e0709b, #c9497a); --list-bg: #ffffff; --list-sel: #ffe4ed;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a63a63' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
html[data-theme="nacht"] {
  --fld-bg: #1a0c38; --fld-edge: #b27cb0; --fld-ph: #c6a1c0; --fld-focus: rgba(255, 95, 175, .5);
  --grad-pri: linear-gradient(180deg, #ff7fc0, #e8479a); --list-bg: #2c1856; --list-sel: rgba(255, 120, 195, .22);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffa3d3' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
#bookForm .field input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=file]),
#bookForm .field select, #bookForm .field textarea {
  min-height: 48px; padding: 9px 14px; background-color: var(--fld-bg); color: var(--ink);
  border: 1.5px solid var(--fld-edge); border-radius: 16px; box-shadow: none;
}
#bookForm .field textarea { min-height: 96px; }
#bookForm .field input::placeholder, #bookForm .field textarea::placeholder { color: var(--fld-ph); opacity: 1; }
#bookForm .field input:not([type=radio]):not([type=checkbox]):focus, #bookForm .field select:focus, #bookForm .field textarea:focus {
  border-color: var(--violet-deep); box-shadow: 0 0 0 3px var(--fld-focus);
}
/* Auswahlfeld: eigener Pfeil mit 16 px Abstand zum Rand */
#bookForm .field select {
  -webkit-appearance: none; appearance: none; padding-right: 46px; background-image: var(--chev); background-repeat: no-repeat;
  background-position: right 16px center; background-size: 16px; cursor: pointer;
}
#bookForm .seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 3px; border: 1.5px solid var(--fld-edge); border-radius: 24px; box-shadow: none; }
#bookForm .seg span { color: var(--ink); }
#bookForm .seg input:checked + span { color: #fff; }
#bookForm .chip { border: 1.5px solid var(--fld-edge); background: var(--fld-bg); color: var(--ink); }
#bookForm .chip.on, #bookForm .chipcheck input:checked + .chip { background: var(--grad-pri); color: #fff; border-color: transparent; }
/* Schrittleiste */
#bookForm .fsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
#bookForm .fs { width: 100%; min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; color: var(--ink-soft); font: 800 .8rem var(--sans); cursor: pointer; padding: 4px 0; }
#bookForm .fs .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--fld-edge); background: var(--fld-bg); color: var(--ink); font-weight: 800; }
#bookForm .fs.on { color: var(--ink); }
#bookForm .fs.on .n { background: var(--grad-pri); color: #fff; border-color: transparent; box-shadow: 0 6px 12px rgba(116, 85, 214, .3); }
#bookForm .fs.done .n { background: var(--lav-100); border-color: var(--violet-deep); color: var(--violet-deep); font-size: 0; }
#bookForm .fs.done .n::after { content: "✓"; font-size: 1rem; }
#bookForm .fs:focus-visible { outline: 3px solid var(--fld-focus); outline-offset: 2px; border-radius: 12px; }
#bookForm .fprog { height: 6px; border-radius: 99px; background: var(--lav-100); overflow: hidden; margin: 0 0 4px; }
#bookForm .fprog i { display: block; height: 100%; width: 25%; background: var(--grad-pri); transition: width .2s; }
#bookForm .fstep { display: grid; gap: 14px; }
#bookForm .fstep[hidden] { display: none; }
#bookForm .fact { margin-top: 6px; }
#bookForm .fact .btn[hidden] { display: none; }
#bookForm details.more > summary { color: var(--violet-deep); }
/* Genre-Auswahl (Eingabefeld mit Liste) */
.cb { position: relative; }
.cb .cb-input { padding-right: 46px !important; }
.cb-btn { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: var(--chev) no-repeat center / 16px; border-radius: 12px; cursor: pointer; transition: transform .15s; }
.cb[data-expanded="1"] .cb-btn { transform: rotate(180deg); }
.cb-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: min(260px, 40vh); overflow: auto; background: var(--list-bg); border: 1.5px solid var(--fld-edge); border-radius: 16px; box-shadow: 0 18px 34px rgba(40, 20, 80, .22); padding: 6px; margin: 0; list-style: none; }
.cb[data-up="1"] .cb-list { top: auto; bottom: calc(100% + 6px); }
.cb-list[hidden] { display: none; }
.cb-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 11px; cursor: pointer; color: var(--ink); }
.cb-list li small { color: var(--ink-soft); font-weight: 700; }
.cb-list li[aria-selected="true"], .cb-list li:hover { background: var(--list-sel); }
.cb-list li.sim { color: var(--violet-deep); font-weight: 800; background: var(--list-sel); }
.cb-list li.new { color: var(--violet-deep); font-weight: 800; }
.cb-list li.head { min-height: 0; padding: 6px 12px 2px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); cursor: default; background: none; }
/* Listen pflegen (Admin) */
.lrows { display: grid; gap: 8px; margin: 10px 0; }
.gnrows { max-height: min(52vh, 460px); overflow: auto; padding-right: 4px; }
.lrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1.5px solid var(--fld-edge); border-radius: 14px; background: var(--fld-bg); }
.lrow[hidden] { display: none; }
.lrow .inp, #gnFilter { flex: 1 1 140px; min-width: 0; min-height: 44px; padding: 8px 12px; background-color: var(--fld-bg); color: var(--ink); border: 1.5px solid var(--fld-edge); border-radius: 14px; box-shadow: none; }
#gnFilter { width: 100%; }
.lrow .lname { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.lrow .lcnt { white-space: nowrap; }
.lrow.add { border: 0; background: none; padding: 0; margin-top: 8px; }
.lrow.lconf { background: var(--lav-100); }
.lrow select.inp { -webkit-appearance: none; appearance: none; padding-right: 46px; background-image: var(--chev); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }

/* Tagesziele: drei Optionen */
.opts.opts3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .opts.opts3 { grid-template-columns: 1fr; } }

/* ---- Einstellungen: Zeilen (Desktop: Hauptleiste wird Bereichsliste, Handy: Zeilen zum Aufklappen) ---- */
.setx { display: block; }
.pane { display: none; }
.pane.on { display: block; }
.panehead { display: none; }
.stcard { background: var(--card); border-radius: 24px; padding: 6px 28px 22px; max-width: 860px; box-shadow: var(--sh-small, 0 6px 24px rgba(80,60,140,.08)); }
.stgrp { padding-top: 14px; }
.stgrp + .stgrp { margin-top: 8px; border-top: 1px solid var(--line); }
.stgrp > h3 { margin: 6px 0 2px; font: 800 .75rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.strow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.stgrp > .strow:last-child, .stgrp > [data-tf] > .strow:last-child { border-bottom: 0; }
.strow .t > b { display: block; font-weight: 800; }
.strow .t > span { display: block; color: var(--ink-soft); font-size: .86rem; line-height: 1.4; max-width: 56ch; margin-top: 2px; }
.strow .c { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.strow .c input.num { width: 96px; text-align: right; }
.strow .c input.wide { width: 220px; }
.strow .unit { color: var(--ink-soft); font-size: .85rem; }
.strow.stack { grid-template-columns: 1fr; gap: 10px; }
.strow.stack .c { justify-content: flex-start; }
.strow .btn.small { min-height: 40px; padding: 0 16px; }
.strow .btn svg { width: 17px; height: 17px; }
.avatar.sm { width: 44px; height: 44px; font-size: 1rem; }
.opts.seg { display: inline-flex; grid-template-columns: none; gap: 0; margin: 0; padding: 3px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; max-width: 100%; flex-wrap: wrap; }
.opts.seg .opt { flex-direction: row; align-items: center; gap: 8px; min-height: 38px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; }
.opts.seg .opt.on { background: var(--ink); color: #fff; }
.opts.seg .opt.on svg { stroke: #fff; }
.opts.seg .opt svg { width: 17px; height: 17px; }
.strow .paces { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 6px; margin: 0; }
.strow .pace { min-height: 44px; padding: 6px 16px; }
.strow .sw { margin: 0; }
.stgrp > .hint { margin: 0 0 10px; }
.stfold { border-bottom: 1px solid var(--line); }
.stfold > summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 14px 28px 14px 0; position: relative; }
.stfold > summary::-webkit-details-marker { display: none; }
.stfold > summary::after { content: "▾"; position: absolute; right: 4px; top: 16px; color: var(--ink-soft); }
.stfold[open] > summary::after { content: "▴"; }
.stfold > summary b { font-weight: 800; }
.stfold > summary span { color: var(--ink-soft); font-size: .86rem; }
.stfoldbody { padding: 0 0 18px; max-width: 520px; }
.stgrp .users { margin-top: 8px; }
.navback span { color: var(--rose-deep, var(--violet-deep)); font-weight: 800; }
.navsep { border: 0; height: 1px; background: var(--line); margin: 6px 4px 10px; width: calc(100% - 8px); }
.nav .navbtn[aria-current="page"] { color: var(--violet-deep); font-weight: 800; background: linear-gradient(160deg, #f0eafc, #e6dcf9); box-shadow: var(--sh-small); }
@media (max-width: 900px) {
  .pane { display: block; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; margin-bottom: 10px; overflow: hidden; }
  .panehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: left; padding: 14px 16px; min-height: 60px; cursor: pointer; }
  .panehead span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .panehead b { font-weight: 800; }
  .panehead small { color: var(--ink-soft); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .panehead i { width: 10px; height: 10px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); flex: none; transition: transform .15s; margin-right: 4px; }
  .pane.on .panehead i { transform: rotate(-135deg); }
  .panebody { display: none; padding: 0 16px 8px; }
  .pane.on .panebody { display: block; }
  .stcard { background: none; box-shadow: none; padding: 0; border-radius: 0; }
  .strow { grid-template-columns: 1fr; gap: 10px; }
  .strow .c { justify-content: flex-start; }
}

.strow input:not([type=checkbox]):not([type=file]) { min-height: 40px; padding: 8px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm, 12px); outline: 0; font: inherit; color: var(--ink); }
.strow input:not([type=checkbox]):not([type=file]):focus { border-color: var(--lav-400); box-shadow: 0 0 0 3px rgba(176, 147, 224, .22); }
.stnote { margin: 2px 0 6px; max-width: 70ch; }
.strow .paces { grid-template-columns: repeat(3, auto); }
.strow .pace { min-height: 48px; }

/* Meine Bücher: Gruppen untereinander, getrennt durch dezente Linien */
.bgroup { padding: 18px 0 14px; border-top: 1px solid var(--line); }
.bgroup:first-child { border-top: 0; padding-top: 4px; }
.bgroup > h3 { font: 400 1.4rem/1.3 var(--script); color: #5d4a7e; margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bgroup > h3 small { font: 700 .82rem/1.3 var(--sans); color: var(--ink-soft); }
.books .bk > .tag, .books .bk > .stars, .books .bk > .artlbl { margin-top: auto; }
.books .bk > .artlbl + .tag, .books .bk > .artlbl + .stars { margin-top: 0; }
.artlbl { align-self: flex-start; font: 700 .72rem/1 var(--sans); color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; }
.books[data-view="klein"] .artlbl, .books[data-view="cover"] .artlbl { display: none; }
.books[data-view="liste"] .artlbl, .books[data-view="detail"] .artlbl { display: none; }

/* ---- Bereichsfilter (Meine Bücher) ---- */
.tbtn { position: relative; }
.tbtn .tbadge { position: absolute; right: -4px; top: -4px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: #d9558a; color: #fff; font: 800 .68rem/20px var(--sans); text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.areamenu { min-width: 290px; }
.areamenu button.area { gap: 12px; }
.areamenu .bx { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); background: var(--card, #fff); display: grid; place-items: center; flex: none; font-style: normal; }
.areamenu .bx svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; opacity: 0; }
.areamenu button.area.on .bx { background: var(--lav-500); border-color: var(--lav-500); }
.areamenu button.area.on .bx svg { opacity: 1; }
.areamenu button.area.on svg:last-child { stroke: #fff; }
.areamenu button.area > span { display: flex; flex-direction: column; gap: 1px; }
.areamenu button.area small { font-weight: 600; font-size: .74rem; color: var(--ink-soft); }
.areamenu .menu-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.areaacts { display: flex; gap: 8px; padding: 4px 8px 6px; }
.areaacts .btn { flex: 1; justify-content: center; }
.areanote { margin: 6px 0 0; font: 700 .88rem var(--sans); color: var(--ink-soft); }
.areanote .linkbtn { font: inherit; font-weight: 800; }
html[data-theme="nacht"] .areamenu .bx { background: rgba(255, 255, 255, .06); }
.areamenu { left: 0; right: auto; }
.areamenu button.area.on { background: none; color: inherit; }
.areamenu button.area.on:hover, .areamenu button.area:hover { background: var(--lav-100); }
@media (max-width: 640px) { .areamenu { left: 0; right: 0; } }

/* ---- Wo bist du gerade? auf dem Smartphone: Cover und Eingabe nebeneinander, "Anderes Buch auswählen" ganz unten ---- */
@media (max-width: 640px) {
  .w2 { grid-template-columns: 96px minmax(0, 1fr); gap: 8px 14px; }
  .w2 .head { display: contents; }
  .w2 .hl { grid-column: 2; grid-row: 1; min-width: 0; }
  .w2 .hr { grid-column: 1 / -1; order: 99; display: flex; flex-direction: column-reverse; align-items: flex-start; justify-items: start; text-align: left; padding: 6px 0 0; gap: 6px; }
  .w2 .hr .pgswitch { margin-top: 0; font-size: .92rem; }
  .w2.pgp .cv { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .w2.pgp .body, .w2.pgp .ent { display: contents; }
  .w2.pgp .nb { grid-column: 2; grid-row: 2; align-self: end; min-width: 0; }
  .w2.pgp .nb .pgnum { width: 100%; max-width: 8ch; font-size: 2.3rem; }
  .w2.pgp .pgsteps { grid-column: 1 / -1; order: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; }
  .w2.pgp .pgsteps .pgstep { min-width: 0; min-height: 44px; padding: 0; font-size: 1rem; }
  .w2.pgp .pgrange { grid-column: 1 / -1; order: 2; width: calc(100% - 12px); margin: 6px 6px 0; }
  .w2.pgp .pr { grid-column: 1 / -1; order: 3; margin: 0; }
  .w2.pgp .est { grid-column: 1 / -1; order: 4; margin: 0; }
  .w2.pgp .btns { grid-column: 1 / -1; order: 5; margin-top: 8px; }
  .w2.pgp .btns2 { order: 6; margin-top: 0; }
  .w2.pgp .hint { grid-column: 1 / -1; order: 1; }
  .w2.pgp .tt { font-size: 1.2rem; }
}

/* Auf Touchgeräten setzt die 16-Pixel-Regel (gegen das Heranzoomen) auch die große Seitenzahl auf 16 px: hier ausgenommen, sie ist ohnehin größer */
@media (pointer: coarse) {
  .pgnum { font-size: 3.3rem !important; }
  .w2.pgp .nb .pgnum { font-size: 2.3rem !important; }
}

/* ---- Wo bist du gerade? (Seiten) auf dem Smartphone: genau wie in der freigegebenen Vorschau ---- */
.pgof2 { display: none; }
@media (max-width: 640px) {
  .w2.pgpp { grid-template-columns: 88px minmax(0, 1fr); gap: 0 14px; }
  .w2.pgpp .cv { grid-column: 1; grid-row: 1 / span 2; }
  .w2.pgpp .hl { grid-column: 2; grid-row: 1; }
  .w2.pgpp .tt { font-size: 1.1rem; }
  .w2.pgpp .au { font-size: .9rem; }
  .w2.pgpp .lastp { display: none; }
  .w2.pgpp .nb { grid-column: 2; grid-row: 2; align-self: end; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; margin-top: 8px; }
  .w2.pgpp .nb label { grid-column: 1 / -1; font-size: .85rem; }
  .w2.pgpp .nb .pgnum { width: 96px; max-width: none; text-align: center; }
  .w2.pgpp .pgof2 { display: inline; font-weight: 800; font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
  .w2.pgpp .pgsteps { grid-row: 3; margin-top: 14px; }
  .w2.pgpp .pgrange { grid-row: 4; margin: 12px 6px 0; }
  .w2.pgpp .pr { display: contents; }
  .w2.pgpp #pgOf { display: none; }
  .w2.pgpp .est { grid-column: 1 / -1; grid-row: 5; margin: 8px 0 0; padding-right: 3.2rem; font-size: .85rem; }
  .w2.pgpp #pgPct { grid-column: 2; grid-row: 5; justify-self: end; margin-top: 8px; font-size: .85rem; font-weight: 800; color: var(--lav-600); }
  .w2.pgpp .btns { grid-row: 6; margin-top: 12px; }
  .w2.pgpp .btns2 { grid-row: 7; margin-top: 8px; }
  .w2.pgpp .hr { grid-row: 8; }
}
@media (pointer: coarse) { .w2.pgpp .nb .pgnum { font-size: 2.2rem !important; } }
@media (max-width: 640px) { .w2.pgpp .nb .pgnum { font-size: 2.2rem; } }

/* ---- Privat: Buch nicht in der Gemeinschaft ---- */
.privsw { align-items: flex-start; margin: 14px 0 2px; }
.privsw input { margin-top: 2px; flex: none; }
.privsw span { display: flex; flex-direction: column; gap: 2px; }
.privsw small { font-weight: 600; font-size: .78rem; line-height: 1.35; color: var(--ink-soft); }
.privico { display: inline-flex; vertical-align: -2px; margin-right: 5px; color: var(--ink-soft); font-style: normal; }
.privico svg { width: 14px; height: 14px; }

.metarow{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:-4px 0 8px}
.metarow .hint{margin:0}
.privsw:has(input:disabled) { opacity: .65; }

/* Scrollsperre hinter Dialogen (Smartphone) */
html.modal-lock body { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.scrim { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.bsub .tempo { font-weight: 600; opacity: .75; }

/* Segmentwahl (z. B. Tagesziel: Pro Buch / Allgemein / Unbestimmt) auf dem Smartphone: alle Optionen in einer Zeile */
@media (max-width: 560px) {
  .opts.seg { display: flex; flex-wrap: nowrap; width: 100%; max-width: 100%; box-sizing: border-box; }
  .opts.seg .opt { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 5px; padding: 4px 8px; font-size: .88rem; white-space: nowrap; }
  .opts.seg .opt svg { width: 15px; height: 15px; flex: none; }
}
@media (max-width: 430px) { .opts.seg .opt svg { display: none; } }
@media (max-width: 340px) { .opts.seg .opt { font-size: .8rem; padding: 4px 5px; } }

/* Lesedurchgänge (Reread) */
.bk { position: relative; }
.rr-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 4px; }
.rr-row[hidden] { display: none; }
.rr-row .btn { display: inline-flex; align-items: center; gap: 7px; }
.rr-hint { font-size: .8rem; color: var(--ink-soft); flex: 1 1 220px; }
.rr-h { font: 800 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 16px 0 6px; }
.rr-list { display: flex; flex-direction: column; gap: 6px; }
.rr-it { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px 12px; font-size: .86rem; }
.rr-it b { font-weight: 800; }
.rr-n { width: 28px; height: 28px; border-radius: 50%; background: var(--lav-100); display: grid; place-items: center; font: 800 .8rem var(--sans); color: var(--ink); }
.rr-end { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: lining-nums; }
.rr-del { border: 0; background: none; color: var(--ink-soft); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.rr-del:hover, .rr-del:focus-visible { background: #ffe0ec; color: #b03b6a; }
.bk .rr-tag { position: absolute; left: 6px; top: 6px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; font: 800 .68rem var(--sans); border-radius: 99px; padding: 2px 8px; background: #d9608f; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); pointer-events: none; }
.books[data-view="liste"] .bk .rr-tag, .books[data-view="detail"] .bk .rr-tag { left: auto; right: 12px; top: 3px; font-size: .62rem; padding: 1px 7px; }

/* Beendetes Buch (Popup) */
.donesheet h2 { margin: 0; padding-right: 36px; font-size: 1.35rem; }
.dn-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.dn-head .cover { width: 84px; flex: none; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; box-shadow: var(--sh-small); }
.dn-head .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-head .cover.ph span { font-size: .72rem; padding: 6px; text-align: center; }
.dn-au { color: var(--ink-soft); font-weight: 600; margin: 2px 0 6px; }
.dn-st { margin: 4px 0 6px; }
.dn-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dn-tile { border: 1.5px solid var(--line); background: var(--card); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.dn-tile span { font: 800 .68rem var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.dn-tile b { font-size: 1.02rem; font-weight: 800; font-variant-numeric: lining-nums; }
.dn-note { margin: 12px 0 0; font-size: .86rem; color: var(--ink-soft); font-style: italic; border-left: 3px solid var(--lav-100); padding-left: 10px; }
.dn-tl { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.dn-tl::before { content: ""; position: absolute; left: 18px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.dn-tl li { position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.dn-tl li i { width: 28px; height: 28px; border-radius: 50%; background: var(--lav-100); display: grid; place-items: center; font: 800 .78rem var(--sans); font-style: normal; z-index: 1; color: var(--ink); }
.dn-tl li.cur i { background: #f6a8c4; }
.dn-act { margin-top: 18px; justify-content: flex-end; }
.dn-act .btn { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 520px) { .dn-act { flex-direction: column-reverse; align-items: stretch; } .dn-act .btn { width: 100%; min-height: 48px; justify-content: center; } }
.rr-chip { display: inline-flex; align-items: center; gap: 6px; font: 800 .74rem var(--sans); border-radius: 99px; padding: 3px 10px; background: #ffe0ec; color: #b03b6a; }
.dn-head .cover.ph { display: flex; align-items: center; justify-content: center; }
.dn-head .cover.ph span { position: static; display: block; width: 100%; font-size: .66rem; padding: 4px 6px; text-align: center; overflow-wrap: anywhere; hyphens: auto; line-height: 1.25; }
.dn-head .cover { min-width: 84px; }
.dn-head .cover.ph span { overflow-wrap: break-word; hyphens: manual; font-size: .68rem; }
.dn-head .cover.ph span { word-break: normal; overflow-wrap: normal; hyphens: none; font-size: .62rem; padding: 4px; }

/* Abbrechen */
.pgfin.pgabort { background: #d64550; border: 1.5px solid #d64550; color: #fff; }
.pgfin.pgabort:hover { background: #bf3640; border-color: #bf3640; }
.pgfin.pgswap { border-style: dashed; }
.pgfin.pgabort.sm { width: 34px; height: 34px; }
.pgfin.pgabort.sm svg { width: 16px; height: 16px; }
.w2 .btns { align-items: center; }
.lzcard .pgfin.pgabort { width: 40px; height: 40px; }
.st-tile.t5 .ic { background: rgba(214, 69, 80, .16); color: #c0343f; }
@media (min-width: 1100px) { .st-tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.st-stack i.abgebrochen, .st-leg i.abgebrochen { background: #d9808a; }
.ab-q { font: 800 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 14px 0 8px; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-chip { position: relative; border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 13px; font: 700 .84rem var(--sans); color: var(--ink); cursor: pointer; }
.ab-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ab-chip.on { background: #ffe0ec; border-color: #d9608f; color: #a8335f; }
.ab-chip.on::before { content: "✓ "; }
.ab-chip:focus-within { outline: 2px solid var(--lav-400, #b9a2ec); outline-offset: 2px; }
.ab-sub { color: var(--ink-soft); font-weight: 600; font-size: .9rem; margin: 2px 0 0; padding-right: 30px; }
.ab-prog { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.ab-prog .bar { flex: 1; }
.ab-tag { display: inline-flex; align-items: center; font: 800 .72rem var(--sans); border-radius: 99px; padding: 3px 10px; background: #efe6e9; color: #8a5a6a; align-self: flex-start; }
.ab-rs { display: block; margin-top: 4px; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.dn-tl li.ab i { background: #efe6e9; }
#abandonForm .field textarea { min-height: 64px; }
.extras .wide { grid-column: 1 / -1; }

/* Diagrammart umschalten */
.cxh { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.cxh h2 { margin: 0; }
.cxsw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--lav-100, #f1ebff); flex: none; }
.cxb { width: 30px; height: 28px; border: 0; border-radius: 99px; background: transparent; color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .12s, color .12s; }
.cxb svg { width: 17px; height: 17px; }
.cxb:hover { color: var(--ink); }
.cxb.on { background: var(--card, #fff); color: var(--lav-600, #6a4cc4); box-shadow: 0 1px 4px rgba(80, 50, 140, .18); }
.st-h .cxsw { margin-left: auto; }
.chart .bt:hover .end, .chart .bt:focus-visible .end { opacity: 1; }
.chart.cx-kacheln text.v { fill: var(--ink); }
.chart .bt.fut text.m { opacity: .45; }

.cxctl { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.st-h .cxctl { margin-left: auto; }
.st-h .cxctl .cxsw { margin-left: 0; }
.rgsw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--lav-100, #f1ebff); flex: none; }
.rgb { height: 28px; padding: 0 12px; border: 0; border-radius: 99px; background: transparent; color: var(--ink-soft); font: 700 .82rem var(--sans); cursor: pointer; transition: background .12s, color .12s; }
.rgb:hover { color: var(--ink); }
.rgb.on { background: var(--card, #fff); color: var(--lav-600, #6a4cc4); box-shadow: 0 1px 4px rgba(80, 50, 140, .18); }
@media (max-width: 640px) { .st-h { flex-wrap: wrap; } .st-h > .muted.small { flex-basis: 100%; order: 5; margin-top: 4px; } .st-h .cxctl { margin-left: 0; width: 100%; justify-content: flex-start; } }

/* Version im Profilmenü: nur auf kleinen Bildschirmen (am Desktop gibt es die Statusleiste) */
.menu-status { display: none; }
@media (max-width: 900px) {
  .menu-status:not([hidden]) { display: flex; flex-direction: column; gap: 3px; margin: 2px 8px 6px; padding: 10px 12px; border-radius: 12px; background: var(--lav-100, #f1ebff); font: 600 .8rem/1.3 var(--sans); color: var(--ink-soft); }
  .menu-status b { color: var(--ink); font-weight: 800; }
  .menu-status small { font-size: .76rem; font-weight: 600; }
  .menu-status .ms-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; }
  .menu-status .sb-state { display: inline-flex; align-items: center; gap: 7px; }
  .menu-status .sb-state i { width: 8px; height: 8px; border-radius: 50%; background: #3f9b6b; }
  .menu-status .sb-state.new i { background: #d08a1e; }
  .menu-status .sb-state.off i { background: #b2476b; }
  .menu-status .linkbtn { font-size: inherit; }
}

.chart .gl { stroke: var(--ch-grid); stroke-width: 1; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .9; }
.chart text.gt { font: 700 9.5px var(--sans); fill: var(--ink-soft); opacity: .7; pointer-events: none; }

/* ---------- Themes-Fenster ---------- */
.menu-hint { margin-left: auto; font: 700 .74rem/1 var(--sans); color: var(--ink-soft); white-space: nowrap; }
.themegrp { border: 1.5px solid var(--line); border-radius: 18px; margin-bottom: 8px; background: var(--surface); overflow: hidden; }
.themegrp summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; }
.themegrp summary::-webkit-details-marker { display: none; }
.themegrp summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); margin: 0 4px 3px 2px; transition: transform .15s; }
.themegrp[open] summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.themegrp summary > span:first-child { flex: 1; display: grid; gap: 1px; }
.themegrp summary b { font-weight: 800; font-size: .98rem; color: var(--ink); }
.themegrp summary small { font-size: .76rem; color: var(--ink-soft); }
.themedots { display: flex; flex: none; }
.themedots i { width: 16px; height: 16px; border-radius: 50%; margin-left: -4px; box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px rgba(0, 0, 0, .1); }
.themegrp[open] .themedots { display: none; }
.themegrp summary:focus-visible { outline: 3px solid var(--lav-400); outline-offset: -3px; }
.themelist { display: grid; gap: 6px; padding: 2px 10px 10px; }
.themeopt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.themeopt .swatch { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 1px rgba(0, 0, 0, .12); }
.themeopt span { flex: 1; display: grid; gap: 1px; }
.themeopt b { font-weight: 800; font-size: .95rem; }
.themeopt small { font-size: .78rem; color: var(--ink-soft); }
.themeopt svg { width: 20px; height: 20px; stroke: var(--lav-600); flex: none; }
.themeopt:hover { background: var(--lav-100); }
.themeopt.on { border-color: var(--lav-400); background: var(--lav-100); }
.themeopt:focus-visible { outline: 3px solid var(--lav-400); outline-offset: 2px; }

/* Jahreszeiten-Themes: gemeinsame Regeln, Farben je Theme über Variablen */
html[data-theme="fruehling"] { --sx-h:#2f6a3a; --blush:#f2f8ee; --paper:#fbfef8; --card:#fbfef8; --surface:#fbfef8; --surface-2:#eef7e8; --line:#d8ebcf; --lav-50:#f0f8ea; --lav-100:#e0f1d6; --lav-200:#cbe6bb; --lav-300:#9fd08c; --lav-400:#74b960; --lav-500:#4a9a46; --lav-600:#2f7a3a; --ink:#2c4a30; --ink-soft:#587a54; --violet-deep:#2f7a3a; --pink:#f6b8cc; --gold:#f5dc7a; --sage:#8cc27a; --sky:#bfe0f2; --ch-line:#4a9a46; --ch-fill:#a6d493; --ch-grid:#e2f1da; --ch-bar:#74b960; --ch-ring-a:#b4de9f; --ch-ring-b:#3f8f45; --ch-ring-track:#e4f2dc; --shadow: 0 8px 22px rgba(106,170,96,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-small: 0 6px 16px rgba(106,170,96,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-raise: 0 14px 34px rgba(106,170,96,.19), inset 0 1px 0 rgba(255,255,255,.9); --sh-inset: inset 0 2px 6px rgba(106,170,96,.14), inset 0 0 0 1px rgba(255,255,255,.6); --sh-btn: 0 10px 20px rgba(106,170,96,.36), inset 0 1px 0 rgba(255,255,255,.4); --clay: linear-gradient(160deg, rgba(255,255,255,.82), #e8f5de99); --clay-sm: linear-gradient(160deg, rgba(255,255,255,.84), #e8f5deaa); --sx-a:#74b960; --sx-b:#3f8a45; --sx-l1:#e8f5de; --sx-l2:#d4ecc5; --sx-a1:#bfe3ae; --sx-a2:#6fb85d; --sx-sh:106,170,96; --sx-scrim:40,70,45; --sx-toast:#2f4a33; --lg-bird:#3f8a45; --lg-page:#a6d493; --lg-edge:#f1faea; }
html[data-theme="fruehling"] body { background: radial-gradient(55% 38% at 8% 0%, rgba(255,240,170,.75) 0, transparent 70%), radial-gradient(45% 36% at 100% 18%, rgba(255,214,230,.7) 0, transparent 70%), radial-gradient(50% 40% at 70% 100%, rgba(190,232,170,.7) 0, transparent 70%), linear-gradient(160deg, #f6fbef 0%, #ebf6e2 50%, #e0f0d3 100%) fixed; }
html[data-theme="fruehling"] body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22360%22 height=%22360%22%3E%3Cg opacity=%22.55%22%3E%3Cpath d=%22M40 60c10-18 28-18 34 0-8 14-28 14-34 0z%22 fill=%22%23f8b8cf%22 transform=%22rotate(25 57 60)%22/%3E%3Cpath d=%22M250 40c10-18 28-18 34 0-8 14-28 14-34 0z%22 fill=%22%23fff%22 transform=%22rotate(-30 267 40)%22/%3E%3Cpath d=%22M150 190c10-18 28-18 34 0-8 14-28 14-34 0z%22 fill=%22%23f8b8cf%22 transform=%22rotate(70 167 190)%22/%3E%3Cpath d=%22M300 270c10-18 28-18 34 0-8 14-28 14-34 0z%22 fill=%22%23fff6c4%22 transform=%22rotate(10 317 270)%22/%3E%3Cpath d=%22M30 300c10-18 28-18 34 0-8 14-28 14-34 0z%22 fill=%22%23fff%22 transform=%22rotate(-60 47 300)%22/%3E%3Ccircle cx=%22210%22 cy=%22320%22 r=%224%22 fill=%22%23f7e48b%22/%3E%3Ccircle cx=%2290%22 cy=%22170%22 r=%223%22 fill=%22%23f8b8cf%22/%3E%3C/g%3E%3C/svg%3E"); background-size: 360px; }
html[data-theme="sommer"] { --sx-h:#8a4b05; --blush:#fff7e0; --paper:#fffdf6; --card:#fffdf6; --surface:#fffdf6; --surface-2:#fff3d0; --line:#fbe6a8; --lav-50:#fff6dc; --lav-100:#ffeeb8; --lav-200:#ffe28a; --lav-300:#ffc94d; --lav-400:#f5a623; --lav-500:#e0840c; --lav-600:#b86400; --ink:#46361a; --ink-soft:#7a6234; --violet-deep:#b86400; --pink:#ffb4a0; --gold:#ffd24d; --sage:#8fcfb2; --sky:#8fd3ec; --ch-line:#e0840c; --ch-fill:#ffd36a; --ch-grid:#fdecb8; --ch-bar:#f5a623; --ch-ring-a:#ffd980; --ch-ring-b:#e0780c; --ch-ring-track:#fdeec0; --shadow: 0 8px 22px rgba(240,170,50,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-small: 0 6px 16px rgba(240,170,50,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-raise: 0 14px 34px rgba(240,170,50,.19), inset 0 1px 0 rgba(255,255,255,.9); --sh-inset: inset 0 2px 6px rgba(240,170,50,.14), inset 0 0 0 1px rgba(255,255,255,.6); --sh-btn: 0 10px 20px rgba(240,170,50,.36), inset 0 1px 0 rgba(255,255,255,.4); --clay: linear-gradient(160deg, rgba(255,255,255,.82), #fff1c499); --clay-sm: linear-gradient(160deg, rgba(255,255,255,.84), #fff1c4aa); --sx-a:#f5a623; --sx-b:#d97706; --sx-l1:#fff1c4; --sx-l2:#ffe49a; --sx-a1:#ffd36a; --sx-a2:#f39a1d; --sx-sh:240,170,50; --sx-scrim:80,55,10; --sx-toast:#4a3516; --lg-bird:#d97706; --lg-page:#ffd36a; --lg-edge:#fff8e0; }
html[data-theme="sommer"] body { background: radial-gradient(60% 45% at 92% 0%, rgba(255,226,120,.85) 0, transparent 68%), radial-gradient(45% 36% at 0% 20%, rgba(150,220,240,.55) 0, transparent 70%), radial-gradient(50% 40% at 60% 100%, rgba(255,200,140,.55) 0, transparent 70%), linear-gradient(160deg, #fffbea 0%, #fff3cf 50%, #ffe9b3 100%) fixed; }
html[data-theme="sommer"] body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22400%22 height=%22400%22%3E%3Cg opacity=%22.5%22%3E%3Ccircle cx=%2260%22 cy=%2270%22 r=%225%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22300%22 cy=%2250%22 r=%223%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22180%22 cy=%22150%22 r=%224%22 fill=%22%23ffe38a%22/%3E%3Ccircle cx=%22340%22 cy=%22230%22 r=%225%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2290%22 cy=%22280%22 r=%223%22 fill=%22%23ffe38a%22/%3E%3Ccircle cx=%22230%22 cy=%22340%22 r=%224%22 fill=%22%23fff%22/%3E%3Cpath d=%22M250 150q16-18 32 0q-16 8-32 0z%22 fill=%22%238fd3ec%22/%3E%3Cpath d=%22M40 190q16-18 32 0q-16 8-32 0z%22 fill=%22%238fd3ec%22/%3E%3C/g%3E%3C/svg%3E"); background-size: 360px; }
html[data-theme="herbst"] { --sx-h:#6a3a1f; --blush:#fbf0e2; --paper:#fffaf3; --card:#fffaf3; --surface:#fffaf3; --surface-2:#f9ead8; --line:#f0d6b8; --lav-50:#fbefdf; --lav-100:#f7e0c6; --lav-200:#f0c9a0; --lav-300:#e3a06b; --lav-400:#d57d3c; --lav-500:#b95a22; --lav-600:#964214; --ink:#4a2e1f; --ink-soft:#7d5a43; --violet-deep:#964214; --pink:#e9a38d; --gold:#e8b04a; --sage:#9aa86a; --sky:#b9c7cf; --ch-line:#b95a22; --ch-fill:#e8a76e; --ch-grid:#f4e0c8; --ch-bar:#d57d3c; --ch-ring-a:#f0b27e; --ch-ring-b:#a8481a; --ch-ring-track:#f6e3cd; --script: "Cormorant Garamond", Georgia, serif; --shadow: 0 8px 22px rgba(190,100,40,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-small: 0 6px 16px rgba(190,100,40,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-raise: 0 14px 34px rgba(190,100,40,.19), inset 0 1px 0 rgba(255,255,255,.9); --sh-inset: inset 0 2px 6px rgba(190,100,40,.14), inset 0 0 0 1px rgba(255,255,255,.6); --sh-btn: 0 10px 20px rgba(190,100,40,.36), inset 0 1px 0 rgba(255,255,255,.4); --clay: linear-gradient(160deg, rgba(255,255,255,.82), #fbe6cf99); --clay-sm: linear-gradient(160deg, rgba(255,255,255,.84), #fbe6cfaa); --sx-a:#d57d3c; --sx-b:#a8481a; --sx-l1:#fbe6cf; --sx-l2:#f4d2ae; --sx-a1:#eeb27a; --sx-a2:#c9642a; --sx-sh:190,100,40; --sx-scrim:70,38,20; --sx-toast:#4a2a18; --lg-bird:#a8481a; --lg-page:#eeb27a; --lg-edge:#fdf0e0; }
html[data-theme="herbst"] body { background: radial-gradient(55% 38% at 6% 0%, rgba(250,205,150,.85) 0, transparent 70%), radial-gradient(45% 36% at 100% 20%, rgba(240,170,120,.5) 0, transparent 70%), radial-gradient(50% 40% at 68% 100%, rgba(226,150,90,.45) 0, transparent 70%), linear-gradient(160deg, #fdf1e0 0%, #f9e4cb 50%, #f2d3b0 100%) fixed; }
html[data-theme="herbst"] body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22420%22 height=%22420%22%3E%3Cg opacity=%22.5%22%3E%3Cg transform=%22translate(70 80) rotate(-25)%22%3E%3Cpath d=%22M0 0C14-22 40-22 56 0C40 22 14 22 0 0z%22 fill=%22%23e07a3a%22/%3E%3Cpath d=%22M2 0H52%22 stroke=%22%23fff%22 stroke-opacity=%22.5%22 stroke-width=%221.6%22/%3E%3C/g%3E%3Cg transform=%22translate(300 60) rotate(40)%22%3E%3Cpath d=%22M0 0C14-22 40-22 56 0C40 22 14 22 0 0z%22 fill=%22%23c9482a%22/%3E%3Cpath d=%22M2 0H52%22 stroke=%22%23fff%22 stroke-opacity=%22.5%22 stroke-width=%221.6%22/%3E%3C/g%3E%3Cg transform=%22translate(190 210) rotate(80)%22%3E%3Cpath d=%22M0 0C14-22 40-22 56 0C40 22 14 22 0 0z%22 fill=%22%23e8b04a%22/%3E%3Cpath d=%22M2 0H52%22 stroke=%22%23fff%22 stroke-opacity=%22.5%22 stroke-width=%221.6%22/%3E%3C/g%3E%3Cg transform=%22translate(330 320) rotate(-70)%22%3E%3Cpath d=%22M0 0C14-22 40-22 56 0C40 22 14 22 0 0z%22 fill=%22%23e07a3a%22/%3E%3Cpath d=%22M2 0H52%22 stroke=%22%23fff%22 stroke-opacity=%22.5%22 stroke-width=%221.6%22/%3E%3C/g%3E%3Cg transform=%22translate(50 340) rotate(15)%22%3E%3Cpath d=%22M0 0C14-22 40-22 56 0C40 22 14 22 0 0z%22 fill=%22%23b8562a%22/%3E%3Cpath d=%22M2 0H52%22 stroke=%22%23fff%22 stroke-opacity=%22.5%22 stroke-width=%221.6%22/%3E%3C/g%3E%3Cg transform=%22translate(240 380) rotate(-40)%22%3E%3Cpath d=%22M0 0C14-22 40-22 56 0C40 22 14 22 0 0z%22 fill=%22%23e8b04a%22/%3E%3Cpath d=%22M2 0H52%22 stroke=%22%23fff%22 stroke-opacity=%22.5%22 stroke-width=%221.6%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); background-size: 360px; }
html[data-theme="winter"] { --sx-h:#1f4c80; --blush:#eef4fb; --paper:#fafdff; --card:#fafdff; --surface:#fafdff; --surface-2:#eaf2fb; --line:#d3e3f3; --lav-50:#edf4fb; --lav-100:#dcebf8; --lav-200:#c3dbf1; --lav-300:#93bde4; --lav-400:#5f9bd4; --lav-500:#3b78b8; --lav-600:#265a94; --ink:#24405e; --ink-soft:#56718f; --violet-deep:#265a94; --pink:#f1c4d6; --gold:#f2d89a; --sage:#9cc3b8; --sky:#a8cdee; --ch-line:#3b78b8; --ch-fill:#9fc6ea; --ch-grid:#dde9f5; --ch-bar:#5f9bd4; --ch-ring-a:#a9cdee; --ch-ring-b:#2f69a8; --ch-ring-track:#dfeaf6; --shadow: 0 8px 22px rgba(80,130,190,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-small: 0 6px 16px rgba(80,130,190,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-raise: 0 14px 34px rgba(80,130,190,.19), inset 0 1px 0 rgba(255,255,255,.9); --sh-inset: inset 0 2px 6px rgba(80,130,190,.14), inset 0 0 0 1px rgba(255,255,255,.6); --sh-btn: 0 10px 20px rgba(80,130,190,.36), inset 0 1px 0 rgba(255,255,255,.4); --clay: linear-gradient(160deg, rgba(255,255,255,.82), #e3effb99); --clay-sm: linear-gradient(160deg, rgba(255,255,255,.84), #e3effbaa); --sx-a:#5f9bd4; --sx-b:#2f69a8; --sx-l1:#e3effb; --sx-l2:#cfe3f6; --sx-a1:#a9cdee; --sx-a2:#4f8cc8; --sx-sh:80,130,190; --sx-scrim:25,50,80; --sx-toast:#1f3a58; --lg-bird:#2f69a8; --lg-page:#a9cdee; --lg-edge:#f1f7fd; }
html[data-theme="winter"] body { background: radial-gradient(55% 38% at 8% 0%, rgba(255,255,255,.95) 0, transparent 70%), radial-gradient(45% 36% at 100% 18%, rgba(200,225,248,.8) 0, transparent 70%), radial-gradient(50% 40% at 70% 100%, rgba(170,205,240,.55) 0, transparent 70%), linear-gradient(160deg, #f4f9fe 0%, #e6f0fa 50%, #d8e7f6 100%) fixed; }
html[data-theme="winter"] body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22380%22 height=%22380%22%3E%3Cg opacity=%22.75%22%3E%3Ccircle cx=%2250%22 cy=%2260%22 r=%223.5%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22140%22 cy=%2230%22 r=%222.2%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22260%22 cy=%2280%22 r=%224%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22340%22 cy=%2240%22 r=%222.5%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2290%22 cy=%22170%22 r=%222.5%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22210%22 cy=%22190%22 r=%223.5%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22320%22 cy=%22160%22 r=%222.2%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2240%22 cy=%22290%22 r=%224%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22160%22 cy=%22320%22 r=%222.5%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22280%22 cy=%22300%22 r=%223.5%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22350%22 cy=%22350%22 r=%222.2%22 fill=%22%23fff%22/%3E%3Cpath d=%22M200 80v22M189 91h22M192 83l16 16M208 83l-16 16%22 stroke=%22%23bcd8f0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 fill=%22none%22/%3E%3Cpath d=%22M80 240v22M69 251h22M72 243l16 16M88 243l-16 16%22 stroke=%22%23bcd8f0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 fill=%22none%22/%3E%3C/g%3E%3C/svg%3E"); background-size: 360px; }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) :is(.app, #layer) { position: relative; z-index: 1; }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .search, .menu, .newshelf) { -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) :is(.side, .card, .shelf, .qcard, .tile, .polaroid) { border: 1.5px solid rgba(255,255,255,.85); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) :is(.card, .shelf) { border-radius: 26px; }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .side { border-radius: 28px; }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .search { background: linear-gradient(160deg, rgba(255,255,255,.88), rgba(255,255,255,.62)); border: 1.5px solid rgba(255,255,255,.85); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .search:focus-within { box-shadow: var(--sh-small), 0 0 0 3px rgba(var(--sx-sh), .32); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) :is(.field input, .field select, .field textarea, .inp) { background: rgba(255,255,255,.74); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) :is(.field input:focus, .field select:focus, .field textarea:focus, .inp:focus) { box-shadow: var(--sh-inset), 0 0 0 3px rgba(var(--sx-sh), .32); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) :focus-visible { outline-color: var(--lav-400); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .nav a[aria-current="page"] { background: linear-gradient(160deg, var(--sx-l1), var(--sx-l2)); box-shadow: var(--sh-small); }
@media (hover: hover) { :is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) :is(.nav a:hover, .nav .navbtn:hover) { background: var(--sx-l1); } }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) :is(.btn.primary, .seg input:checked + span, .chip.on, .chipcheck input:checked + .chip, .tbtn.on) { background: linear-gradient(180deg, var(--sx-a), var(--sx-b)); box-shadow: 0 8px 16px rgba(var(--sx-sh), .34); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .btn:hover { background: linear-gradient(160deg, #fff, var(--sx-l1)); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .bar > i { background: linear-gradient(90deg, var(--sx-a1), var(--sx-a2)); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .avatar { background: linear-gradient(160deg, var(--sx-a1), var(--sx-a2)); border-color: rgba(255,255,255,.95); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .tbtn { background: rgba(255,255,255,.72); border: 1.5px solid rgba(255,255,255,.85); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .tbtn.on { border-color: transparent; }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .seg { background: var(--sx-l1); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .cover { box-shadow: 5px 8px 16px rgba(var(--sx-sh), .3), inset 0 1px 0 rgba(255,255,255,.45); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .tape { background: var(--sx-a1); opacity: .8; }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .scrim { background: rgba(var(--sx-scrim), .36); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .modal { background: linear-gradient(160deg, rgba(255,255,255,.95), var(--sx-l1)); border: 1.5px solid rgba(255,255,255,.9); border-radius: 28px; }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .menu { background: linear-gradient(160deg, rgba(255,255,255,.96), var(--sx-l1)); border: 1.5px solid rgba(255,255,255,.9); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .toast { background: var(--sx-toast); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) .menu svg { stroke: var(--lav-400); }
@media (min-width: 641px) { html[data-theme="herbst"] .hero-txt h1 { font-size: .9em; } }
html[data-theme="herbst"] :is(.brand b, .hello h1, .hero-txt h1, .card h2, .rail h2, .page-title, .empty b, .shelf h3, .nowbook h3, .modal h2, .tfh, .authcard h1) { font-family: var(--script); font-weight: 600; font-size-adjust: .5; }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) :is(.brand b, .hello h1, .hero-txt h1, .card h2, .rail h2, .page-title, .empty b, .shelf h3, .nowbook h3, .modal h2, .tfh, .authcard h1) { color: var(--sx-h); }
:is(html[data-theme="fruehling"], html[data-theme="sommer"], html[data-theme="herbst"], html[data-theme="winter"], html[data-theme="weihnacht"], html[data-theme="romance"], html[data-theme="krimi"], html[data-theme="manga"]) :is(.hero-txt p, .hello p) { color: var(--ink-soft); }

html[data-theme="weihnacht"] { --sx-h:#8f1d1d; --blush:#fff4ee; --paper:#fffaf6; --card:#fffaf6; --surface:#fffaf6; --surface-2:#fdebe4; --line:#f3cfc4; --lav-50:#fdf0ea; --lav-100:#fbdfd6; --lav-200:#f4c3b5; --lav-300:#e58f7e; --lav-400:#cf5a4a; --lav-500:#b3342e; --lav-600:#8f1d1d; --ink:#3d2418; --ink-soft:#7a4f3f; --violet-deep:#8f1d1d; --pink:#f1a7a0; --gold:#e3b04b; --sage:#6fa07a; --sky:#b7d3e8; --ch-line:#b3342e; --ch-fill:#e8998c; --ch-grid:#f6dcd3; --ch-bar:#cf5a4a; --ch-ring-a:#ef9f92; --ch-ring-b:#9c2a28; --ch-ring-track:#f7e0d8; --shadow: 0 8px 22px rgba(170,50,40,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-small: 0 6px 16px rgba(170,50,40,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-raise: 0 14px 34px rgba(170,50,40,.19), inset 0 1px 0 rgba(255,255,255,.9); --sh-inset: inset 0 2px 6px rgba(170,50,40,.14), inset 0 0 0 1px rgba(255,255,255,.6); --sh-btn: 0 10px 20px rgba(170,50,40,.36), inset 0 1px 0 rgba(255,255,255,.4); --clay: linear-gradient(160deg, rgba(255,255,255,.82), #fde8e099); --clay-sm: linear-gradient(160deg, rgba(255,255,255,.84), #fde8e0aa); --sx-a:#cf5a4a; --sx-b:#9c2a28; --sx-l1:#fde8e0; --sx-l2:#f9d2c6; --sx-a1:#eba194; --sx-a2:#be4034; --sx-sh:170,50,40; --sx-scrim:70,25,20; --sx-toast:#4a1e18; --lg-bird:#9c2a28; --lg-page:#eba194; --lg-edge:#fff3ee; }
html[data-theme="weihnacht"] body { background: radial-gradient(55% 38% at 6% 0%, rgba(255,226,170,.8) 0, transparent 70%), radial-gradient(45% 36% at 100% 22%, rgba(190,226,196,.6) 0, transparent 70%), radial-gradient(50% 40% at 68% 100%, rgba(240,170,160,.5) 0, transparent 70%), linear-gradient(160deg, #fff7f0 0%, #fdeadf 50%, #f8dccf 100%) fixed; }
html[data-theme="weihnacht"] body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22380%22 height=%22380%22%3E%3Cg opacity=%22.7%22%3E%3Ccircle cx=%2250%22 cy=%2260%22 r=%223.5%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22250%22 cy=%2240%22 r=%222.4%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22330%22 cy=%22130%22 r=%223.5%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22110%22 cy=%22200%22 r=%222.4%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22220%22 cy=%22260%22 r=%223.5%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2240%22 cy=%22330%22 r=%222.4%22 fill=%22%23fff%22/%3E%3Ccircle cx=%22320%22 cy=%22340%22 r=%223.5%22 fill=%22%23fff%22/%3E%3Cpath d=%22M170 70l4 10 10 1-8 7 3 10-9-6-9 6 3-10-8-7 10-1z%22 fill=%22%23e3b04b%22/%3E%3Cpath d=%22M60 150l3 8 8 1-6 5 2 8-7-5-7 5 2-8-6-5 8-1z%22 fill=%22%23e3b04b%22/%3E%3Cpath d=%22M290 230l3 8 8 1-6 5 2 8-7-5-7 5 2-8-6-5 8-1z%22 fill=%22%23e3b04b%22/%3E%3Cg fill=%22%232f7a46%22%3E%3Cpath d=%22M130 310c8-10 18-8 20 2-9 5-17 5-20-2z%22/%3E%3Cpath d=%22M148 312c10-8 19-4 18 6-10 3-17 1-18-6z%22/%3E%3C/g%3E%3Cg fill=%22%23c0392b%22%3E%3Ccircle cx=%22146%22 cy=%22316%22 r=%223.4%22/%3E%3Ccircle cx=%22152%22 cy=%22320%22 r=%223.4%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); background-size: 380px; }
html[data-theme="romance"] { --sx-h:#8a1c40; --blush:#fdecef; --paper:#fffafa; --card:#fffafa; --surface:#fffafa; --surface-2:#fde3e8; --line:#f3c6d0; --lav-50:#fdeaee; --lav-100:#fad6df; --lav-200:#f3b6c5; --lav-300:#e5809b; --lav-400:#d4577a; --lav-500:#b02e56; --lav-600:#8a1c40; --ink:#4a1426; --ink-soft:#7d4256; --violet-deep:#8a1c40; --pink:#ee9bb0; --gold:#d8a24a; --sage:#9bbb8f; --sky:#d9c4e6; --ch-line:#b02e56; --ch-fill:#ec9db3; --ch-grid:#f8d9e1; --ch-bar:#d4577a; --ch-ring-a:#f1a9bc; --ch-ring-b:#982349; --ch-ring-track:#f9dce3; --script: "Cormorant Garamond", Georgia, serif; --shadow: 0 8px 22px rgba(176,46,86,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-small: 0 6px 16px rgba(176,46,86,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-raise: 0 14px 34px rgba(176,46,86,.19), inset 0 1px 0 rgba(255,255,255,.9); --sh-inset: inset 0 2px 6px rgba(176,46,86,.14), inset 0 0 0 1px rgba(255,255,255,.6); --sh-btn: 0 10px 20px rgba(176,46,86,.36), inset 0 1px 0 rgba(255,255,255,.4); --clay: linear-gradient(160deg, rgba(255,255,255,.82), #fde4ea99); --clay-sm: linear-gradient(160deg, rgba(255,255,255,.84), #fde4eaaa); --sx-a:#d4577a; --sx-b:#9c2a4f; --sx-l1:#fde4ea; --sx-l2:#f9ccd7; --sx-a1:#eea0b5; --sx-a2:#c0436a; --sx-sh:176,46,86; --sx-scrim:74,20,38; --sx-toast:#4a1426; --lg-bird:#9c2a4f; --lg-page:#eea0b5; --lg-edge:#fff1f4; }
html[data-theme="romance"] body { background: radial-gradient(55% 38% at 8% 0%, rgba(255,200,215,.85) 0, transparent 70%), radial-gradient(45% 36% at 100% 20%, rgba(255,222,190,.6) 0, transparent 70%), radial-gradient(50% 40% at 70% 100%, rgba(236,150,180,.55) 0, transparent 70%), linear-gradient(160deg, #fff0f3 0%, #fbdfe6 50%, #f5ccd8 100%) fixed; }
html[data-theme="romance"] body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22420%22 height=%22420%22%3E%3Cg opacity=%22.5%22%3E%3Cpath transform=%22translate(70 80) rotate(-15) scale(1.6)%22 d=%22M0 8C-14-4-8-16 0-8 8-16 14-4 0 8z%22 fill=%22%23ee8fa8%22/%3E%3Cpath transform=%22translate(310 60) rotate(20) scale(1.1)%22 d=%22M0 8C-14-4-8-16 0-8 8-16 14-4 0 8z%22 fill=%22%23f5b6c6%22/%3E%3Cpath transform=%22translate(190 210) rotate(10) scale(2)%22 d=%22M0 8C-14-4-8-16 0-8 8-16 14-4 0 8z%22 fill=%22%23e5809b%22/%3E%3Cpath transform=%22translate(340 300) rotate(-20) scale(1.4)%22 d=%22M0 8C-14-4-8-16 0-8 8-16 14-4 0 8z%22 fill=%22%23ee8fa8%22/%3E%3Cpath transform=%22translate(50 330) rotate(15) scale(1.2)%22 d=%22M0 8C-14-4-8-16 0-8 8-16 14-4 0 8z%22 fill=%22%23d8a24a%22/%3E%3Cpath transform=%22translate(250 380) rotate(-10) scale(1)%22 d=%22M0 8C-14-4-8-16 0-8 8-16 14-4 0 8z%22 fill=%22%23f5b6c6%22/%3E%3C/g%3E%3C/svg%3E"); background-size: 420px; }
html[data-theme="krimi"] { --sx-h:#26332b; --blush:#f1e8d4; --paper:#fbf6e8; --card:#fbf6e8; --surface:#fbf6e8; --surface-2:#f1e8d0; --line:#dccfae; --lav-50:#f4ecd8; --lav-100:#ebe0c3; --lav-200:#ddcea6; --lav-300:#a8a083; --lav-400:#6d7a6c; --lav-500:#45554a; --lav-600:#2f3d35; --ink:#2b2118; --ink-soft:#6a5a44; --violet-deep:#2f3d35; --pink:#c98a7a; --gold:#e6b422; --sage:#8a9a7c; --sky:#9fb0b8; --ch-line:#45554a; --ch-fill:#b4bea8; --ch-grid:#e8dec2; --ch-bar:#6d7a6c; --ch-ring-a:#a9b8a2; --ch-ring-b:#2f3d35; --ch-ring-track:#e9dfc4; --script: "Cormorant Garamond", Georgia, serif; --shadow: 0 8px 22px rgba(70,60,40,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-small: 0 6px 16px rgba(70,60,40,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-raise: 0 14px 34px rgba(70,60,40,.19), inset 0 1px 0 rgba(255,255,255,.9); --sh-inset: inset 0 2px 6px rgba(70,60,40,.14), inset 0 0 0 1px rgba(255,255,255,.6); --sh-btn: 0 10px 20px rgba(70,60,40,.36), inset 0 1px 0 rgba(255,255,255,.4); --clay: linear-gradient(160deg, rgba(255,255,255,.82), #f3e6b899); --clay-sm: linear-gradient(160deg, rgba(255,255,255,.84), #f3e6b8aa); --sx-a:#4f6154; --sx-b:#26332b; --sx-l1:#f3e6b8; --sx-l2:#ecd98e; --sx-a1:#a9b8a2; --sx-a2:#3b4a40; --sx-sh:70,60,40; --sx-scrim:40,32,20; --sx-toast:#26332b; --lg-bird:#26332b; --lg-page:#a9b8a2; --lg-edge:#f8f1dc; }
html[data-theme="krimi"] body { background: radial-gradient(60% 40% at 10% 0%, rgba(255,246,214,.9) 0, transparent 70%), radial-gradient(45% 36% at 100% 22%, rgba(230,200,120,.35) 0, transparent 70%), linear-gradient(160deg, #f5edd9 0%, #eadfc4 55%, #ddd0ae 100%) fixed; }
html[data-theme="krimi"] body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22360%22 height=%22360%22%3E%3Cg opacity=%22.35%22 fill=%22none%22 stroke=%22%236a5a44%22 stroke-width=%221.4%22%3E%3Ccircle cx=%2290%22 cy=%2290%22 r=%2228%22/%3E%3Ccircle cx=%2290%22 cy=%2290%22 r=%2222%22/%3E%3Ccircle cx=%2290%22 cy=%2290%22 r=%2216%22/%3E%3Ccircle cx=%2290%22 cy=%2290%22 r=%2210%22/%3E%3Ccircle cx=%22270%22 cy=%22250%22 r=%2234%22/%3E%3Ccircle cx=%22270%22 cy=%22250%22 r=%2227%22/%3E%3Ccircle cx=%22270%22 cy=%22250%22 r=%2220%22/%3E%3Ccircle cx=%22270%22 cy=%22250%22 r=%2213%22/%3E%3Ccircle cx=%22270%22 cy=%22250%22 r=%226%22/%3E%3Ccircle cx=%22230%22 cy=%2260%22 r=%229%22/%3E%3Ccircle cx=%22230%22 cy=%2260%22 r=%225%22/%3E%3C/g%3E%3C/svg%3E"); background-size: 360px; }
html[data-theme="manga"] { --sx-h:#1f1a2e; --blush:#fff4f6; --paper:#ffffff; --card:#ffffff; --surface:#ffffff; --surface-2:#fff0f3; --line:#ffd3dd; --lav-50:#fff2f5; --lav-100:#ffe4ea; --lav-200:#ffc9d5; --lav-300:#ff93ab; --lav-400:#f2587a; --lav-500:#d9304f; --lav-600:#b01f3b; --ink:#1f1a2e; --ink-soft:#5b5470; --violet-deep:#b01f3b; --pink:#ffb3c4; --gold:#ffd23f; --sage:#8fd4b0; --sky:#9fd0f2; --ch-line:#d9304f; --ch-fill:#ffb3c4; --ch-grid:#e8e2ee; --ch-bar:#f2587a; --ch-ring-a:#ffb3c4; --ch-ring-b:#d9304f; --ch-ring-track:#f1e8ee; --shadow: 0 8px 22px rgba(217,48,79,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-small: 0 6px 16px rgba(217,48,79,.16), inset 0 1px 0 rgba(255,255,255,.85); --sh-raise: 0 14px 34px rgba(217,48,79,.19), inset 0 1px 0 rgba(255,255,255,.9); --sh-inset: inset 0 2px 6px rgba(217,48,79,.14), inset 0 0 0 1px rgba(255,255,255,.6); --sh-btn: 0 10px 20px rgba(217,48,79,.36), inset 0 1px 0 rgba(255,255,255,.4); --clay: linear-gradient(160deg, rgba(255,255,255,.82), #ffe4ea99); --clay-sm: linear-gradient(160deg, rgba(255,255,255,.84), #ffe4eaaa); --sx-a:#f2587a; --sx-b:#c1264a; --sx-l1:#ffe4ea; --sx-l2:#ffc9d5; --sx-a1:#ffb3c4; --sx-a2:#e0405f; --sx-sh:217,48,79; --sx-scrim:90,45,69; --sx-toast:#1f1a2e; --lg-bird:#c1264a; --lg-page:#ffb3c4; --lg-edge:#fff4f6; }
html[data-theme="manga"] body { background: radial-gradient(circle at 20% 20%, rgba(255,200,215,.55) 0, transparent 55%), radial-gradient(circle at 90% 85%, rgba(160,208,242,.45) 0, transparent 55%), #fffafb fixed; }
html[data-theme="manga"] body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22%3E%3Ccircle cx=%226%22 cy=%226%22 r=%222.2%22 fill=%22%231f1a2e%22 opacity=%22.11%22/%3E%3Ccircle cx=%2218%22 cy=%2218%22 r=%222.2%22 fill=%22%231f1a2e%22 opacity=%22.11%22/%3E%3C/svg%3E"); background-size: 24px; }
/* Serifenschrift: Herbst, Romance, Krimi */
:is(html[data-theme="romance"], html[data-theme="krimi"]) :is(.brand b, .hello h1, .hero-txt h1, .card h2, .rail h2, .page-title, .empty b, .shelf h3, .nowbook h3, .modal h2, .tfh, .authcard h1) { font-family: var(--script); font-weight: 600; font-size-adjust: .5; }
/* Weihnacht: Lichterkette am oberen Rand */
html[data-theme="weihnacht"] body::after { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 10px; pointer-events: none; z-index: 5; background: radial-gradient(circle at 12px 5px, #d9473a 0 3.2px, transparent 3.6px) 0 0/48px 10px, radial-gradient(circle at 24px 5px, #e3b04b 0 3.2px, transparent 3.6px) 0 0/48px 10px, radial-gradient(circle at 36px 5px, #3f9a5c 0 3.2px, transparent 3.6px) 0 0/48px 10px, radial-gradient(circle at 0 5px, #6aa8d8 0 3.2px, transparent 3.6px) 0 0/48px 10px; opacity: .85; }
/* Romance: goldene Ränder */
html[data-theme="romance"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid) { border-color: rgba(216, 162, 74, .55); }
/* Krimi: Absperrband oben, Papier-Karten mit festem Rand */
html[data-theme="krimi"] body::after { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 8px; pointer-events: none; z-index: 5; background: repeating-linear-gradient(-45deg, #e6b422 0 12px, #231c14 12px 24px); opacity: .9; }
html[data-theme="krimi"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid) { border: 1.5px solid #cdbd96; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--card); }
html[data-theme="krimi"] :is(.btn.primary, .seg input:checked + span, .chip.on, .chipcheck input:checked + .chip, .tbtn.on) { background: linear-gradient(180deg, #4a5a4e, #26332b); color: #f6e7a8; }
/* Manga: heller Panel-Look mit zarten rosa Linien, farbigen Schatten und Rasterpunkten (keine dunklen Rahmen) */
html[data-theme="manga"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .hero) { border: 1.5px solid #ffb3c4; box-shadow: 4px 4px 0 rgba(242, 88, 122, .28); backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
html[data-theme="manga"] :is(.card, .shelf) { border-radius: 18px; }
html[data-theme="manga"] .side { border-radius: 20px; }
html[data-theme="manga"] :is(.btn, .tbtn) { border: 1.5px solid #ffc9d5; }
html[data-theme="manga"] :is(.search, .field input, .field select, .field textarea, .inp) { border: 1.5px solid #ffc9d5; background: #fff; }
html[data-theme="manga"] :is(.btn.primary, .seg input:checked + span, .chip.on, .chipcheck input:checked + .chip, .tbtn.on) { background: linear-gradient(180deg, #f2587a, #d9304f); box-shadow: 3px 3px 0 rgba(217, 48, 79, .3); border: 0; color: #fff; }
html[data-theme="manga"] .nav a[aria-current="page"] { background: #ffe9a8; box-shadow: 3px 3px 0 rgba(242, 160, 40, .35); }
html[data-theme="manga"] .avatar { border: 2px solid #fff; }
html[data-theme="manga"] .bar { border: 1.5px solid #ffc9d5; background: #fff; }
html[data-theme="manga"] .bar > i { background: repeating-linear-gradient(-45deg, #f2587a 0 6px, #ff8aa5 6px 12px); }
html[data-theme="manga"] :is(.modal, .menu) { border: 1.5px solid #ffb3c4; box-shadow: 6px 6px 0 rgba(242, 88, 122, .28); background: #fff; }
html[data-theme="manga"] .toast { background: #5a2d45; }
html[data-theme="manga"] { --line: #ffd3dd; --ch-grid: #f6e3e9; }

/* ===== Dunkle Themes „Nachteule“ und „Thriller“: abgeleitet aus Nachtleuchten (Farbton verschoben) ===== */
html[data-theme="nachteule"] {
  color-scheme: dark;
  --blush: #102738; --paper: #153348; --card: #153348; --surface: #153348; --surface-2: rgba(255,255,255,.075); --line: rgba(255,220,150,.3);
  --lav-50: rgba(255,255,255,.06); --lav-100: rgba(255,210,120,.17); --lav-200: rgba(255,210,120,.3); --lav-300: #ffdf9f; --lav-400: #ffd47f; --lav-500: #e8b247; --lav-600: #ffe0a3;
  --ink: #fff8ea; --ink-soft: #dccdae; --violet-deep: #ffe0a3;
  --pink: #ffda8f; --peach: #ffe5b0; --sage: #8fe0b0; --sky: #9db4ff; --gold: #ffd98a;
  --shadow: 0 0 18px rgba(255,202,95,.16), inset 0 1px 0 rgba(255,255,255,.1);
  --sh-small: 0 0 14px rgba(255,202,95,.16), inset 0 1px 0 rgba(255,255,255,.1);
  --sh-raise: 0 0 26px rgba(255,202,95,.2), 0 14px 34px rgba(7,16,23,.45), inset 0 1px 0 rgba(255,255,255,.12);
  --sh-inset: inset 0 2px 8px rgba(7,16,23,.45), inset 0 0 0 1px rgba(255,220,150,.18);
  --sh-btn: 0 0 20px rgba(255,202,95,.5), inset 0 1px 0 rgba(255,255,255,.35);
  --clay: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
  --clay-sm: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  --ch-line: #ffd47f; --ch-fill: #ffca5f; --ch-grid: rgba(255,220,150,.2); --ch-bar: #ffd47f; --ring-bg: #112a3c;
  --ch-ring-a: #ffe5b0; --ch-ring-b: #ffc44f; --ch-ring-track: rgba(255,220,150,.2);
}
html[data-theme="nachteule"] body {
  color: var(--ink);
  background:
    radial-gradient(45% 35% at 12% 6%, rgba(255,196,79,.28) 0, transparent 70%),
    radial-gradient(40% 35% at 95% 22%, rgba(127,180,218,.3) 0, transparent 70%),
    radial-gradient(50% 40% at 60% 100%, rgba(255,196,79,.2) 0, transparent 70%),
    linear-gradient(170deg, #0d202d 0%, #143044 50%, #183b54 100%) fixed;
}
html[data-theme="nachteule"] body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, #ffffff 50%, transparent 52%), radial-gradient(1px 1px at 22% 62%, #ffefd0 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 37% 28%, #ffefd0 50%, transparent 52%), radial-gradient(1px 1px at 51% 83%, #ffffff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 66% 9%, #ffffff 50%, transparent 52%), radial-gradient(1px 1px at 78% 47%, #ffefd0 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 91% 71%, #ffffff 50%, transparent 52%), radial-gradient(1px 1px at 15% 90%, #ffefd0 50%, transparent 52%),
    radial-gradient(1px 1px at 58% 52%, #ffffff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 84% 92%, #ffefd0 50%, transparent 52%);
}
html[data-theme="nachteule"] .app, html[data-theme="nachteule"] #layer { position: relative; z-index: 1; }
html[data-theme="nachteule"] :is(.brand b, .hello h1, .page-title, .card h2, .rail h2, .empty b, .shelf h3, .nowbook h3, .modal h2, .tfh, .authcard h1) { color: #fff1d6; text-shadow: 0 0 14px rgba(255,202,95,.45); }
html[data-theme="nachteule"] :is(.ring b, .timer .clock) { color: var(--ink); }
html[data-theme="nachteule"] .secretline, html[data-theme="nachteule"] .codes span { color: var(--ink); background: var(--lav-100); }
html[data-theme="nachteule"] .hero-txt h1 { color: #1d4664; text-shadow: none; }
html[data-theme="nachteule"] .hero-txt p { color: #2f71a0; }
@media (max-width: 640px) { html[data-theme="nachteule"] .hero-txt h1 { color: #fff1d6; text-shadow: 0 0 14px rgba(255,202,95,.45); } html[data-theme="nachteule"] .hero-txt p { color: var(--ink-soft); } }
html[data-theme="nachteule"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .hero, .newshelf, .search, .tbtn) { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-theme="nachteule"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .hero) { border: 1.5px solid rgba(255,217,140,.42); }
html[data-theme="nachteule"] .card, html[data-theme="nachteule"] .shelf, html[data-theme="nachteule"] .hero { border-radius: 26px; }
html[data-theme="nachteule"] .search { background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,217,140,.4); }
html[data-theme="nachteule"] .search:focus-within { box-shadow: var(--sh-small), 0 0 0 3px rgba(255,202,95,.38); }
html[data-theme="nachteule"] .search input::placeholder, html[data-theme="nachteule"] .field input::placeholder, html[data-theme="nachteule"] .field textarea::placeholder { color: #b9a98a; }
html[data-theme="nachteule"] .search svg { stroke: #ffde9c; }
html[data-theme="nachteule"] .field input, html[data-theme="nachteule"] .field select, html[data-theme="nachteule"] .field textarea, html[data-theme="nachteule"] .inp, html[data-theme="nachteule"] .toolbar .sel, html[data-theme="nachteule"] .timer .pick select { background: rgba(255,255,255,.08); color: var(--ink); }
html[data-theme="nachteule"] .field input:focus, html[data-theme="nachteule"] .field select:focus, html[data-theme="nachteule"] .field textarea:focus, html[data-theme="nachteule"] .inp:focus { box-shadow: var(--sh-inset), 0 0 0 3px rgba(255,202,95,.4); }
html[data-theme="nachteule"] .timer .pick select option, html[data-theme="nachteule"] .field select option { background: #153348; color: var(--ink); }
html[data-theme="nachteule"] .seg { background: rgba(255,255,255,.07); }
html[data-theme="nachteule"] { --lg-bird: #ffca5f; --lg-page: #a6cbe5; --lg-edge: #fff6e3; }
html[data-theme="nachteule"] .logo svg { filter: drop-shadow(0 0 8px rgba(255,202,95,.55)); }
html[data-theme="nachteule"] .nav a[aria-current="page"] { background: linear-gradient(160deg, rgba(255,202,95,.3), rgba(255,202,95,.14)); box-shadow: 0 0 16px rgba(255,202,95,.3), inset 0 0 0 1px rgba(255,217,140,.4); }
@media (hover: hover) { html[data-theme="nachteule"] .nav a:hover, html[data-theme="nachteule"] .nav .navbtn:hover { background: rgba(255,202,95,.16); } }
html[data-theme="nachteule"] .btn { background: rgba(255,255,255,.09); color: var(--violet-deep); border: 1.5px solid rgba(255,217,140,.35); }
html[data-theme="nachteule"] .btn:hover { background: rgba(255,202,95,.2); }
html[data-theme="nachteule"] .btn.primary, html[data-theme="nachteule"] .seg input:checked + span, html[data-theme="nachteule"] .chip.on, html[data-theme="nachteule"] .chipcheck input:checked + .chip, html[data-theme="nachteule"] .tbtn.on { background: linear-gradient(180deg, #f0bd58 0%, #cf9d3a 100%); color: #ffffff; border-color: rgba(255,233,190,.6); box-shadow: 0 0 18px rgba(255,202,95,.5); }
html[data-theme="nachteule"] .btn.primary:hover { background: linear-gradient(180deg, #f5c76a 0%, #d9a744 100%); }
html[data-theme="nachteule"] .btn.danger { color: #ffdf9f; }
html[data-theme="nachteule"] .tbtn { background: rgba(255,255,255,.09); color: var(--violet-deep); border: 1.5px solid rgba(255,217,140,.35); }
html[data-theme="nachteule"] .tbtn:hover { background: rgba(255,202,95,.2); }
html[data-theme="nachteule"] .chip { background: var(--lav-100); color: var(--violet-deep); }
html[data-theme="nachteule"] .avatar { background: linear-gradient(160deg, #ffda8f, #80b5da); border-color: rgba(255,237,200,.85); box-shadow: 0 0 16px rgba(255,202,95,.5); }
html[data-theme="nachteule"] .bar > i { background: linear-gradient(90deg, #ffda8f, #ffc44f); box-shadow: 0 0 10px rgba(255,202,95,.6); }
html[data-theme="nachteule"] .bar.pink > i { background: linear-gradient(90deg, #ffe5b0, #ffca5f); }
html[data-theme="nachteule"] .stars svg { fill: rgba(255,255,255,.18); }
html[data-theme="nachteule"] .tag { background: rgba(255,213,130,.18); color: #ffe7b8; }
html[data-theme="nachteule"] .tag.wunsch { background: rgba(255,210,120,.2); color: #ffdf9f; }
html[data-theme="nachteule"] .tag.lese { background: rgba(255,214,120,.18); color: #ffd98a; }
html[data-theme="nachteule"] .tag.gelesen, html[data-theme="nachteule"] .tag.sage { background: rgba(130,230,170,.16); color: #9ee8b8; }
html[data-theme="nachteule"] .tag.sub { background: rgba(140,170,255,.2); color: #b8c9ff; }
html[data-theme="nachteule"] .tag.plain { background: rgba(255,255,255,.08); color: var(--ink-soft); }
html[data-theme="nachteule"] .cover { box-shadow: 0 0 16px rgba(255,202,95,.32), 4px 8px 16px rgba(7,16,23,.5), inset 0 1px 0 rgba(255,255,255,.35); }
html[data-theme="nachteule"] .books[data-view="liste"] .bk, html[data-theme="nachteule"] .books[data-view="detail"] .bk { background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,217,140,.3); }
html[data-theme="nachteule"] .polaroid, html[data-theme="nachteule"] .qcard, html[data-theme="nachteule"] .qcard:nth-child(even) { background: var(--clay-sm); }
html[data-theme="nachteule"] .tape { background: rgba(255,218,143,.55); }
html[data-theme="nachteule"] .qitem { background: rgba(255,255,255,.07); border-color: rgba(255,217,140,.25); color: var(--ink); }
html[data-theme="nachteule"] .x:hover { color: #ffdf9f; background: rgba(255,210,120,.2); }
html[data-theme="nachteule"] .swatches span { border-color: rgba(255,255,255,.8); }
html[data-theme="nachteule"] .notice { background: linear-gradient(160deg, rgba(255,214,120,.2), rgba(255,214,120,.1)); color: #ffe7b0; border: 1px solid rgba(255,214,120,.35); }
html[data-theme="nachteule"] .csitem, html[data-theme="nachteule"] .scanbar, html[data-theme="nachteule"] .dupitem, html[data-theme="nachteule"] .qrow { background: rgba(255,255,255,.08); color: var(--ink); }
html[data-theme="nachteule"] .qmark.good { background: rgba(130,230,170,.2); color: #9ee8b8; }
html[data-theme="nachteule"] .csnoimg { background: linear-gradient(160deg, rgba(255,210,120,.22), rgba(255,255,255,.06)); }
html[data-theme="nachteule"] .popmenu button.on .cnt { background: rgba(255,255,255,.14); color: var(--violet-deep); }
html[data-theme="nachteule"] .scrim { background: rgba(8,19,26,.6); }
html[data-theme="nachteule"] .modal { background: linear-gradient(160deg, rgba(26,62,88,.97), rgba(17,41,59,.97)); border: 1.5px solid rgba(255,217,140,.5); box-shadow: 0 0 34px rgba(255,202,95,.28), 0 30px 70px rgba(4,11,16,.6); }
html[data-theme="nachteule"] .menu { background: linear-gradient(160deg, rgba(26,62,88,.98), rgba(17,41,59,.98)); border: 1.5px solid rgba(255,217,140,.5); box-shadow: 0 0 28px rgba(255,202,95,.28), 0 18px 44px rgba(4,11,16,.55); }
html[data-theme="nachteule"] .menu svg { stroke: #ffde9c; }
html[data-theme="nachteule"] .menu button:hover, html[data-theme="nachteule"] .menu a:hover, html[data-theme="nachteule"] .menu button:focus-visible, html[data-theme="nachteule"] .menu a:focus-visible { background: rgba(255,202,95,.18); }
html[data-theme="nachteule"] .toast { background: #1b405b; color: var(--ink); border: 1.5px solid rgba(255,217,140,.5); box-shadow: 0 0 20px rgba(255,202,95,.35); }
html[data-theme="nachteule"] .toast.bad { background: #5a4417; }
@media (max-width: 900px) { html[data-theme="nachteule"] .side { box-shadow: var(--sh-raise); background: linear-gradient(160deg, rgba(26,62,88,.94), rgba(17,41,59,.94)); } }
html[data-theme="nachteule"] .authstage { background: linear-gradient(180deg, #0d202d 0, #143044 40%, #183b54 100%); }
html[data-theme="nachteule"] .authart { filter: brightness(.5) saturate(1.3) hue-rotate(-25deg); opacity: .85; }
html[data-theme="nachteule"] .authcard { background: linear-gradient(165deg, rgba(26,62,88,.95), rgba(17,41,59,.95)); border: 1.5px solid rgba(255,217,140,.5); box-shadow: 0 0 34px rgba(255,202,95,.28), 0 30px 70px rgba(4,11,16,.55); }
html[data-theme="nachteule"] { background: #122b3d; }
html[data-theme="nachteule"] body { min-height: 100vh; }
html[data-theme="nachteule"] :is(.menu button, .menu a, .popmenu button, .popmenu a, .menu-head b) { color: var(--ink); }
html[data-theme="nachteule"] :is(.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible) { color: #ffffff; }
html[data-theme="nachteule"] :is(.menu-head small, .menu-label, .page-sub, .hint, .qcard cite, .note-line) { color: var(--ink-soft); }
html[data-theme="nachteule"] .qcard blockquote { color: var(--ink); }
html[data-theme="nachteule"] .hint.bad, html[data-theme="nachteule"] .dupt.bad, html[data-theme="nachteule"] .qrow.bad small { color: #ffdf9f; }
html[data-theme="nachteule"] .hint.good { color: #9ee8b8; }
html[data-theme="nachteule"] :is(.linkbtn, details.more > summary) { color: #ffe0a3; }
html[data-theme="nachteule"] :is(.linkbtn:hover, .linkbtn:focus-visible) { color: #ffffff; }
html[data-theme="nachteule"] .iconbtn { background: rgba(255,255,255,.09); border: 1.5px solid rgba(255,217,140,.35); color: #ffe0a3; }
html[data-theme="nachteule"] .iconbtn.off { color: #ffdf9f; }
html[data-theme="nachteule"] .syncl li { background: rgba(255,255,255,.07); }
html[data-theme="nachteule"] .tag.wait { background: rgba(255,214,120,.18); color: #ffd98a; }
html[data-theme="nachteule"] .updatebar { background: #1b405b; border: 1.5px solid rgba(255,217,140,.5); }
html[data-theme="nachteule"] .top .mbrand b, html[data-theme="kirschbluete"] .top .mbrand b { font-size: 1.45rem; }
html[data-theme="nachteule"] html[data-theme="nachteule"] .pgscale { background: rgba(255,255,255,.1); }
html[data-theme="nachteule"] .pgscale > i { background: linear-gradient(90deg, #ffda8f, #ffc44f); box-shadow: 0 0 10px rgba(255,202,95,.6); }
html[data-theme="nachteule"] html[data-theme="nachteule"] .pgmark { background: #153348; border-color: #fff1d6; box-shadow: 0 0 0 2px #153348, 0 0 10px rgba(255,233,190,.8); }
html[data-theme="nachteule"] .pgmark u { color: #fff1d6; }
html[data-theme="nachteule"] .pgrange::-webkit-slider-runnable-track { background: linear-gradient(90deg, #ffda8f, #ffc44f var(--p, 0%), rgba(255,255,255,.12) var(--p, 0%)); }
html[data-theme="nachteule"] .pgrange::-moz-range-track { background: linear-gradient(90deg, #ffda8f, #ffc44f var(--p, 0%), rgba(255,255,255,.12) var(--p, 0%)); }
html[data-theme="nachteule"] .pgrange::-webkit-slider-thumb { background: #153349; border-color: #ffda8f; box-shadow: 0 0 12px rgba(255,202,95,.7); }
html[data-theme="nachteule"] .pgrange::-moz-range-thumb { background: #153349; border-color: #ffda8f; }
html[data-theme="nachteule"] .pgnum { border-bottom-color: rgba(255,217,140,.4); color: #fff1d6; text-shadow: 0 0 14px rgba(255,202,95,.5); }
html[data-theme="nachteule"] .pgtotal b { color: #fff1d6; text-shadow: 0 0 14px rgba(255,202,95,.5); }
html[data-theme="nachteule"] .pgtotal em.ok { color: #fff1d6; }
html[data-theme="nachteule"] .pgrow { color: var(--ink); border-color: rgba(255,217,140,.25); }
html[data-theme="nachteule"] .pgtoday .tb { background: linear-gradient(135deg, rgba(255,202,95,.2), rgba(255,255,255,.04)); border-color: rgba(255,217,140,.35); box-shadow: 0 0 22px rgba(255,202,95,.16); }
html[data-theme="nachteule"] .pgtoday .tb .big b { color: #fff1d6; text-shadow: 0 0 16px rgba(255,202,95,.55); }
html[data-theme="nachteule"] .pgtoday .tst .ok { color: #fff1d6; }
html[data-theme="nachteule"] .pgstreak { --fa: #ffc27a; --fb: #ffca5f; --fglow: rgba(255,202,95,.6); --tr: rgba(255,255,255,.1); background: rgba(255,255,255,.05); border-color: rgba(255,217,140,.22); --card: #153348; }
html[data-theme="nachteule"] .pgstreak .bsub b, html[data-theme="nachteule"] .pgstreak .bl b { color: #fff1d6; }
html[data-theme="nachteule"] .pgstreak .dot.on i { box-shadow: 0 0 8px var(--fglow); }
html[data-theme="nachteule"] .pgstreak .dot.on.td i { box-shadow: 0 0 8px var(--fglow), 0 0 0 1.5px #153348, 0 0 0 3px #fff1d6; }
html[data-theme="nachteule"] .pgstreak .bgo { color: #fff1d6; border-color: rgba(255,217,140,.55); }
html[data-theme="nachteule"] .sp { box-shadow: 0 0 10px rgba(255,202,95,.25), inset 8px 0 0 rgba(0,0,0,.2); }
html[data-theme="nachteule"] .rail h2 { color: #fff1d6; }
html[data-theme="nachteule"] .calgr .cl { background: #193b54; box-shadow: 0 0 10px rgba(255,202,95,.18); }
html[data-theme="nachteule"] .calgr .cl .tear { background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,255,255,.12) 5px 7px); }
html[data-theme="nachteule"] .calgr .cl .b .num { color: rgba(255,255,255,.22); }
html[data-theme="nachteule"] .calgr .cl .h { background: linear-gradient(180deg, #529acd, #347eb3); }
html[data-theme="nachteule"] .calgr .cl.fin .h { background: linear-gradient(180deg, #ffcf6f, #d9a744); }
html[data-theme="nachteule"] .calbk .done, html[data-theme="nachteule"] .calhead .calmon { color: #ffe0a3; }
html[data-theme="nachteule"] .calsum span b { color: #fff1d6; }
html[data-theme="nachteule"] .caldet { background: rgba(255,255,255,.06); }
html[data-theme="nachteule"] .stars10 .st svg { fill: rgba(255,255,255,.16); }
html[data-theme="nachteule"] .finq-i { box-shadow: 0 0 18px rgba(255,202,95,.5); }
html[data-theme="nachteule"] .st-pill.ok { color: #8fe0b0; background: rgba(143,224,176,.15); }
html[data-theme="nachteule"] .st-pill.late { color: #ffb36b; background: rgba(255,179,107,.15); }
html[data-theme="nachteule"] .st-tile .ic { background: rgba(255,220,150,.16); color: var(--pink, #ffda8f); }
html[data-theme="nachteule"] .charttip { background: #fff8ea; color: #16354c; box-shadow: 0 0 20px rgba(255,202,95,.45); }
html[data-theme="nachteule"] .catpick { background: #173850; border-color: rgba(255,217,140,.5); box-shadow: 0 0 26px rgba(255,202,95,.3); }
html[data-theme="nachteule"] .tag.have { background: rgba(255,255,255,.08); color: var(--ink-soft); }
html[data-theme="nachteule"] .bk.static .pick span { background: rgba(21,51,72,.92); border-color: #ffd47f; }
html[data-theme="nachteule"] .bk .stars svg { fill: rgba(255,255,255,.16); }
html[data-theme="nachteule"] .bk .stars svg.on { fill: #ffd98a; }
html[data-theme="nachteule"] .lzchip { background: rgba(255,170,90,.18); color: #ffc58a; }
html[data-theme="nachteule"] {
  --fld-bg: #0f2535; --fld-edge: #b2a07c; --fld-ph: #c6baa1; --fld-focus: rgba(255,202,95,.5);
  --grad-pri: linear-gradient(180deg, #ffd47f, #e8b247); --list-bg: #193c55; --list-sel: rgba(255,210,120,.22);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffa3d3' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
html[data-theme="nachteule"] .areamenu .bx { background: rgba(255,255,255,.06); }
html[data-theme="thriller"] {
  color-scheme: dark;
  --blush: #202328; --paper: #2a2e33; --card: #2a2e33; --surface: #2a2e33; --surface-2: rgba(255,255,255,.075); --line: rgba(255,150,159,.3);
  --lav-50: rgba(255,255,255,.06); --lav-100: rgba(255,120,131,.17); --lav-200: rgba(255,120,131,.3); --lav-300: #ff9fa7; --lav-400: #ff7f8a; --lav-500: #e84754; --lav-600: #ffa3ab;
  --ink: #ffeaec; --ink-soft: #dcaeb2; --violet-deep: #ffa3ab;
  --pink: #ff8f98; --peach: #ffb0b7; --sage: #8fe0b0; --sky: #9db4ff; --gold: #ffd98a;
  --shadow: 0 0 18px rgba(255,95,108,.16), inset 0 1px 0 rgba(255,255,255,.1);
  --sh-small: 0 0 14px rgba(255,95,108,.16), inset 0 1px 0 rgba(255,255,255,.1);
  --sh-raise: 0 0 26px rgba(255,95,108,.2), 0 14px 34px rgba(13,15,16,.45), inset 0 1px 0 rgba(255,255,255,.12);
  --sh-inset: inset 0 2px 8px rgba(13,15,16,.45), inset 0 0 0 1px rgba(255,150,159,.18);
  --sh-btn: 0 0 20px rgba(255,95,108,.5), inset 0 1px 0 rgba(255,255,255,.35);
  --clay: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
  --clay-sm: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  --ch-line: #ff7f8a; --ch-fill: #ff5f6c; --ch-grid: rgba(255,150,159,.2); --ch-bar: #ff7f8a; --ring-bg: #23262a;
  --ch-ring-a: #ffb0b7; --ch-ring-b: #ff4f5e; --ch-ring-track: rgba(255,150,159,.2);
}
html[data-theme="thriller"] body {
  color: var(--ink);
  background:
    radial-gradient(45% 35% at 12% 6%, rgba(255,79,94,.28) 0, transparent 70%),
    radial-gradient(40% 35% at 95% 22%, rgba(164,171,181,.3) 0, transparent 70%),
    radial-gradient(50% 40% at 60% 100%, rgba(255,79,94,.2) 0, transparent 70%),
    linear-gradient(170deg, #1a1d20 0%, #282b30 50%, #31353b 100%) fixed;
}
html[data-theme="thriller"] body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, #ffffff 50%, transparent 52%), radial-gradient(1px 1px at 22% 62%, #ffd0d4 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 37% 28%, #ffd0d4 50%, transparent 52%), radial-gradient(1px 1px at 51% 83%, #ffffff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 66% 9%, #ffffff 50%, transparent 52%), radial-gradient(1px 1px at 78% 47%, #ffd0d4 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 91% 71%, #ffffff 50%, transparent 52%), radial-gradient(1px 1px at 15% 90%, #ffd0d4 50%, transparent 52%),
    radial-gradient(1px 1px at 58% 52%, #ffffff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 84% 92%, #ffd0d4 50%, transparent 52%);
}
html[data-theme="thriller"] .app, html[data-theme="thriller"] #layer { position: relative; z-index: 1; }
html[data-theme="thriller"] :is(.brand b, .hello h1, .page-title, .card h2, .rail h2, .empty b, .shelf h3, .nowbook h3, .modal h2, .tfh, .authcard h1) { color: #ffd6d9; text-shadow: 0 0 14px rgba(255,95,108,.45); }
html[data-theme="thriller"] :is(.ring b, .timer .clock) { color: var(--ink); }
html[data-theme="thriller"] .secretline, html[data-theme="thriller"] .codes span { color: var(--ink); background: var(--lav-100); }
html[data-theme="thriller"] .hero-txt h1 { color: #3a3f47; text-shadow: none; }
html[data-theme="thriller"] .hero-txt p { color: #5d6672; }
@media (max-width: 640px) { html[data-theme="thriller"] .hero-txt h1 { color: #ffd6d9; text-shadow: 0 0 14px rgba(255,95,108,.45); } html[data-theme="thriller"] .hero-txt p { color: var(--ink-soft); } }
html[data-theme="thriller"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .hero, .newshelf, .search, .tbtn) { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-theme="thriller"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .hero) { border: 1.5px solid rgba(255,140,150,.42); }
html[data-theme="thriller"] .card, html[data-theme="thriller"] .shelf, html[data-theme="thriller"] .hero { border-radius: 26px; }
html[data-theme="thriller"] .search { background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,140,150,.4); }
html[data-theme="thriller"] .search:focus-within { box-shadow: var(--sh-small), 0 0 0 3px rgba(255,95,108,.38); }
html[data-theme="thriller"] .search input::placeholder, html[data-theme="thriller"] .field input::placeholder, html[data-theme="thriller"] .field textarea::placeholder { color: #b98a8e; }
html[data-theme="thriller"] .search svg { stroke: #ff9ca4; }
html[data-theme="thriller"] .field input, html[data-theme="thriller"] .field select, html[data-theme="thriller"] .field textarea, html[data-theme="thriller"] .inp, html[data-theme="thriller"] .toolbar .sel, html[data-theme="thriller"] .timer .pick select { background: rgba(255,255,255,.08); color: var(--ink); }
html[data-theme="thriller"] .field input:focus, html[data-theme="thriller"] .field select:focus, html[data-theme="thriller"] .field textarea:focus, html[data-theme="thriller"] .inp:focus { box-shadow: var(--sh-inset), 0 0 0 3px rgba(255,95,108,.4); }
html[data-theme="thriller"] .timer .pick select option, html[data-theme="thriller"] .field select option { background: #2a2e33; color: var(--ink); }
html[data-theme="thriller"] .seg { background: rgba(255,255,255,.07); }
html[data-theme="thriller"] { --lg-bird: #ff5f6c; --lg-page: #c0c5cb; --lg-edge: #ffe3e5; }
html[data-theme="thriller"] .logo svg { filter: drop-shadow(0 0 8px rgba(255,95,108,.55)); }
html[data-theme="thriller"] .nav a[aria-current="page"] { background: linear-gradient(160deg, rgba(255,95,108,.3), rgba(255,95,108,.14)); box-shadow: 0 0 16px rgba(255,95,108,.3), inset 0 0 0 1px rgba(255,140,150,.4); }
@media (hover: hover) { html[data-theme="thriller"] .nav a:hover, html[data-theme="thriller"] .nav .navbtn:hover { background: rgba(255,95,108,.16); } }
html[data-theme="thriller"] .btn { background: rgba(255,255,255,.09); color: var(--violet-deep); border: 1.5px solid rgba(255,140,150,.35); }
html[data-theme="thriller"] .btn:hover { background: rgba(255,95,108,.2); }
html[data-theme="thriller"] .btn.primary, html[data-theme="thriller"] .seg input:checked + span, html[data-theme="thriller"] .chip.on, html[data-theme="thriller"] .chipcheck input:checked + .chip, html[data-theme="thriller"] .tbtn.on { background: linear-gradient(180deg, #f05865 0%, #cf3a46 100%); color: #ffffff; border-color: rgba(255,190,195,.6); box-shadow: 0 0 18px rgba(255,95,108,.5); }
html[data-theme="thriller"] .btn.primary:hover { background: linear-gradient(180deg, #f56a76 0%, #d94450 100%); }
html[data-theme="thriller"] .btn.danger { color: #ff9fa7; }
html[data-theme="thriller"] .tbtn { background: rgba(255,255,255,.09); color: var(--violet-deep); border: 1.5px solid rgba(255,140,150,.35); }
html[data-theme="thriller"] .tbtn:hover { background: rgba(255,95,108,.2); }
html[data-theme="thriller"] .chip { background: var(--lav-100); color: var(--violet-deep); }
html[data-theme="thriller"] .avatar { background: linear-gradient(160deg, #ff8f98, #a5acb5); border-color: rgba(255,200,205,.85); box-shadow: 0 0 16px rgba(255,95,108,.5); }
html[data-theme="thriller"] .bar > i { background: linear-gradient(90deg, #ff8f98, #ff4f5e); box-shadow: 0 0 10px rgba(255,95,108,.6); }
html[data-theme="thriller"] .bar.pink > i { background: linear-gradient(90deg, #ffb0b7, #ff5f6c); }
html[data-theme="thriller"] .stars svg { fill: rgba(255,255,255,.18); }
html[data-theme="thriller"] .tag { background: rgba(255,130,140,.18); color: #ffb8be; }
html[data-theme="thriller"] .tag.wunsch { background: rgba(255,120,131,.2); color: #ff9fa7; }
html[data-theme="thriller"] .tag.lese { background: rgba(255,214,120,.18); color: #ffd98a; }
html[data-theme="thriller"] .tag.gelesen, html[data-theme="thriller"] .tag.sage { background: rgba(130,230,170,.16); color: #9ee8b8; }
html[data-theme="thriller"] .tag.sub { background: rgba(140,170,255,.2); color: #b8c9ff; }
html[data-theme="thriller"] .tag.plain { background: rgba(255,255,255,.08); color: var(--ink-soft); }
html[data-theme="thriller"] .cover { box-shadow: 0 0 16px rgba(255,95,108,.32), 4px 8px 16px rgba(13,15,16,.5), inset 0 1px 0 rgba(255,255,255,.35); }
html[data-theme="thriller"] .books[data-view="liste"] .bk, html[data-theme="thriller"] .books[data-view="detail"] .bk { background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,140,150,.3); }
html[data-theme="thriller"] .polaroid, html[data-theme="thriller"] .qcard, html[data-theme="thriller"] .qcard:nth-child(even) { background: var(--clay-sm); }
html[data-theme="thriller"] .tape { background: rgba(255,143,152,.55); }
html[data-theme="thriller"] .qitem { background: rgba(255,255,255,.07); border-color: rgba(255,140,150,.25); color: var(--ink); }
html[data-theme="thriller"] .x:hover { color: #ff9fa7; background: rgba(255,120,131,.2); }
html[data-theme="thriller"] .swatches span { border-color: rgba(255,255,255,.8); }
html[data-theme="thriller"] .notice { background: linear-gradient(160deg, rgba(255,214,120,.2), rgba(255,214,120,.1)); color: #ffe7b0; border: 1px solid rgba(255,214,120,.35); }
html[data-theme="thriller"] .csitem, html[data-theme="thriller"] .scanbar, html[data-theme="thriller"] .dupitem, html[data-theme="thriller"] .qrow { background: rgba(255,255,255,.08); color: var(--ink); }
html[data-theme="thriller"] .qmark.good { background: rgba(130,230,170,.2); color: #9ee8b8; }
html[data-theme="thriller"] .csnoimg { background: linear-gradient(160deg, rgba(255,120,131,.22), rgba(255,255,255,.06)); }
html[data-theme="thriller"] .popmenu button.on .cnt { background: rgba(255,255,255,.14); color: var(--violet-deep); }
html[data-theme="thriller"] .scrim { background: rgba(15,17,19,.6); }
html[data-theme="thriller"] .modal { background: linear-gradient(160deg, rgba(51,56,63,.97), rgba(34,37,42,.97)); border: 1.5px solid rgba(255,140,150,.5); box-shadow: 0 0 34px rgba(255,95,108,.28), 0 30px 70px rgba(9,10,11,.6); }
html[data-theme="thriller"] .menu { background: linear-gradient(160deg, rgba(51,56,63,.98), rgba(34,37,42,.98)); border: 1.5px solid rgba(255,140,150,.5); box-shadow: 0 0 28px rgba(255,95,108,.28), 0 18px 44px rgba(9,10,11,.55); }
html[data-theme="thriller"] .menu svg { stroke: #ff9ca4; }
html[data-theme="thriller"] .menu button:hover, html[data-theme="thriller"] .menu a:hover, html[data-theme="thriller"] .menu button:focus-visible, html[data-theme="thriller"] .menu a:focus-visible { background: rgba(255,95,108,.18); }
html[data-theme="thriller"] .toast { background: #353a41; color: var(--ink); border: 1.5px solid rgba(255,140,150,.5); box-shadow: 0 0 20px rgba(255,95,108,.35); }
html[data-theme="thriller"] .toast.bad { background: #5a171d; }
@media (max-width: 900px) { html[data-theme="thriller"] .side { box-shadow: var(--sh-raise); background: linear-gradient(160deg, rgba(51,56,63,.94), rgba(34,37,42,.94)); } }
html[data-theme="thriller"] .authstage { background: linear-gradient(180deg, #1a1d20 0, #282b30 40%, #31353b 100%); }
html[data-theme="thriller"] .authart { filter: brightness(.5) saturate(1.3) hue-rotate(-25deg); opacity: .85; }
html[data-theme="thriller"] .authcard { background: linear-gradient(165deg, rgba(51,56,63,.95), rgba(34,37,42,.95)); border: 1.5px solid rgba(255,140,150,.5); box-shadow: 0 0 34px rgba(255,95,108,.28), 0 30px 70px rgba(9,10,11,.55); }
html[data-theme="thriller"] { background: #24272b; }
html[data-theme="thriller"] body { min-height: 100vh; }
html[data-theme="thriller"] :is(.menu button, .menu a, .popmenu button, .popmenu a, .menu-head b) { color: var(--ink); }
html[data-theme="thriller"] :is(.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible) { color: #ffffff; }
html[data-theme="thriller"] :is(.menu-head small, .menu-label, .page-sub, .hint, .qcard cite, .note-line) { color: var(--ink-soft); }
html[data-theme="thriller"] .qcard blockquote { color: var(--ink); }
html[data-theme="thriller"] .hint.bad, html[data-theme="thriller"] .dupt.bad, html[data-theme="thriller"] .qrow.bad small { color: #ff9fa7; }
html[data-theme="thriller"] .hint.good { color: #9ee8b8; }
html[data-theme="thriller"] :is(.linkbtn, details.more > summary) { color: #ffa3ab; }
html[data-theme="thriller"] :is(.linkbtn:hover, .linkbtn:focus-visible) { color: #ffffff; }
html[data-theme="thriller"] .iconbtn { background: rgba(255,255,255,.09); border: 1.5px solid rgba(255,140,150,.35); color: #ffa3ab; }
html[data-theme="thriller"] .iconbtn.off { color: #ff9fa7; }
html[data-theme="thriller"] .syncl li { background: rgba(255,255,255,.07); }
html[data-theme="thriller"] .tag.wait { background: rgba(255,214,120,.18); color: #ffd98a; }
html[data-theme="thriller"] .updatebar { background: #353a41; border: 1.5px solid rgba(255,140,150,.5); }
html[data-theme="thriller"] .top .mbrand b, html[data-theme="kirschbluete"] .top .mbrand b { font-size: 1.45rem; }
html[data-theme="thriller"] html[data-theme="thriller"] .pgscale { background: rgba(255,255,255,.1); }
html[data-theme="thriller"] .pgscale > i { background: linear-gradient(90deg, #ff8f98, #ff4f5e); box-shadow: 0 0 10px rgba(255,95,108,.6); }
html[data-theme="thriller"] html[data-theme="thriller"] .pgmark { background: #2a2e33; border-color: #ffd6d9; box-shadow: 0 0 0 2px #2a2e33, 0 0 10px rgba(255,190,195,.8); }
html[data-theme="thriller"] .pgmark u { color: #ffd6d9; }
html[data-theme="thriller"] .pgrange::-webkit-slider-runnable-track { background: linear-gradient(90deg, #ff8f98, #ff4f5e var(--p, 0%), rgba(255,255,255,.12) var(--p, 0%)); }
html[data-theme="thriller"] .pgrange::-moz-range-track { background: linear-gradient(90deg, #ff8f98, #ff4f5e var(--p, 0%), rgba(255,255,255,.12) var(--p, 0%)); }
html[data-theme="thriller"] .pgrange::-webkit-slider-thumb { background: #2a2e34; border-color: #ff8f98; box-shadow: 0 0 12px rgba(255,95,108,.7); }
html[data-theme="thriller"] .pgrange::-moz-range-thumb { background: #2a2e34; border-color: #ff8f98; }
html[data-theme="thriller"] .pgnum { border-bottom-color: rgba(255,140,150,.4); color: #ffd6d9; text-shadow: 0 0 14px rgba(255,95,108,.5); }
html[data-theme="thriller"] .pgtotal b { color: #ffd6d9; text-shadow: 0 0 14px rgba(255,95,108,.5); }
html[data-theme="thriller"] .pgtotal em.ok { color: #ffd6d9; }
html[data-theme="thriller"] .pgrow { color: var(--ink); border-color: rgba(255,140,150,.25); }
html[data-theme="thriller"] .pgtoday .tb { background: linear-gradient(135deg, rgba(255,95,108,.2), rgba(255,255,255,.04)); border-color: rgba(255,140,150,.35); box-shadow: 0 0 22px rgba(255,95,108,.16); }
html[data-theme="thriller"] .pgtoday .tb .big b { color: #ffd6d9; text-shadow: 0 0 16px rgba(255,95,108,.55); }
html[data-theme="thriller"] .pgtoday .tst .ok { color: #ffd6d9; }
html[data-theme="thriller"] .pgstreak { --fa: #ffc27a; --fb: #ff5f6c; --fglow: rgba(255,95,108,.6); --tr: rgba(255,255,255,.1); background: rgba(255,255,255,.05); border-color: rgba(255,140,150,.22); --card: #2a2e33; }
html[data-theme="thriller"] .pgstreak .bsub b, html[data-theme="thriller"] .pgstreak .bl b { color: #ffd6d9; }
html[data-theme="thriller"] .pgstreak .dot.on i { box-shadow: 0 0 8px var(--fglow); }
html[data-theme="thriller"] .pgstreak .dot.on.td i { box-shadow: 0 0 8px var(--fglow), 0 0 0 1.5px #2a2e33, 0 0 0 3px #ffd6d9; }
html[data-theme="thriller"] .pgstreak .bgo { color: #ffd6d9; border-color: rgba(255,140,150,.55); }
html[data-theme="thriller"] .sp { box-shadow: 0 0 10px rgba(255,95,108,.25), inset 8px 0 0 rgba(0,0,0,.2); }
html[data-theme="thriller"] .rail h2 { color: #ffd6d9; }
html[data-theme="thriller"] .calgr .cl { background: #31363c; box-shadow: 0 0 10px rgba(255,95,108,.18); }
html[data-theme="thriller"] .calgr .cl .tear { background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,255,255,.12) 5px 7px); }
html[data-theme="thriller"] .calgr .cl .b .num { color: rgba(255,255,255,.22); }
html[data-theme="thriller"] .calgr .cl .h { background: linear-gradient(180deg, #848e9b, #68727f); }
html[data-theme="thriller"] .calgr .cl.fin .h { background: linear-gradient(180deg, #ff6f7b, #d94450); }
html[data-theme="thriller"] .calbk .done, html[data-theme="thriller"] .calhead .calmon { color: #ffa3ab; }
html[data-theme="thriller"] .calsum span b { color: #ffd6d9; }
html[data-theme="thriller"] .caldet { background: rgba(255,255,255,.06); }
html[data-theme="thriller"] .stars10 .st svg { fill: rgba(255,255,255,.16); }
html[data-theme="thriller"] .finq-i { box-shadow: 0 0 18px rgba(255,95,108,.5); }
html[data-theme="thriller"] .st-pill.ok { color: #8fe0b0; background: rgba(143,224,176,.15); }
html[data-theme="thriller"] .st-pill.late { color: #ffb36b; background: rgba(255,179,107,.15); }
html[data-theme="thriller"] .st-tile .ic { background: rgba(255,150,159,.16); color: var(--pink, #ff8f98); }
html[data-theme="thriller"] .charttip { background: #ffeaec; color: #2c3036; box-shadow: 0 0 20px rgba(255,95,108,.45); }
html[data-theme="thriller"] .catpick { background: #2e3339; border-color: rgba(255,140,150,.5); box-shadow: 0 0 26px rgba(255,95,108,.3); }
html[data-theme="thriller"] .tag.have { background: rgba(255,255,255,.08); color: var(--ink-soft); }
html[data-theme="thriller"] .bk.static .pick span { background: rgba(42,46,51,.92); border-color: #ff7f8a; }
html[data-theme="thriller"] .bk .stars svg { fill: rgba(255,255,255,.16); }
html[data-theme="thriller"] .bk .stars svg.on { fill: #ffd98a; }
html[data-theme="thriller"] .lzchip { background: rgba(255,170,90,.18); color: #ffc58a; }
html[data-theme="thriller"] {
  --fld-bg: #1f2125; --fld-edge: #b27c80; --fld-ph: #c6a1a4; --fld-focus: rgba(255,95,108,.5);
  --grad-pri: linear-gradient(180deg, #ff7f8a, #e84754); --list-bg: #32363d; --list-sel: rgba(255,120,131,.22);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffa3d3' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
html[data-theme="thriller"] .areamenu .bx { background: rgba(255,255,255,.06); }
/* Nachteule: Mond statt Neon, Amber-Knöpfe */
html[data-theme="nachteule"] body::after { content: ""; position: fixed; right: 8%; top: 84px; width: 56px; height: 56px; border-radius: 50%; box-shadow: -13px 7px 0 0 #ffe9a8; pointer-events: none; z-index: 0; opacity: .8; }
html[data-theme="nachteule"] :is(.btn.primary, .seg input:checked + span, .chip.on, .chipcheck input:checked + .chip, .tbtn.on) { background: linear-gradient(180deg, #ffc04d, #e8962a); color: #2a1706; }
html[data-theme="nachteule"] .btn.primary:hover { background: linear-gradient(180deg, #ffcd70, #f0a238); }
/* Thriller: Regen und kaltes Anthrazit, Blutrot als einzige Farbe */
html[data-theme="thriller"] body::before { opacity: 1; background-image: repeating-linear-gradient(104deg, transparent 0 22px, rgba(200, 210, 230, .06) 22px 23px), repeating-linear-gradient(104deg, transparent 0 57px, rgba(200, 210, 230, .05) 57px 58px), radial-gradient(60% 40% at 50% 110%, rgba(220, 30, 50, .22) 0, transparent 70%); background-size: auto; }
html[data-theme="thriller"] body::after { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; z-index: 5; background: linear-gradient(90deg, transparent, #e0243a 30%, #e0243a 70%, transparent); box-shadow: 0 0 14px rgba(224, 36, 58, .7); }
html[data-theme="thriller"] body { background: radial-gradient(45% 35% at 10% 0%, rgba(224, 36, 58, .10) 0, transparent 70%), radial-gradient(40% 35% at 100% 25%, rgba(120, 140, 180, .10) 0, transparent 70%), linear-gradient(170deg, #0c0f14 0%, #151a21 55%, #1c222b 100%) fixed; }
html[data-theme="thriller"] { --paper: #1b2028; --card: #1b2028; --surface: #1b2028; --blush: #12161c; }
html[data-theme="thriller"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .hero) { border-color: rgba(224, 36, 58, .35); }
@media (max-width: 640px) { html[data-theme="nachteule"] body::after { opacity: .4; right: 4%; top: 120px; } }

/* Daten bearbeiten: Stift-Abzeichen am Cover (Übersicht) */
.cvedit { z-index: 2; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1.5px solid var(--lav-200); background: #fff; color: var(--lav-600); box-shadow: 0 2px 6px rgba(70, 50, 120, .22); cursor: pointer; position: relative; }
.cvedit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cvedit::after { content: ""; position: absolute; inset: -9px; }
.cvedit:hover, .cvedit:focus-visible { background: var(--lav-600); color: #fff; border-color: var(--lav-600); }
.pgcard .cv { position: relative; }
.pgcard .cv > .cvedit { position: absolute; right: -8px; bottom: -8px; width: 32px; height: 32px; }
.pgcard .cv > .cvedit svg { width: 16px; height: 16px; }

/* Bearbeiten-Knopf in der Lesesession */
.sessedit { margin: 4px 0 14px; }
.sessedit .ghost { background: transparent; border-style: dashed; }
.sessedit .btn svg { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Banderole „Verkauft“ in der linken oberen Ecke des Covers */
.cover .sold { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; overflow: hidden; pointer-events: none; z-index: 2; }
.cover .sold b { position: absolute; left: -34%; top: 17%; width: 100%; transform: rotate(-45deg); text-align: center; padding: .22em 0; font: 800 .62rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #d9486b; box-shadow: 0 1px 4px rgba(60, 20, 40, .35); }
.cover.sm .sold b { font-size: 0; padding: 0; height: 6px; top: 14%; left: -38%; }
.soldsw { align-items: flex-start; margin: 2px 0 10px; }
.soldsw input { margin-top: 2px; flex: none; }
.soldsw small { display: block; font-weight: 600; color: var(--ink-soft); }

/* Buch bearbeiten: Fußleiste mit Piktogrammen */
#bookForm .fbar { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; justify-content: flex-start; margin-top: 14px; }
#bookForm .fbar .fgap { flex: 1 1 0; min-width: 4px; }
#bookForm .fbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; min-width: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--lav-200); background: #fff; color: var(--lav-600); font: 800 .92rem/1 var(--sans); cursor: pointer; box-shadow: 0 2px 6px rgba(90, 60, 150, .12); }
#bookForm .fbtn[hidden] { display: none; }
#bookForm .fbtn svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#bookForm .fbtn.danger { color: #b2476b; border-color: #efbfd0; }
#bookForm .fbtn.primary { color: #fff; border-color: transparent; background: var(--grad-pri, linear-gradient(180deg, #8f6fe0, #6f4fc9)); box-shadow: 0 6px 14px rgba(111, 79, 201, .3); }
@media (max-width: 640px) {
  #bookForm .fbtn { padding: 0; width: 52px; min-height: 48px; }
  #bookForm .fbtn .flbl { display: none; }
  #bookForm .fbar.last #fSave { width: auto; padding: 0 22px; }
  #bookForm .fbar.last #fSave svg { display: none; }
  #bookForm .fbar.last #fSave .flbl { display: inline; }
}
/* Datumsfelder dürfen nie über den Rand ragen (iOS gibt ihnen sonst eine feste Mindestbreite) */
#bookForm input[type="date"] { display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
#bookForm .extras > *, #bookForm .row > * { min-width: 0; }
#bookForm .row.rpr { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) 78px; gap: 8px; }
#bookForm input[list]::-webkit-calendar-picker-indicator { display: none !important; }
#bookForm .row.rpr input { width: 100%; min-width: 0; box-sizing: border-box; padding-left: 9px; padding-right: 6px; font-size: .92rem; letter-spacing: 0; text-overflow: clip; }
#bookForm .row.rpr input[type="date"]::-webkit-calendar-picker-indicator { margin: 0 0 0 2px; padding: 0; width: 14px; }
.fstep p .hint { display: block; margin-top: 4px; }
/* Warnfenster */
.cfmlayer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(58, 30, 50, .5); backdrop-filter: blur(3px); }
.cfm { width: min(360px, 100%); background: var(--card, #fff); border-radius: 24px; padding: 22px 22px 18px; text-align: center; box-shadow: 0 20px 50px rgba(40, 20, 60, .35); }
.cfm .cfmico { width: 52px; height: 52px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: #fde6ee; color: #c4547d; }
.cfm .cfmico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cfm h3 { margin: 0 0 6px; font: 800 1.15rem/1.2 var(--sans); }
.cfm p { margin: 0 0 16px; color: var(--ink-soft); font-size: .92rem; line-height: 1.4; }
.cfmbtns { display: flex; gap: 10px; }
.cfmbtns .btn { flex: 1; min-height: 46px; justify-content: center; }
.btn.danger.solid { background: #c4547d; color: #fff; border-color: #c4547d; }

/* Status im Formular: Liste mit Erklärung, gewählter Eintrag in der Statusfarbe */
.stlist { --c-gelesen: #5f8a55; --c-lese: #8a6a14; --c-sub: #3f65a8; --c-wunsch: #b2476b; --c-abgebrochen: #8a5a6a; display: flex; flex-direction: column; border: 1.5px solid var(--lav-200); border-radius: 18px; overflow: hidden; background: var(--card, #fff); }
.stopt { --fg: var(--lav-600); position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; }
.stopt:first-child { border-top: 0; }
.stopt input { position: absolute; opacity: 0; pointer-events: none; }
.stopt.st-gelesen { --fg: var(--c-gelesen); } .stopt.st-lese { --fg: var(--c-lese); } .stopt.st-sub { --fg: var(--c-sub); } .stopt.st-wunsch { --fg: var(--c-wunsch); } .stopt.st-abgebrochen { --fg: var(--c-abgebrochen); }
.stdot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--lav-200); }
.sttx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sttx b { font-weight: 800; color: var(--ink); }
.sttx small { font-size: .76rem; font-weight: 600; }
.stck { display: none; flex: none; width: 20px; height: 20px; fill: none; stroke: var(--fg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stopt:has(input:checked) { background: color-mix(in srgb, var(--fg) 15%, transparent); color: var(--fg); }
.stopt:has(input:checked) .sttx b { color: var(--fg); }
.stopt:has(input:checked) .stdot { background: var(--fg); border-color: var(--fg); box-shadow: inset 0 0 0 3px var(--card, #fff); }
.stopt:has(input:checked) .stck { display: block; }
.stopt:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: -3px; }
html[data-theme="nacht"] .stlist, html[data-theme="nachteule"] .stlist, html[data-theme="thriller"] .stlist { --c-gelesen: #8fd09a; --c-lese: #f0cf6a; --c-sub: #8fb2f0; --c-wunsch: #f29ab8; --c-abgebrochen: #c9a0b0; }

/* Panel „Lesen und Hören“: zwei weiche Linien in einem Diagramm, Hören in Türkis und zuschaltbar */
.cxsub { margin: -4px 0 8px; color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
.cxleg { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cxk { display: inline-flex; align-items: baseline; gap: 7px; }
.cxk b { font-weight: 800; }
.cxk, .cxtg { white-space: nowrap; }
.cxk em, .cxtg em { font: 500 1.3rem/1 var(--num); font-style: normal; margin-left: 4px; }
.cxk em { color: var(--lav-600); }
.cxk i, .cxtg i { align-self: center; width: 12px; height: 12px; border-radius: 4px; background: var(--ch-bar); flex: none; }
.cxk i.hz, .cxtg i.hz { background: #4fbfb2; }
.cxtg { display: inline-flex; align-items: baseline; gap: 7px; min-height: 40px; padding: 4px 12px; border: 1.5px solid #4fbfb2; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.cxtg b { font-weight: 800; }
.cxtg em { color: #2f9a8e; }
.cxtg:not(.on) { border-style: dashed; border-color: var(--line); color: var(--ink-soft); }
.cxtg:not(.on) i.hz { background: var(--line); }
.cxtg:not(.on) b { text-decoration: line-through; }
.cxtg:not(.on) em { color: var(--ink-soft); }
.cxdiff { margin: 2px 0 4px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.cx[data-cx="combo"] { --au-line: #2fa59a; }
.cx[data-cx="combo"] .cdot { fill: var(--card, #fff); stroke-width: 2.2; }
html[data-theme="nacht"] .cx[data-cx="combo"], html[data-theme="nachteule"] .cx[data-cx="combo"], html[data-theme="thriller"] .cx[data-cx="combo"] { --au-line: #5fe0d0; }
html[data-theme="nacht"] .cxk i.hz, html[data-theme="nachteule"] .cxk i.hz, html[data-theme="thriller"] .cxk i.hz, html[data-theme="nacht"] .cxtg i.hz, html[data-theme="nachteule"] .cxtg i.hz, html[data-theme="thriller"] .cxtg i.hz { background: #5fe0d0; }
html[data-theme="nacht"] .cxtg em, html[data-theme="nachteule"] .cxtg em, html[data-theme="thriller"] .cxtg em { color: #7ff0e2; }
/* Reihenfolge: Handy folgt der Reihenfolge im Dokument (Panel über „Beendete Bücher“); am Desktop bleibt das Raster wie bisher */
@media (min-width: 641px) {
  .grid > #pgCard { order: 1; } .grid > #todayCard { order: 2; } .grid > .cdone { order: 3; } .grid > .cgoal { order: 4; } .grid > .cquote { order: 5; }
  .grid > .cweek { order: 6; } .grid > .cstack { order: 7; } .grid > .cwish { order: 8; }
}

/* Heute: gehörte Minuten neben den Seiten */
.pgtoday .tb .big.aud { margin-top: 6px; }
.pgtoday .tb .big.aud b { font-size: 2.1rem; color: #2f9a8e; text-shadow: none; }
.pgtoday .tb .pgcap.aud { margin-top: 14px; }
.pgtoday .tb .pgcap.aud span:first-child { color: #2f9a8e; }
.pgscale.aud { background: #dff3f0; }
.pgscale.aud > i { background: linear-gradient(90deg, #8fd6cc, #2fa59a); }
.pgscale.aud .pgmark { border-color: #2fa59a; }
.pgscale.aud .pgmark u { color: #2f8a7f; }
html[data-theme="nacht"] .pgtoday .tb .big.aud b, html[data-theme="nachteule"] .pgtoday .tb .big.aud b, html[data-theme="thriller"] .pgtoday .tb .big.aud b { color: #7ff0e2; }
html[data-theme="nacht"] .pgtoday .tb .pgcap.aud span:first-child, html[data-theme="nachteule"] .pgtoday .tb .pgcap.aud span:first-child, html[data-theme="thriller"] .pgtoday .tb .pgcap.aud span:first-child { color: #7ff0e2; }
html[data-theme="nacht"] .pgscale.aud, html[data-theme="nachteule"] .pgscale.aud, html[data-theme="thriller"] .pgscale.aud { background: rgba(95, 224, 208, .16); }
html[data-theme="nacht"] .pgscale.aud > i, html[data-theme="nachteule"] .pgscale.aud > i, html[data-theme="thriller"] .pgscale.aud > i { background: linear-gradient(90deg, #2c8c82, #5fe0d0); }
html[data-theme="nacht"] .pgscale.aud .pgmark, html[data-theme="nachteule"] .pgscale.aud .pgmark, html[data-theme="thriller"] .pgscale.aud .pgmark { border-color: #5fe0d0; }
html[data-theme="nacht"] .pgscale.aud .pgmark u, html[data-theme="nachteule"] .pgscale.aud .pgmark u, html[data-theme="thriller"] .pgscale.aud .pgmark u { color: #7ff0e2; }
.pgtoday .tb .pgcap span:last-child { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pgtoday .tb .pgcap span:last-child svg { width: 15px; height: 15px; flex: none; }

/* Statistik: weitere Auswertungen */
.smh { margin: 26px 0 12px; font: 600 1.5rem/1.2 var(--script, var(--sans)); color: var(--ink); }
.smgrid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 760px) { .smgrid { grid-template-columns: minmax(0, 1fr); } }
.smcard { min-width: 0; }
.smtag { display: inline-block; font: 800 .68rem/1 var(--sans); background: var(--lav-100); color: var(--lav-600); border-radius: 8px; padding: 4px 7px; margin-right: 8px; vertical-align: 2px; }
.smsub { margin: -2px 0 10px; }
.sx { min-height: 40px; }
.sx svg text { font: 700 11px var(--sans); fill: var(--ink-soft); }
.sx svg text.v { fill: var(--ink); font-weight: 800; }
.sx svg text.now { fill: var(--ink); font-weight: 800; }
.sx svg { display: block; max-width: 100%; }
.sx [data-tip] { outline: none; }
.smempty { margin: 6px 0 2px; color: var(--ink-soft); font-weight: 700; }
.smfact { margin: 10px 0 0; font-weight: 800; color: var(--lav-600); }
.smnote { margin: 8px 0 0; color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
.smtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.smtile { background: var(--lav-50); border-radius: 16px; padding: 11px 13px; min-width: 0; }
.smtile b { display: block; font: 500 1.6rem/1.1 var(--num); overflow-wrap: anywhere; }
.smtile span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.smstrip { display: flex; gap: 4px; margin-top: 12px; }
.smmo { flex: 1; text-align: center; min-width: 0; }
.smmo i { display: block; height: 32px; border-radius: 9px; background: var(--ch-line); }
.smmo span { display: block; margin-top: 3px; font-size: .75rem; font-weight: 800; color: var(--ink-soft); }
.smmo small { display: block; font-size: .66rem; font-weight: 800; color: var(--ink-soft); }
.smrec { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.smrec:first-child { border-top: 0; }
.smrec .ic { width: 34px; text-align: center; font-size: 1.4rem; }
.smrec div { flex: 1; min-width: 0; }
.smrec small { display: block; color: var(--ink-soft); font-weight: 700; }
.smrec em { font: 500 1.25rem/1.1 var(--num); font-style: normal; color: var(--lav-600); text-align: right; }
.smleg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: .84rem; font-weight: 800; }
.smleg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.smgap { margin-top: 12px; }
.smlab { margin: 8px 0 4px; color: var(--ink-soft); font-size: .84rem; font-weight: 800; }
.smstack { display: flex; height: 22px; border-radius: 11px; overflow: hidden; gap: 2px; }
.smstack i { display: block; min-width: 4px; }
.smpct { display: flex; gap: 2px; margin-top: 3px; font-size: .72rem; font-weight: 800; color: var(--ink-soft); }
.smser { margin: 10px 0; }
.smsr1 { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; }
.smsr1 span { color: var(--ink-soft); font-size: .84rem; }
.smbar { height: 12px; border-radius: 99px; background: var(--lav-100); margin-top: 4px; overflow: hidden; }
.smbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lav-300), var(--lav-500)); }
.smser small { display: block; margin-top: 3px; color: var(--ink-soft); font-weight: 700; }
.smpct span { min-width: 4px; text-align: center; overflow: visible; white-space: nowrap; }

/* Zitate: Zettel, Erklärung und eigene Gedanken (1.38.0) */
.qform { display: grid; gap: 14px; }
.qform .qbk { display: grid; grid-template-columns: 1fr 130px; gap: 12px; align-items: end; }
.qform .field > span { color: var(--ink); font-size: .86rem; }
.qform .optl { font-style: italic; font-weight: 600; color: var(--ink-soft); margin-left: 8px; font-size: .8rem; }
.qform .hint { display: block; margin: 2px 0 6px; font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.qform .qpill select, .qform .qpill input { background: var(--card) !important; border: 1.5px solid var(--lav-200) !important; box-shadow: none !important; border-radius: 99px !important; min-height: 46px; padding-left: 18px; }
.qform .qpill select:disabled { opacity: .75; }
.qform .qpill select:focus, .qform .qpill input:focus { border-color: var(--lav-400) !important; box-shadow: 0 0 0 4px rgba(123, 91, 216, .18) !important; }
.qform .qpill select:focus, .qform .qpill input:focus, .qform .ex:focus-within, .qform .gz:focus-within { border-color: var(--lav-400); box-shadow: 0 0 0 4px rgba(123, 91, 216, .18); outline: 0; }
.qform textarea:focus { outline: 0; }
.qform .zt { position: relative; background: #fffdf4; border: 1.5px solid #f1e6c6; border-radius: 8px; padding: 26px 20px 12px; box-shadow: var(--shadow); margin-top: 6px; }
.qform .zt .tape { position: absolute; top: -10px; left: 50%; width: 76px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(244, 182, 201, .65); }
.qform .zt .qm { position: absolute; left: 14px; top: 6px; font: 600 3.2rem/1 "Cormorant Garamond", serif; color: #e7a3bf; }
.qform .zt textarea { width: 100%; background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; min-height: 120px; padding: 14px 4px 0 28px; font: italic 500 1.35rem/1.45 "Cormorant Garamond", serif; color: #4d3d66; resize: vertical; }
.qform .zt textarea::placeholder { color: #c3a8b5; }
.qform .zt .cnt { display: block; text-align: right; font-size: .74rem; font-weight: 800; color: #b98aa3; }
.qform .ex { background: var(--card); border: 1.5px solid var(--lav-200); border-radius: 14px; padding: 8px 14px 6px; }
.qform .ex textarea { width: 100%; background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; min-height: 56px; padding: 0; font: 600 .93rem/1.5 var(--sans); color: var(--ink); resize: none; overflow: hidden; }
.qform .gz { background: repeating-linear-gradient(transparent 0 27px, rgba(230, 160, 190, .35) 27px 28px), var(--card); background-position: 0 6px, 0 0; border: 1.5px dashed var(--lav-300); border-radius: 14px; padding: 6px 14px 4px; }
.qform .gz textarea { width: 100%; background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; min-height: 84px; padding: 0; font: 600 .95rem/28px var(--sans); color: var(--ink); resize: none; overflow: hidden; }
@media (max-width: 520px) { .qform .qbk { grid-template-columns: 1fr 104px; gap: 8px; } }
.qcard .qbtns, .qitem .qbtns { display: inline-flex; gap: 2px; align-items: center; flex: none; }
.qbtns .x svg { width: 17px; height: 17px; }
.qbtns .x[data-editquote] svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qn1 { margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed rgba(200, 120, 160, .4); display: flex; gap: 9px; align-items: flex-start; color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.45; }
.qn1 > svg { flex: none; width: 17px; height: 17px; margin-top: 2px; stroke: var(--lav-500); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qn1 b, .qn2 b { display: block; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--lav-500); margin-bottom: 1px; }
.qn1 > div, .qn2 { overflow-wrap: anywhere; white-space: pre-line; }
.qn2 { position: relative; margin: 16px -6px -2px 26px; padding: 11px 14px 11px; background: #fff3d6; border-radius: 4px 4px 14px 4px; box-shadow: 2px 4px 10px rgba(120, 80, 140, .18); transform: rotate(-1.2deg); font: 600 .88rem/1.45 var(--sans); color: #4d3d66; }
.qn2::before { content: ""; position: absolute; left: 50%; top: -8px; width: 44px; height: 14px; background: rgba(242, 207, 114, .7); transform: translateX(-50%) rotate(2deg); border-radius: 3px; }
html[data-theme="kirschbluete"] .qn2 { background: #ffeaf2; color: #5e2a47; }
html[data-theme="kirschbluete"] .qn2 b, html[data-theme="kirschbluete"] .qn1 b { color: #b0527c; }
html[data-theme="kirschbluete"] .qn1 > svg { stroke: #c9497a; }
html[data-theme="kirschbluete"] .qform .zt textarea { color: #4d3d66; }
:is(html[data-theme="nacht"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .zt { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
:is(html[data-theme="nacht"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .zt textarea { color: var(--ink); }
:is(html[data-theme="nacht"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .qpill select, :is(html[data-theme="nacht"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .qpill input, :is(html[data-theme="nacht"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .ex, :is(html[data-theme="nacht"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .gz { background-color: rgba(255, 255, 255, .07) !important; }
:is(html[data-theme="nacht"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qn2 { background: rgba(255, 255, 255, .12); color: var(--ink); }

/* Zitate 1.39.0: Sagte, Anzeige-Schalter, weitere Orte */
.qform .sg > label > span, .qform .field > label > span { color: var(--ink); font-size: .86rem; font-weight: 800; }
.qform .sg input[name=said] { background: var(--card) !important; border: 1.5px solid var(--lav-200) !important; box-shadow: none !important; border-radius: 99px !important; min-height: 46px; padding-left: 18px; width: 100%; }
.qform .sg input[name=said]:focus { border-color: var(--lav-400) !important; box-shadow: 0 0 0 4px rgba(123, 91, 216, .18) !important; outline: 0; }
.qform .field > .hint { display: block; margin: 2px 0 6px; }
.qshow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.qshow > small { font-size: .72rem; font-weight: 800; color: var(--ink-soft); letter-spacing: .03em; }
.qshow label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 5px 12px 5px 8px; border-radius: 99px; border: 1.5px solid var(--lav-200); background: var(--card); font: 700 .76rem/1 var(--sans); color: var(--ink-soft); user-select: none; }
.qshow input { appearance: none; -webkit-appearance: none; width: 17px !important; height: 17px; min-height: 0 !important; border-radius: 6px !important; border: 1.5px solid var(--lav-300) !important; background: #fff !important; display: inline-grid; place-content: center; margin: 0; padding: 0 !important; box-shadow: none !important; flex: none; }
.qshow input:checked { background: var(--lav-500) !important; border-color: var(--lav-500) !important; }
.qshow input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.qshow input:focus-visible { outline: 2px solid var(--lav-400); outline-offset: 2px; }
.qshow label:has(input:checked) { background: var(--lav-100); border-color: var(--lav-400); color: var(--ink); }
html[data-theme="kirschbluete"] .qshow label:has(input:checked) { background: #ffe3ee; border-color: #e58fb2; color: #5e2a47; }
html[data-theme="kirschbluete"] .qshow input:checked { background: #d9608f !important; border-color: #d9608f !important; }
:is(html[data-theme="nacht"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qshow label { background: rgba(255, 255, 255, .07); }
:is(html[data-theme="nacht"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qshow label:has(input:checked) { background: rgba(255, 140, 205, .22); color: var(--ink); }
:is(html[data-theme="nacht"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .sg input[name=said] { background-color: rgba(255, 255, 255, .07) !important; }
.qsag { margin: -2px 0 10px; font: italic 500 1.05rem/1.3 "Cormorant Garamond", serif; color: var(--ink-soft); overflow-wrap: anywhere; }
.qsag::before { content: "— "; }
.pxb { margin: 12px 6px 0; text-align: center; font: 600 .84rem/1.4 var(--sans); color: var(--ink-soft); overflow-wrap: anywhere; white-space: pre-line; }
.pxb b { display: block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lav-500); margin-bottom: 2px; }
.lzsag { font: 800 .8em var(--sans); font-style: normal; color: var(--ink-soft); }
.lzqx { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font: 600 .76rem/1.35 var(--sans); color: var(--ink-soft); overflow-wrap: anywhere; }
.lzqx svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; stroke: var(--lav-500); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qix { display: block; margin-top: 5px; font: 600 .8rem/1.4 var(--sans); color: var(--ink-soft); overflow-wrap: anywhere; white-space: pre-line; }
html[data-theme="kirschbluete"] .pxb b { color: #b0527c; }

/* ---- Bildplätze der App (Einstellungen, Startseite ohne Bild, eigenes Regalbild) ---- */
.hero.noimg { aspect-ratio: auto; min-height: 0; padding: 30px 32px; }
.hero.noimg .hero-txt { position: static; transform: none; width: auto; }
.logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.sitrow .c { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sitethumb { width: 84px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: rgba(128,128,128,.14); border: 1px solid rgba(128,128,128,.28); }
.sitethumb.alpha { background: repeating-conic-gradient(rgba(128,128,128,.22) 0 25%, transparent 0 50%) 0 0 / 12px 12px; }
.sitethumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sitethumb i { font-size: .72rem; color: var(--ink-soft); font-style: normal; }
.spines .deco.deco-up img { width: auto; height: 104px; transform: none; margin-left: 0; }
.side-art:empty { display: none; }
:root[data-theme="seitenlust"], html[data-theme="seitenlust"] {
  --sl-1:#FFBB94; --sl-2:#FB9590; --sl-3:#DC586D; --sl-4:#A33757; --sl-5:#852E4E; --sl-6:#4C1D3D;
  color-scheme: dark;
  --blush:#3a1430; --paper:#4C1D3D; --card:#4C1D3D; --surface:#4C1D3D; --surface-2: rgba(255,255,255,.075); --line: rgba(251,149,144,.32);
  --lav-50: rgba(255,255,255,.06); --lav-100: rgba(251,149,144,.17); --lav-200: rgba(251,149,144,.32); --lav-300:#FB9590; --lav-400:#FB9590; --lav-500:#DC586D; --lav-600:#FFBB94;
  --ink:#FFEFE6; --ink-soft:#E9B9AE; --violet-deep:#FFBB94;
  --pink:#FB9590; --peach:#FFBB94; --gold:#FFBB94;
  --ch-line:#FB9590; --ch-fill:#DC586D; --ch-grid: rgba(251,149,144,.2); --ch-bar:#FB9590; --ring-bg:#3a1430;
  --ch-ring-a:#FFBB94; --ch-ring-b:#DC586D; --ch-ring-track: rgba(251,149,144,.2);
  --lg-bird:#DC586D; --lg-page:#FFBB94; --lg-edge:#FFE6D6;
}
html[data-theme="seitenlust"] body { color: var(--ink); background:
  radial-gradient(55% 38% at 50% 108%, rgba(251,149,144,.38) 0, transparent 70%),
  radial-gradient(45% 35% at 10% 4%, rgba(220,88,109,.22) 0, transparent 70%),
  linear-gradient(175deg, #3a1330 0%, #4C1D3D 38%, #5e2243 72%, #852E4E 100%) fixed !important; }
html[data-theme="seitenlust"] body::before { opacity: 0 !important; }
html[data-theme="seitenlust"] .btn.primary, html[data-theme="seitenlust"] .seg input:checked + span, html[data-theme="seitenlust"] .chip.on { background: linear-gradient(180deg, #DC586D 0%, #A33757 100%) !important; color: #fff !important; box-shadow: 0 0 20px rgba(220,88,109,.45), inset 0 1px 0 rgba(255,255,255,.3) !important; }
html[data-theme="seitenlust"] .btn.primary:hover { background: linear-gradient(180deg, #FB9590 0%, #DC586D 100%) !important; }
html[data-theme="seitenlust"] .avatar { background: linear-gradient(160deg, #FFBB94, #DC586D) !important; }
html[data-theme="seitenlust"] .bar > i { background: linear-gradient(90deg, #FFBB94, #DC586D) !important; box-shadow: 0 0 10px rgba(251,149,144,.55) !important; }
html[data-theme="seitenlust"] :is(.brand b, .hello h1, .page-title, .card h2, .rail h2, .empty b, .shelf h3, .nowbook h3, .modal h2, .tfh, .authcard h1) { color: #FFD9C4 !important; text-shadow: 0 0 14px rgba(251,149,144,.35) !important; }
html[data-theme="seitenlust"] {
  color-scheme: dark;
  --blush: #36122a; --paper: #481535; --card: #481535; --surface: #481535; --surface-2: rgba(255, 255, 255, .075); --line: rgba(251, 154, 174, .3);
  --lav-50: rgba(255, 255, 255, .06); --lav-100: rgba(250, 125, 151, .17); --lav-200: rgba(250, 125, 151, .3); --lav-300: #fba3b3; --lav-400: #fa849a; --lav-500: #e24d69; --lav-600: #fba7b7;
  --ink: #feebef; --ink-soft: #dab0bb; --violet-deep: #fba7b7;
  --pink: #fb93a6; --peach: #fcb3bb; --sage: #8fe0b0; --sky: #9db4ff; --gold: #ffd98a;
  --shadow: 0 0 18px rgba(249, 101, 128, .16), inset 0 1px 0 rgba(255, 255, 255, .1);
  --sh-small: 0 0 14px rgba(249, 101, 128, .16), inset 0 1px 0 rgba(255, 255, 255, .1);
  --sh-raise: 0 0 26px rgba(249, 101, 128, .2), 0 14px 34px rgba(27, 3, 19, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  --sh-inset: inset 0 2px 8px rgba(27, 3, 19, .45), inset 0 0 0 1px rgba(251, 154, 174, .18);
  --sh-btn: 0 0 20px rgba(249, 101, 128, .5), inset 0 1px 0 rgba(255, 255, 255, .35);
  --clay: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  --clay-sm: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
  --ch-line: #fa849a; --ch-fill: #f96580; --ch-grid: rgba(251, 154, 174, .2); --ch-bar: #fa849a; --ring-bg: #36172b;
  --ch-ring-a: #fcb3c0; --ch-ring-b: #f85673; --ch-ring-track: rgba(251, 154, 174, .2);
}
html[data-theme="seitenlust"] body {
  color: var(--ink);
  background:
    radial-gradient(45% 35% at 12% 6%, rgba(248, 86, 115, .28) 0, transparent 70%),
    radial-gradient(40% 35% at 95% 22%, rgba(248, 97, 191, .3) 0, transparent 70%),
    radial-gradient(50% 40% at 60% 100%, rgba(248, 86, 115, .2) 0, transparent 70%),
    linear-gradient(170deg, #2e0c22 0%, #461233 50%, #55173d 100%) fixed;
}
html[data-theme="seitenlust"] body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, #ffffff 50%, transparent 52%), radial-gradient(1px 1px at 22% 62%, #fdd2db 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 37% 28%, #fdd2db 50%, transparent 52%), radial-gradient(1px 1px at 51% 83%, #ffffff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 66% 9%, #ffffff 50%, transparent 52%), radial-gradient(1px 1px at 78% 47%, #fdd2db 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 91% 71%, #ffffff 50%, transparent 52%), radial-gradient(1px 1px at 15% 90%, #fdd2db 50%, transparent 52%),
    radial-gradient(1px 1px at 58% 52%, #ffffff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 84% 92%, #fdd2db 50%, transparent 52%);
}
html[data-theme="seitenlust"] .app, html[data-theme="seitenlust"] #layer { position: relative; z-index: 1; }
html[data-theme="seitenlust"] :is(.brand b, .hello h1, .page-title, .card h2, .rail h2, .empty b, .shelf h3, .nowbook h3, .modal h2, .tfh, .authcard h1) { color: #fdd8df; text-shadow: 0 0 14px rgba(249, 101, 128, .45); }
html[data-theme="seitenlust"] :is(.ring b, .timer .clock) { color: var(--ink); }
html[data-theme="seitenlust"] .secretline, html[data-theme="seitenlust"] .codes span { color: var(--ink); background: var(--lav-100); }
html[data-theme="seitenlust"] .hero-txt h1 { color: #5d2441; text-shadow: none; }
html[data-theme="seitenlust"] .hero-txt p { color: #834c6a; }
@media (max-width: 640px) {
html[data-theme="seitenlust"] .hero-txt h1 { color: #fdd8df; text-shadow: 0 0 14px rgba(249, 101, 128, .45); }
html[data-theme="seitenlust"] .hero-txt p { color: var(--ink-soft); }
}
html[data-theme="seitenlust"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .hero, .newshelf, .search, .tbtn) { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-theme="seitenlust"] :is(.side, .card, .shelf, .qcard, .tile, .polaroid, .hero) { border: 1.5px solid rgba(250, 145, 166, .42); }
html[data-theme="seitenlust"] .card, html[data-theme="seitenlust"] .shelf, html[data-theme="seitenlust"] .hero { border-radius: 26px; }
html[data-theme="seitenlust"] .search { background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(250, 145, 166, .4); }
html[data-theme="seitenlust"] .search:focus-within { box-shadow: var(--sh-small), 0 0 0 3px rgba(249, 101, 128, .38); }
html[data-theme="seitenlust"] .search input::placeholder, html[data-theme="seitenlust"] .field input::placeholder, html[data-theme="seitenlust"] .field textarea::placeholder { color: #b78c99; }
html[data-theme="seitenlust"] .search svg { stroke: #fba0b1; }
html[data-theme="seitenlust"] .field input, html[data-theme="seitenlust"] .field select, html[data-theme="seitenlust"] .field textarea, html[data-theme="seitenlust"] .inp, html[data-theme="seitenlust"] .toolbar .sel, html[data-theme="seitenlust"] .timer .pick select { background: rgba(255, 255, 255, .08); color: var(--ink); }
html[data-theme="seitenlust"] .field input:focus, html[data-theme="seitenlust"] .field select:focus, html[data-theme="seitenlust"] .field textarea:focus, html[data-theme="seitenlust"] .inp:focus { box-shadow: var(--sh-inset), 0 0 0 3px rgba(249, 101, 128, .4); }
html[data-theme="seitenlust"] .timer .pick select option, html[data-theme="seitenlust"] .field select option { background: #481535; color: var(--ink); }
html[data-theme="seitenlust"] .seg { background: rgba(255, 255, 255, .07); }
html[data-theme="seitenlust"] { --lg-bird: #f96580; --lg-page: #fa91d3; --lg-edge: #fee4e9; }
html[data-theme="seitenlust"] .logo svg { filter: drop-shadow(0 0 8px rgba(249, 101, 128, .55)); }
html[data-theme="seitenlust"] .nav a[aria-current="page"] { background: linear-gradient(160deg, rgba(249, 101, 128, .3), rgba(249, 101, 128, .14)); box-shadow: 0 0 16px rgba(249, 101, 128, .3), inset 0 0 0 1px rgba(250, 145, 166, .4); }
@media (hover: hover) {
html[data-theme="seitenlust"] .nav a:hover, html[data-theme="seitenlust"] .nav .navbtn:hover { background: rgba(249, 101, 128, .16); }
}
html[data-theme="seitenlust"] .btn { background: rgba(255, 255, 255, .09); color: var(--violet-deep); border: 1.5px solid rgba(250, 145, 166, .35); }
html[data-theme="seitenlust"] .btn:hover { background: rgba(249, 101, 128, .2); }
html[data-theme="seitenlust"] .btn.primary, html[data-theme="seitenlust"] .seg input:checked + span, html[data-theme="seitenlust"] .chip.on, html[data-theme="seitenlust"] .chipcheck input:checked + .chip, html[data-theme="seitenlust"] .tbtn.on { background: linear-gradient(180deg, #ea5e76 0%, #c9405b 100%); color: #ffffff; border-color: rgba(252, 193, 204, .6); box-shadow: 0 0 18px rgba(249, 101, 128, .5); }
html[data-theme="seitenlust"] .btn.primary:hover { background: linear-gradient(180deg, #ef7085 0%, #d34a67 100%); }
html[data-theme="seitenlust"] .btn.danger { color: #fba3ad; }
html[data-theme="seitenlust"] .tbtn { background: rgba(255, 255, 255, .09); color: var(--violet-deep); border: 1.5px solid rgba(250, 145, 166, .35); }
html[data-theme="seitenlust"] .tbtn:hover { background: rgba(249, 101, 128, .2); }
html[data-theme="seitenlust"] .chip { background: var(--lav-100); color: var(--violet-deep); }
html[data-theme="seitenlust"] .avatar { background: linear-gradient(160deg, #fb93a6, #f862b6); border-color: rgba(253, 202, 212, .85); box-shadow: 0 0 16px rgba(249, 101, 128, .5); }
html[data-theme="seitenlust"] .bar > i { background: linear-gradient(90deg, #fb93a6, #f85673); box-shadow: 0 0 10px rgba(249, 101, 128, .6); }
html[data-theme="seitenlust"] .bar.pink > i { background: linear-gradient(90deg, #fcb3c0, #f96580); }
html[data-theme="seitenlust"] .stars svg { fill: rgba(255, 255, 255, .18); }
html[data-theme="seitenlust"] .tag { background: rgba(250, 135, 158, .18); color: #fcbbc8; }
html[data-theme="seitenlust"] .tag.wunsch { background: rgba(250, 125, 138, .2); color: #fba3ad; }
html[data-theme="seitenlust"] .tag.lese { background: rgba(255, 214, 120, .18); color: #ffd98a; }
html[data-theme="seitenlust"] .tag.gelesen, html[data-theme="seitenlust"] .tag.sage { background: rgba(130, 230, 170, .16); color: #9ee8b8; }
html[data-theme="seitenlust"] .tag.sub { background: rgba(140, 170, 255, .2); color: #b8c9ff; }
html[data-theme="seitenlust"] .tag.plain { background: rgba(255, 255, 255, .08); color: var(--ink-soft); }
html[data-theme="seitenlust"] .cover { box-shadow: 0 0 16px rgba(249, 101, 128, .32), 4px 8px 16px rgba(27, 3, 19, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
html[data-theme="seitenlust"] .books[data-view="liste"] .bk, html[data-theme="seitenlust"] .books[data-view="detail"] .bk { background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(250, 145, 166, .3); }
html[data-theme="seitenlust"] .polaroid, html[data-theme="seitenlust"] .qcard, html[data-theme="seitenlust"] .qcard:nth-child(even) { background: var(--clay-sm); }
html[data-theme="seitenlust"] .tape { background: rgba(251, 147, 166, .55); }
html[data-theme="seitenlust"] .qitem { background: rgba(255, 255, 255, .07); border-color: rgba(250, 145, 166, .25); color: var(--ink); }
html[data-theme="seitenlust"] .x:hover { color: #fba3ad; background: rgba(250, 125, 138, .2); }
html[data-theme="seitenlust"] .swatches span { border-color: rgba(255, 255, 255, .8); }
html[data-theme="seitenlust"] .notice { background: linear-gradient(160deg, rgba(255, 214, 120, .2), rgba(255, 214, 120, .1)); color: #ffe7b0; border: 1px solid rgba(255, 214, 120, .35); }
html[data-theme="seitenlust"] .csitem, html[data-theme="seitenlust"] .scanbar, html[data-theme="seitenlust"] .dupitem, html[data-theme="seitenlust"] .qrow { background: rgba(255, 255, 255, .08); color: var(--ink); }
html[data-theme="seitenlust"] .qmark.good { background: rgba(130, 230, 170, .2); color: #9ee8b8; }
html[data-theme="seitenlust"] .csnoimg { background: linear-gradient(160deg, rgba(250, 125, 151, .22), rgba(255, 255, 255, .06)); }
html[data-theme="seitenlust"] .popmenu button.on .cnt { background: rgba(255, 255, 255, .14); color: var(--violet-deep); }
html[data-theme="seitenlust"] .scrim { background: rgba(29, 5, 21, .6); }
html[data-theme="seitenlust"] .modal { background: linear-gradient(160deg, rgba(89, 25, 65, .97), rgba(60, 16, 44, .97)); border: 1.5px solid rgba(250, 145, 166, .5); box-shadow: 0 0 34px rgba(249, 101, 128, .28), 0 30px 70px rgba(19, 1, 13, .6); }
html[data-theme="seitenlust"] .menu { background: linear-gradient(160deg, rgba(89, 25, 65, .98), rgba(60, 16, 44, .98)); border: 1.5px solid rgba(250, 145, 166, .5); box-shadow: 0 0 28px rgba(249, 101, 128, .28), 0 18px 44px rgba(19, 1, 13, .55); }
html[data-theme="seitenlust"] .menu svg { stroke: #fba0b1; }
html[data-theme="seitenlust"] .menu button:hover, html[data-theme="seitenlust"] .menu a:hover, html[data-theme="seitenlust"] .menu button:focus-visible, html[data-theme="seitenlust"] .menu a:focus-visible { background: rgba(249, 101, 128, .18); }
html[data-theme="seitenlust"] .toast { background: #5d1944; color: var(--ink); border: 1.5px solid rgba(250, 145, 166, .5); box-shadow: 0 0 20px rgba(249, 101, 128, .35); }
html[data-theme="seitenlust"] .toast.bad { background: #571a27; }
@media (max-width: 900px) {
html[data-theme="seitenlust"] .side { box-shadow: var(--sh-raise); background: linear-gradient(160deg, rgba(89, 25, 65, .94), rgba(60, 16, 44, .94)); }
}
html[data-theme="seitenlust"] .authstage { background: linear-gradient(180deg, #2e0c22 0, #461233 40%, #55173d 100%); }
html[data-theme="seitenlust"] .authart { filter: brightness(.5) saturate(1.3) hue-rotate(-25deg); opacity: .85; }
html[data-theme="seitenlust"] .authcard { background: linear-gradient(165deg, rgba(89, 25, 65, .95), rgba(60, 16, 44, .95)); border: 1.5px solid rgba(250, 145, 166, .5); box-shadow: 0 0 34px rgba(249, 101, 128, .28), 0 30px 70px rgba(19, 1, 13, .55); }
html[data-theme="seitenlust"] { background: #3e112e; }
html[data-theme="seitenlust"] body { min-height: 100vh; }
html[data-theme="seitenlust"] :is(.menu button, .menu a, .popmenu button, .popmenu a, .menu-head b) { color: var(--ink); }
html[data-theme="seitenlust"] :is(.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible) { color: #ffffff; }
html[data-theme="seitenlust"] :is(.menu-head small, .menu-label, .page-sub, .hint, .qcard cite, .note-line) { color: var(--ink-soft); }
html[data-theme="seitenlust"] .qcard blockquote { color: var(--ink); }
html[data-theme="seitenlust"] .hint.bad, html[data-theme="seitenlust"] .dupt.bad, html[data-theme="seitenlust"] .qrow.bad small { color: #fba3ad; }
html[data-theme="seitenlust"] .hint.good { color: #9ee8b8; }
html[data-theme="seitenlust"] :is(.linkbtn, details.more > summary) { color: #fba7b7; }
html[data-theme="seitenlust"] :is(.linkbtn:hover, .linkbtn:focus-visible) { color: #ffffff; }
html[data-theme="seitenlust"] .iconbtn { background: rgba(255, 255, 255, .09); border: 1.5px solid rgba(250, 145, 166, .35); color: #fba7b7; }
html[data-theme="seitenlust"] .iconbtn.off { color: #fba3ad; }
html[data-theme="seitenlust"] .syncl li { background: rgba(255, 255, 255, .07); }
html[data-theme="seitenlust"] .tag.wait { background: rgba(255, 214, 120, .18); color: #ffd98a; }
html[data-theme="seitenlust"] .updatebar { background: #5d1944; border: 1.5px solid rgba(250, 145, 166, .5); }
html[data-theme="seitenlust"] .top .mbrand b, html[data-theme="kirschbluete"] .top .mbrand b { font-size: 1.45rem; }
html[data-theme="seitenlust"] html[data-theme="seitenlust"] .pgscale { background: rgba(255, 255, 255, .1); }
html[data-theme="seitenlust"] .pgscale > i { background: linear-gradient(90deg, #fb93a6, #f85673); box-shadow: 0 0 10px rgba(249, 101, 128, .6); }
html[data-theme="seitenlust"] html[data-theme="seitenlust"] .pgmark { background: #481535; border-color: #fdd8df; box-shadow: 0 0 0 2px #481535, 0 0 10px rgba(252, 193, 204, .8); }
html[data-theme="seitenlust"] .pgmark u { color: #fdd8df; }
html[data-theme="seitenlust"] .pgrange::-webkit-slider-runnable-track { background: linear-gradient(90deg, #fb93a6, #f85673 var(--p, 0%), rgba(255, 255, 255, .12) var(--p, 0%)); }
html[data-theme="seitenlust"] .pgrange::-moz-range-track { background: linear-gradient(90deg, #fb93a6, #f85673 var(--p, 0%), rgba(255, 255, 255, .12) var(--p, 0%)); }
html[data-theme="seitenlust"] .pgrange::-webkit-slider-thumb { background: #4c1235; border-color: #fb93a6; box-shadow: 0 0 12px rgba(249, 101, 128, .7); }
html[data-theme="seitenlust"] .pgrange::-moz-range-thumb { background: #4c1235; border-color: #fb93a6; }
html[data-theme="seitenlust"] .pgnum { border-bottom-color: rgba(250, 145, 166, .4); color: #fdd8df; text-shadow: 0 0 14px rgba(249, 101, 128, .5); }
html[data-theme="seitenlust"] .pgtotal b { color: #fdd8df; text-shadow: 0 0 14px rgba(249, 101, 128, .5); }
html[data-theme="seitenlust"] .pgtotal em.ok { color: #fdd8df; }
html[data-theme="seitenlust"] .pgrow { color: var(--ink); border-color: rgba(250, 145, 166, .25); }
html[data-theme="seitenlust"] .pgtoday .tb { background: linear-gradient(135deg, rgba(249, 101, 128, .2), rgba(255, 255, 255, .04)); border-color: rgba(250, 145, 166, .35); box-shadow: 0 0 22px rgba(249, 101, 128, .16); }
html[data-theme="seitenlust"] .pgtoday .tb .big b { color: #fdd8df; text-shadow: 0 0 16px rgba(249, 101, 128, .55); }
html[data-theme="seitenlust"] .pgtoday .tst .ok { color: #fdd8df; }
html[data-theme="seitenlust"] .pgstreak { --fa: #ffc27a; --fb: #f96580; --fglow: rgba(249, 101, 128, .6); --tr: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); border-color: rgba(250, 145, 166, .22); --card: #481535; }
html[data-theme="seitenlust"] .pgstreak .bsub b, html[data-theme="seitenlust"] .pgstreak .bl b { color: #fdd8df; }
html[data-theme="seitenlust"] .pgstreak .dot.on i { box-shadow: 0 0 8px var(--fglow); }
html[data-theme="seitenlust"] .pgstreak .dot.on.td i { box-shadow: 0 0 8px var(--fglow), 0 0 0 1.5px #481535, 0 0 0 3px #fdd8df; }
html[data-theme="seitenlust"] .pgstreak .bgo { color: #fdd8df; border-color: rgba(250, 145, 166, .55); }
html[data-theme="seitenlust"] .sp { box-shadow: 0 0 10px rgba(249, 101, 128, .25), inset 8px 0 0 rgba(0, 0, 0, .2); }
html[data-theme="seitenlust"] .rail h2 { color: #fdd8df; }
html[data-theme="seitenlust"] .calgr .cl { background: #531a3f; box-shadow: 0 0 10px rgba(249, 101, 128, .18); }
html[data-theme="seitenlust"] .calgr .cl .tear { background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, .12) 5px 7px); }
html[data-theme="seitenlust"] .calgr .cl .b .num { color: rgba(255, 255, 255, .22); }
html[data-theme="seitenlust"] .calgr .cl .h { background: linear-gradient(180deg, #c45b9f, #a44383); }
html[data-theme="seitenlust"] .calgr .cl.fin .h { background: linear-gradient(180deg, #f97589, #d34a61); }
html[data-theme="seitenlust"] .calbk .done, html[data-theme="seitenlust"] .calhead .calmon { color: #fba7b7; }
html[data-theme="seitenlust"] .calsum span b { color: #fdd8df; }
html[data-theme="seitenlust"] .caldet { background: rgba(255, 255, 255, .06); }
html[data-theme="seitenlust"] .stars10 .st svg { fill: rgba(255, 255, 255, .16); }
html[data-theme="seitenlust"] .finq-i { box-shadow: 0 0 18px rgba(249, 101, 128, .5); }
html[data-theme="seitenlust"] .st-pill.ok { color: #8fe0b0; background: rgba(143, 224, 176, .15); }
html[data-theme="seitenlust"] .st-pill.late { color: #ffb36b; background: rgba(255, 179, 107, .15); }
html[data-theme="seitenlust"] .st-tile .ic { background: rgba(251, 154, 174, .16); color: var(--pink, #fb93a6); }
html[data-theme="seitenlust"] .charttip { background: #feebef; color: #4e1437; box-shadow: 0 0 20px rgba(249, 101, 128, .45); }
html[data-theme="seitenlust"] .catpick { background: #50173b; border-color: rgba(250, 145, 166, .5); box-shadow: 0 0 26px rgba(249, 101, 128, .3); }
html[data-theme="seitenlust"] .tag.have { background: rgba(255, 255, 255, .08); color: var(--ink-soft); }
html[data-theme="seitenlust"] .bk.static .pick span { background: rgba(72, 21, 53, .92); border-color: #fa849a; }
html[data-theme="seitenlust"] .bk .stars svg { fill: rgba(255, 255, 255, .16); }
html[data-theme="seitenlust"] .bk .stars svg.on { fill: #ffd98a; }
html[data-theme="seitenlust"] .lzchip { background: rgba(255, 170, 90, .18); color: #ffc58a; }
html[data-theme="seitenlust"] {
  --fld-bg: #360e28; --fld-edge: #b07e90; --fld-ph: #c5a2ad; --fld-focus: rgba(249, 101, 128, .5);
  --grad-pri: linear-gradient(180deg, #fa849a, #e24d69); --list-bg: #541a3f; --list-sel: rgba(250, 125, 151, .22);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffa3d3' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
html[data-theme="seitenlust"] .areamenu .bx { background: rgba(255, 255, 255, .06); }
html[data-theme="seitenlust"] .stlist, html[data-theme="nachteule"] .stlist, html[data-theme="thriller"] .stlist { --c-gelesen: #8fd09a; --c-lese: #f0cf6a; --c-sub: #8fb2f0; --c-wunsch: #ee9ea7; --c-abgebrochen: #c7a2a7; }
html[data-theme="seitenlust"] .cx[data-cx="combo"], html[data-theme="nachteule"] .cx[data-cx="combo"], html[data-theme="thriller"] .cx[data-cx="combo"] { --au-line: #5fe0d0; }
html[data-theme="seitenlust"] .cxk i.hz, html[data-theme="nachteule"] .cxk i.hz, html[data-theme="thriller"] .cxk i.hz, html[data-theme="seitenlust"] .cxtg i.hz, html[data-theme="nachteule"] .cxtg i.hz, html[data-theme="thriller"] .cxtg i.hz { background: #5fe0d0; }
html[data-theme="seitenlust"] .cxtg em, html[data-theme="nachteule"] .cxtg em, html[data-theme="thriller"] .cxtg em { color: #7ff0e2; }
html[data-theme="seitenlust"] .pgtoday .tb .big.aud b, html[data-theme="nachteule"] .pgtoday .tb .big.aud b, html[data-theme="thriller"] .pgtoday .tb .big.aud b { color: #7ff0e2; }
html[data-theme="seitenlust"] .pgtoday .tb .pgcap.aud span:first-child, html[data-theme="nachteule"] .pgtoday .tb .pgcap.aud span:first-child, html[data-theme="thriller"] .pgtoday .tb .pgcap.aud span:first-child { color: #7ff0e2; }
html[data-theme="seitenlust"] .pgscale.aud, html[data-theme="nachteule"] .pgscale.aud, html[data-theme="thriller"] .pgscale.aud { background: rgba(95, 224, 208, .16); }
html[data-theme="seitenlust"] .pgscale.aud > i, html[data-theme="nachteule"] .pgscale.aud > i, html[data-theme="thriller"] .pgscale.aud > i { background: linear-gradient(90deg, #2c8c82, #5fe0d0); }
html[data-theme="seitenlust"] .pgscale.aud .pgmark, html[data-theme="nachteule"] .pgscale.aud .pgmark, html[data-theme="thriller"] .pgscale.aud .pgmark { border-color: #5fe0d0; }
html[data-theme="seitenlust"] .pgscale.aud .pgmark u, html[data-theme="nachteule"] .pgscale.aud .pgmark u, html[data-theme="thriller"] .pgscale.aud .pgmark u { color: #7ff0e2; }
:is(html[data-theme="seitenlust"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .zt { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
:is(html[data-theme="seitenlust"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .zt textarea { color: var(--ink); }
:is(html[data-theme="seitenlust"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .qpill select, :is(html[data-theme="seitenlust"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .qpill input, :is(html[data-theme="seitenlust"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .ex, :is(html[data-theme="seitenlust"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .gz { background-color: rgba(255, 255, 255, .07) !important; }
:is(html[data-theme="seitenlust"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qn2 { background: rgba(255, 255, 255, .12); color: var(--ink); }
:is(html[data-theme="seitenlust"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qshow label { background: rgba(255, 255, 255, .07); }
:is(html[data-theme="seitenlust"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qshow label:has(input:checked) { background: rgba(250, 145, 166, .22); color: var(--ink); }
:is(html[data-theme="seitenlust"], html[data-theme="nachteule"], html[data-theme="thriller"]) .qform .sg input[name=said] { background-color: rgba(255, 255, 255, .07) !important; }

html[data-theme="seitenlust"] .authart { filter: none !important; opacity: 1 !important; }
html[data-theme="seitenlust"] .hero.noimg { background: linear-gradient(135deg, rgba(133,46,78,.75), rgba(76,29,61,.9)) !important; }
html[data-theme="seitenlust"] .hero.up .hero-txt { background: rgba(76,29,61,.58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 14px 18px; border-radius: 18px; }
html[data-theme="seitenlust"] .hero-txt h1 { color: #FFD9C4 !important; text-shadow: 0 0 14px rgba(251,149,144,.35) !important; }
html[data-theme="seitenlust"] .hero-txt p { color: #F6CDBE !important; }
html[data-theme="seitenlust"] :is(.side-note, .small, .muted, .hint) { color: var(--ink-soft); }
.sl18 { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 99px; border: 1.5px solid currentColor; font: 800 .58rem/1.4 var(--sans, sans-serif); letter-spacing: .06em; vertical-align: .55em; color: #FFBB94; -webkit-text-fill-color: #FFBB94; text-shadow: none; }
