/* Design „Oberhofen“: Stein, Papier, Nachtblau – Zirbe als einzige warme Hervorhebung.
   Merkmal der Familien-App: das Geschenkband (ein Feld je Wunsch, gefüllt = vergeben). */
:root {
  color-scheme: light;
  --bg: #f1f2f0; --card: #ffffff; --surface: #e9ebe8; --border: #dcdfdb; --line: #e8eae6;
  --text: #1f2b3d; --text-2: #3e4a5b; --muted: #6a7380;
  --accent: #34557d; --accent-strong: #1f2b3d; --accent-soft: #e3e9f0;
  --zirbe: #c08431; --zirbe-soft: #f5ead9; --gletscher: #7fa3c4;
  --good: #2f7a6b; --good-soft: #e1efeb; --bad: #b9473a; --bad-soft: #f6e4e1;
  --shadow: 0 1px 2px rgba(31, 43, 61, .06);
  --radius: 12px;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark;
    --bg: #141820; --card: #1b2029; --surface: #232a35; --border: #2c3441; --line: #262d38;
    --text: #e8ebef; --text-2: #c3cad4; --muted: #8e97a4;
    --accent: #8fb0d6; --accent-strong: #dbe6f3; --accent-soft: #24303f;
    --zirbe: #dba65c; --zirbe-soft: #3a2f1f; --gletscher: #8fb0d6;
    --good: #6cc0ab; --good-soft: #193029; --bad: #e88a7c; --bad-soft: #3a221f;
    --shadow: none; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Arial, sans-serif; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 60; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--zirbe); outline-offset: 2px; border-radius: 6px; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 236px; background: var(--bg); color: var(--text-2); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; height: 100dvh; flex-shrink: 0;
  padding: calc(18px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left)); }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 6px 22px; color: var(--text); text-decoration: none; }
.brand b { display: block; font: 700 1.05rem/1.2 var(--font-display); }
.brand small { display: block; color: var(--muted); font-size: .75rem; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--text); color: var(--bg); display: grid; place-items: center; flex-shrink: 0; }
.logo svg, .ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.logo svg { width: 19px; height: 19px; stroke-width: 2; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.nav-group { font-size: .78rem; color: var(--muted); padding: 16px 10px 4px; }
.side nav a, .bald { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.side nav a .ico { opacity: .8; }
.side nav a:hover { background: var(--surface); }
.side nav a[aria-current="page"] { background: var(--card); color: var(--text); font-weight: 600; box-shadow: var(--shadow), inset 3px 0 0 var(--zirbe); }
.bald { opacity: .45; cursor: default; }
.bald .ico { opacity: .8; }
.side-foot { flex-shrink: 0; padding: 12px 4px 0; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 700 .8rem/1 var(--font-display); flex-shrink: 0; }
.side-foot .wer { flex: 1; min-width: 0; font-size: .85rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot form { margin: 0; }
.main { flex: 1; min-width: 0; }
.top { display: flex; align-items: center; gap: 14px; padding: 26px 32px 6px; flex-wrap: wrap; max-width: 1100px; }
.top h1 { margin: 0; font: 700 1.6rem/1.2 var(--font-display); letter-spacing: -.01em; flex: 1; }
.tabs { display: flex; gap: 20px; padding: 0 32px; margin: 10px 0 20px; overflow-x: auto; scrollbar-width: none; max-width: 1100px; border-bottom: 1px solid var(--border); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 0 10px; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--zirbe); font-weight: 600; }
main { padding: 6px 32px 48px; max-width: 1100px; }
.burger { display: none; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.backdrop { display: none; }

/* ---------- Bausteine ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card > h2:first-child, .block > h2:first-child { margin-top: 0; }
h2 { font-size: 1.05rem; font-weight: 650; margin: 0 0 10px; }
.block h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.block h2 a { font: 500 .85rem/1 system-ui, sans-serif; text-decoration: none; color: var(--accent); }
.btn, .btn-s { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn { padding: 9px 16px; border: 0; background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn { color: #141820; } }
.btn:hover { background: var(--accent-strong); }
.btn-s { padding: 6px 11px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: .85rem; font-weight: 500; }
.btn-s:hover { background: var(--surface); }
.btn-s.gefahr { color: var(--bad); }
.btn-s .ico { width: 16px; height: 16px; }
.lnk { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.icon-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.alert { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; }
.alert-error, .alert.fehler { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--good-soft); color: var(--good); }
.alert.info { background: var(--accent-soft); color: var(--text); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 500; white-space: nowrap; background: var(--surface); color: var(--text-2); }
.pill.vergeben { background: var(--zirbe-soft); color: var(--text); }
.pill.besorgt { background: var(--good-soft); color: var(--good); }
.pill.herz { background: none; color: var(--zirbe); padding: 0; }
.kind-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.feld input, .feld textarea, .feld select, input.ein, select.ein { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-weight: 400; width: 100%; }
.feld textarea { min-height: 70px; resize: vertical; }
.feld small { font-weight: 400; }
.raster { display: grid; gap: 12px 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.raster .breit { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--text); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check small { display: block; color: var(--muted); }
.aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
details.aufklapp > summary { list-style: none; cursor: pointer; }
details.aufklapp > summary::-webkit-details-marker { display: none; }

/* ---------- Startseite ---------- */
.satz { font: 600 1.45rem/1.4 var(--font-display); margin: 0 0 26px; max-width: 760px; text-wrap: pretty; }
.satz b { color: var(--zirbe); font-weight: 700; }
.satz .muted { font-weight: 500; }
.zwei { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media screen and (max-width: 980px) { .zwei { grid-template-columns: 1fr; } }

/* Geschenkband: ein Feld je Wunsch */
.baender { display: flex; flex-direction: column; }
a.band-zeile { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 14px 2px; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
a.band-zeile:hover .wer { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.band-zeile .wer { font-weight: 600; }
.band-zeile .wer small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.band { display: flex; gap: 4px; flex-wrap: wrap; }
.band i { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--card); position: relative; }
.band i.v { background: var(--zirbe); border-color: var(--zirbe); }
.band i.h::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--zirbe); }
.band i.v.h::after { background: var(--card); }
.band i.b { background: var(--good); border-color: var(--good); opacity: .55; }
.band-zeile .zahl { color: var(--muted); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.band-zeile .zahl b { color: var(--text); }
.legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 10px; }
.legende span { display: inline-flex; gap: 6px; align-items: center; }
.legende .band i { width: 14px; height: 14px; border-radius: 4px; }
.legende .band i.h::after { inset: 4px; }

.liste-leise { list-style: none; margin: 0; padding: 0; }
.liste-leise li { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 11px 2px; border-top: 1px solid var(--border); align-items: center; }
.liste-leise li small { display: block; color: var(--muted); font-size: .82rem; }
.liste-leise .rechts { color: var(--muted); font-size: .82rem; white-space: nowrap; text-align: right; }
.leer { color: var(--muted); padding: 14px 2px; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Liste (Eltern) ---------- */
.kopf { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.kopf .kennzahl { font-size: .92rem; color: var(--text-2); }
.kopf .kennzahl b { font-variant-numeric: tabular-nums; }
.geschwister { display: flex; gap: 6px; flex-wrap: wrap; }
.geschwister a { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text-2); text-decoration: none; font-size: .88rem; font-weight: 500; }
.geschwister a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.freigabe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; }
.freigabe .link { display: flex; gap: 8px; min-width: 0; }
.freigabe input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: .88rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.freigabe .mehr { display: flex; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; align-items: center; font-size: .85rem; }
.freigabe .mehr form { margin: 0; }
.freigabe.aus input { opacity: .5; text-decoration: line-through; }

.wunsch-liste { list-style: none; margin: 0; padding: 0; }
.wunsch { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.wunsch:first-child { border-top: 0; }
.wunsch.bekommen { opacity: .6; }
.wunsch:target { background: linear-gradient(var(--zirbe-soft), var(--zirbe-soft)) no-repeat; background-size: 100% 100%; margin: 0 -20px; padding: 16px 20px; }
.bild { width: 76px; height: 76px; border-radius: 10px; background: var(--surface); object-fit: cover; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.bild .ico { width: 26px; height: 26px; opacity: .5; }
.wunsch h3 { font-size: 1rem; margin: 0 0 2px; font-weight: 650; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wunsch .info { font-size: .88rem; color: var(--text-2); }
.wunsch .info p { margin: 2px 0; }
.wunsch .meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-top: 4px; align-items: center; }
.wunsch .meta a { color: var(--accent); }
.wunsch .preis { font: 650 1rem/1.3 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.wunsch .seite { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.wunsch .knoepfe { display: flex; gap: 2px; }
.zusagen { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.zusage { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .88rem; }
.zusage form { margin: 0; display: inline; }
.zusage .notiz { color: var(--muted); font-style: italic; }
.mini-fortschritt { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; max-width: 220px; margin-top: 6px; }
.mini-fortschritt i { display: block; height: 100%; background: var(--zirbe); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.inline-form input { padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: .88rem; }
.inline-form input[name=betrag] { width: 90px; }
.bearbeiten { margin-top: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.mehr-menue { position: relative; }
.mehr-menue > summary { list-style: none; }
.mehr-menue > summary::-webkit-details-marker { display: none; }
.mehr-menue .menue { position: absolute; right: 0; top: 100%; z-index: 10; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; min-width: 210px; display: flex; flex-direction: column; }
.mehr-menue .menue button, .mehr-menue .menue select { text-align: left; border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; padding: 8px 10px; border-radius: 7px; cursor: pointer; width: 100%; }
.mehr-menue .menue button:hover { background: var(--surface); }
.mehr-menue .menue form { margin: 0; }
.mehr-menue .menue hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.mehr-menue .menue .gefahr { color: var(--bad); }
.mehr-menue .menue .unter { padding: 4px 10px 8px; display: flex; gap: 6px; }
.mehr-menue .menue .unter select { border: 1px solid var(--border); padding: 5px 6px; font-size: .85rem; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
th { color: var(--muted); font-size: .8rem; font-weight: 500; border-bottom-color: var(--border); }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; white-space: nowrap; }
.scroll { overflow-x: auto; }

/* ---------- Freigabe-Seite (Gäste) ---------- */
.gast-top { background: var(--card); border-bottom: 1px solid var(--border); padding: calc(12px + env(safe-area-inset-top)) 20px 12px; }
.gast-top .brand { padding: 0; max-width: 980px; margin: 0 auto; }
.gast { max-width: 980px; margin: 0 auto; padding: 28px 20px 60px; }
.gast h1 { font: 700 1.9rem/1.2 var(--font-display); margin: 0 0 6px; }
.gast .einleitung { color: var(--text-2); max-width: 640px; margin: 0 0 8px; }
.gast .geschwister { margin: 14px 0 0; }
.gast-raster { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 24px; }
.karte { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 20px; box-shadow: var(--shadow); }
.karte .foto { aspect-ratio: 4 / 3; background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.karte .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.karte .foto.leer { aspect-ratio: auto; height: 64px; }
.karte .foto .ico { width: 40px; height: 40px; opacity: .35; stroke-width: 1.4; }
.karte .inhalt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.karte h2 { margin: 0; font-size: 1.05rem; display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
.karte h2 .preis { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); font-weight: 600; }
.karte p { margin: 0; font-size: .9rem; color: var(--text-2); }
.karte .meta { font-size: .85rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.karte .meta a { color: var(--accent); }
.karte .unten { margin-top: auto; padding-top: 10px; }
.karte.vergeben .foto { opacity: .45; }
.karte.vergeben h2, .karte.vergeben p { color: var(--muted); }
.karte.meins { border-color: var(--zirbe); box-shadow: 0 0 0 1px var(--zirbe); }
.karte .status { font-size: .9rem; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.karte .status.frei { color: var(--muted); font-weight: 500; }
.karte form { margin: 0; }
.karte details > summary { list-style: none; }
.karte details > summary::-webkit-details-marker { display: none; }
.karte details > summary.btn { width: 100%; }
.karte details[open] > summary { display: none; }
.karte .form-zusage { display: flex; flex-direction: column; gap: 8px; }
.karte .form-zusage .aktionen { margin-top: 2px; }
.fuss { color: var(--muted); font-size: .82rem; text-align: center; margin-top: 40px; }

/* Anmeldung */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card.login { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; padding: 26px 28px; }
.card.login .brand { padding: 0 0 6px; }

/* ---------- Mobil ---------- */
@media screen and (max-width: 880px) {
  .side { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: min(280px, 85vw); transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 30px rgba(0,0,0,.25); }
  .side.open { transform: none; }
  .backdrop { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .22s; }
  .side.open + .backdrop { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .burger { display: inline-grid; place-items: center; }
  .top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; gap: 10px; }
  .top h1 { font-size: 1.1rem; }
  .tabs { padding: 0 16px; margin: 10px 0 14px; }
  main { padding: 6px 16px calc(32px + env(safe-area-inset-bottom)); }
  .card { padding: 14px 16px; }
  .satz { font-size: 1.2rem; }
  a.band-zeile { grid-template-columns: 1fr auto; }
  a.band-zeile .band { grid-column: 1 / -1; grid-row: 2; }
  .wunsch { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .bild { width: 56px; height: 56px; }
  .wunsch .seite { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .wunsch:target { margin: 0 -16px; padding: 16px; }
  .freigabe { grid-template-columns: 1fr; }
  .gast h1 { font-size: 1.5rem; }
  input, select, textarea { font-size: 16px !important; }
}
@media (pointer: coarse) { .side nav a { padding: 11px 12px; } .icon-btn { padding: 9px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .side, .burger, .backdrop, .tabs, .no-print { display: none !important; }
  body { background: #fff; } main { padding: 0; } .card { box-shadow: none; }
}

/* ---------- Popups, Knopfreihen, Übersicht (v2) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.knopfreihe form { margin: 0; }
.btn-s.klein { padding: 4px 9px; font-size: .8rem; border-radius: 8px; }
.btn-s.klein .ico { width: 14px; height: 14px; }
.btn-s.an { background: var(--good-soft); border-color: transparent; color: var(--good); }
.btn-s.gefahr { color: var(--bad); }
a.btn-s, a.btn-s:visited { color: var(--text); }
.avatar.klein { width: 26px; height: 26px; font-size: .66rem; }
.wunsch .zusage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 10px; background: var(--bg); border-radius: 10px; }
.wunsch .zusage .wer { flex: 1 1 150px; min-width: 0; }
.wunsch .zusage .wer { display: flex; flex-direction: column; line-height: 1.3; }
.wunsch .zusage .wer small { font-size: .78rem; }
.wunsch-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.wunsch .meta .btn-s.klein { color: var(--accent); }

dialog.popup { border: 1px solid var(--border); border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  background: var(--card); color: var(--text); box-shadow: 0 24px 60px rgba(20, 24, 32, .28); overflow: hidden; }
dialog.popup[open] { display: flex; flex-direction: column; }
dialog.popup::backdrop { background: rgba(20, 24, 32, .45); }
.popup-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--border); }
.popup-kopf h2 { margin: 0; font-size: 1.08rem; }
.popup-inhalt { padding: 18px 22px 20px; overflow-y: auto; }
.popup-fuss { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.popup-gefahr { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.popup-gefahr form { margin: 0; }
.schalter { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; }
.link-zeile { display: flex; gap: 8px; }
.link-zeile input { flex: 1; min-width: 0; }
.link-status { font-weight: 400; font-size: .84rem; min-height: 1.2em; }
.link-status.fehler { color: var(--bad); }
.link-status.ok { color: var(--good); }
.foto-wahl { display: flex; gap: 14px; align-items: flex-start; }
.foto-vorschau { width: 96px; height: 96px; border-radius: 10px; background: var(--surface); overflow: hidden; flex-shrink: 0; display: grid; place-items: center; }
.foto-vorschau img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-vorschau .ico { width: 28px; height: 28px; opacity: .45; }
.foto-knoepfe { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; font-weight: 400; }
.datei-btn { align-self: flex-start; position: relative; overflow: hidden; }
.datei-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.datei-btn:focus-within { outline: 2px solid var(--zirbe); outline-offset: 2px; }
input.ein { font-size: .9rem; }
.namen-wahl { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.freigabe { display: flex; flex-direction: column; gap: 10px; }
.freigabe > input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: .88rem ui-monospace, SFMono-Regular, Menlo, monospace; width: 100%; }
.freigabe .hinweis { margin: 0; font-size: .84rem; }
.block h2 .btn-s { font: 500 .82rem/1 system-ui, sans-serif; }

.spalten { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); align-items: start; }
.spalte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.spalte-kopf h2 { margin: 0; font-size: 1.15rem; }
.spalte .wunsch { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
.spalte .bild { width: 56px; height: 56px; }

@media screen and (max-width: 880px) {
  dialog.popup { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; border-bottom: 0; }
  .popup-inhalt { padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
  .spalten { grid-template-columns: 1fr; }
  .spalte .wunsch { grid-template-columns: 56px minmax(0, 1fr); }
  .foto-vorschau { width: 72px; height: 72px; }
}

/* ---------- Kompakte Liste, Filter, Abrechnung (v3) ---------- */
.klein { font-size: .84rem; }
p.klein { margin: 4px 0 8px; }
small.block { display: block; }
.kopf-knoepfe { display: flex; gap: 8px; align-items: center; }
.btn-s.gesperrt { color: var(--muted); text-decoration: line-through; }
.unterzeile { color: var(--text-2); margin: 0 0 16px; font-size: .95rem; }
.unterzeile b { font-variant-numeric: tabular-nums; }
.leiste { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.filter { display: flex; gap: 6px; flex-wrap: wrap; }
.filter a { display: inline-flex; align-items: center; gap: 2px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text-2); text-decoration: none; font-size: .88rem; font-weight: 500; }
.filter a:hover { background: var(--surface); }
.filter a .kind-dot { width: 8px; height: 8px; }
.filter a .anz { color: var(--muted); font-size: .8rem; margin-left: 4px; font-variant-numeric: tabular-nums; }
.filter a.leer { opacity: .6; }
.filter a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter a[aria-current="page"] .anz { color: inherit; opacity: .7; }
.filter.klein { margin-bottom: 12px; }
.filter.klein a { padding: 3px 10px; font-size: .82rem; }

.liste-karte { padding: 0; overflow: hidden; }
.leer-hinweis { margin: 0; padding: 22px 20px; color: var(--muted); }
.wz-kopf, .wz-zeile { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 190px) 120px 72px 34px; gap: 12px; align-items: center; padding: 0 12px 0 16px; }
.wz-kopf { font-size: .76rem; color: var(--muted); padding-top: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.wz-kopf .r, .wz-preis { text-align: right; }
.gruppe { display: flex; gap: 12px; align-items: center; padding: 16px 16px 6px; flex-wrap: wrap; }
.gruppe a { font: 650 1rem/1.2 var(--font-display); color: var(--text); text-decoration: none; }
.gruppe a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.gruppe .muted { font-size: .82rem; }
.gruppe .band { gap: 3px; margin-left: auto; }
.gruppe .band i { width: 12px; height: 12px; border-radius: 3px; border-width: 1px; }
.gruppe .band i.h::after { inset: 3.5px; }
.wz { border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.gruppe + .wz { border-top-color: var(--border); }
.wz-zeile { min-height: 54px; padding-top: 7px; padding-bottom: 7px; cursor: pointer; }
.wz-zeile:hover { background: color-mix(in srgb, var(--surface) 45%, transparent); }
.wz.offen > .wz-zeile { background: var(--bg); }
.wz.bekommen > .wz-zeile > :not(.wz-auf) { opacity: .5; }
.wz-bild { width: 40px; height: 40px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.wz-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wz-bild .ico { width: 18px; height: 18px; opacity: .45; }
.wz-titel { min-width: 0; line-height: 1.3; }
.titel-btn { border: 0; background: none; padding: 0; margin: 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.titel-btn:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.wz-titel .herz { color: var(--zirbe); margin-left: 6px; vertical-align: -2px; }
.wz-titel .herz .ico { width: 14px; height: 14px; fill: var(--zirbe); stroke: var(--zirbe); }
.wz-titel small { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-titel small:empty { display: none; }
.wz-schenkt { min-width: 0; font-size: .88rem; line-height: 1.3; }
.wz-schenkt .namen { display: block; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-schenkt small { display: block; font-size: .76rem; }
.wz-schenkt .frei { color: var(--muted); font-size: .84rem; }
.wz-besorgt { min-width: 0; font-size: .85rem; }
.wz-besorgt .pill { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wz-besorgt .pill .ico { width: 13px; height: 13px; }
.wz-preis { font: 600 .95rem/1 var(--font-display); white-space: nowrap; }
.wz-auf .ico { transition: transform .18s; }
.wz-auf[aria-expanded="true"] .ico { transform: rotate(180deg); }
.wz-detail { padding: 6px 16px 16px 68px; background: var(--bg); border-top: 1px solid var(--line); }
.wz-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; }
.wz-info { display: flex; gap: 14px; align-items: flex-start; font-size: .9rem; color: var(--text-2); padding-top: 12px; }
.wz-info p { margin: 0 0 8px; }
.wz-foto { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; background: var(--card); flex-shrink: 0; border: 1px solid var(--line); }
.wz-wer h4 { margin: 12px 0 6px; font: 600 .78rem/1.2 system-ui, sans-serif; color: var(--muted); }
.wz-wer .zusage { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: .88rem; }
.wz-wer .zusage .wer { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wz-wer .zusage small { font-size: .76rem; }
.wz-wer .mini-fortschritt { margin: 0 0 2px; }
.besorger-wahl { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.wz-wer form { margin: 0; }
.wz-wer .check { font-size: .88rem; margin-top: 4px; }
.wz-aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.wz-aktionen form { margin: 0; }
.wz-aktionen .rechts { margin-left: auto; }
.wz:target > .wz-zeile { box-shadow: inset 3px 0 0 var(--zirbe); }

dialog.popup.klein { width: min(480px, calc(100vw - 32px)); }
.popup-text { margin: 0 0 14px; color: var(--text-2); font-size: .9rem; }
.popup-text.klein { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.popup-fuss .links { margin-right: auto; }
.person-wahl { border: 0; padding: 0; margin: 0 0 16px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.person-wahl legend { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); font-size: .9rem; font-weight: 500; color: var(--text-2); }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--zirbe); outline-offset: 2px; }
.chip .kind-dot { width: 8px; height: 8px; }

.form-zeile { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.form-zeile .btn { height: 38px; }
.tabelle-zeilen td { vertical-align: middle; }
a.zeilen-link { color: var(--text); text-decoration: none; font-weight: 500; }
a.zeilen-link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
a.zeilen-link small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.knopfreihe.ende { justify-content: flex-end; flex-wrap: nowrap; }
.wer-kopf { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin: 14px 0 4px; }
.wer-kopf .muted { font-weight: 500; font-size: .85rem; }
.wer-kopf.gross { font-size: 1.05rem; margin: 0 0 10px; }
.wer-kopf .rechts { margin-left: auto; font: 600 .95rem/1 var(--font-display); }
.personen-raster { display: flex; flex-direction: column; }
.person-zeile { display: grid; grid-template-columns: 14px minmax(0, 1fr) 170px auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.person-zeile.neu { grid-template-columns: 14px minmax(0, 1fr) 170px auto; }
.person-zeile input { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; width: 100%; }
.gast-gruppe { font: 700 1.25rem/1.2 var(--font-display); margin: 34px 0 -8px; display: flex; align-items: center; }

@media screen and (max-width: 880px) {
  .wz-kopf { display: none; }
  .wz-zeile { grid-template-columns: 40px minmax(0, 1fr) auto auto 30px; grid-template-areas: "bild titel titel preis auf" "bild schenkt besorgt besorgt auf"; gap: 2px 10px; padding: 8px 8px 8px 14px; }
  .wz-bild { grid-area: bild; align-self: start; }
  .wz-titel { grid-area: titel; }
  .wz-schenkt { grid-area: schenkt; display: flex; gap: 6px; align-items: baseline; }
  .wz-schenkt .namen::before { content: "von "; color: var(--muted); }
  .wz-schenkt small { display: none; }
  .wz-schenkt .namen { min-width: 0; }
  .wz-besorgt { grid-area: besorgt; justify-self: end; }
  .wz-besorgt > .muted { display: none; }
  .wz-preis { grid-area: preis; }
  .wz-auf { grid-area: auf; }
  .wz-titel small { display: none; }
  .wz-detail { padding: 4px 14px 14px; }
  .wz-spalten { grid-template-columns: 1fr; }
  .wz-foto { width: 80px; height: 80px; }
  .gruppe { padding: 14px 14px 6px; }
  .gruppe .band { margin-left: 0; width: 100%; }
  .leiste .btn { margin-left: auto; }
  .form-zeile { grid-template-columns: 1fr 1fr; }
  .form-zeile .btn { grid-column: 1 / -1; }
  .person-zeile, .person-zeile.neu { grid-template-columns: 14px minmax(0, 1fr) auto; }
  .person-zeile input[type=date] { grid-column: 2; }
  .person-zeile .btn-s, .person-zeile .btn { grid-row: auto; }
  .kopf-knoepfe .btn-s { padding: 6px 9px; }
  dialog.popup.klein { width: 100vw; }
}
@media print { .wz-auf, .wz-aktionen, .besorger-wahl { display: none !important; } .wz-detail { display: none !important; } }

/* ---------- Status-Knöpfe gelb/grün, Icon-Aktionen (v4) ---------- */
form.mini { display: inline; margin: 0; }
.wz-schenkt { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 3px 10px; border-radius: 99px; border: 1px solid transparent;
  font: 500 .82rem/1.3 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status .ico { width: 13px; height: 13px; stroke-width: 2.2; }
.status.gelb { background: #f8e9c8; color: #6b4a14; border-color: #ecd3a0; }
.status.gelb:hover { background: #f3dcaa; }
.status.gruen { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.status.gruen:hover { background: color-mix(in srgb, var(--good-soft) 70%, var(--good) 15%); }
@media (prefers-color-scheme: dark) {
  .status.gelb { background: #3a2f1f; color: #f1cf91; border-color: #5a4626; }
  .status.gelb:hover { background: #4a3b24; }
}
.waehlen { display: inline-flex; align-items: center; gap: 3px; border: 1px dashed var(--border); background: none; color: var(--muted);
  border-radius: 99px; padding: 2px 9px; font: inherit; font-size: .8rem; cursor: pointer; }
.waehlen .ico { width: 12px; height: 12px; }
.waehlen:hover { border-color: var(--muted); color: var(--text); }
.wz-titel .titel { font-weight: 600; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.wz-wer .zusage { gap: 10px; }
.wz-wer .zusage .wer { flex-direction: row; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.icon-btn.rand { border: 1px solid var(--border); background: var(--card); width: 34px; height: 34px; padding: 0; }
.icon-btn.rand .ico { width: 17px; height: 17px; }
.icon-btn.gefahr { color: var(--bad); }
.icon-btn.gefahr:hover { background: var(--bad-soft); color: var(--bad); }
.wz-aktionen .knopfreihe { gap: 6px; }
.namen-wahl.gross { margin-top: 0; }
.namen-wahl.gross .btn-s { padding: 8px 14px; font-size: .92rem; }
.btn-s.an-gelb { background: #f8e9c8; border-color: #ecd3a0; }
@media (prefers-color-scheme: dark) { .btn-s.an-gelb { background: #3a2f1f; border-color: #5a4626; } }
.person-wahl legend { margin-bottom: 8px; }
@media screen and (max-width: 880px) {
  .wz-schenkt .namen::before { content: none; }
  .wz-schenkt, .wz-besorgt { gap: 4px; }
  .wz-besorgt .waehlen { display: none; }
}

/* Überblick (v4) */
.schmal { max-width: 760px; }
.karten-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
div.band-zeile { display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; align-items: center; padding: 12px 2px; border-top: 1px solid var(--line); }
div.band-zeile .wer { font-weight: 600; color: var(--text); text-decoration: none; }
div.band-zeile .wer:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.band a { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--card); position: relative; display: block; }
.band a:hover { border-color: var(--text-2); transform: translateY(-1px); }
.band a.v { background: var(--zirbe); border-color: var(--zirbe); }
.band a.h::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--zirbe); }
.band a.v.h::after { background: var(--card); }
.band a.b { background: var(--good); border-color: var(--good); opacity: .55; }
.gruppe .band a { width: 12px; height: 12px; border-radius: 3px; border-width: 1px; }
.gruppe .band a.h::after { inset: 3.5px; }
.legende .tipp { margin-left: auto; }
.kurz-zeilen { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.kurz-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: .92rem; }
.kurz-zeile:hover { border-color: var(--muted); }
.kurz-zeile > span { display: flex; gap: 10px; align-items: center; min-width: 0; }
.kurz-zeile b { color: var(--text); }
.kurz-zeile .ico { color: var(--muted); }
.kurz-zeile .pfeil { transform: rotate(-90deg); }
.kurz-zeile small { color: var(--muted); white-space: nowrap; }
.innen { padding: 16px 16px 10px; margin: 0 !important; }
.bz { display: grid; grid-template-columns: 40px minmax(0, 1fr) 72px 150px; gap: 12px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--line); }
.bz > form, .bz > .waehlen { justify-self: end; }
.bz.erledigt .zeilen-link, .bz.erledigt .wz-bild, .bz.erledigt .wz-preis { opacity: .6; }
.bz .wz-preis { text-align: right; }
@media screen and (max-width: 880px) {
  div.band-zeile { grid-template-columns: 1fr auto; }
  div.band-zeile .band { grid-column: 1 / -1; grid-row: 2; }
  .band a { width: 26px; height: 26px; }
  .legende .tipp { margin-left: 0; width: 100%; }
  .bz { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .bz .wz-preis { display: none; }
}

/* Einstellungen (v4) */
.person-info { display: flex; gap: 12px; align-items: center; min-width: 0; }
.person-info small { display: block; color: var(--muted); font-size: .82rem; }
.liste-leise li .knopfreihe { justify-content: flex-end; }
.farb-wahl { border: 0; padding: 0; margin: 16px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.farb-wahl legend { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 8px; }
.farbe { position: relative; cursor: pointer; }
.farbe input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.farbe span { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.farbe input:checked + span { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--text); }
.farbe input:focus-visible + span { outline: 2px solid var(--zirbe); outline-offset: 4px; }
.raster.zwei-spalten { grid-template-columns: 1fr 1fr; align-items: end; }
.simulation { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 32px 12px; max-width: 1036px; padding: 9px 14px; border-radius: 10px; background: var(--zirbe-soft); color: var(--text); font-size: .9rem; }
.simulation form { margin: 0 0 0 auto; }
@media screen and (max-width: 880px) {
  .simulation { margin: 0 16px 12px; }
  .raster.zwei-spalten { grid-template-columns: 1fr; }
}

/* ---------- v5: Auswahl-Dropdowns, mehrere Schenkende, angeglichene Listen ---------- */
body.laedt { cursor: progress; }
body.laedt main { opacity: .85; transition: opacity .2s .15s; }
.wz.offen > .wz-zeile .wz-schenkt, .wz.offen > .wz-zeile .wz-besorgt { visibility: hidden; }
.status.ruhig { background: var(--surface); color: var(--text-2); cursor: default; }
.runden { display: inline-flex; }
.runde { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 .62rem/1 var(--font-display);
  margin-left: -5px; box-shadow: 0 0 0 2px var(--card); }
.runde:first-child { margin-left: 0; }
.runde.gelb { background: #f8e9c8; color: #6b4a14; }
.runde.gruen { background: var(--good-soft); color: var(--good); }
.runden-text { font-size: .78rem; color: var(--muted); white-space: nowrap; }
select.auswahl { appearance: none; -webkit-appearance: none; font: 500 .82rem/1.3 inherit; font-family: inherit; color: var(--text-2);
  border: 1px solid var(--border); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7380' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center / 12px;
  border-radius: 99px; padding: 3px 22px 3px 10px; cursor: pointer; max-width: 100%; }
select.auswahl.rot { background-color: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--bad);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9473a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.wz-wer .zusage .wer { flex: 1; }
.wz-wer .zusage form.mini { display: inline-flex; }
.popup-meldung { margin: 8px 0 0; font-size: .85rem; min-height: 1em; }
.popup-meldung.fehler { color: var(--bad); }
.kopf-datum { font: 500 .9rem/1 system-ui, sans-serif; color: var(--muted); margin-left: 6px; }
.geb-hinweis { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--text-2); }
div.band-zeile .wer small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-left: 16px; }
.band button { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--card); position: relative; display: block; padding: 0; cursor: pointer; }
.band button:hover { border-color: var(--text-2); }
.band button.v { background: var(--zirbe); border-color: var(--zirbe); }
.band button.h::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--zirbe); }
.band button.v.h::after { background: var(--card); }
.band button.b { background: var(--good); border-color: var(--good); opacity: .55; }
.kachel-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.kachel-info .popup-fuss { grid-column: 1 / -1; }
.ki-bild img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; display: block; }
.kachel-info p { margin: 0 0 4px; }
.ki-titel { font: 650 1.05rem/1.3 var(--font-display); }

.filterleiste { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.feld-inline { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.feld-inline select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-weight: 400; }
.pz-kopf, .pz { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 200px) 80px 160px; gap: 12px; align-items: center; padding: 0 16px; }
.pz-kopf { font-size: .76rem; color: var(--muted); margin: 0 0 6px; }
.pz-kopf .r { text-align: right; }
.pz { padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--line); }
.pz-mitte { font-size: .86rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-stand { justify-self: end; }
.pz.erledigt .zeilen-link, .pz.erledigt .wz-bild { opacity: .6; }
.rot-rand { border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }
@media screen and (max-width: 880px) {
  .pz-kopf { display: none; }
  .pz { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "bild titel stand" "bild mitte preis"; gap: 2px 10px; padding: 8px 14px; }
  .pz > .wz-bild { grid-area: bild; align-self: start; }
  .pz > .zeilen-link { grid-area: titel; }
  .pz > .pz-mitte { grid-area: mitte; font-size: .8rem; }
  .pz > .wz-preis { grid-area: preis; justify-self: end; font-size: .85rem; }
  .pz > .pz-stand { grid-area: stand; }
  .runden-text { display: none; }
  .kachel-info { grid-template-columns: 1fr; }
}

/* ---------- Freigabe-Seite (v5) ---------- */
.gast-seite { background: var(--bg); }
.gast { max-width: 1040px; }
.gast-kopf { margin-bottom: 18px; }
.gast-anlass { margin: 0 0 4px; color: var(--zirbe); font-weight: 600; font-size: .95rem; }
.gast-anlass span { color: var(--muted); font-weight: 500; }
.gast h1 { margin: 0 0 8px; }
.gast-notiz { display: flex; gap: 10px; align-items: flex-start; max-width: 640px; margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); color: var(--text-2); font-size: .92rem; }
.gast-notiz .ico { color: var(--zirbe); flex-shrink: 0; margin-top: 2px; }
.meine { background: var(--good-soft); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; max-width: 640px; }
.meine h2 { margin: 0 0 6px; font-size: 1rem; color: var(--good); }
.meine ul { list-style: none; margin: 0; padding: 0; }
.meine li { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; padding: 3px 0; font-size: .92rem; }
.meine a { color: var(--text); font-weight: 600; text-decoration: none; }
.meine a:hover { text-decoration: underline; }
.gast-filter { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 6px; }
.gast-filter button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text-2); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.gast-filter button.an { background: var(--text); color: var(--bg); border-color: var(--text); }
.gast-filter .kind-dot { width: 8px; height: 8px; }
.nur-frei { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.nur-frei input { accent-color: var(--accent); }
.gast-gruppe { margin-top: 22px; }
.gast-gruppe > h2 { font: 700 1.2rem/1.2 var(--font-display); margin: 0 0 12px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.gast-gruppe > h2 small { font: 500 .85rem/1 system-ui, sans-serif; color: var(--muted); margin-left: 10px; }
.gast .gast-raster { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 0; }
.karte .foto { position: relative; aspect-ratio: 1 / 1; background: #fff; }
.karte .foto img { object-fit: contain; padding: 10px; }
.karte .foto.leer { aspect-ratio: auto; height: 84px; background: var(--surface); }
.karte .marke { position: absolute; left: 8px; top: 8px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: .75rem; font-weight: 600; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.karte .marke .ico { width: 13px; height: 13px; }
.karte .marke.herz { color: var(--zirbe); }
.karte .marke.herz .ico { fill: var(--zirbe); stroke: var(--zirbe); }
.karte .marke.deins { left: auto; right: 8px; background: var(--good); color: #fff; }
.karte .marke.weg { left: auto; right: 8px; background: var(--text); color: var(--bg); }
.karte .marke.herz + .marke { top: 8px; }
.karte h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.karte .preiszeile { display: flex; gap: 10px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin: 0; }
.karte .preiszeile b { color: var(--text); font-weight: 650; }
.karte .text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; }
.karte .gemeinsam span { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.karte .unten { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 12px; margin-top: auto; }
.karte .unten .btn { flex: 1 1 auto; }
.karte .unten .btn-s.klein { color: var(--accent); }
.karte.vergeben { opacity: .7; }
.karte.vergeben .foto img { filter: grayscale(.6); opacity: .6; }
@media (prefers-color-scheme: dark) { .karte .foto { background: #fff; } }
@media screen and (max-width: 880px) {
  .gast .gast-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .karte .inhalt { padding: 10px 12px 12px; }
  .karte h3 { font-size: .92rem; }
  .karte .text { display: none; }
  .karte .unten .btn { padding: 8px 10px; font-size: .88rem; }
  .karte .marke { font-size: .68rem; padding: 2px 7px; }
  .nur-frei { margin-left: 0; }
}
section.gast-gruppe { display: block; font: inherit; margin: 24px 0 0; }
.gast-anlass span { white-space: nowrap; }

/* ---------- v6: gleich breite Status-Knöpfe ---------- */
.wz-schenkt > form.mini > .status, .wz-schenkt > .status, .wz-schenkt > .waehlen,
.wz-besorgt .status, .wz-besorgt .waehlen,
.pz-stand .status, .pz-stand select.auswahl, .pz-stand .waehlen, .pz-stand .pill {
  width: 132px; justify-content: center; text-align: center; box-sizing: border-box; }
.pz-stand select.auswahl { text-align: left; }
.waehlen { justify-content: center; padding: 3px 10px; font-size: .82rem; line-height: 1.3; border-style: dashed; }
.waehlen.rot { border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); background: var(--bad-soft); color: var(--bad); }
.waehlen.rot:hover { color: var(--bad); border-color: var(--bad); }
.wz-kopf, .wz-zeile { grid-template-columns: 40px minmax(0, 1fr) 150px 140px 72px 34px; }
.pz-kopf, .pz { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 200px) 80px 140px; }
.wz-titel small.person { display: block; color: var(--muted); font-size: .78rem; }
@media screen and (max-width: 880px) {
  .wz-zeile { grid-template-columns: 40px minmax(0, 1fr) auto auto 30px; }
  .wz-schenkt > form.mini > .status, .wz-schenkt > .status, .wz-schenkt > .waehlen, .wz-besorgt .status, .wz-besorgt .waehlen { width: 112px; }
  .wz-besorgt .waehlen { display: inline-flex; }
  .pz { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .pz-stand .status, .pz-stand select.auswahl, .pz-stand .pill { width: 112px; }
}
.listen-leiste { display: flex; gap: 2px 18px; flex-wrap: wrap; align-items: center; margin: -6px 0 16px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.listen-leiste a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 4px 0; }
.listen-leiste a:hover { color: var(--text); }
.listen-leiste a[aria-current="page"] { color: var(--text); font-weight: 650; box-shadow: inset 0 -2px 0 var(--zirbe); }
.listen-leiste .anz { font-size: .78rem; color: var(--muted); font-weight: 400; }
.listen-leiste .neu { margin-left: auto; border: 0; background: none; color: var(--accent); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; padding: 4px 6px; border-radius: 8px; }
.listen-leiste .neu:hover { background: var(--surface); }
.listen-leiste .neu .ico { width: 15px; height: 15px; }
.abschnitt-kopf { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 16px 16px 8px; }
.abschnitt-kopf h2 { margin: 0; font-size: 1.1rem; }
.abschnitt-kopf h2 a { color: var(--text); text-decoration: none; }
.abschnitt-kopf h2 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.abschnitt-kopf .muted { font-size: .85rem; }
.abschnitt-kopf .btn-s { margin-left: auto; }
.liste-wahl { margin-bottom: 14px; max-width: 320px; }
.abschluss-liste { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.abschluss-liste small { display: inline; margin-left: 6px; }
li.archiviert .zeilen-link { opacity: .65; }
.wz-titel small.person .kind-dot { width: 7px; height: 7px; margin-right: 4px; }
.listen-leiste .neu { border: 1px solid var(--border); background: var(--card); padding: 4px 11px; }
.wz-wer .zusage .wer b { font-weight: 600; }

/* v7: bekommene Wünsche positiv statt grau */
.wz.bekommen > .wz-zeile > :not(.wz-auf) { opacity: 1; }
.wz.bekommen > .wz-zeile { background: color-mix(in srgb, var(--good-soft) 55%, transparent); box-shadow: inset 3px 0 0 var(--good); }
.status.bekommen { background: var(--good); color: #fff; cursor: default; width: 132px; justify-content: center; }
@media (prefers-color-scheme: dark) { .status.bekommen { color: #141820; } }
.wz-schenkt > .status.bekommen { width: 132px; }
@media screen and (max-width: 880px) { .wz-schenkt > .status.bekommen { width: 112px; } }
.popup-meldung.ok { color: var(--good); }
.karte .anlass-zeile { margin: 0; font-size: .78rem; font-weight: 600; color: var(--zirbe); }
