/* Mia & Matthieu – "Liquid Glass": durchscheinende Flächen über einem bewegten Farbverlauf. */

:root {
  color-scheme: light dark;
  --bg: #eef1fb;
  --bg-2: #fbf3ff;
  --text: #111318;
  --text-2: rgba(30, 32, 44, .68);
  --text-3: rgba(30, 32, 44, .46);
  --glass: rgba(255, 255, 255, .5);
  --glass-strong: rgba(250, 250, 255, .84);
  --glass-border: rgba(255, 255, 255, .7);
  --glass-hi: rgba(255, 255, 255, .95);
  --glass-lo: rgba(255, 255, 255, .25);
  --sheen: 1;
  --fill: rgba(118, 118, 140, .1);
  --fill-2: rgba(118, 118, 140, .2);
  --input: rgba(255, 255, 255, .7);
  --seg-on: #fff;
  --sep: rgba(60, 60, 80, .12);
  --shadow: 0 1px 2px rgba(20, 24, 60, .05), 0 14px 44px rgba(30, 36, 90, .12);
  --accent: #007aff;
  --papa: #2fbf5c;
  --mama: #a855e8;
  --papa-text: #187a36;
  --mama-text: #7a2fba;
  --danger: #e5352b;
  --blob-1: #ffb3c9;
  --blob-2: #9ccbff;
  --blob-3: #ffe0a3;
  --blob-4: #c9b6ff;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05070f;
    --bg-2: #121834;
    --text: #f4f5f8;
    --text-2: rgba(235, 235, 245, .7);
    --text-3: rgba(235, 235, 245, .44);
    --glass: rgba(38, 42, 64, .42);
    --glass-strong: rgba(26, 28, 44, .88);
    --glass-border: rgba(255, 255, 255, .12);
    --glass-hi: rgba(255, 255, 255, .2);
    --glass-lo: rgba(0, 0, 0, .25);
    --sheen: .22;
    --fill: rgba(255, 255, 255, .08);
    --fill-2: rgba(255, 255, 255, .16);
    --input: rgba(255, 255, 255, .08);
    --seg-on: rgba(255, 255, 255, .2);
    --sep: rgba(255, 255, 255, .1);
    --shadow: 0 14px 44px rgba(0, 0, 0, .45);
    --accent: #0a84ff;
    --papa: #32d74b;
    --mama: #bf5af2;
    --papa-text: #74e690;
    --mama-text: #ddb0ff;
    --danger: #ff6961;
    --blob-1: #8c2955;
    --blob-2: #1c4e9c;
    --blob-3: #6a4811;
    --blob-4: #4a2e9c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- Hintergrund --- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(120% 80% at 15% 0%, var(--bg-2) 0%, var(--bg) 65%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .75;
  animation: drift 28s ease-in-out infinite alternate;
}
.b1 { width: 55vmax; height: 55vmax; left: -16vmax; top: -22vmax; background: var(--blob-1); }
.b2 { width: 48vmax; height: 48vmax; right: -18vmax; top: 8vmax; background: var(--blob-2); animation-duration: 34s; }
.b3 { width: 42vmax; height: 42vmax; left: 6vmax; bottom: -20vmax; background: var(--blob-3); animation-duration: 40s; }
.b4 { width: 30vmax; height: 30vmax; right: 4vmax; bottom: -6vmax; background: var(--blob-4); animation-duration: 31s; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* --- Glas --- */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-lo);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--sheen);
  background: linear-gradient(155deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .16) 100%);
}
.glass > * { position: relative; }
.glass.strong { background: var(--glass-strong); }

/* --- Layout --- */
.app {
  max-width: 1240px;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top) + 24px)
    max(16px, env(safe-area-inset-right))
    calc(env(safe-area-inset-bottom) + 120px)
    max(16px, env(safe-area-inset-left));
}
.hero { padding: 6px 4px 20px; }
.eyebrow { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.hero h1 { margin: 2px 0 0; font: 800 clamp(30px, 7vw, 44px)/1.08 var(--font-display); letter-spacing: -.025em; }

.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide { grid-column: 1 / -1; }
}
@media (min-width: 1180px) {
  .grid.today { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.today .upcoming { grid-column: span 2; }
}

.card { padding: 20px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.card h2 { margin: 0 0 8px; font: 700 22px/1.2 var(--font-display); letter-spacing: -.01em; }
.card h3.sub { margin: 22px 0 2px; font-size: 17px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.link { font-weight: 600; font-size: 15px; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; flex-wrap: wrap; }
.version { text-align: center; margin-top: 24px; }

/* --- Tab-Leiste & Plus --- */
.tabbar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 80px;
  padding: 7px 12px 6px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.tab svg { width: 25px; height: 25px; }
.tab.active { color: var(--accent); background: var(--fill-2); }
.fab {
  position: fixed;
  z-index: 20;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.fab svg { width: 30px; height: 30px; stroke-width: 2.2; }
.fab:active, .tab:active { transform: scale(.95); }
.tabbar:active { transform: translateX(-50%); }
@media (max-width: 560px) {
  .tabbar { left: max(16px, env(safe-area-inset-left)); transform: none; }
  .tabbar:active { transform: none; }
  .tab { min-width: 72px; padding-inline: 8px; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--fill-2);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  text-align: center;
  transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 14px; }
.icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fill-2);
  display: grid;
  place-items: center;
  color: var(--text);
}
.icon-btn svg { width: 20px; height: 20px; }

/* --- Formulare --- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 13px; color: var(--text-3); }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--sep);
  border-radius: var(--r-sm);
  background: var(--input);
  font-size: 17px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
}
input::-webkit-date-and-time-value { text-align: left; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
textarea { min-height: 88px; resize: vertical; }
input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  overflow: hidden;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 2px solid var(--glass-border); border-radius: 50%; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form-error { margin: 0; color: var(--danger); font-size: 14px; }

.seg { display: flex; padding: 3px; border-radius: 13px; background: var(--fill); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  flex: 1;
  padding: 9px 10px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.seg input:checked + label { background: var(--seg-on); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-weight: 600; }
.switch input {
  flex: none;
  width: 51px;
  height: 31px;
  margin: 0;
  border-radius: 999px;
  background: var(--fill-2);
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  transition: background .2s;
  cursor: pointer;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
  transition: transform .2s;
}
.switch input:checked { background: var(--papa); }
.switch input:checked::after { transform: translateX(20px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--sep);
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, border-color .2s;
}
.chip::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--c); opacity: .3; transition: opacity .2s; }
.chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
}
.chip[aria-pressed="true"]::before { opacity: 1; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }

/* --- Termine --- */
.day-group + .day-group { margin-top: 6px; }
.day-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 2px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.event {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 10px 12px 10px 16px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  text-align: left;
  transition: background .15s;
}
.event:hover, .event:focus-visible { background: var(--fill); outline: none; }
.event::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 2px;
  background: var(--bar);
}
.event.past { opacity: .5; }
.event-time { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.event-time b { font-weight: 600; font-size: 15px; }
.event-time b.allday { font-size: 12px; padding-top: 2px; color: var(--text-2); }
.event-time small { color: var(--text-3); font-size: 13px; }
.event-title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; font-size: 13px; color: var(--text-2); }
.event-meta .loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.kid-tag { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.kid-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.empty-mini { padding: 18px 4px 6px; }
.empty-mini p { margin: 0 0 4px; }

.ctag {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--fill);
  color: var(--text-2);
}
.ctag.papa { background: color-mix(in srgb, var(--papa) 18%, transparent); color: var(--papa-text); }
.ctag.mama { background: color-mix(in srgb, var(--mama) 16%, transparent); color: var(--mama-text); }

/* --- Wechselmodell --- */
.custody h2 { display: flex; align-items: center; gap: 10px; }
.custody.is-papa h2::before, .custody.is-mama h2::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--papa);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--papa) 22%, transparent);
}
.custody.is-mama h2::before { background: var(--mama); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mama) 22%, transparent); }
.custody-next { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 4px; font-size: 15px; }
.custody-next > span:first-child { color: var(--text-2); }
.custody p.small { margin: 2px 0 0; }
.pill { padding: 3px 9px; border-radius: 999px; background: var(--fill-2); font-size: 13px; font-weight: 600; }
.cstrip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; margin-top: 16px; }
.cday {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  border-radius: 10px;
  font-size: 12px;
}
.cday small { color: var(--text-3); font-size: 10px; font-weight: 700; }
.cday b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cday.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (max-width: 480px) {
  .cstrip { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .cday:nth-child(n + 8) { display: none; }
}
/* Tönung als Variable, damit Tagesleiste, Kalenderzellen und Legende sie gleich nutzen. */
.c-papa { --tint: color-mix(in srgb, var(--papa) 22%, transparent); }
.c-mama { --tint: color-mix(in srgb, var(--mama) 17%, transparent); }
.c-to-papa { --tint: linear-gradient(90deg, color-mix(in srgb, var(--mama) 17%, transparent) 50%, color-mix(in srgb, var(--papa) 22%, transparent) 50%); }
.c-to-mama { --tint: linear-gradient(90deg, color-mix(in srgb, var(--papa) 22%, transparent) 50%, color-mix(in srgb, var(--mama) 17%, transparent) 50%); }
.cday { background: var(--tint, var(--fill)); }

/* --- Kinder --- */
.kid-list { display: grid; gap: 14px; }
.kid { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 22px var(--font-display);
  color: #fff;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 50%, #fff), var(--c) 72%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), 0 6px 16px color-mix(in srgb, var(--c) 40%, transparent);
}
.kid h3 { margin: 0; font-size: 18px; }
.kid h3 small { margin-left: 4px; font-size: 14px; font-weight: 500; color: var(--text-3); }
.kid p { margin: 2px 0 0; }
.bday { font-weight: 600; }

/* --- Wetter --- */
.wx-now { display: flex; align-items: center; gap: 12px; }
.wx-icon { font-size: 50px; line-height: 1; }
.wx-temp { font: 200 64px/1 var(--font-display); letter-spacing: -.04em; }
.wx-desc { display: flex; flex-direction: column; min-width: 0; font-size: 14px; color: var(--text-2); }
.wx-desc b { color: var(--text); font-size: 16px; }
.wx-hours {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 16px -20px 0;
  padding: 0 20px 4px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}
.wx-hours::-webkit-scrollbar { display: none; }
.wx-hours > div {
  flex: 0 0 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  border-radius: 16px;
  background: var(--fill);
  font-size: 13px;
}
.wx-hours span { font-size: 22px; line-height: 1.2; }
.wx-hours small { color: var(--text-3); font-weight: 600; }
.wx-hours .rain { color: var(--accent); }
.wx-days { display: grid; gap: 2px; margin-top: 12px; }
.wx-day { display: grid; grid-template-columns: 1fr 28px 52px 76px; align-items: center; gap: 8px; padding: 4px 0; font-size: 15px; }
.wx-day .rain { color: var(--accent); font-size: 13px; text-align: right; }
.wx-day .range { text-align: right; font-variant-numeric: tabular-nums; }
.wx-day .range span { color: var(--text-3); }

.idea-text { margin: 0 0 10px; font-size: 17px; line-height: 1.45; }

/* --- Kalender --- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.cal-head h2 { margin: 0; }
.cal-nav { display: flex; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { padding-bottom: 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-3); }
.cell {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 0 6px;
  border: 0;
  border-radius: 14px;
  background: var(--tint, transparent);
}
.cell .num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cell.out { opacity: .38; }
.cell.today .num { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.cell.sel .num { background: var(--accent); color: #fff; box-shadow: none; }
.dots { display: flex; gap: 3px; height: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 5px; background: var(--tint); }
@media (min-width: 980px) {
  .grid.calendar { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .cell { min-height: 72px; }
}

/* --- Einstellungen --- */
.list { display: grid; gap: 8px; margin: 12px 0; }
.list:empty { display: none; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .meta { font-size: 13px; color: var(--text-2); }
.list-row .meta.error { color: var(--danger); }
.cal-row { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-md); background: var(--fill); }
.cal-row .top { display: flex; align-items: center; gap: 10px; }
.swatch { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
details.add { margin-top: 6px; }
details.add summary { display: inline-block; padding: 8px 0; font-weight: 600; color: var(--accent); cursor: pointer; list-style: none; }
details.add summary::-webkit-details-marker { display: none; }
details.add[open] summary { margin-bottom: 8px; }
.steps { margin: 4px 0 10px; padding-left: 22px; color: var(--text-2); font-size: 15px; }
.steps li { margin: 3px 0; }
.steps b { color: var(--text); }
.copy { display: flex; gap: 8px; margin: 12px 0 6px; }
.copy input { font-size: 14px !important; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { position: relative; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); cursor: pointer; }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }

/* --- Sheet --- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); opacity: 0; transition: opacity .25s; }
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 20px calc(env(safe-area-inset-bottom) + 22px);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.sheet::before { position: fixed; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
@media (min-width: 760px) {
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet { border-radius: var(--r-xl); padding-bottom: 22px; opacity: 0; transform: translateY(20px) scale(.98); transition: transform .25s, opacity .25s; }
  .sheet-wrap.open .sheet { opacity: 1; }
}
.sheet-grabber { width: 38px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--fill-2); }
@media (min-width: 760px) { .sheet-grabber { display: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font: 700 22px/1.2 var(--font-display); }
.detail h2 { margin: 0 0 4px; font: 700 26px/1.2 var(--font-display); letter-spacing: -.01em; }
.detail .when { margin: 0 0 12px; color: var(--text-2); }
.detail-row { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--sep); }
.detail-row .k { width: 86px; flex: none; font-size: 14px; color: var(--text-3); }
.detail-row .v { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions .btn { flex: 1; }
.choice { display: grid; gap: 10px; }

/* --- Login --- */
.login { min-height: 78vh; min-height: 78dvh; display: grid; place-items: center; }
.login-card { width: 100%; max-width: 380px; padding: 32px 24px; text-align: center; }
.login-card h1 { margin: 14px 0 2px; font: 800 28px/1.1 var(--font-display); letter-spacing: -.02em; }
.login-card p { margin: 0; }
.login-icon { width: 78px; height: 78px; border-radius: 22px; box-shadow: 0 10px 30px rgba(40, 60, 160, .25); }
.login .form { margin-top: 22px; text-align: left; }

/* --- Hinweise --- */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 12px);
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 15px;
  transform: translate(-50%, -160%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { color: var(--danger); }
.empty { max-width: 520px; margin: 40px auto; text-align: center; }
.skeleton { height: 160px; opacity: .6; }
