/* F&E 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; }
