/* Termino: Styles */
:root {
  --blue: #006bff;
  --blue-dark: #0056d6;
  --blue-50: #f0f6ff;
  --blue-100: #e0ecff;
  --ink: #0b3558;
  --ink-2: #476788;
  --ink-3: #6e8399;
  --line: #d4e0ed;
  --line-2: #e7edf6;
  --bg: #fafafa;
  --white: #fff;
  --danger: #c8372d;
  --green: #0a8754;
  --radius: 8px;
  --shadow: 0 1px 5px rgba(0, 74, 116, 0.06);
  --shadow-lg: 0 6px 24px rgba(0, 46, 89, 0.14);
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
.ico { flex: none; display: block; }
.muted { color: var(--ink-2); }
.small { font-size: 13.5px; }
.strong { font-weight: 700; }
.strike { text-decoration: line-through; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.spacer { flex: 1; }
.danger-text { color: var(--danger) !important; }
.boot { display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; height: 100vh; color: var(--ink-2); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--blue-100); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Logo & Avatar ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: #0a0a0a; }
.logo-text { font-size: 29px; font-weight: 800; letter-spacing: -0.03em; }
.avatar {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  color: #fff; font-weight: 700; overflow: hidden; background: #1f3a52; letter-spacing: 0.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 40px; font-weight: 600; font-size: 15.5px;
  border: 1px solid transparent; white-space: nowrap; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16.5px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-round { border-radius: 40px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); }
.btn-outline { border-color: #7a8ea3; color: var(--ink); background: #fff; }
.btn-outline:hover:not(:disabled) { border-color: var(--ink); background: #f8fafc; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: #f2f5f9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a92b22; }
.btn-pill { height: 42px; padding: 0 18px; border-radius: 40px; border: 1px solid #7a8ea3; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--ink); background: #fff; }
.btn-pill:hover { border-color: var(--ink); background: #f8fafc; }
.btn-pill.sm { height: 34px; font-size: 14px; padding: 0 12px; }
.btn-ghost-light { color: #fff; height: 38px; padding: 0 14px; border-radius: 40px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); flex: none;
}
.icon-btn:hover:not(:disabled) { background: #eef2f7; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn.light { color: #fff; }
.icon-btn.light:hover { background: rgba(255, 255, 255, 0.12); }
.link-strong { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-strong:hover { text-decoration: underline; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns 0.2s; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #fff;
  border-right: 1px solid var(--line-2); padding: 22px 12px 24px; display: flex; flex-direction: column; z-index: 30;
}
.sb-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 0 14px; height: 56px; }
.sb-collapse { color: var(--ink); }
.sb-create { padding: 22px 0 18px; }
.sb-create .btn { border-color: #5c718a; font-size: 17px; }
.sb-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 14px;
  border-radius: 8px; font-weight: 600; font-size: 16.5px; color: var(--ink); text-align: left; width: 100%;
}
.nav-item:hover { background: #f5f8fc; }
.nav-item.active { background: var(--blue-50); color: var(--blue); }
.nav-item.active::before { content: ''; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 4px; border-radius: 0 4px 4px 0; background: var(--blue); }
.nav-item .caret { margin-left: auto; margin-right: auto; margin-left: 4px; }
.nav-pill { border: 1px solid var(--line-2); background: #f5f9ff; margin: 18px 0 10px; }
.shell.collapsed { grid-template-columns: 84px minmax(0, 1fr); }
.shell.collapsed .logo-text,
.shell.collapsed .nav-item span,
.shell.collapsed .nav-item .caret,
.shell.collapsed .sb-create span { display: none; }
.shell.collapsed .sb-top { flex-direction: column; height: auto; gap: 10px; padding: 0; }
.shell.collapsed .sb-collapse { transform: rotate(180deg); }
.shell.collapsed .sb-create .btn { padding: 0; width: 52px; margin: 0 auto; display: flex; }
.shell.collapsed .nav-item { justify-content: center; padding: 0; }
.sb-backdrop { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 92px; display: flex; align-items: center; gap: 14px; padding: 0 36px; background: #fff; }
.topbar-logo .logo-text { font-size: 22px; }
.topbar-logo svg { width: 26px; height: 26px; }
.avatar-btn { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); padding: 2px; border-radius: 30px; }
.avatar-btn:hover .avatar { box-shadow: 0 0 0 3px var(--blue-100); }
.content { flex: 1; display: flex; flex-direction: column; }
.mobile-only { display: none !important; }

.help-fab {
  position: fixed; right: 22px; bottom: 22px; width: 62px; height: 62px; border-radius: 50%;
  background: #0b2a45; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 40;
}
.help-fab:hover { background: #12395d; }

/* ---------- Seitenkopf ---------- */
.page-head { padding: 4px 42px 0; background: #fff; border-bottom: 1px solid var(--line-2); }
.page-title-row { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.page-title-row h1 { font-size: 30px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.info-btn { width: 32px; height: 32px; color: var(--ink); }
.page-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.tabs { display: flex; gap: 42px; margin-top: 26px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 0 0 15px; font-weight: 600; font-size: 17px; color: var(--ink-2); border-bottom: 4px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--blue); }
.tabs.inner { margin: 0; padding: 18px 26px 0; gap: 32px; border-bottom: 1px solid var(--line-2); }
.tabs.inner .tab { font-size: 16px; }

.page-body { flex: 1; background: var(--bg); padding: 24px 42px 120px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.search { position: relative; display: flex; align-items: center; width: 452px; max-width: 100%; }
.search .ico { position: absolute; left: 16px; color: var(--ink); pointer-events: none; }
.search input {
  width: 100%; height: 54px; border: 1px solid #a6b7c9; border-radius: 8px; background: #fff;
  padding: 0 16px 0 48px; font-size: 16.5px; outline: none;
}
.search input::placeholder { color: var(--ink-2); }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.lead { font-size: 16px; margin-bottom: 22px; max-width: 720px; }
.section-title { font-size: 18px; margin: 30px 0 14px; }
.note { margin-top: 22px; max-width: 760px; }

/* ---------- Ereignistyp-Karten ---------- */
.owner-row { display: flex; align-items: center; gap: 12px; margin: 30px 0 20px; font-size: 17px; }
.owner-row .link-strong { font-size: 17px; }
.et-list { display: flex; flex-direction: column; gap: 22px; }
.et-card {
  position: relative; display: flex; align-items: flex-start; gap: 18px; background: #fff;
  border: 1px solid var(--line-2); border-radius: 8px; padding: 24px 28px 24px 30px; box-shadow: var(--shadow);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.et-card::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 11px; border-radius: 8px 0 0 8px; background: var(--c); }
.et-card:hover { box-shadow: 0 2px 12px rgba(0, 74, 116, 0.1); }
.et-card.selected { border-color: var(--blue); }
.et-card.off { background: #fbfbfc; }
.et-card.off::before { background: #c5d2df; }
.et-card.off h3, .et-card.off .et-meta { color: #8aa0b5; }
.et-main { flex: 1; min-width: 0; cursor: pointer; }
.et-main h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; word-break: break-word; }
.et-main:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.et-meta { color: var(--ink-2); font-size: 17px; margin-top: 2px; }
.et-actions { display: flex; align-items: center; gap: 10px; align-self: center; flex: none; }
.badge-off { font-size: 13px; font-weight: 700; color: var(--ink-2); background: #eef2f6; padding: 3px 10px; border-radius: 20px; }
.cb { position: relative; flex: none; width: 24px; height: 24px; margin-top: 4px; cursor: pointer; }
.cb input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cb span { position: absolute; inset: 0; border: 2px solid #a6b7c9; border-radius: 5px; background: #fff; transition: 0.12s; }
.cb input:checked + span { background: var(--blue); border-color: var(--blue); }
.cb input:checked + span::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.cb input:focus-visible + span { box-shadow: 0 0 0 3px var(--blue-100); }
.no-results { color: var(--ink-2); padding: 30px 0; text-align: center; }
.bulk-bar {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 35;
  display: flex; align-items: center; gap: 8px; background: #0b2a45; color: #fff; padding: 8px 10px 8px 24px;
  border-radius: 40px; min-width: 420px; box-shadow: var(--shadow-lg); font-weight: 600;
}

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; vertical-align: middle; margin-right: 8px; }
.dot.lg { width: 22px; height: 22px; }

/* ---------- Leerer Zustand ---------- */
.empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; }
.empty.compact { border: 0; border-radius: 0; }
.empty-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin: 0 auto 18px; }
.empty h3 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 460px; margin: 0 auto 20px; }

/* ---------- Chips / Tabellen ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; background: #eef2f6; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip-green { background: #e3f6ec; color: var(--green); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip-btn { padding: 8px 16px; border-radius: 30px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.chip-btn:hover { border-color: var(--ink-3); }
.chip-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-card { background: #fff; border: 1px solid var(--line-2); border-radius: 8px; overflow-x: auto; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); font-weight: 700; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcff; }
.table td .btn-pill { margin-right: 6px; }
.person { display: flex; align-items: center; gap: 12px; }
.person.lg { gap: 18px; margin-bottom: 26px; font-size: 18px; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field-label { font-weight: 700; font-size: 14.5px; }
.field-label i { color: var(--danger); font-style: normal; }
.field-hint { font-size: 13px; color: var(--ink-2); }
.field-hint a { color: var(--blue); font-weight: 600; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea,
.inline-add input, .iv input, .copy-box input, .rf-route input, .rf-route select, textarea.code {
  width: 100%; height: 46px; border: 1px solid #a6b7c9; border-radius: 8px; padding: 0 14px; background: #fff; font-size: 15.5px; outline: none;
}
.field textarea, textarea.code { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.45; }
textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; margin-top: 14px; }
.field input:focus, .field select:focus, .field textarea:focus, .iv input:focus, .inline-add input:focus, .rf-route input:focus, .rf-route select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.field input:disabled { background: #f4f6f9; color: var(--ink-3); }
.field input[readonly] { background: #f7f9fb; }
.field select, .select-pill { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b3558' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px !important; }
.select-pill { height: 42px; border: 1px solid #a6b7c9; border-radius: 40px; padding: 0 18px; background-color: #fff; font-weight: 600; outline: none; cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid #a6b7c9; border-radius: 8px; overflow: hidden; background: #fff; }
.input-prefix:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.input-prefix span { background: #f2f5f9; color: var(--ink-2); padding: 0 10px; display: flex; align-items: center; font-size: 14px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.input-prefix input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; height: 46px; padding: 0 12px; outline: none; }
.form-error { background: #fdecea; color: var(--danger); padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.check-line { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 16px; cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--blue); }
.readonly { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 8px; background: #f4f6f9; flex-wrap: wrap; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.swatch.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.copy-box { display: flex; gap: 8px; margin-top: 16px; }
.copy-box input { background: #f7f9fb; }
.inline-add { display: flex; gap: 8px; align-items: center; }
.inline-add input { flex: 1; }
.opt-list, .simple-list, .poll-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.opt-list li { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; background: #f5f8fc; border-radius: 8px; }
.simple-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.simple-list .dot { margin-top: 5px; }
.rf-route { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.rf-route input, .rf-route select { flex: 1; min-width: 0; }

/* Switch */
.switch { position: relative; width: 46px; height: 26px; border-radius: 20px; background: #b9c6d4; transition: background 0.15s; flex: none; display: inline-block; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.switch.on { background: var(--blue); }
.switch.on::after { transform: translateX(20px); }
.switch.sm { width: 36px; height: 20px; }
.switch.sm::after { width: 14px; height: 14px; }
.switch.sm.on::after { transform: translateX(16px); }
.toggle-line { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-weight: 600; }

/* ---------- Overlay: Modal & Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11, 30, 50, 0.45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; opacity: 0; transition: opacity 0.18s; }
.overlay.in { opacity: 1; }
.modal { width: 100%; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform 0.18s; }
.overlay.in .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 22px 6px 26px; }
.modal-head h2 { font-size: 21px; }
.modal-body { padding: 12px 26px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.summary-box { background: #f5f8fc; border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 3px; }

.overlay-drawer { padding: 0; justify-content: flex-end; align-items: stretch; overflow: hidden; }
.drawer { width: 100%; height: 100%; background: #fff; display: flex; flex-direction: column; transform: translateX(30px); transition: transform 0.22s; box-shadow: var(--shadow-lg); }
.overlay-drawer.in .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line-2); }
.drawer-head h2 { font-size: 22px; word-break: break-word; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 28px 24px; }
.drawer-foot { display: flex; gap: 10px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line-2); }
.ed-section { padding: 18px 0 6px; border-bottom: 1px solid var(--line-2); }
.ed-section:last-of-type { border-bottom: 0; }
.ed-section h4 { font-size: 17px; margin-bottom: 18px; }

/* ---------- Menü ---------- */
.menu { position: fixed; z-index: 200; background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 46, 89, 0.18), 0 0 0 1px rgba(0, 46, 89, 0.06); padding: 8px 0; max-height: 70vh; overflow-y: auto; animation: pop 0.12s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 18px; text-align: left; font-weight: 500; font-size: 15px; color: var(--ink); }
.menu-item:hover { background: #f2f6fb; }
.menu-item.danger { color: var(--danger); }
.menu-label { flex: 1; display: flex; flex-direction: column; }
.menu-label small { color: var(--ink-2); font-size: 13px; font-weight: 400; }
.menu-sep { height: 1px; background: var(--line-2); margin: 6px 0; }
.menu-header { padding: 8px 18px 4px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); }

/* ---------- Toast ---------- */
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: #0b2a45; color: #fff; padding: 12px 20px; border-radius: 40px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: 0.22s; }
.toast.in { opacity: 1; transform: none; }
.toast.error { background: var(--danger); }

/* ---------- Meetings ---------- */
.mt-card { background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.mt-day { background: #f8fafc; padding: 14px 26px; font-weight: 700; border-bottom: 1px solid var(--line-2); }
.mt-item { border-bottom: 1px solid var(--line-2); }
.mt-item:last-child { border-bottom: 0; }
.mt-row { display: grid; grid-template-columns: 220px 1fr 180px auto; align-items: center; gap: 16px; padding: 18px 26px; }
.mt-time { display: flex; align-items: center; font-size: 15.5px; }
.mt-info { display: flex; flex-direction: column; gap: 2px; }
.mt-info b:first-child { font-size: 16px; }
.mt-hosts { font-size: 14px; }
.mt-toggle { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 600; }
.mt-toggle .ico { transition: transform 0.15s; }
.mt-item.open .mt-toggle .ico { transform: rotate(90deg); }
.mt-detail { display: grid; grid-template-columns: 220px 1fr; gap: 16px 30px; padding: 4px 26px 24px; }
.mt-detail-actions { display: flex; flex-direction: column; gap: 10px; }
.mt-dl { display: grid; grid-template-columns: 1fr; margin: 0; gap: 2px; }
.mt-dl dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-top: 10px; }
.mt-dl dt:first-child { margin-top: 0; }
.mt-dl dd { margin: 0; color: var(--ink-2); }
.mt-dl a { color: var(--blue); }
.mt-created { grid-column: 2; }

/* ---------- Verfügbarkeit ---------- */
.av-card { background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); }
.av-head { display: flex; align-items: center; gap: 12px; padding: 22px 28px; border-bottom: 1px solid var(--line-2); }
.sched-picker { font-size: 20px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin: 2px 0; color: var(--blue); }
.sched-picker .muted { font-weight: 500; font-size: 16px; }
.saved-ind { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; font-size: 14px; opacity: 0; transition: opacity 0.2s; }
.saved-ind.show { opacity: 1; }
.av-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.av-weekly { padding: 24px 28px; border-right: 1px solid var(--line-2); }
.av-overrides { padding: 24px 28px; }
.av-weekly h3, .av-overrides h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 4px; }
.av-weekly > p, .av-overrides > p { margin-bottom: 20px; }
.wk-row { display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; }
.wk-day { padding-top: 4px; }
.day-badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e7edf6; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.day-badge.on { background: var(--ink); color: #fff; }
.wk-intervals { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.unavail { height: 46px; display: flex; align-items: center; color: var(--ink-2); }
.iv { display: flex; align-items: center; gap: 8px; }
.iv input { width: 128px; flex: none; }
.iv-error { color: var(--danger); font-size: 13px; font-weight: 600; }
.wk-tools { display: flex; gap: 2px; padding-top: 3px; }
.tz-line { display: flex; align-items: center; gap: 6px; margin-top: 18px; }
.ov-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ov-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 12px 16px; border: 1px solid var(--line-2); border-radius: 8px; }

/* ---------- Diverse Seiten ---------- */
.hero-card { display: flex; gap: 26px; align-items: flex-start; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 30px; box-shadow: var(--shadow); }
.hero-ico { width: 84px; height: 84px; flex: none; border-radius: 20px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.hero-text h2 { font-size: 22px; margin-bottom: 8px; }
.hero-text p { max-width: 640px; }
.tpl-grid, .int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tpl { display: flex; flex-direction: column; gap: 6px; text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 20px; box-shadow: var(--shadow); }
.tpl:hover { border-color: var(--blue); }
.tpl-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 6px; }
.int-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 20px; box-shadow: var(--shadow); }
.int-logo { width: 48px; height: 48px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 22px; display: grid; place-items: center; }
.int-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.int-body b { font-size: 17px; }
.int-body p { margin-top: 6px; }
.int-foot { display: flex; align-items: center; gap: 8px; }
.int-card > .btn { align-self: flex-start; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--blue); }
.plan-flag { position: absolute; top: -12px; left: 22px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.plan h3 { font-size: 20px; }
.plan-price { font-size: 30px; font-weight: 800; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.plan li .ico { color: var(--blue); margin-top: 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.stat b { font-size: 32px; font-weight: 800; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.an-card { background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 22px; box-shadow: var(--shadow); }
.an-card h3 { font-size: 17px; margin-bottom: 18px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 30px; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 12px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.hbar b { text-align: right; }
.vbars { display: flex; align-items: flex-end; gap: 10px; height: 180px; margin-bottom: 14px; }
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.vbar-col { width: 100%; max-width: 38px; background: var(--blue); border-radius: 6px 6px 0 0; min-height: 3px; }
.vbar-val { font-size: 13px; font-weight: 700; }
.vbar-lab { font-size: 13px; color: var(--ink-2); }
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; font-weight: 700; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-item p { padding: 0 22px 20px; color: var(--ink-2); }
.settings-card { max-width: 680px; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 30px; box-shadow: var(--shadow); }
.settings-card hr { border: 0; border-top: 1px solid var(--line-2); margin: 28px 0 22px; }
.settings-card h3 { margin-bottom: 8px; }
.settings-card .form-actions { margin-top: 14px; }
.kbd-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.kbd-list li { display: flex; align-items: center; gap: 6px; }
.kbd-list span { margin-left: 10px; color: var(--ink-2); }
kbd { font-family: inherit; font-weight: 700; font-size: 13px; background: #f2f5f9; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 8px; }
.poll-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; }
.poll-row.booked { border-color: var(--green); background: #f3fbf7; }
.poll-count { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }

/* ================= Öffentliche Seiten ================= */
body.public { background: #f7f8fa; }
.pub { min-height: 100vh; padding: 66px 16px 40px; }
.pub-card {
  position: relative; display: flex; max-width: 1060px; margin: 0 auto; background: #fff; border: 1px solid #e3e5e8;
  border-radius: 10px; box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08); min-height: 640px; overflow: hidden;
}
.pub-card.booking { max-width: 900px; transition: max-width 0.25s; }
.pub-card.booking.with-times { max-width: 1100px; }
.pub-card.booking.step-form { max-width: 1060px; }
.pub-card.narrow { max-width: 700px; display: block; min-height: 0; padding: 40px 48px 48px; }
.pub-card.landing { max-width: 1000px; display: block; padding: 56px 48px; min-height: 0; }

.pub-left { position: relative; width: 340px; flex: none; border-right: 1px solid #e3e5e8; padding: 28px 26px 24px; display: flex; flex-direction: column; }
.back-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e3e5e8; color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.back-btn:hover { background: var(--blue-50); }
.pl-host { margin-bottom: 14px; }
.pl-name { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.pl-title { font-size: 28px; font-weight: 700; margin-bottom: 22px; color: #1a1a1a; word-break: break-word; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 14px; color: #5f6773; font-weight: 600; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts li .ico { margin-top: 1px; }
.facts li.strong { color: #1a1a1a; }
.pl-desc { color: #1a1a1a; white-space: normal; font-size: 15px; line-height: 1.55; }
.pl-foot { margin-top: auto; padding-top: 30px; display: flex; gap: 16px; }
.pl-foot a { color: var(--blue); }
.former { margin-bottom: 18px; }
.former .strike { display: flex; gap: 8px; color: #5f6773; font-weight: 600; margin-top: 4px; }

.pub-right { flex: 1; min-width: 0; padding: 28px 32px 28px; }
.pr-title, .bk-form-wrap h2 { font-size: 21px; font-weight: 700; color: #1a1a1a; margin: 10px 0 24px; }
.cal-wrap { display: flex; gap: 28px; }
.cal { flex: 1; min-width: 0; max-width: 470px; }
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 18px; }
.cal-month { font-size: 16.5px; color: #1a1a1a; min-width: 150px; text-align: center; }
.cal-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); background: var(--blue-50); }
.cal-arrow:hover:not(:disabled) { background: var(--blue-100); }
.cal-arrow:disabled { background: none; color: #b9bec5; cursor: default; }
.cal-grid { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 8px; justify-items: center; }
.cal-wd { font-size: 12px; font-weight: 600; color: #1a1a1a; padding: 6px 0 10px; letter-spacing: 0.03em; }
.cal-day { position: relative; width: 46px; height: 46px; border-radius: 50%; font-size: 16.5px; color: #1a1a1a; }
.cal-day:disabled { color: #a3a8ae; cursor: default; }
.cal-day.avail { background: var(--blue-50); color: var(--blue); font-weight: 700; }
.cal-day.avail:hover { background: #d9e7ff; }
.cal-day.sel, .cal-day.sel:hover { background: var(--blue); color: #fff; }
.cal-day.today::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-none { position: absolute; left: 6%; right: 6%; top: 40%; background: #fff; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12); border-radius: 8px; padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; }
.cal-none .btn { color: var(--blue); border-color: var(--blue); }
.tz-block { margin-top: 26px; }
.tz-block b { color: #1a1a1a; font-size: 15px; }
.tz-val { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #1a1a1a; }

.times { width: 230px; flex: none; animation: slidein 0.22s ease-out; }
.no-anim .times, .no-anim .slot-next { animation: none; }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } }
.times-head { font-size: 16px; color: #1a1a1a; margin: 6px 0 22px; height: 28px; display: flex; align-items: center; }
.slot-list { display: flex; flex-direction: column; gap: 10px; max-height: 470px; overflow-y: auto; padding-right: 6px; }
.slot { height: 52px; border: 1px solid rgba(0, 107, 255, 0.5); border-radius: 6px; color: var(--blue); font-weight: 700; font-size: 16px; flex: none; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.slot small { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.slot:hover { border: 2px solid var(--blue); }
.slot-pair { display: flex; gap: 8px; flex: none; }
.slot-pair .slot, .slot-next { flex: 1; min-width: 0; }
.slot.picked { background: #666a73; border-color: #666a73; color: #fff; }
.slot-next { height: 52px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; animation: slidein 0.18s ease-out; }
.slot-next:hover { background: var(--blue-dark); }

.bk-form-wrap { max-width: 520px; }
.bk-form-wrap .field-label { color: #1a1a1a; }
#addGuests { margin: -4px 0 20px; color: var(--blue); border-color: var(--blue); }
.legal { margin: 6px 0 20px; }

/* Bestätigung */
.confirm .cf-head { text-align: center; padding-bottom: 26px; border-bottom: 1px solid #e3e5e8; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.confirm h1 { font-size: 24px; display: flex; align-items: center; gap: 10px; color: #1a1a1a; }
.cf-check { width: 30px; height: 30px; border-radius: 50%; background: #13a35a; color: #fff; display: grid; place-items: center; }
.cf-box { border: 1px solid #e3e5e8; border-radius: 10px; padding: 22px 24px 6px; margin: 26px 0 22px; }
.cf-box h3 { font-size: 19px; margin-bottom: 16px; color: #1a1a1a; }
.cf-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cf-links { display: flex; gap: 24px; justify-content: center; margin-top: 22px; }
.cf-links a { color: var(--blue); font-weight: 600; }
.cf-more { text-align: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid #e3e5e8; }
.cx-wrap h1 { font-size: 24px; margin-bottom: 4px; }
.cx-wrap .btn-danger { margin-right: 6px; }

/* Zielseite */
.landing-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 32px; border-bottom: 1px solid #e3e5e8; }
.landing-head h1 { font-size: 22px; color: #1a1a1a; }
.landing-head p { max-width: 520px; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0; margin-top: 10px; }
.lp-item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 50px 26px 20px; border-bottom: 1px solid #e3e5e8; border-radius: 6px; }
.lp-item:hover { background: #f7f9fc; }
.lp-title { display: flex; align-items: center; font-size: 18px; color: #1a1a1a; }
.lp-title .dot { margin-right: 12px; }
.lp-item .muted { padding-left: 34px; }
.lp-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #1a1a1a; }

.pub-msg { text-align: center; padding: 30px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pub-msg h2 { font-size: 22px; }

/* Umfrage & Routing öffentlich */
.poll-pub h2 { font-size: 18px; margin: 10px 0 16px; }
.vote-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.vote { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #d5dbe2; border-radius: 8px; cursor: pointer; }
.vote:hover { border-color: var(--blue); }
.vote input { position: absolute; opacity: 0; pointer-events: none; }
.vote-box { width: 24px; height: 24px; border-radius: 6px; border: 2px solid #a6b7c9; display: grid; place-items: center; color: transparent; flex: none; }
.vote input:checked + .vote-box { background: var(--blue); border-color: var(--blue); color: #fff; }
.vote:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.vote-text { flex: 1; display: flex; flex-direction: column; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: #f0f9f4; color: #0d6b41; padding: 14px 16px; border-radius: 8px; font-weight: 600; margin-top: 10px; }

/* ================= Anmeldung ================= */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 56px 16px 40px; background: #f7f8fa; }
.auth-logo { margin-bottom: 32px; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid #e3e5e8; border-radius: 12px; box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06); padding: 36px 36px 30px; }
.auth-card h1 { font-size: 24px; text-align: center; margin-bottom: 24px; }
.auth-card .notice { margin: 0 0 20px; font-weight: 500; }
.auth-card .btn-lg { margin-top: 6px; }
.auth-links { text-align: center; margin-top: 16px; }
.auth-links a, .auth-switch a { color: var(--blue); font-weight: 600; }
.auth-switch { text-align: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--ink-2); }
.auth-card .muted { margin-bottom: 18px; }

/* ================= Responsiv ================= */
@media (max-width: 1100px) {
  .mt-row { grid-template-columns: 170px 1fr auto; }
  .mt-hosts { display: none; }
  .av-cols { grid-template-columns: 1fr; }
  .av-weekly { border-right: 0; border-bottom: 1px solid var(--line-2); }
}

@media (max-width: 960px) {
  .shell, .shell.collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform 0.22s; box-shadow: var(--shadow-lg); }
  .shell.sb-open .sidebar { transform: none; }
  .shell.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(11, 30, 50, 0.4); z-index: 29; }
  .sb-collapse { display: none !important; }
  .shell.collapsed .logo-text, .shell.collapsed .nav-item span, .shell.collapsed .sb-create span, .shell.collapsed .nav-item .caret { display: initial; }
  .shell.collapsed .nav-item { justify-content: flex-start; padding: 0 14px; }
  .shell.collapsed .sb-create .btn { width: 100%; padding: 0 26px; }
  .shell.collapsed .sb-top { flex-direction: row; height: 56px; padding: 6px 6px 0 14px; }
  .mobile-only { display: inline-flex !important; }
  .topbar { height: 68px; padding: 0 16px; border-bottom: 1px solid var(--line-2); }
  .page-head { padding: 12px 16px 0; }
  .page-title-row { flex-wrap: wrap; }
  .page-title-row h1 { font-size: 25px; }
  .tabs { gap: 26px; margin-top: 16px; }
  .page-body { padding: 20px 16px 110px; }
  .et-card { flex-wrap: wrap; padding: 20px 18px 18px 26px; }
  .et-main h3 { font-size: 19px; }
  .et-meta { font-size: 15px; }
  .et-actions { width: 100%; justify-content: flex-end; padding-left: 42px; }
  .bulk-bar { min-width: 0; left: 16px; right: 16px; transform: none; }
  .help-fab { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (max-width: 860px) {
  .pub { padding: 0; }
  .pub-card, .pub-card.booking, .pub-card.narrow, .pub-card.landing { flex-direction: column; border-radius: 0; border: 0; min-height: 100vh; box-shadow: none; }
  .pub-card.narrow, .pub-card.landing { padding: 40px 20px; }
  .pub-left { width: auto; border-right: 0; border-bottom: 1px solid #e3e5e8; padding: 24px 20px 12px; }
  .pl-foot { display: none; }
  .pub-right { padding: 20px 16px 40px; }
  .cal-wrap { flex-direction: column; }
  .cal { max-width: none; }
  .cal-day { width: 42px; height: 42px; }
  .times { width: auto; }
  .slot-list { max-height: none; }
  .mt-row { grid-template-columns: 1fr auto; padding: 16px; }
  .mt-time { grid-column: 1 / -1; }
  .mt-detail { grid-template-columns: 1fr; padding: 4px 16px 20px; }
  .mt-created { grid-column: 1; }
  .hero-card { flex-direction: column; padding: 22px; }
}

@media (max-width: 560px) {
  .row-2 { grid-template-columns: 1fr; }
  .search { width: 100%; }
  .owner-row { flex-wrap: wrap; }
  .page-actions .btn-lg { height: 44px; padding: 0 16px; font-size: 15px; }
  .btn-pill span { display: none; }
  .btn-pill { padding: 0 12px; }
  .iv input { width: 108px; }
  .wk-row { gap: 8px; }
  .hbar { grid-template-columns: 100px 1fr 26px; }
  .drawer-body { padding: 8px 18px 24px; }
}
