/* =====================================================================
   ImmoVisite · Theme  –  Designsystem "Praxis-Rundgang (Mix 01·04·20)"
   Quelle: handoff/reference/base.css + mix.css (1:1 übernommen) + App-Zusätze.
   Tokens zentral als CSS-Variablen – keine harten Farben in Templates.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- BASIS (Layout, Bausteine, Übergänge) ---------- */
:root {
  --bg: #f4fbfd; --surface: #ffffff; --surface-2: #eef7fa; --ink: #0d2240; --muted: #5d7187; --line: rgba(13,34,64,.1);
  --brand: #1b45c4; --brand-2: #0d9a8f; --accent: #3cc6dc; --ok: #0d9a6b; --hl: #1b45c4; --on-brand: #fff;
  --radius: 18px; --radius-sm: 12px; --shadow: 0 10px 30px -12px rgba(13,34,64,.25);
  --font-head: 'Space Grotesk', system-ui, sans-serif; --font-body: 'Space Grotesk', system-ui, sans-serif; --head-weight: 700; --head-ls: -.02em; --head-tt: none;
  --env: radial-gradient(ellipse at 30% 20%, #e8f8fc, #cfeaf2 60%, #b9dfe9);
  --info-ink: #0d2240; --info-muted: #4b6075;
  --room: #2f62e0;
  --dev-w: 400px; --dev-h: 840px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font-body); color: var(--ink); background: var(--env); -webkit-font-smoothing: antialiased; opacity: 0; transition: opacity .35s; }
body.ready { opacity: 1; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.stage { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: auto; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 7rem); padding: 32px clamp(16px, 4vw, 64px); overflow: hidden; }
.env { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.env i { position: absolute; }

.device { position: relative; z-index: 2; }
.device__frame { width: var(--dev-w); height: min(var(--dev-h), calc(100svh - 64px)); border-radius: 54px; padding: 12px; background: #0b0f14; box-shadow: 0 50px 100px -30px rgba(0,0,0,.55), 0 0 0 2px #2a3240 inset; }
.app { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; isolation: isolate; }
.app__bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 46px 18px 12px; background: var(--bar-bg, transparent); border-bottom: 1px solid var(--bar-line, transparent); }
.app__brand img { width: 30px; height: 30px; object-fit: contain; }
.sign { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.sign__no { font: 700 12px/1 'JetBrains Mono', ui-monospace, monospace; color: var(--on-brand); background: var(--room); padding: 6px 7px; border-radius: 7px; transition: background .4s; }
.sign__txt { display: flex; flex-direction: column; min-width: 0; }
.sign__txt b { font: var(--head-weight) 16px/1.1 var(--font-head); letter-spacing: var(--head-ls); text-transform: var(--head-tt); }
.sign__txt small { font-size: 11.5px; color: var(--muted); }
.app__bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.app__bell i { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; border: 2px solid var(--surface); }
.app__view { position: relative; z-index: 1; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 18px 24px; scrollbar-width: none; }
.app__view::-webkit-scrollbar { display: none; }
.app__nav { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px 26px; background: var(--nav-bg, var(--surface)); border-top: 1px solid var(--line); }
.app__nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 6px 2px; font-size: 10.5px; color: var(--muted); border-radius: 12px; transition: color .2s, background .2s; }
.app__nav button .ico { width: 22px; height: 22px; }
.app__nav button.is-on { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }

.scr { display: flex; flex-direction: column; gap: 14px; }
.rise { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--card-line, transparent); }
.pad { padding: 16px; }
.h1 { margin: 0; font: var(--head-weight) 28px/1.08 var(--font-head); letter-spacing: var(--head-ls); text-transform: var(--head-tt); }
.h1 small { display: block; margin-top: 6px; font: 500 13px/1.3 var(--font-body); color: var(--muted); text-transform: none; letter-spacing: 0; }
.h2 { margin: 6px 0 -2px; font: var(--head-weight) 18px/1.2 var(--font-head); letter-spacing: var(--head-ls); text-transform: var(--head-tt); }
.eyebrow { margin: 0; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); font-weight: 700; }
.lead { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.fine { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
.ok { color: var(--ok); } .hl { color: var(--hl); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--btn-radius, 14px); padding: 13px 16px; font-weight: 650; font-size: 14.5px; transition: transform .15s, filter .2s, background .2s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 20px -10px var(--brand); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn--block { width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 13px; border-radius: 999px; font-size: 13px; }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: transparent; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 700; }
.back { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; border: 0; background: none; color: var(--muted); font-size: 13px; padding: 0; }

/* Empfang */
.scr--empfang { min-height: 100%; justify-content: center; text-align: center; gap: 22px; padding-top: 10px; }
.welcome { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.welcome__icon { width: 108px; height: 108px; border-radius: 26px; box-shadow: 0 18px 40px -16px rgba(13,34,64,.5); margin-bottom: 10px; }
.checkin { padding: 18px; display: flex; flex-direction: column; gap: 10px; text-align: left; }

/* Wartezimmer */
.ticket { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 16px; overflow: hidden; }
.ticket__label { grid-column: 1 / -1; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ticket__no { font: 800 34px/1 var(--font-head); color: var(--brand); grid-row: span 2; }
.ticket__txt { font-size: 13.5px; line-height: 1.4; }
.ticket .btn { grid-column: 1 / -1; margin-top: 8px; padding: 10px; }
.vitals { padding: 16px; }
.vitals__head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.vitals__big { margin: 10px 0 2px; display: flex; flex-direction: column; }
.vitals__big b { font: 800 32px/1.05 var(--font-head); letter-spacing: -.02em; }
.vitals__big i { font-style: normal; font-size: 11px; color: var(--muted); }
.mini { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; text-align: left; border: 0; width: 100%; }
.mini .ico { width: 24px; height: 24px; color: var(--brand); margin-bottom: 4px; }
.mini i { font-style: normal; font-size: 12px; color: var(--muted); }
.mini b { font-size: 14.5px; }

/* Labor (Platzhalter-Rechner Phase 1) */
.lab { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.slider { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.slider span { display: flex; justify-content: space-between; color: var(--muted); }
.slider b { color: var(--ink); }
.slider input { width: 100%; accent-color: var(--brand); }
.result { padding: 6px 16px 16px; }
.result__total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px; margin-top: 6px; padding: 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.result__total span { font-weight: 650; }
.result__total b { font: 800 26px/1 var(--font-head); color: var(--brand); }
.result__total i { width: 100%; text-align: right; font-style: normal; font-size: 11px; color: var(--muted); }

/* apoBank-Kopf im Rechner (Partnerbank + aktuelle Konditionen) */
.apo { padding: 16px; border: 1px solid color-mix(in srgb, var(--room) 42%, var(--line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--room) 14%, var(--surface)), var(--surface) 70%); }
.apo__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.apo__mark { font: 800 22px/1 var(--font-head); letter-spacing: -.02em; color: var(--room); }
.apo__logo { height: 26px; width: auto; max-width: 160px; display: block; }
.apo__head small { color: var(--muted); font-size: 12.5px; }
.apo__sub { margin: 6px 0 12px; font-size: 12.5px; color: var(--muted); }
.apo__opts { display: flex; flex-direction: column; gap: 8px; }
.apo__opt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.apo__opt b { color: var(--ink); font-size: 14px; }
.apo__opt span { font-size: 12.5px; }
.apo__opt i { font-style: normal; font-weight: 700; color: var(--room); font-family: 'JetBrains Mono', monospace; }
.apo__opt.is-on { border-color: color-mix(in srgb, var(--room) 60%, transparent);
  background: color-mix(in srgb, var(--room) 12%, var(--surface)); }
.sum-row { display: flex; margin-bottom: 4px; }
.sum-field { display: flex; align-items: center; gap: 8px; width: 100%; }
.sum-field input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: 700 18px/1 'JetBrains Mono', monospace; }
.sum-field span { font: 700 16px/1 'JetBrains Mono', monospace; color: var(--muted); }
.apo-hint { display: flex; align-items: flex-start; gap: 12px; }
.apo-hint__ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--room) 14%, transparent); border: 1px solid color-mix(in srgb, var(--room) 30%, transparent); }
.apo-hint__ico .ico { width: 20px; height: 20px; stroke: var(--room); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Akte Tabs */
.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.tab { flex: 1; text-align: center; padding: 8px; border-radius: 9px; font-size: 13px; color: var(--muted); cursor: pointer; }
.tab.is-on { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--shadow); }

/* Visite */
.appt { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; padding: 14px; }
.appt__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 60px; border-radius: 14px; background: var(--brand); color: var(--on-brand); }

/* Toast */
.toast { position: absolute; z-index: 9; left: 16px; right: 16px; bottom: 96px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 13px; opacity: 0; transform: translateY(10px); transition: .3s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

/* Übergänge zwischen den Räumen */
.trans { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.t-door { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--door, var(--surface-2)); box-shadow: inset 0 0 0 1px var(--line); }
.t-door.l { left: 0; transform: translateX(-101%); } .t-door.r { right: 0; transform: translateX(101%); }
.t-door::after { content: ''; position: absolute; top: 46%; width: 6px; height: 54px; border-radius: 3px; background: var(--door-handle, var(--muted)); }
.t-door.l::after { right: 14px; } .t-door.r::after { left: 14px; }
.run-doors .t-door, .run-elevator .t-door { animation: door-l 1.16s cubic-bezier(.7,0,.3,1) both; }
.run-doors .t-door.r, .run-elevator .t-door.r { animation-name: door-r; }
.run-elevator .t-door { animation-duration: 1.36s; }
@keyframes door-l { 0% { transform: translateX(-101%); } 42%, 58% { transform: none; } 100% { transform: translateX(-101%); } }
@keyframes door-r { 0% { transform: translateX(101%); } 42%, 58% { transform: none; } 100% { transform: translateX(101%); } }
.t-sign, .t-floor { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 18px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font: 600 15px/1.1 var(--font-head); opacity: 0; animation: sign 1.16s ease both; white-space: nowrap; }
.t-sign b { font: 800 13px/1 'JetBrains Mono', ui-monospace, monospace; opacity: .85; }
.t-floor b { font: 800 40px/1 'JetBrains Mono', ui-monospace, monospace; } .t-floor small { font-size: 12px; opacity: .8; }
@keyframes sign { 0%, 30% { opacity: 0; transform: translate(-50%, -40%); } 45%, 60% { opacity: 1; transform: translate(-50%, -50%); } 75%, 100% { opacity: 0; } }
.t-ecg { position: absolute; left: 0; top: 50%; width: 100%; height: 30%; transform: translateY(-50%); }
.run-pulse { background: color-mix(in srgb, var(--bg) 0%, transparent); animation: pulsebg 1.24s ease both; }
@keyframes pulsebg { 0% { background: transparent; } 40%, 60% { background: var(--pulse-bg, #001a14); } 100% { background: transparent; } }
.t-ecg path { fill: none; stroke: var(--pulse-c, #39ff9c); stroke-width: 3; stroke-dasharray: 700; stroke-dashoffset: 700; animation: ecgrun 1.24s ease both; filter: drop-shadow(0 0 6px var(--pulse-c, #39ff9c)); }
@keyframes ecgrun { 0% { stroke-dashoffset: 700; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Handy: App bildschirmfüllend */
@media (max-width: 860px) {
  .stage { display: block; padding: 0; }
  .device__frame { width: 100vw; height: 100svh; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .app { border-radius: 0; }
  .app__bar { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .app__nav { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; } }

/* =====================================================================
   MIX 01·04·20 – Leitsystem (Raumfarben) × Radiologie (Schwarz/Blau) × Zukunft
   ===================================================================== */
:root { --bg: #04070c; --surface: rgba(14,24,38,.72); --surface-2: rgba(22,36,56,.7); --ink: #e8f4ff; --muted: #8aa3bd; --line: rgba(120,190,255,.14);
  --brand: var(--room); --brand-2: var(--room); --ok: #34d399; --hl: var(--room); --on-brand: #03070c; --ecg: var(--room);
  --head-ls: -.03em;
  --radius: 18px; --shadow: 0 0 0 1px rgba(100,180,255,.13), 0 20px 40px -22px rgba(0,0,0,.9);
  --env: radial-gradient(ellipse at 50% 115%, #0b2a52, #04070c 62%);
  --info-ink: #e8f4ff; --info-muted: #8aa3bd;
  --door: linear-gradient(180deg, #0b1626, #070e19); --door-handle: var(--tc, #4f8cff);
  --pulse-c: var(--tc, #4f8cff); --pulse-bg: #02060b; color-scheme: dark; }
.app { background: radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--room) 22%, #04070c), #04070c 62%); transition: background .6s; }
.env i:nth-child(1) { left: -50%; right: -50%; bottom: -10%; height: 52%; transform: perspective(520px) rotateX(70deg);
  background: linear-gradient(rgba(79,140,255,.28) 1px, transparent 1px) 0 0/60px 60px, linear-gradient(90deg, rgba(79,140,255,.28) 1px, transparent 1px) 0 0/60px 60px; }
.env i:nth-child(2) { inset: 0; background: repeating-linear-gradient(0deg, rgba(100,200,255,.035) 0 2px, transparent 2px 6px); }
.env i:nth-child(3) { left: -10%; right: -10%; bottom: 7%; height: 26px; transform: rotate(-6deg);
  background: linear-gradient(#4f8cff 0 4px, transparent 4px 11px, #19e3c1 11px 15px, transparent 15px 22px, #fbbf24 22px 26px); filter: drop-shadow(0 0 8px rgba(79,140,255,.7)); opacity: .9; }
.device__frame { background: #0a0f17; box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(100,180,255,.25) inset, 0 0 60px -20px var(--room); transition: box-shadow .6s; }
.app__bar { padding: 46px 0 0; flex-wrap: wrap; }
.app__brand { padding-left: 18px; } .app__bell { margin-right: 18px; background: var(--surface); }
.sign { order: 3; flex: 1 1 100%; margin-top: 12px; border-radius: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--room) 32%, transparent), transparent 85%); border-left: 4px solid var(--room); transition: border-color .4s; }
.sign__no { background: transparent; color: var(--room); border: 1px solid var(--room); font-size: 18px; padding: 10px; margin: 8px 0 8px 14px; box-shadow: 0 0 14px color-mix(in srgb, var(--room) 60%, transparent); }
.sign__txt b { font-size: 19px; color: #fff; } .sign__txt small { color: var(--muted); }
.app__view { padding-top: 16px; padding-bottom: 104px; }
.app__view--nohdr { padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
.logout-row { display: flex; justify-content: center; margin: 6px 0 2px; }
.logout-row a { color: var(--muted); font-size: 12.5px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.logout-row a:hover { color: var(--ink); }
.card, .prop { position: relative; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.card::before, .prop::before { content: ''; position: absolute; inset: 6px; pointer-events: none; border-radius: 13px; z-index: 2;
  background: linear-gradient(var(--room), var(--room)) top left/14px 1.5px, linear-gradient(var(--room), var(--room)) top left/1.5px 14px,
              linear-gradient(var(--room), var(--room)) bottom right/14px 1.5px, linear-gradient(var(--room), var(--room)) bottom right/1.5px 14px; background-repeat: no-repeat; opacity: .85; }
.h1 { background: linear-gradient(90deg, #ffffff, var(--room)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vitals__big b, .result__total b, .ticket__no { color: var(--room); text-shadow: 0 0 22px color-mix(in srgb, var(--room) 55%, transparent); }
.eyebrow, .ticket__label { font-family: 'JetBrains Mono', monospace; color: var(--room); }
.btn--primary { background: var(--room); color: var(--on-brand); box-shadow: 0 0 26px -4px var(--room); }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.chip { background: var(--surface); color: var(--ink); } .chip.is-on { background: var(--room); color: var(--on-brand); }
.result__total { background: color-mix(in srgb, var(--room) 12%, transparent); }
.appt__date, .avatar { background: var(--room); color: var(--on-brand); }
.mini .ico { color: var(--room); }
.app__nav { position: absolute; left: 14px; right: 14px; bottom: 14px; border-radius: 22px; border: 1px solid var(--line); background: rgba(4,8,14,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.app__nav button.is-on { color: var(--room); background: color-mix(in srgb, var(--room) 14%, transparent); box-shadow: inset 0 0 18px color-mix(in srgb, var(--room) 30%, transparent); }
.t-door { background: var(--door); box-shadow: inset 0 0 0 1px rgba(100,180,255,.15); }
.t-door.l { box-shadow: inset -3px 0 0 var(--tc), inset 0 0 0 1px rgba(100,180,255,.15); } .t-door.r { box-shadow: inset 3px 0 0 var(--tc), inset 0 0 0 1px rgba(100,180,255,.15); }
.t-door::after { background: var(--tc); box-shadow: 0 0 12px var(--tc); }
.t-sign, .t-floor { background: rgba(4,7,12,.85); color: var(--tc); border: 1px solid var(--tc); box-shadow: 0 0 30px -6px var(--tc); }
.t-ecg path { stroke: var(--tc); filter: drop-shadow(0 0 6px var(--tc)); }

/* ---------- App-Zusätze (Formulare, Hinweise) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.field input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; }
.field input:focus { outline: none; border-color: var(--room); box-shadow: 0 0 0 3px color-mix(in srgb, var(--room) 25%, transparent); }
.alert { padding: 11px 13px; border-radius: 12px; background: color-mix(in srgb, #ef4444 16%, var(--surface)); color: #ffd7d7; font-size: 13px; border: 1px solid rgba(239,68,68,.4); text-align: left; }
.switcher { display: flex; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.switcher a { flex: 1; text-align: center; padding: 9px; border-radius: 9px; font-size: 13.5px; color: var(--muted); text-decoration: none; font-weight: 600; }
.switcher a.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.linkrow { display: flex; justify-content: center; gap: 16px; font-size: 13px; }
.linkrow a { color: var(--muted); text-decoration: none; }
.kontakt { display: flex; gap: 10px; flex-wrap: wrap; }
.kontakt .btn { flex: 1; min-width: 120px; }
.kontakt-fin { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.kontakt-fin .eyebrow { margin-bottom: 2px; }
.demo-banner { background: color-mix(in srgb, var(--room) 16%, var(--surface)); border: 1px dashed var(--room); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--ink); }

/* ---------- Timeline (persönlich & allgemein) ---------- */
.tl { display: flex; flex-direction: column; padding: 4px 2px; }
.tl-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; padding: 9px 0; }
.tl-step::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-step:first-child::before { top: 24px; }
.tl-step:last-child::before { bottom: calc(100% - 24px); }
.tl-dot { z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 'JetBrains Mono', monospace; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tl-step.done .tl-dot { background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); border-color: transparent; }
.tl-step.cur .tl-dot { background: var(--room); color: var(--on-brand); box-shadow: 0 0 16px -2px var(--room); border-color: transparent; }
.tl-body b { font-size: 14.5px; }
.tl-step.upcoming .tl-body b { color: var(--muted); }
.tl-body small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.tl-todo { margin-top: 7px; font-size: 12.5px; color: var(--ink); background: color-mix(in srgb, var(--room) 13%, transparent); border: 1px solid color-mix(in srgb, var(--room) 30%, transparent); border-radius: 9px; padding: 7px 9px; }
.tl-todo b { color: var(--room); }
.tl-dauer { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted); }

/* ---------- Aktueller Schritt (zusammengeführte Hero-Karte) ---------- */
.nextstep { position: relative; padding: 18px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--room) 42%, var(--line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--room) 16%, var(--surface)), var(--surface) 70%); }
.nextstep__chip { display: inline-block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.nextstep__chip b { color: var(--room); font-family: 'JetBrains Mono', monospace; }
.nextstep__name { margin: 0 0 6px; font: 700 20px/1.2 var(--font-head); letter-spacing: -.01em; color: var(--ink); }
.nextstep__desc { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.nextstep__todo { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.nextstep__termin { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--room) 12%, transparent); border: 1px solid color-mix(in srgb, var(--room) 28%, transparent); font-size: 13.5px; }
.nextstep__termin .ico { width: 20px; height: 20px; stroke: var(--room); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nextstep__termin b { color: var(--room); }
/* Ein großer Schritt-Button (Name + Aktion zusammengeführt) */
.btn--step { padding: 14px 16px; font-size: 15px; font-weight: 650; }
.btn--step.is-done { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 38%, transparent); box-shadow: none; cursor: default; }

/* „Alter Button schrumpft in den Hintergrund und verschwindet" */
.step-ghost { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; justify-content: center;
  gap: 10px; padding: 18px; background: var(--surface); border-radius: var(--radius); transform-origin: 50% 40%; }
.nextstep.is-advancing .step-ghost { display: flex; animation: step-ghost-away 1.05s cubic-bezier(.4,0,.2,1) forwards; }
.nextstep.is-advancing .nextstep__inner { animation: step-reveal .8s .35s ease both; }
@keyframes step-ghost-away {
  0%   { opacity: 1; transform: scale(1); }
  55%  { opacity: 1; transform: scale(.78); }
  100% { opacity: 0; transform: scale(.42) translateY(-22px); } }
@keyframes step-reveal {
  0%   { opacity: 0; transform: translateY(14px) scale(.96); }
  100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nextstep.is-advancing .step-ghost, .nextstep.is-advancing .nextstep__inner { animation: none; }
  .nextstep.is-advancing .step-ghost { display: none; } }
.tl--compact .tl-step { padding: 6px 0; }
.tl--compact .tl-dot { width: 28px; height: 28px; }
.tl--compact .tl-step { grid-template-columns: 28px 1fr; }
.tl--compact .tl-step::before { left: 13px; }
.tl--compact .tl-step:first-child::before { top: 20px; }
.tl--compact .tl-step:last-child::before { bottom: calc(100% - 20px); }
.tl--compact .tl-body b { font-size: 13.5px; }

/* ---------- FAQ (Akkordeon) ---------- */
.faq { padding: 4px 14px 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
/* WICHTIG: KEIN display:flex auf <summary> – das bricht das native Aufklappen in
   Safari/WebKit. Marker per absoluter Position statt Flex. */
.faq summary { cursor: pointer; padding: 13px 30px 13px 2px; font-weight: 650; font-size: 14px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 11px; color: var(--room); font-weight: 700; font-size: 18px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 2px 13px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- Admin-Formulare ---------- */
.aform { max-width: 900px; margin: 0 auto; padding: 24px 18px 80px; }
.atop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.aform input, .aform textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; }
.aform textarea { min-height: 60px; resize: vertical; }
.aform input:focus, .aform textarea:focus { outline: none; border-color: var(--room); }
.astep { padding: 14px; margin-bottom: 12px; }
.astep .snum { font-family: 'JetBrains Mono', monospace; color: var(--room); font-size: 12px; }
.alabel { font-size: 12px; color: var(--muted); font-weight: 600; margin: 10px 0 4px; display: block; }
.savebar { position: sticky; bottom: 0; padding: 14px 0 6px; background: linear-gradient(transparent, var(--bg) 45%); }
.msg-ok { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); border: 1px solid var(--ok); color: #c9ffe8; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; }
.ktable { display: flex; flex-direction: column; gap: 12px; }
.krow { padding: 14px; display: grid; gap: 10px; }
.krow .kmail { font-weight: 650; } .krow .ksub { font-size: 12px; color: var(--muted); }
.krow .kctrls { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
@media (max-width: 560px) { .krow .kctrls { grid-template-columns: 1fr; } }
.adminbtns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Unterlagen (Akte) ---------- */
.doc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-choice .btn { padding: 18px 10px; }
.ul-item { padding: 14px; }
.ul-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ul-name { font-weight: 650; font-size: 14px; }
.st { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; flex: none; white-space: nowrap; }
.st-fehlt { background: var(--surface-2); color: var(--muted); }
.st-hochgeladen { background: color-mix(in srgb, var(--room) 18%, transparent); color: var(--room); }
.st-geprueft { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.st-abgelehnt { background: color-mix(in srgb, #ef4444 20%, transparent); color: #ffb4b4; }
.ul-grund { margin-top: 8px; font-size: 12.5px; color: #ffc4c4; background: color-mix(in srgb, #ef4444 12%, transparent); border: 1px solid rgba(239,68,68,.35); border-radius: 8px; padding: 7px 9px; }
.pages { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.page { position: relative; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.page > a { display: block; width: 100%; height: 100%; }
.page img { width: 100%; height: 100%; object-fit: cover; }
.page .pdf { display: grid; place-items: center; height: 100%; font: 700 10px/1.2 'JetBrains Mono', monospace; color: var(--room); text-align: center; }
.page .del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(4,7,12,.82); color: #fff; border: 0; font-size: 13px; line-height: 1; display: grid; place-items: center; padding: 0; }
.uploadbtn { margin-top: 10px; position: relative; overflow: hidden; display: inline-flex; }
.uploadbtn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.sharebar { display: flex; gap: 10px; }
.sharebar .btn { flex: 1; }
.progresshead { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.pbar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pbar > i { display: block; height: 100%; background: var(--room); box-shadow: 0 0 12px var(--room); border-radius: 999px; transition: width .4s; }

/* ---------- Unterlagen: Qualitätskontrolle & PDF-Pflicht ---------- */
.pdfbadge { display: inline-block; vertical-align: middle; margin-left: 6px; font: 700 9.5px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: #ffd27a; background: color-mix(in srgb, #f5a623 22%, transparent); border: 1px solid color-mix(in srgb, #f5a623 45%, transparent); padding: 3px 6px; border-radius: 6px; }
.pdf-alert { border: 1px solid color-mix(in srgb, #f5a623 45%, transparent); background: color-mix(in srgb, #f5a623 12%, var(--surface)); }
.pdf-alert__head { display: flex; align-items: center; gap: 9px; color: #ffd27a; font-size: 14.5px; }
.pdf-alert__head .ico { width: 20px; height: 20px; stroke: #ffd27a; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pdfhelp { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.pdfhelp > summary { cursor: pointer; list-style: none; padding: 9px 12px; font-size: 12.5px; font-weight: 650; color: var(--room); position: relative; }
.pdfhelp > summary::-webkit-details-marker { display: none; }
.pdfhelp > summary::after { content: '+'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.pdfhelp[open] > summary::after { content: '–'; }
.pdfhelp > .fine, .pdfhelp > .banklist { padding-left: 12px; padding-right: 12px; }
.banklist { list-style: none; margin: 0 0 10px; padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.banklist li { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.banklist li b { display: block; color: var(--ink); font-size: 12.5px; }
.page--warn { border-color: color-mix(in srgb, #f5a623 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, #f5a623 55%, transparent); }
.qualflag { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #f5a623; color: #1a1205; font: 800 12px/18px 'JetBrains Mono', monospace; text-align: center; }
.qualnote { margin-top: 9px; font-size: 12.5px; line-height: 1.45; color: #ffd9a1; background: color-mix(in srgb, #f5a623 12%, transparent); border: 1px solid color-mix(in srgb, #f5a623 35%, transparent); border-radius: 8px; padding: 8px 10px; }
.bestaetigt-form { margin-top: 10px; display: flex; flex-direction: column; gap: 9px; }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink); line-height: 1.4; }
.checkline input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--room); flex: none; }
.bestaetigt-ok { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ok); }
.bestaetigt-ok .ico { width: 17px; height: 17px; stroke: var(--ok); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ul-item.is-bestaetigt { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.linkbtn { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; margin-left: 4px; }

/* ---------- Objekte ---------- */
.objswipe { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.objswipe::-webkit-scrollbar { display: none; }
.prop { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.prop::before { content: ''; position: absolute; inset: 6px; pointer-events: none; border-radius: 13px; z-index: 2;
  background: linear-gradient(var(--room), var(--room)) top left/14px 1.5px, linear-gradient(var(--room), var(--room)) top left/1.5px 14px,
              linear-gradient(var(--room), var(--room)) bottom right/14px 1.5px, linear-gradient(var(--room), var(--room)) bottom right/1.5px 14px; background-repeat: no-repeat; opacity: .85; }
.objswipe .prop { flex: 0 0 86%; scroll-snap-align: center; }
.prop__img { height: 150px; background-size: cover; background-position: center; background-color: var(--surface-2); filter: grayscale(.8) brightness(.82) contrast(1.12) sepia(.22) hue-rotate(175deg); transition: filter .5s; }
.prop:hover .prop__img { filter: none; }
.prop__body { display: flex; flex-direction: column; gap: 4px; padding: 13px 14px 14px; }
.prop__loc { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; color: var(--room); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.prop__typ { font: 650 15.5px/1.25 var(--font-head); }
.prop__price { font: 800 18px/1 var(--font-head); color: var(--room); margin-top: 2px; }
.prop__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.prop__kpis span { display: flex; flex-direction: column; gap: 2px; }
.prop__kpis b { font-size: 13px; }
.prop__kpis i { font-style: normal; font-size: 10px; color: var(--muted); }

/* Vergleich */
.cmp { width: 100%; border-collapse: collapse; font-size: 12px; }
.cmp th, .cmp td { padding: 9px 7px; border-bottom: 1px solid var(--line); text-align: right; }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--muted); font-weight: 600; }
.cmp thead th { color: var(--room); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; }
.cmp tbody td { font-weight: 650; }

/* Befund (Objekt-Detail) */
.befund__img { height: 200px; border-radius: var(--radius); background-size: cover; background-position: center; background-color: var(--surface-2); box-shadow: var(--shadow); }
.befthumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; }
.befthumbs::-webkit-scrollbar { display: none; }
.befthumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; border: 1px solid var(--line); }
.kgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kgrid .k { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.kgrid .k small { display: block; color: var(--muted); font-size: 11px; }
.kgrid .k b { font-size: 15px; }
.rechner-frame { width: 100%; height: 600px; border: 0; border-radius: var(--radius); background: transparent; }
.calendly-frame { width: 100%; height: 640px; border: 0; border-radius: 12px; background: #04070c; }
.berater { display: flex; gap: 14px; align-items: center; padding: 14px; }
.berater img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--room); flex: none; }
.berater b { display: block; font-size: 16px; }
.berater small { color: var(--muted); font-size: 12.5px; }
.berater .online { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ok); margin-top: 4px; }
.berater .online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.diag__row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.diag__row:last-child { border-bottom: 0; }
.diag__row span { color: var(--muted); }
.objdocs { list-style: none; margin: 0; padding: 0 2px; }
.objdocs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.objdocs li:last-child { border-bottom: 0; }
.objdocs a { color: var(--room); text-decoration: none; font-weight: 600; font-size: 12.5px; }
.wunsch { background: color-mix(in srgb, var(--room) 14%, transparent); border: 1px solid color-mix(in srgb, var(--room) 32%, transparent); border-radius: 12px; padding: 11px 13px; font-size: 13px; }
.wunsch b { color: var(--room); font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 3px; }
.wunsch-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wunsch-chips span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--room) 20%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--room) 35%, transparent); }
