/* Termine – gemeinsame Gestaltung (Buchungsseite + Admin). Schrift lokal (Poppins), keine externen Dienste. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(fonts/poppins-regular.woff) format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(fonts/poppins-medium.woff) format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 600 700; font-display: swap; src: url(fonts/poppins-bold.woff) format("woff"); }
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #f4f4ee; --surface: #ffffff; --surface-2: #ecece4; --ink: #22231b; --muted: #676858; --line: #dfdfd3;
  --accent: #737022; --accent-ink: #ffffff; --soft: color-mix(in srgb, var(--accent) 12%, transparent); --hover: rgba(34,35,27,.05);
  --ok: #3f8a4a; --warn: #a96300; --danger: #c23a2e; --brand: #aaa440;
  --shadow: 0 10px 34px rgba(30,30,20,.10), 0 2px 6px rgba(30,30,20,.06);
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --f-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 10px; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.admin {
  --bg: #15160f; --surface: #1d1e16; --surface-2: #26271e; --ink: #ebebe0; --muted: #a2a392; --line: #34352b; --hover: rgba(235,235,224,.06);
  --shadow: 0 10px 34px rgba(0,0,0,.45); color-scheme: dark; } }

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; min-height: 100vh; }
body.is-embed { background: transparent; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .right { text-align: right; }
.mt { margin-top: 10px; } .mt2 { margin-top: 26px; }
code, .code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Marke */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 13px; flex: none; }
.brand-logo { max-height: 40px; max-width: 160px; }
.brand-name { font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--f-body); font-size: 11.5px; color: var(--muted); font-weight: 400; letter-spacing: .02em; margin-top: 2px; }
.brand.sm .brand-mark { width: 32px; height: 32px; font-size: 11px; } .brand.sm .brand-name { font-size: 16px; }

/* Bausteine */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card + .card { margin-top: 14px; }
.card.hl { border-color: var(--accent); background: var(--soft); }
.card.empty { text-align: center; color: var(--muted); padding: 36px 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 8px;
  padding: 9px 16px; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; transition: filter .15s, background .15s; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--soft); filter: none; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 13.5px; } .btn.xs { padding: 4px 9px; font-size: 12.5px; font-weight: 500; } .btn.wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.danger-t { color: var(--danger) !important; border-color: var(--danger) !important; }
.linkbtn { border: 0; background: none; color: var(--accent); padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: #e3f1e5; color: #25622d; } .pill.warn { background: #fdf0d9; color: #8a5200; } .pill.bad { background: #fbe4e1; color: #9b2c22; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 600; vertical-align: middle; }
.avatar.sm { width: 22px; height: 22px; font-size: 11px; }
.flash { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; background: #e3f1e5; color: #25622d; }
.flash.bad { background: #fbe4e1; color: #9b2c22; } .flash.warn { background: #fdf0d9; color: #8a5200; }
.ic { flex: none; }
.facts { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; } .facts .ic { color: var(--muted); margin-top: 2px; }
.legal { display: flex; gap: 8px; justify-content: center; font-size: 12.5px; margin: 22px 0 8px; color: var(--muted); }
.legal a { color: var(--muted); }

/* Formulare */
.field { margin: 0 0 14px; }
.field > label, .flabel { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=time], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-height: 40px; }
textarea { resize: vertical; }
input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--soft); }
.help { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.chk { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; cursor: pointer; }
.chk input { margin-top: 4px; accent-color: var(--accent); }
.prefix, .suffix { display: flex; align-items: stretch; }
.prefix span, .suffix span { display: flex; align-items: center; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.prefix span { border-radius: 8px 0 0 8px; border-right: 0; } .prefix input { border-radius: 0 8px 8px 0; }
.suffix span { border-radius: 0 8px 8px 0; border-left: 0; } .suffix input { border-radius: 8px 0 0 8px; }
.cols2, .cols3, .cols4 { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .cols2 { grid-template-columns: 1fr 1fr; } .cols3 { grid-template-columns: repeat(3, 1fr); } .cols4 { grid-template-columns: repeat(4, 1fr); } }

/* ================= Öffentliche Seiten ================= */
.pub { max-width: 1060px; margin: 0 auto; padding: 22px 16px 40px; }
.pub.narrow { max-width: 620px; }
.pub-head { display: flex; justify-content: center; margin: 4px 0 22px; }
.is-embed .pub { padding-top: 8px; }
.pub-intro { text-align: center; margin: 0 auto 22px; max-width: 640px; }
.event-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.event-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 18px 24px;
  text-decoration: none; color: var(--ink); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--ec); }
.ec-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ec); }
.ec-title { font-weight: 600; font-size: 17px; }
.ec-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; }
.ec-desc { font-size: 13.5px; color: var(--muted); }
.ec-go { margin-top: auto; padding-top: 8px; color: var(--ec); font-weight: 600; font-size: 14px; }

/* Buchungs-Widget */
.booker { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.is-embed .booker { box-shadow: none; }
.bk { display: grid; grid-template-columns: 1fr; min-height: 520px; }
@media (min-width: 900px) { .bk { grid-template-columns: 320px 1fr; } .bk.step-form { grid-template-columns: 320px 1fr; } }
.bk-info { padding: 24px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .bk-info { border-bottom: 0; border-right: 1px solid var(--line); } }
.bk-info .ev-name { font-family: var(--f-display); font-size: 25px; font-weight: 600; margin: 6px 0 12px; line-height: 1.15; }
.bk-info .ev-color { width: 32px; height: 5px; border-radius: 3px; background: var(--evc); }
.bk-info .facts { font-size: 14.5px; }
.bk-info .ev-desc { font-size: 14px; color: var(--muted); white-space: pre-line; margin-top: 12px; overflow-wrap: anywhere; }
.bk-info .chosen { background: var(--soft); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-weight: 500; }
.bk-main { padding: 22px 24px 26px; min-width: 0; }
.bk-main h2 { font-size: 18px; margin-bottom: 14px; }
.cal-wrap { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.cal { min-width: 0; }
@media (min-width: 900px) { .cal-wrap.has-day { grid-template-columns: minmax(0, 1fr) 210px; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 15.5px; font-weight: 600; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); color: var(--accent); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.cal-nav button[disabled] { background: transparent; color: var(--line); cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .wd { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; }
.cal-grid button { aspect-ratio: 1; max-height: 52px; width: 100%; border-radius: 50%; border: 0; background: transparent; font-weight: 500; font-size: 15px; color: var(--muted); cursor: default; position: relative; font-variant-numeric: tabular-nums; }
.cal-grid button.av { background: var(--soft); color: var(--accent); font-weight: 600; cursor: pointer; }
.cal-grid button.av:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.cal-grid button.sel, .cal-grid button.sel:hover { background: var(--accent); color: var(--accent-ink); }
.cal-grid button.today::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-grid .blank { visibility: hidden; }
.tz-row { margin-top: 14px; display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.tz-row select { width: auto; min-width: 0; flex: 0 1 auto; max-width: 100%; min-height: 34px; padding: 5px 8px; font-size: 13.5px; }
.day-col h3 { font-size: 14.5px; font-weight: 500; margin: 6px 0 12px; }
.slots { display: grid; gap: 8px; max-height: 430px; overflow-y: auto; padding-right: 4px; }
@media (max-width: 899px) { .slots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: none; } }
.slot { display: flex; gap: 6px; }
.slot button { flex: 1; padding: 11px 6px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); background: var(--surface); font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; transition: background .15s; }
.slot button:hover { border-color: var(--accent); border-width: 1px; box-shadow: inset 0 0 0 1px var(--accent); }
.slot.picked button.t { background: #595959; border-color: #595959; color: #fff; }
.slot.picked button.go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.empty-note { color: var(--muted); font-size: 14px; padding: 18px 0; }
.next-btn { margin-top: 8px; }
.loading { color: var(--muted); padding: 30px 0; text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-weight: 500; margin-bottom: 10px; }
.bk-form { max-width: 520px; }
.bk-form .req::after { content: " *"; color: var(--danger); }
.loc-opts { display: grid; gap: 8px; }
.loc-opts label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.loc-opts label:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.opt-list { display: grid; gap: 4px; }
.form-msg { color: var(--danger); font-size: 14px; min-height: 1em; margin: 8px 0 0; }
.consent { font-size: 13px; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 30px 24px 34px; max-width: 560px; margin: 0 auto; }
.done .check { width: 60px; height: 60px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; }
.done .check.warn { background: var(--warn); }
.done .check svg { width: 30px; height: 30px; stroke-width: 2.6; }
.done .facts { text-align: left; background: var(--bg); border-radius: 10px; padding: 16px; display: inline-grid; margin: 16px auto; min-width: min(100%, 380px); }
.addcal { margin: 14px 0; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.status-badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; margin-bottom: 8px; }
.status-badge.ok { background: #e3f1e5; color: #25622d; } .status-badge.warn { background: #fdf0d9; color: #8a5200; } .status-badge.bad { background: #fbe4e1; color: #9b2c22; }
.cancel-form { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.cancel-form label { font-size: 14px; display: block; margin-bottom: 6px; }
.resched-note { background: #fdf0d9; color: #8a5200; border-radius: 8px; padding: 8px 12px; font-size: 13.5px; margin-bottom: 12px; }

/* ================= Admin ================= */
body.admin { font-size: 14.5px; }
.adm-top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.adm-bar { max-width: 1440px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.adm-app { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.adm-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.adm-nav a, .adm-nav .linkbtn { padding: 7px 8px; border-radius: 7px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.adm-nav .linkbtn { text-decoration: none; color: var(--muted); }
.adm-nav a:hover { background: var(--hover); }
.adm-nav a.on { background: var(--soft); color: var(--accent); }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.adm-menu { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px; font-size: 18px; }
@media (max-width: 1180px) {
  .adm-menu { display: block; } .adm-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; }
  .adm-nav.open { display: flex; } .nav-sep { display: none; } .adm-app { display: none; }
}
.adm { max-width: 1240px; margin: 0 auto; padding: 22px 16px 80px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.head-actions select { width: auto; }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.stat b { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; align-items: flex-end; }
.tabs a { padding: 9px 12px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--accent); border-color: var(--accent); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 140px; flex: 1 1 140px; }
.filters input[type=search] { flex: 2 1 200px; }
.day-h { font-size: 14px; font-weight: 600; margin: 20px 0 8px; color: var(--muted); }
.blist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.brow { display: grid; grid-template-columns: 96px 12px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.brow:first-child { border-top: 0; }
.brow:hover { background: var(--hover); }
.brow.is-off { opacity: .6; } .brow.is-off b { text-decoration: line-through; }
.brow .bt { font-variant-numeric: tabular-nums; font-weight: 500; }
.brow .bm { display: flex; flex-direction: column; min-width: 0; } .brow .bm span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .bh { display: flex; gap: 2px; }
@media (max-width: 640px) { .brow { grid-template-columns: 74px 10px 1fr; } .brow .bh { display: none; } .brow .pill { grid-column: 3; justify-self: start; } }
.grid2 { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .grid2 { grid-template-columns: minmax(0, 1fr) 340px; } .avail-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.side-actions .card h3 { margin-bottom: 10px; }
.side-actions textarea, .side-actions select, .side-actions input { margin: 6px 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; }
.answers { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 14px; margin: 8px 0 14px; }
.answers dt { color: var(--muted); font-size: 13px; } .answers dd { margin: 0; overflow-wrap: anywhere; }
.maillog { margin-top: 12px; font-size: 13px; } .maillog ul { padding-left: 18px; }
.note-form textarea { margin-bottom: 6px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.card:has(> .tbl) { overflow-x: auto; }
form.inline { display: inline; } form.inline select { width: auto; min-height: 32px; padding: 4px 8px; }
.et-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.et-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--ec); border-radius: var(--r); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.et-card.is-off { opacity: .7; border-top-color: var(--line); }
.et-card.dragging { opacity: .4; }
.et-top { display: flex; align-items: center; gap: 8px; } .et-top h2 { margin: 0; flex: 1; font-size: 16px; } .et-top h2 a { color: var(--ink); text-decoration: none; }
.drag { cursor: grab; color: var(--muted); letter-spacing: -3px; user-select: none; }
.et-card p { margin: 0; }
.et-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.more { position: relative; } .more > summary { list-style: none; } .more > summary::-webkit-details-marker { display: none; }
.more-pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 12px; z-index: 10; min-width: 250px; display: grid; gap: 8px; }
.inline-more .more-pop { left: 0; right: auto; } .inline-more { margin-left: 8px; padding-bottom: 8px; }
.more-pop form { display: grid; gap: 6px; }
.copyrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .copyrow code { background: var(--surface-2); padding: 6px 9px; border-radius: 6px; overflow-wrap: anywhere; }
textarea.code { font-size: 12px; background: var(--surface-2); margin-bottom: 4px; }
.et-form .card { margin-bottom: 14px; }
.sticky-save { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(6px); padding: 12px 0; display: flex; gap: 10px; z-index: 5; border-top: 1px solid var(--line); margin-top: 6px; }
.hosts { display: grid; gap: 8px; margin-bottom: 14px; }
.host-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .host-row .chk { flex: 1 1 200px; } .host-row select { width: auto; flex: 0 1 260px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 18px; }
/* Editoren */
.ed-list { display: grid; gap: 10px; margin-bottom: 10px; }
.ed-item { border: 1px solid var(--line); border-radius: 9px; padding: 12px; display: grid; gap: 8px; background: var(--surface); }
.ed-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .ed-row > * { flex: 1 1 160px; } .ed-row .narrow { flex: 0 0 auto; }
.ed-x { flex: 0 0 auto !important; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; width: 32px; height: 32px; border-radius: 6px; }
.ed-x:hover { background: var(--hover); color: var(--danger); }
.wk-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.wk-row:first-child { border-top: 0; }
.wk-day { display: flex; align-items: center; gap: 8px; font-weight: 500; padding-top: 7px; }
.wk-ivs { display: grid; gap: 6px; }
.iv { display: flex; gap: 6px; align-items: center; } .iv input[type=time] { width: 118px; min-height: 36px; padding: 5px 8px; }
.wk-off { color: var(--muted); padding-top: 7px; }
.wk-tools { display: flex; gap: 4px; }
.ovr-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.ovr-item:first-child { border-top: 0; }
@media (max-width: 560px) { .ovr-item, .wk-row { grid-template-columns: 1fr; } }
.calstat { border-radius: 8px; padding: 10px 12px; margin: 14px 0 8px; font-size: 13.5px; }
.calstat.ok { background: #e3f1e5; color: #25622d; } .calstat.bad { background: #fbe4e1; color: #9b2c22; }
.howto { margin-top: 16px; font-size: 14px; } .howto summary { cursor: pointer; font-weight: 600; } .howto ol { padding-left: 20px; }
.preview { display: grid; gap: 4px; }
.pv-row { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: center; font-size: 12.5px; }
.pv-bar { position: relative; height: 16px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.pv-bar i { position: absolute; top: 0; bottom: 0; }
.pv-w { background: color-mix(in srgb, var(--ok) 55%, transparent); }
.pv-b { background: repeating-linear-gradient(45deg, #8b8c7e, #8b8c7e 3px, #a8a99b 3px, #a8a99b 6px); }
.pv-axis { display: grid; grid-template-columns: 74px repeat(5, 1fr) auto; font-size: 11px; color: var(--muted); margin-left: 8px; }
.auth-card { margin-top: 40px; } .auth-card .brand { margin-bottom: 10px; } .auth-card h1 { font-size: 24px; }

/* System */
.testbar { background: #fdf0d9; color: #8a5200; text-align: center; padding: 7px 16px; font-size: 13.5px; border-bottom: 1px solid #f1d9a8; }
.testbar a { color: #8a5200; font-weight: 600; }
.logbox { background: var(--surface-2); border-radius: 8px; padding: 12px; font-size: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; }
.mailframe { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: 8px; background: #f4f4ee; }
.slotx { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.slotx div { display: flex; gap: 10px; padding: 6px 10px; border-radius: 6px; font-size: 13px; align-items: baseline; }
.slotx .yes { background: #e3f1e5; color: #25622d; } .slotx .no { background: var(--surface-2); color: var(--muted); }
.slotx b { font-variant-numeric: tabular-nums; color: var(--ink); }
input[type=file] { display: block; padding: 10px; border: 1px dashed var(--line); border-radius: 8px; width: 100%; background: var(--surface-2); }

/* ================= Öffentliche Seiten – klassisches Buchungsseiten-Layout (ab 1.2) ================= */
body.pub-c {
  --bg: #fafafa; --surface: #ffffff; --ink: #1a1a1a; --muted: rgba(26,26,26,.61); --line: rgba(26,26,26,.1); --hover: rgba(26,26,26,.04);
  --soft: color-mix(in srgb, var(--accent) 8%, #fff); --soft-2: color-mix(in srgb, var(--accent) 16%, #fff);
  --shadow: 0 1px 8px 0 rgba(0,0,0,.08); font-size: 16px; background: var(--bg);
}
body.pub-c.is-embed { background: transparent; }
body.pub-c h1 { font-family: var(--f-body); font-weight: 700; letter-spacing: 0; }
body.pub-c .pub { max-width: 1060px; padding: 66px 16px 40px; }
@media (max-width: 899px) { body.pub-c .pub { padding: 0 0 30px; } }
body.pub-c.is-embed .pub { padding: 0; }
body.pub-c .brand-mark.lg { width: 56px; height: 56px; font-size: 17px; }
body.pub-c .btn { border-radius: 8px; padding: 11px 18px; }
body.pub-c .btn.rounded { border-radius: 40px; padding: 12px 22px; min-width: 150px; }
body.pub-c .legal { margin-top: 26px; }
body.pub-c input:not([type]), body.pub-c input[type=text], body.pub-c input[type=email], body.pub-c input[type=tel], body.pub-c input[type=number], body.pub-c input[type=date], body.pub-c select, body.pub-c textarea {
  border: 1px solid #b2b2b2; border-radius: 8px; min-height: 46px; padding: 11px 14px; font-size: 15px; }
body.pub-c input:focus, body.pub-c select:focus, body.pub-c textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
body.pub-c .field > label, body.pub-c .flabel { color: var(--ink); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
body.pub-c .facts { color: var(--muted); font-weight: 500; gap: 14px; }
body.pub-c .facts .ic { color: var(--muted); width: 20px; height: 20px; margin-top: 1px; }

/* Übersicht der Terminarten (Profilseite) */
.profile { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-width: 1000px; margin: 0 auto; }
.is-embed .profile { box-shadow: none; }
.profile-head { text-align: center; padding: 36px 24px 30px; border-bottom: 1px solid var(--line); }
.profile-head h1 { font-size: 22px; margin: 14px 0 8px; }
.profile-head p { max-width: 560px; margin: 0 auto; font-size: 15px; }
.p-mark { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.p-mark img { max-height: 72px; max-width: 220px; }
.p-company { font-size: 14px; color: var(--muted); font-weight: 500; }
.profile-empty { padding: 40px 24px; text-align: center; }
.et-list { display: grid; grid-template-columns: 1fr; padding: 10px 0 24px; }
@media (min-width: 760px) { .et-list { grid-template-columns: 1fr 1fr; padding: 22px 30px 36px; column-gap: 24px; } }
.et-item { display: flex; align-items: center; gap: 16px; padding: 22px 24px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); transition: background .15s; }
@media (min-width: 760px) { .et-item { border-radius: 8px; border-bottom: 1px solid var(--line); } }
.et-item:hover { background: var(--hover); }
.et-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--ec); flex: none; }
.et-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.et-name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.et-meta { font-size: 14px; color: var(--muted); }
.et-caret { color: var(--ink); font-size: 16px; }

/* Buchungskarte */
body.pub-c .booker { border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-width: 1060px; margin: 0 auto; transition: max-width .25s; }
@media (min-width: 900px) { body.pub-c .booker:not(:has(.has-day)):not(:has(.step-form)):not(:has(.done)) { max-width: 820px; } }
@media (max-width: 899px) { body.pub-c .booker { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; } }
body.pub-c .bk { min-height: 640px; }
@media (min-width: 900px) { body.pub-c .bk, body.pub-c .bk.step-form { grid-template-columns: minmax(280px, 34%) 1fr; } }
@media (max-width: 899px) { body.pub-c .bk { min-height: 0; } }
body.pub-c .bk-info { position: relative; padding: 0; }
.bk-logo { display: flex; justify-content: center; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.bk-logo img { max-height: 64px; max-width: 200px; }
.bk-logo a { display: inline-flex; }
.bk-info-in { padding: 26px 24px 24px; }
.bk-org { color: var(--muted); font-size: 16px; font-weight: 600; }
body.pub-c .bk-info .ev-name { font-family: var(--f-body); font-size: 28px; font-weight: 700; margin: 4px 0 22px; line-height: 1.2; color: var(--ink); }
body.pub-c .bk-info .ev-desc { color: var(--ink); font-size: 15px; margin-top: 22px; }
body.pub-c .bk-info .chosen { background: none; padding: 0; color: var(--muted); }
.round-back { position: absolute; top: 24px; left: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.round-back:hover { background: var(--soft); }
.has-logo-none .round-back { position: static; }
body.pub-c .bk-main { padding: 26px 32px 28px; }
@media (max-width: 899px) { body.pub-c .bk-main { padding: 22px 16px 26px; } }
body.pub-c .bk-main h2 { font-size: 20px; font-weight: 700; margin: 2px 0 22px; }
body.pub-c .cal-wrap { gap: 26px; }
@media (min-width: 900px) { body.pub-c .cal-wrap { max-width: 440px; } body.pub-c .cal-wrap.has-day { max-width: none; grid-template-columns: minmax(0, 440px) minmax(190px, 230px); } }
body.pub-c .cal-head { justify-content: center; gap: 26px; margin-bottom: 18px; }
body.pub-c .cal-head b { font-size: 16px; font-weight: 500; min-width: 140px; text-align: center; }
.cal-arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); color: var(--accent); display: grid; place-items: center; cursor: pointer; }
.cal-arrow.next svg { transform: rotate(180deg); }
.cal-arrow:hover { background: var(--soft-2); }
.cal-arrow[disabled] { background: transparent; color: rgba(26,26,26,.3); cursor: default; }
body.pub-c .cal-grid { gap: 6px 0; }
body.pub-c .cal-grid .wd { font-size: 12px; color: var(--ink); font-weight: 400; text-transform: uppercase; padding: 0 0 8px; letter-spacing: 0; }
.cal-grid .dc { display: flex; justify-content: center; }
body.pub-c .cal-grid button { width: 44px; height: 44px; max-height: none; aspect-ratio: auto; font-size: 16px; font-weight: 400; color: var(--ink); opacity: 1; }
body.pub-c .cal-grid button[disabled] { color: rgba(26,26,26,.38); }
@media (min-width: 420px) { body.pub-c .cal-grid button { width: 48px; height: 48px; } }
body.pub-c .cal-grid button.av { background: var(--soft); color: var(--accent); font-weight: 700; }
body.pub-c .cal-grid button.av:hover { background: var(--soft-2); }
body.pub-c .cal-grid button.sel, body.pub-c .cal-grid button.sel:hover { background: var(--accent); color: var(--accent-ink); }
body.pub-c .cal-grid button.today::after { bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; }
body.pub-c .tz-row { display: block; margin-top: 28px; color: var(--ink); }
body.pub-c .tz-row label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.tz-sel { display: inline-flex; align-items: center; gap: 8px; position: relative; max-width: 100%; }
body.pub-c .tz-sel select { border: 0; box-shadow: none; min-height: 36px; padding: 4px 22px 4px 0; font-size: 15px; background: transparent; cursor: pointer; width: auto; }
body.pub-c .tz-sel select:focus { box-shadow: 0 0 0 2px var(--soft-2); border-radius: 6px; }
body.pub-c .day-col h3 { font-size: 16px; font-weight: 400; margin: 10px 0 22px; }
body.pub-c .slots { gap: 10px; max-height: 470px; padding-right: 8px; }
body.pub-c .slot { gap: 6px; }
body.pub-c .slot button { height: 52px; padding: 0 8px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--accent) 50%, #fff); font-size: 16px; font-weight: 700; color: var(--accent); }
body.pub-c .slot button:hover { border: 2px solid var(--accent); box-shadow: none; }
body.pub-c .slot.picked button.t { background: rgba(0,0,0,.6); border-color: transparent; color: #fff; font-weight: 700; }
body.pub-c .slot.picked button.go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.pub-c .slot.picked button { animation: slot-in .18s ease-out; }
@keyframes slot-in { from { opacity: .4; } to { opacity: 1; } }
body.pub-c .bk-form { max-width: 480px; }
body.pub-c .bk-form .req::after { color: inherit; }
body.pub-c .consent { color: var(--muted); font-size: 13.5px; }
body.pub-c .loc-opts label { border-color: #b2b2b2; padding: 12px 14px; }

/* Bestätigung */
body.pub-c .done { padding: 0 0 36px; max-width: none; }
body.pub-c .done > *:not(.bk-logo) { max-width: 560px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
body.pub-c .done .bk-logo { margin-bottom: 30px; }
body.pub-c .done h1 { font-size: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; }
body.pub-c .done .check { width: 26px; height: 26px; margin: 0; flex: none; }
body.pub-c .done .check svg { width: 16px; height: 16px; stroke-width: 3; }
.done-box { border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px !important; text-align: left; margin-top: 26px; margin-bottom: 22px; }
.done-box .ev-name { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
body.pub-c .done .done-box .facts { background: none; padding: 0; margin: 0; display: grid; min-width: 0; }
body.pub-c .card { border-radius: 8px; box-shadow: var(--shadow); border-color: var(--line); }
body.pub-c .manage h1 { font-size: 24px; }
body.pub-c .pub.narrow { max-width: 620px; }

/* ===== 1.3: Dauer-Auswahl, Plätze, Warteliste, Begleitpersonen ===== */
.dur-li > span { flex: 1; }
.dur-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dur-chips button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 40px; padding: 5px 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.dur-chips button.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.dur-chips button:hover:not(.on) { border-color: var(--accent); }
body.pub-c .slot button small, body.pub-c .slot .t-full small { display: block; font-size: 11.5px; font-weight: 500; line-height: 1.1; margin-top: 2px; }
body.pub-c .slot.seats button { height: 56px; }
body.pub-c .slot.full { align-items: stretch; }
body.pub-c .slot.full .t-full { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); font-weight: 700; }
body.pub-c .slot.full button.wl { flex: 0 0 auto; height: 52px; padding: 0 10px; font-size: 13px; color: var(--muted); border-color: var(--line); }
body.pub-c .slot.full button.wl:hover { color: var(--accent); border-color: var(--accent); }
body.pub-c .cal-grid button.fullday { background: transparent; color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.guests .guest-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 520px) { .guests .guest-row { grid-template-columns: 1fr auto; } .guests .guest-row input[type=email] { grid-column: 1; } .guests .guest-row .g-del { grid-row: 1 / span 2; grid-column: 2; } }
.g-del { border: 1px solid var(--line); background: var(--surface); border-radius: 50%; width: 36px; height: 36px; align-self: center; cursor: pointer; font-size: 18px; color: var(--muted); }
.g-del:hover { color: var(--danger); border-color: var(--danger); }

/* Meine Termine */
.account h1 { font-size: 24px; margin-bottom: 4px; }
.account h2 { font-size: 17px; }
.acc-list { list-style: none; margin: 8px 0 0; padding: 0; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acc-main { flex: 1; min-width: 0; font-size: 15px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Terminabstimmung */
.poll-body { padding: 20px 24px 28px; }
.poll-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px 6px; }
.poll-tbl { border-collapse: separate; border-spacing: 4px; min-width: 100%; }
.poll-tbl th, .poll-tbl td { text-align: center; }
.poll-tbl thead th { background: var(--soft); border-radius: 8px; padding: 8px 6px; min-width: 74px; font-weight: 500; line-height: 1.15; }
.poll-tbl thead th.top { box-shadow: inset 0 0 0 2px var(--accent); }
.poll-tbl thead th.final { background: var(--accent); color: var(--accent-ink); }
.poll-tbl thead th:first-child { background: none; }
.pd-m, .pd-w { display: block; font-size: 11.5px; text-transform: uppercase; color: inherit; opacity: .75; }
.pd-d { display: block; font-size: 22px; font-weight: 700; }
.pd-t { display: block; font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.poll-tbl tbody th { text-align: left; font-weight: 500; padding-right: 10px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.poll-tbl tbody th input { min-width: 140px; }
.poll-tbl td.pv { border-radius: 6px; padding: 8px 0; font-weight: 700; }
.pv.yes { background: #e3f1e5; color: #25622d; } .pv.maybe { background: #fdf0d9; color: #8a5200; } .pv.no { background: #f3f3f3; color: #999; }
.poll-tbl tr.sum td { font-weight: 700; padding-top: 6px; }
.tri { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tri label { cursor: pointer; }
.tri input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tri span { display: block; padding: 8px 7px; font-size: 13px; font-weight: 700; min-width: 30px; color: var(--muted); }
.tri .t-yes input:checked + span { background: #3f8a4a; color: #fff; }
.tri .t-maybe input:checked + span { background: #d08a19; color: #fff; }
.tri .t-no input:checked + span { background: #9a9a9a; color: #fff; }
.tri input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Weiterleitungsformular */
.route-body { padding: 24px; }
.route-body h2 { font-size: 18px; margin-bottom: 14px; }
.route-opts { display: grid; gap: 10px; }
.route-opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s, background .15s; }
.route-opt:hover { border-color: var(--accent); background: var(--soft); }
.poll-tbl thead th.blank { background: none; }
body.pub-c .bk-info .ev-name { overflow-wrap: anywhere; hyphens: auto; }
.plain { list-style: none; padding: 0; margin: 6px 0 14px; } .plain li { padding: 3px 0; }
.poll-opts { display: flex; flex-wrap: wrap; gap: 8px; } .poll-opts input { width: auto; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* 2.1: Outlook direkt + Team-Liste ohne Verwaltungsknöpfe */
.mb2 { margin-bottom: 16px; } .mt1 { margin-top: 10px; }
.tbl.kv th { width: 170px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); vertical-align: top; padding: 9px 8px; }
.tbl.kv td { font-size: 14px; }
@media (max-width: 640px) { .tbl.kv th { width: auto; display: block; border: 0; padding-bottom: 0; } .tbl.kv td { display: block; } }
.team-name a.person { color: inherit; font-weight: 600; text-decoration: none; } .team-name a.person:hover { text-decoration: underline; }
/* ab 2.8: sensible Einstellungen (fe-sensibel) – Fieldset ohne eigenes Aussehen, gesperrt für Personen ohne Konto-Admin */
fieldset.fe-sfs{border:0;padding:0;margin:0;min-width:0;display:contents}
fieldset.fe-sfs[disabled] input:not([type=checkbox]):not([type=radio]),fieldset.fe-sfs[disabled] select,fieldset.fe-sfs[disabled] textarea{background:#f1f1ec;color:#6b6c5e;cursor:not-allowed}
fieldset.fe-sfs[disabled] .btn,fieldset.fe-sfs[disabled] button{opacity:.5;cursor:not-allowed}
/* ab 2.9: Fenster der Assistenten (Baustein fe-assistent 1.0.0) in den Farben von Termine – hell und dunkel (Variablen der Verwaltung) */
dialog.fea{--card:var(--surface);--soft:var(--surface-2);--bad:var(--danger);--link:var(--accent);--ink2:var(--ink);font-family:var(--f-body);font-size:15px}
dialog.fea .fea-step h4{margin:16px 0 4px;font-size:14px}
dialog.fea .fea-step ol,dialog.fea .fea-step ul{padding-left:20px}
dialog.fea .copyrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap}dialog.fea .copyrow code{overflow-wrap:anywhere;max-width:100%}
dialog.fea .field input:not([type=checkbox]):not([type=radio]),dialog.fea .field select,dialog.fea .field textarea{width:100%}
dialog.fea .fea-step label.chk{display:inline-flex;gap:6px;align-items:center}
dialog.fea .fe-einl,dialog.fea .card{box-shadow:none}
dialog.fea .fea-body{min-height:0}dialog.fea .fea-in{grid-template-rows:minmax(0,1fr)}
@media (max-width:640px){dialog.fea .fea-in{display:flex;flex-direction:column;min-height:0}dialog.fea .fea-side{flex:none}dialog.fea .fea-main{flex:1 1 auto;min-height:0}}
dialog.fea .fea-step table{display:block;max-width:100%;overflow-x:auto}

/* ab 2.10: Objekt und virtuelle Besichtigung */
.virt-note{display:flex;gap:8px;align-items:flex-start;margin:0 0 14px;padding:10px 12px;border-radius:10px;background:var(--soft,#eef4fb);color:inherit;font-size:14px;line-height:1.45;border:1px solid rgba(26,103,194,.25)}
.virt-note[hidden]{display:none}
.virt-note svg{flex:none;margin-top:2px}
.obj-li b{font-weight:600}

/* ab 2.17.0: Events (Eventseite, meine Anmeldung, Einlass) */
.ev .h3, .adm .h3 { font-size: 16px; margin: 18px 0 8px; }
.ev-text { margin: 10px 0 16px; line-height: 1.55; }
.ev-wahl, .ev-sterne { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.ev-wahl legend, .ev-sterne legend { font-weight: 600; padding: 0 4px; }
.ev-form .btn { margin-top: 10px; }
.ev-qr { margin: 14px 0; text-align: center; }
.ev-qr svg { width: 200px; height: 200px; max-width: 70vw; border-radius: 8px; }
.ev-liste { padding-left: 18px; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ev-akt summary { list-style: none; cursor: pointer; display: inline-block; }
.ev-akt summary::-webkit-details-marker { display: none; }
.ev-akt form { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.ev-einlass { text-align: center; border-top: 6px solid var(--line); }
.ev-einlass.ok { border-top-color: #3f8a4a; }
.ev-einlass.bad { border-top-color: #cf3f33; }
.ev-name { font-size: 26px; font-weight: 700; margin: 6px 0; }
.ev-ok { font-size: 20px; font-weight: 700; color: #25622d; }
.ev-gross { min-height: 56px; font-size: 18px; width: 100%; max-width: 360px; }
@media (max-width: 640px) { .ev .cols2, .adm .cols4 { grid-template-columns: 1fr; } .ev-tn th:nth-child(2), .ev-tn td:nth-child(2), .ev-tn th:nth-child(4), .ev-tn td:nth-child(4) { display: none; } .ev-tn td { word-break: break-word; } }
/* ab 2.17.x: Events – Termine frei im Kalender wählen (nutzt .cal-head/.cal-grid der Buchungsseite), Termine als Karten */
.evk { border: 1px solid var(--line); border-radius: var(--of-r-m, 18px); padding: 14px 16px 16px; margin: 6px 0 16px; background: var(--surface); min-width: 0; }
.evk legend { font-weight: 600; font-size: 16px; padding: 0 6px; }
.evk-hilfe { margin: 0 0 12px; }
.evk-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .evk-grid { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); } }
.evk-cal { max-width: 380px; }
.evk-tage button:not([disabled]) { cursor: pointer; }
.evk-tage button.evk-hat::before { content: ""; position: absolute; top: 12%; right: 16%; width: 7px; height: 7px; border-radius: 50%; background: var(--of-secondary, #B4541A); box-shadow: 0 0 0 2px var(--surface); }
.evk-tage button.sel::before { box-shadow: 0 0 0 2px var(--accent); }
.evk-tage button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.evk-vorgabe { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 12px; border-radius: var(--of-r-s, 12px); background: var(--soft); }
.evk-vt { font-weight: 600; font-size: 13.5px; width: 100%; }
.evk-vorgabe label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.evk-vorgabe input { width: auto; min-height: 40px; }
.evk-anzahl { margin: 12px 0 6px; font-weight: 600; font-size: 14px; }
.evk-anzahl.err { color: var(--danger); }
.evk-chips { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.evk-chip { min-height: 36px; padding: 5px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: var(--soft); color: var(--accent); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.evk-chip:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.evk-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.evk-tag { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--of-r-s, 12px); background: var(--bg); }
.evk-f { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
.evk-f input { min-height: 44px; font-size: 15px; }
.evk-datum { flex: 1 1 160px; } .evk-f:not(.evk-datum) { flex: 1 1 118px; }
.evk-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; margin-left: auto; }
.evk-x:hover { background: #fbe4e1; color: #9b2c22; }
.evk-plus { margin-top: 8px; }
.evk-serie { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.evk-st { margin: 0 0 6px; }
.evt-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.evt-karte { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--of-r-m, 18px); background: var(--surface); }
.evt-karte.is-off, .evt-karte.is-vorbei { opacity: .72; }
.evt-datum { flex: none; width: 58px; text-align: center; border-radius: 14px; background: var(--soft); color: var(--accent); padding: 6px 0; line-height: 1.1; }
.evt-datum b { display: block; font-size: 22px; } .evt-datum span { font-size: 11.5px; font-weight: 600; }
.evt-info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.evt-akt { flex: 1 1 100%; }
.evt-akt > summary { list-style: none; display: inline-flex; } .evt-akt > summary::-webkit-details-marker { display: none; }
.evt-panel { display: grid; gap: 12px; margin-top: 10px; }
@media (min-width: 900px) { .evt-akt { flex: 0 1 auto; } .evt-akt[open] { flex-basis: 100%; } .evt-panel { grid-template-columns: 1fr 1fr; } }
.evt-panel form.inline { display: block; }
.evt-fs { border: 1px solid var(--line); border-radius: var(--of-r-s, 12px); padding: 10px 12px 12px; margin: 0; min-width: 0; }
.evt-fs legend { font-weight: 600; padding: 0 4px; }
.evt-zeit { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.evt-fs .evk-f { margin-bottom: 8px; } .evt-fs .evk-f input { width: 100%; }
.evt-vorbei { margin-top: 12px; } .evt-vorbei > summary { cursor: pointer; font-weight: 600; min-height: 36px; }
@media (max-width: 640px) { .evk { padding: 10px 4px 12px; border-width: 0; border-top-width: 1px; border-radius: 0; } .evk-tage { gap: 2px; } .evk-tag { padding: 10px; } }
/* ab 2.19.0: Events im Reiter „Termine“ – Umschalter Alle | Termine | Events, eigenes Kennzeichen „Event“ */
.ev-seg { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.ev-seg a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.ev-seg a:hover { background: var(--hover); } .ev-seg a.on { background: var(--accent); color: var(--accent-ink); }
.ev-dot { background: #7c3aed; }
.pill.ev { background: #efe7fd; color: #5b21b6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.admin .pill.ev { background: #35285a; color: #ddd0ff; } :root:not([data-theme="light"]) body.admin .ev-dot { background: #a78bfa; } }

/* ---------- rc18: Gesamtkalender (admin/kalender) – Monat / Woche / Tag / Liste ---------- */
.gk { --gk-t: #737022; --gk-eo: #6d28d9; --gk-ep: #b45309; --gk-eg: #334155; --gk-be: #8b8c7e; }
.gk-intro { margin-top: -4px; }
.gk-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gk-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gk .gk-nav .btn, .gk .gk-seg button, .gk .gk-mehr summary.btn { min-height: 44px; } /* stärker als die Rahmenregel .btn.sm (36 px) */
.gk-pfeil { min-width: 44px; font-size: 20px; line-height: 1; }
.gk-titel { margin: 0 0 0 6px; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gk-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 99px; background: var(--surface-2); }
.gk-seg button { border: 0; background: transparent; padding: 0 14px; border-radius: 99px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink); }
.gk-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.gk-filter { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; margin-bottom: 8px; }
.gk-person { flex: 0 1 280px; min-width: 0; } .gk-person select { width: 100%; min-height: 44px; }
.gk-mehr { position: relative; } .gk-mehr summary { list-style: none; cursor: pointer; } .gk-mehr summary::-webkit-details-marker { display: none; }
.gk-zahl { background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.gk-pop-f { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(300px, calc(100vw - 32px)); display: grid; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.gk-pop-f label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 500; } .gk-pop-f label.chk { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.gk-pop-f select { min-height: 44px; }
.gk-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.gk-legende li { display: inline-flex; align-items: center; gap: 6px; }
.gk-l { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--gk-t); }
.gk-l.ev-oeffentlich { background: var(--gk-eo); } .gk-l.ev-einladung { background: var(--gk-ep); } .gk-l.ev-geschlossen { background: var(--gk-eg); }
.gk-l-anfrage { background: transparent !important; border: 1.5px dashed var(--muted); } .gk-l-belegt { background: repeating-linear-gradient(135deg, var(--gk-be) 0 2px, transparent 2px 5px); border: 1px solid var(--gk-be); }
.gk-status { min-height: 1.4em; margin: 0 0 8px; font-size: 13px; color: var(--muted); } .gk-status.err { color: var(--danger); font-weight: 600; }
.gk[aria-busy="true"] .gk-flaeche { opacity: .55; }
/* Eintrag: Farbe je Art, Termin in der Farbe der Terminart (Rand), abgesagt durchgestrichen, Anfrage/Entwurf gestrichelt */
.gk-e { --c: var(--gk-t); display: block; width: 100%; text-align: left; font: inherit; font-size: 12.5px; line-height: 1.3; cursor: pointer; color: var(--ink);
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 0; border-left: 3px solid var(--c); border-radius: 5px; padding: 2px 6px; overflow: hidden; }
.gk-e:hover { background: color-mix(in srgb, var(--c) 24%, var(--surface)); }
.gk-e.ev-oeffentlich { --c: var(--gk-eo); } .gk-e.ev-einladung { --c: var(--gk-ep); } .gk-e.ev-geschlossen { --c: var(--gk-eg); }
.gk-e.ev-oeffentlich, .gk-e.ev-einladung, .gk-e.ev-geschlossen { background: var(--c); color: #fff; } .gk-e[class*=" ev-"]:hover { filter: brightness(1.1); }
.gk-e.is-anfrage, .gk-e.is-entwurf { background: var(--surface); border: 1.5px dashed var(--c); border-left-width: 3px; color: var(--ink); }
.gk-e.is-abgesagt { opacity: .6; text-decoration: line-through; background: var(--surface-2) !important; color: var(--muted) !important; border-left-color: var(--muted); }
.gk-z { font-variant-numeric: tabular-nums; font-weight: 600; }
/* Monat (ARIA-Grid) */
.gk-monat { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.gk-mk, .gk-mw { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.gk-mk div { padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.gk-mt { min-height: 112px; padding: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; }
.gk-mw .gk-mt:nth-child(7) { border-right: 0; } .gk-mw:last-child .gk-mt { border-bottom: 0; }
.gk-mt.aus { background: var(--bg); } .gk-mt.aus .gk-nr { color: var(--muted); }
.gk-mt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gk-nr { font-size: 12.5px; font-weight: 600; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; }
.gk-mt.heute .gk-nr { background: var(--accent); color: var(--accent-ink); }
.gk-mt .gk-e { white-space: nowrap; text-overflow: ellipsis; }
.gk-weitere { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; font-weight: 600; text-align: left; padding: 2px 6px; cursor: pointer; }
/* Woche / Tag (Zeitraster) */
.gk-zeit { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.gk-zk { display: grid; grid-template-columns: 48px repeat(var(--sp), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.gk-zkt { border: 0; border-left: 1px solid var(--line); background: none; font: inherit; font-size: 13px; padding: 6px 4px; min-height: 44px; cursor: pointer; color: var(--ink); }
.gk-zkt[disabled] { cursor: default; color: var(--ink); } .gk-zkt.heute b { background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 0 6px; }
.gk-zr { position: relative; display: grid; grid-template-columns: 48px repeat(var(--sp), minmax(0, 1fr));
  background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 48px; }
.gk-std { position: relative; } .gk-std span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gk-std span:first-child { transform: none; }
.gk-sp { position: relative; border-left: 1px solid var(--line); min-width: 0; } .gk-sp.heute { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.gk-zi { position: absolute; z-index: 1; }
.gk-zi .gk-e { height: 100%; display: flex; flex-direction: column; gap: 1px; } .gk-zi .gk-z { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gk-zi .gk-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-u { font-size: 11.5px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-belegt { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--gk-be) 35%, transparent) 0 3px, transparent 3px 8px); border-top: 1px solid var(--gk-be); }
.gk-jetzt { position: absolute; z-index: 2; left: 0; right: 0; height: 2px; background: var(--danger); } .gk-jetzt::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
/* Liste (Agenda) */
.gk-liste { display: grid; gap: 14px; } .gk-lt { font-size: 15px; margin: 0 0 6px; scroll-margin-top: 70px; }
.gk-liste ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gk-liste .gk-e { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; padding: 8px 12px; min-height: 52px; border-radius: 8px; }
.gk-lm { display: grid; min-width: 0; } .gk-lm b { overflow-wrap: anywhere; } .gk-lm span { font-size: 12.5px; opacity: .85; overflow-wrap: anywhere; }
.gk-lz { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.gk-lbelegt { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 12px 8px 15px; border-radius: 8px; color: var(--muted); font-size: 13.5px;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--gk-be) 18%, transparent) 0 3px, transparent 3px 8px); }
.gk-leer { padding: 2px 0; }
/* Popover (natives dialog: Fokus, Escape, Rückgabe des Fokus) */
.gk-pop { position: fixed; margin: 0; width: min(360px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.gk-pop:not([style*="left"]) { inset: 0; margin: auto; height: fit-content; }
.gk-pop::backdrop { background: rgba(20, 20, 15, .25); }
.gk-pop-k { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; } .gk-pop-k h3 { margin: 6px 0 8px; font-size: 16px; overflow-wrap: anywhere; }
.gk-zu { min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); border-radius: 8px; } .gk-zu:hover { background: var(--hover); }
.gk-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0 0 14px; font-size: 13.5px; } .gk-dl dt { color: var(--muted); } .gk-dl dd { margin: 0; overflow-wrap: anywhere; }
.gk-links { display: flex; flex-wrap: wrap; gap: 8px; } .gk-pop .gk-links .btn { min-height: 44px; }
@media (max-width: 640px) {
  .gk-bar { gap: 8px; } .gk-nav { width: 100%; } .gk-titel { font-size: 16px; flex: 1; }
  .gk-seg { width: 100%; } .gk-seg button { flex: 1; padding: 0 6px; }
  .gk-person { flex: 1 1 auto; }
  .gk-mt { min-height: 64px; padding: 2px; } .gk-mt .gk-e { font-size: 0; height: 6px; padding: 0; border: 0; border-radius: 3px; pointer-events: none; background: var(--c); }
  .gk-mt .gk-weitere { font-size: 10.5px; padding: 0 2px; pointer-events: none; } .gk-nr { width: 24px; height: 24px; font-size: 12px; }
  .gk-mk div { padding: 4px 2px; text-align: center; }
  .gk-liste .gk-e { grid-template-columns: 1fr auto; } .gk-liste .gk-lz { grid-column: 1 / -1; }
  .gk-pop[open] { inset: auto 0 0 0; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.admin .gk { --gk-t: #b9b45a; --gk-eo: #7c4ddb; --gk-ep: #b8621a; --gk-eg: #52627a; } }
@media (prefers-reduced-motion: reduce) { .gk-flaeche { transition: none; } }
