/* Wisherle: hell und warm wie Holzspielzeug. Rot nur für das, was man tun kann, Sand für alles Leise. */

@font-face {
  font-family: "Atkinson Next";
  src: url(fonts/atkinson-next-wght.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Next";
  src: url(fonts/atkinson-next-ext-wght.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Young Serif";
  src: url(fonts/young-serif-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbf3e4;
  --surface: #fffdf8;
  --surface-2: #f4e6d0;
  --ink: #3b2a1e;
  --ink-2: #765e4c;
  --line: #eadbc4;
  --brand: #c0281c;
  --brand-ink: #fffdf8;
  --brand-soft: #fbe1da;
  --accent: #ef5a45;
  --line-strong: #d3bc9b;
  --honey-ink: #8a5a08;
  --honey-soft: #fcecc9;
  --moss: #3d7050;
  --moss-soft: #e3eedb;
  --sky: #2f6690;
  --sky-soft: #e2ecf3;
  --rose: #b23a48;
  --rose-soft: #f9e1dc;
  --stamp-paper: #fffaf0;
  --shadow: 0 1px 0 rgb(59 42 30 / 0.05), 0 10px 24px -16px rgb(59 42 30 / 0.4);
  --font: "Atkinson Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --tap: 52px;
  --gutter: max(16px, env(safe-area-inset-left));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.family { font-size: 19px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.2rem; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--ink-2); }
.small { font-size: 0.88rem; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prewrap { white-space: pre-line; overflow-wrap: anywhere; }

/* Seitenrahmen ------------------------------------------------------------ */

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 8px var(--gutter) 40px;
}
.has-tabbar .page { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.has-savebar .page { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

.top {
  max-width: 40rem;
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--brand);
  text-decoration: none;
}
.brand .i { color: var(--accent); width: 1.1em; height: 1.1em; }
.top .spacer { flex: 1; }
.top-preview {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink);
  font-weight: 650; font-size: 0.88rem; text-decoration: none;
}
.top-preview .i { width: 1.1em; height: 1.1em; }
.back {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 44px; padding-right: 8px;
  color: var(--brand); text-decoration: none; font-weight: 600;
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-family: var(--display); font-size: 1.1rem;
  text-decoration: none;
}

.page-head { margin: 8px 0 22px; }
.page-head p { margin-top: 6px; color: var(--ink-2); }

/* Tab-Leiste ---------------------------------------------------------------- */

.tabbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar ul {
  list-style: none; margin: 0 auto; padding: 6px 8px 4px;
  max-width: 40rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 54px; justify-content: center;
  color: var(--ink-2); text-decoration: none;
  font-size: 0.76rem; font-weight: 600;
}
.tabbar a .i { width: 26px; height: 26px; }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tabbar .tab-new .bubble {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink);
}
.tabbar .tab-new .i { width: 24px; height: 24px; }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border: 0; border-radius: 14px;
  font: inherit; font-weight: 650; line-height: 1.2;
  text-decoration: none; text-align: center;
  cursor: pointer;
  background: var(--surface-2); color: var(--ink);
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 12px; }
.btn-danger { background: var(--rose-soft); color: var(--rose); }
.btn-good { background: var(--moss-soft); color: var(--moss); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row > form { display: contents; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0;
  display: inline-grid; place-items: center;
  background: var(--surface-2); color: var(--ink);
  cursor: pointer;
}
.icon-btn:disabled { opacity: 0.35; }
.linkish {
  background: none; border: 0; padding: 0; font: inherit; color: var(--brand);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  min-height: 44px;
}

/* Formulare --------------------------------------------------------------- */

.field { display: block; }
.field + .field, .field + .fieldset, .fieldset + .field, .fieldset + .fieldset { margin-top: 18px; }
.label {
  display: block; margin-bottom: 7px;
  font-weight: 650; font-size: 0.88rem;
}
.label .opt { font-weight: 400; color: var(--ink-2); }
.input, .select, .textarea {
  display: block; width: 100%;
  min-height: var(--tap);
  padding: 12px 15px;
  font: inherit; color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgb(59 42 30 / 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--ink-2) 70%, transparent); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--rose); }
.textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
.select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7a8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
input[type="date"].input { -webkit-appearance: none; appearance: none; }
.hint { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--ink-2); }
.error { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--rose); font-weight: 600; }
.money { position: relative; }
.money .input { padding-right: 40px; }
.money::after {
  content: "€"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--ink-2); pointer-events: none;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 > .field + .field { margin-top: 0; }

.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { display: flex; gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 14px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 6px; border-radius: 12px;
  font-weight: 600; font-size: 0.88rem; text-align: center; line-height: 1.15;
  color: var(--ink-2);
}
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }

.photo-pick {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 14px;
  border: 1.5px dashed var(--line-strong); background: var(--surface);
  cursor: pointer;
}
.photo-pick .preview {
  width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none;
  background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2);
}
.photo-pick .preview .i { width: 28px; height: 28px; }
.photo-pick input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-pick:focus-within { border-color: var(--brand); }
.photo-pick strong { display: block; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check-line input { width: 22px; height: 22px; accent-color: var(--brand); }

details.more { border-top: 1px solid var(--line); padding-top: 6px; }
details.more > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px; min-height: 48px;
  color: var(--brand); font-weight: 650;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .i { transition: transform 0.2s ease; }
details.more[open] > summary .i { transform: rotate(90deg); }
details.more > .more-body { padding: 6px 0 4px; }

.savebar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
}
.savebar .inner { max-width: 40rem; margin: 0 auto; display: flex; gap: 10px; }
.savebar .btn-primary { flex: 1; }

.status-line {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 10px 14px; border-radius: 12px;
  font-size: 0.88rem; background: var(--surface-2); color: var(--ink-2);
}
.status-line[hidden] { display: none; }
.status-line.is-busy::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
.status-line.is-ok { background: var(--moss-soft); color: var(--moss); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast ------------------------------------------------------------------- */

.toast {
  position: fixed; z-index: 50;
  left: 50%; top: calc(12px + env(safe-area-inset-top));
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; box-shadow: var(--shadow);
  animation: toast-in 0.25s ease-out;
}
.toast.is-hiding { opacity: 0; transition: opacity 0.4s ease; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } }

/* Admin: Start ------------------------------------------------------------- */

.phase-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.phase-strip .lead { font-weight: 650; margin-right: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink);
  font-weight: 650; font-size: 0.88rem; text-decoration: none;
  border: 0; font-family: inherit;
}
.chip-add { list-style: none; background: transparent; color: var(--brand); border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, transparent); cursor: pointer; }
.phase-more > summary::-webkit-details-marker { display: none; }
.phase-more[open] { flex-basis: 100%; }
.phase-more[open] > summary { display: none; }
.phase-add { display: flex; gap: 8px; }
.phase-add .input { min-height: 44px; padding: 8px 14px; }
.phase-add .btn { min-height: 44px; }

.next-occasion {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
}
.next-occasion .when {
  flex: none; width: 54px; padding: 6px 0; border-radius: 12px; text-align: center;
  background: var(--brand-soft); color: var(--brand); line-height: 1.1;
}
.next-occasion .when b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 400; }
.next-occasion .when span { font-size: 0.76rem; font-weight: 650; }
.next-occasion .what { flex: 1; min-width: 0; }
.next-occasion .chev { color: var(--ink-2); }
.next-occasion .what strong { display: block; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px 10px;
  border-radius: 20px; background: var(--surface); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; font-weight: 650; font-size: 0.88rem;
}
.badge-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
}
.badge-icon .i { width: 24px; height: 24px; }
.t-product { background: var(--brand-soft); color: var(--brand); }
.t-idea { background: var(--honey-soft); color: var(--honey-ink); }
.t-time { background: var(--sky-soft); color: var(--sky); }
.t-pot { background: var(--moss-soft); color: var(--moss); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px;
  margin: 30px 0 10px;
}
.section-head .meta { color: var(--ink-2); font-size: 0.88rem; white-space: nowrap; }

.rows {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow);
  overflow: hidden;
}
.row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center; gap: 14px;
  min-height: 76px; padding: 10px 14px;
  color: inherit; text-decoration: none;
}
.rows > li + li { border-top: 1px solid var(--line); }
.rows > li:target { background: var(--brand-soft); }
.thumb {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover;
  display: grid; place-items: center; background: var(--surface-2);
}
.thumb .i { width: 26px; height: 26px; }
.row .title { font-weight: 650; line-height: 1.3; }
.row .sub > span { max-width: 100%; }
.row .sub { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 0.88rem; color: var(--ink-2); }
.row .sub .i { width: 1em; height: 1em; vertical-align: -0.12em; }
.heart { color: var(--rose); }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 650; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.pill-taken { background: var(--moss-soft); color: var(--moss); }
.pill-received { background: var(--sky-soft); color: var(--sky); }
.pill-money { background: var(--moss-soft); color: var(--moss); }
.sort-btns { display: flex; gap: 6px; }
.empty {
  padding: 26px 20px; border-radius: 20px; text-align: center;
  background: var(--surface); box-shadow: var(--shadow); color: var(--ink-2);
}
.empty h2 { color: var(--ink); margin-bottom: 8px; }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface-2); color: var(--ink);
}
.notice .i { color: var(--brand); margin-top: 2px; }
.notice a { font-weight: 650; }
.list-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.list-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }

/* Admin: Menüs und Detailseiten -------------------------------------------- */

.menu { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.menu li + li { border-top: 1px solid var(--line); }
.menu > li > a, .menu > li > form > button {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 60px; padding: 8px 16px;
  background: none; border: 0; font: inherit; text-align: left;
  color: var(--ink); text-decoration: none; cursor: pointer;
}
.menu .grow { flex: 1; min-width: 0; }
.menu .grow small { display: block; color: var(--ink-2); font-size: 0.88rem; }
.menu .chev { color: var(--ink-2); }

.panel { padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.panel h2 { margin-bottom: 10px; }
.who-list { list-style: none; margin: 8px 0 0; padding: 0; }
.who-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.who-list .btn-row { margin-top: 8px; }
.danger-zone { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }

.secret {
  padding: 16px; border-radius: 14px; background: var(--surface-2);
  overflow-wrap: anywhere; word-break: break-all; font-size: 0.88rem;
}
.qr { display: block; width: 100%; max-width: 260px; height: auto; border-radius: 12px; background: #fff; }

/* Onboarding ----------------------------------------------------------------- */

.onboard-step { color: var(--ink-2); font-weight: 650; margin-bottom: 8px; }

/* Familienansicht ---------------------------------------------------------- */

.family .page { max-width: 44rem; padding-bottom: 64px; }
.hero { text-align: center; padding: 26px 0 8px; }
.stamp {
  --r: 5px;
  display: inline-block;
  padding: calc(2.4 * var(--r));
  background:
    radial-gradient(var(--r), #0000 97%, var(--stamp-paper)) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(var(--stamp-paper) 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  filter: drop-shadow(0 8px 12px rgb(59 42 30 / 0.2));
  transform: rotate(-2.5deg);
}
.stamp img, .stamp .stamp-fallback {
  display: block; width: 148px; aspect-ratio: 4 / 5; object-fit: cover;
}
.stamp .stamp-fallback {
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-family: var(--display); font-size: 4rem;
}
.hero h1 { font-size: 2.6rem; margin-top: 18px; overflow-wrap: anywhere; }
.hero .age { margin-top: 4px; color: var(--ink-2); }
.hero .phase-strip { justify-content: center; margin-top: 16px; }
.hero .phase-strip .lead { flex-basis: 100%; margin: 0 0 2px; color: var(--ink-2); font-weight: 600; }

.facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  margin: 18px auto 0; padding: 0; list-style: none;
  color: var(--ink-2); font-size: 0.88rem;
}
.facts b { color: var(--ink); }
.facts-note { max-width: 32rem; margin: 10px auto 0; text-align: center; color: var(--ink-2); font-size: 0.88rem; }

.hello {
  margin-top: 26px; padding: 18px; border-radius: 20px;
  background: var(--brand-soft);
}
.hello h2 { font-size: 1.35rem; margin-bottom: 4px; }
.hello form { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.hello .input { flex: 1 1 12rem; }
.hello .btn { flex: 1 1 8rem; }
.whoami { margin-top: 22px; color: var(--ink-2); text-align: center; }
.whoami details { display: inline; }
.whoami summary { display: inline; cursor: pointer; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.whoami form { display: flex; gap: 8px; margin-top: 10px; }
.whoami .whoami-line { display: block; margin-top: 6px; }
.whoami-body { display: grid; gap: 8px; margin-top: 10px; }
.whoami-body .btn-row { justify-content: center; }

.cards { display: grid; gap: 18px; }
.card {
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow);
  overflow: hidden; scroll-margin-top: 16px;
}
.card-img { display: block; width: 100%; aspect-ratio: 4 / 3; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.card-img.photo img { object-fit: cover; padding: 0; }
.card-body { padding: 18px 16px 20px; }
@media (min-width: 400px) { .card-body { padding: 20px 20px 22px; } }
.card-kind { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.88rem; font-weight: 650; color: var(--ink-2); }
.card-kind .badge-icon { width: 30px; height: 30px; border-radius: 9px; }
.card-kind .badge-icon .i { width: 18px; height: 18px; }
.card-kind .heart-label { margin-left: auto; color: var(--rose); display: inline-flex; align-items: center; gap: 4px; }
.card h3 { overflow-wrap: anywhere; }
.card .note { margin-top: 8px; color: var(--ink-2); }
.card .facts-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-weight: 650; }
.card .shop { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-weight: 650; }
.card-action { margin-top: 18px; }
.card-action .btn { min-height: 60px; border-radius: 14px; }
.card-action .field + .btn, .card-action .field + .field { margin-top: 12px; }
.card-msg { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-weight: 650; }
.card-msg.ok { background: var(--moss-soft); color: var(--moss); }
.card-msg.bad { background: var(--rose-soft); color: var(--rose); }
.mine-banner {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 14px; border-radius: 14px;
  background: var(--moss-soft); color: var(--moss); font-weight: 650;
}
.shared-notes { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--honey-soft); }
.shared-notes ul { list-style: none; margin: 0; padding: 0; }
.shared-notes p { font-weight: 650; margin-bottom: 4px; }
.shared-notes li { padding-left: 1.1em; position: relative; }
.shared-notes li::before { content: "✓"; position: absolute; left: 0; color: var(--honey-ink); }

.pot-total { margin-top: 14px; }
.pot-total p { font-weight: 650; }
progress.bar {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 12px; margin-top: 8px;
  border: 0; border-radius: 999px; overflow: hidden;
  background: var(--surface-2); color: var(--moss);
}
progress.bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
progress.bar::-webkit-progress-value { background: var(--moss); border-radius: 999px; }
progress.bar::-moz-progress-bar { background: var(--moss); border-radius: 999px; }

.bank { margin-top: 16px; display: grid; gap: 16px; }
.bank-lead { font-weight: 650; }
.copy-list { list-style: none; margin: 0; padding: 0; border-radius: 14px; background: var(--surface-2); }
.copy-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: 10px; padding: 10px 10px 12px 14px;
}
.copy-list li + li { border-top: 1px solid var(--line); }
.copy-list .kv { display: contents; }
.copy-list .k { grid-column: 1; grid-row: 1; font-size: 0.88rem; color: var(--ink-2); }
.copy-list .v {
  grid-column: 1 / -1; grid-row: 2; margin-top: 2px;
  font-size: 1rem; font-weight: 650; overflow-wrap: anywhere;
  -webkit-user-select: all; user-select: all; font-variant-numeric: tabular-nums;
}
.copy-btn {
  grid-column: 2; grid-row: 1;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0;
  background: var(--surface); color: var(--brand); font: inherit; font-weight: 650; font-size: 0.88rem;
  cursor: pointer; box-shadow: var(--shadow);
}
.copy-btn.is-done { color: var(--moss); }
.qr-box { text-align: center; }
.qr-box .qr { margin: 0 auto; max-width: 220px; }
.qr-wide { display: none; }
details.qr-mobile > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  min-height: 48px; color: var(--brand); font-weight: 650;
}
details.qr-mobile > summary::-webkit-details-marker { display: none; }
.pledge-form { display: grid; gap: 12px; margin-top: 4px; }
.my-pledges { list-style: none; margin: 0; padding: 0; }
.my-pledges li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; }

.taken-list { list-style: none; margin: 0; padding: 0; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.taken-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink-2); }
.taken-list li + li { border-top: 1px solid var(--line); }
.taken-list .i { color: var(--moss); flex: none; }
.taken-list li > span { min-width: 0; }
.taken-list small { display: block; font-size: 0.88rem; }
.family .section-head[id] { scroll-margin-top: 72px; }

.preview-bar {
  position: sticky; top: 0; z-index: 30;
  padding: 10px var(--gutter); text-align: center;
  background: var(--ink); color: var(--bg); font-weight: 650; font-size: 0.88rem;
}
.preview-bar a { color: inherit; }
.foot { margin-top: 40px; text-align: center; color: var(--ink-2); font-size: 0.88rem; }

@media (min-width: 720px) {
  html { font-size: 18px; }
  html.family { font-size: 20px; }
  .bank { grid-template-columns: 1fr auto; align-items: start; }
  .qr-wide { display: block; }
  details.qr-mobile { display: none; }
  .cards { grid-template-columns: 1fr 1fr; align-items: start; }
  .cards .card-pot { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.page-gap { padding-top: 48px; }
.page-gap-sm { margin-top: 36px; }
.page-gap-xs { margin-top: 8px; }

.thumb.t-product { background: var(--brand-soft); }
.thumb.t-idea { background: var(--honey-soft); }
.thumb.t-time { background: var(--sky-soft); }
.thumb.t-pot { background: var(--moss-soft); }

.greeting {
  max-width: 30rem; margin: 18px auto 0; padding: 14px 18px;
  border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
  font-family: var(--display); font-size: 1.2rem; line-height: 1.4;
}

/* Einstellungen ------------------------------------------------------------ */

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats a {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
}
.stats b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--ink); }
.stats span { font-size: 0.88rem; color: var(--ink-2); font-weight: 600; }
.notice-link { margin-top: 12px; text-decoration: none; color: var(--ink); }
.notice-warn { background: var(--rose-soft); }
.notice-warn .i { color: var(--rose); }
.menu .pill { flex: none; }
.entries .entry { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; }
.entries .entry-main { flex: 1 1 14rem; min-width: 0; }
.entries .title { display: block; font-weight: 650; color: var(--ink); text-decoration: none; }
.entries a.title { color: var(--brand); }
.entries .sub { display: block; font-size: 0.88rem; color: var(--ink-2); }
.entries .is-done .title { color: var(--ink-2); }
.kv-list li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; }
.kv-list .grow small { display: block; color: var(--ink-2); font-size: 0.88rem; }
.kv-value { text-align: right; overflow-wrap: anywhere; max-width: 60%; font-weight: 650; }
.toggles .toggle { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; cursor: pointer; }
.toggles .grow small { display: block; color: var(--ink-2); font-size: 0.88rem; }
.toggle input {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 52px; height: 32px; margin: 0; border-radius: 999px;
  background: var(--line-strong); position: relative; cursor: pointer;
  transition: background 0.15s ease;
}
.toggle input::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.15s ease;
}
.toggle input:checked { background: var(--moss); }
.toggle input:checked::after { transform: translateX(20px); }
.toggle input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
code, .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; }
.code {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); overflow-x: auto; white-space: pre;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* Teilen und Freigabe --------------------------------------------------------- */

.btn-whatsapp { background: #25d366; color: #0b2e17; }
.tab-icon { position: relative; display: inline-flex; }
.tabbar .dot {
  position: absolute; top: -4px; right: -10px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--rose); color: #fff; font-size: 0.76rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.section-head-tight { margin-top: 0; }
.gate { max-width: 30rem; padding-top: 56px; text-align: center; }
.gate-mark {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.gate-mark .i { width: 38px; height: 38px; }
.gate h1 { font-size: 2rem; }
.gate .lead { margin-top: 12px; font-size: 1rem; }
.gate > .muted, .gate > .btn { margin-top: 20px; }
.gate-form { margin: 26px 0 18px; text-align: left; }

details.owned > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px;
  font-weight: 600; color: var(--brand); cursor: pointer; list-style: none;
}
details.owned > summary::-webkit-details-marker { display: none; }
details.owned > summary .i { transition: transform 0.2s ease; }
details.owned[open] > summary .i { transform: rotate(90deg); }

/* Honigtopf gegen Bots (Formulare ohne Konto) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
