/* ═══════════════════════════════════════════════════════════════════════════
   Ich lese — Stylesheet (heller Galerie-Stil)

   Vorbild ist eine Buchhandlungs-Seite: fast weisse Wand, schwebende Bretter
   mit weichem Schatten, Buecher als Objekte davor, fette schwarze Schrift und
   ein einziger warmer Akzent. Die App ist damit nicht mehr dunkel — sie ist
   eine Wand, an der die Buecher haengen.

   Grundsaetze:
   • Flaechen grenzen sich ueber SCHATTEN ab, nicht ueber Rahmenlinien. Rahmen
     gibt es nur dort, wo ein Element anfassbar sein soll (Eingaben, Knoepfe).
   • Ueberschriften sind gross, schwarz und eng gesetzt. Zwischentitel sind
     klein, versal und grau. Dazwischen liegt viel Luft.
   • Es gibt genau EINEN Akzent. Er markiert das Aktive und die eigene Spur im
     Seitenstrom, sonst nichts.

   Die Diagrammfarben (--serie-1..5) sind die HELL gestufte Kategorialpalette
   aus der dataviz-Richtlinie, geprueft gegen die weisse Kartenflaeche:
   Helligkeitsband, Chroma, CVD-Abstand und Normalsicht-Abstand bestanden.
   Drei Toene liegen unter 3:1 Kontrast zur Flaeche — erlaubt, WEIL jede
   Kategorie ihren Namen und ihre Zahl als Text daneben traegt. Wer diese
   Beschriftungen entfernt, macht die Diagramme unlesbar; wer einen Ton
   austauscht, muss die Pruefung erneut laufen lassen.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:         #efeeea;
  --bg-hell:    #fbfaf8;
  --surface:    #ffffff;
  --surface2:   #f5f4f1;
  --surface3:   #e9e7e2;
  --border:     rgba(18, 17, 16, .09);
  --border-stark: rgba(18, 17, 16, .18);
  --text:       #121110;
  --text2:      #656159;
  --text3:      #9a958c;
  --accent:     #e0452a;
  --accent2:    #f58220;
  --accent-weich: rgba(224, 69, 42, .09);
  --gold:       #d99414;
  --gruen:      #1baf7a;
  --rot:        #d93025;

  /* Kategorial-Palette fuer Diagramme (geprueft, siehe Kopfkommentar) */
  --serie-1: #2a78d6;
  --serie-2: #eb6834;
  --serie-3: #1baf7a;
  --serie-4: #eda100;
  --serie-5: #e87ba4;
  --serie-rest: #9a958c;

  --schatten-xs: 0 1px 2px rgba(18, 17, 16, .06);
  --schatten-s:  0 2px 8px rgba(18, 17, 16, .06);
  --schatten-m:  0 6px 24px -6px rgba(18, 17, 16, .14), 0 2px 6px rgba(18, 17, 16, .04);
  --schatten-l:  0 18px 44px -14px rgba(18, 17, 16, .26);

  --radius:    18px;
  --radius-sm: 11px;
  --radius-xs: 7px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  /* Die Wand: in der Mitte heller, zu den Raendern hin leicht abfallend. */
  background: radial-gradient(ellipse 120% 80% at 50% 0%, var(--bg-hell) 0%, var(--bg) 70%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Login (derzeit abgeschaltet, Stil bleibt gepflegt) ───────────────────── */
#screen-login {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 2rem; text-align: center;
}
.login-hero { font-size: 3.4rem; margin-bottom: 1.2rem; }
.login-title {
  font-size: 3rem; font-weight: 800; letter-spacing: -.035em;
  margin-bottom: .6rem; color: var(--text);
}
.login-sub { color: var(--text2); margin-bottom: 2.5rem; max-width: 380px; line-height: 1.65; }
.btn-google {
  background: var(--text); color: #fff; border: none; border-radius: 999px;
  padding: .95rem 2rem; font-size: .95rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: .7rem; box-shadow: var(--schatten-m);
  transition: transform .15s;
}
.btn-google:hover { transform: translateY(-2px); }

/* ── Grundgeruest ─────────────────────────────────────────────────────────── */
#screen-app { display: none; }
.header {
  background: rgba(251, 250, 248, .82); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.1rem; display: flex; align-items: center; gap: .7rem;
  position: sticky; top: 0; z-index: 60;
}
.header-logo { font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; }
.header-logo span { color: var(--accent); }
.header-user { margin-left: auto; display: flex; align-items: center; gap: .45rem; }
.home-link { text-decoration: none; font-size: 1.05rem; opacity: .55; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; display: none; }
.btn-sm {
  background: var(--surface); border: 1px solid var(--border); color: var(--text2);
  border-radius: 999px; padding: .35rem .8rem; font-size: .75rem; cursor: pointer;
  font-weight: 600; box-shadow: var(--schatten-xs);
}
.btn-sm:hover { border-color: var(--border-stark); color: var(--text); }

.main { max-width: 880px; margin: 0 auto; padding: 1.6rem 1.1rem 7rem; }
.seite { display: none; }
.seite.aktiv { display: block; animation: auf .3s cubic-bezier(.2,.8,.2,1); }
@keyframes auf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h2.abschnitt {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--text3); font-weight: 700; margin: 2.2rem 0 .85rem;
}
h2.abschnitt:first-child { margin-top: 0; }

/* ── Untere Navigation ────────────────────────────────────────────────────── */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: rgba(251, 250, 248, .9); backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--border);
  display: flex; padding: .4rem .25rem calc(.4rem + env(safe-area-inset-bottom));
}
.nav-btn {
  flex: 1; background: none; border: none; cursor: pointer;
  color: var(--text3); padding: .45rem .2rem; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; gap: .22rem;
  font-size: .62rem; font-weight: 600; letter-spacing: .01em; transition: color .15s;
  position: relative;
}
.nav-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn.aktiv { color: var(--accent); }
.nav-zahl {
  position: absolute; top: 2px; left: 50%; margin-left: 4px;
  background: var(--accent); color: #fff; font-size: .55rem; font-weight: 700;
  min-width: 15px; height: 15px; border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Karten ───────────────────────────────────────────────────────────────── */
.karte {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem;
  box-shadow: var(--schatten-s);
}
.karte + .karte { margin-top: .8rem; }

/* ── Kennzahlen ───────────────────────────────────────────────────────────── */
.kennzahlen { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
@media (min-width: 620px) { .kennzahlen { grid-template-columns: repeat(4, 1fr); } }
.kennzahl {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .95rem;
  box-shadow: var(--schatten-xs);
}
.kennzahl-wert { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.kennzahl-label { font-size: .63rem; color: var(--text3); text-transform: uppercase; letter-spacing: .1em; margin-top: .42rem; font-weight: 700; }
.kennzahl-zusatz { font-size: .7rem; color: var(--text2); margin-top: .25rem; }

/* ── Cover ────────────────────────────────────────────────────────────────── */
.cover {
  width: 100%; aspect-ratio: 2 / 3; border-radius: 3px 5px 5px 3px;
  overflow: hidden; position: relative; display: block;
  background: var(--surface2);
  /* Ein Buch steht vor der Wand: Schatten nach unten, Kante nach links. */
  box-shadow: 0 10px 22px -8px rgba(18,17,16,.34), 0 2px 5px rgba(18,17,16,.1);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Buchruecken-Kante links */
.cover::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.02));
  z-index: 2; pointer-events: none;
}

/* ── Regal (Bibliothek) ───────────────────────────────────────────────────── */
.regal { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 1rem .85rem; }
.regal.gross { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.regal-buch { cursor: pointer; text-align: left; background: none; border: none; padding: 0; color: inherit; }
.regal-buch:hover .cover { transform: translateY(-5px); box-shadow: var(--schatten-l); }
.cover-titel { font-size: .74rem; font-weight: 700; margin-top: .55rem; line-height: 1.3;
  letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cover-autor { font-size: .66rem; color: var(--text3); margin-top: .12rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-sterne { font-size: .62rem; color: var(--gold); letter-spacing: .5px; margin-top: .15rem; }
.cover-status {
  position: absolute; top: 6px; right: 6px; font-size: .56rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.94);
  color: var(--text); z-index: 3; box-shadow: var(--schatten-xs);
}

/* ── Buchliste ────────────────────────────────────────────────────────────── */
.liste-buch {
  display: flex; gap: .9rem; padding: .8rem; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; color: inherit; align-items: flex-start;
  box-shadow: var(--schatten-xs); transition: box-shadow .18s, transform .18s;
}
.liste-buch + .liste-buch { margin-top: .55rem; }
.liste-buch:hover { box-shadow: var(--schatten-m); transform: translateY(-1px); }
.liste-cover { width: 44px; flex-shrink: 0; }
.liste-haupt { flex: 1; min-width: 0; }
.liste-titel { font-weight: 700; font-size: .92rem; line-height: 1.3; letter-spacing: -.015em; }
.liste-meta { font-size: .74rem; color: var(--text2); margin-top: .18rem; }
.liste-zeile { display: flex; gap: .4rem; align-items: center; margin-top: .4rem; flex-wrap: wrap; }

/* ── Marken / Etiketten ───────────────────────────────────────────────────── */
.marke {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .64rem; font-weight: 700; background: var(--surface2); color: var(--text2);
  border: 1px solid var(--border);
}
.marke.akzent { background: var(--accent-weich); color: var(--accent); border-color: rgba(224,69,42,.22); }
.marke.gruen  { background: rgba(27,175,122,.1); color: #0d7d55; border-color: rgba(27,175,122,.25); }
.marke.blau   { background: rgba(42,120,214,.1); color: #1f5fa9; border-color: rgba(42,120,214,.25); }
.marke.gold   { background: rgba(217,148,20,.12); color: #9a6a0b; border-color: rgba(217,148,20,.28); }
.marke.grau   { background: var(--surface2); color: var(--text3); }
.sterne { color: var(--gold); font-size: .8rem; letter-spacing: 1px; }

/* ── Knoepfe ──────────────────────────────────────────────────────────────── */
.btn {
  background: var(--text); color: #fff; border: none; border-radius: 999px;
  padding: .68rem 1.3rem; font-size: .84rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
  box-shadow: var(--schatten-s); transition: transform .15s, background .15s;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: default; transform: none; background: var(--text); }
.btn-rand {
  background: var(--surface); border: 1px solid var(--border-stark); color: var(--text);
  border-radius: 999px; padding: .6rem 1.15rem; font-size: .82rem;
  cursor: pointer; font-weight: 600;
}
.btn-rand:hover { border-color: var(--accent); color: var(--accent); }
.btn-gefahr { background: #fff; border-color: rgba(217,48,37,.3); color: var(--rot); }
.btn-gefahr:hover { background: rgba(217,48,37,.06); border-color: var(--rot); color: var(--rot); }
.fab {
  position: fixed; right: 1.1rem; bottom: calc(4.8rem + env(safe-area-inset-bottom)); z-index: 65;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  font-size: 1.8rem; font-weight: 300; line-height: 1;
  box-shadow: 0 10px 28px -6px rgba(224,69,42,.55);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.fab:hover { transform: scale(1.05); }

/* ── Filterleiste ─────────────────────────────────────────────────────────── */
.filterzeile { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
.filterzeile::-webkit-scrollbar { display: none; }
.filter-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text2);
  border-radius: 999px; padding: .4rem .9rem; font-size: .74rem; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; font-weight: 600; box-shadow: var(--schatten-xs);
}
.filter-btn.aktiv { background: var(--text); border-color: var(--text); color: #fff; }

/* ── Formulare ────────────────────────────────────────────────────────────── */
.feld { margin-bottom: .95rem; }
.feld label {
  display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text3); margin-bottom: .35rem; font-weight: 700;
}
input, select, textarea {
  width: 100%; background: var(--surface2); border: 1px solid transparent; color: var(--text);
  border-radius: var(--radius-sm); padding: .7rem .8rem; font-size: .9rem;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weich);
}
textarea { resize: vertical; min-height: 64px; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.wahl { display: flex; gap: .35rem; flex-wrap: wrap; }
.wahl-btn {
  background: var(--surface2); border: 1px solid transparent; color: var(--text2);
  border-radius: 999px; padding: .4rem .85rem; font-size: .76rem; cursor: pointer; font-weight: 600;
}
.wahl-btn.aktiv { background: var(--text); border-color: var(--text); color: #fff; }
/* Halbe Sterne: ein leerer Stern als Grund, darueber derselbe Stern in Gold,
   auf 0, 50 oder 100 Prozent Breite beschnitten. Kein Sonderzeichen fuer den
   halben Stern — das sieht je nach Schrift anders aus. */
.stern-wahl { display: flex; gap: .3rem; }
.stern-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 1.9rem; line-height: 1; position: relative; width: 1.15em; height: 1.05em;
}
.stern-leer, .stern-voll {
  position: absolute; left: 0; top: 0; overflow: hidden;
  white-space: nowrap; pointer-events: none;
}
.stern-leer { color: var(--surface3); width: 100%; }
.stern-voll { color: var(--gold); }

/* ── Dialog ───────────────────────────────────────────────────────────────── */
.dialog-hg {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(18, 17, 16, .32); backdrop-filter: blur(4px);
  align-items: flex-end; justify-content: center;
}
.dialog-hg.offen { display: flex; }
@media (min-width: 640px) { .dialog-hg { align-items: center; } }
.dialog {
  background: var(--bg-hell); border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; max-width: 560px; max-height: 92vh;
  display: flex; flex-direction: column; box-shadow: var(--schatten-l);
  animation: hoch .24s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 640px) { .dialog { border-radius: var(--radius); } }
@keyframes hoch { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.dialog-kopf {
  display: flex; align-items: center; gap: .6rem; padding: 1.05rem 1.1rem;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.dialog-titel { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.dialog-zu { margin-left: auto; background: none; border: none; color: var(--text3); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 0 .3rem; }
.dialog-zu:hover { color: var(--text); }
.dialog-koerper { padding: 1.1rem; overflow-y: auto; flex: 1; }
.dialog-fuss { padding: .9rem 1.1rem calc(.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: flex; gap: .55rem; flex-shrink: 0; }
.dialog-fuss .btn, .dialog-fuss .btn-rand { flex: 1; justify-content: center; }

/* ── Leerzustand / Ladezustand ────────────────────────────────────────────── */
.leer { text-align: center; padding: 2.8rem 1rem; color: var(--text2); }
.leer-symbol { font-size: 2.4rem; margin-bottom: .7rem; opacity: .4; }
.leer h3 { font-size: 1.05rem; color: var(--text); margin-bottom: .4rem; letter-spacing: -.02em; }
.leer p { font-size: .86rem; line-height: 1.6; max-width: 340px; margin: 0 auto 1rem; }
.laden { text-align: center; padding: 2rem; color: var(--text3); font-size: .85rem; }
.spinner {
  width: 22px; height: 22px; border: 2px solid var(--surface3); border-top-color: var(--accent);
  border-radius: 50%; animation: dreh .7s linear infinite; margin: 0 auto .6rem;
}
@keyframes dreh { to { transform: rotate(360deg); } }

/* ══ Cover-Regal: Buecher auf schwebenden Brettern ══════════════════════════
   Das Bild, das die App tragen soll. Die Buecher stehen in Lesereihenfolge
   nebeneinander, und wenn ein Brett voll ist, geht es auf dem naechsten
   weiter. KEINE Monatsgruppen, keine Daten — die Reihenfolge erzaehlt die
   Geschichte, nicht der Kalender.

   Wie viele Buecher auf ein Brett passen, rechnet zeitstrahl.js aus der
   verfuegbaren Breite aus. Das muss es tun: ein umgebrochenes Flex-Layout
   weiss selbst nicht, wo eine Zeile endet, und die Planke laege dann nur
   unter der letzten. */

.regalwand { padding-top: .2rem; }
.zs-regal { position: relative; }

/* Die Buecher stehen DIREKT auf dem Brett — darum kein Abstand nach unten und
   keine Bildunterschrift dazwischen. Der Titel steht ohnehin auf dem Umschlag;
   eine Zeile darunter haette die Buecher auf ihrer eigenen Beschriftung
   stehen lassen, und genau das nahm dem Bild die Ruhe. */
.zs-buecher {
  display: flex; gap: 1.15rem; align-items: flex-end;
  padding: 0 1rem;
}

/* Das Brett: weisse Platte mit sichtbarer Vorderkante und einem Schatten, der
   sie von der Wand abhebt. */
.zs-planke {
  height: 9px; border-radius: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfcfa 58%, #dedbd4 100%);
  box-shadow: 0 14px 22px -10px rgba(18,17,16,.3),
              0 2px 3px rgba(18,17,16,.07),
              0 1px 0 rgba(255,255,255,.95) inset;
  margin-bottom: 1.6rem;
}
.zs-regal:last-child .zs-planke { margin-bottom: .3rem; }

.zs-buch {
  width: 84px; background: none; border: none; padding: 0; cursor: pointer;
  color: inherit; display: block; flex-shrink: 0;
}
.zs-buch:hover .cover { transform: translateY(-7px); box-shadow: var(--schatten-l); }

/* Der Farbstreifen sagt das Genre. Er haengt nie allein: die Legende unter dem
   Regal nennt jedes Genre samt Zahl. */
.zs-genre { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; display: block; z-index: 3; }

/* Bewertung als kleines Schild auf dem Umschlag, damit sie im Ueberblick
   sichtbar bleibt, ohne eine Textzeile unter das Buch zu zwingen. Rechts UND
   ein Stueck hoch: auf den erzeugten Umschlaegen laeuft der Autorenname unten
   quer durch. */
.zs-note {
  position: absolute; right: 6px; bottom: 21px; z-index: 4;
  background: rgba(255,255,255,.94); color: var(--gold);
  font-size: .56rem; letter-spacing: .5px; font-weight: 700;
  padding: 2px 5px; border-radius: 999px; box-shadow: var(--schatten-xs);
}

/* ── Cover-Wahl im Formular ───────────────────────────────────────────────── */
.cover-wahl { display: flex; gap: .8rem; align-items: flex-start; }
.cover-knoepfe { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.cover-knoepfe .btn-rand { padding: .45rem .8rem; font-size: .76rem; text-align: center; }

/* ── Diagramme ────────────────────────────────────────────────────────────── */
.diagramm-kopf { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; flex-wrap: wrap; }
.diagramm-titel { font-size: .95rem; font-weight: 700; letter-spacing: -.02em; }
.diagramm-hinweis { font-size: .68rem; color: var(--text3); margin-left: auto; }
.stapel { display: flex; height: 26px; border-radius: var(--radius-xs); overflow: hidden; gap: 2px; }
.stapel-teil { height: 100%; transition: opacity .15s; }
.stapel-teil:hover { opacity: .78; }
.legende { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .85rem; align-items: center; }
.legende-eintrag { display: flex; align-items: center; gap: .38rem; font-size: .72rem; color: var(--text2); }
.legende-punkt { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legende-wert { color: var(--text); font-weight: 700; }

.balken-zeile { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; }
.balken-label { font-size: .72rem; color: var(--gold); width: 56px; flex-shrink: 0; text-align: right; }
.balken-spur { flex: 1; height: 16px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.balken-fuell { height: 100%; border-radius: 4px; background: var(--serie-1); min-width: 2px; }
.balken-wert { font-size: .72rem; color: var(--text); width: 22px; font-weight: 700; }

/* ── Hoehepunkte ──────────────────────────────────────────────────────────── */
.hoehepunkt { display: flex; align-items: center; gap: .85rem; padding: .7rem 0; }
.hoehepunkt + .hoehepunkt { border-top: 1px solid var(--border); }
.hoehepunkt-symbol { font-size: 1.3rem; width: 28px; text-align: center; flex-shrink: 0; }
.hoehepunkt-text { flex: 1; min-width: 0; }
.hoehepunkt-label { font-size: .62rem; color: var(--text3); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.hoehepunkt-wert { font-size: .88rem; font-weight: 700; margin-top: .12rem; letter-spacing: -.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Empfehlungen ─────────────────────────────────────────────────────────── */
.empfehlung {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.05rem; box-shadow: var(--schatten-xs);
}
.empfehlung + .empfehlung { margin-top: .65rem; }
.empfehlung-kopf { display: flex; gap: .85rem; align-items: flex-start; }
.empfehlung-titel { font-weight: 800; font-size: 1rem; line-height: 1.28; letter-spacing: -.025em; }
.empfehlung-autor { font-size: .78rem; color: var(--text2); margin-top: .12rem; }
.empfehlung-grund { font-size: .84rem; color: var(--text2); line-height: 1.6; margin-top: .7rem; }
.empfehlung-weil { font-size: .76rem; color: var(--accent); margin-top: .45rem; font-weight: 600; }
.empfehlung-fuss { display: flex; gap: .45rem; margin-top: .85rem; flex-wrap: wrap; }

/* ── Scanner ──────────────────────────────────────────────────────────────── */
.scanner-hg { display: none; position: fixed; inset: 0; z-index: 120; background: #000; flex-direction: column; }
.scanner-hg.offen { display: flex; }
#scanner-video { width: 100%; flex: 1; object-fit: cover; }
.scanner-rahmen {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78%; max-width: 330px; height: 150px;
  border: 2px solid var(--accent); border-radius: 12px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.6);
}
.scanner-text {
  position: absolute; bottom: 5.5rem; left: 0; right: 0; text-align: center;
  color: #fff; font-size: .85rem; padding: 0 2rem; text-shadow: 0 1px 4px #000;
}
.scanner-fuss { position: absolute; bottom: 1.2rem; left: 0; right: 0; display: flex; justify-content: center; }

/* ── Meldung ──────────────────────────────────────────────────────────────── */
#meldung {
  position: fixed; left: 50%; bottom: calc(5.6rem + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(14px); z-index: 130;
  background: var(--text); color: #fff;
  padding: .7rem 1.2rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: 90vw; text-align: center; box-shadow: var(--schatten-m);
}
#meldung.zeigen { opacity: 1; transform: translateX(-50%) translateY(0); }
#meldung.fehler { background: var(--rot); }

.hinweis {
  background: rgba(237, 161, 0, .1); border: 1px solid rgba(237, 161, 0, .3);
  color: #7d5600; border-radius: var(--radius-sm); padding: .7rem .85rem;
  font-size: .78rem; line-height: 1.55; margin-bottom: .85rem;
}
.hinweis code { background: rgba(0,0,0,.06); padding: 1px 4px; border-radius: 3px; }

.quelle-marke { font-size: .66rem; color: var(--text3); margin-top: .3rem; line-height: 1.5; }
.trenner { height: 1px; background: var(--border); margin: 1.1rem 0; }
.zitat {
  border-left: 3px solid var(--accent); padding-left: .85rem; font-style: italic;
  color: var(--text2); font-size: .86rem; line-height: 1.65;
}
