:root {
  --navy: #0A1F4E; --navy-9: #060f2b; --r50: #eaf2fb; --r100: #d0e1f5; --r300: #6FA8E0; --r500: #1D6DC7;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy-9); background: var(--r50);
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
button, input, textarea, a.big { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 1.9rem; font-weight: 800; }
h1 span { color: var(--r300); }
h2 { font-size: 1.1rem; margin: 1.6rem 0 0.6rem; display: flex; justify-content: space-between; align-items: center; }
.pad { padding: 0.5rem 1rem 7rem; max-width: 40rem; margin: 0 auto; }
.muted { color: #3d5aa1; }
.err { color: #b3261e; font-weight: 600; }

.top {
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(env(safe-area-inset-top) + 1rem) 1rem 1.1rem; border-radius: 0 0 1.5rem 1.5rem;
}
.top.sticky { position: sticky; top: 0; z-index: 5; }
.top .big { width: auto; padding: 0.7rem 1rem; margin: 0; white-space: nowrap; }
.back { color: #fff; font-size: 1.6rem; padding: 0.2rem 0.6rem 0.2rem 0; }
.prog { flex: 1; }
.prog small { display: block; margin-top: 0.4rem; color: var(--r100); }
.bar { height: 0.7rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--r300); border-radius: inherit; transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }

.big {
  display: block; width: 100%; text-align: center; text-decoration: none; margin-top: 1rem;
  background: var(--r500); color: #fff; font-weight: 700; padding: 1rem; border-radius: 1rem;
  transition: transform 0.12s;
}
.big:active { transform: scale(0.97); }
.big.ghost { background: #fff; color: var(--r500); border: 2px solid var(--r500); }
.link { display: block; margin: 1.5rem auto 0; color: #3d5aa1; text-decoration: underline; padding: 0.5rem; }
.mini { font-size: 0.8rem; font-weight: 600; color: var(--r500); padding: 0.3rem 0.6rem; border-radius: 1rem; background: #fff; }

.card {
  display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.8rem; width: 100%; text-align: left;
  background: #fff; border-radius: 1rem; padding: 0.9rem 1rem; margin-bottom: 0.6rem; border-left: 0.35rem solid var(--r300);
}
.card b { grid-row: span 2; align-self: center; min-width: 5.2rem; }
.card small { color: #3d5aa1; }
.card.ok, .card small.ok { border-left-color: var(--r500); }
.card small.ok { color: var(--r500); font-weight: 700; }
.card.plan.ok { opacity: 0.6; }

.lbl { display: block; font-size: 0.85rem; font-weight: 600; margin: 1rem 0 0.4rem; color: #3d5aa1; }
.seg { display: flex; background: #fff; border-radius: 1rem; padding: 0.25rem; gap: 0.25rem; }
.seg button { flex: 1; padding: 0.75rem 0.4rem; border-radius: 0.8rem; font-weight: 600; transition: background 0.15s, color 0.15s; }
.seg button.on { background: var(--navy); color: #fff; }
.row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0.75rem; }
input, textarea {
  width: 100%; border: 2px solid var(--r100); background: #fff; border-radius: 1rem; padding: 0.8rem 0.9rem; font-size: 16px;
}
input:focus, textarea:focus { outline: none; border-color: var(--r500); }
.mono { font-family: ui-monospace, Menlo, monospace; }

.hints { margin-top: 1rem; background: #fff; border-radius: 1rem; padding: 0.8rem 1rem; }
.hints summary { font-weight: 600; cursor: pointer; }
.hints ul { margin: 0.6rem 0 0; padding-left: 1.1rem; line-height: 1.5; }

.sec { transition: opacity 0.3s; }
.sec.all h2::after { content: none; }
.sec.all .item { opacity: 0.55; }
.item {
  display: flex; gap: 0.8rem; align-items: flex-start; background: #fff; border-radius: 1rem; padding: 0.9rem 1rem;
  margin-bottom: 0.45rem; line-height: 1.35; cursor: pointer; transition: background 0.2s;
}
.item input {
  appearance: none; flex: none; width: 1.6rem; height: 1.6rem; margin: 0; padding: 0; border-radius: 0.5rem;
  border: 2px solid var(--r300); display: grid; place-content: center; transition: background 0.15s, transform 0.15s;
}
.item input::after { content: ""; width: 0.45rem; height: 0.8rem; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1); margin-top: -0.2rem; }
.item input:checked { background: var(--r500); border-color: var(--r500); }
.item input:checked::after { transform: rotate(45deg) scale(1); }
.item:active input { transform: scale(0.88); }
.item.done { background: var(--r100); }
.item.done span { text-decoration: line-through; text-decoration-color: var(--r500); text-decoration-thickness: 2px; color: #3d5aa1; }

.photos { display: flex; gap: 0.6rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1rem 0.8rem; padding: 0 1rem; }
.photos a { flex: none; width: 7.5rem; scroll-snap-align: start; text-decoration: none; color: inherit; font-size: 0.75rem; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0.8rem; display: block; margin-bottom: 0.25rem; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--navy); padding: 0.5rem 1rem calc(env(safe-area-inset-bottom) + 0.5rem);
  border-radius: 1.5rem 1.5rem 0 0;
}
.tabs button { flex: 1; color: var(--r100); padding: 0.8rem; font-weight: 600; border-radius: 1rem; }
.tabs button.on { color: #fff; background: rgba(255, 255, 255, 0.1); }

.login { min-height: 100dvh; background: var(--navy); color: #fff; padding: 3rem 1.5rem; display: flex; flex-direction: column; justify-content: center; max-width: none; }
.login > * { width: 100%; max-width: 24rem; margin-left: auto; margin-right: auto; }
.login .logo { width: 9rem; margin-bottom: 2rem; }
.login h1 { font-size: 2.6rem; }
.login .muted { color: var(--r100); margin: 0.4rem auto 1.5rem; }
.login input { margin-bottom: 0.6rem; color: var(--navy-9); }
.login .err { color: #ffb4ab; }

.tools a { display: block; text-decoration: none; color: inherit; }
.tools .card { grid-template-columns: 1fr; }
.tools .card b { grid-row: auto; font-size: 1.2rem; }

/* Markenmotiv: helle Wasserkante wischt einmal über den Bildschirm, wenn alles abgehakt ist. */
#wipe { position: fixed; inset: 0; pointer-events: none; z-index: 20; transform: translateX(-110%);
  background: linear-gradient(100deg, transparent 0 30%, rgba(111, 168, 224, 0.55) 45%, rgba(255, 255, 255, 0.9) 50%, rgba(111, 168, 224, 0.55) 55%, transparent 70%); }
#wipe.go { animation: wipe 0.9s cubic-bezier(0.6, 0, 0.3, 1) forwards; }
@keyframes wipe { to { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.laundry { background: #fff; border-radius: 1.2rem; padding: 0.2rem 1rem 1rem; margin-bottom: 1rem; }
.laundry h2 small { font-weight: 500; font-size: 0.8rem; color: #3d5aa1; }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.6rem; }
.counts div { background: var(--r50); border-radius: 0.9rem; padding: 0.7rem 0.8rem; }
.counts b { display: block; font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.counts span { font-size: 0.8rem; color: #3d5aa1; }
