/* Lichtkraft — Stylesheet
   Dunkler Grund, goldenes Licht. Mobile first. */

/* ---------- Schriften ---------- */
@font-face {
  font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/cinzel-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/cinzel-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB;
}
@font-face {
  font-family: 'Quicksand'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/quicksand-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Quicksand'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/quicksand-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB;
}

/* ---------- Grundwerte ---------- */
:root {
  --grund:        #0b0b14;
  --grund-hoch:   #14141f;
  --karte:        #191926;
  --karte-hoch:   #20202f;
  --rand:         #2a2a3d;
  --text:         #e8e6f0;
  --text-leise:   #9a97ad;
  --text-sehr-leise: #6a6880;
  --gold:         #e8a33d;
  --gold-hell:    #f5c76e;
  --gold-tief:    #9d6b1f;
  --violett:      #a87ad9;
  --blau:         #5fa8d3;
  --gruen:        #5fc9a8;
  --rot:          #d9564f;

  --radius:   14px;
  --radius-s: 9px;
  --tabbar:   64px;

  --oben:  env(safe-area-inset-top, 0px);
  --unten: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { background: var(--grund); }

body {
  margin: 0;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(232,163,61,.10), transparent 62%),
    radial-gradient(700px 400px at 12% 104%, rgba(168,122,217,.08), transparent 60%),
    var(--grund);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .zier {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0;
}

button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; }

/* ---------- Gerüst ---------- */
.huelle {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--oben) + 14px) 16px calc(var(--tabbar) + var(--unten) + 28px);
}

.seite { display: none; animation: auf .32s ease; }
.seite.aktiv { display: block; }

@keyframes auf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.kopf {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.kopf h1 { font-size: 20px; color: var(--gold-hell); }
.kopf .unter { font-size: 12px; color: var(--text-sehr-leise); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Karten ---------- */
.karte {
  background: linear-gradient(170deg, var(--karte-hoch), var(--karte));
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.karte.schmal { padding: 13px 14px; }

.karte-titel {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-sehr-leise);
  margin-bottom: 12px;
}

/* ---------- Avatar-Bühne ---------- */
.buehne {
  position: relative;
  background:
    radial-gradient(400px 300px at 50% 38%, rgba(232,163,61,.14), transparent 68%),
    linear-gradient(175deg, #191927, #10101a);
  border: 1px solid var(--rand);
  border-radius: 20px;
  padding: 18px 16px 20px;
  margin-bottom: 14px;
  overflow: hidden;
}
.buehne::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.avatar-svg { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; }
.avatar-svg .gestalt { animation: atmen 5.5s ease-in-out infinite; transform-origin: 120px 190px; }
.avatar-svg .herz    { animation: puls 3.4s ease-in-out infinite; transform-origin: 120px 146px; }
.avatar-svg .ring-a  { animation: dreh 34s linear infinite; transform-origin: 120px 150px; }
.avatar-svg .ring-b  { animation: dreh 52s linear infinite reverse; transform-origin: 120px 150px; }
.avatar-svg .punkte  { animation: dreh 26s linear infinite; transform-origin: 120px 150px; }
.avatar-svg .punkt   { animation: funkeln 3.6s ease-in-out infinite; }
.avatar-svg .kranz   { animation: dreh 70s linear infinite; transform-origin: 120px 150px; }
.avatar-svg .fluegel { animation: schwingen 6.5s ease-in-out infinite; transform-origin: 120px 130px; }
.avatar-svg .schein  { animation: puls 4.2s ease-in-out infinite; transform-origin: 120px 46px; }

@keyframes atmen    { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.012); } }
@keyframes puls     { 0%,100% { opacity: .72; transform: scale(1); } 50% { opacity: 1; transform: scale(1.14); } }
@keyframes dreh     { to { transform: rotate(360deg); } }
@keyframes funkeln  { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes schwingen{ 0%,100% { transform: scaleX(1) scaleY(1); } 50% { transform: scaleX(1.035) scaleY(.985); } }

@media (prefers-reduced-motion: reduce) {
  .avatar-svg * { animation: none !important; }
  .seite { animation: none; }
}

/* ---------- Datenblatt ---------- */
.rang-zeile {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 4px;
}
.rang-ziffer {
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .1em;
  border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; opacity: .75;
}
.rang-name { font-family: 'Cinzel', serif; font-size: 19px; letter-spacing: .05em; }

.stufe-zeile { text-align: center; margin-top: 3px; }
.stufe-zeile b { font-size: 31px; font-family: 'Cinzel', serif; color: var(--gold-hell); line-height: 1; }
.stufe-zeile span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-sehr-leise); display: block; }

.rang-text {
  text-align: center; font-size: 13px; color: var(--text-leise);
  font-style: italic; margin: 10px 4px 0; line-height: 1.5;
}

.xp-leiste {
  height: 7px; background: #0d0d16; border-radius: 99px; overflow: hidden;
  margin: 14px 0 6px; border: 1px solid var(--rand);
}
.xp-fuellung {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-tief), var(--gold), var(--gold-hell));
  border-radius: 99px;
  transition: width .7s cubic-bezier(.2,.8,.3,1);
  box-shadow: 0 0 12px rgba(232,163,61,.5);
}
.xp-text { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-sehr-leise); }

/* ---------- Kennzahlen ---------- */
.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.zahl {
  background: var(--grund-hoch); border: 1px solid var(--rand);
  border-radius: var(--radius-s); padding: 10px 6px; text-align: center;
}
.zahl b { display: block; font-size: 19px; font-family: 'Cinzel', serif; color: var(--gold-hell); line-height: 1.2; }
.zahl span { font-size: 10px; color: var(--text-sehr-leise); letter-spacing: .04em; }

/* ---------- Netzdiagramm ---------- */
.netz-svg { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; color: var(--text); }
.netz-label { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: .08em; }
.netz-wert  { font-size: 11px; fill: #9a97ad; font-family: 'Quicksand', sans-serif; font-weight: 600; }

.stat-liste { margin-top: 10px; display: grid; gap: 7px; }
.stat-reihe { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 9px; font-size: 12px; }
.stat-reihe .balken { height: 5px; background: #0d0d16; border-radius: 99px; overflow: hidden; }
.stat-reihe .balken i { display: block; height: 100%; border-radius: 99px; transition: width .6s ease; }
.stat-reihe .wert { text-align: right; font-weight: 600; color: var(--text-leise); }

/* ---------- Tagesquest ---------- */
.quest { border-color: rgba(232,163,61,.35); }
.quest.erfuellt { border-color: rgba(95,201,168,.45); background: linear-gradient(170deg, #1a2420, var(--karte)); }

.quest-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.quest-kopf .titel { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.quest-kopf .stand { font-size: 11px; color: var(--text-sehr-leise); }

.quest-liste { display: grid; gap: 7px; }
.quest-punkt {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: var(--grund-hoch); border: 1px solid var(--rand);
  border-radius: var(--radius-s); padding: 10px 12px;
  transition: border-color .2s, background .2s;
}
.quest-punkt:active { background: var(--karte-hoch); }
.quest-punkt .kasten {
  flex: 0 0 20px; height: 20px; border: 1.5px solid var(--rand); border-radius: 5px;
  display: grid; place-items: center; font-size: 12px; color: transparent; transition: .2s;
}
.quest-punkt.an { border-color: rgba(95,201,168,.5); }
.quest-punkt.an .kasten { background: var(--gruen); border-color: var(--gruen); color: #0b0b14; }
.quest-punkt.an .bez { color: var(--text-sehr-leise); text-decoration: line-through; }
.quest-punkt .bez { flex: 1; font-size: 13.5px; }
.quest-punkt .ziel { font-size: 12px; color: var(--gold); font-weight: 600; white-space: nowrap; }

.quest-belohnung {
  margin-top: 11px; text-align: center; font-size: 12.5px;
  color: var(--gruen); padding-top: 11px; border-top: 1px solid rgba(95,201,168,.2);
}

/* ---------- Workout-Kacheln ---------- */
.workout-gitter { display: grid; gap: 11px; }

.workout {
  display: block; width: 100%; text-align: left;
  background: linear-gradient(170deg, var(--karte-hoch), var(--karte));
  border: 1px solid var(--rand); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 14px 15px;
  transition: transform .15s, border-color .2s;
}
.workout:active { transform: scale(.985); }
.workout .oben { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.workout h3 { font-size: 16.5px; color: var(--text); }
.workout .meta { font-size: 11px; color: var(--text-sehr-leise); white-space: nowrap; }
.workout .unter { font-size: 12.5px; color: var(--gold); margin-top: 1px; letter-spacing: .02em; }
.workout p { margin: 8px 0 0; font-size: 13px; color: var(--text-leise); line-height: 1.5; }
.workout .fuss { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.pille {
  font-size: 10.5px; padding: 3px 8px; border-radius: 99px;
  background: rgba(255,255,255,.05); border: 1px solid var(--rand); color: var(--text-leise);
  letter-spacing: .03em;
}
.pille.gold { color: var(--gold); border-color: rgba(232,163,61,.3); background: rgba(232,163,61,.08); }

/* ---------- Übungsliste ---------- */
.filter { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 13px; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter button {
  flex: 0 0 auto; background: var(--karte); border: 1px solid var(--rand);
  border-radius: 99px; padding: 6px 13px; font-size: 12.5px; color: var(--text-leise);
  transition: .2s; white-space: nowrap;
}
.filter button.an { background: rgba(232,163,61,.13); border-color: rgba(232,163,61,.45); color: var(--gold-hell); }

.uebung {
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: var(--radius); margin-bottom: 9px; overflow: hidden;
}
.uebung > summary {
  list-style: none; cursor: pointer; padding: 13px 15px;
  display: flex; align-items: center; gap: 11px;
}
.uebung > summary::-webkit-details-marker { display: none; }
.uebung > summary::after {
  content: '⌄'; margin-left: auto; color: var(--text-sehr-leise); font-size: 17px;
  transition: transform .25s; line-height: 1; flex: 0 0 auto;
}
.uebung[open] > summary::after { transform: rotate(180deg); }
.uebung[open] { border-color: rgba(232,163,61,.3); }

.u-kopf { flex: 1; min-width: 0; }
.u-kopf .name { font-size: 14.5px; font-weight: 600; }
.u-kopf .kurz { font-size: 12px; color: var(--text-leise); margin-top: 1px; }
.u-marke {
  flex: 0 0 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(232,163,61,.1); border: 1px solid rgba(232,163,61,.22);
  font-size: 15px;
}

.u-inhalt { padding: 2px 15px 15px; border-top: 1px solid var(--rand); margin-top: 2px; padding-top: 13px; }
.u-block { margin-bottom: 14px; }
.u-block:last-child { margin-bottom: 0; }
.u-block h4 {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 7px;
}
.u-block ol, .u-block ul { margin: 0; padding-left: 19px; }
.u-block li { font-size: 13.5px; margin-bottom: 5px; line-height: 1.5; color: var(--text); }
.u-block p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text); }

.u-hinweis {
  background: rgba(232,163,61,.07); border-left: 2px solid var(--gold);
  padding: 10px 12px; border-radius: 0 8px 8px 0;
}
.u-hinweis p { font-size: 13px; color: var(--text-leise); }

.u-fehler li { color: var(--text-leise); }
.u-fehler li::marker { color: var(--rot); }

.u-stufen { display: grid; gap: 8px; }
.u-stufe {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--grund-hoch); border: 1px solid var(--rand);
  border-radius: 8px; padding: 9px 11px; font-size: 12.5px; color: var(--text-leise);
}
.u-stufe b { color: var(--text); font-weight: 600; flex: 0 0 auto; }

.u-vorgabe {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-leise); margin-bottom: 12px;
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: block; width: 100%; text-align: center;
  background: linear-gradient(135deg, var(--gold), #d18f2c);
  color: #17110a; font-weight: 700; font-size: 14.5px; letter-spacing: .03em;
  border: none; border-radius: 11px; padding: 13px;
  transition: transform .13s, filter .2s;
}
.knopf:active { transform: scale(.98); filter: brightness(1.1); }
.knopf:disabled { opacity: .4; }
.knopf.leise {
  background: var(--karte-hoch); color: var(--text-leise);
  border: 1px solid var(--rand); font-weight: 600;
}
.knopf.klein { padding: 9px; font-size: 13px; }
.knopf.warn { background: linear-gradient(135deg, #b4453f, #8c332e); color: #fff; }

.knopf-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

/* ---------- Trainings-Ansicht ---------- */
.lauf-kopf {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 12px;
}
.lauf-kopf .zurueck {
  background: none; border: none; color: var(--text-leise); font-size: 14px; padding: 4px 0;
}
.lauf-fortschritt { height: 4px; background: #0d0d16; border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.lauf-fortschritt i { display: block; height: 100%; background: var(--gold); transition: width .4s ease; }

.lauf-uebung {
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
  transition: border-color .25s, opacity .25s;
}
.lauf-uebung.fertig { border-color: rgba(95,201,168,.4); opacity: .62; }
.lauf-uebung.fertig .l-name { text-decoration: line-through; color: var(--text-sehr-leise); }

.l-zeile { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.l-haken {
  flex: 0 0 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--rand);
  background: var(--grund-hoch); display: grid; place-items: center;
  color: transparent; font-size: 14px; transition: .2s;
}
.lauf-uebung.fertig .l-haken { background: var(--gruen); border-color: var(--gruen); color: #0b0b14; }
.l-mitte { flex: 1; min-width: 0; }
.l-name { font-size: 14.5px; font-weight: 600; }
.l-dosis { font-size: 12px; color: var(--gold); margin-top: 1px; }
.l-info {
  flex: 0 0 auto; background: var(--grund-hoch); border: 1px solid var(--rand);
  border-radius: 8px; width: 30px; height: 30px; display: grid; place-items: center;
  color: var(--text-leise); font-size: 13px;
}
.l-erklaerung { padding: 0 14px 14px; border-top: 1px solid var(--rand); padding-top: 13px; }

.minuten-feld {
  display: flex; align-items: center; gap: 9px; padding: 0 14px 13px;
}
.minuten-feld label { font-size: 12.5px; color: var(--text-leise); }
.minuten-feld input {
  width: 74px; background: var(--grund-hoch); border: 1px solid var(--rand);
  border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 15px;
  font-family: inherit; text-align: center;
}
.minuten-feld input:focus { outline: none; border-color: var(--gold); }

/* ---------- Abschluss-Overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8,8,14,.9); backdrop-filter: blur(7px);
  display: grid; place-items: center; padding: 24px;
  animation: auf .3s ease;
}
.overlay-karte {
  background: linear-gradient(170deg, #1e1e2d, #141420);
  border: 1px solid rgba(232,163,61,.4); border-radius: 20px;
  padding: 26px 22px; max-width: 380px; width: 100%; text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.overlay-karte .marke { font-size: 42px; line-height: 1; margin-bottom: 10px; }
.overlay-karte h2 { font-size: 21px; color: var(--gold-hell); margin-bottom: 6px; }
.overlay-karte .satz { font-size: 13.5px; color: var(--text-leise); margin-bottom: 18px; line-height: 1.55; }
.overlay-gewinn { display: grid; gap: 8px; margin-bottom: 20px; }
.gewinn-zeile {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--grund-hoch); border: 1px solid var(--rand);
  border-radius: 9px; padding: 9px 13px; font-size: 13px;
}
.gewinn-zeile b { color: var(--gold-hell); font-family: 'Cinzel', serif; }

.aufstieg {
  background: linear-gradient(135deg, rgba(232,163,61,.18), rgba(168,122,217,.14));
  border: 1px solid rgba(232,163,61,.4); border-radius: 12px;
  padding: 14px; margin-bottom: 16px;
}
.aufstieg .gross { font-family: 'Cinzel', serif; font-size: 17px; color: var(--gold-hell); }
.aufstieg .klein { font-size: 12.5px; color: var(--text-leise); margin-top: 4px; }

/* ---------- Verlauf ---------- */
.kalender { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.kal-tag {
  aspect-ratio: 1; border-radius: 3px; background: #14141f; border: 1px solid #1e1e2c;
}
.kal-tag.s1 { background: rgba(232,163,61,.25); border-color: rgba(232,163,61,.3); }
.kal-tag.s2 { background: rgba(232,163,61,.5);  border-color: rgba(232,163,61,.55); }
.kal-tag.s3 { background: rgba(232,163,61,.78); border-color: rgba(232,163,61,.8); }
.kal-tag.s4 { background: var(--gold-hell); border-color: var(--gold-hell); }
.kal-legende { display: flex; align-items: center; gap: 6px; justify-content: flex-end; margin-top: 9px; font-size: 10.5px; color: var(--text-sehr-leise); }
.kal-legende i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.log-eintrag {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--rand);
}
.log-eintrag:last-child { border-bottom: none; }
.log-marke {
  flex: 0 0 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(232,163,61,.1); border: 1px solid rgba(232,163,61,.2); font-size: 14px;
}
.log-mitte { flex: 1; min-width: 0; }
.log-mitte .n { font-size: 13.5px; font-weight: 600; }
.log-mitte .d { font-size: 11.5px; color: var(--text-sehr-leise); }
.log-xp { font-size: 13px; color: var(--gold); font-weight: 700; white-space: nowrap; }

/* ---------- Errungenschaften ---------- */
.ehren { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 9px; }
.ehre {
  text-align: center; padding: 12px 6px;
  background: var(--grund-hoch); border: 1px solid var(--rand); border-radius: var(--radius-s);
  opacity: .35; transition: .3s;
}
.ehre.offen { opacity: 1; border-color: rgba(232,163,61,.35); background: rgba(232,163,61,.07); }
.ehre .i { font-size: 21px; line-height: 1; display: block; margin-bottom: 5px; color: var(--text-sehr-leise); }
.ehre.offen .i { color: var(--gold); }
.ehre .n { font-size: 10.5px; font-weight: 600; line-height: 1.3; }
.ehre .t { font-size: 9.5px; color: var(--text-sehr-leise); margin-top: 3px; line-height: 1.35; }

/* ---------- Tableiste ---------- */
.tableiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(14,14,22,.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--rand);
  padding-bottom: var(--unten);
}
.tableiste button {
  background: none; border: none; padding: 9px 4px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-sehr-leise); transition: color .2s;
}
.tableiste button .sym { font-size: 18px; line-height: 1; }
.tableiste button .txt { font-size: 10px; letter-spacing: .04em; }
.tableiste button.an { color: var(--gold); }
.tableiste button.an .sym { filter: drop-shadow(0 0 7px rgba(232,163,61,.5)); }
/* [hidden] allein verliert gegen display:grid oben */
.tableiste[hidden] { display: none; }

/* ---------- Kleinkram ---------- */
.leer { text-align: center; padding: 34px 16px; color: var(--text-sehr-leise); font-size: 13.5px; line-height: 1.6; }
.leer .sym { font-size: 32px; display: block; margin-bottom: 10px; opacity: .5; }

.hinweis { font-size: 12px; color: var(--text-sehr-leise); line-height: 1.55; margin-top: 10px; }

.trenner { height: 1px; background: var(--rand); margin: 18px 0; border: none; }

.meldung {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar) + var(--unten) + 16px); z-index: 70;
  background: var(--karte-hoch); border: 1px solid rgba(232,163,61,.4);
  color: var(--text); padding: 11px 18px; border-radius: 99px; font-size: 13px;
  box-shadow: 0 10px 34px rgba(0,0,0,.5);
  animation: meldungAuf .3s ease;
  max-width: calc(100vw - 32px);
}
@keyframes meldungAuf { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Ab Tablet ---------- */
@media (min-width: 640px) {
  body { font-size: 15.5px; }
  .huelle { padding-left: 24px; padding-right: 24px; }
  .zahlen { gap: 10px; }
}
