/* =========================================================
   Kundenportal (ADR-167) – baut auf den effektbar-Tokens aus /assets/app.css auf.
   --accent = Bedienelemente (anthrazit / hell), --brand = CI-Lila nur als Akzent (Quadrat, aktiver Punkt).
   ========================================================= */

:root {
  --side: 248px;
  --gap: 20px;
  --pad: clamp(18px, 3vw, 36px);
  --ok: #2f8f5b;
  --warn: #b7791f;
}
:root[data-theme='dark'] { --ok: #5cc98a; --warn: #e3b25c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --ok: #5cc98a; --warn: #e3b25c; } }

body { overflow: hidden; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--fg-3); }
.square::after { content: ''; display: inline-block; width: .32em; height: .32em; margin-left: .12em; background: var(--brand); vertical-align: baseline; }

/* ---------- Anmelden ---------- */
.login-view { display: flex; align-items: center; justify-content: center; padding: 24px 18px; min-height: 100dvh; overflow: auto; }
.login-card { width: min(440px, 100%); padding: clamp(26px, 5vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.login-card .logo svg { height: 24px; }
.login-step { display: flex; flex-direction: column; gap: 14px; }
.login-step h1 { margin: 0; font-size: clamp(26px, 4vw, 32px); line-height: 1.12; letter-spacing: -.02em; font-weight: 650; }
.login-step .btn { min-height: 50px; }
.login-actions { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.login-actions .btn-link { min-height: 36px; padding: 0 4px; font-size: 15px; }
.login-foot { text-align: center; }
.code { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.code input {
  width: 100%; min-width: 0; aspect-ratio: 5 / 6; max-width: 56px; text-align: center; font: 600 26px/1 var(--font-mono);
  border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--glass-strong); color: var(--fg); padding: 0;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.code input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.code input.filled { border-color: var(--fg-3); }
.code-gap { flex: 0 0 6px; height: 2px; background: var(--line-strong); }
.code.checking input { opacity: .6; }
.code.ok input { border-color: var(--ok); }
.code.shake { animation: shake .42s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.choose { display: flex; flex-direction: column; gap: 10px; }
.choose button { text-align: left; justify-content: space-between; }

/* ---------- Rahmen ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; height: 100dvh; }
.side { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: 26px 16px 18px; border-right: 1px solid var(--line); background: var(--card-glass); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.side > .logo { padding: 0 10px 2px; }
.side > .logo svg { height: 22px; }
.side-client { margin: 6px 10px 16px; font-size: 13px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-s);
  background: none; color: var(--fg-2); font-size: 15px; font-weight: 500; cursor: pointer; text-align: left; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 20px; height: 20px; }
.nav-item:hover { background: var(--glass); color: var(--fg); }
.nav-item[aria-current='page'] { background: var(--glass-strong); color: var(--fg); box-shadow: var(--glass-shadow); }
.nav-item[aria-current='page']::before { content: ''; position: absolute; left: -16px; top: 50%; width: 4px; height: 14px; margin-top: -7px; background: var(--brand); }
.nav-item .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font: 600 12px/22px var(--font-mono); text-align: center; }

.main { position: relative; z-index: 1; overflow-y: auto; padding: 34px var(--pad) 60px; outline: none; scroll-behavior: smooth; }
.page { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--gap); animation: pagein .28s var(--ease); }
@keyframes pagein { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.025em; line-height: 1.08; font-weight: 650; }
.page-head .lead { margin-top: 8px; }
.tabs { display: none; }

/* Mobil: Leiste unten wie in der App */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .side { display: none; }
  .main { padding: 22px 16px 28px; }
  .tabs {
    display: flex; position: relative; z-index: 3; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
    background: var(--glass-strong); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  }
  .tabs .nav-item { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11px; text-align: center; justify-content: center; }
  .tabs .nav-item[aria-current='page'] { background: none; box-shadow: none; }
  .tabs .nav-item[aria-current='page']::before { left: 50%; top: 0; width: 14px; height: 3px; margin: 0 0 0 -7px; }
  .tabs .nav-item .count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 10px; line-height: 18px; padding: 0 5px; }
}

/* ---------- Bausteine ---------- */
.card.pad { padding: 22px; }
.card h2, .section-title { flex-wrap: wrap; margin: 0 0 14px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card h2 .btn-link { font-size: 14px; min-height: 0; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
@media (max-width: 1060px) { .grid-2 { grid-template-columns: 1fr; } }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi .label { font-size: 13px; color: var(--fg-3); font-weight: 500; }
.kpi .value { font: 600 clamp(26px, 2.6vw, 34px)/1.05 var(--font-mono); letter-spacing: -.02em; white-space: nowrap; }
.kpi .value small { font-size: .5em; font-weight: 500; color: var(--fg-3); margin-left: 4px; }
.delta { font: 500 12px var(--font-mono); padding: 2px 8px; border-radius: 99px; align-self: flex-start; background: var(--bg-sunken); color: var(--fg-2); }
.delta.up { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.delta.down { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }

.chart { width: 100%; height: auto; display: block; }
.chart text { font: 400 11px var(--font-mono); fill: var(--fg-3); }
@media (max-width: 600px) { .chart text { font-size: 17px; } }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .line-views { stroke: var(--fg-3); stroke-width: 1.6; fill: none; stroke-dasharray: 3 4; }
.chart .line-visitors { stroke: var(--fg); stroke-width: 2.2; fill: none; }
.chart .area { fill: url(#area); stroke: none; }
.chart .dot { fill: var(--brand); stroke: none; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--fg-3); }
.legend i { display: inline-block; width: 14px; height: 2px; background: var(--fg); vertical-align: middle; margin-right: 6px; }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--fg-3) 0 3px, transparent 3px 7px); }

.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.row:first-child { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 13px; color: var(--fg-3); }
.row.click { cursor: pointer; border-radius: var(--r-s); margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.row.click:hover { background: var(--glass); }
.bar { height: 6px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.icon-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-sunken); color: var(--fg-2); flex: none; font: 600 11px var(--font-mono); text-transform: uppercase; }
.pill { font: 500 12px var(--font-mono); padding: 3px 10px; border-radius: 99px; background: var(--bg-sunken); color: var(--fg-2); white-space: nowrap; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill.bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 11%, transparent); }
.empty { padding: 34px 10px; text-align: center; color: var(--fg-3); }
.search { width: min(320px, 100%); border-radius: 99px; border: 1px solid var(--line-strong); background: var(--glass-strong); color: var(--fg); padding: 10px 16px; font: inherit; }
.search:focus { outline: none; border-color: var(--brand); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); display: grid; place-items: center; cursor: pointer; color: var(--fg-2); flex: none; }
.icon-btn:hover { background: var(--glass-strong); color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }

/* Projekte */
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.steps li { position: relative; display: flex; gap: 12px; padding: 0 0 14px 0; }
.steps li::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .knob { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--line-strong); background: var(--bg-raised); flex: none; margin-top: 3px; position: relative; z-index: 1; }
.steps .fertig .knob { background: var(--accent); border-color: var(--accent); }
.steps .aktiv .knob { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.steps .aktiv .knob::after { content: ''; position: absolute; inset: 3px; background: var(--brand); }
.steps .t { font-weight: 550; }
.steps .d { font-size: 13px; color: var(--fg-3); }

/* Chat */
.chat-page { height: calc(100dvh - 94px); max-width: 920px; }
@media (max-width: 860px) { .chat-page { height: calc(100dvh - 140px); } }
.chat-card { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 22px 8px; display: flex; flex-direction: column; gap: 6px; }
.day { align-self: center; font: 500 12px var(--font-mono); color: var(--fg-3); margin: 14px 0 6px; }
.msg { max-width: min(560px, 82%); display: flex; flex-direction: column; gap: 3px; }
.msg .bubble { padding: 10px 14px; border-radius: 18px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .meta { font-size: 12px; color: var(--fg-3); padding: 0 6px; }
.msg.team { align-self: flex-start; }
.msg.team .bubble { background: var(--glass-strong); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.kunde { align-self: flex-end; align-items: flex-end; }
.msg.kunde .bubble { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.msg .file { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, currentColor 8%, transparent); cursor: pointer; text-decoration: none; color: inherit; }
.msg .file img { max-width: 240px; max-height: 200px; border-radius: 10px; display: block; }
.typing { font-size: 13px; color: var(--fg-3); padding: 0 24px 6px; min-height: 20px; }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--glass); }
.composer textarea { flex: 1; resize: none; max-height: 160px; min-height: 44px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--fg); padding: 11px 16px; font: inherit; line-height: 1.4; }
.composer textarea:focus { outline: none; border-color: var(--brand); }
.composer .send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; flex: none; }
.composer .send:disabled { opacity: .45; cursor: default; }
.attach-list { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 10px; }
.attach-list .pill { display: inline-flex; align-items: center; gap: 6px; }

/* Website-Review */
.review { display: grid; grid-template-columns: 1fr 340px; gap: var(--gap); height: calc(100dvh - 170px); min-height: 480px; }
@media (max-width: 1100px) { .review { grid-template-columns: 1fr; height: auto; } .review .frame-wrap { height: 70vh; } }
.frame-wrap { position: relative; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--bg-raised); box-shadow: var(--card-shadow); }
.frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.frame-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.frame-bar .addr { flex: 1; min-width: 180px; font: 13px var(--font-mono); color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overlay { position: absolute; inset: 0; cursor: crosshair; display: none; background: color-mix(in srgb, var(--brand) 6%, transparent); }
.annotating .overlay { display: block; }
.pin { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 8px 8px 8px 2px; background: var(--brand); color: #fff; font: 600 12px/28px var(--font-mono); text-align: center; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); cursor: pointer; z-index: 2; border: 0; }
.pin.done { background: var(--fg-3); }
.popover { position: absolute; z-index: 3; width: 290px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.popover textarea { width: 100%; min-height: 90px; resize: vertical; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--fg); padding: 10px 12px; font: inherit; }
.popover .actions { display: flex; justify-content: flex-end; gap: 8px; }
.popover .btn { min-height: 38px; padding: 0 16px; }
.comments { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.comment { padding: 12px 14px; border-radius: var(--r-s); background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.comment.active { border-color: var(--brand); }
.comment.done { opacity: .62; }
.comment .head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-3); }
.comment .no { width: 22px; height: 22px; border-radius: 6px 6px 6px 2px; background: var(--brand); color: #fff; font: 600 11px/22px var(--font-mono); text-align: center; flex: none; }
.comment.done .no { background: var(--fg-3); }
.comment .path { font-family: var(--font-mono); }
.comment .reply { font-size: 14px; padding-left: 10px; border-left: 2px solid var(--line-strong); color: var(--fg-2); }
.comment .tools { display: flex; gap: 6px; }
.comment .tools button { font-size: 13px; min-height: 30px; padding: 0 10px; }

/* Einstellungen */
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--bg-sunken); border: 1px solid var(--line-strong); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-raised); box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 500; box-shadow: var(--btn-shadow); transition: opacity .25s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) { .toast { bottom: calc(86px + env(safe-area-inset-bottom)); } }

.skeleton { border-radius: var(--r-m); background: linear-gradient(90deg, var(--glass) 0%, var(--glass-strong) 50%, var(--glass) 100%); background-size: 200% 100%; animation: sk 1.3s linear infinite; min-height: 120px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Darstellung oben rechts (Automatisch · Hell · Dunkel) ---------- */
.theme-switch {
  position: fixed; top: 18px; right: 22px; z-index: 20; display: flex; gap: 2px; padding: 3px; border-radius: 99px;
  background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.theme-switch button { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: none; color: var(--fg-3); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.theme-switch button svg { width: 16px; height: 16px; }
.theme-switch button:hover { color: var(--fg); }
.theme-switch button[aria-checked='true'] { background: var(--accent); color: var(--on-accent); }
.page-head { padding-right: 260px; }
.frame-bar { padding-right: 260px; }
@media (max-width: 860px) {
  .theme-switch { top: calc(10px + env(safe-area-inset-top)); right: 12px; }
  .theme-switch button { padding: 0 9px; }
  .theme-switch button span { display: none; }
  .page-head { padding-right: 112px; }
  .frame-bar { padding-right: 0; padding-top: 44px; }
}

/* =========================================================
   Design 2 (26.10.2026): Kacheln, Pillen-Navigation oben, schwebendes Dock links –
   nach Vorbild „Corbel“, in effektbar-CI (Anthrazit statt Schwarz, Lila nur als Akzent, Geist).
   ========================================================= */
:root {
  --s-bg: #EFEFED;
  --s-surface: #FBFBFA;
  --s-gray: #E3E3E0;
  --s-dark: #262829;
  --s-on-dark: #F2F2F0;
  --s-on-dark-2: rgba(242, 242, 240, .62);
  --s-line: rgba(35, 36, 37, .09);
  --s-line-2: rgba(35, 36, 37, .16);
  --s-well: rgba(35, 36, 37, .06);
  --s-hatch: rgba(35, 36, 37, .16);
  --s-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 24px 48px -32px rgba(38, 40, 41, .35);
  --s-pop: 0 24px 60px -18px rgba(20, 22, 24, .4), 0 2px 6px rgba(20, 22, 24, .08);
  --s-r: 24px;
  --s-up: #2f8f5b; --s-up-bg: rgba(47, 143, 91, .13);
  --s-down: #c0392b; --s-down-bg: rgba(192, 57, 43, .1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
}
:root[data-theme='dark'] {
  --s-bg: #151617; --s-surface: #1F2022; --s-gray: #2A2B2E; --s-dark: #ECECEA; --s-on-dark: #1C1D1F; --s-on-dark-2: rgba(28, 29, 31, .62);
  --s-line: rgba(236, 236, 234, .08); --s-line-2: rgba(236, 236, 234, .16); --s-well: rgba(236, 236, 234, .06); --s-hatch: rgba(236, 236, 234, .14);
  --s-shadow: 0 24px 48px -32px rgba(0, 0, 0, .7); --s-pop: 0 24px 60px -18px rgba(0, 0, 0, .7);
  --s-up: #5cc98a; --s-up-bg: rgba(92, 201, 138, .14); --s-down: #ff8a7a; --s-down-bg: rgba(255, 138, 122, .12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --s-bg: #151617; --s-surface: #1F2022; --s-gray: #2A2B2E; --s-dark: #ECECEA; --s-on-dark: #1C1D1F; --s-on-dark-2: rgba(28, 29, 31, .62);
    --s-line: rgba(236, 236, 234, .08); --s-line-2: rgba(236, 236, 234, .16); --s-well: rgba(236, 236, 234, .06); --s-hatch: rgba(236, 236, 234, .14);
    --s-shadow: 0 24px 48px -32px rgba(0, 0, 0, .7); --s-pop: 0 24px 60px -18px rgba(0, 0, 0, .7);
    --s-up: #5cc98a; --s-up-bg: rgba(92, 201, 138, .14); --s-down: #ff8a7a; --s-down-bg: rgba(255, 138, 122, .12);
  }
}

/* Rahmen */
body:has(#shell:not([hidden])) { background: var(--s-bg); }
body:has(#shell:not([hidden])) .glow, body:has(#shell:not([hidden])) .vignette, body:has(#shell:not([hidden])) .theme-switch { display: none; }
.shell { display: block; height: 100dvh; overflow-y: auto; background: var(--s-bg); }
.shell .side { display: none; }
.topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px 40px 14px;
  background: linear-gradient(var(--s-bg) 60%, transparent); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--s-dark); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 21px; height: 21px; fill: var(--brand); stroke: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.brand-text small { font-size: 12.5px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pillnav { display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--s-surface); box-shadow: var(--s-shadow), 0 0 0 1px var(--s-line); }
.pillnav a { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--fg); text-decoration: none; transition: background-color .2s, color .2s; white-space: nowrap; }
.pillnav a:hover { background: var(--s-well); }
.pillnav a[aria-current='page'] { background: var(--s-dark); color: var(--s-on-dark); }
.pillnav .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--s-well); font: 600 11px/20px var(--font-mono); text-align: center; }
.pillnav a[aria-current='page'] .count { background: color-mix(in srgb, var(--s-on-dark) 18%, transparent); }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.round { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--s-surface); box-shadow: var(--s-shadow), 0 0 0 1px var(--s-line); display: grid; place-items: center; cursor: pointer; color: var(--fg); }
.round svg { width: 19px; height: 19px; }
.round .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; background: var(--brand); border-radius: 2px; }
.avatar-btn { font: 600 13px var(--font); letter-spacing: .02em; }
.rail { position: fixed; left: 22px; top: 50%; z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 30px;
  background: var(--s-dark); box-shadow: var(--s-pop); transform: translate(-140%, -50%); animation: railIn .7s var(--spring) .15s forwards; }
@keyframes railIn { to { transform: translate(0, -50%); } }
.rail button, .rail a { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--s-on-dark); opacity: .7; display: grid; place-items: center; cursor: pointer; transition: opacity .2s, background-color .2s; }
.rail button:hover, .rail a:hover { opacity: 1; background: color-mix(in srgb, var(--s-on-dark) 12%, transparent); }
.rail svg { width: 19px; height: 19px; }
.rail-sep { width: 22px; height: 1px; background: color-mix(in srgb, var(--s-on-dark) 18%, transparent); margin: 4px 0; }

.shell .main { overflow: visible; padding: 18px 40px 60px 112px; }
.shell .page { max-width: 1400px; gap: 18px; animation: none; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.p-head h1 { margin: 0; font-size: clamp(32px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.p-head h1::after { content: ''; display: inline-block; width: .2em; height: .2em; background: var(--brand); margin-left: .08em; }
.live { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; background: var(--s-surface); box-shadow: 0 0 0 1px var(--s-line); font-size: 13.5px; }
.live b { font: 600 13.5px var(--font-mono); }
.live__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.live__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); animation: ping 2.2s cubic-bezier(.2, .6, .3, 1) infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.4); } 80%, 100% { opacity: 0; transform: scale(2.4); } }
.p-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--s-well); }
.seg button { height: 32px; padding: 0 16px; border: 0; border-radius: 99px; background: none; font: 500 13.5px var(--font); color: var(--fg-2); cursor: pointer; transition: color .2s, background-color .2s; }
.seg button[aria-pressed='true'] { background: var(--s-surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.meta-line { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--fg-3); }
.meta-line svg { width: 15px; height: 15px; }
.pbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; border: 0; font: 500 14px var(--font); cursor: pointer; text-decoration: none;
  background: var(--s-surface); color: var(--fg); box-shadow: 0 0 0 1px var(--s-line-2); transition: background-color .2s, box-shadow .2s; }
.pbtn.ink { background: var(--s-dark); color: var(--s-on-dark); box-shadow: none; }
.pbtn svg { width: 16px; height: 16px; }

/* Kacheln */
.kachel { position: relative; border-radius: var(--s-r); background: var(--s-surface); box-shadow: var(--s-shadow), 0 0 0 1px var(--s-line); padding: 22px 24px; min-width: 0; color: var(--fg); }
.kachel.gray { background: var(--s-gray); box-shadow: 0 0 0 1px var(--s-line); }
.kachel.dark { background: var(--s-dark); color: var(--s-on-dark); box-shadow: var(--s-pop); }
.kachel.dark .t-label, .kachel.dark .t-sub { color: var(--s-on-dark-2); }
.kachel h2 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.kachel h2 small { font-size: 13.5px; font-weight: 400; color: var(--fg-3); }
.t-label { font-size: 13.5px; color: var(--fg-3); display: flex; align-items: center; gap: 6px; }
.t-value { font: 600 30px/1.1 var(--font); letter-spacing: -.02em; margin-top: 12px; font-variant-numeric: tabular-nums; }
.t-sub { font-size: 13px; color: var(--fg-3); }
.t-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.t-foot { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--s-line-2); }
.kachel.dark .t-foot { border-color: color-mix(in srgb, var(--s-on-dark) 22%, transparent); }
.t-link { font-size: 13.5px; color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.chg { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 99px; font: 600 12px var(--font-mono); background: var(--s-up-bg); color: var(--s-up); }
.chg.down { background: var(--s-down-bg); color: var(--s-down); }
.kachel.dark .chg { background: color-mix(in srgb, var(--s-up) 22%, transparent); }
.mini { position: absolute; right: 22px; top: 58px; }
.kgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kgrid.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .kgrid.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kgrid.k3 > :last-child { grid-column: 1 / -1; } }
.row2 { display: grid; grid-template-columns: 1fr 1.75fr; gap: 18px; }
.row3 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
@media (max-width: 1180px) { .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row2, .row3 { grid-template-columns: 1fr; } }

/* Auftritt: Kacheln nacheinander */
.rise { opacity: 0; transform: translateY(14px) scale(.985); animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Tacho */
.gauge { display: block; width: 100%; max-width: 360px; margin: 6px auto 0; overflow: visible; }
.gauge .tick { stroke: currentColor; stroke-width: 3; stroke-linecap: round; opacity: .25; }
.gauge .tick.on { opacity: .9; }
.gauge .track { fill: none; stroke: color-mix(in srgb, currentColor 14%, transparent); stroke-width: 26; stroke-linecap: round; }
.gauge .arc { fill: none; stroke: url(#gaugeGrad); stroke-width: 26; stroke-linecap: round; }
.gauge-num { text-align: center; margin-top: -78px; position: relative; }
.gauge-num b { font: 600 46px/1 var(--font); letter-spacing: -.03em; }
.gauge-num .chg { vertical-align: 12px; margin-left: 6px; }
.gauge-num div { font-size: 13px; color: var(--s-on-dark-2); margin-top: 4px; }

/* Balken */
.bars { position: relative; display: grid; grid-template-columns: 46px 1fr; height: 300px; margin-top: 14px; }
.bars .yax { position: relative; font: 12px var(--font-mono); color: var(--fg-3); }
.bars .yax span { position: absolute; right: 10px; transform: translateY(-50%); }
.bars .plot { position: relative; display: flex; align-items: flex-end; gap: 1.6%; padding: 0 4px; border-bottom: 1px solid var(--s-line); }
.bars .grid-l { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--s-line); }
.bars .avg { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--s-line-2); }
.bars .avg span { position: absolute; right: 0; top: -12px; font: 500 11.5px var(--font-mono); background: var(--s-surface); padding: 2px 8px; border-radius: 99px; box-shadow: 0 0 0 1px var(--s-line); }
.col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.col i { display: block; width: min(30px, 100%); height: var(--h); border-radius: 99px; transform-origin: bottom; transform: scaleY(0);
  background: repeating-linear-gradient(135deg, var(--s-hatch) 0 2px, transparent 2px 7px); box-shadow: inset 0 0 0 1px var(--s-hatch);
  animation: grow .9s var(--spring) forwards; animation-delay: calc(300ms + var(--i) * 45ms); transition: background-color .25s; }
.col.now i { background: linear-gradient(180deg, color-mix(in srgb, var(--s-dark) 55%, transparent), var(--s-dark)); box-shadow: none; }
.col:hover i { background: var(--s-dark); box-shadow: none; }
@keyframes grow { to { transform: scaleY(1); } }
.col em { position: absolute; bottom: -24px; font: normal 11.5px var(--font-mono); color: var(--fg-3); white-space: nowrap; }
.col.now em { color: var(--fg); font-weight: 600; }
.tip { position: absolute; z-index: 5; min-width: 168px; padding: 12px 14px; border-radius: 14px; background: var(--s-dark); color: var(--s-on-dark); box-shadow: var(--s-pop);
  font-size: 12.5px; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; }
.tip.on { opacity: 1; transform: none; }
.tip b { display: block; font-size: 13px; margin-bottom: 8px; }
.tip div { display: flex; justify-content: space-between; gap: 18px; color: var(--s-on-dark-2); margin-top: 4px; }
.tip div span:last-child { color: var(--s-on-dark); font-family: var(--font-mono); }

/* Wärmekarte */
.heat { display: grid; grid-template-columns: 92px repeat(7, 1fr); gap: 8px; margin-top: 18px; align-items: center; }
.heat .h { font: 12px var(--font-mono); color: var(--fg-3); text-align: center; }
.heat .r { font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
.heat i { display: block; height: 34px; border-radius: 10px; background: var(--s-well); transition: background-color .35s, box-shadow .2s; cursor: default; }
.heat i:hover { box-shadow: 0 0 0 2px var(--brand); }
.heat-legend { display: flex; align-items: center; gap: 4px; font: 11.5px var(--font-mono); color: var(--fg-3); }
.heat-legend i { width: 14px; height: 14px; border-radius: 4px; }

/* Ring */
.donut { position: relative; width: 190px; height: 190px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 26; transition: stroke-dasharray 1.4s var(--ease); }
.donut .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .c b { font: 600 30px var(--font); letter-spacing: -.02em; }
.donut .c span { font-size: 12.5px; color: var(--fg-3); }
.legend-rows { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; flex: 1; }
.legend-rows div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend-rows i { width: 10px; height: 10px; border-radius: 3px; }
.legend-rows span:last-child { margin-left: auto; font-family: var(--font-mono); }

/* Listen und Tabellen */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 500 12.5px var(--font); color: var(--fg-3); padding: 12px 14px; border-bottom: 1px solid var(--s-line); }
.tbl td { padding: 14px; border-bottom: 1px solid var(--s-line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color .15s; }
.tbl tbody tr:hover { background: var(--s-well); }
.tbl .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--s-up); } .status.warn { color: #b7791f; } .status.bad { color: var(--s-down); } .status.idle { color: var(--fg-3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; border: 0; background: var(--s-surface); box-shadow: 0 0 0 1px var(--s-line);
  font: 500 13.5px var(--font); color: var(--fg); cursor: pointer; transition: background-color .2s, color .2s; }
.chip span { font: 600 11px var(--font-mono); padding: 2px 7px; border-radius: 99px; background: var(--s-well); }
.chip[aria-pressed='true'] { background: var(--s-dark); color: var(--s-on-dark); }
.chip[aria-pressed='true'] span { background: color-mix(in srgb, var(--s-on-dark) 18%, transparent); }
.sbox { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--s-surface); box-shadow: 0 0 0 1px var(--s-line); min-width: 260px; }
.sbox input { border: 0; outline: none; background: none; font: 14px var(--font); color: var(--fg); flex: 1; }
.sbox svg { width: 16px; height: 16px; color: var(--fg-3); }
.ftype { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--s-well); font: 600 10.5px var(--font-mono); text-transform: uppercase; color: var(--fg-2); flex: none; }
.who { display: flex; align-items: center; gap: 12px; }
.ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--s-well); font: 600 12px var(--font); flex: none; }
.ini.brand { background: var(--s-dark); color: var(--s-on-dark); }

/* Nachrichten: drei Spalten wie ein Postfach */
.inbox { display: grid; grid-template-columns: 1fr 300px; gap: 0; height: calc(100dvh - 210px); min-height: 520px; padding: 0; overflow: hidden; }
.inbox .chat-col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--s-line); }
.inbox .chat-kopf { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--s-line); }
.inbox .side-col { padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.inbox .msgs { padding: 22px 24px 8px; }
.inbox .msg.team .bubble { background: var(--s-well); border: 0; }
.inbox .msg.kunde .bubble { background: var(--s-dark); color: var(--s-on-dark); }
.inbox .composer { background: none; border-top: 1px solid var(--s-line); padding: 12px 16px 14px; }
.inbox .composer textarea { background: var(--s-bg); border-color: var(--s-line-2); border-radius: 18px; }
.inbox .composer .send { background: var(--s-dark); color: var(--s-on-dark); }
.quick { display: flex; gap: 6px; padding: 0 16px; flex-wrap: wrap; }
.kv { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--s-line); }
.kv span:first-child { color: var(--fg-3); }
@media (max-width: 1100px) { .inbox { grid-template-columns: 1fr; } .inbox .side-col { display: none; } .inbox .chat-col { border-right: 0; } }

/* Projekte */
.steps2 { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.steps2 li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.steps2 .k { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--s-well); flex: none; font-size: 12px; }
.steps2 .fertig .k { background: var(--s-dark); color: var(--s-on-dark); }
.steps2 .aktiv .k { background: var(--brand); color: #fff; }
.steps2 .d { margin-left: auto; font: 12px var(--font-mono); color: var(--fg-3); }
/* Unterpunkte (collai ADR-322): eingerückt, etwas kleiner. */
.steps2 li[data-ebene] { padding-left: calc(var(--ebene) * 26px); font-size: 13px; }
.steps2 li[data-ebene] .k { width: 18px; height: 18px; border-radius: 6px; font-size: 11px; }
.steps2 .fertig > span:nth-child(2) { color: var(--fg-3); }
.pbar { height: 8px; border-radius: 99px; background: var(--s-well); overflow: hidden; margin-top: 14px; }
.pbar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--s-dark); transform-origin: left; transform: scaleX(0); animation: growX 1.1s var(--ease) .35s forwards; }
@keyframes growX { to { transform: scaleX(1); } }

/* Telefon: oben Marke, darunter Pillen zum Wischen, unten das Dock */
@media (max-width: 860px) {
  .topbar { grid-template-columns: 1fr auto; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; }
  .pillnav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; box-shadow: none; background: none; padding: 0; }
  .pillnav a { background: var(--s-surface); box-shadow: 0 0 0 1px var(--s-line); }
  .rail { display: none; }
  .shell .main { padding: 8px 16px 110px; }
  .tabs { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: auto; border-radius: 99px; padding: 6px 10px; gap: 4px;
    background: var(--s-dark); border: 0; box-shadow: var(--s-pop); }
  .tabs .nav-item { color: var(--s-on-dark); opacity: .65; width: 54px; padding: 6px 0; font-size: 10px; }
  .tabs .nav-item[aria-current='page'] { opacity: 1; }
  .tabs .nav-item[aria-current='page']::before { background: var(--brand); }
  .tabs .nav-item .count { background: var(--brand); color: #fff; }
  .kgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kachel { padding: 18px; }
  .t-value { font-size: 24px; }
  .mini { display: none; }
  .bars { height: 220px; }
  .heat { grid-template-columns: 64px repeat(7, 1fr); gap: 5px; }
  .heat i { height: 24px; border-radius: 7px; }
  .inbox { height: calc(100dvh - 230px); }
  .p-head h1 { font-size: 32px; }
  .sbox { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .rise, .col i, .pbar i, .rail { animation: none; opacity: 1; transform: none; } .rail { transform: translate(0, -50%); } }
/* Die Grundregel „svg 22 px“ aus app.css gilt nicht für Diagramme */
.kachel .mini svg { width: auto; height: auto; }
.kachel svg.gauge { width: 100%; height: auto; }
.donut svg { width: 100%; height: 100%; }
.kachel .pbtn svg, .kachel .t-label svg { width: 16px; height: 16px; }
.gauge-num { margin-top: -96px; }
.kachel h2 small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chg { white-space: nowrap; }
@media (max-width: 860px) { .kgrid .t-row .t-sub { display: none; } }

/* ===== 26.10.: Logo statt Signet, Darstellungsschalter oben, Gruppenchat als Blase ===== */
.brand { gap: 14px; align-items: center; }
.brand-logo { display: block; line-height: 0; color: var(--fg); }
.brand-logo svg { height: 24px; width: auto; stroke: none; }
.brand-client { font-size: 13px; color: var(--fg-3); padding-left: 14px; border-left: 1px solid var(--s-line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--s-surface); box-shadow: var(--s-shadow), 0 0 0 1px var(--s-line); }
.mode button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--fg-3); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.mode button svg { width: 16px; height: 16px; }
.mode button[aria-checked='true'] { background: var(--s-dark); color: var(--s-on-dark); }

/* Profilbilder im Stapel */
.stack-av { display: flex; align-items: center; }
.stack-av .av { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--s-bg); margin-left: -10px; background: var(--s-dark); color: var(--s-on-dark); display: grid; place-items: center; font: 600 12px var(--font); overflow: hidden; flex: none; }
.stack-av .av:first-child { margin-left: 0; }
.stack-av .av img { width: 100%; height: 100%; object-fit: cover; }
.stack-av.small .av { width: 30px; height: 30px; font-size: 11px; }

/* Eingabe-Blase unten, immer offen */
.cbubble { position: fixed; left: 50%; bottom: 22px; z-index: 40; transform: translateX(-50%); width: min(640px, calc(100vw - 260px)); display: flex; align-items: flex-end; gap: 8px; padding: 7px 7px 7px 10px;
  border-radius: 30px; background: color-mix(in srgb, var(--s-surface) 88%, transparent); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--s-pop), 0 0 0 1px color-mix(in srgb, var(--brand) 38%, var(--s-line)), 0 0 26px 2px color-mix(in srgb, var(--brand) 30%, transparent);
  background-image: linear-gradient(color-mix(in srgb, var(--brand) 5%, transparent), color-mix(in srgb, var(--brand) 5%, transparent));
  transition: width .35s var(--ease), box-shadow .2s; animation: cbSchein 4.5s ease-in-out infinite; }
/* Feiner Schein in CI-Lila, damit die Chat-Eingabe gesehen wird */
@keyframes cbSchein {
  50% { box-shadow: var(--s-pop), 0 0 0 1px color-mix(in srgb, var(--brand) 50%, var(--s-line)), 0 0 34px 5px color-mix(in srgb, var(--brand) 40%, transparent); }
}
.cbubble:focus-within, .chat-open .cbubble { width: min(760px, calc(100vw - 260px)); animation: none;
  box-shadow: var(--s-pop), 0 0 0 1.5px color-mix(in srgb, var(--brand) 60%, transparent), 0 0 30px 3px color-mix(in srgb, var(--brand) 32%, transparent); }
@media (prefers-reduced-motion: reduce) { .cbubble { animation: none; } }
.cb-icon { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--fg-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.cb-icon svg { width: 18px; height: 18px; }
.cb-field { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cb-field textarea { border: 0; outline: none; resize: none; background: none; color: var(--fg); font: 15px/1.4 var(--font); padding: 9px 4px; max-height: 140px; }
.cb-files { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-files:empty { display: none; }
.cb-files span { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--s-well); }
.cb-send { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--s-dark); color: var(--s-on-dark); display: grid; place-items: center; cursor: pointer; flex: none; transition: opacity .2s, transform .2s var(--spring); }
.cb-send:disabled { opacity: .35; cursor: default; }
.cb-send:not(:disabled):hover { transform: scale(1.06); }
.cb-send svg { width: 18px; height: 18px; }
.cb-badge { align-self: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--brand); color: #fff; font: 600 11.5px/22px var(--font-mono); text-align: center; }

/* Verlauf: ohne Kachel, schwebt über der unscharfen Seite */
.cdim { position: fixed; inset: 0; z-index: 35; background: color-mix(in srgb, var(--s-bg) 55%, transparent); backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%);
  opacity: 0; transition: opacity .3s; }
.chat-open .cdim { opacity: 1; }
.cpanel { position: fixed; left: 50%; bottom: 92px; z-index: 38; transform: translate(-50%, 24px); width: min(760px, calc(100vw - 260px)); height: min(70vh, 720px); display: flex; flex-direction: column;
  opacity: 0; transition: opacity .3s, transform .45s var(--spring); }
.chat-open .cpanel { opacity: 1; transform: translate(-50%, 0); }
.cpanel-head { display: flex; align-items: center; gap: 14px; padding: 0 4px 14px; }
.cp-title { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.cp-title b { font-size: 16px; }
.cp-title span { font-size: 13px; color: var(--fg-3); }
.cmsgs { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 6px 4px 10px; scrollbar-width: none;
  -webkit-mask: linear-gradient(transparent, #000 28px); mask: linear-gradient(transparent, #000 28px); }
.cday { align-self: center; font: 500 12px var(--font-mono); color: var(--fg-3); margin: 14px 0 6px; }
.cmsg { display: flex; gap: 10px; max-width: 82%; align-items: flex-end; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.cmsg .av { width: 32px; height: 32px; border-radius: 50%; background: var(--s-dark); color: var(--s-on-dark); display: grid; place-items: center; font: 600 11px var(--font); overflow: hidden; flex: none; }
.cmsg .av img { width: 100%; height: 100%; object-fit: cover; }
.cmsg .av.hide { visibility: hidden; }
.cmsg .b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cmsg .who { font-size: 12px; color: var(--fg-3); padding-left: 4px; }
.cmsg .bubble { padding: 10px 14px; border-radius: 18px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--s-surface); box-shadow: 0 0 0 1px var(--s-line), 0 10px 24px -18px rgba(0,0,0,.35); border-bottom-left-radius: 6px; font-size: 15px; }
.cmsg .t { font-size: 11.5px; color: var(--fg-3); padding-left: 4px; }
.cmsg.me { align-self: flex-end; flex-direction: row-reverse; }
.cmsg.me .bubble { background: var(--s-dark); color: var(--s-on-dark); box-shadow: none; border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.cmsg.me .t { text-align: right; padding-right: 4px; }
.cmsg .file { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 7px 10px; border-radius: 12px; background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; text-decoration: none; font-size: 13.5px; }
.cmsg .file img { max-width: 240px; max-height: 200px; border-radius: 10px; display: block; }
.ctyping { min-height: 20px; font-size: 13px; color: var(--fg-3); padding: 0 8px; }
@media (max-width: 860px) {
  .brand-client { display: none; }
  .brand-logo svg { height: 20px; }
  .mode button { width: 30px; height: 30px; }
  /* Chat ganz unten am Rand, das Dock sitzt direkt darüber; offen weicht das Dock dem Verlauf */
  .cbubble { width: calc(100vw - 24px); bottom: calc(10px + env(safe-area-inset-bottom)); }
  .cbubble:focus-within, .chat-open .cbubble { width: calc(100vw - 24px); }
  .tabs { bottom: calc(76px + env(safe-area-inset-bottom)); transition: opacity .25s, transform .3s var(--ease); }
  .chat-open .tabs { opacity: 0; pointer-events: none; transform: translate(-50%, 12px); }
  .cpanel { width: calc(100vw - 24px); bottom: calc(76px + env(safe-area-inset-bottom)); height: calc(100dvh - 190px); }
  .stack-av.small { display: none; }
}
.shell .main { padding-bottom: 130px; }

/* Branding und Unternehmensdaten (ADR-213): dieselben ruhigen Flächen wie im übrigen Portal. */
.branding section, .daten-abschnitt { margin-bottom: 24px; }
.branding section > h2 { margin: 28px 0 16px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.brand-grid .kachel { min-width: 0; }
.brand-grid h3 { font-size: 17px; margin: 12px 0 6px; }
.brand-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.brand-kopf > div { min-width: 0; flex: 1 1 240px; }
.brand-kopf h2 { font-size: 26px; letter-spacing: -.4px; margin: 0; }
.brand-hauptlogo { width: 120px; height: 100px; object-fit: contain; }
.brand-claim { font-size: 18px; }
.brand-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.brand-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-vorschau { display: grid; place-items: center; height: 160px; border-radius: 12px; background: var(--s-well); padding: 20px; }
.brand-vorschau img { width: 100%; height: 120px; object-fit: contain; }
.brand-muster { height: 120px; border-radius: 12px; border: 1px solid var(--s-line); }
.brand-wert { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-top: 1px solid var(--s-line); background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.brand-wert span { color: var(--fg-3); font-size: 12px; }
.brand-wert b { font: 13px var(--font-mono); overflow-wrap: anywhere; }
.brand-wert:hover { background: var(--s-well); }
.branding button:focus-visible, .branding a:focus-visible, .unternehmensdaten :focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.daten-auftrag { display: block; margin-bottom: 24px; background: var(--s-dark); color: var(--s-on-dark); text-decoration: none; }
.daten-auftrag h2 { margin-top: 0; }
.daten-auftrag span { text-decoration: underline; text-underline-offset: 4px; }
.daten-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.daten-feld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.daten-feld label { font-size: 14px; font-weight: 600; }
.daten-feld input, .daten-feld select, .daten-feld textarea { box-sizing: border-box; width: 100%; min-height: 46px; padding: 12px; border: 1px solid var(--s-line-2); border-radius: 12px; background: var(--s-well); color: var(--fg); font: 16px/1.4 var(--font); }
.daten-feld textarea { resize: vertical; }
.daten-feld small { font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.daten-feld [aria-invalid='true'] { border-color: var(--brand); }
.daten-feld .form-error:empty, .daten-feld small:empty { display: none; }
.daten-eintrag { min-width: 0; border: 1px solid var(--s-line-2); border-radius: 12px; margin: 16px 0; padding: 16px; }
.daten-eintrag legend { padding: 0 8px; font-weight: 600; }
.daten-status { padding: 16px; border-radius: 12px; background: var(--s-well); line-height: 1.5; }
.daten-abschluss { margin-top: 24px; }
.daten-abschluss .btn { min-height: 46px; }
.daten-eintrag .pbtn, .daten-abschnitt > .pbtn { min-height: 44px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .daten-felder { grid-template-columns: 1fr; }
  .brand-actions { flex-basis: 100%; }
  .brand-actions .pbtn { white-space: normal; }
  .daten-eintrag { padding: 12px; }
}
@media (prefers-reduced-transparency: reduce) { .branding .kachel, .unternehmensdaten .kachel { background: var(--s-surface); backdrop-filter: none; } }

/* Firmendaten und Brandbook verwenden dieselben Flächen wie das Portal. */
.rail button { position: relative; }
.rail-label { position: absolute; left: calc(100% + 12px); padding: 8px 12px; border-radius: 12px; background: var(--s-surface); color: var(--fg); box-shadow: var(--s-shadow); opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .15s; }
.rail button:hover .rail-label, .rail button:focus-visible .rail-label { opacity: 1; }
.portal-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--s-line-2); border-radius: 22px; color: var(--fg); background: var(--s-bg); box-shadow: var(--s-pop); }
.portal-dialog::backdrop { background: rgb(15 14 20 / .55); backdrop-filter: blur(8px); }
.dialog-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: var(--s-surface); border-bottom: 1px solid var(--s-line); }
.dialog-head h2 { margin: 0; font-size: 20px; }
.dialog-body { padding: 24px; }
.dialog-body .p-head { display: none; }
.dialog-body .page { max-width: none; }
.branding { max-width: 1040px; }
/* Abschnitte als schwebende Pille in der Mitte (ADR-248) – wächst mit den Abschnitten, wischt bei Platzmangel seitlich. */
.brand-section-nav { position: sticky; top: calc(var(--brand-header, 84px) + 8px); z-index: 12; display: flex; justify-content: center; pointer-events: none; margin: 4px 0 8px; }
.brand-section-nav > div { pointer-events: auto; display: flex; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 5px; border-radius: 99px;
  background: var(--glass-strong); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border: 1px solid var(--s-line); box-shadow: var(--s-shadow); }
.brand-section-nav > div::-webkit-scrollbar { display: none; }
.brand-section-nav a { flex: none; text-decoration: none; border-radius: 99px; padding: 7px 13px; color: var(--fg-2); font-size: 13.5px; transition: background-color .15s, color .15s; }
.brand-section-nav a:hover, .brand-section-nav a:focus-visible { background: var(--s-well); color: var(--fg); }
.brand-section-nav a[aria-current] { background: var(--s-dark); color: var(--s-on-dark); }
@media (prefers-reduced-transparency: reduce) { .brand-section-nav > div { background: var(--s-surface); backdrop-filter: none; } }
.brand-anwendung { text-decoration: none; color: var(--fg); transition: transform .15s; }
.brand-anwendung:hover { transform: translateY(-2px); }
.brand-anwendung .brand-vorschau { background: #fff; }
/* Linke Leiste: Brandbook und Arten der Erzeugnisse */
.rail [aria-current='page'] { opacity: 1; background: color-mix(in srgb, var(--s-on-dark) 18%, transparent); }
/* Erzeugnisse als Arbeitsfläche (ADR-251): flach, volle Breite, eine Seite groß – kein Kachel-in-Kachel, kein langes Scrollen. */
.shell .page.erz-seite { max-width: none; gap: 12px; }
.erz-studio { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 24px; height: calc(100dvh - 300px); min-height: 520px; }
.erz-liste { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding-right: 4px; }
.erz-eintrag { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 12px; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.erz-eintrag:hover { background: var(--s-well); }
.erz-eintrag[aria-current='true'] { background: var(--s-dark); color: var(--s-on-dark); }
.erz-daumen { flex: none; width: 52px; height: 52px; border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 1px var(--s-line); }
.erz-daumen img { max-width: 100%; max-height: 100%; object-fit: contain; }
.erz-eintrag-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.erz-eintrag-text b { font-size: 14px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.erz-eintrag-text small { font-size: 12px; opacity: .7; }
.erz-offen { color: var(--brand); font-weight: 600; }
.erz-eintrag[aria-current='true'] .erz-offen { color: inherit; }
.erz-buehne { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: 20px; background: var(--s-well); overflow: hidden; }
.erz-werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--s-line); }
.erz-titel { display: flex; flex-direction: column; min-width: 0; margin-right: 6px; }
.erz-titel h2 { margin: 0; font-size: 17px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erz-wahl select { appearance: none; -webkit-appearance: none; border: 1px solid var(--s-line); border-radius: 99px; padding: 7px 30px 7px 14px; background: var(--s-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; color: var(--fg); font: inherit; font-size: 13.5px; cursor: pointer; }
.erz-seiten-wahl { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--s-surface); border: 1px solid var(--s-line); }
.erz-seiten-wahl button { border: 0; border-radius: 99px; padding: 5px 12px; background: none; color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; }
.erz-seiten-wahl button[aria-selected='true'] { background: var(--s-dark); color: var(--s-on-dark); }
.erz-platz { flex: 1; }
.erz-laden { min-height: 34px; padding: 0 14px; font-size: 13px; }
.erz-flaeche { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 28px 64px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.erz-zoom { display: flex; max-width: 100%; max-height: 100%; transform-origin: center; transition: transform .18s var(--ease, ease); }
.erz-flaeche.ziehen .erz-zoom { transition: none; }
.erz-flaeche.gezoomt { cursor: grab; }
.erz-flaeche.ziehen { cursor: grabbing; }
.erz-flaeche.anmerken .erz-bild { cursor: crosshair; outline: 2px solid var(--brand); outline-offset: 4px; }
.erz-flaeche .erz-bild { position: relative; display: inline-flex; max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 18px 40px -12px rgba(0,0,0,.28); }
.erz-zoom .pin { transform: scale(calc(1 / var(--z, 1))); }
.erz-zoomleiste { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 99px; background: var(--glass-strong); border: 1px solid var(--s-line); box-shadow: var(--s-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.erz-zoomleiste button { min-width: 32px; height: 32px; border: 0; border-radius: 99px; background: none; color: var(--fg); font: inherit; font-size: 15px; cursor: pointer; padding: 0 8px; }
.erz-zoomleiste button[data-zoom-wert] { font-size: 12.5px; min-width: 56px; font-variant-numeric: tabular-nums; }
.erz-zoomleiste button:hover { background: var(--s-well); }
.erz-hinweis-anmerken { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 99px; background: var(--s-dark); color: var(--s-on-dark); font-size: 13.5px; box-shadow: var(--s-shadow); white-space: nowrap; z-index: 4; }
.erz-hinweis-anmerken .btn-link { color: inherit; opacity: .8; min-height: 28px; padding: 0 10px; }
.erz-flaeche > .popover { z-index: 5; }
.erz-reiter { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--s-well); }
.erz-reiter button { flex: 1; border: 0; border-radius: 99px; padding: 7px 12px; background: none; color: var(--fg-2); font: inherit; font-size: 13.5px; cursor: pointer; }
.erz-reiter button[aria-selected='true'] { background: var(--s-dark); color: var(--s-on-dark); }
.erz-neu { width: 100%; min-height: 40px; }
.erz-neu.aktiv { opacity: .75; }
.erz-haken { width: 22px; height: 22px; border-radius: 6px; background: var(--s-well); color: var(--fg-2); font-size: 12px; display: grid; place-items: center; flex: none; }
.erz-flaeche .erz-bild img { display: block; max-width: 100%; max-height: calc(100dvh - 460px); min-height: 160px; object-fit: contain; }
.erz-bild .pin { position: absolute; }
.erz-bild .pin.neu { background: var(--fg); pointer-events: none; }
.erz-bild .pin.blink { animation: pinBlink .5s ease 3; }
@keyframes pinBlink { 50% { transform: scale(calc(1.35 / var(--z, 1))); } }
.erz-bild .popover { cursor: auto; }
.erz-blaettern { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--s-line); background: var(--s-surface); color: var(--fg); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--s-shadow); }
.erz-blaettern.zurueck { left: 14px; } .erz-blaettern.vor { right: 14px; }
.erz-blaettern:disabled { opacity: .3; cursor: default; }
.erz-tipp { margin: 0; padding: 0 16px 14px; text-align: center; font-size: 12.5px; color: var(--fg-3); }
.erz-dateien { flex-wrap: wrap; gap: 20px; overflow: auto; align-content: flex-start; }
.erz-dateien figure { margin: 0; width: 220px; display: flex; flex-direction: column; gap: 8px; }
.erz-dateien img { width: 100%; height: 150px; object-fit: contain; background: #fff; border-radius: 8px; }
.erz-dateien figcaption { font-size: 13px; color: var(--fg-2); }
.erz-datei-symbol { height: 150px; border-radius: 8px; background: var(--s-surface); display: grid; place-items: center; font: 600 15px var(--font-mono); color: var(--fg-3); }
.erz-notizen { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.erz-notizen-kopf { display: flex; align-items: center; gap: 8px; }
.erz-notizen-kopf h3 { margin: 0; font-size: 16px; }
.erz-notizen .comments { padding: 0; overflow-y: auto; }
.erz-notizen .comment { cursor: pointer; background: none; border: 0; border-bottom: 1px solid var(--s-line); border-radius: 0; padding: 12px 2px; }
.erz-notizen .comment:hover, .erz-notizen .comment.active { background: var(--s-well); border-radius: 10px; }
.erz-notizen .pill:empty { display: none; }
.erz-notizen .empty { color: var(--fg-3); font-size: 14px; line-height: 1.5; }
.comment.active { border-color: var(--brand); }
@media (max-width: 1180px) { .erz-studio { grid-template-columns: 200px minmax(0, 1fr); } .erz-notizen { grid-column: 1 / -1; } .erz-studio { height: auto; } .erz-flaeche .erz-bild img { max-height: 70vh; } }
@media (max-width: 760px) {
  .erz-studio { grid-template-columns: 1fr; }
  .erz-liste { flex-direction: row; overflow-x: auto; }
  .erz-eintrag { flex: none; max-width: 240px; }
  .erz-flaeche { padding: 16px 8px; }
  .erz-blaettern { display: none; }
}
.brand-section { display: grid; gap: 20px; scroll-margin-top: calc(var(--brand-header, 84px) + 72px); }
.brand-section > h2 { font-size: 26px; letter-spacing: -.4px; margin: 12px 0 0; }
.brand-section .kachel { display: flex; flex-direction: column; gap: 14px; }
.brand-section h3, .brand-section p { margin: 0; }
.brand-section ul { margin: 0; padding-left: 24px; }
.brand-section li + li { margin-top: 8px; }
.brand-section blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--brand); background: var(--s-well); border-radius: 0 12px 12px 0; white-space: pre-wrap; }
.brand-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-claim { font-size: clamp(28px, 4vw, 56px); line-height: 1.12; letter-spacing: -.025em; }
.brand-image-button { display: grid; place-items: center; width: 100%; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: zoom-in; }
.brand-image-button img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.brand-logo-main { padding: 30px; }
.brand-logo-main img { max-height: 300px; }
.brand-clearspace { display: grid; place-items: center; margin: 24px auto; padding: 38px; border: 2px dashed var(--fg-3); max-width: min(480px, 100%); }
.brand-minsizes { display: flex; gap: 28px; flex-wrap: wrap; align-items: end; overflow: auto; }
.brand-minsizes figure { margin: 0; }
.brand-minsizes figcaption { color: var(--fg-2); margin-top: 12px; }
.brand-wrong { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 160px; padding: 28px; border-radius: 12px; background: var(--s-well); }
.brand-wrong img { width: 75%; height: 110px; object-fit: contain; }
.brand-wrong span { position: absolute; right: 10px; bottom: 8px; color: var(--danger, #bf3434); font-size: 24px; }
.wrong-0 img { transform: scaleX(1.45); }
.wrong-1 img { transform: rotate(-22deg); }
.wrong-2 img { filter: hue-rotate(120deg); }
.wrong-3 img { filter: drop-shadow(8px 10px 3px #655e69); }
.wrong-4 { background: repeating-linear-gradient(45deg, #d5c6e9 0 10px, #dbb5ae 10px 20px); }
.wrong-5 img { transform: translateX(60%); }
.brand-tints { display: flex; gap: 5px; }
.brand-tints > div { flex: 1; text-align: center; }
.brand-tints span { display: block; height: 54px; border-radius: 8px; margin-bottom: 8px; }
.brand-type { overflow-wrap: anywhere; }
.brand-type .brand-aa { font-size: 96px; line-height: 1.2; }
.brand-type p, .brand-type h2, .brand-type h3 { margin: 12px 0; }
.brand-type h2 { font-size: 30px; }
.brand-product img { max-height: 480px; }
.brand-enlarged { display: block; width: 100%; max-height: 75dvh; object-fit: contain; }

/* Öffentliches Formular: Token bleibt ausschließlich in der Adresse. */
.onboarding-body { overflow: auto; }
.onboarding-body .theme-switch { display: flex; }
.onboarding { position: relative; z-index: 1; padding: 32px clamp(16px, 4vw, 48px) 100px; color: var(--fg); }
.on-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.on-head h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.4px; margin: 8px 0; }
.on-head > div:last-child { min-width: 220px; }
.on-head progress { display: block; width: 100%; height: 7px; margin-top: 10px; accent-color: var(--brand); }
.on-logo { display: block; width: 132px; color: var(--fg); margin-bottom: 18px; }
.on-logo svg { display: block; width: 100%; height: auto; }
/* Schrittleiste: eine durchgehende Hochkantpille wie die Leiste im Portal. Der Punkt gleitet zum aktiven Schritt,
   dessen Name fährt seitlich aus; beim Überfahren zeigen auch die anderen kurz ihren Namen. */
.on-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.on-steps { position: sticky; top: 20px; z-index: 5; display: flex; flex-direction: column; gap: 6px; width: max-content; padding: 8px;
  border-radius: 30px; background: var(--s-dark); box-shadow: var(--s-pop); }
.on-steps-dot { position: absolute; left: 8px; top: 8px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--brand);
  transform: translateY(calc(var(--i) * 46px)); transition: transform .5s var(--spring); }
.on-step { position: relative; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--s-on-dark); font: inherit; cursor: pointer; }
.on-step-nr { position: relative; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 14px; font-weight: 600; opacity: .7; transition: opacity .2s, color .2s; }
.on-step:hover .on-step-nr, .on-step[aria-current='step'] .on-step-nr { opacity: 1; }
.on-step[aria-current='step'] .on-step-nr { color: #fff; }
.on-step-label { position: absolute; left: 0; top: 0; z-index: 0; display: flex; align-items: center; gap: 8px; height: 40px; width: max-content;
  padding: 0 18px 0 52px; border-radius: 20px; background: var(--s-dark); color: var(--s-on-dark); white-space: nowrap; font-size: 14px; font-weight: 500;
  box-sizing: border-box; clip-path: inset(0 calc(100% - 40px) 0 0 round 20px); transition: clip-path .45s var(--spring), box-shadow .3s; }
.on-step-label small { font-size: 11px; opacity: .6; }
.on-step:hover .on-step-label, .on-step:focus-visible .on-step-label, .on-step[aria-current='step'] .on-step-label { clip-path: inset(0 0 0 0 round 20px); }
.on-step:hover .on-step-label, .on-step:focus-visible .on-step-label { box-shadow: var(--s-pop); }
.on-step[aria-disabled='true'] { cursor: not-allowed; }
.on-step[aria-disabled='true'] .on-step-nr { opacity: .35; }
.on-hint { max-width: 520px; }
.on-hint .dialog-body { display: grid; gap: 14px; padding: 28px; }
.on-hint h2 { margin: 0; }
.on-content { min-width: 0; display: grid; gap: 20px; }
.on-content h3 { margin-top: 24px; }
.on-content > .kachel { display: grid; gap: 18px; }
.on-choice { display: flex; gap: 10px; align-items: start; margin: 10px 0; }
.on-choice input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.on-drop { padding: 18px; border: 2px dashed var(--s-line-2); border-radius: 12px; background: var(--s-well); }
.on-drop input { display: block; max-width: 100%; margin-top: 12px; }
.on-drop p { font-size: 13px; color: var(--fg-2); }
.on-drop.dragging { border-color: var(--brand); }
/* Briefkasten (collai ADR-323) */
.bk-drop { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px dashed var(--s-line-2); border-radius: 14px; background: var(--s-well); transition: border-color .15s, background .15s; }
.bk-drop.dragging { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--s-well)); }
.bk-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--fg-2); }
.bk-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.bk-liste:empty { display: none; }
.bk-liste li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 14px; border-bottom: 1px solid var(--s-line, var(--line)); }
.bk-liste li:last-child { border-bottom: 0; }
.bk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-stand { font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.bk-stand.ok { color: var(--ok, #2f8f4e); }
@media (max-width: 600px) { .bk-liste .t-sub { display: none; } }
.on-files { display: grid; gap: 10px; }
.on-file { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--s-line); }
.on-file img { width: 88px; height: 66px; border-radius: 8px; object-fit: contain; }
.on-file span { flex: 1; overflow-wrap: anywhere; }
.on-actions { display: flex; justify-content: space-between; gap: 16px; }
.on-summary { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 12px 20px; margin: 0; }
.on-summary dt { color: var(--fg-2); }
.on-summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.on-thanks { max-width: 780px; margin: 50px auto; }
.onboarding :focus-visible, .portal-dialog :focus-visible, .branding :focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.onboarding .daten-feld input, .onboarding .daten-feld select, .onboarding .daten-feld textarea { color: var(--fg); background: var(--s-surface); border: 1px solid var(--s-line-2); border-radius: 12px; padding: 12px; font: inherit; width: 100%; min-width: 0; }
.onboarding .on-choice input { width: 18px; }
.onboarding .daten-feld small { color: var(--fg-2); line-height: 1.5; }
@media (max-width: 860px) {
  .portal-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .dialog-body { padding: 16px; }
  .dialog-head { padding: 14px 16px; }
  .brand-section-nav { top: var(--brand-header, 128px); }
  .brand-clearspace { padding: 22px; }
  .on-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .on-steps { position: relative; top: auto; flex-direction: row; max-width: 100%; overflow-x: auto; }
  .on-steps-dot { transform: translateX(calc(var(--i) * 46px)); }
  .on-step { flex: none; }
  .on-step-label { display: none; }
  .on-summary { grid-template-columns: 1fr; gap: 6px; }
  .on-summary dd { margin-bottom: 12px; }
  .onboarding .daten-felder { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-section-nav { scroll-behavior: auto; }
  .rail-label { transition: none; }
  .on-steps-dot, .on-step-label { transition: none; }
  .onboarding .page, .portal-dialog .page { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .portal-dialog::backdrop { background: #27252c; backdrop-filter: none; }
}

.shell .page.branding { max-width: 1040px; }

.more-link { width: 100%; border: 0; background: transparent; color: var(--fg); font: inherit; text-align: left; }
.more-link:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 12px; }
.brand-section-nav a[aria-current='location'] { color: var(--s-on-dark); background: var(--s-dark); }
@media (max-width: 860px) {
  .shell .main { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  body:has(#cbubble[hidden]) .tabs { bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ---------- Einführung: Rundgang beim ersten Besuch ---------- */
.tour { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.tour-dim { position: absolute; inset: 0; background: color-mix(in srgb, var(--s-bg) 60%, transparent); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); opacity: 0; transition: opacity .3s; }
.tour-karte { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 30px; background: var(--s-surface); color: var(--fg);
  box-shadow: var(--s-pop), 0 0 0 1px var(--s-line), 0 0 60px -10px color-mix(in srgb, var(--brand) 35%, transparent);
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .3s, transform .5s var(--spring); }
.tour.offen .tour-dim { opacity: 1; }
.tour.offen .tour-karte { opacity: 1; transform: none; }
.tour-zu { position: absolute; top: 14px; right: 14px; z-index: 2; }
.tour-buehne { position: relative; height: 270px; margin: 10px 10px 0; border-radius: 22px; overflow: hidden; background: var(--s-dark); color: var(--s-on-dark); }
.tour-buehne::before { content: ''; position: absolute; inset: -40%; background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 45%); opacity: .55; animation: tourWolke 9s ease-in-out infinite alternate; }
@keyframes tourWolke { to { transform: translate(-12%, 10%) scale(1.15); } }
.tour-bild { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateX(30px); transition: opacity .35s, transform .5s var(--ease); pointer-events: none; }
.tour-bild.aktiv { opacity: 1; transform: none; }
.tour-text { padding: 22px 28px 6px; }
.tour-text.neu > * { animation: tourText .45s var(--ease) both; }
.tour-text.neu h2 { animation-delay: .05s; } .tour-text.neu p { animation-delay: .1s; }
@keyframes tourText { from { opacity: 0; transform: translateY(8px); } }
.tour-schritt { font: 500 12px var(--font-mono); color: var(--brand); letter-spacing: .04em; }
.tour-text h2 { margin: 6px 0 8px; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.tour-ende { white-space: nowrap; }
.tour-ende i { display: inline-block; width: .3em; height: .3em; margin-left: .1em; background: var(--brand); }
.tour-text p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.55; min-height: 4.65em; }
.tour-fuss { display: flex; align-items: center; gap: 10px; padding: 16px 28px 24px; }
.tour-punkte { display: flex; gap: 6px; margin-right: auto; }
.tour-punkte button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--s-line-2, var(--s-line)); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.tour-punkte button[aria-current] { width: 26px; background: var(--brand); }
.tour-fuss .btn { min-height: 42px; }

/* Folie 1: Quadrate fliegen zum Logo */
.tb-start { position: relative; width: 220px; height: 160px; display: grid; place-items: center; }
.tb-kern { position: relative; padding: 18px 26px; border-radius: 18px; background: color-mix(in srgb, var(--s-on-dark) 8%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--s-on-dark) 14%, transparent); }
.tb-logo { display: block; font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--s-on-dark); }
.tb-logo svg { height: 28px; width: auto; display: block; fill: currentColor; }
.tb-q { position: absolute; width: 14px; height: 14px; background: var(--brand); }
.aktiv .tb-kern { animation: tbAuf .7s .35s var(--spring) both; }
.aktiv .tb-q { animation: tbQ 1.1s var(--spring) both; }
.tb-q.q1 { --x: -110px; --y: -60px; left: 30px; top: 18px; }
.tb-q.q2 { --x: 110px; --y: -50px; right: 26px; top: 26px; width: 10px; height: 10px; animation-delay: .1s !important; }
.tb-q.q3 { --x: -90px; --y: 60px; left: 40px; bottom: 16px; width: 8px; height: 8px; animation-delay: .2s !important; }
.tb-q.q4 { --x: 100px; --y: 70px; right: 40px; bottom: 22px; width: 18px; height: 18px; opacity: .6; animation-delay: .15s !important; }
@keyframes tbQ { from { transform: translate(var(--x), var(--y)) rotate(45deg) scale(.4); opacity: 0; } }
@keyframes tbAuf { from { transform: scale(.85); opacity: 0; } }

/* Folie 2: Leiste und Anwendungen */
.tb-assets { display: flex; align-items: center; gap: 22px; }
.tb-rail { display: flex; flex-direction: column; gap: 8px; padding: 10px 8px; border-radius: 26px; background: color-mix(in srgb, var(--s-on-dark) 10%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 60%, transparent), 0 0 30px color-mix(in srgb, var(--brand) 40%, transparent); }
.tb-rail i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.tb-rail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.aktiv .tb-rail i { animation: tbRein .5s var(--spring) both; }
.tb-rail .r2 { animation-delay: .15s !important; background: color-mix(in srgb, var(--brand) 55%, transparent); }
.tb-rail .r3 { animation-delay: .3s !important; } .tb-rail .r4 { animation-delay: .45s !important; }
@keyframes tbRein { from { opacity: 0; transform: translateX(-12px) scale(.7); } }
.tb-karten { position: relative; width: 190px; height: 170px; }
.tb-karte { position: absolute; left: 0; width: 170px; padding: 12px 14px; border-radius: 14px; background: var(--s-on-dark); color: var(--s-dark); box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); display: grid; gap: 6px; }
.tb-karte b { font-size: 12.5px; }
.tb-karte span { height: 5px; border-radius: 9px; background: color-mix(in srgb, var(--s-dark) 16%, transparent); }
.tb-karte .kurz { width: 55%; }
.tb-karte.k1 { top: 0; } .tb-karte.k2 { top: 54px; left: 14px; } .tb-karte.k3 { top: 108px; left: 28px; }
.tb-karte.k1 b::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--brand); }
.aktiv .tb-karte { animation: tbKarte .6s var(--spring) both; }
.aktiv .tb-karte.k1 { animation-delay: .5s; } .aktiv .tb-karte.k2 { animation-delay: .65s; } .aktiv .tb-karte.k3 { animation-delay: .8s; }
@keyframes tbKarte { from { opacity: 0; transform: translate(30px, 10px) rotate(4deg); } }

/* Folie 3: Mauszeiger setzt eine Anmerkung */
.tb-doc { position: relative; width: 250px; height: 160px; border-radius: 14px; background: var(--s-on-dark); box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); padding: 20px 22px; display: grid; align-content: start; gap: 9px; }
.tb-doc-logo { width: 54px; height: 16px; border-radius: 4px; background: var(--s-dark); margin-bottom: 10px; }
.tb-doc .z { height: 6px; border-radius: 9px; background: color-mix(in srgb, var(--s-dark) 16%, transparent); }
.tb-doc .z2 { width: 80%; } .tb-doc .z3 { width: 55%; }
.tb-pin { position: absolute; left: 66px; top: 20px; width: 26px; height: 26px; border-radius: 8px 8px 8px 2px; background: var(--brand); color: #fff; font: 600 12px/26px var(--font-mono); text-align: center; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); opacity: 0; }
.tb-maus { position: absolute; left: 70px; top: 28px; width: 22px; height: 22px; color: var(--s-dark); filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.tb-maus svg { width: 100%; height: 100%; fill: var(--s-on-dark); stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.tb-blase { position: absolute; left: 96px; top: -18px; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; opacity: 0; box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.tb-tipp { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 0; }
.aktiv .tb-maus { animation: tbMaus 4.6s var(--ease) infinite; }
.aktiv .tb-pin { animation: tbPin 4.6s var(--spring) infinite; }
.aktiv .tb-blase { animation: tbBlase 4.6s var(--ease) infinite; }
.aktiv .tb-tipp { animation: tbTipp 4.6s steps(22) infinite; }
@keyframes tbMaus { 0% { transform: translate(140px, 110px); } 30% { transform: translate(0, 0); } 34% { transform: scale(.85); } 38%, 100% { transform: translate(8px, 8px); } }
@keyframes tbPin { 0%, 33% { opacity: 0; transform: translateY(-14px) scale(.5); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tbBlase { 0%, 42% { opacity: 0; transform: translateY(6px); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tbTipp { 0%, 48% { width: 0; } 75%, 100% { width: 22ch; } }

/* Folie 4: Anmerkung fliegt zum Team */
.tb-senden { display: flex; align-items: center; gap: 14px; }
.tb-notiz { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--s-on-dark); color: var(--s-dark); font-size: 12.5px; font-weight: 500; max-width: 150px; box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.tb-pin.klein { position: static; flex: none; width: 22px; height: 22px; line-height: 22px; font-size: 11px; opacity: 1; box-shadow: none; }
.tb-bahn { display: flex; gap: 7px; }
.tb-bahn i { width: 8px; height: 8px; background: var(--brand); opacity: .25; }
.aktiv .tb-notiz { animation: tbAbheben 2.8s var(--ease) infinite; }
.aktiv .tb-bahn i { animation: tbLauf 1.4s ease-in-out infinite; }
.tb-bahn i:nth-child(2) { animation-delay: .2s !important; } .tb-bahn i:nth-child(3) { animation-delay: .4s !important; }
@keyframes tbLauf { 50% { opacity: 1; transform: scale(1.25); } }
@keyframes tbAbheben { 0%, 100% { transform: none; } 50% { transform: translateY(-5px); } }
.tb-team { display: grid; justify-items: center; gap: 4px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--s-on-dark) 9%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--s-on-dark) 14%, transparent); grid-template-columns: repeat(3, auto); }
.tb-team b, .tb-team small { grid-column: 1 / -1; }
.tb-team b { font-size: 14px; margin-top: 6px; }
.tb-team small { font-size: 11.5px; opacity: .7; }
.tb-av { width: 30px; height: 30px; border-radius: 50%; margin: 0 -5px; border: 2px solid var(--s-dark); background: color-mix(in srgb, var(--s-on-dark) 70%, transparent); }
.tb-av.a2 { background: var(--brand); } .tb-av.a3 { background: color-mix(in srgb, var(--s-on-dark) 40%, transparent); }
.aktiv .tb-team { animation: tbEmpfang 2.8s var(--ease) infinite; }
@keyframes tbEmpfang { 0%, 60%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--s-on-dark) 14%, transparent); } 75% { box-shadow: 0 0 0 1.5px var(--brand), 0 0 30px color-mix(in srgb, var(--brand) 55%, transparent); } }

/* Folie 5: Mitteilung „Erledigt“ */
.tb-telefon { width: 200px; height: 200px; margin-top: 70px; border-radius: 34px 34px 0 0; padding: 16px 12px; background: color-mix(in srgb, var(--s-on-dark) 9%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--s-on-dark) 16%, transparent); display: grid; align-content: start; gap: 10px; }
.tb-mitteilung { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: var(--s-on-dark); color: var(--s-dark); box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); }
.tb-mitteilung b { display: block; font-size: 12.5px; }
.tb-mitteilung small { display: block; font-size: 11px; line-height: 1.35; opacity: .75; }
.tb-check { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; }
.tb-check svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.tb-zeile { height: 7px; margin: 0 6px; border-radius: 9px; background: color-mix(in srgb, var(--s-on-dark) 14%, transparent); }
.tb-zeile.kurz { width: 50%; }
.aktiv .tb-mitteilung { animation: tbMitteilung .7s .3s var(--spring) both; }
.aktiv .tb-check svg { animation: tbHaken .45s 1s var(--ease) forwards; }
.aktiv .tb-check { animation: tbPuls 2.4s 1.2s ease-in-out infinite; }
@keyframes tbMitteilung { from { opacity: 0; transform: translateY(-40px) scale(.95); } }
@keyframes tbHaken { to { stroke-dashoffset: 0; } }
@keyframes tbPuls { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }

@media (max-width: 860px) {
  .tour { align-items: end; padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .tour-karte { border-radius: 28px; }
  .tour-buehne { height: 220px; }
  .tour-buehne > .tour-bild > * { transform: scale(.86); }
  .tour-text { padding: 18px 20px 4px; }
  .tour-text h2 { font-size: 21px; }
  .tour-fuss { padding: 14px 20px 20px; }
  .tour-fuss .tour-zurueck { display: none; }
  .tb-blase { left: 30px; top: -34px; }
  .tour-zu { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour *, .tour *::before { animation: none !important; transition: none !important; }
  .tour-karte, .tour-dim { opacity: 1; transform: none; }
  .tb-pin, .tb-blase { opacity: 1; } .tb-tipp { width: auto; } .tb-check svg { stroke-dashoffset: 0; } .tb-maus { transform: translate(8px, 8px); }
}

/* ---------- Website-Review: Websites und Anleitung (Vorschau öffnet sich im eigenen Fenster) ---------- */
.rv-sites { margin-bottom: 8px; }
.rv-site h2 { margin-top: 6px; font-size: 19px; }
.rv-site .t-sub { margin: 6px 0 0; overflow-wrap: anywhere; }
.rv-site-fuss { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--s-line-2); }
.rv-site-fuss .btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.rv-site-fuss .btn svg { width: 16px; height: 16px; }
.rv-anleitung { margin-top: 34px; }
.rv-titel { margin: 0 0 14px; font-size: 20px; font-weight: 620; letter-spacing: -.015em; }
.rv-schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--gap); }
.rv-schritt { display: flex; flex-direction: column; gap: 16px; padding: 14px 14px 20px; }
.rv-text { padding: 0 8px; }
.rv-nr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--s-dark); color: var(--s-on-dark); font-size: 12px; font-weight: 600; }
.rv-text h3 { margin: 10px 0 6px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.rv-text p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.rv-tipps { margin-top: var(--gap); }
.rv-tipps ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--fg-2); max-width: 80ch; }
.rv-tipps b { color: var(--fg); font-weight: 600; }

/* Kleine Zeichnungen: ein Browserfenster mit der Feedback-Leiste – ruhig, ohne Dauerbewegung. */
.rv-bild { height: 168px; border-radius: calc(var(--s-r) - 8px); background: var(--s-gray); display: grid; place-items: center; overflow: hidden; }
.rv-fenster { width: 78%; max-width: 270px; height: 136px; border-radius: 12px; background: var(--s-surface); box-shadow: 0 14px 30px -18px rgba(0,0,0,.45), 0 0 0 1px var(--s-line); overflow: hidden; display: flex; flex-direction: column; }
.rv-kopf { display: flex; align-items: center; gap: 4px; padding: 7px 9px; border-bottom: 1px solid var(--s-line); }
.rv-kopf i { width: 6px; height: 6px; border-radius: 50%; background: var(--s-line-2); }
.rv-kopf span { flex: 1; height: 8px; margin-left: 8px; border-radius: 9px; background: var(--bg-sunken); }
.rv-seite { position: relative; flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.rv-z { height: 6px; width: 60%; border-radius: 9px; background: color-mix(in srgb, var(--fg) 13%, transparent); }
.rv-z.lang { width: 85%; height: 8px; background: color-mix(in srgb, var(--fg) 22%, transparent); }
.rv-foto { margin-top: 4px; height: 38px; width: 64%; border-radius: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 30%, var(--s-gray)), var(--s-gray)); }
.rv-foto.rand { outline: 2px dashed var(--brand); outline-offset: 3px; }
.rv-leiste { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; padding: 4px 6px; border-radius: 99px; background: #1b1c1e; box-shadow: 0 8px 16px -8px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); }
.rv-leiste b { font-size: 10px; line-height: 1; padding: 4px 6px; border-radius: 99px; color: #f2f2f0; font-weight: 500; }
.rv-leiste b.an { background: rgba(242, 242, 240, .22); }
.rv-punkt { width: 6px; height: 6px; margin: 0 3px; border-radius: 50%; background: var(--ok); }
.rv-tor { margin: auto; width: 76%; display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; }
.rv-tor b { font-size: 11.5px; font-weight: 600; }
.rv-feld { font-size: 9.5px; padding: 5px 7px; border-radius: 6px; background: var(--bg-sunken); color: var(--fg-3); text-align: left; }
.rv-code { display: flex; gap: 3px; justify-content: center; }
.rv-code i { width: 15px; height: 19px; border-radius: 4px; border: 1px solid var(--s-line-2); font: 600 10px/19px var(--font-mono); font-style: normal; color: var(--fg); }
.rv-pop { position: absolute; right: 8px; bottom: 8px; width: 62%; padding: 7px; border-radius: 10px; background: var(--s-surface); box-shadow: 0 12px 24px -10px rgba(0,0,0,.45), 0 0 0 1px var(--s-line); display: flex; flex-wrap: wrap; gap: 4px; }
.rv-chip { font-size: 8.5px; padding: 3px 6px; border-radius: 99px; background: var(--bg-sunken); color: var(--fg-2); white-space: nowrap; }
.rv-chip.an { background: var(--s-dark); color: var(--s-on-dark); }
.rv-tx { width: 100%; font-size: 9px; padding: 5px 6px; border-radius: 6px; border: 1px solid var(--s-line-2); color: var(--fg-2); }
.rv-thumbs { display: flex; gap: 4px; }
.rv-thumbs i { width: 24px; height: 24px; border-radius: 5px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 35%, var(--s-gray)), var(--s-gray)); }
.rv-thumbs i:nth-child(2) { background: linear-gradient(160deg, color-mix(in srgb, #E07A5F 40%, var(--s-gray)), var(--s-gray)); }
.rv-liste { position: absolute; right: 8px; top: 8px; width: 58%; padding: 6px; border-radius: 10px; background: var(--s-surface); box-shadow: 0 12px 24px -10px rgba(0,0,0,.45), 0 0 0 1px var(--s-line); display: grid; gap: 3px; }
.rv-liste span { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--fg-2); }
.rv-liste i { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 4px; background: var(--bg-sunken); font: 600 8px var(--font-mono); font-style: normal; }
.rv-liste i.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
@media (max-width: 600px) { .rv-schritte { grid-template-columns: 1fr; } .rv-bild { height: 150px; } }

/* ---------- Details zu einer Kennzahl (Dashboard) ---------- */
.k-detail { cursor: pointer; transition: box-shadow .2s, transform .2s var(--ease); }
.k-detail:hover { transform: translateY(-2px); }
.k-detail:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.dk { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.dk-dim { position: absolute; inset: 0; background: color-mix(in srgb, var(--s-bg) 60%, transparent); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); opacity: 0; transition: opacity .25s; }
.dk-karte { position: relative; width: min(720px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; border-radius: 28px; background: var(--s-surface); color: var(--fg);
  box-shadow: var(--s-pop), 0 0 0 1px var(--s-line); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .25s, transform .4s var(--spring); }
.dk.offen .dk-dim, .dk.offen .dk-karte { opacity: 1; }
.dk.offen .dk-karte { transform: none; }
.dk-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 0; }
.dk-kopf h2 { margin: 0; font-size: 22px; font-weight: 620; letter-spacing: -.015em; }
.dk-inhalt { overflow: auto; padding: 14px 24px 26px; }
.dk-inhalt h3 { margin: 26px 0 10px; font-size: 15px; font-weight: 600; }
.dk-wert { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.dk-wert b { font: 600 38px/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dk-wert .t-sub { flex-basis: 100%; }
.dk-inhalt .bars { margin-top: 18px; }
.dk-fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.dk-fakt { border-radius: 16px; background: var(--s-gray); padding: 12px 14px; display: grid; gap: 2px; }
.dk-fakt span { font-size: 12.5px; color: var(--fg-3); }
.dk-fakt b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dk-fakt small { font-size: 12px; color: var(--fg-3); }
.dk-seiten { display: grid; gap: 12px; }
.dk-seiten .pbar { margin-top: 6px; height: 6px; }
.dk-zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.dk-zeile span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-hinweis { margin: 22px 0 0; font-size: 13px; line-height: 1.5; color: var(--fg-3); }
.dk-anfragen { display: grid; gap: 8px; }
.dk-anfrage { border-radius: 16px; box-shadow: 0 0 0 1px var(--s-line); background: var(--s-surface); }
.dk-anfrage[open] { box-shadow: 0 0 0 1px var(--s-line-2); }
.dk-anfrage summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.dk-anfrage summary::-webkit-details-marker { display: none; }
.dk-av { grid-row: span 2; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--s-gray); font: 600 12px var(--font-mono); }
.dk-wer { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.dk-wer b { font-size: 14.5px; font-weight: 600; }
.dk-wer small { font-size: 12.5px; color: var(--fg-3); }
.dk-vorschau { font-size: 13.5px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-anfrage[open] .dk-vorschau { display: none; }
.dk-anfrage-inhalt { padding: 0 14px 14px 62px; display: grid; gap: 12px; }
.dk-kontakt { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-kontakt .pbtn { height: 34px; padding: 0 14px; font-size: 13px; }
.dk-anfrage dl { margin: 0; display: grid; grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); gap: 6px 14px; font-size: 13.5px; }
.dk-anfrage dt { color: var(--fg-3); }
.dk-anfrage dd { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.dk-anfrage .t-sub { margin: 0; }
@media (max-width: 600px) {
  .dk { align-items: end; padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .dk-karte { max-height: calc(100dvh - 20px); border-radius: 26px; }
  .dk-anfrage-inhalt { padding-left: 14px; }
  .dk-anfrage dl { grid-template-columns: 1fr; gap: 2px; }
  .dk-anfrage dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .dk-karte, .dk-dim, .k-detail { transition: none; transform: none; } .k-detail:hover { transform: none; } }

/* Mitteilungen mit Formatierung und Bild (collai ADR-327) */
.note-bild { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin-top: 14px; }
.note-text { margin-top: 10px; line-height: 1.6; opacity: .88; }
.note-text .md-liste { margin: 6px 0; padding-left: 22px; }
.note-text .md-titel { font-weight: 600; font-size: 17px; margin: 12px 0 4px; }
.note-text .md-zitat { border-left: 3px solid currentColor; opacity: .75; padding-left: 12px; }
.note-text .md-leer { height: 10px; }
.note-fuss { margin-top: 14px; display: flex; justify-content: flex-end; }

/* Verträge & Dokumente (collai ADR-332) */
.dialog-tabs { position: sticky; top: 69px; z-index: 2; display: flex; gap: 6px; padding: 10px 24px; background: var(--s-surface); border-bottom: 1px solid var(--s-line); }
.dialog-tabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-weight: 500; cursor: pointer; }
.dialog-tabs button[aria-selected="true"] { background: var(--s-dark); color: var(--s-on-dark); }
.vertraege > p { margin: 0 0 16px; max-width: 70ch; }
.vliste { display: grid; gap: 12px; }
.vkarte { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vkarte h3 { margin: 0 0 2px; font-size: 16px; }
.vkarte .grow { flex: 1 1 240px; min-width: 0; }
.vkarte .vknoepfe { display: flex; gap: 8px; }
.vkarte.offen { outline: 2px solid var(--brand); outline-offset: -2px; }
.vsign > .pbtn { margin-bottom: 14px; }
.vertrag-text { max-height: 52vh; overflow: auto; padding: 22px 26px; margin: 10px 0 20px; background: #fff; color: #1d1d1f; border: 1px solid var(--s-line); border-radius: 14px; font-size: 14px; line-height: 1.55; }
.vertrag-text h1 { font-size: 22px; margin: 0 0 2px; } .vertrag-text h2 { font-size: 16px; margin: 18px 0 6px; } .vertrag-text h3 { font-size: 15px; margin: 14px 0 4px; }
.vertrag-text table { width: 100%; border-collapse: collapse; } .vertrag-text th, .vertrag-text td { text-align: left; vertical-align: top; padding: 5px 10px 5px 0; }
.vertrag-text .untertitel { color: #555; margin-top: 0; } .vertrag-text ol { padding-left: 22px; } .vertrag-text img { max-height: 70px; }
.vform h3 { margin: 20px 0 8px; }
.vcheck { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; line-height: 1.45; }
.vcheck input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.sigbox { position: relative; height: 170px; max-width: 560px; margin-top: 10px; background: #fff; border: 1.5px dashed var(--s-line-2); border-radius: 14px; }
.sigbox canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; border-radius: 14px; }
.sigbox .sighint { position: absolute; left: 18px; bottom: 14px; color: #999; pointer-events: none; font-size: 13px; }
.sigbox.voll .sighint { display: none; }
.sigbox [data-leeren] { position: absolute; right: 10px; top: 10px; height: 30px; padding: 0 12px; }
.handy-feld { width: min(220px, 45vw); min-height: 38px; padding: 0 12px; border: 1px solid var(--s-line-2); border-radius: 10px; background: transparent; color: var(--fg); font: inherit; }

/* =========================================================
   Social (collai ADR-344): Beiträge freigeben – Raster und Handy-Vorschau ohne fremde Marken.
   ========================================================= */
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; align-items: start; }
.sm-grid > .empty { grid-column: 1 / -1; }
.sm-karte { display: flex; flex-direction: column; gap: 14px; padding: 12px; border: 0; text-align: left; font: inherit; cursor: pointer;
  transition: transform .25s var(--spring), box-shadow .2s; }
.sm-karte:hover { transform: translateY(-2px); }
.sm-karte:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.sm-daumen { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: var(--s-well); max-height: 380px; }
.sm-daumen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-daumen-text { color: var(--fg-3); font-size: 14px; }
.sm-play { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: rgb(20 20 22 / .55); backdrop-filter: blur(6px); }
.sm-play::after { content: ''; position: absolute; left: 17px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.sm-anzahl { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 99px; background: rgb(20 20 22 / .55); color: #fff; font: 600 12px var(--font-mono); }
.sm-karte-text { display: flex; flex-direction: column; gap: 4px; padding: 0 6px 6px; min-width: 0; }
.sm-karte-text .title { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-karte-text .status { margin-top: 4px; }

.sm-dialog { width: min(980px, calc(100vw - 32px)); }
.sm-ansicht { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: start; }
.sm-rechts { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sm-kanaele { flex-wrap: wrap; align-self: flex-start; border-radius: 22px; }
.sm-fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.sm-fakten dt { font-size: 12.5px; color: var(--fg-3); }
.sm-fakten dd { margin: 3px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.sm-entscheidung { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--s-line); }
.sm-entscheidung p { margin: 0; }
.sm-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.sm-knoepfe .pbtn { min-height: 46px; padding: 0 22px; }
.sm-wunsch { display: flex; flex-direction: column; gap: 10px; }
.sm-wunsch label { font-weight: 500; }
.sm-wunsch textarea { width: 100%; resize: vertical; min-height: 110px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--s-line-2); background: var(--s-surface);
  color: var(--fg); font: 15px/1.45 var(--font); }
.sm-wunsch textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.sm-hinweis { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 12%, transparent); font-size: 14px; }
.sm-ergebnis { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--s-surface); box-shadow: 0 0 0 1px var(--s-line); }
.sm-ergebnis.ok { background: var(--s-up-bg); box-shadow: none; }
.sm-ergebnis.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); box-shadow: none; }
.sm-ergebnis p { white-space: pre-wrap; }

/* Handy-Rahmen */
.sm-handy { position: relative; width: 100%; max-width: 380px; margin: 0 auto; overflow: hidden; border-radius: 34px; background: var(--s-surface);
  box-shadow: 0 0 0 8px var(--s-dark), 0 0 0 9px var(--s-line-2), var(--s-pop); padding-bottom: 14px; }
.sm-handy.hoch { padding-bottom: 0; background: #111; color: #f4f4f2; }
.sm-kopf { display: flex; align-items: center; gap: 10px; padding: 16px 14px 10px; font-size: 14px; }
.sm-kopf b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-mehrpunkte { margin-left: auto; letter-spacing: 1px; color: var(--fg-3); }
.sm-av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; overflow: hidden; border-radius: 50%; background: var(--s-dark); color: var(--s-on-dark);
  font: 600 12px var(--font); box-shadow: 0 0 0 2px var(--s-surface), 0 0 0 3.5px var(--brand); }
.sm-av img { width: 100%; height: 100%; object-fit: cover; }
.sm-medien { position: relative; overflow: hidden; background: var(--s-well); }
.sm-medien video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.sm-spur { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.sm-spur::-webkit-scrollbar { display: none; }
.sm-seite { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; }
.sm-seite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-pdf { border: 0; padding: 12px 18px; border-radius: 99px; background: var(--s-surface); color: var(--fg); font: 500 14px var(--font); cursor: pointer; box-shadow: 0 0 0 1px var(--s-line-2); }
.sm-nurtext { display: grid; place-items: center; height: 100%; padding: 28px; text-align: center; font-size: 19px; font-weight: 550; line-height: 1.35; overflow-wrap: anywhere; }
.sm-pfeil { position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgb(250 250 248 / .85); color: #222; box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
.sm-pfeil svg { width: 16px; height: 16px; }
.sm-pfeil.links { left: 10px; } .sm-pfeil.rechts { right: 10px; }
.sm-zaehler { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 99px; background: rgb(20 20 22 / .6); color: #fff; font: 600 12px var(--font-mono); }
.sm-aktionen { display: flex; align-items: center; gap: 14px; padding: 12px 14px 6px; }
.sm-aktionen svg { width: 24px; height: 24px; flex: none; }
.sm-rest { flex: 1; }
.sm-punkte { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.sm-aktionen { position: relative; }
.sm-punkte i { width: 6px; height: 6px; border-radius: 50%; background: var(--s-line-2); transition: background-color .2s; }
.sm-punkte i.an { background: var(--brand); }
.sm-caption { padding: 4px 14px 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.sm-captext { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-caption.auf .sm-captext { display: block; }
.sm-mehr { border: 0; background: none; padding: 0; color: var(--fg-3); font: inherit; cursor: pointer; }
/* Story/Reel: Kopf und Fortschritt über dem Bild */
.sm-handy.hoch .sm-medien { background: #000; }
.sm-handy.hoch .sm-kopf { position: absolute; top: 14px; left: 0; right: 0; z-index: 2; color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / .45); pointer-events: none; }
.sm-handy.hoch .sm-mehrpunkte { color: #fff; }
.sm-handy.hoch .sm-av { box-shadow: 0 0 0 2px #111, 0 0 0 3.5px var(--brand); }
.sm-handy.hoch .sm-zaehler { top: 62px; }
.sm-handy.hoch .sm-caption { padding: 12px 14px 16px; color: #f4f4f2; }
.sm-handy.hoch .sm-mehr { color: rgb(244 244 242 / .6); }
.sm-handy.hoch .sm-medien::before { content: ''; position: absolute; inset: 0 0 auto; height: 110px; z-index: 1; background: linear-gradient(rgb(0 0 0 / .4), transparent); pointer-events: none; }
.sm-handy.hoch:has(video) .sm-medien::before { display: none; }
.sm-fortschritt { position: absolute; top: 8px; left: 10px; right: 10px; z-index: 2; display: flex; gap: 4px; }
.sm-fortschritt i { flex: 1; height: 2.5px; border-radius: 2px; background: rgb(255 255 255 / .35); }
.sm-fortschritt i.an { background: #fff; }

@media (max-width: 760px) {
  .sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sm-karte { padding: 8px; gap: 10px; }
  .sm-ansicht { grid-template-columns: 1fr; gap: 24px; }
  .sm-handy { max-width: 340px; }
  .sm-knoepfe .pbtn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .sm-karte, .sm-punkte i { transition: none; } .sm-karte:hover { transform: none; } }
/* SEPA-Mandat per Direktlink (collai ADR-363): eine Spalte, gut lesbar. */
.mandat-seite { max-width: 920px; margin: 0 auto; }
.mandat-seite .vertrag-text { max-height: 46vh; }
