/* 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: 1240px; 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 10px; border-radius: 7px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14px; 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: 860px) {
  .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); }
