/* Butaboo – mobil zuerst, sanft und verspielt. Animationen nur über transform/opacity. */
:root {
  /* Namen historisch: --gruen = Hauptfarbe (Lavendel), --koralle = Akzent (Rosa) */
  --grund: #fbf8ff; --flaeche: #ffffff; --text: #2e2840; --leise: #7d7590; --linie: #ebe6f5;
  --gruen: #6f5bd0; --gruen-hell: #efebfd; --koralle: #ff7d95; --koralle-hell: #ffe8ed; --gold: #ffc65c; --minze: #94d6bd;
  --schatten: 0 1px 2px rgba(70, 50, 120, .06), 0 6px 20px rgba(70, 50, 120, .09);
  --rund: 18px; --leiste: 68px;
  --regal-wand: #f1e4d3; --regal-wand-unten: #dcc6aa; --holz-licht: #e0ba8c; --holz-hell: #c79a6b; --holz: #8f6039;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #16131e; --flaeche: #211d2b; --text: #efeaf8; --leise: #a49db5; --linie: #332d40;
    --gruen: #a596f2; --gruen-hell: #2a2440; --koralle: #ff8fa5; --koralle-hell: #3b2330;
    --schatten: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.35); color-scheme: dark;
    --regal-wand: #2b2331; --regal-wand-unten: #1f1a26; --holz-licht: #8a6548; --holz-hell: #6f4f38; --holz: #4a3324; }
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .18s ease-out both vt-raus; }
::view-transition-new(root) { animation: .24s ease-out both vt-rein; }
@keyframes vt-raus { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-rein { from { opacity: 0; transform: translateY(8px); } }
.leiste { view-transition-name: leiste; }
.kopf { view-transition-name: kopf; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--grund); color: var(--text);
  padding-bottom: calc(var(--leiste) + env(safe-area-inset-bottom) + 16px); -webkit-tap-highlight-color: transparent; }
body.willkommen { padding-bottom: 24px; }
a { color: var(--gruen); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: .3em 0 .6em; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
small, .hinweis { color: var(--leise); }
.hinweis { font-size: .92rem; }
.klein { font-size: .85rem; }
i { font-style: normal; color: var(--leise); font-weight: 400; }

.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: color-mix(in srgb, var(--grund) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linie); }
.marke { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.marke .logo { width: 46px; height: auto; margin: -6px 0; }
.marke span { display: grid; line-height: 1.05; }
.marke small { font-size: .62rem; font-weight: 500; color: var(--leise); letter-spacing: .02em; }
.knopf.primaer, .zustand.ok, .blase.mein, .chip.aktiv { color: #fff; }
.kopf-rechts { display: flex; align-items: center; gap: 12px; flex: none; }
.kopf-konto { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gruen-hell); font-size: 1.25rem; line-height: 1; text-decoration: none; }
.kopf-konto .geist-bild { height: 34px; width: auto; }
.chip .geist-bild { display: inline-block; height: 1.5em; width: auto; vertical-align: middle; }
.mit-geist .geist-bild { display: inline-block; height: 1.5em; width: auto; vertical-align: middle; margin-right: 6px; }
.geist-bild.grau { filter: grayscale(1) brightness(.85); }
.kopf-konto[aria-current] { box-shadow: 0 0 0 2px var(--gruen); }
@media (max-width: 400px) { .marke small { display: none; } }
button.kopf-link { padding: 0; border: 0; background: none; font: inherit; color: var(--gruen); cursor: pointer; }
.wechsel { position: relative; }
.wechsel summary { color: var(--gruen); cursor: pointer; list-style: none; white-space: nowrap; }
.wechsel summary::-webkit-details-marker { display: none; }
.wechsel form { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; display: grid; gap: 14px; padding: 14px 18px; border-radius: 12px; background: var(--flaeche); box-shadow: var(--schatten); text-align: left; }
.kopf-link { font-weight: 600; text-decoration: none; font-size: .9rem; }
.inhalt { max-width: 980px; margin: 0 auto; padding: 12px 16px; }

/* Untere Leiste */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; align-items: center;
  height: calc(var(--leiste) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--flaeche) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--linie); }
.leiste a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem;
  font-weight: 600; color: var(--leise); text-decoration: none; padding: 6px 0; }
.leiste a .ico { font-size: 1.35rem; line-height: 1; transition: transform .2s; filter: grayscale(.7); opacity: .8; }
.leiste a.aktiv { color: var(--gruen); }
.leiste a.aktiv .ico { transform: translateY(-2px) scale(1.12); filter: none; opacity: 1; }
.leiste a .ico.herzen-ico { filter: none; opacity: 1; }
.herzen { display: block; width: 1.2em; height: 1em; margin: 0 auto; }
.leiste a.plus { flex: 0 0 auto; }
.leiste a.plus span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--koralle); color: #fff;
  font-size: 1.7rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--koralle) 45%, transparent); transform: translateY(-10px); transition: transform .2s; }
.leiste a.plus:active span { transform: translateY(-10px) scale(.92); }
.badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--koralle);
  color: #fff; font-size: .7rem; line-height: 19px; text-align: center; }
.badge.puls { animation: puls .6s ease; }
@keyframes puls { 40% { transform: scale(1.5); } }

/* Knöpfe & Formulare */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--linie);
  background: var(--flaeche); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s, background .2s, box-shadow .2s; }
.knopf:active { transform: scale(.96); }
.knopf.primaer { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.knopf.gross { width: 100%; padding: 14px 18px; font-size: 1.05rem; border-radius: 14px; }
.knopf.klein { padding: 6px 10px; font-size: .85rem; border-radius: 10px; }
.knopf.leise { background: transparent; color: var(--leise); }
.knopf.rot { color: #c0392b; }
.knopf:disabled { opacity: .6; }
.knoepfe { display: grid; gap: 10px; margin-top: 16px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
label small { font-weight: 400; font-size: .8rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--linie);
  background: var(--flaeche); color: var(--text); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gruen); box-shadow: 0 0 0 3px var(--gruen-hell); }
input:disabled { opacity: .6; }
.karte-form { max-width: 460px; margin: 0 auto; background: var(--flaeche); border-radius: var(--rund); padding: 20px; box-shadow: var(--schatten); }
.karte-form h1 { margin-top: .2em; }
.zwei { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.zurueck { display: inline-block; margin-bottom: 8px; text-decoration: none; font-weight: 600; font-size: .9rem; }

.meldung { padding: 12px 14px; border-radius: 12px; margin: 0 0 12px; font-weight: 500; animation: rein .35s ease backwards; transition: opacity .4s, transform .4s; }
.meldung.ok { background: var(--gruen-hell); color: var(--gruen); }
.meldung.fehler { background: var(--koralle-hell); color: #b4442e; }
.push-hinweis { background: var(--gruen-hell); }
.push-hinweis a { color: var(--gruen); }
.meldung.weg { opacity: 0; transform: translateY(-6px); }

/* Willkommen */
.held { max-width: 520px; margin: 6vh auto 0; text-align: center; }
.held h1 { font-size: 2.4rem; margin: .2em 0 .2em; color: var(--gruen); }
.unter { font-size: 1.1rem; color: var(--leise); }
.schritte { text-align: left; background: var(--flaeche); border-radius: var(--rund); padding: 16px 16px 16px 40px; box-shadow: var(--schatten); }
.schritte li { margin: 8px 0; }
.held-logo .logo { width: min(300px, 80vw); height: auto; }
.slogan { margin: -.4em 0 .8em; font-weight: 600; color: var(--koralle); letter-spacing: .03em; }
.form-logo { display: block; width: 130px; margin: -6px auto 0; }
.form-logo .logo { width: 100%; height: auto; }
.karte-form h1 { text-align: center; }
@keyframes wippen { 50% { transform: translateY(-8px); } }

/* Logo: Geister schweben versetzt, Bücher wippen mit */
.logo .geist, .logo .buch-l, .logo .buch-r, .logo [class^="hand"] { animation: schweben 3.2s ease-in-out infinite; }
.logo .geist-r, .logo .buch-r, .logo .hand-r { animation-delay: -1.6s; }
.logo .buch-l, .logo .buch-r, .logo [class^="hand"] { animation-name: schweben-klein; }
.logo .schatten-l, .logo .schatten-r { animation: schatten 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.logo .schatten-r { animation-delay: -1.6s; }
@keyframes schweben { 50% { transform: translateY(-5px) rotate(-1deg); } }
@keyframes schweben-klein { 50% { transform: translateY(-3px); } }
@keyframes schatten { 50% { transform: scaleX(.82); opacity: .05; } }
/* Match: die Geister tauschen die Bücher (Bogen über die Mitte) */
.match-logo { width: 220px; margin: 0 auto -10px; }
.match-logo .logo { width: 100%; height: auto; }
.match-overlay.an .match-logo .buch-l { animation: tausch-l 1.1s .35s cubic-bezier(.5,0,.3,1) forwards; }
.match-overlay.an .match-logo .buch-r { animation: tausch-r 1.1s .35s cubic-bezier(.5,0,.3,1) forwards; }
.match-overlay.an .match-logo .geist { animation: huepfen .5s 1.4s ease-out 2; }
@keyframes tausch-l { 50% { transform: translate(15px, -26px); } to { transform: translate(31px, -4px); } }
@keyframes tausch-r { 50% { transform: translate(-15px, 18px); } to { transform: translate(-31px, 4px); } }
@keyframes huepfen { 50% { transform: translateY(-8px); } }

/* Suche & Filter */
.suche { display: flex; gap: 8px; margin-bottom: 10px; }
.suche-mit-filter { flex-wrap: wrap; }
.suche input, .suche select { flex: 1; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--text);
  text-decoration: none; font-size: .88rem; font-weight: 600; transition: background .2s, color .2s; }
.chip.aktiv { background: var(--gruen); color: #fff; border-color: var(--gruen); }
.chip.mini { padding: 1px 8px; font-size: .72rem; }
.chip.rot { background: var(--koralle-hell); color: #b4442e; }

/* Cover mit farbigem Platzhalter darunter */
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: 10%; color: #fff; text-align: center; box-shadow: inset 5px 0 0 rgba(0,0,0,.12); }
.cover-titel { font-weight: 700; font-size: .95rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cover-autor { font-size: .75rem; opacity: .85; margin-top: 6px; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.cover img.da { opacity: 1; }
.h0 { background: linear-gradient(150deg, #ff8a8a, #e0606a); } .h1 { background: linear-gradient(150deg, #8b7be0, #5d4bb8); }
.h2 { background: linear-gradient(150deg, #f2b544, #d68a1c); } .h3 { background: linear-gradient(150deg, #7aa5d2, #48709e); }
.h4 { background: linear-gradient(150deg, #c76b98, #8f3f67); } .h5 { background: linear-gradient(150deg, #8fbf7f, #5a8d4b); }
.h6 { background: linear-gradient(150deg, #9b7fd1, #6a4fa3); } .h7 { background: linear-gradient(150deg, #5fb3b3, #357f80); }

/* Raster der Bücher */
/* Feste Reihenhöhe: so laufen die Bretter als Hintergrund auch hinter leeren Plätzen durch */
.regal { --platz: 140px; --buch: 116px; --luft: 18px; --brett: 14px; --schild: 14px;
  --brett-oben: calc(var(--luft) + var(--buch) * 1.5); --brett-unten: calc(var(--brett-oben) + var(--brett)); --reihe: calc(var(--brett-unten) + var(--schild));
  position: relative; display: grid; grid-template-columns: repeat(auto-fill, var(--platz)); grid-auto-rows: var(--brett-oben); row-gap: calc(var(--brett) + var(--schild)); grid-auto-flow: dense; isolation: isolate; container-type: inline-size; justify-content: space-evenly; overflow: hidden;
  border: 10px solid var(--holz); border-top-width: 14px; border-radius: 12px;
  box-shadow: inset 0 8px 14px -6px rgba(40, 20, 0, .45), inset 8px 0 12px -8px rgba(40, 20, 0, .35), inset -8px 0 12px -8px rgba(40, 20, 0, .35), 0 10px 24px rgba(70, 40, 10, .28);
  background:
    linear-gradient(to bottom, transparent var(--brett-unten), rgba(40, 20, 0, .34) var(--brett-unten), transparent calc(var(--brett-unten) + 16px)) 0 0 / 100% var(--reihe),
    linear-gradient(to bottom, transparent var(--brett-oben), var(--holz-licht) var(--brett-oben), var(--holz-licht) calc(var(--brett-oben) + 3px), var(--holz-hell) calc(var(--brett-oben) + 3px), var(--holz) var(--brett-unten), transparent var(--brett-unten)) 0 0 / 100% var(--reihe),
    repeating-linear-gradient(90deg, transparent 0 69px, rgba(90, 55, 20, .1) 69px 70px),
    linear-gradient(to bottom, var(--regal-wand), var(--regal-wand-unten) var(--brett-oben), var(--regal-wand) var(--brett-oben)) 0 0 / 100% var(--reihe); }
.platz { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: var(--luft); min-width: 0; animation: rein .45s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.wand-rosa { --wand: #f6c1d0; } .wand-himmel { --wand: #b3d8f4; }
.wand-sonne { --wand: #fbdf94; } .wand-koralle { --wand: #f5a98f; } .wand-salbei { --wand: #b9c9a3; } .wand-nacht { --wand: #2f3a66; }
.wand-pfirsich { --wand: #fcd3b0; } .wand-rubin { --wand: #a8324a; } .wand-petrol { --wand: #1f6f7a; } .wand-wald { --wand: #2f5d44; }
.wand-terrakotta { --wand: #c46a45; } .wand-senf { --wand: #d9a62e; } .wand-anthrazit { --wand: #3a3a40; }
.werbe-brett { grid-column: 1 / -1; position: relative; display: flex; align-items: flex-end; gap: 12px; height: var(--brett-oben); padding: 0 12px; }
.werbe-brett::before { content: ""; position: absolute; z-index: -1; inset: calc(var(--schild) * -1) -100vw 0; background: var(--wand); }
.werbe-brett .platz { flex: 0 0 var(--buch); }
.werbe-wand { position: absolute; z-index: -1; top: calc(var(--schild) * -1); left: 0; width: 100%; max-width: none; height: calc(100% + var(--schild)); object-fit: cover; }
.mit-wand { box-sizing: border-box; justify-self: center; width: min(100cqw, calc((var(--brett-oben) + var(--schild)) * 2)); }
.mit-wand::before { display: none; }
.werbe-karte { flex: 1; min-width: 0; align-self: flex-end; margin-bottom: 10px; }
.werbe-karte summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; cursor: pointer; list-style: none; }
.werbe-karte summary::-webkit-details-marker { display: none; }
.werbe-karte:not([open]) .werbe-marke { background: var(--flaeche); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.werbe-tipp { padding: 4px 10px; border-radius: 999px; background: var(--gruen); color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.werbe-name, .werbe-zu, .werbe-karte[open] .werbe-tipp { display: none; }
.werbe-karte[open] { position: relative; align-self: flex-end; height: calc(var(--brett-oben) - 18px); margin: 0 0 8px; border-radius: 12px; background: var(--flaeche); color: var(--text); box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.werbe-karte[open] summary { flex-wrap: nowrap; justify-content: flex-start; padding: 8px 10px; }
.werbe-karte[open] .werbe-name { display: block; flex: 1; min-width: 0; overflow: hidden; color: var(--leise); text-overflow: ellipsis; white-space: nowrap; }
.werbe-karte[open] .werbe-zu { display: inline; font-weight: 700; color: var(--leise); }
.werbe-text { position: absolute; top: 36px; right: 10px; bottom: 8px; left: 10px; display: flex; flex-direction: column; overflow: hidden; }
.werbe-text h3, .werbe-text p { display: none; }
.mit-wand .platz { position: absolute; left: calc((100% - var(--buch)) * var(--x, .04)); top: calc((100% - var(--buch) * 1.5) * var(--y, 1)); width: var(--buch); height: calc(var(--buch) * 1.5); padding-top: 0; }
.regal .mit-wand .platz:nth-child(n) .platz-knopf { transform: none; }
.mit-wand .werbe-karte { position: absolute; right: 10px; bottom: 0; width: 62%; }
.pille-links .werbe-karte { right: auto; left: 10px; }
.pille-links .werbe-karte:not([open]) summary { justify-content: flex-start; }
.werbe-editor .mit-wand { isolation: isolate; background: var(--wand); }
.werbe-editor .werbe-karte { pointer-events: none; }
#w-buch { cursor: grab; touch-action: none; }
#w-buch:has(img[hidden]) { display: none; }
.werbe-leer { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; pointer-events: none; }
.werbe-leer span { padding: 6px 14px; border-radius: 999px; background: var(--flaeche); color: var(--leise); font-weight: 600; }
.werbe-brett:has(#w-cover:not([hidden])) .werbe-leer { display: none; }
.werbe-marke { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--linie); color: var(--leise); font-size: .68rem; font-weight: 700; }
.tropes { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3px; margin: 0 0 5px; }
.werbe-text .tropes { flex: 1; min-height: 0; overflow-y: auto; }
.trope { max-width: 100%; padding: 1px 7px; overflow: hidden; border-radius: 999px; background: var(--gruen-hell); color: var(--gruen); font-size: .7rem; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.werbe-mehr { margin-top: auto; color: var(--gruen); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.farben { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 0; border: 0; }
.farben legend { margin-bottom: 8px; padding: 0; font-weight: 500; }
.farbe { position: relative; width: 44px; height: 44px; margin: 0; border-radius: 50%; background: var(--wand); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; }
.farbe input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.farbe:has(input:checked), .farbe:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--flaeche), 0 0 0 6px var(--gruen); }
.pakete { margin: 0 0 14px; padding: 0; border: 0; }
.pakete legend { margin-bottom: 8px; padding: 0; font-weight: 500; }
.werbe-eintrag { margin: 18px 0; }
.werbe-zahlen { font-size: .85rem; font-weight: 600; }
.werbe-eintrag .aktionen { display: flex; gap: 8px; margin-top: 8px; }
.werbe-eintrag > form { margin-top: 8px; }
.rang { margin: 12px 0 16px; }
.rang-kopf { display: flex; align-items: center; gap: 14px; }
.rang-held { flex: 0 0 88px; animation: schweben 3.5s ease-in-out infinite; }
.geist-bild { display: block; width: 100%; height: auto; }
.rang-text { flex: 1; min-width: 0; }
.rang-text h2 { margin: 0; }
.rang-text p { margin: 2px 0 0; }
.rang-text progress { display: block; width: 100%; height: 8px; margin-top: 8px; accent-color: var(--gruen); }
.rang-leiter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; text-align: center; font-size: .8rem; font-weight: 700; }
.rang-leiter li:not(.an) { color: var(--leise); }
.rang-leiter li:not(.an) .geist-bild { filter: grayscale(1); opacity: .35; }
.platz-knopf { display: block; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; transition: transform .2s; }
.regal .platz:nth-child(3n+1) .platz-knopf { transform: rotate(-1.2deg); transform-origin: 50% 100%; }
.regal .platz:nth-child(3n+2) .platz-knopf { transform: rotate(.9deg); transform-origin: 50% 100%; }
.regal .cover { width: var(--buch); padding: 8px 8px 8px 12px; border-radius: 2px 4px 4px 2px; box-shadow: 1px 0 0 #f7efe0, 2px 0 0 #d9cdb7, 3px 0 0 #f7efe0, 7px 2px 9px rgba(40, 20, 0, .4), 0 3px 3px -1px rgba(40, 20, 0, .45); }
.regal .cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.26), rgba(255,255,255,.2) 4%, rgba(0,0,0,.14) 8%, transparent 12%), linear-gradient(115deg, rgba(255,255,255,.16), transparent 38%); }
.regal .cover-titel { font-size: .8rem; }
.regal .cover-autor { font-size: .65rem; }
.regal .herz { top: calc(var(--luft) + 6px); right: calc((var(--platz) - var(--buch)) / 2 + 6px); justify-content: center; width: 34px; height: 34px; padding: 0; }
.regal .herz-text { display: none; }
.regal .schild { position: absolute; top: calc(var(--brett-oben) - 30px); left: calc((var(--platz) - var(--buch)) / 2 + 10px); max-width: calc(var(--buch) - 18px); padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #5a4f63; font-size: .68rem; font-weight: 600; box-shadow: 0 3px 10px rgba(0,0,0,.2); pointer-events: none; }
.schild p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schild-knoepfe { position: absolute; top: calc(var(--luft) + 6px); right: calc((var(--platz) - var(--buch)) / 2 + 6px); display: grid; grid-auto-flow: column; gap: 6px; }
.rund { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); font-size: .95rem; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.18); }

/* Buch groß: erstes Tippen vergrößert, jedes weitere dreht es um */
.buch-gross { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; align-content: center; gap: 12px; padding: 16px; background: rgba(20,14,35,.84); overscroll-behavior: contain; }
.buch-gross[hidden] { display: none; }
.buch-gross-zu { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 1.2rem; cursor: pointer; }
.buch-mehr[hidden], .mehr-infos[hidden] { display: none; }
.mehr-infos { position: absolute; inset: 0; z-index: 2; overflow-y: auto; overscroll-behavior: contain; background: var(--flaeche); color: var(--text); padding: 16px; }
.mehr-rahmen { max-width: 560px; margin: 0 auto; display: grid; gap: 4px; justify-items: start; }
.mehr-inhalt { width: 100%; }
.mehr-inhalt h2 { margin: 12px 0 2px; }
.mehr-inhalt .autor { margin: 0; color: var(--leise); }
.mehr-inhalt h3 { margin: 18px 0 4px; font-size: .78rem; color: var(--leise); text-transform: uppercase; letter-spacing: .05em; }
.mehr-inhalt p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.mehr-inhalt .text { white-space: pre-line; }
.mehr-inhalt .hashtags { color: var(--gruen); font-weight: 600; }
.mehr-inhalt dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.mehr-inhalt dt { color: var(--leise); }
.mehr-inhalt dd { margin: 0; overflow-wrap: anywhere; }
.buch-gross-tipp { margin: 0; color: #fff; opacity: .8; font-size: .85rem; }
.buch3d { width: min(84vw, 50vh, 400px); aspect-ratio: 2 / 3; perspective: 1400px; cursor: pointer; outline-offset: 6px; }
.dreh { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.8,.3,1); }
.dreh.um { transform: rotateY(180deg); }
.seite { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 4px 8px 8px 4px; box-shadow: 0 20px 50px rgba(0,0,0,.5); overflow: hidden; }
.vorn .cover { width: 100%; height: 100%; border-radius: 0; }
.vorn .cover-titel { font-size: 1.5rem; }
.vorn .cover-autor { font-size: 1rem; }
.hinten { transform: rotateY(180deg); background: var(--flaeche); color: var(--text); padding: 20px; overflow-y: auto; display: grid; align-content: start; gap: 10px; }
.hinten h2, .hinten .text, .hinten .meta, .hinten .notiz, .hinten .wer { margin: 0; }
.hinten h2 { font-size: 1.15rem; }
.hinten .text { white-space: pre-line; line-height: 1.5; font-size: .95rem; }
.hinten .notiz { display: block; }
.hinten .hashtags { margin: 0; color: var(--gruen); font-size: .88rem; font-weight: 600; }
.rueck-foto { display: block; width: calc(100% + 40px); max-width: none; margin: -20px -20px 0; height: auto; }

/* Foto zuschneiden */
.foto-vorschau { display: block; max-height: 120px; margin-top: 8px; border-radius: 4px; }
.foto-vorschau[hidden] { display: none; }
.zuschnitt { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 16px; background: #15111d; color: #fff; }
.zuschnitt[hidden] { display: none; }
.zuschnitt p { margin: 0; text-align: center; }
.zs-flaeche { position: relative; place-self: center; overflow: hidden; line-height: 0; }
#zs-bild { display: block; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); user-select: none; -webkit-user-drag: none; }
.zs-rahmen { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.6); }
.zs-rahmen i { position: absolute; width: 46px; height: 46px; touch-action: none; cursor: grab; border: 0 solid var(--koralle); }
.zs-rahmen [data-g="nw"] { top: 0; left: 0; border-width: 6px 0 0 6px; }
.zs-rahmen [data-g="ne"] { top: 0; right: 0; border-width: 6px 6px 0 0; }
.zs-rahmen [data-g="sw"] { bottom: 0; left: 0; border-width: 0 0 6px 6px; }
.zs-rahmen [data-g="se"] { bottom: 0; right: 0; border-width: 0 6px 6px 0; }
.zs-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.autor { margin: 0; color: var(--leise); font-size: .85rem; }
.meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; color: var(--leise); align-items: center; }
.zustand { background: var(--gruen-hell); color: var(--gruen); padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.zustand.ok { background: var(--gruen); color: #fff; }
.notiz { margin: 2px 0 0; font-size: .82rem; color: var(--text); opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wer { margin: 4px 0 0; font-size: .78rem; color: var(--leise); }
@keyframes rein { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* Herz-Knopf mit Pop + Partikeln */
.herz { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 4px; padding: 7px 11px 7px 9px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #8a7f74; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,.18); transition: background .25s, color .25s, transform .12s; }
.herz:active { transform: scale(.92); }
.herz-ico { display: inline-block; font-size: 1.05rem; line-height: 1; transition: transform .2s; }
.herz.an { background: #6f5bd0; color: #fff; }
.herz.an .herz-ico { color: #94d6bd; }
.herz.pop .herz-ico { animation: herzpop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes herzpop { 0% { transform: scale(.4); } 50% { transform: scale(1.6); } 100% { transform: scale(1); } }
.partikel { position: absolute; left: 18px; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--f); pointer-events: none;
  animation: spritzen .6s ease-out forwards; }
@keyframes spritzen { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* Listen (meine, Matches, Suchtreffer) */
.titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.liste { display: grid; gap: 10px; }
.zeile, .treffer-zeile { display: flex; gap: 12px; align-items: center; background: var(--flaeche); border-radius: var(--rund); padding: 10px; box-shadow: var(--schatten);
  color: var(--text); text-decoration: none; animation: rein .4s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.zeile > .cover, .treffer-zeile > .cover { width: 62px; flex: 0 0 62px; padding: 6px; }
.zeile .cover-titel, .treffer-zeile .cover-titel { font-size: .6rem; }
.zeile-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.zeile.getauscht { opacity: .65; }
.likes { color: var(--koralle); font-weight: 700; }
.treffer { display: grid; gap: 10px; margin-top: 10px; }
.treffer-zeile { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; transition: transform .15s; }
.treffer-zeile:active { transform: scale(.98); }
.waehlen { color: var(--gruen); font-weight: 700; font-size: .85rem; margin-top: 2px; }
.skelett { animation: none; pointer-events: none; }
.skelett .cover { background: var(--linie); box-shadow: none; }
.sk { display: block; height: 12px; border-radius: 6px; background: var(--linie); margin: 4px 0; position: relative; overflow: hidden; }
.sk-l { width: 80%; height: 15px; } .sk-m { width: 55%; } .sk-s { width: 30%; }
.sk::after, .skelett .cover::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: schimmer 1.2s infinite; }
@keyframes schimmer { to { transform: translateX(100%); } }
.paar { display: flex; flex: 0 0 auto; }
.paar .cover { width: 46px; padding: 4px; }
.paar .cover + .cover { margin-left: -14px; transform: rotate(6deg) translateY(4px); box-shadow: -3px 2px 8px rgba(0,0,0,.2); }
.paar .cover-titel { font-size: .5rem; }
.match-zeile.neu { box-shadow: 0 0 0 2px var(--koralle), var(--schatten); }
.neu-punkt { background: var(--koralle); color: #fff; padding: 1px 8px; border-radius: 999px; font-weight: 700; }

.leer { text-align: center; padding: 40px 16px; color: var(--leise); animation: rein .5s ease backwards; }
.leer-ico { font-size: 3rem; animation: wippen 3s ease-in-out infinite; }
.seiten { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }

/* Inserieren */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--linie); padding: 4px; border-radius: 14px; margin-bottom: 14px; }
.tab { border: 0; background: transparent; font: inherit; font-size: .85rem; font-weight: 600; padding: 9px 4px; border-radius: 10px; color: var(--leise); cursor: pointer;
  transition: background .2s, color .2s; }
.tab.aktiv { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.panel { animation: rein .3s ease backwards; margin-bottom: 16px; }
.suchform { display: grid; gap: 8px; }
.buchform { margin-top: 10px; }
.buchform.rein { animation: rein .45s cubic-bezier(.2,.8,.2,1) backwards; }
.vorschau { display: flex; justify-content: center; }
.vorschau img { width: 110px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: var(--schatten); margin-bottom: 12px; animation: rein .4s ease backwards; }

.scanner { position: relative; aspect-ratio: 4 / 3; border-radius: var(--rund); overflow: hidden; background: #1b1916; display: grid; place-items: center; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.scanner.laeuft video { opacity: 1; }
.scanner .knopf { position: relative; z-index: 2; width: auto; }
.scan-rahmen { position: absolute; left: 12%; right: 12%; top: 30%; bottom: 30%; border-radius: 14px; opacity: 0; transition: opacity .3s, transform .3s;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.85); }
.scanner.laeuft .scan-rahmen { opacity: 1; }
.scan-linie { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: var(--koralle); box-shadow: 0 0 12px 2px var(--koralle);
  animation: scannen 1.6s ease-in-out infinite alternate; }
@keyframes scannen { from { transform: translateY(-40px); } to { transform: translateY(40px); } }
.scanner.erkannt .scan-rahmen { opacity: 1; border-color: #5fd38d; transform: scale(1.04); }
.scanner.erkannt .scan-linie { animation: none; background: #5fd38d; box-shadow: 0 0 16px 4px #5fd38d; }

/* Match-Overlay: Cover fliegen zusammen, Konfetti */
.match-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 50% 35%, rgba(255,150,175,.96), rgba(111,91,208,.97)); color: #fff; opacity: 0; transition: opacity .3s; overflow: hidden; }
.match-overlay.an { opacity: 1; }
.match-inhalt { position: relative; z-index: 2; width: 100%; max-width: 380px; text-align: center; display: grid; gap: 12px; }
.match-inhalt h2 { font-size: 2.2rem; margin: 6px 0 0; transform: scale(.6); opacity: 0; }
.match-overlay.an h2 { animation: knall .6s .55s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes knall { to { transform: scale(1); opacity: 1; } }
.match-text { margin: 0; }
.match-overlay.an .match-text, .match-overlay.an .knopf { animation: rein .4s .8s ease backwards; }
.match-overlay .knopf { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.match-overlay .knopf.primaer { background: #fff; color: var(--gruen); border-color: #fff; }
.match-cover { display: flex; justify-content: center; height: 190px; }
.mc { width: 120px; }
.mc .cover { box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.mc-links { transform: translateX(-60vw) rotate(-30deg); }
.mc-rechts { transform: translateX(60vw) rotate(30deg); margin-left: -18px; }
.match-overlay.an .mc-links { animation: anflug-l .7s cubic-bezier(.2,.9,.3,1.2) forwards; }
.match-overlay.an .mc-rechts { animation: anflug-r .7s cubic-bezier(.2,.9,.3,1.2) forwards; }
@keyframes anflug-l { to { transform: translateX(0) rotate(-8deg); } }
@keyframes anflug-r { to { transform: translateX(0) rotate(8deg); } }
.konfetti i { position: absolute; top: -20px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--f);
  animation: fallen var(--d) var(--v) linear forwards; }
.konfetti i:nth-child(3n) { width: 10px; height: 10px; border-radius: 50%; }
@keyframes fallen { to { transform: translate(var(--drift), 110vh) rotate(var(--r)); } }

/* Match-Seite & Chat */
.match-kopf { text-align: center; }
.match-kopf h1 { margin: .4em 0 .1em; }
.tausch { display: flex; justify-content: center; align-items: center; gap: 10px; }
.tausch figure { margin: 0; width: 120px; }
.tausch figcaption { font-size: .8rem; color: var(--leise); margin-top: 6px; }
.tausch figcaption b { color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pfeile { font-size: 1.8rem; color: var(--koralle); animation: wippen 2.4s ease-in-out infinite; }
.match-kopf.neu .tausch figure:first-child { animation: anflug-l2 .7s cubic-bezier(.2,.9,.3,1.2) both; }
.match-kopf.neu .tausch figure:last-child { animation: anflug-r2 .7s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes anflug-l2 { from { transform: translateX(-50vw) rotate(-20deg); } }
@keyframes anflug-r2 { from { transform: translateX(50vw) rotate(20deg); } }
.kontakt { margin: 0; font-weight: 600; }
.chat { margin-top: 16px; background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); overflow: hidden; }
.verlauf { max-height: 50vh; min-height: 140px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.blase { max-width: 80%; align-self: flex-start; background: var(--grund); border-radius: 16px 16px 16px 4px; padding: 8px 12px; }
.blase.mein { align-self: flex-end; background: var(--gruen); color: #fff; border-radius: 16px 16px 4px 16px; }
.blase p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.blase time { display: block; font-size: .68rem; opacity: .65; margin-top: 2px; }
.blase.neu { animation: blase .3s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes blase { from { opacity: 0; transform: scale(.85) translateY(8px); } }
.leer-chat { text-align: center; margin: auto; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--linie); }
.chat-form textarea { resize: none; min-height: 44px; }
.chat-form .knopf { flex: 0 0 48px; }
.erledigt { margin-top: 16px; }

/* Konto */
.block { background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); margin-bottom: 12px; padding: 0 16px; }
.block summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; }
.block summary::after { content: "›"; transition: transform .2s; font-size: 1.3rem; line-height: 1; color: var(--leise); }
.block[open] summary::after { transform: rotate(90deg); }
.block[open] > :not(summary) { animation: rein .3s ease backwards; }
.block form, .block > p, .block > .knoepfe, .block > ul { margin-bottom: 14px; }
.geraete { list-style: none; padding: 0; }
.geraete li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--linie); }
.abmelden { margin-top: 20px; }

/* Admin */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kachel { background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); padding: 14px; display: grid;
  animation: rein .4s ease backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.kachel b { font-size: 1.8rem; color: var(--gruen); }
.kachel span { color: var(--leise); font-size: .85rem; }
.tabelle { overflow-x: auto; background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { color: var(--leise); font-weight: 600; font-size: .8rem; }
tr.gesperrt { opacity: .6; }
.aktionen { display: flex; gap: 6px; flex-wrap: wrap; }
.einmal code { display: inline-block; font-size: 1.4rem; padding: 10px 16px; background: var(--gruen-hell); border-radius: 12px; user-select: all; }
tr.art-login_fehler td, tr.art-login_gesperrt td { color: #c0392b; }
@media (max-width: 700px) {
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 8px 4px; border-bottom: 1px solid var(--linie); }
  td { border: 0; padding: 3px 8px; }
  td[data-l]::before { content: attr(data-l) ": "; color: var(--leise); font-size: .78rem; }
}

@media (min-width: 700px) {
  .regal { --platz: 190px; --buch: 156px; --luft: 22px; }
  .platz-knopf:hover { transform: translateY(-4px); }
  .knoepfe { grid-template-columns: 1fr 1fr; }
  .werbe-text h3 { display: block; margin: 6px 0 4px; font-size: 1.3rem; line-height: 1.2; }
  .werbe-text p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin: 0; overflow: hidden; font-size: .95rem; line-height: 1.3; }
  .trope { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
  .match-overlay .mc-links, .match-overlay .mc-rechts { transform: none; }
  .match-inhalt h2, .match-text { opacity: 1; transform: none; }
}

/* Tausch: Art, Versand, Bewertung */
.karte-block { background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); padding: 16px; margin-top: 16px; animation: rein .4s ease backwards; }
.karte-block h2 { margin: 0 0 10px; font-size: 1.1rem; }
.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.wahl-knopf { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 10px; border-radius: 14px; border: 2px solid var(--linie);
  background: var(--flaeche); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; margin: 0; transition: border-color .2s, background .2s, transform .12s; }
.wahl-knopf:active { transform: scale(.96); }
.wahl-knopf.an, .wahl-knopf:has(input:checked) { border-color: var(--gruen); background: var(--gruen-hell); color: var(--gruen); }
.wahl-knopf input { position: absolute; opacity: 0; pointer-events: none; }
/* Sterne: umgekehrte Reihenfolge, damit ~ alle Sterne bis zum gewählten färbt */
.sterne-wahl { display: flex; flex-direction: row-reverse; justify-content: center; gap: 2px; margin-bottom: 10px; }
.sterne-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.sterne-wahl label { margin: 0; padding: 0 4px; font-size: 2.8rem; line-height: 1.1; color: var(--linie); cursor: pointer; transition: color .15s, transform .12s; }
.sterne-wahl label:active { transform: scale(.85); }
.sterne-wahl input:checked ~ label { color: var(--gold); }
.sterne-wahl input:focus-visible + label { outline: 2px solid var(--gruen); border-radius: 8px; }
@media (hover: hover) { .sterne-wahl label:hover, .sterne-wahl label:hover ~ label { color: var(--gold); } }
.sterne-fertig { color: var(--gold); letter-spacing: 1px; }
.versand { display: grid; gap: 12px; }
.paket { border-top: 1px solid var(--linie); padding-top: 12px; }
.paket h3 { font-size: .95rem; margin-bottom: 6px; }
.paket p { margin: 4px 0; }
.adresse { white-space: pre-line; background: var(--gruen-hell); border-radius: 12px; padding: 10px 12px; }
.status { font-weight: 600; color: var(--gruen); }
.sendung { display: grid; gap: 8px; margin-top: 8px; }
.label-kauf { margin-top: 10px; }
.label-kauf summary { cursor: pointer; font-weight: 600; color: var(--gruen); }
.bilanz { margin: -.4em 0 .8em; color: var(--leise); font-weight: 600; }
.km { margin: 2px 0 0; font-size: .78rem; font-weight: 600; color: var(--gruen); }
fieldset.naehe { border: 1px solid var(--linie); border-radius: 14px; padding: 10px 12px 2px; margin: 0 0 12px; }
fieldset.naehe legend { font-weight: 700; font-size: .92rem; padding: 0 4px; }
label.schalter { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.schalter input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--gruen); }
.fuss { text-align: center; font-size: .85rem; margin-top: 18px; }
.lizenzen li { margin-bottom: 8px; }
@media (min-width: 700px) { .versand { grid-template-columns: 1fr 1fr; } .paket { border-top: 0; padding-top: 0; } .sendung { grid-template-columns: 1fr 1.4fr auto; } }

/* Zustand beim Inserieren: der minzgrüne Geist begutachtet das Buch */
fieldset.zustand-wahl { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset.zustand-wahl legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .92rem; }
.sprechblasen { display: grid; max-width: 360px; margin: 0 auto; }
.sprechblase { grid-area: 1 / 1; position: relative; visibility: hidden; margin: 0 0 12px; padding: 10px 14px; border: 2px solid var(--linie); border-radius: 16px; background: var(--flaeche); line-height: 1.35; font-size: .95rem; }
.sprechblase::after { content: ""; position: absolute; left: 30%; bottom: -9px; width: 14px; height: 14px; background: var(--flaeche); border: solid var(--linie); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.z-frage, .zustand-wahl:has(#z1:checked) #z-text-1, .zustand-wahl:has(#z2:checked) #z-text-2, .zustand-wahl:has(#z3:checked) #z-text-3, .zustand-wahl:has(#z4:checked) #z-text-4 { visibility: visible; animation: blase-rein .28s cubic-bezier(.2,1.5,.4,1); }
.zustand-wahl:has(input:checked) .z-frage { visibility: hidden; }
@keyframes blase-rein { from { transform: scale(.85); opacity: 0; } }
.gutachter { display: block; width: min(260px, 100%); margin: 0 auto 10px; }
.lupe { animation: lupe 3.2s ease-in-out infinite; }
@keyframes lupe { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-6px, -14px); } 60% { transform: translate(6px, 12px); } 80% { transform: translate(-4px, 4px); } }
.zustand-wahl .wahl-knopf { position: relative; }
.zustand-wahl .wahl-knopf:has(input:focus-visible) { outline: 3px solid var(--gruen); outline-offset: 2px; }
.suche-genre { flex: 1 0 100%; display: flex; align-items: center; gap: 8px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .lupe, .sprechblase { animation: none !important; } }
.warnung-rein { animation: rein .6s ease backwards .15s; }
.bio { white-space: pre-line; overflow-wrap: anywhere; margin: -.3em 0 .6em; }
.profil-foto { display: inline-block; width: 1.5em; height: 1.5em; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; }
.kopf-konto .profil-foto { width: 40px; height: 40px; margin: 0; }
.profil-foto.gross { display: block; width: 96px; height: 96px; margin: 4px 0; box-shadow: 0 0 0 3px var(--gruen-hell); }
.profil-kopf { display: flex; align-items: center; gap: 14px; }
.profil-kopf h1 { margin: 0; }
.pakete select { display: block; width: 100%; margin-bottom: 6px; }
/* Startseite für Besucher */
.held-titel { margin: .2em 0 .3em; font-size: 1.5rem; }
.start-abschnitt { max-width: 640px; margin: 40px auto 0; }
.start-abschnitt h2 { text-align: center; font-size: 1.4rem; margin-bottom: 14px; }
.vorteile { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.vorteile li { background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); padding: 14px 16px; line-height: 1.4; }
.vorteile span { font-size: 1.5rem; display: block; }
.vorteile b { display: block; margin-bottom: 2px; }
.start-verlage { text-align: center; }
.held-ende { margin: 48px auto 24px; }
.seitenfuss { margin: 40px 0 16px; text-align: center; font-size: .8rem; color: var(--leise); }
.seitenfuss a { color: inherit; }
.recht { max-width: 720px; margin: 0 auto; line-height: 1.55; }
.recht h2 { font-size: 1.15rem; margin-top: 1.6em; }
.recht h3 { font-size: 1rem; margin-top: 1.2em; }
.fehlt { background: #fff3c4; color: #6b4f00; padding: 0 4px; border-radius: 4px; }
.zeilen { white-space: pre-line; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.warteliste { margin-top: 18px; text-align: left; }
.warteliste h2 { text-align: center; }
.zentriert { text-align: center; }
