/* Wir zwei – gemeinsamer Kalender und Einkaufsliste
   Gestaltung: kühles Küchen-Salbei, dunkle Petrol-Tinte, je Person eine Farbe.
   Gemeinsames (freie Zeit, das Zeichen oben links) ist der Übergang beider Farben. */

:root {
  --bg: #EDF1EF;
  --surface: #FFFFFF;
  --surface-2: #F5F8F7;
  --ink: #1D3436;
  --ink-2: #536767;
  --ink-3: #8A9A99;
  --line: #D5DEDB;
  --line-2: #E4EBE8;
  --ok: #3E8E5A;
  --warn: #9A6514;
  --warn-bg: #FBF1DD;
  --danger: #B3362F;
  --on-ink: #FFFFFF;
  --p0: #1E7F86;
  --p1: #C2457A;
  --p0-tint: #E3F1F2;
  --p1-tint: #F8E6EE;
  --p0-text: #135358;
  --p1-text: #852B52;
  --shadow: 0 1px 2px rgba(29, 52, 54, .06), 0 6px 18px rgba(29, 52, 54, .07);
  --radius-l: 18px;
  --radius-m: 12px;
  --radius-s: 8px;
  --tabbar-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121C1D; --surface: #1A2728; --surface-2: #213133; --ink: #E3ECEA; --ink-2: #A6B7B5; --ink-3: #6F8381;
    --line: #2E4042; --line-2: #263638; --ok: #6CC08A; --warn: #E7B45A; --warn-bg: #33291A; --danger: #F07A6F; --on-ink: #121C1D;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121C1D; --surface: #1A2728; --surface-2: #213133; --ink: #E3ECEA; --ink-2: #A6B7B5; --ink-3: #6F8381;
  --line: #2E4042; --line-2: #263638; --ok: #6CC08A; --warn: #E7B45A; --warn-bg: #33291A; --danger: #F07A6F; --on-ink: #121C1D;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--p0); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ Zeichen: zwei überlappende Scheiben */
.pair-mark { display: inline-flex; align-items: center; position: relative; width: 38px; height: 26px; flex: none; }
.pair-mark i, .pair-mark b {
  position: absolute; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 700 12px/1 var(--font); font-style: normal; color: #fff;
}
.pair-mark > :first-child { left: 0; background: var(--p0); }
.pair-mark > :last-child { left: 12px; background: var(--p1); mix-blend-mode: multiply; }
:root[data-theme="dark"] .pair-mark > :last-child { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pair-mark > :last-child { mix-blend-mode: screen; } }
.pair-mark.big { transform: scale(2.2); }
.boot { min-height: 100vh; display: grid; place-items: center; }

/* ------------------------------------------------------------ Rahmen */
.shell { min-height: 100vh; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--bg);
}
.topbar h1 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 0; flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--ink-2);
}
.icon-btn:active { background: var(--line-2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

main { padding: 0 16px; max-width: 760px; margin: 0 auto; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.tabbar button {
  flex: 1; max-width: 160px; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0 4px; color: var(--ink-3); font-size: 12px; font-weight: 600; position: relative;
}
.tabbar svg { width: 25px; height: 25px; }
.tabbar button[aria-current="page"] { color: var(--ink); }
.tabbar .badge {
  position: absolute; top: 2px; left: calc(50% + 8px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--p1); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}

/* ------------------------------------------------------------ Bausteine */
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.btn {
  border: 0; border-radius: var(--radius-m); padding: 12px 18px; font-weight: 650; font-size: 16px;
  background: var(--ink); color: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.quiet { background: none; color: var(--ink-2); padding: 8px 10px; font-weight: 600; font-size: 15px; }
.btn.danger { background: none; color: var(--danger); border: 1px solid var(--line); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; }
.btn:active:not(:disabled) { transform: translateY(1px); }

.note { font-size: 14px; color: var(--ink-2); margin: 8px 0; }
.note a, .link { color: var(--p0-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; font-size: inherit; }
.alert {
  background: var(--warn-bg); color: var(--warn); border-radius: var(--radius-m);
  padding: 10px 12px; font-size: 14px; margin: 10px 0; display: flex; gap: 8px; align-items: flex-start;
}
.alert b { font-weight: 650; }
.empty { text-align: center; padding: 48px 12px; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* ------------------------------------------------------------ Kalender */
.cal-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.lanes-head {
  position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: var(--bg); padding: 6px 0 8px;
}
.lanes-head span { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.lanes-head span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

.day { margin-bottom: 14px; }
.day-label { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 15px; }
.day-label b { font-weight: 700; }
.day-label span { color: var(--ink-2); }
.day.weekend .day-label b { color: var(--ink); }
.day.quiet { margin-bottom: 6px; }
.day.quiet .day-label { font-size: 14px; color: var(--ink-3); margin: 0; }
.day.quiet .day-label b { font-weight: 600; color: var(--ink-2); }
.day.quiet .day-label span { color: var(--ink-3); }
.day.today .day-label b { color: var(--p0-text); }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lane { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lane.empty-lane { border-top: 1.5px dashed var(--line); margin-top: 12px; }

.ev {
  background: var(--tint); border-radius: var(--radius-s);
  border-left: 3px solid var(--c);
  padding: 6px 8px 7px; min-width: 0;
}
.ev .t { font-size: 12.5px; color: var(--tx); font-weight: 650; font-variant-numeric: tabular-nums; }
.ev .n { font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.ev .l { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; margin-top: 1px; }
.ev.free-ev { opacity: .7; }
.ev.hidden-ev {
  background: repeating-linear-gradient(135deg, var(--tint) 0 6px, transparent 6px 11px), var(--surface);
}
.ev.hidden-ev .n { color: var(--ink-2); font-style: italic; }

.more { display: flex; justify-content: center; margin: 18px 0 8px; }
.cal-foot { font-size: 13px; color: var(--ink-3); text-align: center; margin: 8px 0 20px; }

/* Monat */
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.month-head h2 { font-size: 17px; margin: 0; font-weight: 700; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; background: var(--surface); padding: 8px; border-radius: var(--radius-l); box-shadow: var(--shadow); }
.month .wd { text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 2px 0 6px; }
.mday {
  border: 0; background: none; border-radius: 10px; padding: 6px 0 7px; min-height: 52px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.mday .d { font-size: 15px; font-weight: 600; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.mday.out .d { color: var(--ink-3); font-weight: 400; }
.mday.today .d { box-shadow: inset 0 0 0 2px var(--ink); }
.mday[aria-pressed="true"] .d { background: var(--ink); color: var(--on-ink); }
.mday .bars { display: flex; gap: 3px; height: 5px; }
.mday .bars i { width: 12px; height: 5px; border-radius: 3px; background: var(--c); opacity: .9; }
.mday .bars i.off { background: transparent; }
.month-day { margin-top: 16px; }

/* ------------------------------------------------------------ Einkauf */
.add-bar {
  position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 10;
  background: var(--bg); padding: 2px 0 8px;
}
.add-form { display: flex; gap: 8px; }
.add-form input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: none;
}
.add-form input:focus { border-color: var(--ink-2); }
.add-form .btn { width: 50px; padding: 0; border-radius: 14px; font-size: 26px; font-weight: 400; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 18px;
  padding: 5px 12px; font-size: 14px; color: var(--ink-2); white-space: nowrap;
}
.chip:active { background: var(--line-2); }

.shopper {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-m);
  background: var(--surface); box-shadow: var(--shadow); margin: 6px 0 12px; font-size: 15px;
}
.shopper .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--tint); flex: none; }
.shopper span { flex: 1; }

.group { margin: 10px 0 14px; }
.group h3 { font-size: 13.5px; font-weight: 650; color: var(--ink-2); margin: 0 0 6px 2px; display: flex; gap: 6px; align-items: center; }
.group h3 .count { color: var(--ink-3); font-weight: 500; }
.items { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.item { display: flex; align-items: center; min-height: 52px; border-top: 1px solid var(--line-2); }
.item:first-child { border-top: 0; }
.item .tick {
  flex: 1; min-width: 0; border: 0; background: none; text-align: left;
  display: flex; align-items: center; gap: 12px; padding: 10px 4px 10px 14px; min-height: 52px;
}
.box {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  border: 2px solid var(--c, var(--ink-3)); display: grid; place-items: center; transition: background .15s;
}
.box svg { width: 14px; height: 14px; opacity: 0; color: #fff; }
.item .name { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.item .qty { font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-right: 4px; }
.item .edit { border: 0; background: none; width: 46px; align-self: stretch; color: var(--ink-3); display: grid; place-items: center; }
.item .edit svg { width: 20px; height: 20px; }
.item.checking .box, .item.is-done .box { background: var(--c, var(--ink-3)); }
.item.checking .box svg, .item.is-done .box svg { opacity: 1; }
.item.checking .name, .item.is-done .name { text-decoration: line-through; color: var(--ink-3); }
.item.checking { transition: opacity .35s .25s; opacity: .45; }
.item.is-done .qty { color: var(--ink-3); }

.done-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 6px; }
.done-head h3 { margin: 0 0 0 2px; font-size: 13.5px; color: var(--ink-2); font-weight: 650; }
.done-list .items { box-shadow: none; background: var(--surface-2); }

.go-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 10px 16px; display: flex; justify-content: center; z-index: 25;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}
.go-bar .btn { width: 100%; max-width: 728px; box-shadow: var(--shadow); }
.shop-pad { height: 72px; }

/* Bogen zum Bearbeiten */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 20, .38); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 560px; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .22s ease-out;
  max-height: 92vh; overflow-y: auto;
}
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet .grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { margin: 0 0 14px; font-size: 18px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 5px; }
.field input {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 11px 12px; font-size: 16px; outline: none;
}
.field input:focus { border-color: var(--ink-2); background: var(--surface); }
.cat-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-grid button { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 6px 10px; font-size: 14px; }
.cat-grid button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }

/* ------------------------------------------------------------ Frei */
.free-intro { font-size: 14.5px; color: var(--ink-2); margin: 4px 0 12px; }
.week-label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); margin: 18px 0 8px 2px; }
.free-day {
  display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center;
  background: var(--surface); border-radius: var(--radius-m); padding: 10px 12px; margin-bottom: 6px;
}
.free-day .dl { line-height: 1.1; }
.free-day .dl b { display: block; font-size: 15px; }
.free-day .dl span { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.free-day .times { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.free-day.full .times { color: var(--ink); }
.track { position: relative; height: 10px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.track i {
  position: absolute; top: 0; bottom: 0; border-radius: 5px;
  background: linear-gradient(90deg, var(--p0), var(--p1));
}
.track-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Einstellungen */
.panel { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: .5; } }
.panel main { padding-bottom: 40px; }
.section { margin: 18px 0 24px; }
.section > h2 { font-size: 17px; margin: 0 0 4px; }
.section > p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.card { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 14px; margin-bottom: 10px; }
.feed-top { display: flex; align-items: flex-start; gap: 10px; }
.feed-top .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-top: 5px; flex: none; }
.feed-top div { flex: 1; min-width: 0; }
.feed-top b { display: block; font-size: 16px; }
.feed-top small { color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }
.status { font-size: 13.5px; margin: 8px 0 0; color: var(--ink-2); }
.status.ok::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.status.err { color: var(--danger); }
.feed-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
details.help { background: var(--surface-2); border-radius: var(--radius-m); padding: 10px 12px; margin: 10px 0; font-size: 14.5px; }
details.help summary { font-weight: 650; cursor: pointer; }
details.help ol { margin: 8px 0 4px; padding-left: 20px; }
details.help li { margin-bottom: 4px; }
details.help p { margin: 6px 0; color: var(--ink-2); }
.form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.form-row > span { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.foot { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 30px; }

/* ------------------------------------------------------------ Anmeldung */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.login h1 { font-size: 24px; margin: 34px 0 6px; }
.login p { color: var(--ink-2); max-width: 340px; margin: 0 auto 20px; }
.login form { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 300px; }
.login input {
  text-align: center; font-size: 28px; letter-spacing: .3em; padding: 12px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); font-variant-numeric: tabular-nums; outline: none;
}
.login input:focus { border-color: var(--ink-2); }
.login .err { color: var(--danger); font-size: 14.5px; min-height: 20px; margin: 0; }

/* ------------------------------------------------------------ Meldung unten */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 80px); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 12px; font-size: 15px; font-weight: 550;
  max-width: calc(100vw - 32px); transition: opacity .2s, transform .2s; box-shadow: var(--shadow);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast button { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; margin-left: 10px; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 640px) {
  .ev .n { font-size: 15px; }
}

/* Personen-Farben als Klassen (Inline-Styles sind per CSP gesperrt) */
.p0 { --c: var(--p0); --tint: var(--p0-tint); --tx: var(--p0-text); }
.p1 { --c: var(--p1); --tint: var(--p1-tint); --tx: var(--p1-text); }
.p2 { --c: var(--p2, #B7791F); --tint: var(--p2-tint, #F6EBD9); --tx: var(--p2-text, #7A4F12); }
.p3 { --c: var(--p3, #4A7A3A); --tint: var(--p3-tint, #E6F0E1); --tx: var(--p3-text, #2F5025); }

/* ------------------------------------------------------------ Wochengespräch */
.talk-head { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 14px 16px; margin: 4px 0 20px; }
.talk-head h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.talk-head .when { margin: 3px 0 0; color: var(--ink-2); font-size: 14px; }
.who-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.who {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 14px;
  background: var(--tint); color: var(--tx); font-size: 13.5px; font-weight: 600;
}
.who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.who.pending { background: none; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); }
.talk-note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }

.q { margin: 0 0 24px; }
.q > h3 { margin: 0 0 8px 2px; font-size: 16.5px; line-height: 1.3; }
.hint { font-size: 13.5px; color: var(--ink-2); margin: 0 0 8px 2px; }
.ans { background: var(--surface); border-left: 3px solid var(--c); border-radius: var(--radius-s); padding: 7px 10px 9px; margin-bottom: 6px; }
.ans .who-l { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--tx); margin-bottom: 2px; }
.ans .txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; }
.ans textarea {
  display: block; width: 100%; border: 0; padding: 2px 0; background: transparent; resize: none; outline: none;
  font-size: 16px; line-height: 1.4; min-height: 46px;
}
.ans textarea::placeholder { color: var(--ink-3); }
.ans:focus-within { box-shadow: 0 0 0 2px var(--line); }
.ans .saved { font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.ans.locked { background: repeating-linear-gradient(135deg, var(--tint) 0 6px, transparent 6px 11px), var(--surface); }
.ans.locked .txt { color: var(--ink-2); font-size: 14px; font-style: italic; }
.ans .lock { width: 15px; height: 15px; flex: none; }
.ans .empty-a { color: var(--ink-3); font-style: italic; font-size: 14px; }
.ans.blank { background: none; box-shadow: inset 0 0 0 1px var(--line); border-left-style: dashed; }
.just-revealed .ans.other { animation: reveal .8s ease-out both; }
@keyframes reveal { from { opacity: 0; filter: blur(4px); } }

details.week { background: var(--surface-2); border-radius: var(--radius-m); margin: 0 0 8px; }
details.week summary { cursor: pointer; padding: 10px 12px; font-size: 14.5px; font-weight: 650; }
.week-body { padding: 0 12px 12px; }
.week-body h4 { font-size: 13px; color: var(--ink-2); margin: 8px 0 6px; font-weight: 650; }
.free-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.free-list li { padding: 3px 0; }
.free-list b { display: inline-block; min-width: 64px; font-weight: 650; }
.lanes-head.static { position: static; background: none; padding: 0 0 6px; }

.items.topics { margin-bottom: 8px; }
.item.topic .name small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; text-decoration: none; }
.empty-topics { margin: 0; padding: 14px; color: var(--ink-2); font-size: 14.5px; }
.topic-add { display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--line-2); }
.topic-add input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); background: var(--surface-2);
  border-radius: 12px; padding: 9px 12px; font-size: 16px; outline: none;
}
.topic-add input:focus { border-color: var(--ink-2); background: var(--surface); }
.topic-add .btn { width: 44px; padding: 0; font-size: 24px; font-weight: 400; border-radius: 12px; }

.support { margin: 0 0 24px; }
.support h3 { font-size: 16.5px; margin: 0 0 4px 2px; }
.support h4 { font-size: 13.5px; color: var(--ink-2); font-weight: 650; margin: 10px 0 6px 2px; }
.wish-list { list-style: none; margin: 0; padding: 0; background: var(--surface-2); border-radius: var(--radius-m); }
.wish-list li { padding: 10px 14px; border-top: 1px solid var(--line-2); font-size: 15px; }
.wish-list li:first-child { border-top: 0; }
.wish-list li.done { color: var(--ink-3); text-decoration: line-through; }

.hist { margin: 28px 0 10px; }
.hist h3 { font-size: 13.5px; color: var(--ink-2); font-weight: 650; margin: 0 0 6px 2px; }
.hist-row {
  display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-top: 1px solid var(--line-2);
  background: none; text-align: left; padding: 13px 10px 13px 14px; font-size: 15px;
}
.hist-row:first-child { border-top: 0; }
.hist-row span { flex: 1; }
.hist-row small { color: var(--ink-3); font-size: 12.5px; }
.hist-row svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px -6px; }
.back-link svg { width: 18px; height: 18px; }

/* Einstellungen: Termin und Fragen */
.card-h { font-size: 15px; margin: 0 0 10px; }
.talk-time { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.talk-time .field { flex: 1 1 120px; margin-bottom: 0; }
.field select {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 12px;
  padding: 10px 12px; font-size: 16px; outline: none; color: var(--ink);
}
.qedit { display: flex; align-items: flex-start; gap: 2px; margin-bottom: 8px; }
.qedit .qmain { flex: 1; min-width: 0; margin-right: 4px; }
.qedit textarea {
  display: block; width: 100%; border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 10px;
  padding: 9px 10px; font-size: 15.5px; line-height: 1.3; outline: none; resize: none; min-height: 42px;
}
.qedit textarea:focus { border-color: var(--ink-2); background: var(--surface); }
.qedit small { display: block; font-size: 12.5px; color: var(--ink-3); margin: 3px 2px 0; }
.icon-btn.sm { width: 34px; height: 40px; border-radius: 10px; }
.icon-btn.sm svg { width: 18px; height: 18px; }
.icon-btn:disabled { opacity: .3; }

.support h3 .kw { color: var(--ink-3); font-weight: 600; font-size: 14px; margin-left: 4px; }
