/* Fantasybuch24 – Stylesheet
   Leitidee: ein altes Lederbuch auf dem Lesetisch. Dunkles Leder und Goldschnitt für Kopf und Fuß,
   Pergament für den Lesebereich, Patina-Grün für Links. Keine Bilder außer dem Logo, alles in CSS. */

@font-face { font-family: "Cardo"; src: url("/fonts/cardo-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("/fonts/cardo-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("/fonts/cardo-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/sourcesans3-variable.woff") format("woff"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  --table: #e4d9bd;        /* Tischplatte / Seitenhintergrund */
  --paper: #f8f3e4;        /* Pergament für Inhalte */
  --paper-2: #efe6cf;      /* abgesetzte Flächen */
  --ink: #261d15;
  --ink-soft: #5b4b39;
  --line: #cdbf9b;
  --leather: #2b1b14;
  --oxblood: #6f1d24;
  --oxblood-dark: #4a1218;
  --gold: #b08a3a;
  --gold-light: #e0c783;
  --patina: #1f5a52;       /* Links */
  --patina-dark: #143f39;
  --ok: #2f6b3c;
  --danger: #8f1d1d;
  --serif: "Cardo", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 2px 10px rgba(43,27,20,.12);
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--patina);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; color: var(--ink); font: 400 1rem/1.55 var(--sans);
  background: var(--table) radial-gradient(ellipse at 50% 0, #efe5cb 0, var(--table) 60%) fixed;
}
img { max-width: 100%; height: auto; }
a { color: var(--patina); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--patina-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
.masthead :focus-visible { box-shadow: 0 0 0 3px var(--leather), 0 0 0 5px var(--gold-light); }
main:focus { outline: none; }
code { font: .9em ui-monospace, Consolas, monospace; background: var(--paper-2); padding: .05em .3em; border-radius: 3px; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); }

.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--paper); padding: .6rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; box-shadow: var(--focus); }
.small { font-size: .875rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.noscript { padding: 2rem; text-align: center; }

/* ---------- Kopf: dunkles Leder mit Goldschnitt ---------- */
.masthead { background:
    radial-gradient(ellipse at 18% 0, rgba(176,138,58,.16), transparent 55%),
    linear-gradient(180deg, #3a2419 0%, var(--leather) 100%); color: #f1e6c8; }
.masthead-inner { max-width: 78rem; margin: 0 auto; padding: .9rem 1rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem 2rem; align-items: center; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand-logo { width: 4.6rem; height: auto; margin-block: -.15rem -.4rem; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); transform: rotate(-2deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 2.1rem/1 var(--serif); letter-spacing: .01em; color: var(--gold-light); text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.brand-tag { font: italic 1rem/1.3 var(--serif); color: #d9c9a2; margin-top: .3rem; }
.head-search { display: flex; justify-self: end; width: min(100%, 26rem); }
.head-search input { flex: 1; min-width: 0; padding: .55rem .8rem; border: 1px solid #6b5036; border-right: 0; background: #f8f3e4; color: var(--ink); font: inherit; border-radius: var(--radius) 0 0 var(--radius); }
.head-search button { padding: .55rem 1rem; border: 1px solid var(--gold); background: var(--gold); color: #24170d; font: 600 1rem var(--sans); cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; }
.head-search button:hover { background: var(--gold-light); }
.user-box { display: flex; gap: .9rem; align-items: center; font-size: .95rem; justify-self: end; }
.user-box a, .user-box .btn-ghost { color: var(--gold-light); }
.user-box .who strong { color: #fff; font-weight: 600; }
.gold-rule { height: 7px; background:
    linear-gradient(var(--gold) 0 1px, transparent 1px 3px, var(--gold) 3px 5px, transparent 5px);
  border-top: 1px solid rgba(0,0,0,.4); opacity: .95; }

/* ---------- Seitenraster ---------- */
.page { max-width: 78rem; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; display: grid; grid-template-columns: 14.5rem minmax(0, 1fr) 16rem; gap: 1.5rem; align-items: start; }
.col-main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem clamp(1rem, 3vw, 2.25rem) 2.25rem; min-height: 28rem; min-width: 0; }
.col-nav, .col-side { min-width: 0; }
.nav-toggle { display: none; }

/* ---------- Navigation links ---------- */
.side-nav { background: var(--leather); color: #eadfc2; border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem 0; border: 1px solid #1b100b; }
.side-nav details { border-bottom: 1px solid rgba(224,199,131,.18); }
.side-nav details:last-child { border-bottom: 0; }
.side-nav summary { list-style: none; cursor: pointer; padding: .7rem 1rem; font: 700 1.1rem var(--serif); color: var(--gold-light); display: flex; justify-content: space-between; }
.side-nav summary::-webkit-details-marker { display: none; }
.side-nav summary::after { content: ""; width: .5rem; height: .5rem; margin-top: .35rem; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); transition: transform .15s; }
.side-nav details[open] > summary::after { transform: rotate(45deg); }
.side-nav ul { list-style: none; margin: 0; padding: 0 0 .6rem; }
.side-nav li a { display: block; padding: .3rem 1rem .3rem 1.4rem; color: #eadfc2; text-decoration: none; border-left: 3px solid transparent; }
.side-nav li a:hover { background: rgba(224,199,131,.1); color: #fff; }
.side-nav li a[aria-current="page"], .side-nav li a[aria-current="location"] { border-left-color: var(--gold); background: rgba(224,199,131,.16); color: #fff; font-weight: 600; }
.side-nav :focus-visible { box-shadow: inset 0 0 0 2px var(--gold-light); }

/* ---------- Seitenleiste rechts ---------- */
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem 1rem; margin-bottom: 1rem; }
.box h2 { font: 700 1.15rem var(--serif); margin: 0 0 .6rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); color: var(--oxblood); }
.mini { display: flex; gap: .7rem; text-decoration: none; color: var(--ink); align-items: flex-start; }
.mini:hover { color: var(--patina-dark); }
.mini strong { display: block; font-weight: 600; }
.mini .stars { display: flex; margin: .15rem 0 .2rem; }
.mini .small { display: block; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mini .cover { flex: none; width: 3.1rem; height: auto; }
.ranking { margin: 0; padding-left: 1.3rem; }
.ranking li { padding: .15rem 0; }
.ranking li::marker { color: var(--gold); font-weight: 700; }
.ranking li { display: list-item; }
.ranking a { text-decoration: none; }
.ranking .row { display: flex; align-items: baseline; gap: .75rem; }
.ranking .row a { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking .n { flex: none; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ranking.wide { padding-left: 2rem; }
.calendar { width: 100%; border-collapse: collapse; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; }
.calendar caption { text-align: left; font: 700 1rem var(--serif); padding-bottom: .3rem; }
.calendar th { font-weight: 600; color: var(--ink-soft); padding: .15rem 0; }
.calendar td { padding: .22rem 0; }
.calendar td.marked span { display: inline-block; min-width: 1.6rem; border-radius: 50%; background: var(--oxblood); color: #fff; font-weight: 700; }
.calendar td.today { outline: 1px solid var(--gold); outline-offset: -2px; border-radius: 50%; font-weight: 700; }
.cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .65rem; align-items: baseline; line-height: 1.25; }
.cloud a { text-decoration: none; color: var(--patina); }
.cloud .w1 { font-size: .85rem; } .cloud .w2 { font-size: 1rem; } .cloud .w3 { font-size: 1.15rem; font-family: var(--serif); }
.cloud .w4 { font-size: 1.35rem; font-family: var(--serif); } .cloud .w5 { font-size: 1.6rem; font-family: var(--serif); font-weight: 700; color: var(--oxblood); }
.stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; }
.stats dt { font-size: .8rem; color: var(--ink-soft); }
.stats dd { margin: 0; font: 700 1.3rem var(--serif); font-variant-numeric: tabular-nums; }

/* ---------- Typografie im Inhalt ---------- */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--oxblood-dark); text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.35rem); margin: 0 0 1rem; padding-bottom: .55rem; border-bottom: 3px double var(--gold); }
h2 { font-size: 1.45rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
.page-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.lede { font: 1.15rem/1.55 var(--serif); color: var(--ink-soft); max-width: 42rem; }
.prose { font: 1.1rem/1.7 var(--serif); max-width: 42rem; }
.prose p { margin: 0 0 1em; }
.prose img { max-width: 100%; border-radius: 3px; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.legal h2 { font-size: 1.25rem; }
.byline { margin: -.2rem 0 .6rem; color: var(--ink-soft); font-size: .92rem; }
.section { margin-top: 2.2rem; }
.page-meta { margin-top: 1.5rem; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.plain-list.columns { columns: 2 16rem; display: block; }
.plain-list.columns li { break-inside: avoid; padding: .15rem 0; }
.float-end { float: right; margin: 0 0 .5rem 1rem; }

/* ---------- Pfad, Weiterblättern ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 0 0 .8rem; padding: 0; font-size: .9rem; color: var(--ink-soft); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: .5rem; color: var(--gold); }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; padding: 0; margin: 1.8rem 0 0; }
.pager a, .pager .current { display: block; min-width: 2.4rem; padding: .4rem .7rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--paper-2); }
.pager a:hover { border-color: var(--gold); background: #fff; }
.pager .current { background: var(--oxblood); border-color: var(--oxblood); color: #fff; font-weight: 700; }
.pager .gap { padding: .4rem .2rem; color: var(--ink-soft); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 1rem; }
.prev-next a { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); text-decoration: none; font-family: var(--serif); }
.prev-next a:last-child { text-align: right; }
.prev-next .small { display: block; font-family: var(--sans); }
.prev-next a:hover { border-color: var(--gold); }

/* ---------- News ---------- */
.news-item { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: .2rem; }
.news-item h2 { margin: 0 0 .15rem; font-size: 1.4rem; }
.news-item h2 a { color: var(--oxblood-dark); text-decoration: none; }
.news-item h2 a:hover { color: var(--oxblood); text-decoration: underline; }
.news-detail h1 { margin-bottom: .4rem; }
.link-list { list-style: none; padding: .8rem 1rem; margin: 1.5rem 0 0; background: var(--paper-2); border-left: 3px solid var(--gold); display: grid; gap: .3rem; }

/* ---------- Schaltflächen ---------- */
.btn, button.btn { display: inline-block; padding: .55rem 1.1rem; font: 600 1rem var(--sans); color: var(--ink); background: var(--paper-2); border: 1px solid #b5a57b; border-radius: var(--radius); text-decoration: none; cursor: pointer; line-height: 1.3; }
.btn:hover { background: #fff; border-color: var(--gold); color: var(--ink); }
.btn-primary { background: var(--oxblood); border-color: var(--oxblood-dark); color: #fff8e6; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset; }
.btn-primary:hover { background: var(--oxblood-dark); color: #fff; border-color: var(--oxblood-dark); }
.btn:disabled, button:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: none; border: 1px solid rgba(224,199,131,.55); color: var(--gold-light); padding: .3rem .8rem; border-radius: var(--radius); font: inherit; text-decoration: none; cursor: pointer; }
.btn-ghost:hover { background: rgba(224,199,131,.15); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--danger); text-decoration: underline; cursor: pointer; }
.chip { min-width: 1.9rem; padding: .1rem .4rem; border: 1px solid var(--line); background: var(--paper-2); border-radius: 1rem; font: inherit; cursor: pointer; }
.chip:hover { border-color: var(--gold); background: #fff; }
.nav-toggle { font: 700 1.05rem var(--serif); padding: .7rem 1rem; width: 100%; text-align: left; background: var(--leather); color: var(--gold-light); border: 0; border-radius: var(--radius); cursor: pointer; }

/* ---------- Sterne ---------- */
.stars { display: inline-flex; gap: 1px; vertical-align: -.12em; }
.s { display: inline-block; width: 1em; height: 1em; background: var(--line); clip-path: polygon(50% 3%, 62% 36%, 97% 38%, 69% 59%, 79% 94%, 50% 74%, 21% 94%, 31% 59%, 3% 38%, 38% 36%); }
.s.full { background: var(--gold); }
.s.half { background: linear-gradient(90deg, var(--gold) 50%, var(--line) 50%); }
.vote-buttons .s { width: .9em; height: .9em; margin-left: .2em; }

/* ---------- Genres und Serien ---------- */
.genre-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.genre-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .2rem 1rem .9rem; background: var(--paper-2); }
.genre-card h2 { margin: .7rem 0 .4rem; font-size: 1.25rem; }
.genre-card ul { list-style: none; margin: 0; padding: 0; }
.genre-card li { padding: .15rem 0; }
.count { display: inline-block; min-width: 1.5rem; padding: 0 .4rem; font-size: .8rem; text-align: center; border-radius: 1rem; background: #e3d7b6; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 0 .5rem; border-radius: 1rem; font-size: .75rem; font-weight: 700; background: var(--oxblood); color: #fff8e6; vertical-align: .1em; }
.abc { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0 1.5rem; position: sticky; top: 0; background: var(--paper); padding: .5rem 0; z-index: 2; border-bottom: 1px solid var(--line); }
.abc a { min-width: 2rem; text-align: center; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; background: var(--paper-2); }
.abc a:hover { background: #fff; border-color: var(--gold); }
.letter-group h2 { margin: 1.4rem 0 .4rem; padding-bottom: .15rem; border-bottom: 1px solid var(--line); font-size: 1.6rem; color: var(--gold); }
.series-list { list-style: none; padding: 0; margin: 0; columns: 2 17rem; column-gap: 2rem; }
.series-list li { padding: .22rem 0; break-inside: avoid; }
.lang-switch { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.lang-switch a, .lang-switch strong { padding: .2rem .8rem; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch strong { background: var(--paper-2); }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.inline-field { font-size: .92rem; display: inline-flex; gap: .5rem; align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .5rem 1rem; text-decoration: none; border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -1px; }
.tabs a[aria-current="page"] { background: var(--paper); border-color: var(--line); font-weight: 700; color: var(--oxblood); }
.quarter-nav { display: flex; justify-content: space-between; margin: 1rem 0; }

/* ---------- Produktlisten ---------- */
.product-list { list-style: none; margin: 0; padding: 0; }
.product-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: .5rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.product-row:first-child { border-top: 1px solid var(--line); }
.cover { display: block; background: var(--paper-2); box-shadow: 1px 2px 5px rgba(43,27,20,.35); border-radius: 1px 3px 3px 1px; }
.cover-small { width: 3.75rem; height: auto; min-height: 3rem; }
.cover-large { width: 10rem; max-width: 100%; height: auto; box-shadow: 3px 4px 12px rgba(43,27,20,.4); }
.product-main h3 a { color: var(--oxblood-dark); text-decoration: none; font-size: 1.15rem; }
.product-main h3 a:hover { text-decoration: underline; }
.meta { margin: 0; color: var(--ink-soft); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 0 .9rem; }
.meta > span + span::before { content: ""; }
.product-rating { text-align: right; font-size: .9rem; display: grid; gap: .25rem; justify-items: end; }
.product-rating .small { display: block; }
.upcoming { color: var(--oxblood); font-weight: 600; }
.compact .product-row { padding: .6rem 0; }

/* ---------- Produktseite ---------- */
.product { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1.5rem 2rem; }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.facts { margin: 0 0 1.2rem; display: grid; gap: .3rem; }
.facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: .5rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.affiliate { margin: .6rem 0 1.2rem; }
.vote { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.vote p { margin: 0 0 .4rem; }
.vote fieldset { border: 0; padding: 0; margin: 0; }
.vote legend { font-weight: 600; padding: 0; margin-bottom: .3rem; }
.vote-buttons { display: flex; gap: .4rem; }
.vote-buttons button { padding: .35rem .7rem; border: 1px solid #b5a57b; background: var(--paper); border-radius: var(--radius); font: 600 1rem var(--sans); cursor: pointer; }
.vote-buttons button:hover { background: #fff; border-color: var(--gold); }
.mini-product { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }

/* ---------- Rezensionen, Verwaltung ---------- */
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.review { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.review:target, .review:focus-within { background: linear-gradient(90deg, rgba(176,138,58,.14), transparent 70%); box-shadow: -1rem 0 0 rgba(176,138,58,.14); }
.review h2 { margin-top: 0; font-size: 1.3rem; }
.entry { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.entry h2 { margin: 0; font-size: 1.2rem; }
.member-list { list-style: none; padding: 0; columns: 3 12rem; }
.member-list li { padding: .15rem 0; break-inside: avoid; }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.link-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.2rem 1rem; background: var(--paper-2); }
.link-card h2 { margin: .3rem 0 0; font-size: 1.3rem; }
.link-card img { margin: .6rem 0 0; border: 1px solid var(--line); }
.faq-index ol { columns: 2 18rem; padding-left: 1.5rem; }
.faq-index li { padding: .12rem 0; break-inside: avoid; }
.faq section { max-width: 44rem; }
.faq h2 { font-size: 1.25rem; margin-top: 1.6rem; }
.faq .prose { font-size: 1.05rem; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: .9rem; max-width: 40rem; }
.form.narrow { max-width: 26rem; }
.form.wide { max-width: 52rem; }
.form label { display: grid; gap: .25rem; font-weight: 600; align-content: start; }
input, select, textarea { font: 400 1rem var(--sans); color: var(--ink); padding: .55rem .7rem; border: 1px solid #b5a57b; background: #fffdf6; border-radius: var(--radius); width: 100%; }
select { width: auto; max-width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select { height: 2.6rem; box-sizing: border-box; line-height: 1.2; }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: var(--focus); outline: none; border-color: var(--patina); }
input:user-invalid, textarea:user-invalid { border-color: var(--danger); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1rem 1rem; margin: 0; display: grid; gap: .9rem; }
legend { padding: 0 .4rem; font-weight: 600; }
.rating-pick { display: grid; gap: .1rem; }
.rating-pick label { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.rating-pick input { width: auto; }
.hint { margin: -.5rem 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: end; }
.search-form { grid-template-columns: 1fr auto auto auto; align-items: end; max-width: none; }
.search-form select { width: 100%; }
.form-msg { margin: 0; min-height: 1.4em; }
.form-msg.error { color: var(--danger); font-weight: 600; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.notice { padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); margin: 1rem 0; }
.notice-error { border-color: #d49a9a; background: #f6e3df; color: #6e1717; }
.notice-success { border-color: #9bc3a0; background: #e5f1e4; color: #1f4d29; }
.notice-info { border-color: var(--gold); }
.code { width: 100%; font: .85rem ui-monospace, Consolas, monospace; }
.banner-sample { border: 1px solid var(--line); max-width: 100%; }
.inline-reply { margin: .6rem 0; max-width: none; }

/* ---------- Tabellen ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th, .data td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data thead th { border-bottom: 2px solid var(--gold); font-family: var(--serif); font-size: 1rem; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: .8rem; align-items: center; }

/* ---------- Zustände ---------- */
.loading, div.empty { color: var(--ink-soft); padding: 1.5rem 0; font-style: italic; font-family: var(--serif); }
[aria-busy="true"] { opacity: .55; transition: opacity .2s .15s; }

/* ---------- Fuß: Rückseite des Buches ---------- */
.footer { background: var(--leather); color: #d9c9a2; border-top: 1px solid #1b100b; box-shadow: 0 -4px 0 -1px var(--gold) inset; }
.footer-inner { max-width: 78rem; margin: 0 auto; padding: 1.6rem 1rem 2rem; display: grid; gap: .6rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer a { color: var(--gold-light); }
.footer .small { color: #b9a982; margin: 0; max-width: 46rem; }

/* ---------- Anpassung an kleinere Bildschirme ---------- */
@media (max-width: 66rem) {
  .page { grid-template-columns: 13.5rem minmax(0, 1fr); }
  .col-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 1rem; }
}
@media (max-width: 48rem) {
  html { font-size: 100%; }
  .masthead-inner { grid-template-columns: 1fr; gap: .8rem; padding-block: .8rem; }
  .brand-name { font-size: 1.7rem; }
  .brand-logo { width: 3.2rem; }
  .head-search, .user-box { justify-self: stretch; width: 100%; }
  .user-box { flex-wrap: wrap; }
  .page { grid-template-columns: minmax(0, 1fr); padding-top: 1rem; }
  .nav-toggle { display: block; }
  .nav-panel { display: none; }
  .col-nav.open .nav-panel { display: block; margin-top: .4rem; }
  .col-main { padding: 1.2rem 1rem 1.6rem; }
  .product { grid-template-columns: 1fr; justify-items: start; }
  .product-info { width: 100%; }
  .facts > div { grid-template-columns: 1fr; gap: 0; }
  .product-row { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .product-rating { grid-column: 2; text-align: left; justify-items: start; }
  .search-form { grid-template-columns: 1fr; }
  .grid2, .prev-next { grid-template-columns: 1fr; }
  .prev-next a:last-child { text-align: left; }
  .abc { position: static; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .masthead, .col-nav, .col-side, .footer, .pager, .actions, .vote { display: none; } .page { display: block; } .col-main { border: 0; box-shadow: none; } }

.who { color: inherit; text-decoration: none; }
.who:hover { color: #fff; text-decoration: underline; }
.account-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); max-width: 56rem; }
.danger-zone { border: 1px solid #d49a9a; border-radius: var(--radius); padding: .2rem 1.2rem 1.2rem; background: #fbefec; }
.danger-zone h2 { color: var(--danger); }
.btn-danger { background: var(--danger); border-color: #5e1010; color: #fff; }
.btn-danger:hover { background: #6e1414; color: #fff; }
.user-edit { margin-top: .6rem; }
.user-edit summary { cursor: pointer; color: var(--patina); }
.user-edit .form { margin-top: .8rem; max-width: 36rem; }
.copy-field { font: .85rem ui-monospace, Consolas, monospace; }

.admin-bar { padding: .4rem .8rem; border-left: 3px solid var(--gold); background: var(--paper-2); }
.sub-tabs a { padding: .35rem .8rem; font-size: .95rem; }
table.data td { vertical-align: top; }
td.row-actions { display: table-cell; white-space: nowrap; }
td.row-actions > * + * { margin-left: .8rem; }
td.nowrap { white-space: nowrap; }
fieldset .hint { margin: .2rem 0 0; }
