/* liebly – Verwaltung
   Porzellan, Tinte, gedämpfte Pflaume. Ruhig, damit die Inhalte des Paares wirken. */
:root {
  --bg: #F4F3F6; --surface: #FFFFFF; --ink: #221D2E; --muted: #6C667A; --line: #E3E0E9; --line-strong: #CFCAD8;
  --accent: #6F5384; --accent-fill: #6F5384; --accent-soft: #F0EAF4; --accent-line: #E0D4EA; --surface-alt: #FAF9FB;
  --on-ink: #FFFFFF; --ink-hover: #3A3249; --on-accent: #FFFFFF;
  --side-bg: #FFFFFF; --side-text: #221D2E; --side-muted: #6C667A; --side-hover: #F4F3F6; --side-active-bg: #F0EAF4; --side-active-text: #6F5384; --side-line: #E3E0E9; --yes: #2F6B4F; --yes-soft: #E5F1EA; --part: #9A6B12; --part-soft: #F7EEDC;
  --no: #9C3B3B; --no-soft: #F6E6E6; --radius: 10px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 .75rem; font-weight: 500; line-height: 1.2; }
h1 { font: 500 2.1rem/1.1 var(--serif); letter-spacing: -.01em; }
h2 { font-size: 1.05rem; font-weight: 600; }
h3 { font-size: .95rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
code { background: var(--accent-soft); padding: .05em .35em; border-radius: 4px; font-size: .85em; }
.muted { color: var(--muted); }
.small, small { font-size: .82rem; }
.mt { margin-top: 1rem; }
.label { font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: .6rem; }
.brandmark { font: italic 500 1.2rem var(--serif); color: var(--accent); margin: 0 0 .5rem; }

/* ---------- Gerüst ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; height: 60px; padding: 0 1.25rem; background: rgb(255 255 255 / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); font: 500 1.3rem/1 var(--serif); }
.topbar__brand small { font: 400 .72rem var(--sans); color: var(--muted); margin-top: .2rem; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.topbar__menu { display: none; border: 1px solid var(--line); background: none; border-radius: 8px; padding: .4rem .8rem; font: inherit; cursor: pointer; }
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 60px); }
.side { position: sticky; top: 60px; height: calc(100vh - 60px); align-self: start; overflow-y: auto; padding: 1.25rem .75rem; border-right: 1px solid var(--side-line); background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; }
.side ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.side__group { font-size: .74rem; color: var(--side-muted); margin: .5rem .75rem .35rem; }
.side a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--side-text); text-decoration: none; }
.side a:hover { background: var(--side-hover); }
.side a[aria-current="page"] { background: var(--side-active-bg); color: var(--side-active-text); font-weight: 500; }
.side__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--side-line); }
.side__foot small { display: block; color: var(--side-muted); }
.side .linkbtn { color: var(--side-muted); }
.main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 5rem; min-width: 0; max-width: 1180px; }
.main--wide { max-width: none; padding-bottom: 2rem; }
@media (max-width: 900px) {
  .topbar__menu { display: block; }
  .topbar__right .btn:not(.topbar__search):not(.topbar__help) { display: none; }
  .topbar__right .topbar__search, .topbar__right .topbar__help { min-width: 44px; min-height: 44px; height: 44px; padding: 0; justify-content: center; }
  .topbar__search .topbar__label, .topbar__help .topbar__label { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; top: 60px; left: 0; width: min(80vw, 280px); transform: translateX(-100%); transition: transform .25s; box-shadow: 10px 0 40px rgb(0 0 0 / .1); }
  .side.is-open { transform: none; }
}

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.page-head p { margin: 0; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.crumb { margin-bottom: .25rem !important; font-size: .85rem; }
.crumb a { color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; margin-bottom: 1rem; }
.panel.narrow { max-width: 640px; }
.panel > h2:first-child { margin-bottom: 1rem; }
.empty { text-align: center; padding: 3rem 1.5rem; }
.empty h2 { font: 500 1.5rem var(--serif); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1rem; }
.grid-2--top { align-items: start; gap: 1rem; }
.inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ---------- Formulare ---------- */
.form { margin: 0; }
.field { display: grid; align-content: start; gap: .3rem; margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field > span:first-child, .field > legend, .field__label { font-size: .84rem; font-weight: 500; padding: 0; }
.field small { color: var(--muted); }
.field--sm { max-width: 200px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: .55rem .7rem; min-height: 42px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[disabled] { background: var(--bg); color: var(--muted); }
input[type=file] { font: inherit; font-size: .85rem; max-width: 100%; }
.inline input, .inline select { width: auto; flex: 1 1 180px; }
.check, .switch { display: flex; align-items: center; gap: .55rem; cursor: pointer; margin-bottom: .6rem; font-size: .92rem; }
.check input, .switch input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.switches { display: grid; gap: .1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: .45rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; }
.chip input:checked + span { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.range output { float: right; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.range input { width: 100%; accent-color: var(--accent); }
.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.color { display: flex; align-items: center; gap: .6rem; padding: .4rem; border: 1px solid var(--line); border-radius: 8px; font-size: .84rem; cursor: pointer; }
.color input { width: 34px; height: 34px; border: 0; padding: 0; background: none; border-radius: 6px; cursor: pointer; flex: none; }

.actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: .5rem; }
.actions--left { justify-content: flex-start; }
.actions--left form { margin: 0; }
.actions--sticky { position: sticky; bottom: 0; z-index: 5; background: linear-gradient(transparent, var(--bg) 35%); padding: 1.25rem 0 .9rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .5rem 1.1rem; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--on-ink); font: 500 .9rem var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg); }
.btn--sm { min-height: 34px; padding: .3rem .8rem; font-size: .84rem; }
.btn--block { width: 100%; }
.btn--danger { background: var(--no); border-color: var(--no); }
.btn--danger:hover { background: #7f2f2f; }
.btn--danger-text { color: var(--no); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: .85rem; cursor: pointer; }
.iconbtn { display: inline-flex; align-items: center; min-height: 34px; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 500 .82rem var(--sans); text-decoration: none; cursor: pointer; }
.iconbtn:hover { border-color: var(--line-strong); background: var(--bg); }
.iconbtn[disabled] { opacity: .4; cursor: default; }
.iconbtn--quiet { color: var(--muted); }
.iconbtn--danger { color: var(--no); }

/* ---------- Meldungen ---------- */
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .92rem; border: 1px solid transparent; }
.alert--success { background: var(--yes-soft); color: var(--yes); border-color: #cfe4d8; }
.alert--error { background: var(--no-soft); color: var(--no); border-color: #eccccc; }
.alert--warn { background: var(--part-soft); color: #6f4d0c; border-color: #ecdcb8; }
.toast { position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 60; background: var(--ink); color: var(--on-ink); padding: .65rem 1.1rem; border-radius: 999px; font-size: .9rem; box-shadow: 0 10px 30px rgb(0 0 0 / .2); }

.badge { display: inline-block; font-size: .74rem; font-weight: 500; padding: .15em .65em; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.badge--accepted, .badge--partial { background: var(--yes-soft); color: var(--yes); border-color: #cfe4d8; }
.badge--declined { background: var(--no-soft); color: var(--no); border-color: #eccccc; }
.badge--opened { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.badge--sent { background: #fff; color: var(--ink); }

/* ---------- Dashboard ---------- */
.live { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yes); box-shadow: 0 0 0 0 rgb(47 107 79 / .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(47 107 79 / 0); } 100% { box-shadow: 0 0 0 0 rgb(47 107 79 / 0); } }
@media (prefers-reduced-motion: reduce) { .live__dot { animation: none; } }
.stats-block { margin-bottom: 1.75rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--surface); padding: 1.1rem 1.2rem; display: grid; }
.kpi__n { font: 300 2.3rem/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
.kpi__l { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.kpi--yes .kpi__n { color: var(--yes); }
.kpi--no .kpi__n { color: var(--no); }
.stats-block > .muted { margin-top: .5rem; }
.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 1rem 0 .6rem; }
.bar__seg { background: var(--line-strong); transition: flex .4s; min-width: 0; }
.bar__seg--yes { background: var(--yes); } .bar__seg--part { background: #C89B3C; } .bar__seg--no { background: var(--no); }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .84rem; color: var(--muted); margin: 0; }
.legend b { color: var(--ink); font-weight: 600; margin-left: .2rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); margin-right: .35rem; }
.dot--yes { background: var(--yes); } .dot--part { background: #C89B3C; } .dot--no { background: var(--no); }
.dist { margin-bottom: 1.1rem; }
.dist h3 { margin-bottom: .5rem; }
.dist__row { display: grid; grid-template-columns: 8.5rem 1fr 2.2rem; gap: .6rem; align-items: center; font-size: .86rem; margin-bottom: .35rem; }
.dist__track { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.dist__fill { height: 100%; background: var(--accent-fill); border-radius: 999px; }
.dist__n { text-align: right; font-variant-numeric: tabular-nums; }
.wish { list-style: none; padding: 0; margin: 0 0 1rem; }
.wish li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.wish li b { font-weight: 500; }
.wish li span { color: var(--muted); }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.activity li:last-child { border-bottom: 0; }
.activity small { flex-basis: 100%; color: var(--muted); }

/* ---------- Gästeliste ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; align-items: center; }
.filters input[type=search] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; }
.filters__tpl { margin-left: auto; display: flex; gap: .5rem; align-items: center; font-size: .84rem; color: var(--muted); }
.inv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.inv { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.inv__main { min-width: 0; flex: 1 1 280px; }
.inv__label { font: 500 1.25rem var(--serif); color: var(--ink); text-decoration: none; margin-right: .5rem; }
.inv__label:hover { color: var(--accent); }
.inv__group { font-size: .8rem; color: var(--muted); margin-left: .35rem; }
.inv__guests { list-style: none; margin: .45rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .86rem; }
.gs::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .4rem; background: var(--line-strong); vertical-align: middle; }
.gs--yes::before { background: var(--yes); } .gs--no::before { background: var(--no); }
.gs--free { color: var(--muted); } .gs--free::before { background: none; border: 1px dashed var(--line-strong); }
.inv__actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }

.grow { display: grid; grid-template-columns: 1fr 1fr 120px 130px auto auto; gap: 0 .6rem; align-items: end; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.grow .field { margin-bottom: .4rem; }
.grow .check { margin-bottom: .9rem; }
.grow .iconbtn { margin-bottom: .45rem; }
.grow__note { grid-column: 1 / -1; font-size: .8rem; color: var(--accent); margin: 0; }
@media (max-width: 760px) { .grow { grid-template-columns: 1fr 1fr; } }
.linkbox__row { display: flex; gap: .5rem; }
.linkbox__url { font-family: ui-monospace, monospace; font-size: .85rem !important; }
.linkbox__actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .75rem 0 .5rem; }
.linkbox__tpl { margin-left: auto; font-size: .84rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.linkbox__tpl select { width: auto; min-height: 34px; padding: .25rem .5rem; }
.answer { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.answer small { flex-basis: 100%; color: var(--muted); }
.answer strong { font-weight: 500; }
.quote { margin: 1rem 0 0; padding: .9rem 1.1rem; background: var(--accent-soft); border-radius: 8px; font: italic 1.15rem/1.5 var(--serif); }
.danger-zone { border-color: #eccccc; }

.modal { border: 0; border-radius: 14px; padding: 0; max-width: min(92vw, 420px); box-shadow: 0 30px 80px rgb(0 0 0 / .25); }
.modal::backdrop { background: rgb(34 29 46 / .4); }
.modal__inner { padding: 1.5rem; }
.qr { display: grid; place-items: center; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr svg { width: 100%; max-width: 260px; height: auto; }
.modal [data-qr-url] { word-break: break-all; margin-top: .75rem; }

/* ---------- Tabellen ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 1rem; }
.tabs a { padding: .4rem .85rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .88rem; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { border-collapse: collapse; width: 100%; font-size: .86rem; }
.table th { text-align: left; font-weight: 500; color: var(--muted); padding: .7rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-alt); }
.table td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.is-first td { border-top: 2px solid var(--line); }
.table__inv { display: block; font: 500 1.05rem var(--serif); color: var(--ink); text-decoration: none; margin-bottom: .15rem; }

/* ---------- Akkordeon & Listen ---------- */
.acc summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "Bearbeiten"; margin-left: auto; font-size: .8rem; color: var(--accent); }
.acc[open] summary::after { content: "Schließen"; }
.acc[open] summary { margin-bottom: 1.1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.acc__title { font: 500 1.2rem var(--serif); }
.acc__meta { flex-basis: 100%; font-size: .8rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0 0 1rem; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.sections { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.section-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section-row.is-off { opacity: .6; }
.section-row__title { font: 500 1.15rem var(--serif); color: var(--ink); text-decoration: none; }
.section-row small { display: block; color: var(--muted); }
.section-row__actions { display: flex; gap: .3rem; flex-wrap: wrap; }
.section-row__actions form { margin: 0; }
.item-row { padding: .9rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .6rem; }
.thumb { max-width: 220px; border-radius: 8px; margin-bottom: .5rem; }
.thumb--sm { max-width: 90px; }
.fontlist { list-style: none; padding: 0; margin: 0 0 1rem; }
.fontlist li { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.fontlist span { font-size: 1.3rem; }
.fontlist form { margin-left: auto; }
.log { background: #1f1b29; color: #e8e4ef; padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: .76rem; max-height: 420px; }

/* ---------- Editoren ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.25rem; align-items: start; }
.editor__preview { position: sticky; top: 76px; }
.preview-switch { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.preview-switch select { width: auto; min-height: 36px; padding: .3rem .6rem; }
.device { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px -25px rgb(0 0 0 / .3); }
.device iframe { display: block; width: 100%; height: calc(100vh - 150px); min-height: 520px; border: 0; }
@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; }
  .editor__preview { position: static; order: -1; }
  .device iframe { height: 64vh; min-height: 420px; }
}
.preset-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; margin-bottom: .6rem; }
.preset-mini__btn { display: flex; align-items: center; gap: .5rem; padding: .7rem; border: 1px solid var(--line-strong); border-radius: 8px; font: 500 .84rem var(--sans); cursor: pointer; text-align: left; }
.preset-mini__btn span { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.preset-mini__btn.is-active { outline: 2px solid var(--accent); outline-offset: 2px; }
.ph-bar { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.ph { border: 1px dashed var(--line-strong); background: var(--bg); border-radius: 6px; padding: .25rem .55rem; font: .78rem ui-monospace, monospace; cursor: pointer; color: var(--accent); }
.ph:hover { border-style: solid; }
.media-field { margin-bottom: 1.1rem; }
.media-field__preview img { max-width: 100%; max-height: 160px; border-radius: 8px; margin: .4rem 0; }
.media-field__preview span { display: block; font-size: .85rem; margin: .4rem 0; color: var(--muted); }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: .4rem; margin: .3rem 0 .5rem; }
.gallery-edit figure { position: relative; margin: 0; }
.gallery-edit img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.gallery-edit button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .65); color: #fff; cursor: pointer; line-height: 1; }
.sortlist { list-style: none; padding: 0; margin: 0 0 .75rem; }
.sortlist li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .3rem; background: var(--surface); }
.sortlist .check { margin: 0; }
.sortlist__btns { display: flex; gap: .25rem; }

/* ---------- Installer & Login ---------- */
.install, .login { background: radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.install__wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.install__head h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.install__panel { padding: 1.75rem; }
.install__panel h2 { font: 500 1.6rem var(--serif); }
.install__sub { padding: 0 0 .4rem 1.9rem; }
.steps { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .8rem; color: var(--muted); }
.steps li, .steps a { display: flex; align-items: center; gap: .35rem; text-decoration: none; color: inherit; }
.steps li { padding: .3rem .65rem .3rem .3rem; border-radius: 999px; background: rgb(255 255 255 / .6); border: 1px solid var(--line); }
.steps span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); font-size: .72rem; color: var(--ink); }
.steps .is-done span { background: var(--yes); color: #fff; }
.steps .is-current { background: var(--surface); color: var(--ink); border-color: var(--accent); }
.steps .is-current span { background: var(--accent-fill); color: var(--on-accent); }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { display: flex; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.checks strong { display: block; font-weight: 500; }
.checks small { color: var(--muted); }
.checks__icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .8rem; font-weight: 700; }
.checks .ok .checks__icon { background: var(--yes-soft); color: var(--yes); }
.checks .fail .checks__icon { background: var(--no-soft); color: var(--no); }
.checks .warn .checks__icon { background: var(--part-soft); color: var(--part); }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.preset { position: relative; cursor: pointer; }
.preset input { position: absolute; opacity: 0; }
.preset__card { display: grid; place-items: center; gap: .9rem; aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--line); padding: 1rem; transition: transform .2s; }
.preset input:checked + .preset__card { outline: 3px solid var(--accent); outline-offset: 3px; }
.preset input:focus-visible + .preset__card { outline: 3px solid var(--ink); outline-offset: 3px; }
.preset__type { font-size: 1.9rem; line-height: 1; }
.preset__type em { font-style: italic; }
.preset__swatches { display: flex; gap: .3rem; }
.preset__swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .08); }
.preset__name { display: block; font-weight: 500; margin-top: .55rem; }
.preset small { color: var(--muted); }
.login { display: grid; place-items: center; min-height: 100vh; padding: 1.25rem; }
.login__card { width: min(100%, 420px); padding: 2rem; }
.login__card h1 { margin-bottom: .5rem; }

/* ---------- Farben der Verwaltung ---------- */
.theme-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.theme-preset { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: .6rem; padding: .55rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font: 500 .85rem var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.theme-preset.is-active { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.theme-preset__sw { display: grid; grid-template-columns: 1fr 1fr; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; border: 1px solid rgb(0 0 0 / .08); }
.theme-preset__sw i:nth-child(1) { grid-row: span 2; }
.theme-hint { font-size: .82rem; margin: .25rem 0 0; }
.theme-hint--warn { color: var(--part); }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent); font: 600 .85rem var(--sans); flex: none; align-self: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-thumb { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
/* ---------- Hochzeitstag ---------- */
.feature { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .9rem 0 .2rem; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature .switch { margin: 0; }
.feature__opts { padding: .6rem 0 .6rem 1.9rem; }
.field--md { max-width: 320px; }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.panel__head h2 { margin: 0; }
.linkcard { padding: 1rem 0; border-top: 1px solid var(--line); }
.linkcard:first-of-type { border-top: 0; padding-top: 0; }
.linkcard .linkbox__actions form { margin: 0; }
.photo-bar { margin-bottom: .8rem; }
.photo-bar .check { margin: 0 .5rem 0 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.photo { position: relative; display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-alt); cursor: pointer; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo input { position: absolute; top: .5rem; left: .5rem; width: 20px; height: 20px; accent-color: var(--accent-fill); z-index: 2; }
.photo:has(input:checked) { outline: 3px solid var(--accent-fill); outline-offset: -3px; }
.photo.is-pending img { opacity: .55; }
.photo__meta { display: block; padding: .4rem .55rem; font-size: .74rem; color: var(--muted); line-height: 1.35; }
.photo__meta b { color: var(--part); font-weight: 600; }
.photo__dl { position: absolute; top: .4rem; right: .4rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--ink); text-decoration: none; font-weight: 700; }
/* ---------- Veranstaltungen nach Tagen ---------- */
.event-day { margin: 1.5rem 0 1rem; }
.event-day__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; font: 500 1.35rem var(--serif); margin: 0 0 .6rem; }
.event-day__n { font: 600 .78rem var(--sans); color: var(--on-accent); background: var(--accent-fill); padding: .15rem .6rem; border-radius: 999px; }
.event-row { display: flex; gap: .5rem; align-items: flex-start; }
.event-row__move { display: flex; flex-direction: column; gap: .3rem; padding-top: .9rem; }
.event-row__move form { margin: 0; }
.event-row__body { flex: 1; min-width: 0; margin-bottom: .5rem; }

.fav-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.fav-preview img { border-radius: 12px; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.fav-preview img[width="32"] { border-radius: 6px; }
.fav-preview__touch { border-radius: 14px !important; }
.fav-preview p { flex: 1 1 220px; margin: 0; }
/* ---------- liebly-Logo ---------- */
.side__brand { display: block; margin: .1rem .75rem 1.1rem; opacity: .92; }
.side__brand:hover { opacity: 1; }
.side__brand img { display: block; width: 76px; height: auto; }
.install__logo { margin: 0 0 1.25rem; }
.install__logo img { width: 220px; height: auto; display: block; }
.login__logo { margin: 0 0 1rem; }
.login__logo img { width: 110px; height: auto; display: block; }
/* ---------- Lizenz ---------- */
.license__status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.license__status p { margin: 0; }
.license__status .badge { font-size: .85rem; padding: .3em .9em; }
/* ---------- Updates ---------- */
.side__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill); margin-left: .35rem; vertical-align: middle; }
.changelog { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.changelog h3 { margin: 0 0 .4rem; }
.changelog p { margin: 0; font-size: .9rem; }
/* ---------- Hinweis vor den Systemeinstellungen ---------- */
.gate { max-width: 40rem; margin: 2rem auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 24px 60px -36px rgb(0 0 0 / .35); animation: gate-in .45s cubic-bezier(.2,.7,.2,1); }
.gate__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #FFF4E0; color: #A8650D; margin-bottom: 1rem; }
.gate h1 { margin: 0 0 .5rem; }
.gate__lead { font-size: 1.05rem; margin: 0 0 1.1rem; }
.gate__list { margin: 0 0 1.25rem; padding-left: 1.2rem; display: grid; gap: .55rem; }
.gate__tip { background: var(--surface-alt); border-radius: 12px; padding: .9rem 1.1rem; font-size: .92rem; }
.gate__tip p { margin: .25rem 0; }
.gate__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: 1.5rem; }
.gate__foot { text-align: right; margin: .6rem 0 0; }
@keyframes gate-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .gate { animation: none; } }
/* ---------- Einführungstour ---------- */
.tour { position: fixed; inset: 0; z-index: 200; opacity: 0; transition: opacity .3s; }
.tour.is-on { opacity: 1; }
.tour.is-out { opacity: 0; }
.tour__spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgb(24 20 16 / .62); transition: top .5s cubic-bezier(.2,.8,.2,1), left .5s cubic-bezier(.2,.8,.2,1), width .5s cubic-bezier(.2,.8,.2,1), height .5s cubic-bezier(.2,.8,.2,1), opacity .3s; pointer-events: none; }
.tour__ring { position: absolute; inset: -4px; border-radius: 15px; border: 2px solid var(--accent-fill); animation: tour-pulse 1.8s ease-out infinite; }
.tour.is-center .tour__ring { display: none; }
.tour__card { position: fixed; width: min(360px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 1.1rem 1.2rem 1rem; box-shadow: 0 30px 70px -20px rgb(0 0 0 / .45); opacity: 0; transform: translateY(8px); transition: left .5s cubic-bezier(.2,.8,.2,1), top .5s cubic-bezier(.2,.8,.2,1); }
.tour__card.is-in { animation: tour-card .4s cubic-bezier(.2,.8,.2,1) forwards; }
.tour.is-center .tour__card { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); text-align: center; padding: 1.6rem 1.6rem 1.3rem; }
.tour.is-center .tour__card.is-in { animation: tour-center .45s cubic-bezier(.2,.8,.2,1) forwards; }
.tour.is-center .tour__title { font-size: 1.6rem; }
.tour.is-center .tour__nav, .tour.is-center .tour__dots { justify-content: center; }
.tour.is-sheet .tour__card { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; }
.tour.is-sheet-top .tour__card { top: 72px !important; bottom: auto; }
.tour__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.tour.is-center .tour__top { justify-content: center; gap: 1rem; }
.tour__count { font-size: .75rem; color: var(--accent); font-weight: 600; letter-spacing: .02em; }
.tour__skip { border: 0; background: none; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; padding: .2rem .3rem; border-radius: 6px; }
.tour__skip:hover { color: var(--ink); }
.tour__title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 0 0 .35rem; line-height: 1.2; }
.tour__text { margin: 0 0 .9rem; font-size: .93rem; line-height: 1.5; color: var(--ink-soft, var(--ink)); }
.tour__dots { display: flex; gap: 5px; margin-bottom: .9rem; }
.tour__dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width .3s, background-color .3s; }
.tour__dots i.on { width: 18px; background: var(--accent-fill); }
.tour__nav { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.tour__nav [hidden] { display: none; }
@keyframes tour-card { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tour-center { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes tour-pulse { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .tour, .tour__spot, .tour__card { transition: none !important; } .tour__card.is-in { animation: none; opacity: 1; transform: none; } .tour.is-center .tour__card.is-in { transform: translate(-50%, -50%); } .tour__ring { animation: none; } }
.topbar__help { min-width: 2.2rem; justify-content: center; gap: .35rem; }
.topbar__help span[aria-hidden] { font-weight: 700; }
@media (max-width: 640px) { .topbar__label { display: none; } }
/* ---------- Hilfe ---------- */
.help { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; align-items: start; }
.help__toc { position: sticky; top: 76px; }
.help__toc ul { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .1rem; }
.help__toc a { display: block; padding: .4rem .65rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.help__toc a:hover { background: var(--surface-alt); }
.help__toc a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.help__toc a[hidden] { display: none; }
.help__search input { width: 100%; }
.help__body { display: grid; gap: 1rem; min-width: 0; }
.help__topic { scroll-margin-top: 80px; }
.help__topic h2 { margin-bottom: .2rem; }
.help__lead { color: var(--muted); margin: 0 0 1rem; }
.help__topic ul, .help__topic ol { padding-left: 1.25rem; display: grid; gap: .45rem; }
.help-steps li::marker { color: var(--accent); font-weight: 700; }
.help-tip { background: var(--accent-soft); border-left: 3px solid var(--accent-fill); border-radius: 0 10px 10px 0; padding: .7rem 1rem; font-size: .92rem; margin: 1rem 0 0; }
.help-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: .5rem; }
.help-table th, .help-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-table code, .help__topic code { background: var(--surface-alt); padding: .1em .35em; border-radius: 5px; font-size: .88em; white-space: nowrap; }
.help-faq dt { font-weight: 600; margin-top: .9rem; }
.help-faq dd { margin: .2rem 0 0; color: var(--ink); }
.help-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #B5ADA2; vertical-align: middle; }
.help-dot--yes { background: #3F8F61; } .help-dot--no { background: #C2554F; }
.help__empty { text-align: center; color: var(--muted); padding: 2rem 0; }
mark.help-hit { background: color-mix(in srgb, var(--accent-fill) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }
@media (max-width: 900px) { .help { grid-template-columns: 1fr; } .help__toc { position: static; } .help__toc ul { display: flex; flex-wrap: wrap; gap: .3rem; } .help__toc a { background: var(--surface); border: 1px solid var(--line); padding: .3rem .6rem; font-size: .82rem; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---------- Einladungen drucken ---------- */
.print-presets { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1rem; }
a.chip { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .9rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; }
a.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.print-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .4rem .9rem; max-height: 26rem; overflow: auto; padding: .2rem; }
.print-item { align-items: flex-start; }
.print-item span { display: grid; }
/* ---------- Antworten ---------- */
.resp-bar { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.seg-tabs { display: inline-flex; padding: .25rem; border-radius: 12px; background: var(--surface-alt); border: 1px solid var(--line); }
.seg-tabs a { padding: .5rem 1.1rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; }
.seg-tabs a[aria-current] { background: var(--surface); box-shadow: 0 1px 4px rgb(0 0 0 / .1); font-weight: 600; }
.resp-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.resp-filter select, .resp-filter input { min-height: 40px; width: auto; }
.tabs__n { display: inline-block; min-width: 1.6em; padding: 0 .4em; margin-left: .25rem; border-radius: 99px; background: var(--surface-alt); font-size: .8em; text-align: center; }
.resp-table th[scope="row"] { font-weight: 600; }
.resp-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.evdot { display: inline-flex; align-items: center; gap: .4rem; margin: 0 .8rem .2rem 0; white-space: nowrap; }
.evdot > span[aria-hidden] { width: .6rem; height: .6rem; border-radius: 50%; background: #B5ADA2; flex: none; }
.evdot--yes > span[aria-hidden] { background: #2F7A52; }
.evdot--no > span[aria-hidden] { background: #A3423D; }
.tabs a[aria-current] .tabs__n { background: rgb(255 255 255 / .22); color: inherit; }
/* ---------- Navigation 2.7 ---------- */
.side a { display: flex; align-items: center; gap: .65rem; }
.nav-ico { flex: none; opacity: .75; }
.side a[aria-current] .nav-ico, .side a:hover .nav-ico { opacity: 1; }
.side__help { margin-bottom: .2rem; }
.topbar__search { gap: .45rem; }
.topbar__kbd { font: 500 .7rem system-ui, sans-serif; padding: .08rem .35rem; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); }
@media (max-width: 900px) { .topbar__kbd { display: none; } }
/* So geht's weiter */
.checklist__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.checklist__head h2 { margin-bottom: .1rem; }
.checklist__bar { height: 6px; border-radius: 99px; background: var(--surface-alt); overflow: hidden; margin: .6rem 0 .9rem; }
.checklist__bar span { display: block; height: 100%; background: var(--accent-fill); border-radius: inherit; }
.checklist__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.checklist__list a { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.checklist__list a:hover { background: var(--surface-alt); }
.checklist__mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: .75rem; flex: none; }
.checklist__list .is-done a { color: var(--muted); }
.checklist__list .is-done .checklist__mark { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.checklist__list .is-next a { background: var(--accent-soft); font-weight: 600; }
.checklist__list .is-next .checklist__mark { border-color: var(--accent-fill); }
/* Suche */
.search { width: min(620px, calc(100vw - 2rem)); max-height: min(70vh, 560px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .35); margin-top: 12vh; }
.search[open] { display: flex; flex-direction: column; animation: search-in .18s ease-out; }
.search::backdrop { background: rgb(20 18 16 / .35); backdrop-filter: blur(2px); }
@keyframes search-in { from { opacity: 0; transform: translateY(-6px) scale(.99); } }
@media (prefers-reduced-motion: reduce) { .search[open] { animation: none; } }
.search__box { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.search__box input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--ink); min-height: 36px; padding: 0; box-shadow: none; }
.search__box kbd, .search__foot span { font: 500 .72rem system-ui, sans-serif; color: var(--muted); }
.search__box kbd { padding: .1rem .4rem; border: 1px solid var(--line-strong); border-radius: 5px; }
.search__list { list-style: none; margin: 0; padding: .4rem; overflow: auto; }
.search__item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label kind" "hint kind"; gap: 0 1rem; padding: .55rem .75rem; border-radius: 10px; cursor: pointer; }
.search__item.is-active { background: var(--accent-soft); }
.search__label { grid-area: label; font-weight: 500; }
.search__hint { grid-area: hint; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search__kind { grid-area: kind; align-self: center; font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: .05rem .5rem; }
.search__empty { margin: 0; padding: 1.2rem; text-align: center; color: var(--muted); }
.search__foot { margin: 0; padding: .55rem 1rem; border-top: 1px solid var(--line); display: flex; gap: 1.2rem; }
@media (max-width: 640px) { .search { margin-top: 1rem; max-height: calc(100vh - 2rem); } .search__foot { display: none; } }
.search .search__box input[type="text"] { border: 0; box-shadow: none; background: none; padding: 0; }
.search .search__box input[type="text"]:focus-visible { outline: none; }
.search .search__box:focus-within { box-shadow: inset 0 -2px 0 var(--accent-fill); }
/* ---------- Support-Chat ---------- */
.chat { display: grid; gap: 1rem; }
.chat__list { list-style: none; margin: 0; padding: .2rem; display: grid; gap: .9rem; max-height: 55vh; min-height: 12rem; overflow-y: auto; align-content: start; }
.chat__empty { color: var(--muted); text-align: center; padding: 2rem 1rem; }
.chat__msg { display: grid; justify-items: end; justify-self: end; max-width: 80%; }
.chat__msg.is-team { justify-self: start; justify-items: start; }
.chat__bubble { background: var(--ink); color: var(--on-ink); border-radius: 14px 14px 4px 14px; padding: .7rem 1rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat__msg.is-team .chat__bubble { background: var(--surface-alt); color: var(--ink); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
.chat__msg small { color: var(--muted); margin-top: .25rem; font-size: .76rem; }
.chat__form textarea { width: 100%; }
.chat__actions { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; margin-top: .6rem; }
.chat__note { font-size: .8rem; color: var(--muted); margin: 0; max-width: 34rem; }
@media (max-width: 640px) { .chat__actions { flex-direction: column; } .chat__msg { max-width: 92%; } }
/* ---------- Support: Sprechblase, Tickets ---------- */
.support-fab { position: fixed; right: calc(1.25rem + env(safe-area-inset-right, 0px)); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); box-shadow: 0 12px 30px -10px rgb(0 0 0 / .45); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.support-fab:hover { transform: translateY(-2px); color: var(--on-ink); box-shadow: 0 16px 34px -10px rgb(0 0 0 / .5); }
.support-fab:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 3px; }
.support-fab__badge, .side__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #C8322B; color: #fff; font: 700 .72rem/20px system-ui, sans-serif; text-align: center; }
.support-fab__badge { position: absolute; top: -2px; right: -2px; box-shadow: 0 0 0 2px var(--bg); }
.side__count { margin-left: auto; }
.support-fab.has-new::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #C8322B; animation: fab-ping 1.8s ease-out 3; pointer-events: none; }
@keyframes fab-ping { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .support-fab.has-new::after { animation: none; display: none; } .support-fab { transition: none; } }
@media print { .support-fab { display: none; } }
.main { padding-bottom: 6rem; }
.kat-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.kat { position: relative; }
.kat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kat__box { display: grid; gap: .15rem; height: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.kat__ico { font-size: 1.3rem; }
.kat__box small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.kat input:checked + .kat__box { border-color: var(--ink); background: var(--accent-soft); }
.kat input:focus-visible + .kat__box { outline: 3px solid var(--accent-fill); outline-offset: 2px; }
.tickets { list-style: none; margin: 0; padding: 0; display: grid; }
.tickets li + li { border-top: 1px solid var(--line); }
.ticket { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .85rem .4rem; color: var(--ink); text-decoration: none; border-radius: 10px; }
.ticket:hover { background: var(--surface-alt); }
.ticket__ico { font-size: 1.25rem; width: 2rem; text-align: center; }
.ticket__main { display: grid; min-width: 0; }
.ticket__main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket__main small { color: var(--muted); }
.ticket__meta { display: flex; gap: .5rem; align-items: center; }
.ticket__new { background: #C8322B; color: #fff; border-radius: 99px; padding: .1rem .55rem; font-size: .74rem; font-weight: 700; }
.ticket.is-unread b { font-weight: 700; }
@media (max-width: 640px) { .ticket { grid-template-columns: auto 1fr; } .ticket__meta { grid-column: 2; } .support-fab { width: 52px; height: 52px; } }
.pwlinks { border-color: var(--accent, #A88B5A); }
.pwlinks__row { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.pwlinks__row .field { flex: 1 1 320px; margin: 0; }
.pwlinks__row input { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }

/* Auswahl der Öffnungs-Animation */
.intro-pick { border: 0; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.intro-pick__opt > span:last-child { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.intro-pick__opt { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: .7rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--line, #ddd); border-radius: 10px; cursor: pointer; background: var(--surface, #fff); }
.intro-pick__opt input { position: absolute; opacity: 0; pointer-events: none; }
.intro-pick__opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.intro-pick__opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.intro-pick__opt strong { display: block; font-size: .92rem; }
.intro-pick__opt small { display: block; font-size: .78rem; opacity: .75; line-height: 1.3; }
.intro-pick__ico { width: 44px; height: 32px; position: relative; border-radius: 3px; background: #efe9df; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.intro-pick__ico--seal::before, .intro-pick__ico--botanical::before { content: ""; position: absolute; inset: 0 0 auto; height: 58%; background: #e3dacb; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.intro-pick__ico--seal::after { content: ""; position: absolute; left: 50%; top: 58%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #b2565c, #6e2b31); }
.intro-pick__ico--botanical::after { content: ""; position: absolute; left: 50%; top: 58%; width: 22px; height: 10px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: -9px -3px 0 -2px #8fa07a, 9px -3px 0 -2px #6f8360, 0 0 0 1px #b4a27c; }
.intro-pick__ico--card { width: 26px; margin: 0 9px; background: #f7f3ec; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), inset 0 0 0 3px #f7f3ec, inset 0 0 0 4px #c9b48b; }
.intro-pick__ico--off { background: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.intro-pick__ico--off::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: rgba(0,0,0,.3); transform: rotate(-28deg); }
.preview-switch [data-intro-play] { margin-left: auto; }

.intro-custom { margin-top: 1rem; border-top: 1px solid var(--line, #e5e2dd); padding-top: .9rem; }
.intro-custom > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: .4rem; align-items: baseline; }
.intro-custom > summary::-webkit-details-marker { display: none; }
.intro-custom > summary::before { content: "›"; display: inline-block; transition: transform .2s; font-weight: 400; }
.intro-custom[open] > summary::before { transform: rotate(90deg); }
.intro-custom[open] > summary { margin-bottom: .9rem; }
.intro-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-top: .8rem; }
.intro-colors .linkbtn { grid-column: 1 / -1; justify-self: start; }
.intro-color { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border: 1px solid var(--line, #e5e2dd); border-radius: 8px; cursor: pointer; font-size: .9rem; }
.intro-color input[type=color] { width: 34px; height: 28px; padding: 0; border: 1px solid rgba(0,0,0,.15); border-radius: 6px; background: none; cursor: pointer; flex: none; }
.intro-color input[type=color]::-webkit-color-swatch-wrapper { padding: 2px; }
.intro-color input[type=color]::-webkit-color-swatch { border: 0; border-radius: 4px; }
[data-device] { transition: opacity .2s; }
[data-device].is-busy { opacity: .6; pointer-events: none; }

/* Experten-Einstellungen (aufklappbar) */
details.expert > summary { cursor: pointer; list-style: none; display: grid; gap: .2rem; }
details.expert > summary::-webkit-details-marker { display: none; }
details.expert > summary h2 { margin: 0; display: flex; align-items: center; gap: .5rem; }
details.expert > summary h2::before { content: "›"; display: inline-block; font-weight: 400; transition: transform .2s; }
details.expert[open] > summary h2::before { transform: rotate(90deg); }
details.expert[open] > summary { margin-bottom: 1rem; }
.expert__part { border-top: 1px solid var(--line, #e5e2dd); padding-top: 1rem; margin-top: 1rem; }
.expert__part h3 { margin: 0 0 .7rem; font-size: 1rem; }
.expert__part h3 + * { margin-top: 0; }

/* Menü je Veranstaltung */
.menu-box { border: 1px solid var(--line, #e5e2dd); border-radius: 12px; padding: .8rem 1rem 1rem; margin: 1rem 0; }
.menu-box legend { font-weight: 600; padding: 0 .35rem; }
.menu-box__fields { margin-top: .6rem; }
.menu-box:not(:has([data-menu-toggle]:checked)) .menu-box__fields { display: none; }
.menu-box:not(:has([data-menu-multi]:checked)) .menu-box__excl { display: none; }
.badge--soft { background: var(--accent-soft, #F0EAF4); color: var(--accent, #6F5384); }
.menu-box:not(:has([data-menu-toggle]:checked)) .menu-box__adopt { display: none; }
.login__alt { margin: 1rem 0 0; text-align: center; font-size: .92rem; }

/* ===================== Veranstaltungen & Fragen ===================== */
.ui-ico { flex: none; vertical-align: -3px; }
.btn .ui-ico { margin-right: .15rem; }
.page-tabs__bar { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: 0 0 1.4rem; overflow-x: auto; }
.page-tabs__bar a { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1rem; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.page-tabs__bar a:hover { color: var(--ink); }
.page-tabs__bar a.is-on, .page-tabs__bar a[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.page-tabs__n { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 .5rem; color: var(--muted); }
html:not(.js-tabs) .page-tabs__bar { display: none; }

/* Tage und Karten */
.ev-day { margin: 0 0 1.6rem; }
.ev-day__title { font: 500 1.35rem/1.2 var(--serif); margin: 0 0 .7rem; display: flex; align-items: baseline; gap: .6rem; }
.ev-day__n { font: 600 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .3rem .55rem; border-radius: 999px; }
.ev-list { list-style: none; margin: 0; padding: 0 0 0 1.1rem; display: grid; gap: .7rem; border-left: 2px solid var(--line); }
.ev-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.ev-card::before { content: ""; position: absolute; left: calc(-1.1rem - 7px); top: 1.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.ev-card:hover { border-color: var(--line-strong); }
.ev-card.is-open { border-color: var(--accent-line); box-shadow: 0 10px 30px -18px rgba(34, 29, 46, .35); }
.ev-card__head { display: grid; grid-template-columns: 4.2rem 1fr minmax(170px, 230px) auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; cursor: pointer; }
.ev-card.is-open .ev-card__head { cursor: default; border-bottom: 1px solid var(--line); }
.ev-card__time { font: 500 1.35rem/1 var(--serif); color: var(--accent); }
.ev-card__name { margin: 0; font: 500 1.3rem/1.2 var(--serif); }
.ev-card__meta { margin: .2rem 0 .45rem; color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: .3rem; }
.ev-card__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.ev-card__badges li { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: .15rem .6rem; }
.ev-card__badges li.is-on { color: var(--accent); background: var(--accent-soft); }
.ev-card__rsvp p { margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }
.ev-card__rsvp b { color: var(--ink); }
.ev-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.ev-bar__yes { background: var(--yes); } .ev-bar__no { background: #D9A3A3; }
.ev-card__actions { display: flex; align-items: center; gap: .3rem; }
.ev-card__editor { padding: 0 1.1rem 1rem; }
@media (max-width: 900px) {
  .ev-card__head { grid-template-columns: 3.4rem 1fr; }
  .ev-card__rsvp { grid-column: 1 / -1; }
  .ev-card__actions { grid-column: 1 / -1; justify-content: flex-end; }
}
.ev-add { display: flex; align-items: center; justify-content: center; gap: .55rem; flex-wrap: wrap; width: 100%; margin: .2rem 0 1.6rem; padding: 1rem; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: transparent; color: var(--accent); font: 600 .95rem var(--sans); cursor: pointer; }
.ev-add small { color: var(--muted); font-weight: 400; }
.ev-add:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.ev-settings > summary { cursor: pointer; font-weight: 600; }
.ev-settings[open] > summary { margin-bottom: .8rem; }

/* Editor mit Reitern */
.ev-tabs { display: flex; gap: .2rem; margin: .9rem 0 1rem; padding: .25rem; background: var(--bg); border-radius: 10px; width: fit-content; max-width: 100%; overflow-x: auto; }
html:not(.js-tabs) .ev-tabs { display: none; }
.ev-tabs button { border: 0; background: none; padding: .45rem .9rem; border-radius: 8px; font: 500 .9rem var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.ev-tabs button:hover { color: var(--ink); }
.ev-tabs button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(34, 29, 46, .12); }
.ev-tabs__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yes); }
.ev-tabs__n { font-size: .72rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 .4rem; }
html:not(.js-tabs) .ev-pane { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.ev-pane .menu-box { margin: 0; }
.ev-qlist { margin: .3rem 0 1rem; padding-left: 1.1rem; }
.ev-qlist li { margin: .25rem 0; }
.ev-editor__foot { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.ev-editor__del { margin-top: .6rem; text-align: right; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.linkbtn--danger { color: var(--no); font-size: .88rem; }

/* Auswahl-Chips (Veranstaltungen & Fragen) */
.opts { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .6rem; }
.opt { display: inline-flex; position: relative; margin: 0; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt span, .opt--btn { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font: 500 .88rem var(--sans); color: var(--ink); cursor: pointer; line-height: 1.3; }
.opt input:checked + span, .opt--btn.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.opt input:checked + span::before { content: "✓"; font-size: .8em; }
.opt input:focus-visible + span { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.opt span:hover, .opt--btn:hover { border-color: var(--accent); }
.qform__events legend { font-weight: 600; font-size: .9rem; }
.opts--tpl { margin-bottom: 1.1rem; }

/* Fragen */
.q-h { font: 500 1.2rem var(--serif); margin: 1.4rem 0 .6rem; }
.q-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.q-card.is-off { opacity: .75; }
.q-card__head { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; flex-wrap: wrap; }
summary.q-card__head { cursor: pointer; list-style: none; }
summary.q-card__head::-webkit-details-marker { display: none; }
.q-card__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.q-card--menu .q-card__ico { background: var(--yes-soft); color: var(--yes); }
.q-card__main { flex: 1; min-width: 12rem; display: grid; }
.q-card__main h3 { margin: 0; font-size: 1rem; }
.q-card__title { font-weight: 600; }
.q-chip { font-size: .78rem; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .2rem .65rem; }
.q-card__edit { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--muted); }
.q-card__det[open] .q-card__edit { visibility: hidden; }
.q-card__det[open] > summary { border-bottom: 1px solid var(--line); }
.q-card__body { padding: 1rem; }
.q-card__tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; }
.q-card__tools form:last-child { margin-left: auto; }
.q-new { margin-top: 1.4rem; }

/* Fenster: neue Veranstaltung */
.ev-dialog { border: 0; border-radius: 16px; padding: 1.3rem 1.4rem 1.2rem; width: min(560px, calc(100vw - 2rem)); box-shadow: 0 30px 80px -30px rgba(34, 29, 46, .5); color: var(--ink); }
.ev-dialog::backdrop { background: rgba(34, 29, 46, .38); backdrop-filter: blur(2px); }
.ev-dialog__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .2rem; }
.ev-dialog__head h2 { margin: 0; font: 500 1.5rem var(--serif); }
.ev-dialog .actions { justify-content: flex-end; gap: .5rem; }
@media (prefers-reduced-motion: no-preference) {
  .ev-dialog[open] { animation: ev-pop .22s ease-out; }
  .ev-card__editor:not([hidden]) { animation: ev-in .22s ease-out; }
}
@keyframes ev-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes ev-in { from { opacity: 0; transform: translateY(-4px); } }
.ev-card__time small { display: block; font: 500 .72rem var(--sans); color: var(--muted); letter-spacing: .04em; margin-top: .2rem; }
.ev-card, .q-card, .q-new { scroll-margin-top: 90px; }
.q-card__tip { font-size: .8rem; color: var(--part); }

/* ===================== Versenden & Erinnern ===================== */
.sg { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 800px) { .sg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sg__card { width: 100%; text-align: left; display: grid; gap: .15rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.sg__card b { font: 500 1.7rem/1 var(--serif); }
.sg__card span { font-size: .85rem; color: var(--muted); }
.sg__card:hover { border-color: var(--line-strong); }
.sg__card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sg__card--draft b { color: var(--muted); } .sg__card--sent b { color: var(--part); } .sg__card--opened b { color: var(--accent); } .sg__card--answered b { color: var(--yes); }
.send__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.send__step h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; font-size: 1.05rem; }
.send__n { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: .85rem; flex: none; }
.send__step + .send__step { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.send__announce { margin-top: .8rem; }
.send__pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.send__pick .opt small { color: var(--muted); font-weight: 400; }
.send__search { max-width: 15rem; }
.send__list { margin: .7rem 0 .3rem; max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.send__row { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); cursor: pointer; flex-wrap: wrap; }
.send__row:last-child { border-bottom: 0; }
.send__row:hover { background: var(--surface-alt); }
.send__row input { flex: none; }
.send__name { flex: 1; min-width: 9rem; font-weight: 500; }
.send__ch { display: flex; flex-wrap: wrap; gap: .3rem; }
.ch { font-size: .74rem; padding: .1rem .5rem; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.ch--mail { background: var(--accent-soft); color: var(--accent); } .ch--wa { background: var(--yes-soft); color: var(--yes); } .ch--off { background: var(--no-soft); color: var(--no); }
.send__list .muted { padding: .8rem; margin: 0; }
.send__how { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 800px) { .send__how { grid-template-columns: 1fr; } }
.how { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; display: grid; gap: .45rem; align-content: start; }
.how h4 { margin: 0; display: flex; align-items: center; gap: .45rem; font-size: 1rem; }
.how p { margin: 0; }
.how__n { font: 500 1.35rem var(--serif); }
.how__btns { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.how--mail { background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%); }
.send__progress { margin-top: 1rem; }
.send__bar, .wa__bar { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.send__bar span, .wa__bar span { display: block; height: 100%; width: 0; background: var(--yes); transition: width .4s ease; }
.send__progress p { margin: .45rem 0 0; font-size: .9rem; }
.send__cfg { gap: 1rem; align-items: start; margin-top: 1.2rem; }
.send__cfg .panel h2, .send__texts h2 { display: flex; align-items: center; gap: .45rem; }
.send__auto { margin: .4rem 0 0 .2rem; }
#automatik:not(:has([data-auto]:checked)) .send__auto { opacity: .55; }
.send__h3 { margin: 1.2rem 0 .5rem; font-size: .95rem; }
.field--inline { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.field--inline > span { margin: 0; }
.send__texts > summary { cursor: pointer; list-style: none; display: grid; gap: .15rem; }
.send__texts > summary::-webkit-details-marker { display: none; }
.send__texts[open] > summary { margin-bottom: .8rem; }
.send__tpl { border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem .4rem; margin: 0 0 .8rem; }
.send__tpl legend { font-weight: 600; padding: 0 .35rem; }
.send__hist { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .92rem; }
.badge--queued { background: var(--part-soft); color: var(--part); } .badge--failed { background: var(--no-soft); color: var(--no); } .badge--skipped { color: var(--muted); }
.send-dlg { width: min(720px, calc(100vw - 2rem)); }
.mp__meta { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: .4rem 0 .8rem; font-size: .9rem; }
.mp__meta dt { color: var(--muted); } .mp__meta dd { margin: 0; overflow-wrap: anywhere; }
.mp__frame { width: 100%; height: 62vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wa__card { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin: .8rem 0; }
.wa__card h3 { margin: 0 0 .2rem; }
.wa__text { white-space: pre-wrap; font: .92rem/1.5 var(--sans); background: var(--yes-soft); border-radius: 12px 12px 12px 4px; padding: .8rem 1rem; margin: .6rem 0 0; max-height: 240px; overflow: auto; }
.wa__done { display: flex; align-items: center; gap: .5rem; color: var(--yes); font-weight: 600; }

/* Übersicht: nächster Handgriff beim Versand */
.nudge { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .7rem; margin: 0 0 1.2rem; }
.nudge__card { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.nudge__card:hover { border-color: var(--accent); }
.nudge__card > .ui-ico { color: var(--accent); }
.nudge__card > span:nth-child(2) { flex: 1; display: grid; gap: .1rem; }
.nudge__card small { color: var(--muted); }
.nudge__card--warn { background: var(--part-soft); border-color: #ecdcb8; }
.nudge__card--warn > .ui-ico { color: var(--part); }
.nudge__go { font-weight: 600; color: var(--accent); white-space: nowrap; }
.alert--info { background: var(--accent-soft); color: var(--ink); border-color: var(--accent-line); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Geschenkliste (Verwaltung) */
.kpis--sm { list-style: none; padding: 0; margin: 0 0 1rem; }
.gift-reveal { margin-bottom: 1rem; }
.gift-reveal fieldset { border: 0; margin: 0; padding: 0; }
.gift-reveal legend { font-weight: 600; margin-bottom: .4rem; }
.gift-admin { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.gift-a { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: start; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 90px; }
.gift-a.is-off { opacity: .7; }
.gift-a__img { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.gift-a__img img { width: 100%; height: 100%; object-fit: cover; }
.gift-a__title { margin: 0 0 .15rem; font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.gift-a__main p { margin: .15rem 0; }
.gift-a__bar { height: 7px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; max-width: 320px; margin-top: .5rem; }
.gift-a__bar span { display: block; height: 100%; background: var(--yes); }
.gift-a__who { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.gift-a__who li { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; background: var(--yes-soft); color: var(--yes); border-radius: 999px; padding: .15rem .65rem; }
.gift-a__who form { display: inline; }
.gift-a__tools { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .gift-a { grid-template-columns: 64px 1fr; } .gift-a__img { width: 64px; height: 64px; } .gift-a__tools { grid-column: 1 / -1; justify-content: flex-start; } }
.gift-form { scroll-margin-top: 90px; }
.gift-form:not(:has([name=kind][value=money]:checked)) .gift-form__money { display: none; }
.gift-form:has([name=kind][value=money]:checked) .gift-form__item { display: none; }
.gift-form__img { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.gift-form__thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.gift-a__who .linkbtn { color: var(--yes); font-weight: 600; }
.kpis--sm { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

/* Hochzeitstag */
.daynav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; position: sticky; top: 0; z-index: 5; padding: .5rem 0; background: var(--bg); }
.daynav a { padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; }
.daynav a:hover { border-color: var(--accent); }
#hinweis, #diashow, #kueche, #regieplan, #livemodus { scroll-margin-top: 70px; margin-bottom: 1rem; }
#hinweis h2, #diashow h2, #kueche h2, #regieplan h2, #livemodus h2 { display: flex; align-items: center; gap: .45rem; }
.daylink { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .55rem; margin: .4rem 0; }
.daylink.is-on { border-color: var(--yes); background: var(--yes-soft); }
.daylink__url { display: flex; gap: .4rem; flex-wrap: wrap; }
.daylink__url input { flex: 1; min-width: 14rem; font-family: ui-monospace, monospace; font-size: .85rem; }
.daylink__opt { margin-top: .6rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.daylist { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; gap: .4rem; }
.daylist li { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.daylist .btn { margin-left: auto; }
.announce-prev { display: flex; gap: .7rem; padding: .8rem 1rem; border: 1px solid var(--accent); border-radius: 12px; margin: .6rem 0 1rem; background: var(--accent-soft); }
.announce__dot { flex: none; width: .6rem; height: .6rem; margin-top: .4rem; border-radius: 50%; background: var(--accent); }
.rs { display: grid; gap: .35rem; margin-bottom: .6rem; }
.rs__head, .rs__row { display: grid; grid-template-columns: 5.5rem 1.4fr 1fr 1.4fr 2.2rem; gap: .4rem; align-items: center; }
.rs__head span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 760px) { .rs__head { display: none; } .rs__row { grid-template-columns: 5rem 1fr 2.2rem; padding: .5rem 0; border-bottom: 1px solid var(--line); } .rs__row input:nth-child(3), .rs__row input:nth-child(4) { grid-column: 1 / 3; } }
.daylink.is-on .linkbtn { color: var(--ink); }
.alert--warn a { color: #5a3e08; text-decoration: underline; }

/* Übersicht: Phase der Website */
.phase-pick { margin-bottom: 1.2rem; scroll-margin-top: 80px; }
.phase-pick__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem; margin-bottom: .7rem; }
.phase-pick__head h2 { margin: 0; font-size: 1.05rem; }
.phase-pick__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 760px) { .phase-pick__opts { grid-template-columns: 1fr; } }
.phase-opt { position: relative; cursor: pointer; }
.phase-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.phase-opt__box { display: grid; gap: .25rem; height: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.phase-opt__box small { color: var(--muted); font-size: .84rem; }
.phase-opt input:checked + .phase-opt__box { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.phase-opt input:focus-visible + .phase-opt__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.phase-opt__prev { position: relative; z-index: 1; justify-self: start; font-size: .84rem; }
.phase-pick__texts { margin-top: .8rem; }
.phase-pick__texts summary { cursor: pointer; color: var(--muted); }
/* Gästebuch (Verwaltung) */
.gb-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.gb-a { padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.gb-a.is-wait { border-color: #ecdcb8; background: var(--part-soft); }
.gb-a blockquote { margin: 0 0 .3rem; font-size: 1rem; }
.gb-a p { margin: 0; }
.gb-a__tools { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; }

/* Demo */
.demo-login { border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; display: grid; gap: .35rem; }
.demo-login p { margin: 0; }
.demo-login__data code { font-size: .92rem; background: var(--surface); padding: .05rem .4rem; border-radius: 6px; }
.demo-login .btn { justify-self: start; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .65rem 1rem; margin: 0 0 1rem; border-radius: 12px; background: var(--ink); color: var(--on-ink); }
.demo-bar .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.demo-bar__act { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.demo-bar .btn--ghost { background: transparent; color: var(--on-ink); border-color: var(--on-ink); }

/* Reiter System · Updates · Lizenz */
.systabs { display: flex; gap: .3rem; margin: 0 0 1.2rem; border-bottom: 1px solid var(--line); }
.systabs a { padding: .55rem 1rem; margin-bottom: -1px; border: 1px solid transparent; border-radius: 10px 10px 0 0; color: var(--muted); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; }
.systabs a:hover { color: var(--ink); }
.systabs a[aria-current="page"] { color: var(--ink); background: var(--surface); border-color: var(--line); border-bottom-color: var(--surface); }

/* ===== Unterpunkte: ein Aussehen für alle Seiten (wie die System-Reiter) ===== */
.subtabs, .systabs, .page-tabs__bar { display: flex; gap: .3rem; margin: 0 0 1.2rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar, .page-tabs__bar::-webkit-scrollbar { display: none; }
.subtabs a, .systabs a, .page-tabs__bar a { flex: none; padding: .55rem 1rem; margin-bottom: -1px; border: 1px solid transparent; border-radius: 10px 10px 0 0; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.subtabs a:hover, .systabs a:hover, .page-tabs__bar a:hover { color: var(--ink); }
.subtabs a[aria-current], .subtabs a.is-current, .systabs a[aria-current="page"], .page-tabs__bar a.is-on, .page-tabs__bar a[aria-selected="true"] { color: var(--ink); background: var(--surface); border-color: var(--line); border-bottom-color: var(--surface); }
.subtabs__n, .page-tabs__n { display: inline-block; min-width: 1.6em; padding: 0 .45em; border-radius: 99px; background: var(--bg); font-size: .78em; text-align: center; color: var(--muted); }
.subtabs--spy { position: sticky; top: 60px; z-index: 6; background: var(--bg); padding-top: .4rem; }
#hinweis, #diashow, #kueche, #regieplan, #livemodus, #funktionen, #links, #fotos, #musik, #grunddaten, #antworten, #sichtbarkeit, #versand, #rechtliches { scroll-margin-top: 125px; }

/* Kopfleiste mit liebly-Logo, Namen des Brautpaares in der Seitenleiste über „Übersicht“ */
.topbar__brand--logo { flex-direction: row; align-items: center; }
.topbar__brand--logo img { display: block; width: 76px; height: auto; }
.side__couple { display: grid; gap: .15rem; margin: .1rem .75rem 1rem; padding: 0 .1rem .9rem; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); color: inherit; text-decoration: none; }
.side__couple-names { font: 500 1.35rem/1.15 var(--serif); }
.side__couple small { font-size: .78rem; opacity: .7; }
.side__couple:hover .side__couple-names { text-decoration: underline; text-underline-offset: .2em; }
.side a.side__couple { display: grid; padding: .1rem .75rem .9rem; margin: .1rem 0 1rem; border-radius: 0; color: var(--side-text); }
.side a.side__couple:hover { background: none; }

/* ===== Features ===== */
.feat-sum { margin: -.4rem 0 1.2rem; color: var(--muted); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: .9rem; }
.feat { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start; padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .2s, box-shadow .2s, background .2s; }
.feat.is-on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 6px 18px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.feat__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg); color: var(--muted); transition: background .2s, color .2s; }
.feat.is-on .feat__ico { background: var(--accent-soft); color: var(--accent); }
.feat__name { margin: .1rem 0 .25rem; font: 600 1rem/1.3 var(--sans); }
.feat__desc { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.feat__link { display: inline-block; margin-top: .55rem; font-size: .88rem; font-weight: 500; }
.feat__switch { display: grid; justify-items: center; gap: .3rem; cursor: pointer; position: relative; }
.feat__switch input { position: absolute; opacity: 0; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.feat__switch span { width: 46px; height: 26px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .2s; }
.feat__switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.feat__switch input:checked + span { background: var(--accent-fill); }
.feat__switch input:checked + span::after { transform: translateX(20px); }
.feat__switch input:focus-visible + span { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.feat__state { font-size: .75rem; font-weight: 600; color: var(--muted); }
.feat.is-on .feat__state { color: var(--accent); }
.feat.is-busy { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .feat, .feat__ico, .feat__switch span, .feat__switch span::after { transition: none; } }

/* ===== Support ===== */
.sup-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 1.4rem; align-items: center; padding: 1.6rem 1.7rem; margin: 0 0 1.4rem; border-radius: 20px; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.sup-hero h2 { margin: 0 0 .5rem; font: 500 1.6rem/1.2 var(--serif); }
.sup-hero p { margin: 0 0 .5rem; color: var(--muted); }
.sup-hero__time { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; }
.sup-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #3F8F61; box-shadow: 0 0 0 4px color-mix(in srgb, #3F8F61 22%, transparent); }
.sup-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.sup-start__card { display: grid; gap: .25rem; align-content: start; padding: 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.sup-start__card:hover, .sup-start__card.is-on { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--accent) 70%, transparent); }
.sup-start__ico { font-size: 1.5rem; line-height: 1; margin-bottom: .2rem; }
.sup-start__card small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
@media (max-width: 960px) { .sup-hero { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sup-start { grid-template-columns: 1fr; } .sup-start__card { grid-template-columns: auto 1fr; column-gap: .7rem; } .sup-start__ico { grid-row: span 2; align-self: center; } }
.sup-new { scroll-margin-top: 80px; }
.sup-wishinfo { display: flex; gap: .55rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: .9rem; margin: 0 0 1rem; }
.sup-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--muted); margin: .4rem 0 0; }
.sup-kat { display: inline-flex; gap: .3rem; align-items: center; }
.sup-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.sup-pill--open { background: #FFF4D6; color: #7A5600; border-color: #F1D78E; }
.sup-pill--work { background: #E7F0FF; color: #1F4E99; border-color: #BCD2F5; }
.sup-pill--answered { background: #E4F4EA; color: #24663F; border-color: #B5DEC4; }
.sup-pill--done { background: var(--bg); color: var(--muted); }
.sup-pill--feat { background: var(--accent-soft); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.sup-pill--f-fertig { background: #E4F4EA; color: #24663F; border-color: #B5DEC4; }
.sup-pill--f-nicht_moeglich { background: #F7E9E8; color: #8A2E28; border-color: #E8C3C0; }
/* Fortschritt eines Wunsches */
.fstep { list-style: none; margin: .9rem 0 .4rem; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; counter-reset: s; }
.fstep__s { position: relative; display: grid; justify-items: center; gap: .4rem; text-align: center; font-size: .82rem; color: var(--muted); }
.fstep__s::before { content: ""; position: absolute; top: 13px; right: 50%; left: -50%; height: 3px; background: var(--line); border-radius: 3px; }
.fstep__s:first-child::before { display: none; }
.fstep__s.is-done::before, .fstep__s.is-now::before { background: var(--accent-fill); }
.fstep__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); font-size: .85rem; font-weight: 800; color: #fff; line-height: 1; }
.fstep__s.is-done .fstep__dot { background: var(--accent-fill); border-color: var(--accent-fill); }
.fstep__s.is-now .fstep__dot { border-color: var(--accent-fill); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); }
.fstep__s.is-now:not(.is-end) .fstep__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-fill); animation: fpulse 1.8s ease-in-out infinite; }
.fstep--done .fstep__s.is-now .fstep__dot { background: #3F8F61; border-color: #3F8F61; box-shadow: 0 0 0 5px color-mix(in srgb, #3F8F61 22%, transparent); }
.fstep--done .fstep__s.is-now .fstep__dot::after { display: none; }
.fstep__s.is-end .fstep__dot { background: var(--surface); font-size: .95rem; }
.fstep__s.is-now .fstep__l, .fstep__s.is-done .fstep__l { color: var(--ink); font-weight: 600; }
@keyframes fpulse { 50% { transform: scale(.55); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .fstep__s.is-now .fstep__dot::after { animation: none; } .sup-start__card { transition: none; } }
.sup-note { margin: .9rem 0 0; padding: .8rem 1rem; border-radius: 12px; background: var(--bg); border-left: 3px solid var(--accent-fill); }
.sup-note__who { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.sup-note p { margin: 0; }
.sup-wishhead { margin-bottom: 1rem; }
.sup-wishhead__hint { margin: .6rem 0 0; text-align: center; }
/* Wunsch-Karten */
.wish-list, .tk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.wish { padding: 1.1rem 1.25rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.wish.is-unread { border-color: var(--accent); box-shadow: 0 8px 22px -16px color-mix(in srgb, var(--accent) 70%, transparent); }
.wish__head { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; flex-wrap: wrap; }
.wish__title { font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none; }
.wish__title:hover { text-decoration: underline; text-underline-offset: .2em; }
.wish__foot { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin: .9rem 0 0; font-size: .85rem; color: var(--muted); }
.wish__foot a { font-weight: 500; }
/* Ticket-Karten */
.tk { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .9rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.tk:hover { border-color: var(--accent); transform: translateX(2px); }
.tk.is-unread { border-color: var(--accent); }
.tk.is-closed { opacity: .72; }
.tk__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bg); font-size: 1.2rem; }
.tk__main { display: grid; gap: .15rem; min-width: 0; }
.tk__main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk__main small { color: var(--muted); }
.tk__meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tk__new { padding: .15rem .55rem; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font-size: .75rem; font-weight: 700; }
.sup-empty { text-align: center; padding: 2.2rem 1.5rem; }
.sup-empty__ico { display: block; font-size: 2.2rem; margin-bottom: .4rem; }
.sup-empty h2 { margin: 0 0 .3rem; }
.sup-empty p { color: var(--muted); margin: 0 auto 1rem; max-width: 30rem; }
@media (max-width: 560px) { .tk { grid-template-columns: auto 1fr; } .tk__meta { grid-column: 2; justify-content: flex-start; } .fstep__l { font-size: .74rem; } }

/* ===== Support-Chat mit KI-Assistent ===== */
.ai { position: fixed; z-index: 61; right: calc(1.25rem + env(safe-area-inset-right, 0px)); bottom: calc(1.25rem + 56px + .8rem + env(safe-area-inset-bottom, 0px)); width: min(390px, calc(100vw - 2.5rem)); height: min(620px, calc(100dvh - 7rem)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -18px rgb(0 0 0 / .35); overflow: hidden; }
.ai[hidden] { display: none; }
.ai__head { display: flex; align-items: center; gap: .6rem; padding: .8rem .8rem .8rem 1rem; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.ai__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 1.1rem; flex: none; }
.ai__who { flex: 1; min-width: 0; }
.ai__who h2 { margin: 0; font: 600 1rem/1.2 var(--sans); }
.ai__who p { margin: .1rem 0 0; font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.ai__badge { display: inline-block; padding: 0 .4rem; border-radius: 6px; background: var(--ink); color: var(--on-ink); font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.ai__icon { display: grid; place-items: center; min-width: 36px; min-height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.ai__icon:hover { background: var(--bg); }
.ai__icon:focus-visible, .ai__chip:focus-visible, .ai__rb:focus-visible, .ai__send:focus-visible, .ai__link:focus-visible, .ai__chatbtn:focus-visible, .ai__log:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 2px; }
.ai__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ai__view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding: .9rem 1rem; gap: .6rem; }
.ai__view[hidden] { display: none; }
.ai__log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.ai__msg { display: grid; gap: .25rem; max-width: 88%; }
.ai__msg--me { align-self: flex-end; }
.ai__msg--bot { align-self: flex-start; }
.ai__label { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ai__bubble { padding: .6rem .85rem; border-radius: 16px; line-height: 1.5; font-size: .93rem; overflow-wrap: anywhere; }
.ai__bubble p { margin: 0 0 .45rem; } .ai__bubble p:last-child { margin: 0; }
.ai__bubble ul, .ai__bubble ol { margin: .2rem 0 .45rem; padding-left: 1.2rem; }
.ai__msg--me .ai__bubble { background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 6px; }
.ai__msg--me .ai__bubble a { color: inherit; }
.ai__msg--bot .ai__bubble { background: var(--bg); color: var(--ink); border-bottom-left-radius: 6px; }
.ai__rate { display: flex; gap: .25rem; }
.ai__rb { min-width: 32px; min-height: 28px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); cursor: pointer; font-size: .85rem; }
.ai__rb[aria-pressed="true"] { border-color: var(--accent-fill); background: var(--accent-soft); }
.ai__ticket { justify-self: start; }
.ai__typing { margin: 0; display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; }
.ai__typing span { display: inline-flex; gap: 3px; }
.ai__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: aiDot 1.2s infinite ease-in-out; }
.ai__typing i:nth-child(2) { animation-delay: .15s; } .ai__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai__suggest { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.ai__suggest[hidden] { display: none; }
.ai__chip { padding: .45rem .75rem; min-height: 32px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--ink); font: 500 .84rem var(--sans); cursor: pointer; text-align: left; }
.ai__chip:hover { border-color: var(--accent); }
.ai__form { border-top: 1px solid var(--line); padding: .6rem .8rem .5rem; display: grid; gap: .35rem; background: var(--surface); }
.ai__note { margin: 0; padding: .55rem .7rem; border-radius: 10px; background: var(--accent-soft); font-size: .8rem; line-height: 1.4; }
.ai__inputrow { display: flex; gap: .45rem; align-items: flex-end; }
.ai__inputrow textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: .6rem .8rem; border: 1px solid var(--line-strong); border-radius: 14px; font: inherit; font-size: .95rem; background: var(--surface); color: var(--ink); }
.ai__inputrow textarea:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 1px; border-color: transparent; }
.ai__send { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); cursor: pointer; }
.ai__form[aria-busy="true"] .ai__send { opacity: .5; }
.ai__foot { margin: 0; display: flex; gap: .45rem; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); }
.ai__foot a { color: var(--muted); }
.ai__link { border: 0; background: none; padding: .1rem; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.ai__sub { margin: 0; font: 600 1rem var(--sans); }
.ai__muted { color: var(--muted); font-size: .85rem; margin: 0; }
.ai__chats { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.ai__chats li { display: flex; gap: .3rem; align-items: center; }
.ai__chatbtn { flex: 1; display: grid; gap: .1rem; text-align: left; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 .88rem var(--sans); cursor: pointer; }
.ai__chatbtn small { color: var(--muted); font-weight: 400; }
.ai__handoff .field { margin: 0; }
.ai__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.ai__after { margin: .3rem 0 0; }
.support-fab[aria-expanded="true"] { background: var(--accent-fill); }
@media (max-width: 560px) {
  .ai { inset: 0; width: auto; height: 100dvh; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  html.ai-open .support-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ai__typing i { animation: none; opacity: .7; } }
.sup-hero__ai { margin: .8rem 0 0 !important; display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; }
/* Sitzplan: Platz für den Chat-Knopf unten rechts */
.seat-foot { padding-right: calc(56px + 2.2rem) !important; }

/* ===== liebly Partner: Wedding Planner ===== */
.planner-bar { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 1.2rem; padding: .7rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--accent-fill); border-radius: 14px; background: var(--accent-soft); font-size: .92rem; }
.planner-notice { border-left: 4px solid var(--accent-fill); }
.planner-card { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin: 0 0 1rem; }
.planner-card__head { margin-bottom: .6rem; }
.planner-perms { border: 0; padding: 0; margin: .4rem 0 .6rem; display: grid; gap: .35rem; }
.planner-perms legend { font-weight: 600; margin-bottom: .3rem; }
.badge--ok { background: #E6F2EA; color: #1E5136; border-color: #BFDCCB; }
.planner-invite { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
