/* ==========================================================
   Familienplaner – Design
   Fluid: Handy, Tablet, Wandbildschirm (16:9 und 9:16)
   ========================================================== */
:root {
  --bg: #FFF7EC; --bg-a: #FFE1E1; --bg-b: #DDF3FF;
  --card: #FFFFFF; --ink: #2B2A4C; --mute: #7C7A9B; --line: #F0E4D2; --soft: #FBF1E3;
  --brand: #FF5D73; --brand-2: #FF9F43; --ok: #1DD1A1; --warn: #FFB020; --danger: #E5484D;
  --shadow: 0 6px 22px rgba(90, 60, 20, .09); --shadow-s: 0 2px 8px rgba(90, 60, 20, .08);
  --r: 1.35rem; --rs: .9rem;
  --nav-h: 4.6rem; --rail-w: 5.8rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17162B; --bg-a: #3A1F3F; --bg-b: #17344A; --card: #25244A; --ink: #F4F2FF; --mute: #A9A7CC; --line: #373663; --soft: #2E2D58;
    --shadow: 0 6px 22px rgba(0, 0, 0, .35); --shadow-s: 0 2px 8px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17162B; --bg-a: #3A1F3F; --bg-b: #17344A; --card: #25244A; --ink: #F4F2FF; --mute: #A9A7CC; --line: #373663; --soft: #2E2D58;
  --shadow: 0 6px 22px rgba(0, 0, 0, .35); --shadow-s: 0 2px 8px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: clamp(15px, .9vw + 11.5px, 21px); }
body.kiosk { font-size: 1.18em; }
body {
  margin: 0; color: var(--ink); min-height: 100vh; min-height: 100dvh;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: radial-gradient(60rem 40rem at -10% -10%, var(--bg-a), transparent 60%), radial-gradient(55rem 38rem at 110% 0%, var(--bg-b), transparent 60%), var(--bg);
  background-attachment: fixed; line-height: 1.35; overflow-x: hidden;
}
body.is-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
b { font-weight: 800; }
small { color: var(--mute); font-size: .78em; font-weight: 600; }
.muted { color: var(--mute); font-weight: 600; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------- Shell ---------- */
#app { min-height: 100vh; min-height: 100dvh; display: block; }
.main { padding: 0 clamp(.7rem, 2vw, 1.6rem) calc(var(--nav-h) + 5.5rem); max-width: 112rem; margin: 0 auto; }
.top { display: flex; align-items: center; gap: 1rem; padding: calc(.7rem + env(safe-area-inset-top)) 0 .6rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 900; font-size: 1.25rem; letter-spacing: -.01em; }
.logo { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .8rem; background: linear-gradient(135deg, #FF8A5B, #FF4D8D); box-shadow: var(--shadow-s); font-size: 1.3rem; }
.clock { flex: 1; text-align: center; color: var(--mute); font-weight: 800; white-space: pre; }
.top-r { display: flex; gap: .4rem; align-items: center; margin-left: auto; }
.icon-btn { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: var(--card); box-shadow: var(--shadow-s); transition: transform .12s; }
.icon-btn:active { transform: scale(.92); }
.icon-btn.lg { width: 2.9rem; height: 2.9rem; font-size: 1.6rem; font-weight: 800; line-height: 1; padding-bottom: .15rem; }
.icon-btn.dim { background: transparent; box-shadow: none; color: var(--mute); width: 2.2rem; height: 2.2rem; }
.net { font-size: 1.3rem; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Navigation ---------- */
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; color: var(--mute); font-weight: 800; transition: .15s; }
.nav .ni { font-size: 1.6rem; filter: grayscale(.6); transition: .15s; }
.nav .nl { font-size: .72rem; }
.nav button.on { color: var(--brand); }
.nav button.on .ni { filter: none; transform: translateY(-2px) scale(1.12); }
.nav.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: .35rem .5rem env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(90, 60, 20, .07);
}
.nav.bar button { flex: 1; border-radius: 1rem; }
.nav.rail { display: none; }
.fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: calc(var(--nav-h) + 1.1rem + env(safe-area-inset-bottom)); z-index: 19;
  width: 4rem; height: 4rem; border-radius: 50%; font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; padding-bottom: .2rem;
  background: linear-gradient(135deg, #FF8A5B, #FF4D8D); box-shadow: 0 10px 26px rgba(255, 77, 141, .45); transition: transform .15s;
}
.fab:active { transform: scale(.9) rotate(90deg); }
@media (min-width: 900px) and (orientation: landscape) {
  .nav.bar { display: none; }
  .nav.rail {
    display: flex; flex-direction: column; gap: .3rem; position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 20;
    padding: 1rem .6rem; background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(14px); border-right: 1px solid var(--line);
  }
  .rail-logo { text-align: center; font-size: 2rem; margin-bottom: .6rem; }
  .nav.rail button { padding: .7rem 0; border-radius: 1.1rem; }
  .nav.rail button.on { background: color-mix(in srgb, var(--brand) 12%, transparent); }
  #app { padding-left: var(--rail-w); }
  .main { padding-bottom: 6rem; }
  .fab { bottom: 1.6rem; }
  .brand .logo { display: none; }
}

/* ---------- Bausteine ---------- */
.av { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.35rem; flex: none; line-height: 1;
  background: color-mix(in srgb, var(--c, #cfd2e6) 28%, var(--card)); box-shadow: inset 0 0 0 2.5px var(--c, #cfd2e6); }
.av.xs { width: 1.35rem; height: 1.35rem; font-size: .78rem; box-shadow: inset 0 0 0 1.5px var(--c); }
.av.sm { width: 1.8rem; height: 1.8rem; font-size: 1rem; box-shadow: inset 0 0 0 2px var(--c, #cfd2e6); }
.av.lg { width: 3.2rem; height: 3.2rem; font-size: 1.85rem; }
.av.xl { width: 4rem; height: 4rem; font-size: 2.3rem; }
.av.xxl { width: 5.6rem; height: 5.6rem; font-size: 3.2rem; box-shadow: inset 0 0 0 4px var(--c, #cfd2e6), 0 8px 20px color-mix(in srgb, var(--c, #999) 35%, transparent); }
.av.all { background: var(--soft); box-shadow: inset 0 0 0 2px var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .8rem 1.2rem; border-radius: 1rem; font-weight: 800; background: var(--soft); transition: transform .1s; text-decoration: none; color: var(--ink); text-align: center; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { color: #fff; background: linear-gradient(135deg, #FF8A5B, #FF4D8D); box-shadow: 0 6px 16px rgba(255, 77, 141, .32); }
.btn.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--card)); }
.btn.big { padding: 1rem 1.6rem; font-size: 1.1rem; width: 100%; }
.btn.sm { padding: .5rem .8rem; font-size: .85rem; border-radius: .8rem; }
.btn:disabled { opacity: .5; }
.btn.small-btn { display: flex; width: 100%; margin-top: .5rem; padding: .7rem 1rem; }
.grow { flex: 1; }
.pill { padding: .55rem 1rem; border-radius: 99px; font-weight: 800; background: var(--card); box-shadow: var(--shadow-s); font-size: .92rem; white-space: nowrap; }
.pill.on { background: var(--brand); color: #fff; }
.card { background: var(--card); border-radius: var(--r); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.card h3 .mini { margin-left: auto; font-size: .8rem; background: var(--soft); border-radius: 99px; padding: .3rem .7rem; font-weight: 800; }
.lock { font-size: .75em; opacity: .7; }
.none { color: var(--mute); text-align: center; padding: 1.1rem .5rem; font-weight: 700; font-size: .92rem; }
.hint { color: var(--mute); font-size: .82rem; text-align: center; margin: 1.4rem 0 0; font-weight: 600; }
.bar-p { height: .55rem; border-radius: 9px; background: color-mix(in srgb, var(--c, #999) 18%, var(--soft)); overflow: hidden; }
.bar-p > i { display: block; height: 100%; border-radius: 9px; background: var(--c, var(--brand)); transition: width .5s cubic-bezier(.3, 1.4, .5, 1); }
.seg { display: inline-flex; background: var(--soft); border-radius: 99px; padding: .25rem; gap: .2rem; }
.seg button { padding: .5rem 1rem; border-radius: 99px; font-weight: 800; font-size: .9rem; color: var(--mute); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }
.sheet .seg { display: flex; } .sheet .seg button { flex: 1; }
.err { color: var(--danger); font-weight: 700; min-height: 1.2em; font-size: .9rem; }

/* ---------- Kopf der Ansichten ---------- */
.dayhead { display: flex; justify-content: space-between; align-items: flex-end; gap: .8rem 1rem; flex-wrap: wrap; margin: .4rem 0 1rem; }
.dayhead.tight { margin-top: 0; }
.dh-l h1 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.dh-l h1 span { color: var(--mute); font-weight: 700; font-size: .55em; letter-spacing: 0; }
.dh-l h2 { font-size: 1.4rem; font-weight: 900; }
.dh-l small { display: block; font-size: .95rem; }
.dh-r { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.banner { display: flex; align-items: center; width: 100%; gap: .6rem; padding: .8rem 1.1rem; border-radius: 1.1rem; font-weight: 800; background: color-mix(in srgb, var(--warn) 22%, var(--card)); margin-bottom: .9rem; text-align: left; }
.banner span { margin-left: auto; font-size: 1.4rem; }
.cds { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.cds:empty { display: none; }
.cd { display: inline-flex; gap: .5rem; align-items: center; background: var(--card); padding: .45rem .9rem; border-radius: 99px; box-shadow: var(--shadow-s); font-weight: 700; font-size: .9rem; }
.cd b { color: var(--brand); } .cd.now { background: linear-gradient(135deg, #FFE08A, #FFB3C1); color: #3a2a00; } .cd.now b { color: #b0003a; }

/* ---------- Heute: Personenspalten ---------- */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; align-items: start; }
.col { background: var(--card); border-radius: var(--r); padding: .9rem; box-shadow: var(--shadow); border-top: .45rem solid var(--c); transition: transform .15s, box-shadow .15s, background .15s; }
.col.open { border-top-style: dashed; background: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: none; border: 2px dashed var(--line); border-top: .45rem dashed #b9bdd3; }
.col-h { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.col-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.col-t b { font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal { display: inline-flex; align-items: baseline; gap: .15rem; font-weight: 900; font-size: 1.15rem; padding: .35rem .75rem; border-radius: 99px; background: color-mix(in srgb, var(--c, #FFB020) 16%, var(--card)); }
.bal i { font-style: normal; font-size: .9em; }
.bar-p + .rows { margin-top: .8rem; }
.rows { display: flex; flex-direction: column; gap: .5rem; }
.addhere { width: 100%; margin-top: .6rem; padding: .6rem; border-radius: .9rem; color: var(--mute); font-weight: 800; border: 2px dashed var(--line); transition: .15s; }
.addhere:hover { color: var(--ink); border-color: var(--c, var(--brand)); }
.allstrip { background: var(--card); border-radius: var(--r); padding: .8rem; margin-bottom: 1rem; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.allstrip > b { padding: 0 .4rem; }
.allrow { flex: 1 1 15rem; }

/* ---------- Zeilen (Aufgaben / Termine) ---------- */
.row { display: flex; align-items: center; gap: .65rem; padding: .65rem .75rem; border-radius: 1rem; position: relative; cursor: pointer; touch-action: pan-y;
  background: color-mix(in srgb, var(--c) 12%, var(--card)); box-shadow: inset .3rem 0 0 var(--c); transition: transform .12s, opacity .2s; }
.row:active { transform: scale(.985); }
[data-drag] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.row .rt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rtt { font-weight: 800; font-size: 1rem; overflow-wrap: anywhere; }
.rtt .em { margin-right: .35rem; }
.row .tm { flex: none; min-width: 2.6rem; text-align: center; font-weight: 900; font-size: .85rem; color: var(--c); filter: brightness(.85); }
.chk { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 3px solid var(--c, var(--brand)); background: var(--card); display: grid; place-items: center; transition: .18s; }
.chk svg { width: 70%; height: 70%; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .3s .05s; }
.row.done .chk, .si.done .chk { background: var(--c, var(--ok)); } .row.done .chk svg, .si.done .chk svg { stroke-dashoffset: 0; }
.row.pend .chk { background: repeating-linear-gradient(45deg, var(--c) 0 5px, color-mix(in srgb, var(--c) 40%, #fff) 5px 10px); animation: pulse 1.6s infinite; }
.row.done { opacity: .55; } .row.done .rtt { text-decoration: line-through; }
.pts { flex: none; font-weight: 900; font-size: .9rem; padding: .25rem .6rem; border-radius: 99px; background: #FFE08A; color: #5b3d00; white-space: nowrap; }
.pts i { font-style: normal; margin-left: .1rem; } .pts.wait { opacity: .6; }
.whos { display: flex; flex: none; } .whos .av + .av { margin-left: -.5rem; }
.row.dragging, .chip.dragging, .wish.dragging { opacity: .35; }
.ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; box-shadow: 0 16px 36px rgba(0, 0, 0, .28); border-radius: 1rem; background: var(--card); opacity: .96; will-change: transform; }
.hot { outline: 3px dashed var(--c, var(--brand)); outline-offset: -3px; background-color: color-mix(in srgb, var(--c, var(--brand)) 14%, var(--card)); }
body.is-dragging .col:not(.hot), body.is-dragging .wcell:not(.hot) { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }

#tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; transform: translateY(110%); transition: transform .22s cubic-bezier(.3, 1.3, .5, 1); pointer-events: none; padding-bottom: env(safe-area-inset-bottom); }
#tray.on { transform: none; pointer-events: auto; }
.tray-in { margin: 0 auto; max-width: 70rem; padding: .6rem .8rem 1rem; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); border-radius: 1.6rem 1.6rem 0 0; box-shadow: 0 -10px 36px rgba(0, 0, 0, .2); text-align: center; }
.tray-row { display: flex; gap: .6rem; justify-content: center; margin-top: .4rem; flex-wrap: wrap; }
.tray-p { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .8rem; border-radius: 1.1rem; min-width: 4.6rem; background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.tray-p b { font-size: .8rem; }

/* ---------- Kalender ---------- */
.fchips { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .8rem; }
.fchip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .8rem .25rem .3rem; border-radius: 99px; font-weight: 800; font-size: .88rem; background: color-mix(in srgb, var(--c) 18%, var(--card)); transition: .15s; }
.fchip.off { opacity: .4; filter: grayscale(1); }
.mgrid { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: .6rem; }
.mdow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: 900; color: var(--mute); font-size: .8rem; padding-bottom: .4rem; }
.mcells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.mcell { min-height: clamp(5rem, 11vh, 9rem); border-radius: .8rem; padding: .3rem; background: var(--soft); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; gap: .15rem; }
.mcell.other { opacity: .45; }
.mcell.today { background: color-mix(in srgb, var(--brand) 14%, var(--card)); box-shadow: inset 0 0 0 2.5px var(--brand); }
.dn { font-weight: 900; font-size: .85rem; padding: 0 .2rem; } .mcell.today .dn { color: var(--brand); }
.mchips { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.chip { display: flex; align-items: center; gap: .25rem; padding: .12rem .35rem; border-radius: .5rem; font-size: .74rem; font-weight: 800; min-width: 0; touch-action: pan-y;
  background: color-mix(in srgb, var(--c) 24%, var(--card)); box-shadow: inset .2rem 0 0 var(--c); cursor: grab; }
.chip i { font-style: normal; flex: none; } .chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chip em { font-style: normal; opacity: .65; }
.chip.done { opacity: .5; text-decoration: line-through; }
.more { font-size: .72rem; font-weight: 900; color: var(--mute); padding-left: .3rem; }
.wgrid { display: grid; grid-template-columns: 7.5rem repeat(7, minmax(0, 1fr)); gap: .4rem; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: .6rem; }
.whd { display: flex; flex-direction: column; align-items: center; padding: .4rem 0; border-radius: .9rem; font-weight: 900; }
.whd b { font-size: 1.4rem; } .whd.today { background: var(--brand); color: #fff; } .whd.today small { color: #ffe; }
.wrow-h { display: flex; align-items: center; gap: .45rem; padding: .3rem; border-radius: .9rem; background: color-mix(in srgb, var(--c) 14%, var(--card)); font-size: .85rem; min-width: 0; }
.wrow-h b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcell { min-height: 5.4rem; border-radius: .9rem; padding: .3rem; background: var(--soft); display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.wcell.today { background: color-mix(in srgb, var(--brand) 10%, var(--soft)); }
.wstack { display: flex; flex-direction: column; gap: .7rem; }
.wday { background: var(--card); border-radius: var(--r); padding: .8rem; box-shadow: var(--shadow); }
.wday.today { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.wday header { display: flex; justify-content: space-between; margin-bottom: .5rem; cursor: pointer; } .wday header span { color: var(--mute); font-weight: 700; }

/* ---------- Belohnungen ---------- */
.ptabs { display: flex; gap: .6rem; overflow-x: auto; padding: .3rem .1rem .8rem; margin-top: .3rem; scrollbar-width: none; }
.ptab { display: flex; align-items: center; gap: .5rem; padding: .35rem 1rem .35rem .4rem; border-radius: 99px; background: var(--card); box-shadow: var(--shadow-s); font-weight: 800; white-space: nowrap; }
.ptab em { font-style: normal; background: #FFE08A; color: #5b3d00; border-radius: 99px; padding: .1rem .55rem; font-size: .85rem; }
.ptab.on { background: var(--c); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 45%, transparent); } .ptab.on .av { box-shadow: inset 0 0 0 2.5px #fff; }
.stars-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .stars-grid { grid-template-columns: repeat(2, 1fr); } .hero { grid-column: 1 / -1; } }
.hero { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, var(--card)), var(--card) 70%); }
.hero h2 { font-size: 1.5rem; }
.big-bal { font-weight: 900; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.03em; } .big-bal span { font-size: .38em; margin-left: .3rem; color: var(--mute); font-weight: 800; }
.lv { display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; align-items: center; margin-top: .6rem; max-width: 26rem; } .lv > span { font-weight: 900; } .lv small { grid-column: 2; }
.hero-stats { grid-column: 1 / -1; display: flex; gap: .6rem; flex-wrap: wrap; } .hero-stats > div { flex: 1 1 6rem; background: color-mix(in srgb, var(--card) 80%, transparent); border-radius: 1rem; padding: .6rem .8rem; display: flex; flex-direction: column; } .hero-stats b { font-size: 1.25rem; }
.goal { grid-column: 1 / -1; font-weight: 700; padding: .6rem .9rem; border-radius: 1rem; background: color-mix(in srgb, var(--warn) 20%, var(--card)); } .goal.ok { background: color-mix(in srgb, var(--ok) 22%, var(--card)); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .7rem; }
.reward { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; padding: .9rem .6rem; border-radius: 1.2rem; background: var(--soft); }
.reward.can { background: color-mix(in srgb, var(--ok) 16%, var(--card)); box-shadow: inset 0 0 0 2px var(--ok); }
.reward .bar-p { width: 100%; } .r-e { font-size: 2.4rem; line-height: 1; } .reward b { font-size: .95rem; }
.redit { position: absolute; right: .3rem; top: .2rem; opacity: .35; font-size: 1rem; padding: .3rem; }
.rank { display: flex; flex-direction: column; gap: .5rem; }
.rk { display: grid; grid-template-columns: 1.6rem auto 6rem 1fr 2.2rem; gap: .5rem; align-items: center; } .rk em { font-style: normal; font-weight: 900; text-align: right; } .rk b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apr { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); } .apr > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card.warn { background: color-mix(in srgb, var(--warn) 12%, var(--card)); }
.hist { display: flex; gap: .7rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--line); } .hist > span { font-size: 1.4rem; width: 2rem; text-align: center; } .hist > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hist em { font-style: normal; font-weight: 900; font-size: 1.1rem; } .pos { color: #0aa57b; } .neg { color: var(--danger); }

/* ---------- Essen & Listen ---------- */
.subtabs { display: flex; gap: .4rem; background: var(--soft); border-radius: 99px; padding: .3rem; margin: .5rem 0 1rem; }
.subtabs button { flex: 1; padding: .6rem; border-radius: 99px; font-weight: 800; color: var(--mute); } .subtabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }
.subtabs em { font-style: normal; background: var(--brand); color: #fff; border-radius: 99px; padding: .05rem .5rem; font-size: .78rem; margin-left: .2rem; }
.two-pane { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.pane { container-type: inline-size; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.1rem; min-width: 0; }
.two-pane[data-show="plan"] [data-p="wish"], .two-pane[data-show="wish"] [data-p="plan"], .two-pane[data-show="shop"] [data-p="notes"], .two-pane[data-show="notes"] [data-p="shop"] { display: none; }
@media (min-width: 1000px) {
  .two-pane { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .two-pane .pane { display: block !important; } .only-narrow { display: none !important; }
}
.plan { display: flex; flex-direction: column; gap: .5rem; }
.pday { display: grid; grid-template-columns: 3rem 1fr 1fr; gap: .5rem; align-items: stretch; }
.pd { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: .9rem; background: var(--soft); font-weight: 900; } .pd span { font-size: .8rem; color: var(--mute); }
.pday.today .pd { background: var(--brand); color: #fff; } .pday.today .pd span { color: #ffe; }
.slot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .5rem .7rem; border-radius: .9rem; background: var(--soft); min-height: 3.6rem; text-align: left; min-width: 0; border: 2px dashed transparent; }
.slot small { font-size: .7rem; } .slot.full { background: color-mix(in srgb, var(--ok) 15%, var(--card)); border-color: transparent; }
.slot span { display: flex; gap: .35rem; align-items: center; min-width: 0; } .slot b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; } .slot i { font-style: normal; }
.slot .plus { color: var(--mute); font-size: 1.3rem; } .slot em { position: absolute; right: .4rem; top: .4rem; }
.slot.hot { border-color: var(--ok); }
.addbar { display: flex; gap: .5rem; margin-bottom: .8rem; } .addbar .inp { flex: 1; min-width: 0; }
.wishes, .shop { display: flex; flex-direction: column; gap: .5rem; }
.wish { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 1rem; background: var(--soft); cursor: grab; touch-action: pan-y; }
.we { font-size: 1.8rem; } .wt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .wt b { overflow-wrap: anywhere; }
.voters { display: flex; } .voters .av + .av { margin-left: -.4rem; }
.heart { display: flex; align-items: center; gap: .25rem; font-size: 1.4rem; padding: .3rem .6rem; border-radius: 99px; background: var(--card); } .heart span { font-size: .9rem; font-weight: 900; } .heart.on { background: color-mix(in srgb, var(--brand) 16%, var(--card)); } .heart:active { transform: scale(1.25); }
.quick { margin-bottom: .8rem; }
.si { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 1rem; background: var(--soft); } .si b { flex: 1; overflow-wrap: anywhere; } .si.done { opacity: .5; } .si.done b { text-decoration: line-through; } .se { font-size: 1.4rem; }
.si .chk { --c: var(--ok); }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; padding: .4rem; }
.note { position: relative; text-align: left; padding: 1.5rem .9rem 1rem; border-radius: .4rem .4rem 1.4rem .4rem; min-height: 8rem; color: #2b2a4c; box-shadow: 0 8px 14px rgba(0, 0, 0, .14); transform: rotate(var(--rot)); transition: transform .15s; display: flex; flex-direction: column; gap: .4rem; }
.note:hover { transform: rotate(0) scale(1.03); } .note p { font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; } .note small { color: #2b2a4c99; } .pin { position: absolute; top: -.5rem; left: 50%; transform: translateX(-50%); font-size: 1.3rem; }

/* ---------- Leerer Zustand ---------- */
.empty-hero { text-align: center; max-width: 30rem; margin: 12vh auto; display: flex; flex-direction: column; gap: 1rem; align-items: center; } .empty-hero .big { font-size: 5rem; } .empty-hero p { color: var(--mute); font-weight: 600; }

/* ---------- Dialoge ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(30, 20, 50, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.overlay.in { background: rgba(30, 20, 50, .5); backdrop-filter: blur(3px); }
.sheet { width: 100%; max-width: 36rem; max-height: 92dvh; overflow-y: auto; background: var(--card); border-radius: 1.8rem 1.8rem 0 0; padding: .6rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, 1, .3, 1); display: flex; flex-direction: column; gap: .8rem; overscroll-behavior: contain; }
.overlay.in .sheet { transform: none; }
.sheet.small { max-width: 28rem; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 1.8rem; transform: translateY(2rem) scale(.96); opacity: 0; transition: .22s; } .overlay.in .sheet { opacity: 1; } }
.grab { width: 3rem; height: .3rem; border-radius: 9px; background: var(--line); margin: 0 auto .1rem; flex: none; }
.sh-head { display: flex; align-items: center; justify-content: space-between; } .sh-head h3 { font-size: 1.3rem; }
.sheet h3 { font-size: 1.3rem; } .x { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--soft); font-weight: 800; }
.inp { width: 100%; padding: .8rem 1rem; border-radius: 1rem; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; min-width: 0; }
.inp:focus { outline: none; border-color: var(--brand); } .inp.bad { border-color: var(--danger); animation: shake .3s; }
textarea.inp { resize: vertical; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 1.3rem) 55%, calc(100% - 1rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.4rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 800; font-size: .88rem; } label .muted { font-weight: 600; }
.lbl { font-weight: 800; font-size: .88rem; margin-bottom: -.3rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.titlerow { display: flex; gap: .6rem; align-items: center; } .titlerow .inp { font-size: 1.1rem; }
.emo-big { width: 3.4rem; height: 3.4rem; border-radius: 1.1rem; background: var(--soft); display: grid; place-items: center; font-size: 1.9rem; flex: none; }
.chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .1rem; } .chips.wrap { flex-wrap: wrap; overflow: visible; } .chips.tight { margin-top: .2rem; flex-wrap: wrap; }
.avgrid { flex-wrap: wrap; overflow: visible; }
.chip-e { flex: none; width: 2.6rem; height: 2.6rem; border-radius: .9rem; background: var(--soft); font-size: 1.4rem; display: grid; place-items: center; } .chip-e.on { background: color-mix(in srgb, var(--brand) 20%, var(--card)); box-shadow: inset 0 0 0 2px var(--brand); }
.chip-n { min-width: 2.6rem; padding: .45rem .6rem; border-radius: .8rem; background: var(--soft); font-weight: 800; } .chip-n.on { background: var(--brand); color: #fff; }
.chip-t { padding: .45rem .8rem; border-radius: 99px; background: var(--soft); font-weight: 700; font-size: .88rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chip-t.used { background: color-mix(in srgb, var(--ok) 18%, var(--card)); }
.sw { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6); } .sw.on { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--ink); }
.whochips { display: flex; flex-wrap: wrap; gap: .45rem; }
.wc { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .9rem .25rem .3rem; border-radius: 99px; font-weight: 800; background: var(--soft); box-shadow: inset 0 0 0 2px transparent; transition: .12s; } .wc.on { background: color-mix(in srgb, var(--c) 24%, var(--card)); box-shadow: inset 0 0 0 2.5px var(--c); }
.stepper { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; } .stepper > button:not(.chip-n) { width: 3rem; height: 3rem; border-radius: 50%; background: var(--soft); font-size: 1.4rem; font-weight: 800; } .stepper > div:not(.chips) { min-width: 5.5rem; text-align: center; font-size: 1.2rem; } .stepper b { font-size: 1.8rem; }
.btnrow { display: flex; gap: .6rem; margin-top: .3rem; } .btnrow.vert { flex-direction: column; }
.toggle { display: flex; align-items: center; gap: .8rem; text-align: left; padding: .7rem .9rem; border-radius: 1rem; background: var(--soft); font-weight: 800; font-size: .92rem; width: 100%; margin-top: .4rem; }
.toggle i { flex: none; width: 2.8rem; height: 1.6rem; border-radius: 99px; background: #c9c9da; position: relative; transition: .18s; } .toggle i::after { content: ""; position: absolute; left: .2rem; top: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.toggle.on i { background: var(--ok); } .toggle.on i::after { transform: translateX(1.2rem); } .toggle small { display: block; font-weight: 600; }
.pickgrid { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; padding: .4rem 0 .6rem; } .pick { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem 1rem; border-radius: 1.2rem; background: color-mix(in srgb, var(--c) 14%, var(--card)); min-width: 6rem; }
.pin-dots { display: flex; gap: .8rem; justify-content: center; padding: .6rem; } .pin-dots i { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--mute); } .pin-dots i.on { background: var(--brand); border-color: var(--brand); } .shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; } .key { padding: 1rem 0; border-radius: 1.1rem; background: var(--soft); font-size: 1.5rem; font-weight: 800; } .key:active { background: var(--brand); color: #fff; }
.prof-prev { text-align: center; }
.set { background: var(--soft); border-radius: 1.2rem; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; } .set h4 { font-size: 1rem; }
.set-row { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 1rem; background: var(--card); text-align: left; width: 100%; } .set-row b { flex: 1; } .chev { font-size: 1.4rem; color: var(--mute); }
.set .btn { background: var(--card); } .set .btn.danger { color: var(--danger); } .filebtn { cursor: pointer; }
@container (max-width: 34rem) { .voters { display: none; } .wish { gap: .4rem; padding: .5rem; } .we { font-size: 1.5rem; } .heart { padding: .2rem .45rem; } }
.ob-row { display: grid; grid-template-columns: 1fr 11.5rem; gap: .5rem; margin-bottom: .5rem; }
.dice-out { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; font-size: 1.6rem; font-weight: 900; min-height: 7rem; justify-content: center; } .dice-out > span:not(.av) { font-size: 4rem; line-height: 1; }
.dayppick { display: flex; flex-direction: column; gap: .4rem; } .dp-row { display: grid; grid-template-columns: 5.5rem 1fr 1fr; gap: .4rem; align-items: center; } .dp-row .chip-t { border-radius: .8rem; text-align: left; }

/* ---------- Anmeldung ---------- */
#auth { min-height: 100dvh; display: grid; place-items: center; padding: 1.2rem; }
.auth-card { width: 100%; max-width: 24rem; background: var(--card); border-radius: 2rem; padding: 2rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .9rem; text-align: center; align-items: stretch; }
.auth-logo { width: 5rem; height: 5rem; margin: 0 auto; border-radius: 1.6rem; display: grid; place-items: center; font-size: 2.8rem; background: linear-gradient(135deg, #FF8A5B, #FF4D8D); box-shadow: 0 10px 26px rgba(255, 77, 141, .4); }
.auth-card h1 { font-size: 1.8rem; font-weight: 900; }

/* ---------- Toast / Konfetti ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 6rem); transform: translate(-50%, 2rem); opacity: 0; z-index: 120; background: var(--ink); color: var(--card); padding: .75rem 1.3rem; border-radius: 99px; font-weight: 800; pointer-events: none; transition: .25s; max-width: 90vw; text-align: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 110; width: 100%; height: 100%; }

/* ---------- Responsive Feinschliff ---------- */
@media (max-width: 759px) {
  .clock { display: none; } .brand { flex: 1; }
  .mcell { min-height: 4.4rem; padding: .2rem; } .chip { padding: 0; height: .5rem; border-radius: 99px; } .chip span, .chip i { display: none; } .more { font-size: .65rem; padding: 0; }
  .mchips { flex-direction: row; flex-wrap: wrap; gap: .2rem; } .chip { width: .55rem; height: .55rem; box-shadow: none; background: var(--c); }
  .pday { grid-template-columns: 2.6rem 1fr; } .pday .slot:last-child { grid-column: 2; }
  .rk { grid-template-columns: 1.4rem auto 4.5rem 1fr 2rem; }
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .lv { margin-inline: auto; }
}
/* Hochkant auf großem Bildschirm (9:16) */
@media (orientation: portrait) and (min-width: 760px) {
  .cols { grid-template-columns: repeat(2, 1fr); } .dh-l h1 { font-size: 3rem; } .mcell { min-height: 7.5rem; }
  .fab { width: 4.6rem; height: 4.6rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
#dyn { display: flex; flex-direction: column; gap: .8rem; }
.wcell .chip em { display: none; }
.sancbadge { margin-top: .6rem; padding: .45rem .7rem; border-radius: .9rem; font-size: .85rem; font-weight: 700; background: color-mix(in srgb, var(--danger) 16%, var(--card)); }
.sancbadge b { font-weight: 900; }
.sdefs { display: flex; flex-direction: column; gap: .4rem; margin-top: .4rem; }
.sdef { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 1rem; background: var(--soft); }
.sdef > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sanc .redit { opacity: .5; }
.wc .ord { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--c); color: #fff; font-size: .75rem; font-weight: 900; margin-left: .15rem; flex: none; }
.picks { margin-top: -.2rem; }
.rotprev { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem; border-radius: 1rem; background: var(--soft); }
.rotprev.warn { color: var(--danger); font-weight: 700; font-size: .9rem; }
.pv { display: flex; flex-direction: column; padding: .35rem .6rem; border-radius: .8rem; font-weight: 800; font-size: .88rem; background: color-mix(in srgb, var(--c) 20%, var(--card)); box-shadow: inset .2rem 0 0 var(--c); }
.pv small { font-size: .7rem; }

.col-who { display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; text-align: left; border-radius: 1rem; padding: .15rem; margin: -.15rem; transition: background .15s; }
.col-who:hover { background: color-mix(in srgb, var(--c) 12%, transparent); } .col-who:active { transform: scale(.98); }
.col-who .col-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pv-head { display: flex; align-items: center; gap: .8rem; padding: .4rem 0 1rem; flex-wrap: wrap; }
.pv-t { flex: 1; min-width: 8rem; } .pv-t h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; line-height: 1.1; }
.pv-secs { display: flex; flex-direction: column; gap: .8rem; max-width: 52rem; margin: .8rem auto 0; }
.psec { background: var(--card); border-radius: var(--r); padding: .8rem; box-shadow: var(--shadow); border-left: .4rem solid var(--c); }
.psec.today { box-shadow: 0 0 0 3px var(--c), var(--shadow); }
.psec header { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .6rem; } .psec header b { font-size: 1.15rem; } .psec header span { color: var(--mute); font-weight: 700; } .psec header em { margin-left: auto; font-style: normal; color: var(--mute); font-size: .85rem; font-weight: 700; }
.btn.more { display: flex; max-width: 52rem; margin: 1rem auto 0; background: var(--card); box-shadow: var(--shadow-s); }
.dp-nav { display: flex; align-items: center; justify-content: space-between; } .dp-nav b { font-size: 1.15rem; }
.dp-dow, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; text-align: center; } .dp-dow { font-weight: 800; font-size: .78rem; color: var(--mute); }
.dp-d { position: relative; aspect-ratio: 1; border-radius: .8rem; font-weight: 800; background: var(--soft); display: grid; place-items: center; } .dp-d.other { opacity: .3; }
.dp-d.today { box-shadow: inset 0 0 0 2.5px var(--brand); } .dp-d.sel { background: var(--brand); color: #fff; }
.dp-d i { position: absolute; bottom: .3rem; width: .35rem; height: .35rem; border-radius: 50%; background: var(--brand-2); }
.scope { background: var(--soft); border-radius: 1.1rem; padding: .7rem; display: flex; flex-direction: column; gap: .5rem; }
.vseg { flex-direction: column; border-radius: 1rem; } .vseg button { border-radius: .8rem; text-align: left; padding: .6rem .9rem; }

.modebar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .3rem 0 .6rem; }
.modebar small { color: var(--mute); font-weight: 600; flex: 1; min-width: 12rem; }
.modesw { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: .25rem; border-radius: 99px; background: var(--card); box-shadow: var(--shadow-s); }
.modesw .lb { position: relative; z-index: 1; padding: .5rem 1.05rem; font-weight: 800; font-size: .92rem; color: var(--mute); text-align: center; white-space: nowrap; transition: color .2s; }
.modesw i { position: absolute; top: .25rem; bottom: .25rem; left: .25rem; width: calc(50% - .25rem); border-radius: 99px; background: linear-gradient(135deg, #FF8A5B, #FF4D8D); box-shadow: 0 4px 12px rgba(255, 77, 141, .35); transition: transform .28s cubic-bezier(.3, 1.3, .5, 1); }
.modesw.on i { transform: translateX(100%); }
.modesw:not(.on) .a, .modesw.on .b { color: #fff; }
.row.def { cursor: pointer; touch-action: auto; align-items: flex-start; }
.row.def .em-lg { font-size: 1.7rem; line-height: 1; flex: none; width: 2.2rem; text-align: center; padding-top: .15rem; }
.row.def .rt small { display: block; line-height: 1.35; }
.row.def .nx { font-weight: 700; } .row.def .nx.over { color: var(--danger); }
.rotline { display: flex; gap: .2rem; align-items: center; margin-top: .25rem; }
.rl { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: .85rem; background: color-mix(in srgb, var(--c) 22%, var(--card)); opacity: .6; }
.rl.cur { opacity: 1; box-shadow: 0 0 0 2px var(--c); }
.sublbl { font-weight: 900; font-size: .8rem; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; padding: .5rem .2rem 0; }

.pvmore { align-self: center; background: var(--card); box-shadow: var(--shadow-s); font-weight: 800; }

/* ---------- Bildschirmtastatur ---------- */
:root { --osk-h: 0px; }
#osk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; transform: translateY(105%); transition: transform .2s ease; padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0, 0, 0, .22); touch-action: none; user-select: none; -webkit-user-select: none; }
#osk.on { transform: none; }
.osk-in { max-width: 62rem; margin: 0 auto; padding: .5rem .5rem .6rem; display: flex; flex-direction: column; gap: .4rem; }
.kr { display: flex; gap: .4rem; justify-content: center; }
.k { flex: 1 1 0; min-width: 0; height: clamp(2.9rem, 8vh, 4rem); border-radius: .8rem; background: var(--soft); font-weight: 800; font-size: clamp(1.05rem, 2.4vh, 1.5rem); box-shadow: 0 2px 0 var(--line); color: var(--ink); touch-action: none; }
.k.wide { flex: 1.6 1 0; font-size: 1rem; } .k.space { flex: 6 1 0; font-size: 1rem; color: var(--mute); }
.k.on { background: var(--brand); color: #fff; } .k.go { background: linear-gradient(135deg, #FF8A5B, #FF4D8D); color: #fff; }
.k.down { transform: translateY(2px); background: color-mix(in srgb, var(--brand) 25%, var(--soft)); box-shadow: none; }
/* Platz machen: Dialoge und Inhalt rutschen über die Tastatur */
body.osk-on .overlay { padding-bottom: var(--osk-h); }
body.osk-on .sheet { max-height: calc(92dvh - var(--osk-h)); }
body.osk-on .main { padding-bottom: calc(var(--osk-h) + 6rem); }
body.osk-on .fab, body.osk-on #toast { display: none; }
body.kiosk { cursor: none; }
body.kiosk * { -webkit-tap-highlight-color: transparent; }

body.osk-on #auth { padding-bottom: calc(var(--osk-h) + 1rem); align-items: start; }

/* ---------- Identität, offene Aufgaben, Fristen ---------- */
#meBtn { position: relative; }
.lockdot { position: absolute; right: -.15rem; bottom: -.15rem; font-size: .8rem; font-style: normal; }
.claim { flex: none; padding: .5rem .9rem; border-radius: 99px; background: linear-gradient(135deg, #1DD1A1, #10b981); color: #fff; font-weight: 900; font-size: .88rem; white-space: nowrap; box-shadow: 0 4px 12px rgba(16, 185, 129, .4); transition: transform .1s; }
.claim:active { transform: scale(.94); } .claim.sm { font-size: .8rem; padding: .4rem .75rem; align-self: center; }
.rel { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--soft); color: var(--mute); font-weight: 900; }
.row.overdue { box-shadow: inset .3rem 0 0 var(--danger); } .row.overdue .rtt { color: var(--danger); }
.row .rt small { display: block; }
.duebox { display: flex; flex-direction: column; gap: .5rem; padding: .7rem; border-radius: 1rem; background: var(--soft); align-items: flex-start; } .duebox .two { width: 100%; }
.pinrow { display: flex; align-items: center; gap: .5rem; } .pinrow span { flex: 1; font-weight: 800; }
.pick small { font-size: .7rem; } .pick.cur { box-shadow: inset 0 0 0 3px var(--brand); }
