/* ============================================================
   SmartRezeption Kundenportal · Gestaltung „Angenommen" (Herbst 2026)
   Dieselbe Marke wie smartrezeption.de: Hanken Grotesk, Ink, Messing,
   Papier. Geladen NACH _head.ejs und portal.css, nur für die Marke
   SmartRezeption (body.brand-smartrezeption), überschreibt gezielt.
   Rückweg: die <link>-Zeile in _head.ejs entfernen.
   ============================================================ */

@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/hanken-grotesk-700.woff2') format('woff2'); }

/* ---------- Farben (hell) ---------- */
body.brand-smartrezeption {
  --bg: #F4F0E8; --bg-deep: #ECE6DA; --surface: #FBF9F5; --surface2: #F3EEE4; --field: #FFFFFF;
  --ink: #181B1A; --soft: #3B3F3C; --muted: #62665F;
  --line: #DCD3C2; --line2: #E8E1D4;
  --brass: #B8843A; --brass2: #85601F; --brass3: #6F4E1B; --brass-soft: #EFE3CC; --brass-on-dark: #D6A55A;
  --navy: #181B1A; --navy2: #222624; --on-navy: #F2EDE3; --on-navy-soft: #B9B3A7; --on-brass: #FFFFFF;
  --green: #1E9E6A; --green-text: #157A50; --green-bg: #E3F1E8;
  --amber: #7A5300; --amber-bg: #F6EBD3;
  --red: #A93226; --red-bg: #F7E4E0; --red-line: #E9C3BC;
  --chip: #EAE4D8;
  --shadow-lift: 0 1px 0 rgba(24, 27, 26, .03), 0 18px 40px -28px rgba(60, 44, 20, .35);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
/* ---------- Farben (dunkel) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.brand-smartrezeption {
    --bg: #121413; --bg-deep: #0F1110; --surface: #191C1A; --surface2: #1F2321; --field: #1C1F1D;
    --ink: #EFEAE0; --soft: #CFC9BD; --muted: #9D988D;
    --line: #2E322F; --line2: #262A27;
    --brass: #C9974C; --brass2: #D6A55A; --brass3: #E2B66F; --brass-soft: #2A2419; --brass-on-dark: #D6A55A;
    --navy: #0A0B0A; --navy2: #161917; --on-navy: #F2EDE3; --on-navy-soft: #B9B3A7; --on-brass: #181B1A;
    --green: #3CC489; --green-text: #5BD69E; --green-bg: #13291F;
    --amber: #E3B35B; --amber-bg: #2B2214;
    --red: #F08A7A; --red-bg: #2C1714; --red-line: #5A2A23;
    --chip: #262A27;
    --shadow-lift: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] body.brand-smartrezeption {
  --bg: #121413; --bg-deep: #0F1110; --surface: #191C1A; --surface2: #1F2321; --field: #1C1F1D;
  --ink: #EFEAE0; --soft: #CFC9BD; --muted: #9D988D;
  --line: #2E322F; --line2: #262A27;
  --brass: #C9974C; --brass2: #D6A55A; --brass3: #E2B66F; --brass-soft: #2A2419; --brass-on-dark: #D6A55A;
  --navy: #0A0B0A; --navy2: #161917; --on-navy: #F2EDE3; --on-navy-soft: #B9B3A7; --on-brass: #181B1A;
  --green: #3CC489; --green-text: #5BD69E; --green-bg: #13291F;
  --amber: #E3B35B; --amber-bg: #2B2214;
  --red: #F08A7A; --red-bg: #2C1714; --red-line: #5A2A23;
  --chip: #262A27;
  --shadow-lift: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
.brand-smartrezeption { background: var(--bg); color: var(--ink); font-feature-settings: "kern", "liga", "calt"; text-rendering: optimizeLegibility; }
.brand-smartrezeption a { color: var(--brass2); text-underline-offset: 3px; }
.brand-smartrezeption :is(a, button, summary, input, select, textarea, .btn, [tabindex]):focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 8px; }
.brand-smartrezeption main { max-width: 1080px; padding: 44px 48px 110px; }

/* ---------- Seitenleiste ---------- */
.brand-smartrezeption .sidebar { background: var(--bg); border-right: 1px solid var(--line); }
.brand-smartrezeption .sb-top { padding: 26px 22px 18px; }
.brand-smartrezeption .brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; color: var(--ink); }
.brand-smartrezeption .brand .acc { color: var(--brass2); }
.brand-smartrezeption .brand .mark { color: var(--ink); }
.brand-smartrezeption .sb-nav { padding: 6px 14px; gap: 1px; }
.brand-smartrezeption .sb-nav .sec { font-weight: 600; font-size: .74rem; letter-spacing: 0; text-transform: none; color: var(--muted); padding: 18px 12px 8px; }
.brand-smartrezeption .sb-nav a { color: var(--soft); font-weight: 500; font-size: .95rem; padding: 9px 12px; border-radius: 12px; }
.brand-smartrezeption .sb-nav a svg { width: 18px; height: 18px; stroke-width: 1.8; opacity: .7; }
.brand-smartrezeption .sb-nav a:hover { background: var(--surface2); color: var(--ink); }
.brand-smartrezeption .sb-nav a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.brand-smartrezeption .sb-nav a.on svg { opacity: 1; color: var(--brass); }
.brand-smartrezeption .sb-nav a.on::before { left: -14px; top: 10px; bottom: 10px; width: 3px; background: var(--brass); }
.brand-smartrezeption .sb-foot { border-top: 1px solid var(--line); padding: 14px; }
.brand-smartrezeption .sb-acc:hover, .brand-smartrezeption .sb-acc.on { background: var(--surface2); }
.brand-smartrezeption .sb-acc .av { background: var(--ink); color: var(--bg); border-radius: 50%; font-weight: 700; }
.brand-smartrezeption .sb-acc .nm { font-weight: 600; }
.brand-smartrezeption .sb-logout { background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); border-radius: 999px; font-weight: 500; }
.brand-smartrezeption .sb-logout:hover { box-shadow: inset 0 0 0 1px var(--red-line); color: var(--red); background: var(--red-bg); }
.brand-smartrezeption .trust { color: var(--muted); }

/* ---------- Handy-Kopf ---------- */
@media (max-width: 860px) {
  .brand-smartrezeption .portal-mobile-header { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); }
  .brand-smartrezeption .portal-menu > summary { border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 999px; font-weight: 600; padding: 8px 16px; color: var(--ink); }
  .brand-smartrezeption .portal-menu[open] > summary { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .brand-smartrezeption .portal-mobile-nav { background: var(--bg); border-bottom-color: var(--line); }
  .brand-smartrezeption .portal-mobile-nav > a { font-size: 1rem; font-weight: 500; color: var(--soft); border-radius: 12px; }
  .brand-smartrezeption .portal-mobile-nav a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
  .brand-smartrezeption .portal-mobile-nav a.on svg { color: var(--brass); }
  .brand-smartrezeption .portal-mobile-nav button { background: transparent; border-radius: 999px; color: var(--soft); }
  .brand-smartrezeption main { padding: 28px 18px 80px; }
}

/* ---------- Typografie ---------- */
.brand-smartrezeption h1 { font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.04; letter-spacing: -.038em; margin: 0 0 10px; text-wrap: balance; }
.brand-smartrezeption h2 { font-weight: 700; font-size: 1.18rem; letter-spacing: -.018em; line-height: 1.25; }
.brand-smartrezeption .lead { color: var(--soft); font-size: 1.06rem; line-height: 1.6; max-width: 62ch; margin-bottom: 32px; }
.brand-smartrezeption .page-head { margin-bottom: 30px; }
.brand-smartrezeption .ex { color: var(--muted); }
.brand-smartrezeption .muted { color: var(--muted); }

/* ---------- Flächen ---------- */
.brand-smartrezeption .card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lift); padding: 26px 28px; margin-bottom: 22px; }
.brand-smartrezeption .card-h { gap: 13px; margin-bottom: 20px; }
.brand-smartrezeption .card-h .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--brass-soft); color: var(--brass2); }
.brand-smartrezeption .card-h .ic svg { width: 19px; height: 19px; stroke-width: 1.8; }
.brand-smartrezeption .card-h .sub { color: var(--muted); font-size: .88rem; }

/* Kennzahlen: Zahlen statt Kästen, wie die Zusagen auf der Landing */
.brand-smartrezeption .grid { gap: 0; margin-bottom: 30px; border-top: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.brand-smartrezeption .stat { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 20px 24px 6px 0; }
.brand-smartrezeption .stat + .stat { padding-left: 24px; border-left: 1px solid var(--line2); }
.brand-smartrezeption .stat .k { font-weight: 600; font-size: .84rem; text-transform: none; letter-spacing: 0; color: var(--muted); }
.brand-smartrezeption .stat .k svg { display: none; }
.brand-smartrezeption .stat .v { font-weight: 700; font-size: 2.5rem; letter-spacing: -.045em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.brand-smartrezeption .stat .v small { color: var(--muted); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.brand-smartrezeption .stat .s { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.brand-smartrezeption .meter { height: 4px; background: var(--line2); margin-top: 14px; }
.brand-smartrezeption .meter > i { background: var(--brass); }
.brand-smartrezeption .meter > i.over { background: var(--red); }

/* ---------- Tabellen ---------- */
.brand-smartrezeption table { font-size: .95rem; }
.brand-smartrezeption th { font-weight: 600; font-size: .78rem; text-transform: none; letter-spacing: 0; color: var(--muted); padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.brand-smartrezeption td { padding: 16px 14px; border-bottom: 1px solid var(--line2); }
.brand-smartrezeption tr.clickable { transition: background .2s; }
.brand-smartrezeption tr.clickable:hover { background: var(--surface2); }

/* ---------- Kennzeichen ---------- */
.brand-smartrezeption .badge { font-weight: 600; font-size: .76rem; padding: 4px 10px; border-radius: 999px; letter-spacing: 0; }
.brand-smartrezeption .badge.teal { background: var(--brass-soft); color: var(--brass3); }
.brand-smartrezeption .badge.gray { background: var(--chip); color: var(--soft); }
.brand-smartrezeption .badge.amber { background: var(--amber-bg); color: var(--amber); }
.brand-smartrezeption .badge.red { background: var(--red-bg); color: var(--red); }
.brand-smartrezeption .badge.green { background: var(--green-bg); color: var(--green-text); }

/* ---------- Formulare ---------- */
.brand-smartrezeption .label { font-weight: 600; font-size: .94rem; }
.brand-smartrezeption :is(input:not([type]), input[type=text], input[type=search], input[type=url], input[type=tel], input[type=time], input[type=email], input[type=password], input[type=number], textarea, select) { background: var(--field); color: var(--ink); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; }
.brand-smartrezeption :is(input, textarea, select):hover:not(:focus):not(:disabled) { border-color: color-mix(in srgb, var(--ink) 28%, var(--line)); }
.brand-smartrezeption :is(input, textarea, select):focus { border-color: var(--brass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 22%, transparent); }
.brand-smartrezeption input[type=file]::file-selector-button { background: var(--surface2); color: var(--ink); border-color: var(--line); border-radius: 999px; }
.brand-smartrezeption .toggle { border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); }
.brand-smartrezeption .toggle:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.brand-smartrezeption .toggle:has(input:checked) { border-color: var(--brass); background: var(--brass-soft); }
.brand-smartrezeption .toggle input { accent-color: var(--brass2); }
.brand-smartrezeption .toggle .t-main { font-weight: 600; }
.brand-smartrezeption .field-top .fl { font-weight: 600; }
.brand-smartrezeption .field-top .fv { background: var(--brass-soft); color: var(--brass3); }
.brand-smartrezeption input[type=range].slider { background: var(--line); }
.brand-smartrezeption input[type=range].slider::-webkit-slider-thumb { background: var(--field); border-color: var(--brass2); }
.brand-smartrezeption input[type=range].slider::-moz-range-thumb { background: var(--field); border-color: var(--brass2); }
.brand-smartrezeption .seg { background: var(--surface2); border-color: var(--line); border-radius: 999px; }
.brand-smartrezeption .seg label { font-weight: 600; border-radius: 999px; }
.brand-smartrezeption .seg label:has(input:checked) { background: var(--field); color: var(--ink); box-shadow: 0 1px 3px rgba(24, 27, 26, .14); }

/* ---------- Knöpfe ---------- */
.brand-smartrezeption .btn { font-weight: 600; font-size: .98rem; border-radius: 999px; padding: 13px 24px; letter-spacing: -.005em; transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s, border-color .2s; }
.brand-smartrezeption .btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.brand-smartrezeption .btn-primary:hover { background: var(--ink); transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(24, 27, 26, .6); }
.brand-smartrezeption .btn-ghost { background: transparent; color: var(--ink); border: 0; box-shadow: inset 0 0 0 1.5px var(--line); }
.brand-smartrezeption .btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transform: none; }
.brand-smartrezeption .btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: 999px; }
.brand-smartrezeption .btn-danger { background: transparent; color: var(--red); border: 0; box-shadow: inset 0 0 0 1.5px var(--red-line); }
.brand-smartrezeption .btn-danger:hover { background: var(--red-bg); transform: none; }

/* ---------- Hinweise ---------- */
.brand-smartrezeption .flash { border-radius: 16px; padding: 14px 18px; font-weight: 500; }
.brand-smartrezeption .flash.ok { background: var(--green-bg); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); color: var(--green-text); }
.brand-smartrezeption .flash.err { background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red); }
.brand-smartrezeption .flash.warn { background: var(--amber-bg); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); color: var(--amber); }

/* ---------- Aufklappbares ---------- */
.brand-smartrezeption details.adv, .brand-smartrezeption details.kn { background: var(--surface); border-color: var(--line); border-radius: 18px; }
/* Klappbereich als solcher erkennbar: derselbe Pfeil wie bei .portal-section. */
.brand-smartrezeption details.kn > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); margin: 0 4px 0 auto; transition: transform .2s; flex: none; }
.brand-smartrezeption details.kn[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.brand-smartrezeption details.kn > summary:has(> [style*="margin-left:auto"])::after { margin-left: 14px; }
.brand-smartrezeption details.kn > summary:hover::after { border-color: var(--ink); }
.brand-smartrezeption details.adv > summary { font-weight: 600; }
.brand-smartrezeption details.adv > summary .ic { background: var(--surface2); color: var(--soft); border-radius: 50%; }

/* ---------- Gesprächsverlauf ---------- */
.brand-smartrezeption .tline .who { font-weight: 600; color: var(--muted); }
.brand-smartrezeption .tline .bubble { background: var(--surface2); color: var(--ink); border-radius: 16px; padding: 10px 14px; }
.brand-smartrezeption .tline.bot .bubble { background: var(--brass-soft); }
.brand-smartrezeption .tline.bot .who { color: var(--brass2); }

/* ---------- Bausteine aus portal.css ---------- */
.brand-smartrezeption .portal-start { background: var(--navy); border: 0; border-radius: 26px; color: var(--on-navy); box-shadow: var(--shadow-lift); }
.brand-smartrezeption .portal-start h2 { color: var(--on-navy); }
.brand-smartrezeption .portal-start .ex, .brand-smartrezeption .portal-start p { color: var(--on-navy-soft); }
.brand-smartrezeption .portal-start .btn-primary { background: var(--on-navy); color: #181B1A; border-color: var(--on-navy); }
.brand-smartrezeption .portal-start .btn-ghost { box-shadow: inset 0 0 0 1.5px rgba(242, 237, 227, .3); color: var(--on-navy); }
.brand-smartrezeption .portal-payment-gate { background: var(--amber-bg); }
.brand-smartrezeption .portal-launch-steps .current .portal-launch-index, .brand-smartrezeption .setup-steps .current .setup-step-index { background: var(--brass2); border-color: var(--brass2); color: var(--on-brass); }
.brand-smartrezeption .portal-actions > a { background: var(--surface); border-color: var(--line); border-radius: 18px; }
.brand-smartrezeption .portal-actions > a:hover { border-color: var(--ink); }
.brand-smartrezeption .portal-action-icon { color: var(--brass); }
.brand-smartrezeption .portal-actions strong { font-weight: 600; }
.brand-smartrezeption .location-switcher label { font-weight: 600; }

/* ---------- Korrekturen: Links, die keine Links sein wollen ---------- */
.brand-smartrezeption .sb-acc, .brand-smartrezeption .sb-acc:hover { color: var(--ink); }
.brand-smartrezeption .portal-actions > a, .brand-smartrezeption .portal-actions > a:hover { color: var(--ink); }
/* Kennzahlen untereinander: Linie darüber statt daneben */
@media (max-width: 640px) {
  .brand-smartrezeption .grid { grid-template-columns: 1fr; border-top: 0; }
  .brand-smartrezeption .stat, .brand-smartrezeption .stat + .stat { padding: 18px 0 14px; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Übersicht ---------- */
.brand-smartrezeption .ov-head { margin-bottom: 34px; }
.brand-smartrezeption .ov-date { margin: 0 0 12px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.brand-smartrezeption .ov-head h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 14px; }
.brand-smartrezeption .ov-number { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.brand-smartrezeption .ov-number .status-dot { font-size: .92rem; font-weight: 500; color: var(--muted); }
.brand-smartrezeption .ov-number a { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; border-bottom: 1.5px solid var(--line); }
.brand-smartrezeption .ov-number a:hover { border-bottom-color: var(--brass); }
.brand-smartrezeption .ov-section { margin-bottom: 30px; }
.brand-smartrezeption .ov-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.brand-smartrezeption .ov-section-head h2 { margin: 0; font-size: 1.3rem; display: flex; align-items: baseline; gap: 10px; }
.brand-smartrezeption .ov-section-head a { font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-smartrezeption .ov-section-head a::after { content: " →"; color: var(--brass); }
.brand-smartrezeption .ov-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.brand-smartrezeption .ov-alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; margin-bottom: 26px; }
.brand-smartrezeption .ov-alert-go { font-weight: 600; white-space: nowrap; }
.brand-smartrezeption .stat .v.v-text { font-size: 1.6rem; text-transform: capitalize; letter-spacing: -.03em; margin-top: 16px; }
.brand-smartrezeption .stat .s a { color: var(--ink); font-weight: 600; text-decoration: none; }
.brand-smartrezeption .stat .s a::after { content: " →"; color: var(--brass); }
.brand-smartrezeption .portal-actions { margin-top: 10px; }

/* ---------- Anrufliste (Übersicht und Anrufe) ---------- */
.brand-smartrezeption .card.card-list { padding: 6px 26px; }
.brand-smartrezeption .call-list { list-style: none; margin: 0; padding: 0; }
.brand-smartrezeption .call-row { position: relative; display: grid; grid-template-columns: minmax(150px, 2fr) minmax(0, 5fr) minmax(150px, 2fr); gap: 8px 28px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line2); }
.brand-smartrezeption .call-row:first-child { border-top: 0; }
.brand-smartrezeption .call-row.is-urgent::before { content: ""; position: absolute; left: -26px; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.brand-smartrezeption .cr-who { display: grid; gap: 3px; min-width: 0; }
.brand-smartrezeption .cr-link, .brand-smartrezeption .cr-name { font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; overflow-wrap: anywhere; }
/* Ganze Zeile klickbar über den echten Link; Formulare liegen darüber */
.brand-smartrezeption .cr-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.brand-smartrezeption .call-row:has(.cr-link):hover { background: linear-gradient(90deg, transparent, var(--surface2) 8%, var(--surface2) 92%, transparent); }
.brand-smartrezeption .cr-link:focus-visible { outline: none; }
.brand-smartrezeption .cr-link:focus-visible::after { outline: 2px solid var(--brass); outline-offset: 2px; }
.brand-smartrezeption .cr-meta { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.brand-smartrezeption .cr-what { min-width: 0; }
.brand-smartrezeption .cr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.brand-smartrezeption .cr-concern { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.4; }
.brand-smartrezeption .cr-sum { margin: 3px 0 0; color: var(--soft); font-size: .95rem; line-height: 1.55; }
.brand-smartrezeption .cr-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; text-align: right; }
.brand-smartrezeption .cr-done { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; }
.brand-smartrezeption .cr-done .btn { min-height: 36px; padding: 6px 14px; }
.brand-smartrezeption .cr-state .badge { position: relative; z-index: 2; }
.brand-smartrezeption .cr-dur { flex-basis: 100%; font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.brand-smartrezeption .call-list-compact .call-row { padding: 16px 0; }
.brand-smartrezeption .list-foot { margin: -6px 0 0; }
.brand-smartrezeption .chip { min-height: 38px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; color: var(--soft); font-weight: 600; }
.brand-smartrezeption .chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.brand-smartrezeption .chip-on, .brand-smartrezeption .chip-on:hover { background: var(--ink); box-shadow: none; color: var(--bg); }
@media (max-width: 760px) {
  .brand-smartrezeption .card.card-list { padding: 4px 18px; }
  .brand-smartrezeption .call-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
  .brand-smartrezeption .call-row.is-urgent::before { left: -18px; }
  .brand-smartrezeption .cr-who { grid-column: 1; }
  .brand-smartrezeption .cr-state { grid-column: 2; grid-row: 1; align-items: flex-start; }
  .brand-smartrezeption .cr-state .cr-dur { display: none; }
  .brand-smartrezeption .cr-what { grid-column: 1 / -1; }
  .brand-smartrezeption .cr-done .badge { display: none; }
  .brand-smartrezeption .ov-alert { flex-direction: column; align-items: flex-start; }
}

/* ---------- Assistent: Waldgrün aus studio.css durch die Marke ersetzen ---------- */
.brand-smartrezeption #assistant-studio { --studio-forest: var(--navy); }
.brand-smartrezeption #assistant-studio .studio-sound { color: var(--on-navy); }
.brand-smartrezeption #assistant-studio .studio-wave { color: var(--brass-on-dark); }
.brand-smartrezeption #assistant-studio #selected-voice-tone { color: var(--on-navy-soft); }
.brand-smartrezeption #assistant-studio .studio-savebar .btn-primary, .brand-smartrezeption #assistant-studio #studio-testcall { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.brand-smartrezeption #assistant-studio [role=alert] { color: var(--red); }

/* ---------- Anmeldung, Passwort ---------- */
.brand-smartrezeption.is-auth { background: var(--bg); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .brand-smartrezeption *, .brand-smartrezeption *::before, .brand-smartrezeption *::after { transition: none !important; animation: none !important; }
}

/* ---------- Anmeldung: Markenfläche links, Formular rechts ---------- */
.brand-smartrezeption .auth-wrap:has(.auth-split) { max-width: none; padding: 0; }
.brand-smartrezeption .auth-split { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.brand-smartrezeption .auth-panel { background: var(--navy); color: var(--on-navy); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 44px clamp(32px, 5vw, 72px); }
.brand-smartrezeption .auth-panel .brand { color: var(--on-navy); font-size: 1.15rem; }
.brand-smartrezeption .auth-panel .brand .mark { color: var(--on-navy); }
.brand-smartrezeption .auth-panel .brand .acc { color: var(--brass-on-dark); }
.brand-smartrezeption .auth-kicker { margin: 0 0 18px; font-size: .9rem; font-weight: 600; color: var(--brass-on-dark); }
.brand-smartrezeption .auth-line { margin: 0; font-size: clamp(2.2rem, 3.8vw, 3.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.brand-smartrezeption .auth-direct { margin: 0; font-size: .92rem; color: var(--on-navy-soft); }
.brand-smartrezeption .auth-direct a { color: var(--on-navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(242, 237, 227, .3); }
.brand-smartrezeption .auth-form { align-self: center; justify-self: center; width: min(100%, 440px); padding: 48px 24px; }
.brand-smartrezeption .auth-form h1 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 12px; }
.brand-smartrezeption .auth-form .lead { margin-bottom: 30px; font-size: 1rem; }
.brand-smartrezeption .auth-form .flash { margin-bottom: 18px; }
.brand-smartrezeption .auth-fields { display: grid; gap: 18px; }
.brand-smartrezeption .auth-fields .label { margin: 0 0 8px; }
.brand-smartrezeption .auth-pw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.brand-smartrezeption .auth-pw-head a { font-size: .86rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.brand-smartrezeption .auth-pw-head a:hover { color: var(--ink); }
.brand-smartrezeption .auth-fields .btn { width: 100%; margin-top: 8px; min-height: 52px; }
.brand-smartrezeption .auth-new { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.brand-smartrezeption .auth-new a { color: var(--ink); font-weight: 600; text-decoration: none; }
.brand-smartrezeption .auth-new a::after { content: " →"; color: var(--brass); }
.brand-smartrezeption .auth-back a::after { content: none; }
.brand-smartrezeption .auth-back a::before { content: "← "; color: var(--brass); }
@media (max-width: 860px) {
  .brand-smartrezeption .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .brand-smartrezeption .auth-panel { padding: 22px 20px 26px; gap: 18px; }
  .brand-smartrezeption .auth-line { font-size: 1.6rem; }
  .brand-smartrezeption .auth-kicker, .brand-smartrezeption .auth-direct { display: none; }
  .brand-smartrezeption .auth-form { padding: 32px 20px 48px; }
}
.brand-smartrezeption .auth-new a { white-space: nowrap; }

/* ============================================================
   Premium-Durchgang (31.10.2026): ruhiger, ein Guss.
   ============================================================ */
/* Einrichtung: dunkle Markenfläche wie „Ihr Assistent ist bereit“, auch im Hellmodus lesbar. */
.brand-smartrezeption .card.hero { background: var(--navy); color: var(--on-navy); border: 0; }
.brand-smartrezeption .card.hero h2 { color: var(--on-navy); }
.brand-smartrezeption .card.hero p { color: var(--on-navy-soft); }
.brand-smartrezeption .card.hero .status-dot { color: var(--on-navy); }
.brand-smartrezeption .card.hero .btn-primary { background: var(--on-navy); color: #181B1A; border-color: var(--on-navy); }
.brand-smartrezeption .portal-start .status-dot { color: var(--on-navy); }
/* Kennzeichen überall als Text mit Punkt statt farbiger Pille. */
.brand-smartrezeption .badge { background: none !important; padding: 0; border-radius: 0; display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--soft); text-transform: none; letter-spacing: 0; }
.brand-smartrezeption .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.brand-smartrezeption .badge.green::before { background: var(--green); }
.brand-smartrezeption .badge.amber::before, .brand-smartrezeption .badge.teal::before { background: var(--brass); }
.brand-smartrezeption .badge.red { color: var(--red); }
.brand-smartrezeption .badge.red::before { background: var(--red); }
.brand-smartrezeption .badge.green { color: var(--soft); }
.brand-smartrezeption .badge.amber, .brand-smartrezeption .badge.teal { color: var(--soft); }
/* Kartenköpfe ohne Symbol im Kreis */
.brand-smartrezeption .card-h .ic { display: none; }
/* Zugeklappte Bereiche: Liste mit Trennlinien statt einzelner Karten */
.brand-smartrezeption details.portal-section { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; margin: 0; padding: 0; overflow: visible; }
.brand-smartrezeption details.portal-section:not(:has(+ details.portal-section)) { border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.brand-smartrezeption .portal-section > summary { padding: 18px 0; font-weight: 600; }
.brand-smartrezeption .portal-section > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin-right: 4px; transition: transform .2s; flex: none; }
.brand-smartrezeption .portal-section[open] > summary::after { content: ""; transform: rotate(-135deg); }
.brand-smartrezeption .portal-section > form, .brand-smartrezeption .portal-section-body { padding: 0 0 22px; }
.brand-smartrezeption .settings-more { margin: 30px 0 0; }
/* Eine Feldgröße in allen Formularen */
.brand-smartrezeption :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), textarea, select) { font-size: 1rem; }
/* Speichern: unten mitlaufen erst bei Änderungen */
.brand-smartrezeption .settings-savebar { border-radius: 16px; background: var(--surface); border-color: var(--line); }
.brand-smartrezeption [data-settings-form][data-dirty=true] .settings-savebar { box-shadow: 0 10px 30px -12px rgba(24, 27, 26, .35); }
.brand-smartrezeption [data-settings-form][data-dirty=true] [data-settings-status] { color: var(--ink); font-weight: 600; }
/* Firmenwissen: Kategorie normal geschrieben */
.brand-smartrezeption .knowledge-meta .badge { text-transform: none; letter-spacing: 0; }
/* Anschluss auf der Einrichtungsseite: dieselbe ruhige Zeile wie die übrigen zugeklappten Bereiche */
.brand-smartrezeption details.setup-connection { background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 0; }
.brand-smartrezeption .setup-connection > summary { padding: 18px 0; }
.brand-smartrezeption .setup-connection > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin-right: 4px; transition: transform .2s; flex: none; }
.brand-smartrezeption .setup-connection[open] > summary::after { content: ""; transform: rotate(-135deg); }
.brand-smartrezeption .setup-connection-body { padding: 0 0 22px; }
.brand-smartrezeption .settings-index a { color: var(--soft); } .brand-smartrezeption .settings-index a:hover { color: var(--ink); }
.brand-smartrezeption .fwd-code { color: var(--ink); } .brand-smartrezeption .ov-forward-toggle::after { vertical-align: middle; }

/* ============================================================
   Zweite Prüfrunde (31.10.2026)
   ============================================================ */
/* Skip-Link: die Linkfarbe der Marke darf ihn nicht überschreiben (Messing auf Schwarz war 3,05:1). */
.brand-smartrezeption .skip, .brand-smartrezeption .skip:focus { color: var(--on-navy); background: var(--navy); }
/* Eine Größe und eine Farbe für alle Kontrollkästchen. */
.brand-smartrezeption input[type=checkbox] { accent-color: var(--brass2); width: 18px; height: 18px; flex: none; }
/* Gesperrte Knöpfe sehen gesperrt aus, nicht kaputt (sonst greift der Browser-Standard). */
.brand-smartrezeption .btn:disabled, .brand-smartrezeption .btn[disabled] { background: transparent; color: var(--muted); border: 0; box-shadow: inset 0 0 0 1.5px var(--line); opacity: 1; transform: none; }
.brand-smartrezeption .btn-primary:disabled { background: var(--surface2); }
/* Filterzähler in voller gedämpfter Farbe statt Deckkraft (4,31:1). */
.brand-smartrezeption .chip .chip-n { color: inherit; }
/* Datum in der Anrufzeile nicht mitten im Datum umbrechen. */
.brand-smartrezeption .cr-meta time { white-space: nowrap; }
.brand-smartrezeption #assistant-studio .studio-savebar .btn-primary:disabled, .brand-smartrezeption #assistant-studio #studio-testcall:disabled { background: var(--surface2); border-color: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
/* Firmenwissen: eine Liste mit Trennlinien in einer Karte, wie die Anrufliste. */
.brand-smartrezeption #knowledge-list:has(.knowledge-entry) { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lift); padding: 4px 28px; margin-bottom: 22px; }
.brand-smartrezeption .knowledge-entry.card { background: transparent; border: 0; border-top: 1px solid var(--line2); border-radius: 0; box-shadow: none; margin: 0; padding: 18px 0 12px; }
.brand-smartrezeption .knowledge-entry.card:first-child { border-top: 0; }
.brand-smartrezeption .knowledge-entry.card[hidden] { display: none; }
.brand-smartrezeption .knowledge-entry .knowledge-meta { font-size: .84rem; color: var(--muted); }
.brand-smartrezeption .knowledge-entry h2 { font-size: 1.02rem; margin: 6px 0 4px; }
.brand-smartrezeption .knowledge-entry .knowledge-copy { margin: 0 0 4px; color: var(--soft); line-height: 1.6; }
.brand-smartrezeption .knowledge-edit { border-top: 0; padding-top: 0; }
.brand-smartrezeption .knowledge-edit > summary { display: inline-flex; justify-content: flex-start; gap: 8px; min-height: 36px; font-size: .9rem; color: var(--ink); }
.brand-smartrezeption .knowledge-edit > summary .knowledge-chevron { width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.brand-smartrezeption .knowledge-edit[open] > summary .knowledge-chevron { transform: rotate(-135deg); }
.brand-smartrezeption .knowledge-edit[open] { padding-bottom: 10px; }
@media (max-width: 760px) { .brand-smartrezeption #knowledge-list:has(.knowledge-entry) { padding: 4px 18px; } }
/* Öffnungszeiten am Handy: schmaleres Polster, damit auch eine 12-Stunden-Anzeige ganz sichtbar bleibt. */
@media (max-width: 600px) { .brand-smartrezeption .settings-day-times input[type=time] { padding-left: 10px; padding-right: 6px; } }
