/* GroupsACTIVITY Backend — Design-System (aus der Design-Spec, Prototyp-Tokens). */

:root {
  /* Akzent (Marke) */
  --accent: #a855f7;
  --accent-600: #9333ea;
  --accent-700: #7e22ce;
  --accent-50: #faf5ff;
  --accent-100: #f3e8ff;
  --accent-200: #e9d5ff;

  /* Neutrals */
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-2: #f1f5f9;
  --page: #f8fafc;
  --surface: #ffffff;

  /* Sidebar (dunkel) */
  --sb-bg: #171717;
  --sb-text: #d4d4d4;
  --sb-hover: #262626;
  --sb-muted: #6b7280;

  /* Primär (Aktionen) */
  --primary: #1e3a8a;

  /* Status */
  --ok-bg: #f0fdf4;    --ok-border: #bbf7d0;    --ok-text: #15803d;
  --info-bg: #eff6ff;  --info-border: #bfdbfe;  --info-text: #2563eb;
  --warn-bg: #fffbeb;  --warn-border: #fed7aa;  --warn-text: #c2410c;
  --err-bg: #fef2f2;   --err-border: #fecaca;   --err-text: #b91c1c;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--body);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--sb-bg);
  color: var(--sb-text);
  display: flex;
  flex-direction: column;
}

.main { flex: 1; min-width: 0; }

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #2a2a2a;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #a855f7 0%, #c026d3 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title { font-size: 12.5px; font-weight: 600; color: #fff; line-height: 1.3; }
.brand-sub { font-size: 10px; color: var(--sb-muted); }

/* ---------- Nav ---------- */
.nav { padding: 8px; display: flex; flex-direction: column; gap: 2px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sb-text);
  text-decoration: none;
}

.nav-link:hover { background: var(--sb-hover); }

.nav-link.is-active {
  background: var(--sb-hover);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav-icon { flex-shrink: 0; }

/* ---------- Sidebar-Account ---------- */
.sidebar-account {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid #2a2a2a;
}

.sidebar-account-name {
  font-size: 11.5px;
  color: var(--sb-muted);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sb-text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.sidebar-logout:hover { color: #fff; text-decoration: underline; }

/* ---------- Anmeldung (Admin-Backend) ----------
   Eigene Seite ohne Sidebar, aber dieselben Tokens, dieselbe Schrift und
   dasselbe Markenzeichen wie das Backend dahinter. */
.login-body { background: var(--page); }

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 16px;
}

.login-brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }

.login-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7 0%, #c026d3 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.login-wordmark { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.login-tagline { font-size: 12.5px; color: var(--muted); }

.login-card { width: 100%; max-width: 380px; padding: 28px; text-align: center; }
.login-title { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.login-sub { margin: 0 0 20px; font-size: 13px; color: var(--muted); line-height: 1.5; }

.login-flash {
  text-align: left;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: var(--err-bg);
  border: 1px solid var(--err-border);
  color: var(--err-text);
}

.login-btn { width: 100%; justify-content: center; padding: 11px 18px; font-size: 14px; }

/* ---------- Page header ---------- */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 18px 28px;
}

.page-header h1 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.page-header .sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.content { padding: 28px; }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* ---------- KPIs ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.kpi { padding: 18px 20px; }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi-value { margin-top: 8px; font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.kpi-sub { margin-top: 4px; font-size: 11px; color: var(--faint); }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--line-2);
  color: var(--body);
}

.badge--accent { background: var(--accent-50); border-color: var(--accent-200); color: var(--accent-700); }
.badge--info { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }
.badge--ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }
.badge--warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--line-2); }
.btn--primary { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn--primary:hover { background: var(--accent-700); }
.btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn--sm { padding: 5px 10px; font-size: 12px; }
.btn form, form.button_to { margin: 0; }

/* ---------- Flash ---------- */
.flash {
  margin: 20px 28px -8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.flash--ok { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-text); }
.flash--warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); }

/* ---------- Toolbar / Suche ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.search { display: flex; gap: 8px; flex: 1; min-width: 240px; }

.search input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

.search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-100);
}

.result-count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }

table.data thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--line-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data tbody td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.data tbody tr:hover { background: var(--accent-50); }
table.data .cell-title { font-weight: 500; color: var(--ink); }
table.data .cell-muted { color: var(--muted); white-space: nowrap; }
.cats { display: flex; flex-wrap: wrap; gap: 4px; }

.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pagination .info { font-size: 12.5px; color: var(--muted); }
.pagination .controls { display: flex; gap: 8px; }

/* ---------- Detail-Ansicht ---------- */
.detail-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.detail-h2 { font-size: 13px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; margin: 24px 0 10px; }
.detail-card { padding: 16px 20px; }
.detail-card + .detail-card { margin-top: 10px; }
.detail-kv { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.detail-kv:last-child { border-bottom: 0; }
.detail-kv .k { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.detail-kv .v { color: var(--ink); }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12.5px; }
.muted { color: var(--muted); }
.lang-block .lang-head { margin-bottom: 8px; }
.lang-block .lead { font-weight: 500; color: var(--body); margin: 0 0 8px; }
.lang-block .long { color: var(--body); line-height: 1.55; }
.lang-block .long p { margin: 0 0 8px; }
.ext-link { color: var(--accent-700); word-break: break-all; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.img-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--line-2); }
.table-link { color: var(--accent-700); text-decoration: none; font-weight: 500; }
.table-link:hover { text-decoration: underline; }

/* ---------- Formular (FormSection / FRow / FField) ---------- */
.provider-form { max-width: 760px; }

.form-section { padding: 18px 20px; margin-bottom: 16px; }
.form-section__head { margin-bottom: 14px; }
.form-section__head h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }
.form-section__hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

.f-row { display: flex; gap: 16px; flex-wrap: wrap; }
.f-row + .f-row { margin-top: 14px; }

.f-field { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 6px; }
.f-label { font-size: 12.5px; font-weight: 500; color: var(--body); }
.f-input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}
.f-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); }
.f-field.is-invalid .f-input { border-color: var(--err-border); }
.f-hint { margin: 0; font-size: 11.5px; color: var(--faint); }
.f-error { margin: 0; font-size: 11.5px; color: var(--err-text); font-weight: 500; }

/* Toggle (Aktiv) */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 9999px;
  background: var(--line);
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}
.switch input:checked + .switch__track { background: var(--accent-600); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px var(--accent-100); }
.switch__label { font-size: 13px; font-weight: 500; color: var(--body); }

.form-errors {
  padding: 14px 18px;
  margin-bottom: 16px;
  border-color: var(--err-border);
  background: var(--err-bg);
  color: var(--err-text);
}
.form-errors ul { margin: 8px 0 0; padding-left: 18px; }
.form-errors li { font-size: 13px; }

.form-actions { display: flex; gap: 10px; margin-top: 4px; }

/* Sprach-Feldgruppe (Titel/Beschreibung pro Locale) */
.lang-fields { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.lang-fields:first-child { padding-top: 0; }
.lang-fields__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--muted); }

/* CheckChips (Multi-Select über ein Closed-Set) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--body);
  cursor: pointer;
  user-select: none;
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:hover { border-color: var(--accent-200); background: var(--accent-50); }
.chip:has(input:checked) { background: var(--accent-50); border-color: var(--accent); color: var(--accent-700); font-weight: 500; }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-100); }

.f-row.toggles { gap: 24px; }

/* Bucket-Zeilen (altersgestaffelter Preis) */
.bucket-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.bucket-row .f-input { max-width: 120px; }
[data-dependent-fields-target="group"][hidden] { display: none; }

/* ---------- Baukasten (Drei-Spalten) ---------- */
.compose {
  display: grid;
  grid-template-columns: 270px 1fr 280px;
  gap: 16px;
  padding: 24px;
  align-items: start;
}
.compose-col { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.compose-col__head {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--line-2);
  border-bottom: 1px solid var(--line);
}

/* Links: Programm-Liste */
.plist { display: flex; flex-direction: column; }
.plist-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--body);
}
.plist-item:hover { background: var(--accent-50); }
.plist-item.is-active { background: var(--accent-50); border-left-color: var(--accent); }
.plist-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plist-ref { font-size: 11px; color: var(--faint); }
.plist-titel { margin-top: 4px; font-weight: 500; color: var(--ink); }
.plist-item.is-active .plist-titel { color: var(--accent-700); }
.plist-meta { margin-top: 2px; font-size: 11.5px; color: var(--muted); }

/* Mitte: Baukasten */
.compose-builder { padding-bottom: 8px; }
.day { border-bottom: 1px solid var(--line-2); }
.day-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: var(--page);
}
.day-items { padding: 8px 16px; display: flex; flex-direction: column; gap: 8px; }
.day-empty { padding: 8px 0; color: var(--faint); font-size: 12.5px; }

.item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.item-main { flex: 1; min-width: 0; }
.item-titel { font-weight: 500; color: var(--ink); }
.item-meta { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.item-provider { color: var(--muted); }
.item-preis { margin-top: 4px; font-size: 12px; color: var(--body); }
.item-notiz { margin-top: 4px; font-size: 12px; color: var(--muted); font-style: italic; }
.item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.iconbtn-form { margin: 0; }
.iconbtn {
  width: 28px; height: 28px; padding: 0;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); color: var(--body);
  font-size: 13px; cursor: pointer; line-height: 1;
}
.iconbtn:hover { background: var(--line-2); }
.iconbtn--danger:hover { background: var(--err-bg); border-color: var(--err-border); color: var(--err-text); }

/* Aktivität-Suche */
.activity-search { display: block; border-top: 1px solid var(--line); margin-top: 4px; padding: 12px 16px; }
.search-form { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.search-form .f-input { flex: 1; min-width: 120px; }
.search-results { display: flex; flex-direction: column; gap: 6px; }
.search-result { text-align: left; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--body); cursor: pointer; font: inherit; }
.search-result:hover { background: var(--accent-50); border-color: var(--accent-200); }
.search-empty { padding: 4px 0; }

/* Rechts: Zusammenfassung */
.compose-summary { padding-bottom: 16px; }
.summary-stats { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line-2); }
.summary-stat { display: flex; align-items: baseline; justify-content: space-between; }
.summary-stat span { font-size: 12.5px; color: var(--muted); }
.summary-stat strong { font-size: 15px; color: var(--ink); }
.summary-compare { padding: 12px 16px; font-size: 12.5px; color: var(--body); background: var(--info-bg); border-bottom: 1px solid var(--line-2); }
.summary-compare__note { margin-top: 4px; font-size: 11px; color: var(--muted); }
.summary-block { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.summary-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
.compose-summary .btn { margin: 12px 16px 0; }

@media (max-width: 1100px) {
  .compose { grid-template-columns: 1fr; }
}

/* ---------- Activity-Wizard ---------- */
.wizard-lock { margin: 0 0 16px; }

.wizard { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }

/* Linke Schritt-Navigation */
.wizard-nav { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wizard-progress { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--line-2); }
.wizard-progress__count { font-size: 18px; font-weight: 700; color: var(--ink); }
.wizard-progress__label { font-size: 12px; color: var(--muted); margin-left: 6px; }
.wizard-steps { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.wstep { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--body); border-left: 3px solid transparent; }
.wstep:hover { background: var(--accent-50); }
.wstep.is-active { background: var(--accent-50); border-left-color: var(--accent); }
.wstep-key { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; background: var(--line-2); color: var(--muted); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.wstep.is-active .wstep-key { background: var(--accent-600); color: #fff; }
.wstep.is-done .wstep-key { background: var(--ok-bg); color: var(--ok-text); }
.wstep-body { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.wstep-titel { font-size: 12.5px; font-weight: 500; }
.wstep.is-active .wstep-titel { color: var(--accent-700); }
.wstep-marks { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.wstep-check { color: var(--ok-text); font-weight: 700; }

/* Rechter Inhaltsbereich — linksbündig, volle Breite (keine Zentrierung) */
.wizard-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; text-align: left; }
.wizard-panel__head { border-bottom: 1px solid var(--line-2); padding-bottom: 12px; margin-bottom: 16px; }
.wizard-panel__head h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.wizard-panel__hint { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.wizard-form { max-width: none; }
.wizard-form .lang-fields:first-child { padding-top: 0; }
.wizard-saved { margin-bottom: 12px; padding: 8px 12px; border-radius: 8px; background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-text); font-size: 13px; font-weight: 500; }
.wizard-save { display: flex; gap: 10px; margin-top: 18px; }
.wizard-navrow { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }

.wizard-placeholder { padding: 28px; border: 1px dashed var(--line); border-radius: 10px; background: var(--page); }
.wizard-placeholder--locked { border-color: var(--warn-border); background: var(--warn-bg); }
.wizard-placeholder__title { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.wizard-readonly .lang-block { margin-bottom: 10px; }

.wizard-locknote { margin-bottom: 12px; padding: 8px 12px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); font-size: 13px; font-weight: 500; }

.wizard-error { margin-bottom: 12px; padding: 8px 12px; border-radius: 8px; background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err-text); font-size: 13px; }
.wizard-error strong { font-weight: 600; }
.wizard-error ul { margin: 6px 0 0; padding-left: 18px; }
.wizard-error p { margin: 4px 0 0; }

/* Feed-Banner: erklärt, dass Felder read-only aus dem guidle-Feed stammen. */
.feed-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: var(--info-bg); border: 1px solid var(--info-border); color: var(--info-text); font-size: 12.5px; line-height: 1.5; }
.feed-note strong { font-weight: 600; }

/* „Nur intern"-Hinweis (Schritt C). */
.intern-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); font-size: 12.5px; line-height: 1.5; }

/* Neutraler Info-Hinweis (Schritt F: Richtwert vs. buchbare Angebote). */
.info-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: var(--info-bg); border: 1px solid var(--info-border); color: var(--info-text); font-size: 12.5px; line-height: 1.5; }
.info-note strong { font-weight: 600; }

/* Read-only Feld (guidle-Quelle): Label mit Schloss-Tag + Wert. */
.ro-field { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.ro-field:last-child { border-bottom: 0; }
.ro-field__label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--body); margin-bottom: 4px; }
.ro-field__value { color: var(--ink); font-size: 13.5px; white-space: pre-line; }
.ro-lock { font-size: 10.5px; font-weight: 500; color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.ro-group { margin-bottom: 18px; }
.ro-group__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.wizard-teamgroup { margin: 10px 8px 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.wizard-teamgroup__head { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); padding: 2px 8px 6px; }
.wstep--team .wstep-key { font-size: 12px; }

.wizard-subhead { margin: 22px 0 10px; font-size: 13px; font-weight: 600; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.04em; }
.wizard-subhead--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* KI-Assistenz: Label-Zeile mit Aktion, Button, Meldung, Zeichenzähler. */
.f-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-btn { white-space: nowrap; }
.ai-btn[data-loading] { opacity: 0.7; cursor: progress; }
.ai-msg { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err-text); font-size: 12.5px; }
.char-count { font-size: 11px; color: var(--faint); }
.char-count--over { color: var(--err-text); font-weight: 600; }

/* Termin-Zeilen (Schritt D, own). */
.schedule-row { padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
.schedule-row__foot { display: flex; justify-content: flex-end; margin-top: 10px; }

/* Read-only OSM-Karte (Schritt B). Leaflet braucht eine feste Höhe. */
.mini-map { height: 240px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.map-empty { padding: 16px; border: 1px dashed var(--line); border-radius: 10px; background: var(--page); }

@media (max-width: 900px) {
  .wizard { grid-template-columns: 1fr; }
}

/* ---------- Scrollbar (aus dem Prototyp) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #9ca3af; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
