/* Schnurrhaus: Look „Neon-Ozean“ (dunkel) und heller Look über Farbtokens. */
:root,
:root[data-theme="dunkel"] {
  --bg: #040B1A; --bg2: #0A1630; --ink: #EAF6FF; --mut: #7F95B8; --sub: #B9CCE6;
  --cy: #00E0FF; --bl: #3D7BFF; --vi: #8B5CFF; --gold: #FFD84D; --pink: #FF7AB8; --ok: #3CCB7A; --bad: #FF5C7A; --warm: #FFB547;
  --akz: #00E0FF;                 /* Akzent für Text und Symbole */
  --card: rgba(140, 200, 255, .06); --card2: rgba(140, 200, 255, .1); --line: rgba(140, 200, 255, .13);
  --leer: rgba(140, 200, 255, .13); --feld: rgba(0, 0, 0, .2);
  --blatt: #0A1630; --leiste: rgba(11, 23, 48, .9); --kopfbg: rgba(4, 11, 26, .78);
  --schatten: 0 10px 30px rgba(0, 0, 0, .45); --glow: 1;
  --hintergrund: radial-gradient(70% 40% at 50% 0%, rgba(0, 200, 255, .2), transparent 70%), radial-gradient(50% 30% at 0% 80%, rgba(80, 100, 255, .13), transparent 70%), #040B1A;
  --knopf: linear-gradient(90deg, #00E0FF, #3D7BFF); --knopftext: #031024;
  color-scheme: dark;
}
:root[data-theme="hell"] {
  --bg: #EEF5FF; --bg2: #FFFFFF; --ink: #0A1630; --mut: #566C8E; --sub: #33476A;
  --cy: #00B8E6; --bl: #2F6BEF; --vi: #7A4DF0; --gold: #E9B500; --pink: #E8559A; --ok: #1FA35E; --bad: #E03A5C; --warm: #E58A00;
  --akz: #0073A8;
  --card: #FFFFFF; --card2: rgba(10, 40, 90, .05); --line: rgba(10, 40, 90, .12);
  --leer: rgba(10, 40, 90, .14); --feld: rgba(10, 40, 90, .05);
  --blatt: #FFFFFF; --leiste: rgba(255, 255, 255, .92); --kopfbg: rgba(238, 245, 255, .85);
  --schatten: 0 10px 30px rgba(20, 50, 100, .16); --glow: .35;
  --hintergrund: radial-gradient(70% 40% at 50% 0%, rgba(0, 190, 240, .16), transparent 70%), radial-gradient(50% 30% at 0% 80%, rgba(80, 100, 255, .08), transparent 70%), #EEF5FF;
  --knopf: linear-gradient(90deg, #22D3F5, #4A86FF); --knopftext: #031024;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
/* Wird etwas per Fokus, Tastatur oder Sprunglink in den Blick geholt, nicht unter der Kopfzeile
   oder unter Reiterleiste und Katzen-Knopf (bis 150 px über dem unteren Rand) landen lassen */
html { background: var(--bg); scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); scroll-padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
body {
  margin: 0; min-height: 100dvh; font-family: 'Outfit', system-ui, sans-serif; color: var(--ink);
  background: var(--hintergrund); background-attachment: fixed; font-size: 15px; line-height: 1.4;
  -webkit-text-size-adjust: 100%; overscroll-behavior-y: none;
}
body.gesperrt { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
/* Unter 16 px zoomt Safari auf dem iPhone beim Antippen eines Eingabefelds in die Seite hinein */
input, textarea, select { font-size: max(16px, 1em); }
button { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #7FD8FF; outline-offset: 2px; }
:root[data-theme="hell"] button:focus-visible, :root[data-theme="hell"] a:focus-visible { outline-color: #0073A8; }
a { color: var(--akz); }
h1, h2, h3 { margin: 0; }
svg { display: block; }

/* ---------- Startbild ---------- */
.startbild { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 200; background: var(--hintergrund); }
.startkatze { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--cy); animation: dreh 1s linear infinite; }
@keyframes dreh { to { rotate: 360deg; } }
.startfehler { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; padding: 24px; max-width: 340px; }
.startfehler span { color: var(--mut); }

/* ---------- Kopfzeile, Reiter, Katzen-Knopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--kopfbg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent;
}
.kt { flex: 1; min-width: 0; }
.eb { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf h1 { font-size: 25px; line-height: 1.1; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
em.v, .kopf h1 em, .anm h1 em { font-style: normal; background: linear-gradient(90deg, var(--cy), var(--bl), var(--vi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ichknopf { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 4px; background: none; }
.ichknopf .av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--c), 0 0 calc(14px * var(--glow)) var(--c); }
.offline-hinweis { display: none; flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 8px; background: var(--bad); color: #fff; }
.offline .offline-hinweis { display: inline-block; }

/* Unten Platz bis über den Katzen-Knopf (84 px Abstand + 62 px hoch + 4 px Schweben), sonst verdeckt er Knöpfe */
#seite { max-width: 600px; margin: 0 auto; padding: 6px max(16px, env(safe-area-inset-right, 0px)) calc(160px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 12px; outline: none; }

.reiter {
  position: fixed; z-index: 40; left: 50%; translate: -50% 0; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 20px)); height: 62px; border-radius: 22px; display: flex;
  background: var(--leiste); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--schatten);
}
.reiter a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--mut); font-size: 11px; font-weight: 700; position: relative; border-radius: 20px; }
.reiter .ri { width: 24px; height: 24px; }
.reiter .ri svg { width: 100%; height: 100%; }
.reiter a[aria-current="page"] { color: var(--ink); }
.reiter a[aria-current="page"] .ri { color: var(--akz); filter: drop-shadow(0 0 calc(6px * var(--glow)) var(--cy)); }
.punkt { position: absolute; top: 8px; left: calc(50% + 7px); min-width: 10px; height: 10px; border-radius: 6px; background: var(--pink); box-shadow: 0 0 8px var(--pink); font-style: normal; font-size: 9.5px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.punkt:not(:empty) { min-width: 16px; height: 16px; top: 5px; }

.katzenknopf {
  position: fixed; z-index: 41; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  width: 62px; height: 62px; border-radius: 50%; border: 0; padding: 0;
  background: linear-gradient(135deg, var(--cy), var(--vi)); box-shadow: 0 0 calc(24px * var(--glow) + 6px) rgba(0, 224, 255, .45), var(--schatten);
  display: flex; align-items: center; justify-content: center; animation: schweb 2.4s ease-in-out infinite;
}
@keyframes schweb { 50% { transform: translateY(-4px); } }
.katzenknopf svg { width: 44px; height: 31px; overflow: visible; }
.katzenknopf .dot { position: absolute; top: 1px; right: 1px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; box-shadow: 0 0 0 2px var(--bg); }

/* ---------- Grundbausteine ---------- */
.karte { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
:root[data-theme="hell"] .karte { box-shadow: 0 2px 10px rgba(20, 50, 100, .06); }
.lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.sub { font-size: 12.5px; color: var(--mut); line-height: 1.4; }
.gross { font-size: 26px; font-weight: 800; letter-spacing: -.4px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.zeile { display: flex; align-items: center; gap: 10px; }
.wachs { flex: 1; min-width: 0; }
.btn {
  min-height: 44px; border-radius: 12px; border: 0; padding: 0 16px; font-weight: 800; font-size: 14px;
  background: var(--knopf); color: var(--knopftext); box-shadow: 0 0 calc(16px * var(--glow)) rgba(0, 224, 255, .3);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
.btn.g { background: var(--card2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn.sm { min-height: 34px; font-size: 12.5px; padding: 0 12px; border-radius: 10px; }
.btn.rot { background: var(--bad); color: #fff; box-shadow: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.voll { width: 100%; }
.av { display: inline-flex; width: var(--s, 28px); height: var(--s, 28px); border-radius: 50%; background: var(--c); align-items: center; justify-content: center; flex: none; font-style: normal; overflow: hidden; }
.av svg { width: 82%; height: 76%; margin-top: 6%; }
.avs { display: flex; gap: 4px; align-items: center; }
.seg { display: flex; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 13px; color: var(--sub); padding: 0 8px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 34px; border-radius: 17px; border: 1px solid var(--line); background: var(--card2); padding: 0 12px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.feld { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--feld); padding: 0 12px; color: var(--ink); }
textarea.feld { padding: 10px 12px; min-height: 70px; resize: vertical; }
.feld::placeholder { color: var(--mut); opacity: .8; }
.schalter { position: relative; width: 50px; height: 30px; border-radius: 15px; border: 0; background: var(--leer); flex: none; transition: background .2s; padding: 0; }
.schalter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .2s; }
.schalter[aria-checked="true"] { background: var(--ok); }
.schalter[aria-checked="true"]::after { transform: translateX(20px); }
.leer-hinweis { text-align: center; color: var(--mut); padding: 18px 8px; font-size: 13.5px; }
.zi { display: inline-flex; width: 30px; height: 30px; border-radius: 10px; align-items: center; justify-content: center; color: var(--zc); background: color-mix(in srgb, var(--zc) 16%, transparent); flex: none; }
.zi svg { width: 20px; height: 20px; }
.zurueckknopf { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; min-height: 36px; border: 0; background: none; color: var(--akz); font-weight: 700; padding: 0 6px 0 0; text-decoration: none; font-size: 14px; }
.zurueckknopf svg { width: 20px; height: 20px; }
.abschnitt { font-size: 17px; font-weight: 800; margin: 6px 2px -2px; }
.neu-marke { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--pink); color: #fff; border-radius: 6px; padding: 2px 6px; vertical-align: middle; }

/* ---------- Toast, Blätter, Effekte ---------- */
.toast {
  /* Über dem Katzen-Knopf (unten 84 px, 62 px hoch): sonst trifft ein Finger dort ein paar Sekunden lang den Hinweis */
  position: fixed; z-index: 120; left: 50%; translate: -50% 0; bottom: calc(156px + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100% - 24px)); background: #0C1830; color: #fff; border: 1px solid rgba(140, 200, 255, .15); border-radius: 14px;
  padding: 12px 14px; font-weight: 700; box-shadow: var(--schatten); display: flex; align-items: center; gap: 10px; animation: tin .2s ease-out;
}
.toast span { flex: 1; }
.toast button { flex: none; min-height: 34px; border-radius: 9px; border: 0; padding: 0 12px; background: #EAF6FF; color: #040B1A; font-weight: 800; font-size: 13px; }
.ov.offen ~ .toast, body.gesperrt .toast { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
@keyframes tin { from { transform: translateY(14px); opacity: 0; } }

.blatt-h { position: fixed; inset: 0; z-index: 90; background: rgba(2, 6, 16, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.blatt {
  width: 100%; max-width: 560px; max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--blatt); border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 10px max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 12px; animation: hoch .35s cubic-bezier(.3, 1.15, .5, 1); box-shadow: var(--schatten); outline: none;
}
@keyframes hoch { from { transform: translateY(100%); } }
.griff { width: 40px; height: 5px; border-radius: 3px; background: var(--leer); margin: 0 auto 2px; flex: none; }
.blatt h2 { font-size: 21px; font-weight: 800; }
.blatt .mitte { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }

#fx { position: fixed; inset: 0; pointer-events: none; z-index: 110; overflow: hidden; }
.fx { position: absolute; left: 0; top: 0; }
.conf { width: 18px; height: 11px; margin: -5px 0 0 -9px; animation: cf 1.35s cubic-bezier(.2, .7, .3, 1) forwards; }
.conf svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 4px currentColor); }
@keyframes cf { 0% { transform: translate(0, 0) scale(.3); } 55% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * .6)) scale(1); } 100% { transform: translate(calc(var(--dx) * 1.15), calc(var(--dy) + 80px)) rotate(var(--r)) scale(.9); opacity: 0; } }
.hiss, .qm { font-weight: 800; translate: -50% -100%; white-space: nowrap; animation: hf 1.1s ease-out forwards; }
.hiss { font-size: 12px; color: #FF5C7A; text-shadow: 0 0 6px rgba(255, 77, 109, .9); }
.qm { font-size: 14px; color: #BFF6FF; text-shadow: 0 0 6px #00E0FF; }
:root[data-theme="hell"] .qm { color: #0073A8; text-shadow: none; }
@keyframes hf { 0% { opacity: 0; transform: translateY(4px) scale(.7); } 20% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-16px); } }
.hrt { color: var(--pink); font-size: 16px; translate: -50% -50%; animation: hf 1s ease-out forwards; }
.pf { width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; background: rgba(200, 210, 225, .75); filter: blur(1px); animation: pf .75s ease-out forwards; }
@keyframes pf { to { transform: translate(var(--dx), var(--dy)) scale(2.3); opacity: 0; } }
.muenze { width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF3B0, #FFD84D 50%, #C99A00); transition: left .6s cubic-bezier(.4, 0, .2, 1), top .6s cubic-bezier(.4, 0, .2, 1), opacity .6s; }

/* ---------- Anmeldung ---------- */
#login { min-height: 100dvh; display: flex; justify-content: center; }
.anm { width: 100%; max-width: 440px; padding: calc(28px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px; align-items: center; }
.anm-kopf { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin: 10px 0 8px; }
.anm-katze { width: 70px; height: 95px; filter: drop-shadow(0 0 calc(16px * var(--glow)) rgba(255, 160, 70, .5)); }
.anm-katze svg { width: 100%; height: 100%; }
.anm h1 { font-size: 36px; font-weight: 800; letter-spacing: -.6px; }
.anm-kopf p { margin: 0; color: var(--sub); font-size: 17px; }
.anm-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.anm-wahl button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px 14px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); min-height: 140px; }
.anm-wahl button:hover, .anm-wahl button:focus-visible { border-color: var(--c); box-shadow: 0 0 calc(18px * var(--glow)) color-mix(in srgb, var(--c) 45%, transparent); }
.anm-wahl b { font-size: 17px; }
.anm-fuss { color: var(--mut); font-size: 12.5px; margin-top: auto; text-align: center; }
.shk { animation: shk .45s; }
@keyframes shk { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.anm-fehler { min-height: 20px; margin: 0; color: var(--bad); font-weight: 700; text-align: center; }

/* ---------- Heute ---------- */
.hallo { display: flex; align-items: center; gap: 12px; }
.hallo .wachs b { font-size: 15px; }
.hkatze { width: 74px; height: 52px; flex: none; touch-action: none; cursor: pointer; filter: drop-shadow(0 0 calc(10px * var(--glow)) rgba(255, 160, 70, .5)); transition: transform .2s; }
.hkatze svg { width: 100%; height: 100%; overflow: visible; }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kachel { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 122px; text-align: left; color: inherit; text-decoration: none; overflow: hidden; }
:root[data-theme="hell"] .kachel { box-shadow: 0 2px 10px rgba(20, 50, 100, .06); }
button.kachel { font: inherit; }
.kachel .tz { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.kachel.fertig { border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 10%, var(--card)); }
.kachel .btn { margin-top: auto; }
.kachel .zkatze { position: absolute; right: 10px; top: 10px; width: 48px; height: 48px; border-radius: 13px; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.liste { display: flex; flex-direction: column; }
.liste .li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 52px; color: inherit; text-decoration: none; }
.liste .li:last-child { border-bottom: 0; padding-bottom: 2px; }
.liste .li:first-child { padding-top: 2px; }
.li .ico { width: 34px; height: 34px; border-radius: 11px; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; color: var(--akz); }
.li .ico svg { width: 20px; height: 20px; }
.li b { font-weight: 700; }
.pfeil { width: 18px; height: 18px; color: var(--mut); flex: none; }
.fischzahl { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.fischzahl svg { width: 24px; height: 14px; }

/* ---------- Bingo (Katzen-Gleise) ---------- */
.pnl { --fw: 40px; --th: 34px; --pw: 17px; --ph: 22px; --py: 74%; --hy: 52%; position: relative; display: flex; flex-direction: column; gap: 12px; border-radius: 24px; margin: 0 -6px; padding: 12px 6px 14px; overflow: clip; }
.pnl > :not(.bgx) { position: relative; z-index: 1; }
.bgx { position: absolute; pointer-events: none; z-index: 0; }
.pnl.tag { background: radial-gradient(55% 30% at 90% 0%, rgba(255, 216, 77, .45), transparent 70%), linear-gradient(180deg, rgba(15, 85, 144, .55), rgba(7, 43, 82, .25) 70%, transparent); }
:root[data-theme="hell"] .pnl.tag { background: radial-gradient(55% 30% at 90% 0%, rgba(255, 216, 77, .55), transparent 70%), linear-gradient(180deg, rgba(120, 200, 255, .35), transparent 80%); }
.pnl.nacht { background: radial-gradient(40% 25% at 86% 4%, rgba(200, 220, 255, .14), transparent 70%), linear-gradient(180deg, #01040C, #050F26 60%, rgba(8, 26, 58, .4)); }
:root[data-theme="hell"] .pnl.nacht { background: linear-gradient(180deg, #1A2A55, #24366A 60%, rgba(36, 54, 106, .15)); color: #EAF6FF; --line: rgba(140, 200, 255, .18); --card: rgba(140, 200, 255, .08); --card2: rgba(140, 200, 255, .12); --mut: #9DB2D4; --sub: #C8D8F0; --ink: #EAF6FF; }
.sonne { right: -40px; top: -48px; width: 124px; height: 124px; border-radius: 50%; opacity: .8; background: radial-gradient(circle, #FFF6C4, #FFD84D 34%, rgba(255, 216, 77, 0) 68%); animation: sunp 4s ease-in-out infinite; }
@keyframes sunp { 50% { scale: 1.08; } }
.mond { right: 22px; top: 14px; width: 28px; height: 28px; border-radius: 50%; box-shadow: -7px 5px 0 0 #E9EEFF; rotate: -20deg; filter: drop-shadow(0 0 10px rgba(233, 238, 255, .5)); }
.stern { border-radius: 50%; background: #fff; animation: tw ease-in-out infinite; }
@keyframes tw { 50% { opacity: .2; } }
.bkopf { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.bkopf .seg { flex: 1; }
.bkopf .seg button { min-height: 34px; font-size: 12.5px; }
.wer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0 6px; }
.wer button { display: flex; align-items: center; gap: 4px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); padding: 0 5px 0 3px; font-weight: 700; font-size: 12px; min-width: 0; overflow: hidden; white-space: nowrap; }
.wer button.ich { border-color: var(--c); box-shadow: 0 0 calc(12px * var(--glow)) color-mix(in srgb, var(--c) 40%, transparent); }
.wer .nm2 { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; text-align: left; }
.wer button { position: relative; overflow: visible; }
.wer .nm2 { overflow: hidden; }
.wer .krz { position: absolute; left: 17px; top: -6px; display: flex; align-items: center; gap: 2px; line-height: 1; padding: 2px 5px 2px 4px; border-radius: 9px; background: var(--blatt); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.wer .krz svg { width: 13px; height: 8px; }
.wer .krz small { font-size: 10px; font-weight: 800; }
.mood { display: flex; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); margin: 0 6px; }
.face { width: 92px; height: 74px; border: 0; background: none; padding: 0; flex: none; filter: drop-shadow(0 0 calc(12px * var(--glow)) rgba(255, 160, 70, .45)); touch-action: none; -webkit-touch-callout: none; }
.face svg { width: 100%; height: 100%; overflow: visible; }
.face.perk { animation: perk .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes perk { 30% { transform: translateY(-8px) scale(1.07); } }
.face.pet svg { animation: petw 1s ease-in-out infinite; }
@keyframes petw { 50% { transform: rotate(-4deg) scale(1.03); } }
.mtx { flex: 1; min-width: 0; }
.mtx .ml { font-size: 14.5px; }
.mbar { height: 8px; border-radius: 4px; background: var(--leer); margin: 7px 0; overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FF7AB8, #FFD84D, #3CCB7A); background-size: 220px 100%; }
.ms { font-size: 12px; color: var(--mut); line-height: 1.35; }
.bkarte { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin: 0 6px; }
.pnl.tag .bkarte { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
:root[data-theme="hell"] .pnl.tag .bkarte { background: rgba(255, 255, 255, .85); border-color: rgba(10, 40, 90, .12); }
.rows { overflow: hidden; border-radius: 18px; }
.pnl .row { position: relative; display: grid; grid-template-columns: 30px 88px 1fr; align-items: center; gap: 8px; padding: 4px 10px 4px 8px; min-height: 50px; border-bottom: 1px solid var(--line); cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; outline-offset: -3px; }
.pnl .row:last-child { border-bottom: 0; }
.pnl .row:active { background: var(--card2); }
.pnl .row .ico { position: relative; width: 30px; height: 30px; border-radius: 10px; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 17px; border: 0; padding: 0; }
.pnl .row .ico::after { content: ""; position: absolute; inset: -7px; } /* Glöckchen: Tippfläche 44 × 44, Aussehen bleibt */
.pnl .row .nm { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk { position: relative; height: var(--th); min-width: 0; }
.fin { position: absolute; right: 0; top: 58%; transform: translateY(-50%); width: var(--fw); height: 28px; display: flex; align-items: center; justify-content: center; z-index: 2; cursor: pointer; }
.fin::after { content: ""; position: absolute; inset: -9px -4px; }
.fin svg { width: 40px; height: 28px; overflow: visible; filter: drop-shadow(0 0 calc(4px * var(--glow)) rgba(255, 160, 70, .65)); }
.kbody { transform-box: fill-box; transform-origin: 50% 100%; animation: atmen 3.2s ease-in-out infinite; }
@keyframes atmen { 50% { transform: scaleY(1.08); } }
.fin.wach .kbody { animation: none; }
.ktail { transform-box: fill-box; transform-origin: 100% 0; }
.fin.wach .ktail { animation: flick 1.3s ease-in-out infinite; }
@keyframes flick { 50% { rotate: -12deg; } }
.zz { position: absolute; right: 2px; top: -3px; font-size: 10px; color: #7FD8FF; font-weight: 800; animation: zz 2.4s ease-in-out infinite; }
.zz.z2 { right: -5px; top: -7px; font-size: 8px; animation-delay: 1.2s; }
:root[data-theme="hell"] .zz { color: #0073A8; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -10px); } }
.fin.aufgewacht { animation: wake .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes wake { 40% { transform: translateY(-50%) scale(1.4) rotate(-8deg); } }
.fin.stir svg { animation: stir .5s; }
@keyframes stir { 25% { rotate: -7deg; } 75% { rotate: 7deg; } }
.fin.rolled svg { transform: scaleX(-1); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.fin.mad svg { animation: madj .12s 6; filter: drop-shadow(0 0 6px #FF5C7A); }
@keyframes madj { 50% { translate: 1.5px 0; scale: 1.12; } }
.pw { position: absolute; top: var(--py); width: 8.5px; height: 8.5px; translate: -50% -50%; rotate: 90deg; }
.pw svg { width: 100%; height: 100%; overflow: visible; }
.pw .p { fill: var(--leer); }
.pw.on .p { fill: var(--pc); }
.pw.on { filter: drop-shadow(0 0 calc(3px * var(--glow)) var(--pc)); }
.pw.neu { animation: stempel .45s cubic-bezier(.3, 1.7, .5, 1) both; animation-delay: var(--d, 0ms); }
@keyframes stempel { 0% { scale: 2; opacity: 0; } 100% { scale: 1; opacity: 1; } }
.hp { position: absolute; top: var(--hy); width: var(--pw); height: var(--ph); translate: -50% -100%; transition: left .8s cubic-bezier(.3, 1.25, .5, 1); z-index: 3; pointer-events: none; }
.hp svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 2px var(--c)) drop-shadow(0 0 calc(6px * var(--glow)) var(--c)); }
.hp.mein svg { filter: drop-shadow(0 0 1.3px #fff) drop-shadow(0 0 6px var(--c)); }
.hp.hop svg { animation: hop .8s cubic-bezier(.3, 1.2, .5, 1); }
.hp.ziel svg { animation: won 1.6s ease-in-out infinite; }
.hp.puff svg { animation: puff .9s; }
@keyframes hop { 30% { transform: translateY(-10px) rotate(-8deg) scale(1.15); } 60% { transform: translateY(0) scale(1.06, .9); } }
@keyframes won { 50% { transform: translateY(-3px); } }
@keyframes puff { 15% { transform: scale(1.5) rotate(-8deg); } 30% { transform: scale(1.45) rotate(8deg); } 45% { transform: scale(1.45) rotate(-6deg); } 70% { transform: scale(1.2); } }
.hp .krone { position: absolute; left: 50%; top: -7px; width: 11px; height: 7px; translate: -50% 0; }
.krone svg { width: 100%; height: 100%; filter: drop-shadow(0 0 3px #FFD84D); }
.hp .zzp { position: absolute; left: 78%; top: -7px; font-size: 8px; font-weight: 800; color: #BFD4FF; animation: zz 2.4s ease-in-out infinite; }
.nacht .hp { transition-duration: 1.8s; }
.nacht .hp svg { filter: drop-shadow(0 0 2px var(--c)) brightness(.8); }
.nacht .pw.on { opacity: .75; }
.pnl .row .hold { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(0, 224, 255, .05), rgba(0, 224, 255, .22)); pointer-events: none; }
.pnl .row.leer { box-shadow: inset 3px 0 0 #FFB547; background: linear-gradient(90deg, rgba(255, 181, 71, .14), transparent 45%); }
.pnl .row.leer .ico { box-shadow: 0 0 0 1.5px #FFB547, 0 0 12px rgba(255, 181, 71, .5); }
.bell { position: absolute; right: -7px; top: -7px; width: 16px; height: 16px; transform-origin: 50% 0; animation: ring 1.3s ease-in-out infinite; }
.bell svg { width: 100%; height: 100%; filter: drop-shadow(0 0 4px #FFB547); }
@keyframes ring { 0%, 60%, 100% { rotate: 0; } 10% { rotate: 20deg; } 20% { rotate: -18deg; } 30% { rotate: 12deg; } 40% { rotate: -8deg; } }
.dust { position: absolute; top: var(--py); width: 22px; height: 18px; translate: -50% -72%; z-index: 5; cursor: pointer; animation: drift 3s ease-in-out infinite; border: 0; padding: 0; background: none; }
.dust svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 3px rgba(200, 210, 225, .5)); }
@keyframes drift { 50% { transform: translate(3px, -2px) rotate(7deg); } }
.pnl .row.staubig .ico, .pnl .row.staubig .nm { filter: saturate(.25) brightness(.75); }
:root[data-theme="hell"] .pnl .row.staubig .ico, :root[data-theme="hell"] .pnl .row.staubig .nm { filter: saturate(.2) opacity(.6); }
.web { position: absolute; left: -5px; top: -5px; width: 18px; height: 18px; pointer-events: none; }
.bfuss { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 8px; }
.bfuss .sub { flex: 1; }

/* ---------- Zonen ---------- */
.whw { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 4px auto 0; }
.whw svg { width: 100%; height: 100%; touch-action: none; cursor: grab; }
.whw text { fill: var(--ink); }
.whw .wlt { fill: #fff; }
.whw .pin { position: absolute; translate: -50% -50%; filter: drop-shadow(0 0 calc(8px * var(--glow)) var(--c)); }
.kw { display: flex; align-items: center; justify-content: center; gap: 12px; }
.kw button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); font-size: 22px; line-height: 1; }
.kw .gross { font-size: 20px; min-width: 150px; text-align: center; }
.zrow { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); }
.zrow:last-child { border-bottom: 0; }
.zrow b { font-weight: 800; }
.zhaken { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.zhaken svg { width: 14px; height: 14px; }
/* Revier-Scheibe „Pfotenspur“ (scheibe.js): Scheibe steht, Köpfe wandern auf der Pfoten-Bahn */
.rs-karte { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.rs { position: relative; width: min(100%, 300px); max-width: 100%; aspect-ratio: 1; margin: 0 auto; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.rs-bild { position: absolute; left: 9%; top: 9%; width: 82%; height: 82%; max-width: 82%; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--cy) 70%, transparent), 0 0 calc(22px * var(--glow)) rgba(0, 224, 255, .45); pointer-events: none; }
.rs-o { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.rs-bahn { color: var(--cy); opacity: .45; }
/* Mein Revier im Fokus: die anderen Zimmer gedimmt, meins mit Rand in meiner Farbe */
.rs-keil { fill: #040B1A; fill-opacity: 0; stroke: none; transition: fill-opacity .45s, stroke-opacity .45s; }
.rs-keil.aus { fill-opacity: .48; }
:root[data-theme="hell"] .rs-keil.aus { fill-opacity: .32; }
.rs-keil.mein { stroke: var(--meine); stroke-width: 1.4; filter: drop-shadow(0 0 1.6px var(--meine)); }
/* Pfoten-Stempel für erledigte Zimmer */
.rs-st circle { fill: rgba(60, 203, 122, .22); stroke: #3CCB7A; stroke-width: .9; }
.rs-st { animation: rsstempel .45s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: center; }
@keyframes rsstempel { from { scale: 1.8; opacity: 0; } }
.rs-kopf { position: absolute; translate: -50% -50%; z-index: 4; pointer-events: none; }
.rs-kopf .av { box-shadow: 0 0 0 2px var(--bg), 0 0 calc(12px * var(--glow) + 2px) var(--c); }
.rs-spur { position: absolute; width: 11px; height: 11px; margin: -5.5px; z-index: 3; pointer-events: none; animation: rsspur 1.4s ease-out forwards; }
.rs-spur svg { width: 100%; height: 100%; }
@keyframes rsspur { 0% { opacity: 0; scale: .4; } 15% { opacity: .95; scale: 1; } 100% { opacity: 0; scale: .8; } }
.rs-unter { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .rs-spur { display: none; } .rs-st { animation: none; } }

.zonenbild { display: flex; gap: 14px; align-items: center; }
.zonenbild img { width: 112px; height: 112px; border-radius: 20px; flex: none; box-shadow: var(--schatten); }

/* ---------- WG: Übersicht ---------- */
.wgkacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wgkacheln .kachel { min-height: 134px; }
.wgkacheln .kachel .gi { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: var(--ic, var(--akz)); background: color-mix(in srgb, var(--ic, var(--cy)) 15%, transparent); }
.wgkacheln .kachel .gi svg { width: 24px; height: 24px; }
.wgkacheln .kachel b { font-size: 16px; }

/* Abstimmung */
.umfrage { display: flex; flex-direction: column; gap: 8px; }
.umfrage .frage { font-size: 16px; font-weight: 800; line-height: 1.3; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card2); padding: 0 12px; overflow: hidden; text-align: left; font-weight: 700; width: 100%; }
.opt .fill { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--cy) 18%, transparent); transition: width .5s; }
.opt > :not(.fill) { position: relative; }
.opt[aria-pressed="true"] { border-color: var(--cy); box-shadow: 0 0 calc(10px * var(--glow)) rgba(0, 224, 255, .3); }
.beschlossen { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 800; }
.beschlossen svg { width: 20px; height: 20px; }
.neuform { display: flex; flex-direction: column; gap: 8px; }

/* Rückblick als Story */
.story { position: relative; border-radius: 24px; overflow: hidden; min-height: min(560px, calc(100dvh - 230px)); display: flex; flex-direction: column; touch-action: manipulation; -webkit-user-select: none; user-select: none; color: #fff; }
.sbars { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 4px; z-index: 3; }
.sbars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.sbars i b { display: block; height: 100%; width: 0; background: #fff; }
.sbars i.done b { width: 100%; }
.sbars i.akt b { animation: sbar 6s linear forwards; }
.story.halt .sbars i.akt b { animation-play-state: paused; }
@keyframes sbar { to { width: 100%; } }
.slide { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 48px 26px 40px; background: var(--sg); }
.slide.in > * { animation: sin .5s cubic-bezier(.3, 1.3, .5, 1) both; }
.slide.in > :nth-child(2) { animation-delay: .08s; } .slide.in > :nth-child(3) { animation-delay: .16s; } .slide.in > :nth-child(4) { animation-delay: .24s; }
@keyframes sin { from { opacity: 0; transform: translateY(14px); } }
.sk { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.sart { width: 130px; height: 104px; }
.sart svg { width: 100%; height: 100%; overflow: visible; }
.swert { font-size: 56px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.st { font-size: 17px; line-height: 1.4; max-width: 300px; }
.shint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; opacity: .6; }

/* Fisch-Shop */
.geldbeutel { display: flex; align-items: center; gap: 12px; }
.muenzbild { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF3B0, #FFD84D 50%, #C99A00); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 calc(16px * var(--glow)) rgba(255, 216, 77, .5); }
.muenzbild svg { width: 30px; height: 18px; }
.ware { display: flex; align-items: center; gap: 12px; }
.ware .wi { width: 42px; height: 42px; border-radius: 13px; background: var(--card2); color: var(--akz); display: flex; align-items: center; justify-content: center; flex: none; }
.ware .wi svg { width: 24px; height: 24px; }
.preis { display: inline-flex; align-items: center; gap: 5px; }
.preis svg { width: 18px; height: 11px; }
.ticket { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--gold) 60%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.ticket.weg { opacity: .55; border-color: var(--line); background: none; }
.ticket b { font-weight: 800; }

/* Abzeichen */
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sd { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--mut); }
.sd i { width: 36px; height: 36px; border-radius: 50%; border: 2px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--akz); }
.sd.on i { border: 0; background: color-mix(in srgb, var(--cy) 16%, transparent); box-shadow: 0 0 calc(10px * var(--glow)) rgba(0, 224, 255, .35); }
.sd i svg { width: 20px; height: 20px; }
.sd.heute { color: var(--ink); }
.orden { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bdg { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 4px 10px; text-align: center; min-height: 150px; }
.bdg .hx { width: 64px; height: 70px; }
.bdg .hx svg { width: 100%; height: 100%; }
.bdg.zu .hx { filter: grayscale(1) brightness(.7); opacity: .55; }
:root[data-theme="hell"] .bdg.zu .hx { filter: grayscale(1); opacity: .45; }
.bdg.da .hx { filter: drop-shadow(0 0 calc(10px * var(--glow)) var(--bc)); }
.bdg span { font-weight: 800; font-size: 12.5px; line-height: 1.2; }
.bdg small { font-size: 11px; color: var(--mut); }
.bdg .neu-marke { margin-top: 2px; }
.pbar { width: 100%; max-width: 240px; height: 8px; border-radius: 4px; background: var(--leer); overflow: hidden; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cy), var(--vi)); }

/* ---------- Ich, Einstellungen, Admin ---------- */
.ichkopf { display: flex; align-items: center; gap: 12px; }
.ichkopf b { font-size: 20px; }
/* Acht Felle und acht Verkleidungen: je vier pro Reihe, mit Namen darunter */
.felle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.felle button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; min-width: 0; }
.felle .fb { display: block; width: min(100%, 60px); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); background: var(--c); padding: 5px; }
.felle button[aria-pressed="true"] .fb { border-color: var(--ink); box-shadow: 0 0 0 2px var(--c); }
.felle small { font-size: 11px; font-weight: 700; color: var(--sub); text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.felle button[aria-pressed="true"] small { color: var(--ink); }
.felle svg { width: 100%; height: 100%; }
.einst { display: flex; flex-direction: column; }
.einst .ez { display: flex; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--line); }
.einst .ez:last-child { border-bottom: 0; }
.einst .ez > div { flex: 1; min-width: 0; }
.adm-zeile { display: grid; grid-template-columns: 52px 1fr 64px 40px; gap: 6px; align-items: center; }
.adm-zeile .feld { min-height: 42px; padding: 0 8px; }
.adm-zeile .emo { text-align: center; font-size: 20px; padding: 0; }
.adm-zeile .zahl { text-align: center; }
.adm-zeile .weg { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--bad); display: flex; align-items: center; justify-content: center; padding: 0; }
.adm-zeile .weg svg { width: 18px; height: 18px; }
.adm-shop { display: grid; grid-template-columns: 1fr 70px 40px; gap: 6px; align-items: center; }
.codefeld { font-size: 28px; font-weight: 800; letter-spacing: .25em; text-align: center; padding: 8px; border-radius: 12px; background: var(--feld); -webkit-user-select: all; user-select: all; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabelle th, .tabelle td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.tabelle th:first-child, .tabelle td:first-child { text-align: left; }
.tabelle input { width: 46px; min-height: 34px; text-align: center; border-radius: 8px; border: 1px solid var(--line); background: var(--feld); }

@media (min-width: 700px) {
  .raster2, .wgkacheln { gap: 12px; }
  .orden { grid-template-columns: repeat(3, 1fr); }
}
/* Kleine Handys (360 px und weniger): Namen im Bingo und die Zone auf „Heute“ ganz zeigen */
@media (max-width: 380px) {
  .wer { gap: 4px; padding: 0 3px; }
  .wer button { gap: 3px; padding: 0 4px 0 2px; }
  .wer .av { --s: 22px !important; }
  .kachel .zkatze { width: 38px; height: 38px; right: 8px; top: 8px; border-radius: 11px; }
  .kachel .tz { font-size: 16px; gap: 6px; }
}
/* Sehr schmal (320 px): Namen in zwei Reihen, Zonenbild weglassen (die Zone steht als Symbol und Text da) */
@media (max-width: 340px) {
  .wer { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .kachel .zkatze { display: none; }
}
/* ---------- Pummel: Medi & Napf (prototypen/medi-napf.html, Kombi aus 1, 2 und 5) ---------- */
.pm-katze { display: block; width: 100%; height: auto; overflow: visible; pointer-events: none; }
.pm-ic { width: 24px; height: 24px; display: block; }
.pm-hand { display: block; font-family: 'Caveat', 'Segoe Print', cursive; font-weight: 700; font-size: 21px; line-height: 1.1; color: #FFE9CC; }
:root[data-theme="hell"] .pm-hand { color: #9A5418; }
.pm-sagt { text-align: center; margin: 0; }
.pm-abst { margin-top: 6px; }
.pm-karte { display: flex; flex-direction: column; gap: 8px; }
.pm-kopf, .pm-wg { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-height: 48px; }
.pm-kopf b { display: block; font-size: 15px; }
.pm-kopfbild { width: 54px; height: 44px; flex: none; display: block; }
.pm-kopfbild .pm-katze { width: 100%; height: 100%; }

.pm-zeile, .pm-mk, .pm-fach, .pm-rl { --tc: var(--cy); }
.pm-zeile.futter, .pm-mk.futter, .pm-fach.futter, .pm-rl.futter { --tc: var(--warm); }
.pm-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.pm-sym { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--tc); flex: none; }
.pm-zeile b { font-size: 15px; }
.pm-st { font-size: 12.5px; font-weight: 700; margin-top: 2px; color: var(--mut); }
.pm-zeile.s-now { border-color: color-mix(in srgb, var(--tc) 55%, transparent); }
.pm-zeile.s-now .pm-st { color: var(--tc); }
.pm-zeile.s-late { border-color: color-mix(in srgb, var(--bad) 50%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--bad) 18%, transparent); }
.pm-zeile.s-late .pm-st { color: var(--bad); }
.pm-zeile.s-done .pm-st { color: var(--ok); }
.btn.pm-geben { flex: none; min-height: 40px; }
.btn.pm-geben.futter { background: linear-gradient(90deg, var(--warm), #FF8A3D); color: #2A1408; }
.pm-fertig { flex: none; display: flex; align-items: center; gap: 4px; min-height: 40px; border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); border-radius: 999px; padding: 3px 11px 3px 3px; color: var(--ok); }
.pm-haken svg { width: 16px; height: 16px; }

/* 1 Tagesuhr */
.pm-uhr { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto; }
.pm-uhr > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pm-uhr .pm-spur { stroke: var(--ink); stroke-opacity: .45; }
.pm-mitte { position: absolute; left: 50%; top: 53%; width: 44%; transform: translate(-50%, -50%); }
.pm-mk { position: absolute; z-index: 1; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; border: 2.5px solid var(--tc); background: var(--bg2); color: var(--tc); display: grid; place-items: center; padding: 0; }
.pm-mk svg { width: 24px; height: 24px; }
.pm-mk.s-now { animation: pm-ping 1.6s infinite; }
.pm-mk.s-late { --pc: var(--bad); border-color: var(--bad); color: var(--bad); animation: pm-ping 1s infinite; }
.pm-mk.s-done { background: var(--ok); border-color: var(--ok); color: #04210F; }
.pm-mk.s-later, .pm-mk.s-soon { opacity: .75; }
.pm-jetzt { position: absolute; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 12px var(--ink), 0 0 0 4px color-mix(in srgb, var(--ink) 15%, transparent); pointer-events: none; }
@keyframes pm-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pc, var(--tc)) 65%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }

/* 2 Pillendose */
.pm-dose { padding: 14px 10px 12px; border-radius: 22px; background: linear-gradient(180deg, #14284F, #0B1734); border: 1px solid rgba(140, 200, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px rgba(0, 0, 0, .4); }
:root[data-theme="hell"] .pm-dose { background: var(--card); border-color: var(--line); box-shadow: var(--schatten); }
.pm-raster { display: grid; grid-template-columns: 24px repeat(7, minmax(0, 1fr)); gap: 5px; align-items: center; }
.pm-wt { font-size: 11px; font-weight: 800; text-align: center; color: var(--mut); line-height: 1.2; }
.pm-wt.heute { color: var(--ink); }
.pm-rl { color: var(--tc); display: grid; place-items: center; }
.pm-fach { position: relative; height: 58px; min-width: 0; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(2, 8, 20, .6); color: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; overflow: hidden; perspective: 160px; }
:root[data-theme="hell"] .pm-fach { background: var(--card2); }
.pm-fach:disabled { cursor: default; }
.pm-fach::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(165deg, color-mix(in srgb, var(--tc) 55%, transparent), color-mix(in srgb, var(--tc) 18%, transparent)); transform-origin: top; transition: transform .5s cubic-bezier(.3, 1.3, .5, 1), opacity .5s; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.pm-fach.offen::before, .pm-fach.fehlt::before { transform: rotateX(80deg); opacity: .35; }
.pm-fach.vorher::before { opacity: 0; }
.pm-fach.vorher, .pm-fach.spaeter { opacity: .4; }
.pm-fach.fehlt { border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.pm-fach.fehlt small { color: var(--bad); }
.pm-fach.heute { border: 2px solid color-mix(in srgb, var(--tc) 45%, transparent); }
.pm-fach.heute.s-now { border-color: var(--tc); animation: pm-ping 1.8s infinite; }
.pm-fach.heute.s-late { --pc: var(--bad); border-color: var(--bad); animation: pm-ping 1.1s infinite; }
.pm-fach small { position: relative; font-size: 10px; font-weight: 700; color: var(--mut); font-variant-numeric: tabular-nums; }
.pm-fach .av { position: relative; }
.pm-tap { position: relative; font-size: 10px; font-weight: 800; color: #031024; }

/* Wer hat's gemacht */
.pm-stat { display: flex; flex-direction: column; gap: 12px; }
.pm-sr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; }
.pm-sn { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.pm-krone { font-size: 10.5px; font-weight: 800; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 999px; padding: 1px 7px; }
.pm-sc { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-sc small { font-weight: 600; color: var(--mut); font-size: 11.5px; }
.pm-sb { grid-column: 1 / -1; height: 10px; display: flex; gap: 2px; border-radius: 5px; background: var(--card2); overflow: hidden; }
.pm-sb i { display: block; height: 100%; border-radius: 5px; }
.pm-sb .m, .pm-legende .m { background: var(--cy); }
.pm-sb .f, .pm-legende .f { background: var(--warm); }
.pm-legende { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--mut); }
.pm-legende span { display: flex; align-items: center; gap: 5px; }
.pm-legende i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pm-rot { color: var(--bad); }

/* 5 Erinnerung in drei Stufen */
.pm-stufen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pm-stufen div { border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 8px; font-size: 12px; color: var(--mut); line-height: 1.3; }
.pm-stufen b { display: block; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.pm-stufen .an { border-color: var(--warm); color: var(--ink); background: color-mix(in srgb, var(--warm) 9%, transparent); }
.pm-stufen .an.dringend { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }

/* Admin */
.pm-adm { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.feld.pm-zeit { width: 128px; flex: none; }
@media (max-width: 340px) { .pm-raster { gap: 3px; grid-template-columns: 20px repeat(7, minmax(0, 1fr)); } .pm-fach .av { --s: 18px !important; } }

/* Nur für Bildschirmleser (z. B. die Ansage-Fläche für Hinweise) */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
