/* TM EVENT – Hochzeits-Portal (Brautpaar-Seite und Verwaltung) */
:root {
  --white: #ffffff;
  --mist: #f4f1f8;
  --line: #e2dcea;
  --ink: #1c1526;
  --ink-soft: #5e566b;
  --violet: #3a1a63;
  --night: #1b0f2c;
  --pink: #ff4f86;
  --amber: #ffb23f;
  --blue: #6f7dff;
  --ok: #1f9d63;
  --ok-bg: #e7f7ef;
  --err: #d6245f;
  --err-bg: #fff0f4;
  --display: "Anybody", "Arial Black", sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--body); background: var(--mist); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .95; }
.kicker { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
.muted { color: var(--ink-soft); }

/* ---------- Kopfleiste ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.bar img { height: 38px; display: block; }
.bar-right { display: flex; align-items: center; gap: .8rem; font-size: .88rem; }
.save { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-soft); }
.save::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.save.busy::before { background: var(--amber); animation: blink 1s infinite; }
.save.err { color: var(--err); }
.save.err::before { background: var(--err); }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .8rem 1.4rem; font-weight: 700; font-size: .95rem; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; background: var(--pink); color: #fff; transition: transform .2s, box-shadow .2s, opacity .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(255,79,134,.7); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-soft { background: var(--mist); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-soft:hover { box-shadow: inset 0 0 0 1.5px var(--pink); }
.btn-dark { background: var(--ink); }
.btn-small { padding: .5rem 1rem; font-size: .85rem; }
.btn-danger { background: transparent; color: var(--err); box-shadow: inset 0 0 0 1.5px #f3c3d2; }
.btn-danger:hover { box-shadow: inset 0 0 0 1.5px var(--err); }

/* ---------- Kopf der Paar-Seite ---------- */
.hello { color: #fff; padding: clamp(40px, 7vw, 80px) 0 clamp(90px, 10vw, 120px); background:
  radial-gradient(50% 80% at 0% 100%, rgba(255,178,63,.65), transparent 70%),
  radial-gradient(45% 70% at 100% 0%, rgba(111,125,255,.5), transparent 70%),
  linear-gradient(135deg, #3a1a63, #8a2a78 60%, #e0457e); }
.hello .kicker { color: #ffd27a; }
.hello h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); margin: .6rem 0 1rem; overflow-wrap: anywhere; }
.hello h1 .amp { color: #ffd27a; }
.hello-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; font-size: 1.05rem; }
.countdown { display: inline-flex; align-items: baseline; gap: .4rem; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); border-radius: 999px; padding: .35rem 1rem; font-weight: 700; }
.countdown b { font-family: var(--display); font-size: 1.3rem; }

.lift { margin-top: clamp(-80px, -8vw, -60px); position: relative; }
.card { background: #fff; border-radius: 20px; padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(27,15,44,.35); }
.card + .card { margin-top: 1.4rem; }
.card h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; margin-bottom: .4rem; }

.note { display: flex; gap: 1rem; align-items: flex-start; background: var(--mist); border-radius: 14px; padding: 1.1rem 1.3rem; margin-top: 1.2rem; }
.note::before { content: "“"; font: 900 2.6rem/1 var(--display); color: var(--pink); margin-top: -.2rem; }
.note p { white-space: pre-line; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem 1.6rem; margin-top: 1.2rem; }
.fact > span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.fact b { font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.tag { background: var(--mist); border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; font-weight: 600; }

.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; counter-reset: h; }
.howto li { list-style: none; counter-increment: h; background: var(--mist); border-radius: 14px; padding: 1rem 1.1rem; }
.howto li::before { content: counter(h); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; margin-bottom: .5rem; }
.howto b { display: block; }
.howto span { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Schritte ---------- */
.planner { display: grid; grid-template-columns: 260px 1fr; gap: 1.6rem; margin: 1.6rem 0 4rem; align-items: start; }
.planner > *, .fields > *, .row > * { min-width: 0; } /* verhindert, dass breite Inhalte das Layout sprengen */
.steps { position: sticky; top: 84px; background: #fff; border-radius: 20px; padding: .8rem; box-shadow: 0 1px 0 var(--line); }
.progress { padding: .6rem .7rem 1rem; }
.progress small { color: var(--ink-soft); font-weight: 600; }
.progress-bar { height: 6px; border-radius: 3px; background: var(--mist); margin-top: .5rem; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), var(--pink)); border-radius: 3px; transition: width .4s ease; }
.steps ol { list-style: none; display: grid; gap: .15rem; }
.step-btn { width: 100%; display: flex; align-items: center; gap: .7rem; background: none; border: 0; text-align: left; padding: .65rem .7rem; border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.step-btn:hover { background: var(--mist); color: var(--ink); }
.step-btn[aria-current="step"] { background: var(--mist); color: var(--ink); }
.step-btn .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--mist); color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line); }
.step-btn[aria-current="step"] .dot { background: var(--pink); color: #fff; box-shadow: none; }
.step-btn.done .dot { background: var(--ok); color: #fff; box-shadow: none; }

.panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.panel .intro { color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 60ch; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field > label, .field > .lbl { font-weight: 700; font-size: .93rem; }
.field .req { color: var(--pink); }
.hint { font-size: .85rem; color: var(--ink-soft); }
.in { width: 100%; background: var(--mist); border: 1.5px solid transparent; border-radius: 10px; padding: .75rem .9rem; font-size: 1rem; transition: border-color .2s, background .2s; }
.in:focus { outline: none; border-color: var(--pink); background: #fff; }
textarea.in { resize: vertical; min-height: 64px; }
.opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-block; padding: .5rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: .92rem; transition: all .15s; background: #fff; }
.opt:hover span { box-shadow: inset 0 0 0 1.5px var(--pink); }
.opt input:checked + span { background: var(--pink); color: #fff; box-shadow: none; }
.opt input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.opts.no .opt input:checked + span { background: var(--ink); }

.rows { display: grid; gap: .5rem; }
.row { display: grid; gap: .5rem; align-items: center; }
.row .in { padding: .6rem .8rem; }
.row-del { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.row-del:hover { background: var(--err-bg); color: var(--err); }
.row-head { display: grid; gap: .5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.add { justify-self: start; background: none; border: 0; color: var(--pink); font-weight: 700; cursor: pointer; padding: .3rem 0; }
.add:hover { text-decoration: underline; }

.nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* ---------- Vertrag ---------- */
.contract { max-height: 420px; overflow: auto; background: var(--mist); border-radius: 14px; padding: 1.3rem 1.5rem; margin: 1.2rem 0; }
.contract h3 { font-size: 1rem; margin: 1.1rem 0 .3rem; }
.contract h3:first-child { margin-top: 0; }
.contract p { white-space: pre-line; font-size: .95rem; color: var(--ink); }
.check { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; margin-top: .8rem; }
.check input { width: 20px; height: 20px; flex: none; margin-top: .15rem; accent-color: var(--pink); }
.alert { border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; }
.alert.ok { background: var(--ok-bg); color: #145c3b; }
.alert.err { background: var(--err-bg); color: #8d1a41; }
.alert.info { background: #fff6e0; color: #6b5200; }
.alert ul { margin: .4rem 0 0 1.2rem; }
.pay { display: grid; gap: .2rem; margin-top: .6rem; }

/* ---------- Zusammenfassung ---------- */
.summary { display: grid; gap: 1.4rem; }
.sum-sec h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; margin-bottom: .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--ink); }
.sum-sec dl { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: .45rem 1.2rem; }
.sum-sec dt { font-weight: 600; color: var(--ink-soft); font-size: .92rem; }
.sum-sec dd { white-space: pre-line; font-size: .95rem; }
.sum-sec dd.leer { color: #b7aec4; }

/* ---------- Hinweis-Seiten ---------- */
.center { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.center .card { max-width: 480px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--pink); animation: spin 1s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot { text-align: center; color: var(--ink-soft); font-size: .85rem; padding: 2rem 0 3rem; }
.foot a { text-decoration: none; margin: 0 .6rem; }
.foot a:hover { color: var(--pink); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; opacity: 0; transition: opacity .3s, transform .3s; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Verwaltung ---------- */
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin: 2.2rem 0 1.4rem; }
.admin-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.list { display: grid; gap: .8rem; }
.item { display: grid; grid-template-columns: 110px 1fr auto; gap: 1rem 1.4rem; align-items: center; background: #fff; border-radius: 16px; padding: 1rem 1.3rem; box-shadow: 0 1px 0 var(--line); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.item:hover { box-shadow: 0 1px 0 var(--line), 0 16px 30px -20px rgba(27,15,44,.35); transform: translateY(-1px); }
.item.past { opacity: .6; }
.item-date b { display: block; font-family: var(--display); font-size: 1.4rem; line-height: 1; }
.item-date span { font-size: .8rem; color: var(--ink-soft); }
.item h3 { font-size: 1.1rem; }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.badge { font-size: .76rem; font-weight: 700; border-radius: 999px; padding: .25rem .7rem; background: var(--mist); color: var(--ink-soft); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: #145c3b; }
.badge.warn { background: #fff6e0; color: #6b5200; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.linkbox { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; background: var(--mist); border-radius: 14px; padding: .8rem; }
.linkbox input { flex: 1 1 260px; background: #fff; border: 0; border-radius: 8px; padding: .6rem .8rem; font-size: .9rem; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1.2rem 0; }
.tabs button { border: 0; background: #fff; border-radius: 999px; padding: .55rem 1.1rem; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.meta { font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }

@media (max-width: 900px) {
  .planner { grid-template-columns: 1fr; }
  .steps { position: static; padding: .6rem; }
  .steps ol { display: flex; overflow-x: auto; gap: .3rem; scrollbar-width: none; }
  .steps ol::-webkit-scrollbar { display: none; }
  .step-btn { white-space: nowrap; }
  .howto { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  /* Tabellen am Handy: Felder einer Zeile untereinander, Löschen-Knopf oben rechts */
  .row-head { display: none !important; }
  .row { grid-template-columns: 1fr 36px !important; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
  .row > .in { grid-column: 1; }
  .row > .row-del { grid-column: 2; grid-row: 1; }
  .sum-sec dl { grid-template-columns: 1fr; gap: .1rem; }
  .sum-sec dd { margin-bottom: .6rem; }
  .item { grid-template-columns: 1fr; }
  .badges { justify-content: flex-start; }
  .nav .btn { padding: .75rem 1.1rem; }
}

/* ---------- Rechnungen ---------- */
.badge.err { background: var(--err-bg); color: #8d1a41; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat { background: #fff; border-radius: 16px; padding: 1rem 1.3rem; box-shadow: 0 1px 0 var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-soft); font-size: .88rem; }
.stat.err b { color: var(--err); }
.r-item { grid-template-columns: 150px 1fr auto auto; }
.betrag { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pos-edit { display: grid; gap: .6rem; }
.pos-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 100px 120px 110px 36px; gap: .5rem; align-items: start; }
.pos-row > * { min-width: 0; }
.pos-row .in { padding: .6rem .7rem; }
.pos-row textarea.in { min-height: 44px; }
.pos-head { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.pos-row .gesamt { padding: .65rem 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pos-head span:nth-child(5) { text-align: right; }
.summe-box { display: flex; justify-content: flex-end; gap: 1.4rem; align-items: baseline; margin-top: 1rem; padding-top: .8rem; border-top: 2px solid var(--ink); font-size: 1.15rem; }
.summe-box b { font-family: var(--display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
table.mini { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .93rem; }
table.mini th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding: .4rem .6rem; border-bottom: 2px solid var(--ink); }
table.mini td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.mini th:not(:first-child), table.mini td:not(:first-child) { text-align: right; white-space: nowrap; }
select.in { cursor: pointer; }
@media (max-width: 760px) {
  .r-item { grid-template-columns: 1fr auto; }
  .r-item .item-date { grid-column: 1 / -1; }
  .pos-head { display: none; }
  .pos-row { grid-template-columns: 1fr 1fr 1fr 36px; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
  .pos-row textarea { grid-column: 1 / 4; grid-row: 1; }
  .pos-row .row-del { grid-column: 4; grid-row: 1; }
  .pos-row .gesamt { grid-column: 1 / -1; }
}

/* ---------- Verwaltung: Kopfleiste mit Menü ---------- */
.verwaltung .bar .wrap.bar-zeile { height: auto; min-height: 64px; flex-wrap: wrap; gap: .4rem 1.2rem; padding: .5rem 0; }
.bar-logo img { height: 38px; display: block; }
.menue { display: flex; gap: .1rem; flex: 1; justify-content: center; }
.menue-punkt { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .72rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--ink-soft); white-space: nowrap; transition: background .2s, color .2s; }
.menue-punkt:hover { background: var(--mist); color: var(--ink); }
.menue-punkt[aria-current="page"] { background: var(--ink); color: #fff; }
.menue-punkt .zahl { min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: var(--pink); color: #fff; font-size: .72rem; display: inline-grid; place-items: center; }
.konto { display: flex; align-items: center; gap: .6rem; font-size: .88rem; }
.konto-name { font-weight: 700; text-decoration: none; color: var(--ink-soft); }
.konto-name:hover { color: var(--pink); }
.konto { position: relative; }
.konto-knopf { width: 38px; height: 38px; border: 0; cursor: pointer; font-size: .85rem; letter-spacing: .02em; }
.konto-knopf:hover { filter: brightness(1.08); }
.konto-menue { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 30; min-width: 250px; display: grid; gap: .35rem; background: #fff; border-radius: 14px; padding: 1rem;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(27,15,44,.4); text-align: left; }
.konto-menue[hidden] { display: none; }
.konto-menue a { font-weight: 600; margin: .3rem 0; }
.konto-menue .btn { justify-self: start; }
@media (max-width: 980px) {
  .menue { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
  .menue::-webkit-scrollbar { display: none; }
}

/* ---------- Verwaltung: Startseite ---------- */
.stat-link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.stat-link:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--line), 0 14px 28px -18px rgba(27,15,44,.4); }
.stat.hell { background: linear-gradient(135deg, #3a1a63, #8a2a78 60%, #e0457e); color: #fff; }
.stat.hell span { color: rgba(255,255,255,.85); }
.start-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1.4rem; align-items: start; }
.start-raster .card + .card { margin-top: 0; }
.card-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .8rem; }
.card-kopf h2 { font-size: 1.2rem; }
.card-kopf a { font-size: .88rem; font-weight: 700; color: var(--pink); text-decoration: none; }
.card h2:not(.display) { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
.zeilen { display: grid; }
.zeile { display: grid; grid-template-columns: 96px 1fr auto; gap: .9rem; align-items: center; padding: .7rem .4rem; border-top: 1px solid var(--line); text-decoration: none; color: inherit; border-radius: 10px; }
.zeile:first-child { border-top: 0; }
.zeile:hover { background: var(--mist); }
.zeile b { display: block; }
.zeile .muted { font-size: .88rem; }
.zeile .item-date b { font-size: 1.15rem; }
.hinweise { list-style: none; display: grid; gap: .5rem; }
.hinweise li { border-radius: 12px; padding: .7rem 1rem; background: var(--mist); }
.hinweise li.warn { background: #fff6e0; }
.hinweise a { text-decoration: none; font-weight: 600; }
.hinweise a:hover { text-decoration: underline; }
.protokoll { list-style: none; display: grid; }
.protokoll li { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.protokoll li:first-child { border-top: 0; }
.protokoll a { color: inherit; }

/* ---------- Verwaltung: Listen, Kunden, Formulare ---------- */
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; background: linear-gradient(135deg, #6f7dff, #ff4f86); }
.k-item { grid-template-columns: 46px 1fr auto; }
.item:not(a) { cursor: default; }
h3.abschnitt { grid-column: 1 / -1; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: 1rem; }
.fields > h3.abschnitt:first-of-type { border-top: 0; }
.unterbox { background: var(--mist); border-radius: 14px; padding: 1rem; }
.unterbox .in { background: #fff; }
.alert a { font-weight: 700; }
@media (max-width: 640px) {
  .start-raster { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .stat { padding: .8rem 1rem; }
  .stat b { font-size: 1.25rem; }
  .zeile { grid-template-columns: 70px 1fr; }
  .zeile > .badge, .zeile > .betrag { grid-column: 2; justify-self: start; }
  .protokoll li { grid-template-columns: 1fr; gap: .1rem; }
  .k-item { grid-template-columns: 46px 1fr; }
  .k-item .badges { grid-column: 1 / -1; }
  .konto-name { display: none; }
}

/* ---------- Verwaltung: Angebote ---------- */
.o-row { grid-template-columns: minmax(0, 1fr) 70px 90px 110px 100px 84px 36px; }
.o-row.ist-optional .in, .o-row.ist-optional .gesamt { opacity: .55; }
.o-opt { display: flex; align-items: center; gap: .35rem; font-size: .85rem; padding-top: .7rem; cursor: pointer; }
.o-opt input { width: 18px; height: 18px; accent-color: var(--pink); }
@media (max-width: 760px) {
  .o-row { grid-template-columns: 1fr 1fr 1fr 36px; }
  .o-row .o-opt { grid-column: 1 / 3; padding-top: 0; }
  .o-row .gesamt { grid-column: 3 / 5; }
}

/* ---------- Verwaltung: Kalender ---------- */
.kalender { padding: 0; overflow: hidden; }
.kalender .kopfzeile, .kalender .raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kalender .kopfzeile span { padding: .7rem .6rem; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.kal-tag { min-height: 118px; padding: .45rem .45rem .6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .25rem; cursor: pointer; transition: background .15s; }
.kal-tag:nth-child(7n) { border-right: 0; }
.kal-tag:hover { background: #faf8fc; }
.kal-tag.wochenende { background: #fcfbfd; }
.kal-tag.fremd { background: #f7f5f9; }
.kal-tag.fremd .tag-nr, .kal-tag.vorbei .tag-nr { color: #b7aec4; }
.tag-nr { font-weight: 700; font-size: .88rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; }
.kal-tag.heute .tag-nr { background: var(--pink); color: #fff; }
.chip { display: block; padding: .2rem .45rem; border-radius: 6px; font-size: .76rem; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #fff; background: var(--c, #7a7285); border: 1.5px solid var(--c, #7a7285); }
.chip:hover { filter: brightness(1.08); }
.art-hochzeit { --c: #e0457e; }
.art-geburtstag { --c: #e7922a; }
.art-firmenfeier { --c: #4b5fd6; }
.art-oeffentlich { --c: #7b3fb4; }
.art-vermietung { --c: #16877a; }
.art-sonstiges { --c: #6b6478; }
.chip.st-option { background: #fff; color: var(--c, #6b6478); border-style: dashed; }
.chip.st-abgesagt { text-decoration: line-through; opacity: .5; }
.chip-anfrage { background: #fff; color: var(--err); border: 1.5px dotted var(--err); }
.mehr { font-size: .74rem; color: var(--ink-soft); font-weight: 600; padding-left: .2rem; }
.legende { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0 2rem; }
.legende .chip { display: inline-block; }
.abo-link { margin-left: auto; font-weight: 700; color: var(--pink); text-decoration: none; font-size: .9rem; }
.tagesbox { margin-top: 1.4rem; }
.agenda { display: none; }
.agenda-tag { background: #fff; border-radius: 14px; padding: .8rem 1rem; margin-bottom: .6rem; box-shadow: 0 1px 0 var(--line); }
.agenda-tag.heute { box-shadow: inset 0 0 0 2px var(--pink); }
.agenda-tag h3 { font-size: .95rem; margin-bottom: .4rem; }
.agenda-chips { display: grid; gap: .3rem; }
.agenda-chips .chip { font-size: .88rem; padding: .4rem .6rem; }
.abo-hilfe { margin: 1rem 0 0 1.2rem; display: grid; gap: .35rem; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 1500px) and (min-width: 1181px) {
  .menue-punkt { padding: .45rem .55rem; font-size: .87rem; }
}
@media (max-width: 1180px) {
  .menue { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
  .menue::-webkit-scrollbar { display: none; }
}
@media (max-width: 760px) {
  .kalender { display: none; }
  .agenda { display: block; }
  .abo-link { margin-left: 0; }
}

/* ---------- Drucken / als PDF speichern ---------- */
/* ---------- Etappe 3: Team & Aufgaben ---------- */
.aufgaben { display: grid; }
.aufgabe { display: grid; grid-template-columns: 1fr auto; gap: .15rem .6rem; align-items: start; padding: .7rem .4rem; border-top: 1px solid var(--line); }
.aufgabe:first-child { border-top: 0; }
.aufgabe-haken { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.aufgabe-haken input { width: 20px; height: 20px; flex: none; margin-top: .1rem; accent-color: var(--ok); cursor: pointer; }
.aufgabe-text { font-weight: 600; }
.aufgabe.erledigt .aufgabe-text { text-decoration: line-through; color: var(--ink-soft); font-weight: 400; }
.aufgabe-info { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .8rem; margin-left: calc(20px + .7rem); font-size: .85rem; color: var(--ink-soft); }
.aufgabe-info:empty { display: none; }
.aufgabe-info a { color: inherit; font-weight: 600; }
.aufgabe-knoepfe { grid-column: 2; grid-row: 1 / span 2; display: flex; }
.aufgabe-knoepfe .row-del { width: 32px; height: 32px; font-size: 1.1rem; }
.aufgabe-form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .8rem; }
.aufgabe-form .wide, .aufgabe-form .actions, .aufgabe-form [role="alert"] { grid-column: 1 / -1; }
.aufgabe-neu { display: grid; grid-template-columns: 1fr 160px 210px auto; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.aufgabe-neu .in { padding: .6rem .8rem; }
.fortschritt { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--ink-soft); }
.fortschritt span { white-space: nowrap; }
.fortschritt .progress-bar { width: clamp(60px, 18vw, 140px); margin: 0; }
.fortschritt .progress-bar i { background: var(--ok); }
.team-liste { display: grid; gap: .8rem; }
.team-person { display: grid; grid-template-columns: 1fr 36px; gap: .5rem; background: var(--mist); border-radius: 14px; padding: .9rem; }
.team-person .in { background: #fff; padding: .6rem .8rem; }
.team-felder { display: grid; grid-template-columns: minmax(170px, 1.4fr) minmax(150px, 1.2fr) 120px 120px 120px; gap: .6rem .8rem; align-items: start; }
.team-felder .field > .in + .in { margin-top: .4rem; }
.team-felder .team-notiz { grid-column: 1 / -1; }
.team-zeile { grid-template-columns: 46px 1fr; }
.team-zeile .muted { display: block; }
.team-zeile.ich { background: #faf6ff; }
.team-klein { display: block; font-size: .85rem; }

/* ---------- Etappe 3: Finanzen ---------- */
.diagramm { position: relative; width: 100%; min-height: 220px; }
.diagramm-lage { position: relative; }
.diagramm svg { display: block; overflow: visible; }
.d-gitter { stroke: #eee9f3; stroke-width: 1; }
.d-null { stroke: #b9b0c6; stroke-width: 1; }
.d-achse { fill: var(--ink-soft); font-family: var(--body); font-size: 12px; font-variant-numeric: tabular-nums; }
.d-markierung { fill: var(--mist); }
.d-hit { fill: transparent; cursor: pointer; outline: none; }
.diagramm-tip { position: absolute; top: 0; z-index: 2; min-width: 200px; background: #fff; border-radius: 12px; padding: .7rem .9rem; font-size: .88rem; pointer-events: none;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -12px rgba(27,15,44,.35); }
.diagramm-tip > b { display: block; margin-bottom: .35rem; }
.tip-zeile { display: grid; grid-template-columns: 10px 1fr auto; gap: .55rem; align-items: center; }
.tip-zeile i { width: 10px; height: 10px; border-radius: 3px; }
.tip-zeile b { font-variant-numeric: tabular-nums; }
.tip-zeile.summe { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }
.diagramm-leer { position: absolute; inset: 0 0 26px 70px; display: grid; place-items: center; color: var(--ink-soft); font-weight: 600; pointer-events: none; }
.legende-d { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: .88rem; font-weight: 600; margin-bottom: .8rem; }
.legende-d i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .45rem; vertical-align: -1px; }
.kat-liste { display: grid; gap: .85rem; }
.kat-text { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; margin-bottom: .3rem; }
.kat-text b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kat-spur { height: 8px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.kat-spur i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.grenze + .grenze { margin-top: 1rem; }
.grenze .kat-spur i { background: var(--violet); }
.grenze.warn .kat-spur i { background: var(--amber); }
.grenze.err .kat-spur i { background: var(--err); }
.grenze-text { display: block; margin-top: .25rem; font-size: .8rem; font-weight: 700; color: #6b5200; }
.grenze.err .grenze-text { color: var(--err); }
.f-item { display: grid; grid-template-columns: 96px 1fr auto 130px; gap: .6rem 1.2rem; align-items: center; background: #fff; border-radius: 16px; padding: .9rem 1.3rem;
  box-shadow: 0 1px 0 var(--line); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.f-item:hover { box-shadow: 0 1px 0 var(--line), 0 16px 30px -20px rgba(27,15,44,.35); transform: translateY(-1px); }
.f-item b { display: block; }
.f-item .muted { font-size: .88rem; }
.f-item .item-date b { font-size: 1.15rem; }
h2.unterzeile { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; margin: 0 0 .2rem; }
.tabs.filter .in { padding: .55rem .8rem; }
.tabs .in { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.tabs .in:focus { box-shadow: none; }
.diagramm-tip.fest { position: static; margin-top: .6rem; min-width: 0; box-shadow: 0 0 0 1px var(--line); }
.export-liste { margin: 0 0 1rem 1.2rem; display: grid; gap: .35rem; }
.beleg { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.datei-in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.beleg:focus-within label.btn { outline: 2px solid var(--pink); outline-offset: 2px; }
.beleg-info { font-size: .92rem; }
.ergebnis { background: var(--mist); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.6rem; }
.minus { color: var(--err); }

@media (max-width: 900px) {
  .team-felder { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .aufgabe-neu { grid-template-columns: 1fr 1fr; }
  .aufgabe-neu > .in:first-child, .aufgabe-neu > .btn { grid-column: 1 / -1; }
  .f-item { grid-template-columns: 70px 1fr auto; padding: .8rem 1rem; }
  .f-item .badges { grid-column: 2; justify-content: flex-start; }
  .f-item .betrag { grid-column: 3; grid-row: 1; }
  .diagramm-leer { inset: 0 0 26px 52px; }
}
@media (max-width: 640px) {
  .stats.drei .stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .aufgabe-form { grid-template-columns: 1fr; }
  .team-person { padding: .7rem; }
}

/* ---------- Etappe 5: Versand, Kundenseite, Portal-Rechnungen ---------- */
.versand-verlauf { list-style: none; margin: .9rem 0 0; display: grid; gap: .3rem; font-size: .88rem; color: var(--ink-soft); }
.versand-verlauf li::before { content: "•"; margin-right: .5rem; color: var(--pink); }
.versand-form { margin-top: 1.2rem; }
.versand-form textarea.in { font-size: .95rem; line-height: 1.5; }
.rechnungen-liste { list-style: none; display: grid; gap: .35rem; margin-top: .4rem; }
.rechnungen-liste a { font-weight: 700; }
.ok-text { color: var(--ok); }

/* ---------- Etappe 5: Auswertung der Anfragen ---------- */
.ausw { display: grid; gap: .2rem; }
.ausw-zeile { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(80px, 1.6fr) 70px 70px 70px 110px; gap: .8rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--line); }
.ausw-kopf { border-top: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.ausw-kopf span:nth-child(n+3) { text-align: right; }
.ausw-spur { height: 10px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.ausw-spur i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.ausw-zahl { text-align: right; font-variant-numeric: tabular-nums; }
.saeulen { display: grid; grid-template-columns: repeat(12, 1fr); gap: .5rem; height: 200px; align-items: end; padding-top: 1.4rem; }
.saeule { height: 100%; display: grid; grid-template-rows: auto 1fr auto; align-items: end; justify-items: center; }
.saeule i { width: min(26px, 70%); border-radius: 4px 4px 0 0; align-self: end; }
.saeule-wert { font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.saeule-monat { font-size: .75rem; color: var(--ink-soft); margin-top: .3rem; border-top: 1px solid #b9b0c6; width: 100%; text-align: center; padding-top: .3rem; }
@media (max-width: 760px) {
  .ausw-zeile { grid-template-columns: 1fr 44px 44px 50px; }
  .ausw-spur, .ausw-kopf span:nth-child(2), .ausw-zeile > :last-child { display: none; }
  .ausw-kopf span:nth-child(1) { grid-column: 1; }
}

/* ---------- Etappe 5: Galerie ---------- */
.g-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.g-karte { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 0 var(--line); display: grid; }
.g-karte.aus .g-bild { opacity: .4; }
.g-bild { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--mist) center / cover no-repeat; }
.g-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.g-karte figcaption { display: grid; gap: .5rem; padding: .8rem; }
.g-karte figcaption .in { padding: .5rem .7rem; font-size: .92rem; }
.g-leiste { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.g-knoepfe { display: flex; }
.g-knoepfe .row-del { width: 32px; height: 32px; font-size: 1rem; }
.g-knoepfe .row-del[disabled] { opacity: .3; cursor: default; }
.g-upload { display: grid; gap: .8rem; margin-top: 1rem; }
.g-upload-zeile { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; }
.g-upload-zeile > div { display: grid; gap: .35rem; min-width: 0; }
.g-upload-zeile b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-upload-zeile .in { padding: .5rem .7rem; }
.g-upload-zeile .progress-bar { margin: 0; }
.g-mini { width: 64px; height: 64px; border-radius: 10px; background: var(--mist) center / cover no-repeat; display: grid; place-items: center; color: var(--ink-soft); }

/* ---------- Etappe 4: Zwei-Faktor, Einstellungen, Laufzettel ---------- */
.code-in { font-family: var(--display); font-size: 1.6rem; letter-spacing: .25em; text-align: center; max-width: 260px; }
.zf-schritte { margin: 1rem 0 0 1.2rem; display: grid; gap: 1.1rem; }
.zf-schritte li::marker { font-weight: 800; }
.zf-einrichten { display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem; align-items: center; margin-top: .8rem; }
.zf-einrichten > div:last-child { display: grid; gap: .4rem; }
.zf-qr svg { display: block; width: 200px; height: 200px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.zf-schluessel { font: 700 1.05rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--mist); border-radius: 10px; padding: .6rem .8rem; letter-spacing: .06em; word-break: break-all; user-select: all; }
.zf-code { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .6rem; }
.notfall { display: grid; grid-template-columns: repeat(2, minmax(0, 12rem)); gap: .4rem 1.6rem; margin: .8rem 0 0 1.4rem; }
.notfall code { font: 700 1.05rem ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; }
.fristen { margin: .6rem 0 .4rem 1.2rem; display: grid; gap: .35rem; }
details.plan { background: var(--mist); border-radius: 12px; padding: .6rem .9rem; margin-top: .5rem; }
details.plan summary { cursor: pointer; font-weight: 700; }
details.plan ul { margin: .5rem 0 0 1.2rem; font-size: .92rem; }
dl.sys { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.4rem; font-size: .95rem; }
dl.sys dt { color: var(--ink-soft); font-weight: 600; }
.zeile.zugang { grid-template-columns: 46px 1fr auto; }
.zeile.zugang .muted { display: block; }
.zeile.aus { opacity: .55; }

.laufzettel-seite .bar .wrap.bar-zeile { flex-wrap: nowrap; }
.lz-werkzeug { display: flex; gap: .5rem; }
.lz { padding: 1.4rem 0 3rem; max-width: 760px; }
.lz-kopf { margin-bottom: 1rem; }
.lz-kopf h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin: .3rem 0 .5rem; }
.lz-zeiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.lz-zeiten > div { background: #fff; border-radius: 14px; padding: .8rem 1rem; box-shadow: 0 1px 0 var(--line); }
.lz-zeiten span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.lz-zeiten b { font-family: var(--display); font-size: 1.35rem; }
.lz-block { padding: 1.2rem 1.3rem; }
.card.lz-block + .card.lz-block { margin-top: 1rem; }
.lz-block h2 { font-size: 1.1rem !important; margin-bottom: .6rem; }
.lz-block dl { display: grid; gap: .55rem; }
.lz-zeile dt { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.lz-block .actions + dl, .lz-block .tags + dl, .lz-block p + dl { margin-top: .9rem; }
.lz-zeile dd { white-space: pre-line; }
.lz-zeile dd ul { list-style: none; display: grid; gap: .2rem; }
.lz-block a[href^="tel:"] { font-weight: 700; color: var(--violet); }
.lz-team { list-style: none; display: grid; gap: .5rem; }
.lz-team li { display: grid; background: var(--mist); border-radius: 12px; padding: .6rem .8rem; }
.lz-team li.ich { background: #efe6ff; }
.lz-aufgaben { margin-left: 1.2rem; display: grid; gap: .3rem; }
.lz-offline { position: sticky; top: 70px; z-index: 5; }
.lz-fuss { text-align: center; margin-top: 1.4rem; }

@media (max-width: 640px) {
  .zf-einrichten { grid-template-columns: 1fr; justify-items: start; }
  .notfall { grid-template-columns: 1fr; }
  dl.sys { grid-template-columns: 1fr; gap: .1rem; }
  dl.sys dd { margin-bottom: .5rem; }
  .zeile.zugang { grid-template-columns: 46px 1fr; }
  .zeile.zugang .badges { grid-column: 1 / -1; justify-content: flex-start; }
}
@media print {
  .laufzettel-seite .lz { max-width: none; padding: 0; }
  .lz-block { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .lz-offline, .lz-fuss { display: none; }
}

@media print {
  body { background: #fff; }
  .bar, .steps, .nav, .actions, .tabs, .no-print, .toast, .foot, .menue { display: none !important; }
  .card { box-shadow: none; padding: 0; }
  .planner { display: block; }
  .contract { max-height: none; overflow: visible; background: none; padding: 0; }
  .sum-sec { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Etappe 6: Vorgespräche, Bewertungen, Gesellschafter, Wetter, Benachrichtigungen ---------- */
.badge.info { background: #ecebff; color: #3b3591; }
.chip-gespraech { background: #fff; color: #3b3591; border: 1.5px solid #8b85e6; }
table.mini tfoot th { border-top: 2px solid var(--ink); border-bottom: 0; padding-top: .6rem; color: var(--ink); font-size: .85rem; }
table.mini tbody th { text-align: left; font-weight: 700; padding: .6rem; border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-size: .93rem; color: var(--ink); }
.box-titel { font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; }
.wetter-box + .bewertung-box, .bewertung-box { margin-top: 1rem; }
.tabelle-rahmen { overflow-x: auto; }
.gs-tabelle { min-width: 720px; }
.gs-tabelle .minus, .minus { color: var(--err); }
.gs-anteile { display: grid; gap: .5rem; }
.gs-an { margin: .7rem 0 .2rem; }
.alte-rechnungen { margin-bottom: 1.6rem; }
.alte-rechnungen .zeilen { margin-top: .6rem; }
.ki-liste { display: grid; margin-top: .6rem; }
.ki-zeile { display: grid; grid-template-columns: 70px minmax(0, 1.2fr) 110px minmax(0, 1.4fr); gap: .9rem; align-items: start; padding: .8rem 0; border-top: 1px solid var(--line); }
.ki-zeile.aus { opacity: .55; }
.ki-datum b { display: block; font-family: var(--display); }
.ki-datum span { font-size: .75rem; color: var(--ink-soft); }
.ki-wer b, .ki-wer span { display: block; overflow-wrap: anywhere; }
.ki-wer .muted { font-size: .85rem; }
.ki-hinweis { display: inline-block !important; margin-top: .3rem; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; background: #ecebff; color: #3b3591; }
.ki-hinweis.ok { background: var(--ok-bg); color: #145c3b; }
.ki-hinweis.warn { background: #fff6e0; color: #6b5200; }
.ki-betrag { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ki-aktion { display: grid; gap: .35rem; }
.ki-details { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.ki-details input { grid-column: 1 / -1; order: -1; }
.ki-aktion .in { padding: .45rem .7rem; font-size: .9rem; }
.ki-fuss { position: sticky; bottom: 0; background: #fff; padding: .8rem 0; margin-bottom: 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .ki-zeile { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .ki-aktion { grid-column: 1 / -1; }
}
.da-zeile { grid-template-columns: 120px minmax(0, 1fr) auto auto; }
.da-zeile.aus { opacity: .6; }
.da-rhythmus b { display: inline-block; background: var(--mist); border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; }
@media (max-width: 760px) { .da-zeile { grid-template-columns: 1fr auto; } .da-zeile .actions { grid-column: 1 / -1; } }
.gs-nicht-verteilt { margin: -.4rem 0 1.2rem; }
.privat-leiste { background: #fff; border-radius: 14px; padding: .8rem 1.1rem; margin: -.4rem 0 1.2rem; box-shadow: 0 1px 0 var(--line); font-size: .92rem; }
.privat-leiste a { font-weight: 700; color: var(--pink); text-decoration: none; }
.gs-zeile { display: grid; grid-template-columns: 1fr 220px 36px; gap: .5rem; align-items: center; }
.gs-events { display: grid; }
.gs-event { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: .9rem 0; border-top: 1px solid var(--line); }
.gs-event:first-child { border-top: 0; }
.gs-event > div:nth-child(2) > b, .gs-event > div:nth-child(2) > span { display: block; }
.gs-event-rechts { display: grid; justify-items: end; gap: .4rem; }
.gs-event-rechts b { font-family: var(--display); font-size: 1.15rem; }
.gs-teile { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.gs-event .badge.warn { display: inline-block; margin-top: .45rem; }
.gs-editor { display: grid; gap: .4rem; margin-top: .6rem; }
.gs-editor label { display: grid; grid-template-columns: 160px 110px auto; gap: .5rem; align-items: center; font-weight: 600; }
.ka-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.6rem; align-items: start; }
.ka-raster .fields { grid-template-columns: 1fr; }
.ka-tabelle th { font-weight: 500; text-align: left; }
.ka-tabelle td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ka-tabelle tr.ka-summe th, .ka-tabelle tr.ka-summe td { font-weight: 700; border-top: 2px solid var(--ink, #1a1523); }
.ka-tabelle tr.ka-ist th, .ka-tabelle tr.ka-ist td { font-weight: 700; }
.ka .alert { margin-top: 1rem; }
.storno-wahl { display: grid; gap: .7rem; margin: .4rem 0 .8rem; }
.storno-wahl label { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; cursor: pointer; }
.storno-wahl input[type=radio] { margin-top: .3rem; }
.storno-am { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; }
.storno-info .btn { margin-left: .3rem; }
.doppelt { border: 2px solid var(--amber); }
.doppelt-zeile { grid-template-columns: 1fr auto; align-items: center; }
.doppelt-zeile a { font-weight: 700; }
.ka-tabelle caption { text-align: left; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 0 0 .4rem; }
.ka-bargeld { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ka-bargeld summary { cursor: pointer; }
.gs-weg { width: auto; min-height: 0; padding: .3rem 1.8rem .3rem .6rem; font-size: .85rem; }
.ka-gruende { margin: .5rem 0 0 1.1rem; display: grid; gap: .3rem; }
.ka-link { display: inline-block; margin-top: .45rem; font-size: .85rem; font-weight: 700; color: inherit; opacity: .9; }
@media (max-width: 800px) { .ka-raster { grid-template-columns: 1fr; } }
.gs-art { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.gs-summe { margin: .2rem 0 0; font-size: .9rem; }
.gs-teile .tag.gs-rest { background: var(--ok-bg); }
.gs-teile .tag.gs-minus { background: var(--err-bg); }
@media (max-width: 640px) {
  .gs-event { grid-template-columns: 1fr; }
  .gs-event-rechts { justify-items: start; }
  .gs-zeile { grid-template-columns: 1fr 36px; }
  .gs-zeile select { grid-column: 1; }
}
details.card > summary { cursor: pointer; }

/* Wetter */
.wetter-box { margin-top: 1.2rem; }
.wetter-leise { color: var(--ink-soft); font-size: .92rem; }
.wetter-kopf { display: flex; gap: .8rem; align-items: center; }
.wetter-symbol { font-size: 2.1rem; line-height: 1; }
.wetter-kopf b { display: block; font-size: 1.05rem; }
.wetter-kopf span { color: var(--ink-soft); font-size: .9rem; }
.wetter-warnungen { list-style: none; margin: .8rem 0 0; display: grid; gap: .35rem; }
.wetter-warnungen li { background: #fff6e0; color: #6b5200; border-radius: 10px; padding: .5rem .8rem; font-size: .92rem; font-weight: 600; }
.wetter-warnungen li::before { content: "⚠ "; }
.wetter-stunden { display: flex; gap: .4rem; overflow-x: auto; margin-top: .9rem; padding-bottom: .3rem; scroll-snap-type: x proximity; }
.wetter-stunde { flex: 0 0 64px; display: grid; justify-items: center; gap: .05rem; background: #fff; border-radius: 12px; padding: .5rem .2rem; scroll-snap-align: start; box-shadow: 0 1px 0 var(--line); }
.wetter-stunde small { font-size: .72rem; color: var(--ink-soft); white-space: nowrap; }
.wetter-stunde span { font-size: 1.25rem; line-height: 1.3; }
.wetter-stunde.auffaellig { box-shadow: inset 0 0 0 2px #e0a800; }
.wetter-quelle { font-size: .75rem; color: var(--ink-soft); margin-top: .6rem; }
.lz-block .wetter-stunde { background: var(--mist); box-shadow: none; }

/* Bewertungen */
.sterne { color: #e0a800; letter-spacing: .08em; font-size: 1.15rem; white-space: nowrap; }
.bew-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.bew-karte { background: #fff; border-radius: 18px; padding: 1.2rem 1.3rem; box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column; gap: .5rem; }
.bew-karte.sichtbar { box-shadow: inset 0 0 0 2px var(--ok); }
.bew-kopf { display: flex; justify-content: space-between; gap: .6rem; align-items: center; flex-wrap: wrap; }
.bew-karte blockquote { font-size: 1rem; line-height: 1.55; }
.bew-karte blockquote::before { content: "„"; }
.bew-karte blockquote::after { content: "“"; }
.bew-zitat { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.bew-zitat q { color: var(--ink); }

/* Vorgespräche */
.vg-liste { display: grid; gap: .8rem; }
.vg-karte { display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: start; background: var(--mist); border-radius: 14px; padding: 1rem; }
.vg-karte.markiert { box-shadow: inset 0 0 0 2px var(--pink); }
.vg-karte.aus { opacity: .6; }
.vg-karte p { margin-top: .3rem; }
.vg-kontakt { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .3rem; font-weight: 600; }
.vg-kontakt a { text-decoration: none; color: var(--violet); }
.vg-nachricht { white-space: pre-line; background: #fff; border-radius: 10px; padding: .5rem .8rem; }
.vg-neu { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; background: var(--mist); border-radius: 14px; padding: .8rem; }
.vg-neu label { display: grid; gap: .2rem; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.vg-neu .in { background: #fff; }
.vg-neu input[type="date"] { min-width: 170px; }
.vg-tage-liste { display: grid; gap: .5rem; margin-top: 1rem; }
.vg-tagzeile { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--line); }
.vg-tagzeile .tags { margin: 0; }
.tag.leer { opacity: .55; }
.tag-weg { border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--ink-soft); padding: 0 .1rem; }
.tag-weg:hover { color: var(--err); }

/* Benachrichtigungen */
.push-themen { display: grid; gap: .3rem; }
.push-themen .check { margin: 0; }

@media (max-width: 640px) {
  .vg-karte { grid-template-columns: 1fr; }
  .vg-karte .item-date { justify-self: start; }
  .vg-tagzeile { grid-template-columns: 1fr; gap: .2rem; }
  .bew-liste { grid-template-columns: 1fr; }
}

/* ---------- Lager & Packliste ---------- */
.lager-gruppe { margin-top: 1.2rem; }
.lager-gruppe h2 { font-size: 1.05rem; }
.lager-zeile { grid-template-columns: 72px 1fr auto; }
.lager-anzahl { display: grid; justify-items: center; background: var(--mist); border-radius: 12px; padding: .4rem 0; }
.lager-anzahl b { font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.lager-anzahl span { font-size: .7rem; color: var(--ink-soft); }
.lager-tabelle th a, .lager-wo a { color: inherit; }
.lager-tabelle tr.minus-zeile th, .lager-tabelle tr.minus-zeile td { background: var(--err-bg); }
.lager-wo { font-weight: 400; font-size: .85rem; }
.posten-neu, .pl-werkzeug { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; background: var(--mist); border-radius: 14px; padding: .7rem; }
.posten-neu .in, .pl-werkzeug .in { background: #fff; }
.posten-neu input[list], .pl-werkzeug input[list] { flex: 1 1 260px; }
.pl-liste { margin-top: 1rem; }
.pl-kopfzeile { display: grid; grid-template-columns: 76px minmax(0, 1fr) 168px 168px 32px; gap: .7rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.pl-kopfzeile span:nth-child(3), .pl-kopfzeile span:nth-child(4) { text-align: center; }
.pl-kat { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 1.2rem 0 .3rem; }
.pl-zeile { display: grid; grid-template-columns: 76px minmax(0, 1fr) 168px 168px 32px; gap: .7rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.pl-zeile > .pl-haken, .pl-zeile > .pl-zaehler { justify-self: center; }
.pl-zeile.konflikt { background: var(--err-bg); border-radius: 10px; margin-inline: -.5rem; padding-inline: .5rem; }
.pl-name b { display: block; }
.pl-name span { font-size: .85rem; }
.pl-anzahl { max-width: 76px; }
.pl-anzahl-text { font-family: var(--display); font-size: 1.1rem; }
.pl-haken { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.pl-haken input { width: 20px; height: 20px; accent-color: var(--ok); }
.pl-zaehler { display: inline-flex; align-items: center; gap: .25rem; background: var(--mist); border-radius: 999px; padding: .15rem; white-space: nowrap; }
.pl-zaehler.voll { background: var(--ok-bg); color: #145c3b; }
.pl-zaehler button { border: 0; background: #fff; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; cursor: pointer; }
.pl-zaehler button:disabled { opacity: .35; cursor: default; }
.pl-zaehler span { min-width: 3.2em; text-align: center; font-weight: 700; font-size: .88rem; font-variant-numeric: tabular-nums; }
.pl-zaehler .pl-alle { width: auto; padding: 0 .6rem; border-radius: 999px; font-size: .78rem; }
.lz-packliste { list-style: none; display: grid; gap: .35rem; }
.lz-packliste li { display: flex; align-items: center; gap: .5rem; }
.lz-kasten { width: 1.1rem; height: 1.1rem; border: 2px solid var(--ink-soft); border-radius: 4px; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 800; flex: none; }
.lz-packliste li.ok .lz-kasten { border-color: var(--ok); color: var(--ok); }
@media (max-width: 760px) {
  .pl-zeile { grid-template-columns: 64px minmax(0, 1fr) 28px; }
  .pl-kopfzeile { display: none; }
  .pl-zaehler::before { content: attr(data-label); font-size: .78rem; font-weight: 600; color: var(--ink-soft); padding: 0 .3rem 0 .5rem; }
  .pl-zeile .pl-haken, .pl-zeile .pl-zaehler { grid-column: 2 / 3; justify-self: start; }
  .pl-zeile .row-del { grid-row: 1; grid-column: 3; }
  .lager-zeile { grid-template-columns: 60px 1fr; }
  .lager-zeile .badges { grid-column: 1 / -1; justify-content: flex-start; }
}
