@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
}
:root {
  /* Design 1.2 „Pop“: hell, rund, Violett als Hauptfarbe */
  --bg: #f5f3ff;
  --card: #ffffff;
  --ink: #1a1530;
  --ink2: #5e5875;
  --line: #e2ddf7;
  --red: #cf3b22;
  --red-ink: #a32a14;
  --red-soft: #ffe6df;
  --green: #0e7c66;
  --green-ink: #0b5e4e;
  --green-soft: #ddf5ee;
  --blue: #5b3df5;
  --blue-ink: #3f24c9;
  --blue-soft: #ece8ff;
  --amber: #9a5b00;
  --amber-soft: #fff0d6;
  --note-soft: #fff6d6;
  --bar: #5b3df5;
  --track: #ece8ff;
  --chip: #ffffff;
  --shadow: 0 8px 24px rgba(40, 20, 120, .12);
  --radius: 24px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120f1f;
    --card: #1d1930;
    --ink: #f1eefc;
    --ink2: #aaa3c4;
    --line: #322c4d;
    --red: #ff7a5c;
    --red-ink: #ff9a82;
    --red-soft: #3d1f1a;
    --green: #3fcfa8;
    --green-ink: #6fe0c1;
    --green-soft: #14302a;
    --blue: #9d88ff;
    --blue-ink: #b9aaff;
    --blue-soft: #2a2350;
    --amber: #ffc069;
    --amber-soft: #3a2a10;
    --note-soft: #2f2a14;
    --bar: #9d88ff;
    --track: #2a2546;
    --chip: #1d1930;
    --shadow: 0 8px 24px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 17px/1.45 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: calc(var(--safe-t) + 12px) 0 calc(var(--safe-b) + 112px);
  -webkit-text-size-adjust: 100%;
}
main { max-width: 640px; margin: 0 auto; padding: 8px 16px; }
h1 { font-size: 28px; margin: 8px 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 19px; margin: 24px 0 10px; }
h3 { font-size: 15px; margin: 18px 0 8px; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }
p { margin: 6px 0; }
.muted { color: var(--ink2); }
.small { font-size: 14px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.spacer { height: 12px; }

/* Große Startbuttons */
.big {
  display: flex; align-items: center; gap: 16px; width: 100%;
  border: 0; border-radius: 20px; padding: 22px 20px; margin: 12px 0;
  font-size: 22px; font-weight: 700; color: #fff; text-align: left; cursor: pointer;
}
.big .ico { font-size: 34px; line-height: 1; }
.big .sub { display: block; font-size: 14px; font-weight: 500; opacity: .9; }
.big.red { background: var(--red); }
.big.green { background: var(--green); }
.big.blue { background: var(--blue); }
.big:active { transform: scale(.98); }

button, .btn {
  font: inherit; border: 0; border-radius: 12px; padding: 14px 18px; cursor: pointer;
  background: var(--chip); color: var(--ink); font-weight: 600; text-decoration: none; display: inline-block; text-align: center;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); padding: 10px 4px; }
.btn-danger-ghost { background: transparent; color: var(--red); }
.btn-block { display: block; width: 100%; margin: 10px 0; }
button:disabled { opacity: .5; }

label.field { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 15px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=datetime-local], input[type=date], input[type=month], select, textarea {
  font: inherit; width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); -webkit-appearance: none; appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
textarea.big-text { min-height: 220px; }
.hint { font-size: 13px; color: var(--ink2); margin-top: 6px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid transparent; background: var(--chip); color: var(--ink); border-radius: 999px;
  padding: 10px 14px; font-weight: 500; font-size: 16px;
}
.chip.on { background: var(--blue-soft); border-color: var(--blue); color: var(--ink); font-weight: 600; }
.chips.red .chip.on { background: var(--red-soft); border-color: var(--red); }
.chips.green .chip.on { background: var(--green-soft); border-color: var(--green); }

/* Foto */
.photo-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed var(--line); border-radius: var(--radius); min-height: 180px; background: var(--card);
  color: var(--ink2); font-weight: 600; cursor: pointer; overflow: hidden; position: relative;
}
.photo-drop .ico { font-size: 44px; }
.photo-drop img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; }

/* Stoppuhr */
.timer { text-align: center; padding: 26px 0 8px; }
.timer .clock { font-size: 84px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.timer.alert .clock { color: var(--red); }
.alert-box { background: var(--red-soft); color: var(--ink); border-left: 4px solid var(--red); padding: 12px 14px; border-radius: 10px; margin: 10px 0; font-weight: 600; }
.banner { display: block; background: var(--red); color: #fff; padding: 14px 16px; border-radius: 14px; font-weight: 700; text-decoration: none; margin: 8px 0; }

/* Verlauf */
.day { margin: 18px 0 6px; font-weight: 700; }
.entry { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.entry:first-child { border-top: 0; }
.entry .thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--chip); flex: none; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.entry .thumb.red { background: var(--red-soft); }
.entry .body { flex: 1; min-width: 0; }
.entry .title { font-weight: 600; }
.entry .meta { font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { background: var(--chip); border-radius: 999px; padding: 3px 10px; font-size: 13px; color: var(--ink2); }
.private { background: var(--blue-soft); border-radius: 12px; padding: 10px 12px; font-size: 15px; margin-top: 8px; white-space: pre-wrap; }

/* Kennzahlen */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 14px; }
.tile .num { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile .lbl { font-size: 14px; color: var(--ink2); }
.seg { display: flex; background: var(--chip); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; padding: 9px 6px; background: transparent; font-weight: 600; }
.seg button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Balken (eine Datenreihe, ruhiges Raster) */
.hbars .hb { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 5px; align-items: center; padding: 6px 0; }
.hbars .hb .t { grid-column: 1 / -1; }
.hbars .hb .l { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .hb .t { background: var(--track); height: 14px; border-radius: 4px; position: relative; }
.hbars .hb .f { background: var(--bar); height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.hbars .hb .v { font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.vbars { display: flex; align-items: flex-end; gap: 2px; height: 150px; border-bottom: 1px solid var(--line); padding-top: 6px; }
.vbars .vb { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: pointer; }
.vbars .vb span { display: block; width: 100%; background: var(--bar); border-radius: 4px 4px 0 0; min-height: 0; }
.vbars .vb.sel span { background: var(--ink); }
.vaxis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); margin-top: 4px; }
.caption { font-size: 14px; color: var(--ink2); min-height: 20px; margin-top: 6px; }

table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; font-size: 13px; color: var(--ink2); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--line); }
table.t td { padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge { display: inline-block; background: var(--red-soft); color: var(--red); border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 700; margin-left: 6px; }

/* Navigation unten */
[hidden] { display: none !important; }
nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  display: flex; padding: 6px 6px calc(var(--safe-b) + 6px); z-index: 10;
}
nav.tabs a { flex: 1; text-align: center; color: var(--ink2); text-decoration: none; font-size: 12px; font-weight: 600; padding: 4px 0; }
nav.tabs a .i { display: block; font-size: 23px; line-height: 1.2; }
nav.tabs a.on { color: var(--blue); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 96px); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 20;
  max-width: 90vw; text-align: center;
}
.err { color: var(--red); font-weight: 600; margin: 8px 0; }
.progress { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; background: var(--blue); width: 0; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 54px; height: 54px; font-size: 26px; padding: 0; border-radius: 50%; flex: none; }
.stepper .val { font-size: 30px; font-weight: 800; min-width: 3.5em; text-align: center; font-variant-numeric: tabular-nums; }
video { width: 100%; border-radius: 12px; margin-top: 8px; background: #000; }
.login { max-width: 380px; margin: 12vh auto 0; }
.center { text-align: center; }
.hbars .hb .f[style*="width:0%"] { min-width: 0; }

/* ---- Version 1.1 ---- */
label.check { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink2); margin-top: 8px; font-weight: 500; }
label.check input { width: 20px; height: 20px; margin: 0; flex: none; }
.entry .thumb.note { background: var(--blue-soft); }
.entry .meta.wrap { white-space: normal; }
.tablewrap { overflow-x: auto; margin: 0 -4px; }
table.t tr.sum td { font-weight: 700; }
table.t tr.st-fehler td { color: var(--red); }
table.t tr.st-vorhanden td { color: var(--ink2); }
ul.plain { padding-left: 18px; margin: 6px 0; }
ul.plain li { margin: 5px 0; }
.dose-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dose-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink2); font-weight: 600; }
.dose-grid input { width: 100%; min-width: 0; }
a.big { display: flex; color: #fff; }
svg.timeline { width: 100%; height: auto; display: block; font: 12px "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.tl-grid { stroke: var(--line); stroke-width: 1; }
.tl-year { fill: var(--ink2); font-size: 11px; }
.tl-name { fill: var(--ink); font-size: 12px; font-weight: 600; }
.tl-bar { fill: var(--bar); }
.tl-bar.approx { fill: var(--bar); opacity: .45; }
.tl-dose { fill: #fff; font-size: 11px; font-weight: 700; }
.tl-rec { fill: none; stroke: var(--ink2); stroke-width: 1.5; }
.printonly { display: none; }
.prewrap { white-space: pre-wrap; }
/* ================= Design 1.2 „Pop“ ================= */
h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 6px; }
h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 13px; font-weight: 800; letter-spacing: .05em; }
a { color: var(--blue); }
.card { border-radius: var(--radius); padding: 16px 18px; }
svg.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Begrüßung */
.greet { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.greet .date { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink2); }
.greet h1 { margin: 2px 0 0; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; text-decoration: none; flex: none; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 0; }
.sechead h2 { margin: 0; }
.sechead a { font-size: 14px; font-weight: 700; text-decoration: none; }

/* Große Buttons */
.big { border-radius: 28px; padding: 20px 22px; font-weight: 800; letter-spacing: -0.01em; }
.big svg.ico { width: 30px; height: 30px; }
.big .sub { font-weight: 500; opacity: 1; letter-spacing: 0; }
.big.red { box-shadow: 0 10px 24px rgba(207, 59, 34, .28); }
.big.blue { box-shadow: 0 10px 24px rgba(91, 61, 245, .25); }
.big.hero { justify-content: space-between; margin-top: 22px; padding: 22px; }
.big.hero .txt { display: flex; flex-direction: column; gap: 6px; }
.big.hero .ttl { font-size: 26px; }
.big.hero .go { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #cf3b22; display: flex; align-items: center; justify-content: center; flex: none; }
.big.hero .go svg.ico { width: 28px; height: 28px; }
@media (prefers-color-scheme: dark) { .big.red, .big.green, .big.blue { color: #120f1f; } }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tilebtn { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 132px; padding: 18px; border-radius: var(--radius); text-align: left; font-weight: 500; font-size: 13px; }
.tilebtn .ttl { font-size: 19px; font-weight: 800; color: var(--ink); }
.tilebtn .tico { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.tilebtn.green { background: var(--green-soft); color: var(--green-ink); }
.tilebtn.green .tico { background: var(--green); }
.tilebtn.violet { background: var(--blue-soft); color: var(--blue-ink); }
.tilebtn.violet .tico { background: var(--blue); }
@media (prefers-color-scheme: dark) { .tilebtn .tico { color: #120f1f; } }
.tilebtn:active { transform: scale(.98); }
.tilebtn:only-child { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; min-height: 0; }
.tilebtn:only-child .tico { grid-row: span 2; }

/* Buttons und Eingaben: Pillenform */
button, .btn { border-radius: 999px; padding: 15px 20px; font-weight: 700; }
.btn { background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(91, 61, 245, .25); font-weight: 800; }
.btn-red { background: var(--red); }
.btn-green { background: var(--green); }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-red, .btn-green { color: #120f1f; } }
.btn-danger-ghost { color: var(--red-ink); }
label.field { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); margin: 18px 0 8px 4px; }
label.field > input, label.field > select, label.field > textarea { display: block; margin-top: 8px; text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 500; color: var(--ink); }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=datetime-local], input[type=date], input[type=month], select, textarea {
  border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; background: var(--card);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { border-radius: 20px; }

/* Chips */
.chip { border: 2px solid var(--line); background: var(--chip); font-weight: 700; font-size: 15px; min-height: 44px; padding: 9px 16px; border-radius: 999px; }
.chip.on, .chips.red .chip.on, .chips.green .chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips.red .chip.on { background: var(--red); border-color: var(--red); }
.chips.green .chip.on { background: var(--green); border-color: var(--green); }
@media (prefers-color-scheme: dark) { .chip.on, .chips.red .chip.on, .chips.green .chip.on { color: #120f1f; } }

/* Foto */
.photo-drop { border-radius: var(--radius); border-color: var(--line); }
.photo-drop svg.ico { width: 44px; height: 44px; }

/* Stoppuhr */
.timer { background: var(--red); color: #fff; border-radius: 28px; padding: 28px 0 18px; margin-top: 12px; }
.timer .muted { color: rgba(255, 255, 255, .9); }
.timer.alert .clock { color: #fff; }
@media (prefers-color-scheme: dark) { .timer { color: #120f1f; } .timer .muted { color: rgba(18, 15, 31, .8); } .timer.alert .clock { color: #120f1f; } }
.alert-box { border-left: 0; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--red); }
.banner { display: flex; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 18px; margin-top: 14px; }
@media (prefers-color-scheme: dark) { .banner { color: #120f1f; } }

/* Einträge als einzelne Karten */
.card:has(> .entry) { background: transparent; padding: 0; }
.entry { background: var(--card); border-radius: 20px; padding: 12px; border-top: 0; margin-top: 10px; }
.entry:first-child { margin-top: 0; }
.entry .thumb { width: 48px; height: 48px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); }
.entry .thumb.red { background: var(--red-soft); color: var(--red); }
.entry .thumb.green { background: var(--green-soft); color: var(--green); }
.entry .thumb.violet { background: var(--blue-soft); color: var(--blue); }
.entry .thumb.amber { background: var(--amber-soft); color: var(--amber); }
.entry .thumb.note { background: var(--note-soft); color: var(--amber); }
.entry .title { font-weight: 800; }
.day { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); margin: 22px 4px 8px; }
.tag { background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; }
.private { border-radius: 16px; }

/* Kennzahlen */
.tile { border-radius: 22px; }
.tile .num { font-size: 30px; }
.tile .lbl { font-size: 13px; font-weight: 700; }
.seg { background: var(--card); border-radius: 999px; }
.seg button { border-radius: 999px; padding: 11px 6px; color: var(--ink2); }
.seg button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.hbars .hb .t { border-radius: 7px; }
.hbars .hb .f { border-radius: 7px; }
.vbars { border-bottom: 0; }
.vbars .vb span { border-radius: 8px 8px 4px 4px; }
.badge { border-radius: 999px; padding: 2px 9px; }

/* Navigation: schwebende Leiste, aktiver Punkt mit Text */
nav.tabs {
  left: 16px; right: 16px; bottom: calc(var(--safe-b) + 16px); max-width: 560px; margin: 0 auto;
  height: 68px; padding: 0 10px; border: 0; border-radius: 34px; box-shadow: var(--shadow);
  align-items: center; justify-content: space-between;
}
nav.tabs a { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; min-width: 48px; padding: 0; border-radius: 24px; font-size: 14px; font-weight: 700; }
nav.tabs a .l { display: none; }
nav.tabs a.on { background: var(--blue); color: #fff; padding: 0 16px; }
nav.tabs a.on .l { display: inline; }
@media (prefers-color-scheme: dark) { nav.tabs a.on { color: #120f1f; } }
.toast { border-radius: 999px; bottom: calc(var(--safe-b) + 100px); }

/* Anmeldung */
.login { margin-top: 2vh; }
.login h1 { font-size: 34px; line-height: 1.1; }
.login > .center { text-align: center; }
.login-art { position: relative; height: 230px; margin: 0 -16px 8px; }
.login-art span { position: absolute; display: flex; align-items: center; justify-content: center; }
.login-art .b1 { left: 32px; top: 24px; width: 140px; height: 140px; border-radius: 50%; background: var(--blue); color: #fff; z-index: 1; }
.login-art .b1 svg.ico { width: 60px; height: 60px; stroke-width: 1.6; }
.login-art .b2 { left: 140px; top: 96px; width: 104px; height: 104px; border-radius: 30px; background: #ff8a6b; transform: rotate(14deg); }
.login-art .b3 { left: 236px; top: 18px; width: 76px; height: 76px; border-radius: 50%; background: #9adbc8; }
@media (prefers-color-scheme: dark) { .login-art .b1 { color: #120f1f; } }
.forgot { text-align: right; margin: 4px 4px 0; font-size: 14px; font-weight: 700; }
.forgot a { text-decoration: none; display: inline-block; padding: 8px 4px; }

@media print {
  :root { --bg: #fff; --card: #fff; --ink: #000; --ink2: #444; --line: #bbb; }
  body { padding: 0; font-size: 12pt; background: #fff; color: #000; }
  nav.tabs, .noprint, .toast { display: none !important; }
  .printonly { display: block; }
  main { max-width: none; padding: 0; }
  h2 { break-after: avoid; }
  table.t { font-size: 10.5pt; }
  table.t tr { break-inside: avoid; }
}
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }

/* ------------------------------------------------------------ Version 1.3 */
/* Tabletten-Felder auf der Startseite */
.pills { margin-top: 18px; }
.pillhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 2px 10px; }
.pillhead h2 { margin: 0; font-size: 16px; }
.pillgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pill { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  min-height: 100px; padding: 12px 6px; border-radius: 20px; font: inherit; font-weight: 700; box-shadow: none; }
.pill .pl { font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.pill .ps { font-size: 12px; font-weight: 700; }
.pill.ok { background: var(--green-soft); color: var(--green-ink); border: 2px solid var(--green-soft); }
.pill.late { background: var(--red-soft); color: var(--red-ink); border: 2px solid #f3b4a6; }
.pill.open { background: var(--card); color: var(--ink2); border: 2px dashed var(--line); }
.pill .dot { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.pill.open .dot { background: var(--blue-soft); }
.pillico { width: 24px; height: 24px; }
.pill .badge-ok { position: absolute; right: -6px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.pill.late .badge-ok { background: var(--red); }
.pill .badge-ok svg.ico { width: 12px; height: 12px; stroke-width: 4; }
.pilledit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .pill.late { border-color: var(--red-soft); } .pill .badge-ok { color: #120f1f; } }

/* Tagesbericht */
.rsec .rhead { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rsec .rhead h2 { margin: 0; font-size: 18px; }
.rico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.rico.violet { background: var(--blue-soft); color: var(--blue); }
.rico.blue2 { background: #e3f0ff; color: #1d5fb8; }
.rico.green { background: var(--green-soft); color: var(--green); }
.rico.amber { background: var(--amber-soft); color: var(--amber); }
.rsec textarea { width: 100%; min-height: 96px; margin-top: 8px; }
.sharebox { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sharebox > span { flex: 1; }
.sharebox .switch { width: 26px; height: 26px; accent-color: var(--blue); flex: none; }

/* Freundes-Zugang */
.avatar.friend { background: var(--amber-soft); color: var(--amber); }
.friendwrap { display: flex; justify-content: center; padding: 48px 0 40px; }
.friendbtn { width: 260px; height: 260px; border-radius: 50%; background: var(--red); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; box-shadow: 0 0 0 14px var(--red-soft), 0 20px 40px rgba(207, 59, 34, .35); }
.friendbtn svg.ico { width: 60px; height: 60px; }
.friendbtn .ttl { font-size: 30px; font-weight: 800; }
.friendbtn .sub { font-size: 15px; font-weight: 600; }
.friendbtn:active { transform: scale(.97); }
@media (prefers-color-scheme: dark) { .friendbtn { color: #120f1f; } }
.thanks { text-align: center; padding-top: 40px; }
.bigcheck { width: 110px; height: 110px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center;
  justify-content: center; box-shadow: 0 0 0 12px var(--green-soft); margin-bottom: 14px; }
.bigcheck svg.ico { width: 56px; height: 56px; stroke-width: 3; }
.fchip { display: inline-block; background: var(--amber-soft); color: var(--amber); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
