/* BabyBuddy – mobiles App-Design (angelehnt an klare Marktplatz-Apps: weiß, ruhige Typo, eine Akzentfarbe) */
:root {
  --ink: #222222;
  --muted: #6a6a6a;
  --line: #ebebeb;
  --bg: #ffffff;
  --soft: #f7f7f7;
  --card: #ffffff;
  --accent: #e8546b;      /* warmes Rosé-Rot als einzige Akzentfarbe */
  --accent-dark: #d13f58;
  --accent-soft: #fdecef;
  --good: #1f8a5b;
  --good-soft: #e6f4ed;
  --warn: #b26a00;
  --warn-soft: #fff4e0;
  --must: #2e9e6b;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .16);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.45; overscroll-behavior-y: none;
}
body.noscroll { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1 { font-size: 1.75rem; line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 1.25rem; margin: 0 0 .4rem; letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: 1rem; margin: 0 0 .5rem; font-weight: 700; }
h4 { font-size: .95rem; margin: 1.1rem 0 .4rem; }
p { margin: 0 0 .6rem; }
.muted { color: var(--muted); }
.fine { font-size: .78rem; color: var(--muted); margin: .8rem 0; }
.center { text-align: center; }
.label { font-size: .85rem; font-weight: 600; margin: 1rem 0 .4rem; }
svg { stroke-linecap: round; stroke-linejoin: round; }

/* ---------- App-Rahmen ---------- */
.screen {
  max-width: 560px; margin: 0 auto; min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px);
  animation: fade .2s ease;
}
body.flow .screen { padding-bottom: calc(96px + var(--safe-b)); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pad { padding: 0 20px; }
.pad-x { padding: 0 20px; }

.top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) 20px 14px;
}
.top .sub { color: var(--muted); margin: .25rem 0 0; font-size: .95rem; }
.eyebrow { margin: 0 0 2px; color: var(--muted); font-size: .9rem; font-weight: 600; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--card) 97%, transparent); border-top: 1px solid var(--line);
  display: flex; justify-content: center;
}
.bottom-nav .tabs { display: flex; flex: 1; justify-content: center; }
.bottom-nav .brand, .bottom-nav .view-toggle { display: none; }
.bottom-nav .tabs button {
  flex: 1; max-width: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .68rem; font-weight: 600; color: var(--muted);
}
.bottom-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.bottom-nav button.active { color: var(--accent); }
.bottom-nav button.active svg { stroke-width: 2.2; }
body.flow .bottom-nav { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 600;
  background: var(--soft); border: 1px solid var(--line); transition: transform .08s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:active { background: var(--accent-dark); }
.btn.primary:disabled { background: #dddddd; border-color: #dddddd; color: #fff; cursor: default; }
.btn.ghost { background: var(--card); border: 1px solid var(--ink); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.btn.danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.btn.danger-ghost { background: var(--card); color: #c0392b; border-color: #f0c8c3; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; padding: 8px 0; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--card);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ---------- Karten & Bausteine ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; background: var(--card); }
.card.info { background: var(--soft); border-color: transparent; }
.promo { text-align: center; padding: 28px 20px; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); margin: 8px 0 20px; }
.promo-art { font-size: 2.6rem; letter-spacing: 4px; margin-bottom: 12px; }
.promo p { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--soft); }
.pill.accent { background: var(--accent); color: #fff; }
.pill.lvl-must { background: var(--good-soft); color: var(--good); }
.pill.lvl-nice { background: #eef2ff; color: #4054b2; }
.pill.lvl-skip { background: var(--warn-soft); color: var(--warn); }

.seg-pill { display: flex; background: var(--soft); border-radius: 999px; padding: 4px; margin: 18px 0 12px; }
.seg-pill button { flex: 1; min-height: 38px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); padding: 0 8px; }
.seg-pill button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.seg-pill.small { margin: 8px 0 12px; }
.seg-pill.small button { min-height: 34px; font-size: .82rem; }

.hscroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }

.teaser {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 16px 0; background: var(--card);
}
.teaser.warn { background: var(--warn-soft); border-color: transparent; }
.teaser-emoji { font-size: 1.8rem; width: 44px; text-align: center; }
.teaser div { flex: 1; }
.teaser small { display: block; color: var(--muted); font-size: .8rem; }
.teaser b { display: block; font-size: .95rem; line-height: 1.3; }
.teaser > svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }

.field { display: block; font-size: .85rem; font-weight: 600; margin: 14px 0 0; }
.field input, .date-input, .meas input, .copybox {
  display: block; width: 100%; margin-top: 6px; min-height: 52px; padding: 12px 14px;
  border: 1px solid #b0b0b0; border-radius: 12px; background: var(--card); font-size: 1rem; font-weight: 400;
}
.field input:focus, .date-input:focus, .meas input:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: transparent; }
.date-input { margin: 18px 0 8px; font-size: 1.1rem; }
.copybox { min-height: 200px; font-family: ui-monospace, monospace; font-size: .75rem; }

.cbox {
  width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid #b0b0b0; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .9rem;
}
li.got .cbox, li.done .cbox { background: var(--good); border-color: var(--good); }

.empty { text-align: center; padding: 40px 10px; }
.empty.small { padding: 24px 10px; }
.empty-art { font-size: 3rem; color: var(--muted); margin-bottom: 8px; }
.empty p { color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--card); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100vw - 32px);
  font-size: .9rem; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s;
}
body.flow .toast { bottom: calc(100px + var(--safe-b)); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: #ffb3c0; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* ---------- Bottom-Sheet ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 50; display: none; }
.sheet-root.show { display: block; }
.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); animation: fade .2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px;
  background: var(--card); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  max-height: 88vh; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.sheet.tall { height: 92vh; max-height: 92vh; }
.sheet.in { transform: translateY(0); }
.grab { padding: 10px 0 4px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.grab span { width: 40px; height: 5px; border-radius: 3px; background: #d6d6d6; }
.sheet-body { overflow-y: auto; padding: 8px 20px calc(24px + var(--safe-b)); flex: 1; overscroll-behavior: contain; }

/* =========================================================
 * HEUTE / Tracker
 * ========================================================= */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 8px; }
.tile {
  text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 104px;
  display: flex; flex-direction: column; gap: 2px; background: var(--card); position: relative; overflow: hidden;
  transition: transform .08s;
}
.tile:active { transform: scale(.97); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); opacity: .9; }
.tile-emoji { font-size: 1.6rem; margin-bottom: 4px; }
.tile b { font-size: .98rem; line-height: 1.2; }
.tile small { color: var(--muted); font-size: .78rem; }
.tile.running { background: color-mix(in srgb, var(--c) 12%, var(--card)); border-color: color-mix(in srgb, var(--c) 40%, var(--card)); }
.tile.split { grid-column: span 2; flex-direction: row; align-items: center; gap: 12px; min-height: 76px; }
.tile.split .tile-head { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.tile.split .tile-head .tile-emoji { margin: 0; }
.tile.split .tile-head div { display: flex; flex-direction: column; min-width: 0; }
.split-btns { display: flex; gap: 8px; }
.split-btns button {
  min-width: 70px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: .9rem; background: var(--card);
}
.split-btns button.hint { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--card)); }
.split-btns button:active { transform: scale(.96); }

.run-card {
  border-radius: 20px; padding: 18px; margin: 4px 0 14px; color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: var(--shadow);
}
.run-top { display: flex; align-items: center; gap: 12px; }
.run-top small { display: block; opacity: .85; font-size: .82rem; }
.run-emoji { font-size: 1.8rem; }
.run-timer { font-size: 3rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 8px 0 12px; }
.run-actions { display: flex; gap: 10px; }
.run-actions .btn { flex: 1; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); color: #fff; }
.run-actions .btn.primary { background: var(--card); color: var(--ink); border-color: #fff; }

.forecast h3 { margin-bottom: 10px; }
.fc-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.fc-row + .fc-row { border-top: 1px solid var(--line); }
.fc-row > span { font-size: 1.4rem; width: 30px; text-align: center; }
.fc-row b { display: block; font-size: .95rem; }
.fc-row small { color: var(--muted); font-size: .82rem; }

.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; }
.day-nav div { text-align: center; }
.day-nav b { display: block; }
.day-nav small { color: var(--muted); font-size: .72rem; }
.day-sum { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--soft); border-radius: var(--radius); padding: 12px 6px; text-align: center; }
.day-sum b { display: block; font-size: 1.05rem; }
.day-sum small { color: var(--muted); font-size: .75rem; }
.timeline { list-style: none; padding: 0; margin: 10px 0 0; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.timeline time { width: 44px; font-size: .85rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, var(--card)); font-size: 1.05rem; flex-shrink: 0; }
.timeline li > div { flex: 1; min-width: 0; }
.timeline b { display: block; font-size: .93rem; font-weight: 600; }
.timeline small { display: block; color: var(--muted); font-size: .78rem; }
.timeline .chev svg { width: 16px; height: 16px; fill: none; stroke: #b0b0b0; stroke-width: 2; }
.timeline .empty-row { color: var(--muted); justify-content: center; cursor: default; border: 0; padding: 24px 0; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-size: 1.15rem; }
.stat small { color: var(--muted); font-size: .78rem; line-height: 1.25; display: block; }
.stat.good { background: var(--good-soft); border-color: transparent; }
.stat-strip { margin: 4px -20px 4px; padding: 0 20px 4px; }
.stat-strip .stat { min-width: 128px; }
.chart { display: flex; flex-direction: column; gap: 7px; }
.crow { display: grid; grid-template-columns: 26px 1fr 40px; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.crow em { font-style: normal; text-align: right; font-weight: 600; color: var(--ink); }
.cbar { position: relative; height: 18px; background: var(--soft); border-radius: 5px; overflow: hidden; }
.seg-sleep { position: absolute; top: 0; bottom: 0; background: #6c7ae0; border-radius: 3px; }
.tick-feed { position: absolute; top: 2px; bottom: 2px; width: 2px; background: #f2994a; }
.crow.axis .cbar { background: none; height: 14px; overflow: visible; }
.crow.axis b { position: absolute; transform: translateX(-50%); font-size: .68rem; font-weight: 500; }
.crow.axis b:first-child { transform: none; }
.crow.axis b:last-child { transform: translateX(-100%); }
.chart-legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.sw { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 5px; }
.sw.sleep { background: #6c7ae0; }
.sw.feed { width: 3px; height: 12px; background: #f2994a; vertical-align: -2px; }
.notes { list-style: none; padding: 0; margin: 0; }
.notes li { padding: 6px 0; font-size: .92rem; }

/* Sheets im Tracker */
.big-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.big-choices button { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 8px; font-size: 1.8rem; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.big-choices b { font-size: .95rem; }
.big-choices button:active { background: var(--soft); }
.chips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.chips-grid.two { grid-template-columns: 1fr 1fr; }
.chips-grid button { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .9rem; padding: 6px; }
.chips-grid button.sel { border: 2px solid var(--ink); background: var(--soft); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0; }
.stepper button { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.6rem; }
.stepper output { font-size: 2.6rem; font-weight: 700; min-width: 110px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper output.hot { color: #c0392b; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-grid button { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: left; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.type-grid span { font-size: 1.4rem; }

/* Setup */
.toggle-list { margin-top: 18px; }
.toggle { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tg-emoji { font-size: 1.5rem; width: 34px; text-align: center; }
.tg-text { flex: 1; }
.tg-text b { display: block; }
.tg-text small { color: var(--muted); font-size: .82rem; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: #d6d6d6; position: relative; transition: background .2s; flex-shrink: 0; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.toggle.on .switch { background: var(--ink); }
.toggle.on .switch i { transform: translateX(20px); }

/* =========================================================
 * Vollbild-Abläufe (Fragebogen, Setup)
 * ========================================================= */
.flow-top { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px 6px; }
.flow-body { padding-top: 10px; }
.flow-body h1 { font-size: 1.6rem; margin-bottom: 8px; }
.flow-body .sub { color: var(--muted); }
.flow-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line);
  padding: 14px 20px calc(14px + var(--safe-b)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.flow-foot .btn { min-width: 140px; }
.progress { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--line); }
.progress i { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; min-height: 64px;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; transition: border-color .15s, background .15s;
}
.option:active { transform: scale(.99); }
.option.on { border: 2px solid var(--ink); background: var(--soft); padding: 11px 15px; }
.opt-emoji { font-size: 1.5rem; width: 32px; text-align: center; }
.opt-label { flex: 1; font-weight: 600; }
.check { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid #b0b0b0; flex-shrink: 0; }
.option.on .check { background: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hint-chip { display: inline-block; margin: 12px 0 0; font-size: .8rem; font-weight: 600; background: var(--soft); padding: 4px 10px; border-radius: 999px; }
.why { margin: 22px 0 10px; background: var(--soft); border-radius: 14px; padding: 14px 16px; }
.why b { font-size: .85rem; }
.why p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 26px 0 0; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li > span { font-weight: 700; font-size: 1.1rem; width: 22px; }
.steps li div { flex: 1; }
.steps li p { color: var(--muted); margin: 2px 0 0; font-size: .92rem; }
.steps li em { font-style: normal; font-size: 2rem; }

/* =========================================================
 * AUSSTATTUNG
 * ========================================================= */
.cat-bar { padding: 4px 20px 0; gap: 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 10; }
.cat-bar button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 10px; font-size: .75rem; font-weight: 600;
  color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; scroll-snap-align: center;
}
.cat-bar button span { font-size: 1.4rem; filter: grayscale(.5); opacity: .8; }
.cat-bar button.on { color: var(--ink); border-bottom-color: var(--ink); }
.cat-bar button.on span { filter: none; opacity: 1; }
.progress-card { display: flex; align-items: center; gap: 14px; margin: 18px 0 4px; padding: 14px 16px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.progress-card div:first-child { flex: 1; }
.progress-card b { display: block; }
.progress-card small { color: var(--muted); font-size: .82rem; line-height: 1.35; display: block; margin-top: 2px; }
.ring-mini {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0);
}
.ring-mini span { width: 42px; height: 42px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.swipe-hint { margin: 10px 0 0; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 24px 0 10px; }
.row-head h2 { margin: 0; }
.row-head p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.count { font-weight: 500; color: var(--muted); font-size: .95rem; }
.cards { margin: 0 -20px; padding: 0 20px 6px; scroll-padding: 0 20px; }
.gcard { width: 72%; max-width: 260px; cursor: pointer; }
.gimg { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; background: var(--t); display: grid; place-items: center; overflow: hidden; }
.gemoji { font-size: 4.2rem; transition: transform .2s; }
.gcard:active .gemoji { transform: scale(.94); }
.gbadge { position: absolute; top: 10px; left: 10px; background: var(--card); border-radius: 999px; padding: 4px 10px; font-size: .74rem; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.heart-btn { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center; }
.heart { width: 26px; height: 26px; fill: rgba(0, 0, 0, .45); stroke: #fff; stroke-width: 2; transition: transform .15s; }
.heart.on { fill: var(--accent); }
.heart-btn:active .heart { transform: scale(.85); }
.state { position: absolute; bottom: 10px; left: 10px; right: 10px; background: rgba(255, 255, 255, .95); border-radius: 10px; padding: 6px 10px; font-size: .78rem; font-weight: 700; text-align: center; }
.st-no { color: var(--muted); }
.gcard.dec-no .gimg { opacity: .55; }
.gcard h3 { margin: 10px 0 0; font-size: .98rem; line-height: 1.25; }
.gqty { margin: 2px 0 0; font-size: .85rem; font-weight: 600; }
.gwhy { margin: 2px 0 0; font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.item-sheet { padding-bottom: 12px; }
.is-img { position: relative; height: 180px; border-radius: 16px; background: var(--t); display: grid; place-items: center; margin-bottom: 14px; }
.is-img > span { font-size: 5rem; }
.is-nav { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; }
.is-nav span { background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.is-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.item-sheet h2 { font-size: 1.45rem; }
.qty { font-weight: 600; }
.why-list { padding-left: 20px; margin: 0; }
.why-list li { margin: 6px 0; }
.note { border-radius: 14px; padding: 12px 14px; margin: 12px 0; background: var(--soft); font-size: .92rem; }
.note.warm { background: var(--warn-soft); }
.note.ad { background: var(--accent-soft); }
.decide-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0 4px; position: sticky; bottom: 0;
  background: linear-gradient(to top, var(--card) 85%, transparent);
}
.decide-bar button { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .86rem; padding: 6px 8px; }
.decide-bar button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.all-list, .wish, .menu { list-style: none; padding: 0; margin: 0; }
.all-list li, .wish li, .menu li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.all-list li > div, .wish li > div, .menu li > div { flex: 1; min-width: 0; }
.all-list b, .wish b, .menu b { display: block; font-weight: 600; font-size: .95rem; }
.all-list small, .wish small, .menu small { display: block; color: var(--muted); font-size: .8rem; }
.all-list svg, .menu svg { width: 16px; height: 16px; fill: none; stroke: #b0b0b0; stroke-width: 2; }
.al-emoji { width: 48px; height: 48px; border-radius: 12px; background: var(--t, var(--soft)); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }

/* Merkliste */
.wish li.got b { text-decoration: line-through; color: var(--muted); }
.dropped { margin: 18px 0; }
.dropped summary { font-weight: 600; cursor: pointer; padding: 8px 0; }
.dropped ul { color: var(--muted); font-size: .9rem; }

/* =========================================================
 * BABYJAHR
 * ========================================================= */
.wstrip { padding: 6px 20px 8px; gap: 8px; scroll-snap-type: x proximity; }
.wstrip button {
  min-width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--muted);
}
.wstrip.baby button { border-bottom: 3px solid var(--c); }
.wstrip button.past { color: var(--ink); background: var(--soft); }
.wstrip button.now { border-color: var(--accent); color: var(--accent); }
.wstrip button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.hero-card { border-radius: 22px; padding: 16px 16px 18px; margin: 8px 0 16px; background: color-mix(in srgb, var(--c, #f4c7d0) 22%, var(--card)); position: relative; touch-action: pan-y; }
.hero-card.belly { background: linear-gradient(180deg, #fdecef, #fff7f0); }
.hero-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-meta .pill { background: rgba(255, 255, 255, .8); }
.hero-meta .pill.accent { background: var(--accent); }
.hero-row { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 4px; }
.hero-title { text-align: center; }
.hero-title small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hero-title b { font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; }
.hero-card h2 { margin: 8px 0 2px; }
.hero-card .muted { margin: 0; font-size: .88rem; }
.krumel-wrap { max-width: 230px; margin: 4px auto 0; }
.krumel { width: 100%; display: block; }
.krumel .float { animation: bob 3.2s ease-in-out infinite; transform-box: fill-box; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .krumel .float { animation: none; } .screen { animation: none; } }
.bubble { background: var(--card); border-radius: 14px; padding: 8px 14px; font-size: .9rem; text-align: center; margin: 6px auto 0; width: fit-content; max-width: 100%; box-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; text-align: center; }
.facts3 > div { background: rgba(255, 255, 255, .85); border-radius: 12px; padding: 8px 4px; }
.facts3 span { font-size: 1.2rem; display: block; }
.facts3 small { display: block; font-size: .7rem; color: var(--muted); }
.facts3 b { font-size: .85rem; }

.deck { align-items: flex-start; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; }
.dcard { width: 86%; max-width: 460px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--card); box-shadow: 0 2px 10px rgba(0, 0, 0, .05); max-height: 62vh; overflow-y: auto; }
.dcard p { font-size: .95rem; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #d6d6d6; transition: background .2s, transform .2s; cursor: pointer; }
.dots i.on { background: var(--ink); transform: scale(1.2); }
.tipbox { background: var(--warn-soft); border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.evl { list-style: none; padding: 0; margin: 0; }
.evl li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.evl li:last-child { border: 0; }
.evl span { font-size: 1.3rem; }
.evl b { display: block; font-size: .92rem; }
.evl small { color: var(--muted); font-size: .82rem; }
.todo { list-style: none; padding: 0; margin: 0; }
.todo li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.todo li.now { background: var(--warn-soft); margin: 0 -10px; padding: 10px; border-radius: 10px; }
.todo li.done b { text-decoration: line-through; color: var(--muted); }
.todo b { display: block; font-size: .92rem; }
.todo small { color: var(--muted); font-size: .8rem; }
.myths { list-style: none; padding: 0; margin: 0; }
.myths li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.myths li > span { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; margin-bottom: 4px; }
.myths li.k-nogo > span { background: #fde2e2; color: #b02a2a; }
.myths li.k-myth > span { background: #ece6fb; color: #5b3fb0; }
.myths b { display: block; font-size: .93rem; }
.myths p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }

/* Wachstum */
.gbox { background: var(--soft); border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.gbox-h { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.gbox-h span { color: var(--muted); font-size: .8rem; }
.pctl { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); font-weight: 600; }
.you { margin: 6px 0 0; font-size: .86rem; }
.meas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.meas label { font-size: .8rem; font-weight: 600; }
.meas input { min-height: 44px; padding: 8px 10px; }
.bell { width: 100%; height: auto; display: block; }
.bell-line { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.bell-iqr { fill: var(--must); opacity: .25; }
.bell-base { stroke: #d6d6d6; stroke-width: 2; }
.bell-tick { stroke: var(--must); stroke-width: 1.5; stroke-dasharray: 3 3; }
.bell-tick.mid { stroke: var(--ink); stroke-dasharray: none; stroke-width: 2; }
.bell-lbl { font-size: 11px; fill: var(--muted); text-anchor: middle; font-weight: 700; }
.bell-lbl.mid { fill: var(--ink); }
.bell-you { stroke: var(--accent); stroke-width: 3; }
.bell-you-lbl { font-size: 13px; text-anchor: middle; }

/* Jahresring */
.ring { width: 100%; max-width: 380px; display: block; margin: 6px auto; }
.seg-w { cursor: pointer; stroke: var(--card); stroke-width: 1; }
.seg-w.sel { stroke: var(--ink); stroke-width: 2.5; fill-opacity: 1; }
.seg-w.cur { stroke: var(--accent); stroke-width: 2.5; }
.m-label { font-size: 12px; fill: var(--muted); text-anchor: middle; dominant-baseline: middle; font-weight: 600; }
.baby-marker { font-size: 22px; text-anchor: middle; dominant-baseline: middle; }
.c-week { font-size: 26px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.c-phase { font-size: 14px; font-weight: 600; fill: var(--muted); text-anchor: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .8rem; color: var(--muted); justify-content: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

/* =========================================================
 * PROFIL
 * ========================================================= */
.profile { text-align: left; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--card); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.menu { margin: 8px 0; }
.menu li > span { font-size: 1.3rem; width: 30px; text-align: center; }
.menu li.danger b { color: #c0392b; }
.storage { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-color: transparent; }
.storage > span { font-size: 1.4rem; }
.storage b { display: block; font-size: .92rem; }
.storage small { color: var(--muted); font-size: .82rem; }

.tile[data-quick="sleep"] { grid-column: span 2; flex-direction: row; align-items: center; gap: 12px; min-height: 76px; }
.tile[data-quick="sleep"] .tile-emoji { margin: 0; font-size: 2rem; }
.tile[data-quick="sleep"] b { font-size: 1.1rem; }
.tile[data-quick="sleep"] small { margin-left: auto; }

/* Drehregler Datum & Uhrzeit */
.tp { border: 1px solid var(--line); border-radius: 14px; margin: 12px 0 0; overflow: hidden; }
.tp-row { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; padding: 0 16px; font-weight: 600; font-size: .92rem; }
.tp-row b { font-weight: 600; background: var(--soft); border-radius: 8px; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.tp.open .tp-row b { background: var(--ink); color: var(--card); }
.tp-body { display: none; padding: 0 12px 12px; }
.tp.open .tp-body { display: block; }
.tp-extra { display: flex; justify-content: center; }
.tp-extra:empty { display: none; }
.tp-extra .btn { margin-top: 8px; }
.wheels { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; height: 200px; }
.wheels::before { content: ""; position: absolute; left: 0; right: 0; top: 80px; height: 40px; background: var(--soft); border-radius: 10px; z-index: 0; pointer-events: none; }
.wcol {
  position: relative; z-index: 1; height: 200px; overflow-y: auto; scroll-snap-type: y mandatory; padding: 80px 0;
  scrollbar-width: none; overscroll-behavior: contain; outline: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
}
.wcol::-webkit-scrollbar { display: none; }
.wcol.day { flex: 1.6; }
.wcol.num { flex: 0 0 64px; }
.witem { height: 40px; line-height: 40px; text-align: center; scroll-snap-align: center; font-size: 1.15rem; color: var(--muted); font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; }
.witem.sel { color: var(--ink); font-weight: 600; }
.wsep { z-index: 1; font-size: 1.2rem; font-weight: 700; }

/* =========================================================
 * APP-Ansicht auf großem Bildschirm: Handy-Rahmen in der Mitte
 * ========================================================= */
@media (min-width: 600px) {
  body.app { background: var(--soft); }
  body.app .screen { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
  body.app .gcard { width: 44%; }
  body.app .dcard { width: 70%; }
  body.app .flow-foot, body.app .bottom-nav { max-width: 560px; margin: 0 auto; }
}

/* =========================================================
 * WEB-Ansicht: Navigation oben, breites Layout, Raster statt Karussell
 * ========================================================= */
body.web { --nav-h: 0px; background: var(--card); }
body.web .bottom-nav {
  position: fixed; top: 0; bottom: auto; height: 72px; padding: 0 32px;
  border-top: 0; border-bottom: 1px solid var(--line); justify-content: space-between; align-items: center; gap: 24px;
}
body.web .bottom-nav .brand { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; color: var(--accent); white-space: nowrap; }
body.web .bottom-nav .brand b { color: var(--accent); letter-spacing: -.02em; }
body.web .bottom-nav .tabs { flex: 0 1 auto; gap: 4px; }
body.web .bottom-nav .tabs button {
  flex: 0 0 auto; max-width: none; flex-direction: row; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: .92rem;
}
body.web .bottom-nav .tabs button:hover { background: var(--soft); color: var(--ink); }
body.web .bottom-nav .tabs svg { width: 20px; height: 20px; }
body.web .bottom-nav .tabs button.active { color: var(--ink); background: var(--soft); }
body.web .bottom-nav .view-toggle {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px;
  font-size: .88rem; font-weight: 600; white-space: nowrap; background: var(--card);
}
body.web .bottom-nav .view-toggle:hover { box-shadow: var(--shadow); }
body.web.flow .bottom-nav { display: flex; }

body.web .screen { max-width: 1120px; padding: 72px 32px 64px; box-shadow: none; }
body.web .top { padding: 32px 0 12px; }
body.web .pad, body.web .pad-x { padding: 0; }
body.web h1 { font-size: 2.1rem; }

/* Heute: Kacheln in einer Reihe, Details zweispaltig */
body.web .quick { grid-template-columns: repeat(4, 1fr); }
body.web .tile.split, body.web .tile[data-quick="sleep"] { grid-column: span 2; }
body.web .stats { grid-template-columns: repeat(4, 1fr); }
body.web #homeTabs { max-width: 420px; }

/* Ausstattung: Raster statt Wischreihe */
body.web .cat-bar { padding: 4px 0 0; top: 72px; justify-content: flex-start; gap: 32px; }
body.web .cards { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: 24px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
body.web .gcard { width: auto; max-width: none; }
body.web .gcard:hover .gemoji { transform: scale(1.06); }
body.web .progress-card { max-width: 640px; }

/* Babyjahr: Infokarten als Raster */
body.web .wstrip { padding: 6px 0 8px; flex-wrap: wrap; overflow: visible; }
body.web .deck { align-items: start; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; }
body.web .dcard { width: auto; max-width: none; max-height: none; }
body.web .dots { display: none; }
body.web .hero-card { display: grid; grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }
body.web #modeSeg { max-width: 420px; }

/* Merkliste & Profil: angenehme Lesebreite */
body.web #wishBody, body.web .screen > .pad:has(.profile) { max-width: 760px; }
body.web .stat-strip { margin: 4px 0; padding: 0; flex-wrap: wrap; }

/* Abläufe (Fragebogen, Setup) mittig */
body.web .flow-top, body.web .flow-body { max-width: 680px; margin: 0 auto; padding-left: 0; padding-right: 0; }
body.web .flow-foot { position: sticky; bottom: 0; max-width: 680px; margin: 24px auto 0; padding: 16px 0; }
body.web.flow .screen { padding-bottom: 0; }
body.web .options { display: grid; grid-template-columns: 1fr 1fr; }

/* Detailfenster als Dialog in der Mitte */
body.web .sheet {
  top: 50%; bottom: auto; left: 50%; right: auto; width: min(620px, calc(100vw - 48px)); max-width: none; margin: 0;
  border-radius: 22px; max-height: 86vh; transform: translate(-50%, -46%); opacity: 0; transition: transform .2s, opacity .2s;
}
body.web .sheet.in { transform: translate(-50%, -50%); opacity: 1; }
body.web .sheet.tall { height: auto; max-height: 86vh; }
body.web .grab { visibility: hidden; padding: 4px 0 0; }
body.web .sheet-body { padding: 8px 28px 28px; }
body.web .toast { bottom: 24px; }
body.web .timeline li:hover, body.web .menu li:hover, body.web .all-list li:hover { background: var(--soft); }

/* App-Ansicht am großen Bildschirm: Umschalter oben rechts außerhalb des Handy-Rahmens */
@media (min-width: 900px) {
  body.app .bottom-nav .view-toggle {
    display: inline-flex; position: fixed; top: 16px; right: 16px; align-items: center; gap: 6px;
    border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: .88rem; font-weight: 600; background: var(--card); box-shadow: var(--shadow);
  }
}

/* =========================================================
 * NACHTMODUS & Blaufilter
 * ========================================================= */
body.night {
  --ink: #ece6df; --muted: #a49c93; --line: #37322d; --bg: #171513; --soft: #24201c; --card: #1e1b18;
  --accent: #e26c80; --accent-dark: #f08a9b; --accent-soft: #3b2329; --good: #5cc08f; --good-soft: #1b3127;
  --warn: #e0a54a; --warn-soft: #362b19; --shadow: 0 6px 20px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
body.night .switch { background: #4a443e; }
body.night .heart { fill: rgba(0, 0, 0, .55); }
body.night img, body.night .al-emoji, body.night .gimg, body.night .hero-card, body.night .tile { filter: brightness(.88); }
body.night .hero-card { background: color-mix(in srgb, var(--c, #f4c7d0) 16%, var(--card)); }
body.night .btn.primary:disabled { background: #3a3632; border-color: #3a3632; }
body.night .field input, body.night .field textarea, body.night .field select { background: var(--soft); border-color: var(--line); }
.night-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0; transition: opacity .4s; }
.night-layer.warm { background: rgb(255, 136, 30); mix-blend-mode: multiply; }
.night-layer.dim { background: #000; }
.top-btns { display: flex; gap: 8px; }
.slider { display: block; margin: 18px 0 4px; font-size: .9rem; font-weight: 600; }
.slider span { display: flex; justify-content: space-between; }
.slider b { color: var(--muted); font-weight: 600; }
.slider input { width: 100%; accent-color: var(--accent); margin-top: 8px; }
.switch.on { background: var(--ink); }
.switch.on i { transform: translateX(20px); }

/* Feedback */
.fb-fab {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + var(--safe-b)); z-index: 25; width: 48px; height: 48px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1.3rem; display: grid; place-items: center;
}
body.flow:not(.noscroll) .fb-fab { display: none; }
body.web .fb-fab { bottom: 24px; right: 24px; }
body.noscroll .fb-fab { z-index: 60; bottom: auto; top: calc(10px + env(safe-area-inset-top, 0px)); width: 40px; height: 40px; font-size: 1.1rem; }
.fb-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; }
.fb-back { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.fb-card { position: relative; width: min(100%, 520px); background: var(--card); border-radius: 20px 20px 0 0; padding: 16px 20px calc(20px + var(--safe-b)); box-shadow: 0 -8px 30px rgba(0,0,0,.2); animation: fbUp .2s ease-out; max-height: 90vh; overflow-y: auto; }
@media (min-width: 700px) { .fb-root { place-items: center; } .fb-card { border-radius: 20px; } }
@keyframes fbUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.fb-head { display: flex; align-items: center; justify-content: space-between; }
.fb-head h2 { margin: 0; }
.fb-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); }
.fb-ctx { background: rgba(127,127,127,.1); border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin: 10px 0; }
@media (min-width: 600px) { body.app .fb-fab { right: calc(50% - 280px + 16px); } }
.bottom-nav .nav-fb { display: none; }
body.web .bottom-nav .nav-fb { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: .88rem; font-weight: 600; white-space: nowrap; margin-left: auto; margin-right: -12px; }
body.web .bottom-nav .nav-fb:hover { box-shadow: var(--shadow); }
.field textarea, .field select, .mnote {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #b0b0b0; border-radius: 12px; background: var(--card); font-size: 1rem; font-weight: 400; resize: vertical;
}
.ptips { margin-top: 12px; }
.ptips ul { list-style: none; padding: 0; margin: 0 0 10px; }
.ptips li { font-size: .88rem; padding: 8px 10px; background: var(--soft); border-radius: 10px; margin-bottom: 6px; font-style: italic; }
.modl { list-style: none; padding: 0; margin: 0; }
.modl li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.modl small { color: var(--muted); font-size: .78rem; }
.modl p { margin: 4px 0 8px; }
.row2 { display: flex; gap: 10px; margin-top: 10px; }
.row2 .btn { flex: 1; }

/* Diese Woche festhalten */
.moment { display: flex; flex-direction: column; gap: 10px; }
.mimg { width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; display: block; }
.mph { border: 2px dashed var(--line); border-radius: 14px; min-height: 140px; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); text-align: center; padding: 12px; }
.mph span { font-size: 2rem; }
.mnote { margin: 0; font-size: .92rem; border-color: var(--line); }
.cam-row { display: flex; gap: 8px; }
.cam-row .cam { flex: 1; justify-content: center; }
.mlinks { display: flex; justify-content: space-between; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery button { text-align: left; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery .gnote { aspect-ratio: 1; display: grid; place-items: center; font-size: 2rem; background: var(--soft); }
.gallery small { font-weight: 700; font-size: .8rem; padding: 6px 8px 0; }
.gallery i { font-size: .78rem; color: var(--muted); padding: 0 8px 8px; font-style: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Ab 1 Jahr */
.kid-emoji { font-size: 3.4rem; text-align: center; margin: 4px 0 -4px; }
.hero-title b.kid-age { font-size: 1.5rem; }
.wstrip.kid button.yr { min-width: 52px; }

/* Planen: Fristen & Erinnerungen */
.progress { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 4px 0 8px; }
.progress i { display: block; height: 100%; background: var(--good); border-radius: 99px; transition: width .3s; }
details.prof summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; }
details.prof summary::-webkit-details-marker { display: none; }
details.prof summary small { color: var(--muted); font-size: .82rem; }
details.prof summary::after { content: 'Ändern'; position: absolute; right: 16px; top: 16px; font-size: .82rem; font-weight: 600; text-decoration: underline; }
details.prof { position: relative; }
details.prof[open] summary::after { content: 'Fertig'; }
.card.hint { display: flex; gap: 12px; align-items: flex-start; background: var(--good-soft); border-color: transparent; }
.card.hint span { font-size: 1.4rem; }
.card.hint p { margin: 0; font-size: .9rem; }
.badge { font-size: .7rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 8px; align-self: center; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.todo.fristen li > div { flex: 1; cursor: pointer; }
.todo li.late small { color: var(--accent); font-weight: 600; }
.links { padding-left: 18px; }
.links a { color: var(--accent-dark); font-weight: 600; }
.toggles { list-style: none; padding: 0; margin: 0; }
.toggles li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggles li > div { flex: 1; }
.toggles b { display: block; font-size: .95rem; font-weight: 600; }
.toggles small { color: var(--muted); font-size: .8rem; }
.toggles input[type=time] { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: var(--card); }
.card.cal b { display: block; margin-bottom: 4px; }
.card.cal .btn { margin-top: 8px; }
#remAdd { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; }
#remAdd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.soon-h { display: flex; justify-content: space-between; align-items: baseline; }
.soon-h h3 { margin: 0; }
.card.soon .evl li { padding: 6px 0; }
.eyebrow .badge { vertical-align: middle; }

/* Konto & Familie */
.konto-h { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.konto-h > span { font-size: 1.6rem; }
.konto-h b { display: block; }
.konto-h small { color: var(--muted); font-size: .82rem; }
.avatar.sm { width: 40px; height: 40px; font-size: 1.05rem; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--soft); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; }
.chip.me { background: var(--accent-soft); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .08em; text-align: center; background: var(--soft); border-radius: 14px; padding: 16px; margin: 12px 0; }

body.web #planBody, body.web #wishBody { max-width: 760px; }
body.web #planSeg { max-width: 520px; }
[hidden] { display: none !important; }

/* Mehrere Kinder */
.kidbar { display: flex; gap: 8px; padding: 12px 20px 0; }
.kidbar button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px; font-weight: 600; font-size: .9rem; white-space: nowrap; background: var(--card); }
.kidbar button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.kav { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.kidbar button.on .kav { background: var(--card); color: var(--ink); }
.kids-h b { display: block; }
.kids-h small { color: var(--muted); font-size: .82rem; }
.kid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.kid-list button { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.kid-list button.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.kid-list b { display: block; font-size: .92rem; }
.kid-list small { color: var(--muted); font-size: .78rem; }
.danger-link { color: #c0392b; margin-top: 10px; display: inline-block; }
body.web .kidbar { padding: 24px 0 0; }

/* Planen: To-dos, Termine, Export */
.trash { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--muted); border: 1px solid var(--line); background: var(--card); }
.trash svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.trash:active { background: var(--accent-soft); color: var(--accent); }
.todo li { transition: opacity .25s, transform .25s; }
.todo li.leaving { opacity: 0; transform: translateX(40px); }
.todo.plan li { align-items: center; }
.todo.plan li > div { flex: 1; min-width: 0; cursor: pointer; }
.todo.plan li > svg, .todo.fristen li > svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; flex-shrink: 0; }
.cbox.sel { background: var(--card); color: #fff; cursor: pointer; }
.cbox.sel.on { background: var(--ink); border-color: var(--ink); }
.pill.tiny { font-size: .68rem; padding: 1px 6px; vertical-align: 1px; }
.card.hint.warnish { background: var(--warn-soft); }
.card.hint > div p + p { margin-top: 6px; }
.src { font-size: .78rem; color: var(--muted); margin: 8px 0 0; }
.src a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; }
.sel-h { display: flex; justify-content: space-between; align-items: baseline; }
.sel-h .link, .link { background: none; border: 0; padding: 4px 0; font-weight: 600; text-decoration: underline; font-size: .85rem; cursor: pointer; color: var(--ink); }
.dates { border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; overflow: hidden; }
.dates > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.dates > div:last-child { border-bottom: 0; }
.dates small { color: var(--muted); }
.quickrem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.quickrem button { border: 1px solid var(--line); border-radius: 12px; min-height: 44px; font-weight: 600; font-size: .85rem; background: var(--card); }
.quickrem button:active { background: var(--accent-soft); }
.export-bar { position: sticky; bottom: calc(var(--nav-h) + 8px + var(--safe-b)); z-index: 5; display: none; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; margin: 14px 0; box-shadow: var(--shadow); }
.export-bar.show { display: flex; }
body.web .export-bar { bottom: 16px; }

/* Ausstattung: Suche & Budget */
.shop-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.shop-a { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--card); }
.shop-a:hover { box-shadow: var(--shadow); }
.shop, .budget-in { margin-top: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 12px; }
.stat-grid .stat { text-align: left; padding: 10px; min-width: 0; cursor: pointer; background: var(--card); }
.stat-grid .stat.good { background: var(--good-soft); }
.stat-grid .stat.on { outline: 2px solid var(--ink); outline-offset: -2px; }
.stat-grid .stat small { font-size: .72rem; overflow-wrap: anywhere; }
@media (max-width: 380px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.ptag { font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ptag.paid { color: var(--good); }
.card.budget .b-total { font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.card.budget .b-total input { width: 92px; border: 1px solid #b0b0b0; border-radius: 10px; padding: 6px 8px; font-size: .95rem; background: var(--card); }
.bbar { position: relative; height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 12px 0 8px; }
.bbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.bbar .pl { background: var(--accent-soft); }
.bbar .pd { background: var(--good); }
.bnums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bnums small { display: block; color: var(--muted); font-size: .75rem; }
.bnums b { font-size: 1.05rem; }
.bnums b.over { color: var(--accent); }
.wish .al-emoji { width: 40px; height: 40px; border-radius: 10px; background: var(--t); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }

/* Premium */
.gift { text-align: center; }
.gift-art { font-size: 3.4rem; margin: 6px 0 2px; }
.gift p { margin: .6rem 0; }
.card.prem .btn { margin-top: 10px; }
.card.prem .dev { border-top: 1px dashed var(--line); margin-top: 12px; }
.card.prem .dev .row2 { margin-top: 6px; }
.prem-list { list-style: none; padding: 0; margin: 10px 0; }
.prem-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.prem-list li > span { font-size: 1.4rem; width: 36px; text-align: center; }
.prem-list b { display: block; font-size: .95rem; }
.prem-list small { color: var(--muted); font-size: .82rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.plan { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; background: var(--card); display: flex; flex-direction: column; gap: 2px; }
.plan b { font-size: .9rem; }
.plan span { font-size: 1.3rem; font-weight: 800; }
.plan small { color: var(--muted); font-size: .75rem; }
.plan.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.promo.locked { margin-bottom: 16px; }

/* Wachstumsschub & Kleidergrößen */
.spurt { padding-left: 0; list-style: none; margin: 8px 0; }
.spurt li { padding: 4px 0; font-size: .92rem; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.sizes > div { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; min-width: 72px; text-align: center; }
.sizes > div.now { background: var(--ink); color: #fff; border-color: var(--ink); }
.sizes small { display: block; font-size: .72rem; opacity: .8; }
.sizes b { font-size: 1.3rem; }
.sztab { width: 100%; border-collapse: collapse; font-size: .85rem; }
.sztab th { text-align: left; color: var(--muted); font-weight: 600; font-size: .75rem; padding: 4px 0; }
.sztab td { padding: 5px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sync-chip { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 0; margin: 0 0 12px; font-size: .82rem; font-weight: 600; width: fit-content; max-width: 100%; background: var(--card); }
.sync-chip > button:first-child { padding: 8px 4px 8px 14px; text-align: left; }
.sync-chip .x { width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
button.sync-chip.on { padding: 8px 14px; background: var(--good-soft); border-color: transparent; color: var(--good); }

/* Gründer-Botschaft, Hilfe, Willkommen */
.card.founder p { font-size: .92rem; line-height: 1.55; margin: .6rem 0; }
.card.founder .sig { font-style: italic; color: var(--muted); }
.card.help ul { list-style: none; padding: 0; margin: 0; }
.card.help li a { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.card.help li:last-child a { border-bottom: 0; }
.card.help b { font-size: .98rem; }
.card.help small { color: var(--muted); font-size: .8rem; }
.welcome { text-align: center; }
.welcome p { line-height: 1.5; }
.welcome .label { text-align: left; }

/* Fragebogen auf kleinen/quer gehaltenen Bildschirmen: Antworten kompakter,
   damit keine Antwort hinter der festen Fußleiste verschwindet */
html:has(body.flow) { scroll-padding-bottom: calc(110px + var(--safe-b, 0px)); }
@media (max-height: 760px) {
  .flow-top { padding-top: calc(env(safe-area-inset-top, 0px) + 8px); }
  .flow-body h1 { font-size: 1.35rem; }
  .options { gap: 8px; margin-top: 12px; }
  .option { min-height: 52px; padding: 8px 14px; }
  .option.on { padding: 7px 13px; }
  .opt-emoji { font-size: 1.3rem; }
  .why { margin-top: 14px; }
}

/* Wachstumsverlauf */
.gc { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.gc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.gchart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.gc-grid { stroke: var(--line); stroke-width: 1; }
.gc-ax { fill: var(--muted); font-size: 10px; }
.gc-b97 { fill: var(--good-soft); }
.gc-b75 { fill: var(--good); opacity: .22; }
.gc-med { fill: none; stroke: var(--good); stroke-width: 1.2; opacity: .8; }
.gc-you { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gc-fc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 4; opacity: .75; }
.gc-pt { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.gc-x { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.gc-cap { font-size: .82rem; color: var(--muted); min-height: 2.4em; margin: 4px 0; }
.gc-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .75rem; color: var(--muted); }
.gc-key i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.gc-key .k-b97 { background: var(--good-soft); } .gc-key .k-b75 { background: var(--good); opacity: .35; }
.gc-key .k-med { height: 2px; background: var(--good); } .gc-key .k-you { height: 8px; width: 8px; border-radius: 50%; background: var(--accent); }
.gc-key .k-fc { height: 0; border-top: 2px dashed var(--accent); }
.gc-tab { margin-top: 8px; } .gc-tab summary { cursor: pointer; font-size: .85rem; font-weight: 600; }
.icon-btn.tiny { width: 30px; height: 30px; font-size: .85rem; }

/* Momente: mehrere Fotos & kurze Videos */
.cam-row.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cam-row.three .btn { padding-left: 6px; padding-right: 6px; font-size: .88rem; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mthumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); padding: 0; border: 0; }
.mthumb img, .gcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mvph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 1.8rem; }
.mplay { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.gcover { position: relative; display: block; aspect-ratio: 1; background: var(--soft); }
.gcover em { position: absolute; right: 6px; top: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.mview-wrap { display: flex; flex-direction: column; gap: 12px; }
.mview { min-height: 200px; display: grid; place-items: center; background: #000; border-radius: 14px; overflow: hidden; touch-action: pan-y; }
.mview img, .mview video { width: 100%; max-height: 62vh; object-fit: contain; display: block; }
.mview .muted { color: #ddd; padding: 16px; text-align: center; }
.mnav { display: flex; align-items: center; justify-content: center; gap: 18px; }
.mnav .icon-btn { font-size: 1.6rem; }
.mnav .icon-btn:disabled { opacity: .3; }
.mcount { font-weight: 700; min-width: 60px; text-align: center; }

/* Was gerade normal ist */
.normal { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.normal .ncmp { display: block; margin-top: 3px; color: var(--ink); font-weight: 600; }

/* Zustimmung beim ersten Start */
.consent-root { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.consent-card { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + var(--safe-b)); text-align: center; box-shadow: var(--shadow-lg); }
@media (min-width: 700px) { .consent-root { align-items: center; } .consent-card { border-radius: 22px; } }
.consent-card .label { text-align: left; }
.consent-d { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.consent-d summary { cursor: pointer; font-weight: 600; }
.consent-d p { font-size: .88rem; line-height: 1.45; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: 14px 0 6px; font-weight: 600; }
.consent-check input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent); }
.legal-links { font-size: .85rem; }

/* Momente als Erinnerung */
.mrem { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 14px; padding: 12px; }
.mrem > span { font-size: 1.5rem; }
.mrem div { flex: 1; } .mrem small { display: block; color: var(--muted); }
.mrem.done { background: var(--good-soft); }
.msteps { padding-left: 20px; } .msteps li { margin: 6px 0; line-height: 1.45; }
.mlist { list-style: none; padding: 0; margin: 0; }
.mlist button { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.mlist small { display: block; color: var(--muted); }

/* Community */
.clist { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.clist li { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.clist p { margin: 0 0 8px; }
.crow2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crow2 small { color: var(--muted); }
.votes { display: flex; gap: 6px; }
.vote { border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-weight: 700; font-size: .85rem; background: var(--card); }
.vote.on { border-color: var(--ink); background: var(--soft); }
#mythSeg { margin-bottom: 12px; }
@media (max-width: 380px) { .bottom-nav .tabs button { font-size: .6rem; } }

/* Drehscheibe im Babyjahr */
.dial { position: relative; width: min(250px, 72vw); aspect-ratio: 1; margin: 6px auto 0; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  background: radial-gradient(circle at 50% 40%, var(--card) 0 55%, var(--soft) 100%); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.08), inset 0 0 0 10px var(--card); outline: none; }
.dial:active { cursor: grabbing; }
.dial:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.dial-ticks { position: absolute; inset: 6px; border-radius: 50%; pointer-events: none; opacity: .55;
  background: repeating-conic-gradient(from -1deg, var(--muted) 0 2deg, transparent 2deg 12deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); }
.dial-pointer { position: absolute; left: 50%; top: -2px; width: 0; height: 0; margin-left: -8px; border: 8px solid transparent; border-top: 11px solid var(--accent); pointer-events: none; z-index: 2; }
.dial-labels { position: absolute; inset: 0; }
.dial-n { position: absolute; left: 50%; top: 50%; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 700; font-size: .82rem; line-height: 1; font-family: inherit; display: grid; place-items: center; cursor: pointer; will-change: transform; }
.dial-n.past { background: var(--soft); }
.dial-n.far { color: var(--muted); }
.dial-n[style*="--c"] { border-bottom: 3px solid var(--c); }
.dial-n.now { border-color: var(--accent); color: var(--accent); }
.dial-n.top { background: var(--ink); color: var(--card); border-color: var(--ink); }
.dial-hub { position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; border: 2px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); font-family: inherit; color: var(--ink); z-index: 3; }
.dial-hub small { font-size: .7rem; color: var(--muted); font-weight: 600; min-height: .8em; }
.dial-hub b { font-size: 1.7rem; line-height: 1; }
.dial-hub span { font-size: .68rem; color: var(--muted); font-weight: 700; min-height: .8em; }
.dial-hub.away { border-color: var(--accent); }
.dial-hub.away span { color: var(--accent); }
.wheel-hint { text-align: center; font-size: .78rem; color: var(--muted); margin: 8px 0 4px; }
.now-btn { border: 1px solid var(--accent); color: var(--accent); background: var(--card); cursor: pointer; }

/* Premium kenntlich machen */
#nav [data-tab].prem-tab { position: relative; }
#nav [data-tab].prem-tab::after { content: '⭐'; position: absolute; top: 2px; right: calc(50% - 22px); font-size: .62rem; line-height: 1; }
#nav [data-tab].prem-lock::after { content: '🔒'; }
.gift-chip { display: block; width: 100%; margin: 4px 0 2px; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); color: var(--ink); font-weight: 600; font-size: .85rem; text-align: center; cursor: pointer; }
.btn.block + .btn.small.block { margin-top: 8px; }

/* Ausstattungs-Symbole */
.ico { width: 1em; height: 1em; display: block; color: var(--ink); opacity: .86; }
.is-img > span, .gemoji { display: inline-grid; place-items: center; }
.evl li > span .ico { width: 1.3rem; height: 1.3rem; }

/* Admin */
.adm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.adm { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.adm small { color: var(--muted); display: block; }
.adm-t { width: 100%; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .92rem; background: var(--bg, var(--card)); color: var(--ink); resize: vertical; }
.adm-t[readonly] { background: var(--soft); }
.adm-b { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.adm-del { color: #c0392b; border-color: #e7b5ae; background: var(--card); }
.btn.adm-del.arm { background: #c0392b; color: #fff; border-color: #c0392b; }

/* Budget: ein Preis je Ding */
.price-in { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.price-in input { width: 110px; border: 1px solid #b0b0b0; border-radius: 10px; padding: 8px 10px; font-size: 1rem; background: var(--card); }
.pin { display: flex; align-items: center; gap: 3px; flex-shrink: 0; color: var(--muted); font-size: .85rem; cursor: text; }
.pin input { width: 64px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px; font-size: .9rem; text-align: right; background: var(--card); color: var(--ink); }
.wish li.got .pin input { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }

/* Detailansicht als Formular, Budget, eigene Einträge */
.wish li > svg { width: 16px; height: 16px; fill: none; stroke: #b0b0b0; stroke-width: 2; flex-shrink: 0; }
.stat small { font-size: .72rem; line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; }
.dec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.dec-grid button { border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; font-weight: 600; font-size: .88rem; background: var(--card); color: var(--ink); }
.dec-grid button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.budget-in label.off { opacity: .45; }
.budget-in input:disabled { background: var(--soft); }
.sheet-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0 calc(6px + var(--safe-b, 0px)); background: var(--card); border-top: 1px solid var(--line); margin-top: 14px; z-index: 2; }
.btn.pulse { animation: bbpulse .5s ease 2; }
@keyframes bbpulse { 50% { transform: scale(1.05); } }
.field { display: grid; gap: 6px; font-weight: 600; margin: 8px 0; }
.field input { border: 1px solid #b0b0b0; border-radius: 10px; padding: 10px 12px; font-size: 1rem; background: var(--card); color: var(--ink); }
.danger-link.arm { font-weight: 700; }
#addCustom { margin-top: 12px; }
