/* =============================================================
   Vertriebler – Pipeline AI Solutions
   Gleiche Grundlage wie die Partnerseite und ihr Terminbuchungs-Panel:
   Papier #fbfcfe, Tinte #10243a, Space Grotesk, Haarlinien, Feder-Animationen.
   Bewusst kein „KI-Look“: keine Verläufe, kein Leuchten, keine Funkel-Symbole.
   ============================================================= */

@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #fbfcfe; --flaeche: #fff; --flaeche-2: #f1f5f9; --flaeche-3: #e9eff6;
  --linie: #e1e8f0; --linie-2: #c9d5e2;
  --tinte: #10243a; --tinte-2: #34485e; --tinte-3: #536477;
  --blau: #123b66; --blau-hell: #e5f1fb; --blau-mittel: #d5e1ee; --cyan: #12c8e6;
  --gruen: #1f7a52; --gruen-hell: #e3f4ec; --gelb: #8a5a00; --gelb-hell: #fdf1d8; --rot: #b4233f; --rot-hell: #fbe7eb; --lila: #5b3fa0; --lila-hell: #efeafb;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --feder: cubic-bezier(.34, 1.56, .64, 1);
  --weich: cubic-bezier(.22, .8, .24, 1);
  --rund: 14px; --rund-gross: 22px;
  --schatten: 0 1px 2px rgba(16, 36, 58, .05), 0 6px 24px -12px rgba(16, 36, 58, .12);
  --leiste: 248px; --ki-breite: 392px;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --feder: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.sheet-offen { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--tinte); font-family: var(--sans); font-size: 1rem; line-height: 1.5; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--blau-hell); }
.ic { width: 20px; height: 20px; flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: 0; }
.dim { color: var(--tinte-3); }
.klein-text { font-size: .86rem; }

/* ---------- Grundgerüst ---------- */
.shell { display: grid; grid-template-columns: var(--leiste) minmax(0, 1fr); min-height: 100dvh; }
.shell.ki-offen { grid-template-columns: var(--leiste) minmax(0, 1fr) var(--ki-breite); }
.leiste { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; border-right: 1px solid var(--linie); background: #fff; overflow-y: auto; }
.marke { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; text-decoration: none; }
.marke img { width: 30px; height: 30px; }
.marke b { font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.marke small { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-3); }
.nav-gruppe { margin: 14px 10px 4px; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tinte-3); }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--tinte-2); text-decoration: none; font-weight: 500; transition: background-color .2s, color .2s, transform .4s var(--feder); }
.nav-link:hover { background: var(--flaeche-2); color: var(--tinte); }
.nav-link:active { transform: scale(.97); }
.nav-link[aria-current="page"] { background: var(--tinte); color: #fff; }
.nav-link .zahl-punkt { margin-left: auto; }
.leiste-fuss { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--linie); display: grid; gap: 4px; }
.zahl-punkt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--rot); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; animation: pop .5s var(--feder) both; }
.zahl-punkt:empty, .zahl-punkt[data-n="0"] { display: none; }

.haupt { min-width: 0; display: flex; flex-direction: column; }
.kopf { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 clamp(16px, 3vw, 36px); background: rgba(251, 252, 254, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf-titel { font-weight: 600; letter-spacing: -.03em; font-size: 1.05rem; opacity: 0; transition: opacity .2s; }
.kopf.gescrollt .kopf-titel { opacity: 1; }
.kopf-aktionen { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.kopf .marke-mobil { display: none; }
.seite { width: 100%; max-width: 1120px; margin: 0 auto; padding: 8px clamp(16px, 3vw, 36px) 120px; }
.seite.breit { max-width: 1400px; }
.seiten-kopf { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px 20px; margin: 10px 0 26px; }
.seiten-kopf h1 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.02; }
.seiten-kopf p { margin: 6px 0 0; color: var(--tinte-3); max-width: 60ch; }
.seiten-kopf .aktionen { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.abschnitt { margin: 34px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.abschnitt h2 { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -.03em; }
.abschnitt .dim { font-size: .9rem; }
.abschnitt a, .abschnitt button { margin-left: auto; }
.abschnitt { flex-wrap: wrap; row-gap: 6px; }
.abschnitt > .dim { white-space: nowrap; }

/* Reinladen: Karten erscheinen nacheinander mit Feder */
.ein { animation: ein .7s var(--feder) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes ein { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.seite > * { animation: ein .6s var(--feder) both; }
.seite > *:nth-child(2) { animation-delay: 40ms; } .seite > *:nth-child(3) { animation-delay: 80ms; } .seite > *:nth-child(4) { animation-delay: 120ms; } .seite > *:nth-child(n+5) { animation-delay: 160ms; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1.5px solid var(--tinte); border-radius: 14px; background: var(--tinte); color: #fff; font-weight: 600; letter-spacing: -.015em; text-decoration: none; cursor: pointer; transition: transform .45s var(--feder), background-color .2s, border-color .2s, opacity .2s; white-space: nowrap; }
.knopf:hover { background: #1f3a58; border-color: #1f3a58; }
.knopf:active { transform: scale(.95); transition-duration: .1s; }
.knopf.hell { background: #fff; color: var(--tinte); border-color: var(--linie-2); }
.knopf.hell:hover { background: var(--flaeche-2); }
.knopf.blau { background: var(--blau-hell); color: var(--blau); border-color: var(--blau-hell); }
.knopf.blau:hover { background: var(--blau-mittel); border-color: var(--blau-mittel); }
.knopf.gefahr { background: var(--rot); border-color: var(--rot); }
.knopf.gruen { background: var(--gruen); border-color: var(--gruen); }
.knopf.klein { min-height: 36px; padding: 0 14px; border-radius: 11px; font-size: .9rem; }
.knopf.voll { width: 100%; }
.knopf .ic { width: 18px; height: 18px; }
.knopf:disabled { opacity: .55; cursor: wait; transform: none; }
.knopf.laedt { position: relative; color: transparent !important; }
.knopf.laedt::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: dreh .7s linear infinite; }
.knopf.hell.laedt::after, .knopf.blau.laedt::after { border-color: var(--linie-2); border-top-color: var(--tinte); }
@keyframes dreh { to { transform: rotate(360deg); } }
.rund-knopf { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: rgba(16, 36, 58, .06); color: var(--tinte-2); cursor: pointer; text-decoration: none; transition: transform .45s var(--feder), background-color .2s, color .2s; }
.rund-knopf:hover { background: rgba(16, 36, 58, .11); color: var(--tinte); }
.rund-knopf:active { transform: scale(.86); }
.rund-knopf .zahl-punkt { position: absolute; top: -3px; right: -4px; }
.rund-knopf.mikro.an { background: var(--rot); color: #fff; animation: puls 1.4s ease-in-out infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 8px rgba(180, 35, 63, .15); } }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.knopf-reihe.ende { justify-content: flex-end; }
.text-knopf { border: 0; background: none; padding: 6px 4px; color: var(--blau); font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-knopf:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Chips (wie die Uhrzeiten im Buchungs-Panel) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: -4px; padding-inline: 4px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.filter { flex: none; padding: 8px 14px; border: 1.5px solid var(--linie-2); border-radius: 99px; background: #fff; color: var(--tinte-2); font-weight: 600; font-size: .9rem; cursor: pointer; transition: transform .45s var(--feder), background-color .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--tinte-3); }
.filter:active { transform: scale(.93); }
.filter[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: var(--flaeche-2); color: var(--tinte-2); font-size: .78rem; font-weight: 650; white-space: nowrap; }
.status-neu { background: var(--flaeche-2); color: var(--tinte-2); }
.status-kontaktiert { background: var(--blau-hell); color: var(--blau); }
.status-interesse, .status-gespraech { background: var(--gruen-hell); color: var(--gruen); }
.status-melden { background: var(--gelb-hell); color: var(--gelb); }
.status-demo, .status-angebot { background: var(--lila-hell); color: var(--lila); }
.status-kunde { background: var(--tinte); color: #fff; }
.status-kein_interesse { background: var(--rot-hell); color: var(--rot); }

/* ---------- Karten ---------- */
.karte { position: relative; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-gross); padding: 20px; box-shadow: var(--schatten); }
.karte.klickbar { cursor: pointer; transition: transform .5s var(--feder), box-shadow .25s, border-color .25s; text-decoration: none; display: block; color: inherit; }
.karte.klickbar:hover { transform: translateY(-2px); border-color: var(--linie-2); box-shadow: 0 1px 2px rgba(16, 36, 58, .06), 0 14px 34px -16px rgba(16, 36, 58, .22); }
.karte.klickbar:active { transform: scale(.985); }
.karte h3 { margin: 0; font-size: 1.08rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.karte p { margin: 6px 0 0; color: var(--tinte-2); }
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.raster.kpi { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.liste { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.liste > * { min-width: 0; }
.zeile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--linie); border-radius: 16px; text-decoration: none; color: inherit; transition: transform .5s var(--feder), border-color .2s; }
a.zeile:hover, button.zeile:hover { border-color: var(--linie-2); }
a.zeile:active, button.zeile:active { transform: scale(.985); }
button.zeile { width: 100%; text-align: left; cursor: pointer; }
.zeile .haupt-text { min-width: 0; flex: 1; }
.zeile .haupt-text b { display: block; font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .haupt-text small { display: block; color: var(--tinte-3); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }

.kpi { padding: 18px 20px; }
.kpi b { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -.05em; line-height: 1.05; }
.kpi span { display: block; margin-top: 4px; color: var(--tinte-3); font-size: .88rem; }
.kpi small { display: block; margin-top: 6px; font-size: .8rem; color: var(--gruen); font-weight: 600; }

.hinweis { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--blau-hell); color: var(--blau); font-size: .94rem; }
.hinweis.gelb { background: var(--gelb-hell); color: var(--gelb); }
.hinweis.gruen { background: var(--gruen-hell); color: var(--gruen); }
.hinweis .ic { margin-top: 2px; }
.hinweis p { margin: 0; }

/* ---------- Avatare ---------- */
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; background: var(--blau-hell); color: var(--blau); font-size: .8rem; font-weight: 700; letter-spacing: 0; }
.avatar.gross { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar.klein { width: 28px; height: 28px; font-size: .68rem; }
.avatar[data-farbe="1"] { background: var(--gruen-hell); color: var(--gruen); } .avatar[data-farbe="2"] { background: var(--lila-hell); color: var(--lila); }
.avatar[data-farbe="3"] { background: var(--gelb-hell); color: var(--gelb); } .avatar[data-farbe="4"] { background: var(--rot-hell); color: var(--rot); } .avatar[data-farbe="5"] { background: var(--flaeche-3); color: var(--tinte-2); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 14px; }
.feld { display: grid; gap: 6px; }
.feld > span, .feld > label { font-size: .86rem; font-weight: 600; color: var(--tinte-2); }
.feld small { color: var(--tinte-3); font-size: .8rem; }
.zwei-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], input[type="date"], input[type="datetime-local"], input[type="time"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--linie-2); border-radius: 14px; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23536477' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 4px var(--blau-hell); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--tinte); }
.haken { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.haken input { margin-top: 2px; flex: none; }
.mit-mikro { position: relative; }
.mit-mikro textarea, .mit-mikro input { padding-right: 56px; }
.mit-mikro .mikro { position: absolute; right: 8px; top: 8px; }
.suchfeld { position: relative; flex: 1; min-width: 200px; }
.suchfeld .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tinte-3); }
.suchfeld input { padding-left: 42px; }
.form-fehler { color: var(--rot); font-size: .9rem; min-height: 1.2em; margin: 0; }

/* ---------- Sheet (Popup wie Erstgespräch, am Handy von unten) ---------- */
.sheet { border: 0; padding: 0; margin: auto; width: min(640px, calc(100vw - 28px)); max-height: min(860px, calc(100dvh - 28px)); overflow: auto; border-radius: 30px; background: #fff; color: var(--tinte);
  box-shadow: 0 50px 140px -20px rgba(6, 18, 32, .7); overscroll-behavior: contain; animation: sheet-ein .65s var(--feder) both; }
.sheet.breit { width: min(920px, calc(100vw - 28px)); }
.sheet.klein { width: min(440px, calc(100vw - 28px)); }
.sheet::backdrop { background: rgba(9, 25, 43, .5); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); animation: bg-ein .35s ease both; }
.sheet.zu { animation: sheet-aus .24s ease-in both; }
.sheet.zu::backdrop { animation: bg-ein .24s ease reverse both; }
@keyframes sheet-ein { from { opacity: 0; transform: translateY(46px) scale(.88); } }
@keyframes sheet-aus { to { opacity: 0; transform: translateY(26px) scale(.95); } }
@keyframes bg-ein { from { opacity: 0; } }
.sheet-kopf { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 20px 22px 12px 26px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sheet-kopf h2 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; flex: 1; }
.sheet-inhalt { padding: 4px 26px 28px; }
.sheet.klein .sheet-inhalt { padding-top: 8px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 200; max-width: min(520px, calc(100vw - 32px)); padding: 13px 20px; border-radius: 16px; background: var(--tinte); color: #fff; font-weight: 550; box-shadow: 0 20px 50px -14px rgba(6, 18, 32, .55);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .55s var(--feder), opacity .25s; pointer-events: none; }
.toast.an { transform: translate(-50%, 0); opacity: 1; }
.toast.fehler { background: var(--rot); }

/* ---------- Laden, leer ---------- */
.lade { display: flex; justify-content: center; gap: 6px; padding: 40px 0; }
.lade span { width: 9px; height: 9px; border-radius: 50%; background: var(--linie-2); animation: hupf 1s ease-in-out infinite; }
.lade span:nth-child(2) { animation-delay: .12s; } .lade span:nth-child(3) { animation-delay: .24s; }
@keyframes hupf { 50% { transform: translateY(-8px); background: var(--tinte-3); } }
.leer { text-align: center; padding: 42px 20px; color: var(--tinte-3); }
.leer .ic { width: 34px; height: 34px; color: var(--linie-2); margin-bottom: 8px; }
.leer h3 { margin: 0; color: var(--tinte); font-size: 1.1rem; letter-spacing: -.02em; }
.leer p { margin: 6px auto 0; max-width: 44ch; }

/* ---------- Heute ---------- */
.heute-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 26px; border-radius: 30px; background: #fff; border: 1px solid var(--linie); box-shadow: var(--schatten); }
.heute-kopf h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.04; }
.heute-kopf p { margin: 8px 0 0; color: var(--tinte-2); }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring .bahn { stroke: var(--flaeche-2); }
.ring .wert { stroke: var(--tinte); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--feder); }
.ring.voll .wert { stroke: var(--gruen); }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-text b { font-size: 2.1rem; font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.ring-text span { font-size: .78rem; color: var(--tinte-3); margin-top: 2px; }
.antrieb { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.antrieb .chip { padding: 6px 12px; font-size: .84rem; background: var(--flaeche-2); }
.antrieb .chip.flamme { background: var(--gelb-hell); color: var(--gelb); }
.antrieb .chip.gruen { background: var(--gruen-hell); color: var(--gruen); }
.zielbalken { height: 8px; border-radius: 99px; background: var(--flaeche-2); overflow: hidden; margin-top: 8px; }
.zielbalken i { display: block; height: 100%; border-radius: inherit; background: var(--tinte); width: 0; transition: width 1.1s var(--feder); }
.zielbalken.gruen i { background: var(--gruen); }

.kontakt-karte { padding: 0; overflow: hidden; }
.kontakt-karte.erledigt-weg { animation: weg .55s var(--weich) forwards; }
@keyframes weg { to { opacity: 0; transform: translateX(60px) scale(.96); height: 0; margin: 0; padding: 0; } }
.kk-kopf { display: flex; gap: 14px; align-items: flex-start; padding: 20px 20px 0; }
.kk-kopf .haupt-text { flex: 1; min-width: 0; }
.kk-kopf h3 { margin: 0; font-size: 1.2rem; }
.kk-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; color: var(--tinte-3); font-size: .9rem; }
.kk-meta span { display: inline-flex; align-items: center; gap: 5px; }
.kk-meta .ic { width: 15px; height: 15px; }
.kk-hinweis.befund { background: var(--gelb-hell); color: var(--gelb); }
.kk-hinweis.befund b { color: var(--gelb); }
.kk-hinweis { margin: 12px 20px 0; padding: 10px 14px; border-radius: 12px; background: var(--flaeche-2); font-size: .92rem; color: var(--tinte-2); }
.kk-wege { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
.weg { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 12px; background: var(--blau-hell); color: var(--blau); font-weight: 600; font-size: .92rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .45s var(--feder), background-color .2s; }
.weg:hover { background: var(--blau-mittel); }
.weg:active { transform: scale(.93); }
.weg .ic { width: 17px; height: 17px; }
.kk-ergebnis { margin-top: 16px; padding: 14px 20px 18px; border-top: 1px solid var(--linie); background: #fcfdfe; }
.kk-ergebnis > span { display: block; font-size: .78rem; font-weight: 650; color: var(--tinte-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.ergebnisse { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.erg { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 10px; border: 1.5px solid rgba(16, 36, 58, .16); border-radius: 14px; background: #fff; color: var(--tinte); font-weight: 650; font-size: .92rem; cursor: pointer; text-align: center; line-height: 1.15;
  transition: transform .5s var(--feder), background-color .2s, color .2s, border-color .2s; }
.erg:hover { background: var(--tinte); color: #fff; border-color: var(--tinte); transform: scale(1.03); }
.erg:active { transform: scale(.93); transition-duration: .1s; }
.erg.gut:hover { background: var(--gruen); border-color: var(--gruen); }
.erg.nein:hover { background: var(--rot); border-color: var(--rot); }
.erg-mehr { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.geschafft { text-align: center; padding: 38px 20px; border-radius: 30px; background: var(--gruen-hell); color: var(--gruen); }
.geschafft h2 { margin: 6px 0 0; font-size: 1.6rem; letter-spacing: -.04em; color: var(--tinte); }
.geschafft p { margin: 6px 0 16px; color: var(--tinte-2); }
.geschafft .gross-emoji { font-size: 3rem; line-height: 1; animation: pop .8s var(--feder) both; }

/* ---------- Kalender (wie das Buchungs-Panel) ---------- */
.kal-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.kal { padding: 22px; }
.kal-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kal-kopf b { font-size: 1.15rem; font-weight: 650; letter-spacing: -.03em; text-transform: capitalize; }
.kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; text-align: center; }
.kal-wt { padding-bottom: 6px; font-size: .7rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--tinte-3); }
.kal-tag { position: relative; display: grid; place-items: center; width: 100%; max-width: 50px; aspect-ratio: 1; margin: 0 auto; border: 0; border-radius: 50%; background: transparent; color: var(--tinte); font-size: 1rem; font-weight: 500; cursor: pointer;
  animation: kal-ein .55s var(--feder) both; animation-delay: calc(var(--i, 0) * 14ms); transition: transform .5s var(--feder), background-color .2s, color .2s; }
.kal-tag:hover { transform: scale(1.12); background: var(--flaeche-2); }
.kal-tag:active { transform: scale(.9); }
.kal-tag.anders { color: #b6c0cc; }
.kal-tag.hat { background: var(--blau-hell); color: var(--blau); font-weight: 650; }
.kal-tag.heute { box-shadow: inset 0 0 0 2px var(--tinte); }
.kal-tag[aria-pressed="true"] { background: var(--tinte); color: #fff; transform: scale(1.08); }
.kal-punkte { position: absolute; bottom: 5px; display: flex; gap: 2px; }
.kal-punkte i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .75; }
@keyframes kal-ein { from { opacity: 0; transform: scale(.5); } }
.agenda { display: grid; gap: 10px; }
.termin { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--linie); animation: kal-ein .55s var(--feder) both; animation-delay: calc(var(--i, 0) * 40ms); }
.termin .zeit { font-weight: 650; letter-spacing: -.02em; }
.termin .zeit small { display: block; font-weight: 500; color: var(--tinte-3); font-size: .78rem; }
.termin b { display: block; letter-spacing: -.02em; }
.termin small { color: var(--tinte-3); font-size: .86rem; }
.termin .knopf-reihe { flex-wrap: nowrap; gap: 6px; }
.termin .rund-knopf { width: 34px; height: 34px; }
.termin .rund-knopf .ic { width: 17px; height: 17px; }
.termin.extern { background: var(--flaeche-2); border-style: dashed; }
.termin.wv { border-left: 4px solid var(--gelb); }
.termin.schulung { border-left: 4px solid var(--lila); }
.termin.erledigt { opacity: .55; }
.termin.erledigt b { text-decoration: line-through; }
.sync-karten { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.sync { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--linie-2); background: #fff; text-decoration: none; cursor: pointer; font-weight: 600; transition: transform .5s var(--feder), border-color .2s; }
.sync:hover { border-color: var(--tinte); }
.sync:active { transform: scale(.96); }
.sync small { display: block; font-weight: 500; color: var(--tinte-3); font-size: .8rem; }
.sync .logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--flaeche-2); font-weight: 700; flex: none; }

/* ---------- Meeting mit Pipeline (wie das Erstgespräch-Panel) ---------- */
.meeting-kopf { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 16px; border-radius: 18px; background: var(--flaeche-2); }
.meeting-kopf b { display: block; letter-spacing: -.02em; }
.meeting-kopf small { color: var(--tinte-3); font-size: .84rem; }
.meeting-leute { display: flex; }
.meeting-leute .avatar { width: 40px; height: 40px; border: 2px solid #fff; }
.meeting-leute .avatar + .avatar { margin-left: -10px; }
.buchung-schritte { list-style: none; display: flex; gap: 6px; margin: 0 0 20px; padding: 4px; border-radius: 12px; background: var(--flaeche-2); counter-reset: bs; }
.buchung-schritte li { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; font-size: .86rem; font-weight: 600; color: var(--tinte-3); counter-increment: bs; }
.buchung-schritte li::before { content: counter(bs) ". "; }
.buchung-schritte li.aktiv { background: #fff; color: var(--tinte); box-shadow: 0 1px 3px rgba(16, 36, 58, .12); }
.buchung-schritte li.fertig { color: var(--tinte); }
.buchung-schritte li.fertig::before { content: "✓ "; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 12px 6px 8px; border: 0; border-radius: 99px; background: var(--blau-hell); color: var(--blau); font-weight: 600; font-size: .9rem; cursor: pointer; transition: transform .45s var(--feder); }
.zurueck:active { transform: scale(.92); }
.zurueck .ic { width: 16px; height: 16px; }
.zeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-width: 520px; }
.zeit { padding: 14px 10px; border: 1.5px solid rgba(16, 36, 58, .22); border-radius: 18px; background: #fff; color: var(--blau); font-size: 1.06rem; font-weight: 650; cursor: pointer;
  animation: kal-ein .55s var(--feder) both; animation-delay: calc(var(--i, 0) * 40ms); transition: transform .5s var(--feder), background-color .2s, color .2s, border-color .2s; }
.zeit:hover { background: var(--blau); color: #fff; border-color: var(--blau); transform: scale(1.05); }
.zeit:active { transform: scale(.93); }
.meeting-cta { display: flex; align-items: center; gap: 14px; }
.meeting-cta .haupt-text { flex: 1; }

/* ---------- Chat ---------- */
.chat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100dvh - 64px - 40px); min-height: 460px; border: 1px solid var(--linie); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--schatten); }
.chat-liste { border-right: 1px solid var(--linie); overflow-y: auto; display: flex; flex-direction: column; }
.chat-liste-kopf { display: flex; align-items: center; gap: 8px; padding: 16px; border-bottom: 1px solid var(--linie); }
.chat-liste-kopf b { flex: 1; font-size: 1.05rem; letter-spacing: -.02em; }
.kanal { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; background: none; text-align: left; cursor: pointer; text-decoration: none; color: inherit; border-bottom: 1px solid var(--flaeche-2); transition: background-color .15s; }
.kanal:hover { background: var(--flaeche-2); }
.kanal[aria-current="true"] { background: var(--blau-hell); }
.kanal .haupt-text { min-width: 0; flex: 1; }
.kanal b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanal small { display: block; color: var(--tinte-3); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanal-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--tinte); color: #fff; flex: none; }
.chat-fenster { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-fenster-kopf { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--linie); }
.chat-fenster-kopf b { letter-spacing: -.02em; }
.zurueck-mobil { display: none !important; }
.chat-fenster-kopf small { display: block; color: var(--tinte-3); font-size: .8rem; }
.verlauf-chat { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.nachricht { display: flex; gap: 8px; align-items: flex-end; max-width: 80%; animation: kal-ein .4s var(--feder) both; }
.nachricht.ich { align-self: flex-end; flex-direction: row-reverse; }
.blase { padding: 9px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--linie); line-height: 1.42; overflow-wrap: anywhere; }
.nachricht.ich .blase { background: var(--tinte); color: #fff; border-color: var(--tinte); border-bottom-right-radius: 6px; }
.nachricht:not(.ich) .blase { border-bottom-left-radius: 6px; }
.nachricht .wer { display: block; font-size: .74rem; font-weight: 650; color: var(--tinte-3); margin-bottom: 2px; }
.nachricht .um { display: block; font-size: .7rem; opacity: .6; margin-top: 2px; text-align: right; }
.nachricht.folge .avatar { visibility: hidden; }
.nachricht.folge .wer { display: none; }
.blase a { color: inherit; text-decoration: underline; }
.tagestrenner { align-self: center; margin: 12px 0 6px; padding: 3px 12px; border-radius: 99px; background: var(--flaeche-2); color: var(--tinte-3); font-size: .76rem; font-weight: 600; }
.chat-eingabe { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--linie); background: #fff; }
.chat-eingabe textarea { min-height: 46px; max-height: 160px; border-radius: 22px; padding: 11px 16px; resize: none; scrollbar-width: none; }
.chat-eingabe .knopf { border-radius: 50%; width: 46px; padding: 0; flex: none; }
.chat-eingabe .mit-mikro { flex: 1; min-width: 0; }
.chat-eingabe .mit-mikro textarea { padding-right: 52px; }
.chat-eingabe .mikro { top: 3px; right: 3px; }
.aufnahme-knopf { width: 46px; height: 46px; background: var(--rot-hell); color: var(--rot); }
.chat-aufnahme { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--linie); background: var(--rot-hell); }
.chat-aufnahme .dim { flex: 1; }
.aufnahme-punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--rot); animation: puls 1.2s ease-in-out infinite; }
.blase audio.sprache { display: block; width: min(260px, 60vw); height: 40px; margin-top: 4px; }
.sprach-label { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; opacity: .85; }
.sprach-label .ic { width: 15px; height: 15px; }

/* ---------- Statistik ---------- */
.balken { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 6px; height: 180px; padding-top: 10px; }
.balken div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.balken i { display: block; width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: var(--tinte); min-height: 3px; transform-origin: bottom; animation: wachs .9s var(--feder) both; animation-delay: calc(var(--i) * 40ms); }
.balken i.leer-tag { background: var(--flaeche-3); }
.balken i.heute { background: var(--blau); }
.balken span { font-size: .7rem; color: var(--tinte-3); }
@keyframes wachs { from { transform: scaleY(0); } }
.trichter { display: grid; gap: 8px; }
.trichter div { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: .92rem; }
.trichter .bar { height: 12px; border-radius: 99px; background: var(--flaeche-2); overflow: hidden; }
.trichter .bar i { display: block; height: 100%; border-radius: inherit; background: var(--blau); animation: breit 1s var(--feder) both; transform-origin: left; }
@keyframes breit { from { transform: scaleX(0); } }
.trichter b { text-align: right; }

/* ---------- Tabellen (Verwaltung) ---------- */
.tabelle-box { overflow-x: auto; border: 1px solid var(--linie); border-radius: 18px; background: #fff; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabelle th { text-align: left; font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--tinte-3); padding: 12px 14px; border-bottom: 1px solid var(--linie); background: #fcfdfe; white-space: nowrap; }
.tabelle td { padding: 12px 14px; border-bottom: 1px solid var(--flaeche-2); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle tr.klickbar { cursor: pointer; }
.tabelle tr.klickbar:hover td { background: var(--flaeche-2); }
.unter-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -6px 0 24px; padding: 4px; border-radius: 14px; background: var(--flaeche-2); }
.unter-nav::-webkit-scrollbar { display: none; }
.unter-nav a { flex: none; padding: 8px 14px; border-radius: 11px; text-decoration: none; color: var(--tinte-3); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background-color .2s, color .2s; }
.unter-nav a:hover { color: var(--tinte); }
.unter-nav a[aria-current="page"] { background: var(--tinte); color: #fff; box-shadow: 0 2px 8px -2px rgba(16, 36, 58, .4); }
.unter-nav a[aria-current="page"] .zahl-punkt { background: #fff; color: var(--rot); }
.unter-nav .zahl-punkt { margin-left: 6px; }
.akt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--flaeche-2); }
.akt:last-child { border-bottom: 0; }
.akt p { margin: 0; font-size: .94rem; }
.akt small { color: var(--tinte-3); font-size: .8rem; }

/* ---------- Verlauf beim Kontakt ---------- */
.zeitleiste { display: grid; gap: 0; }
.ze { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--flaeche-2); margin-left: 6px; }
.ze::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--linie-2); }
.ze.status::before { border-color: var(--blau); } .ze.demo::before { border-color: var(--lila); } .ze.diktat::before, .ze.notiz::before { border-color: var(--gelb); }
.ze small { color: var(--tinte-3); font-size: .8rem; }
.ze p { margin: 2px 0 0; font-size: .94rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.reiter { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--flaeche-2); margin-bottom: 16px; }
.reiter button { flex: 1; padding: 8px 10px; border: 0; border-radius: 9px; background: none; font-weight: 600; color: var(--tinte-3); cursor: pointer; font-size: .9rem; }
.reiter button[aria-selected="true"] { background: #fff; color: var(--tinte); box-shadow: 0 1px 3px rgba(16, 36, 58, .12); }
.felder-liste { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: .94rem; }
.felder-liste dt { color: var(--tinte-3); }
.felder-liste dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Wissen, Schulungen, Produkte ---------- */
.artikel { max-width: 720px; }
.artikel h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.045em; line-height: 1.1; margin: 6px 0 10px; }
.artikel p, .artikel li { font-size: 1.04rem; line-height: 1.65; color: var(--tinte-2); }
.artikel ul { padding-left: 1.2em; }
.inhalt-text p { margin: 0 0 10px; } .inhalt-text ul { margin: 0 0 10px; padding-left: 1.2em; } .inhalt-text li { margin: 3px 0; }
.inhalt-text a { color: var(--blau); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--tinte); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fortschritt { display: flex; align-items: center; gap: 12px; }
.fortschritt .zielbalken { flex: 1; margin: 0; }
.schulung-karte { display: flex; gap: 14px; align-items: flex-start; }
.schulung-karte .nr { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--flaeche-2); font-weight: 700; flex: none; transition: background-color .3s, color .3s; }
.schulung-karte.fertig .nr { background: var(--gruen); color: #fff; }
.produkt-raster { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.produkt-top { text-align: left; font: inherit; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 24px; }
.produkt-top h3 { font-size: 1.18rem; margin-top: 8px; }
.produkt-top p { font-size: .92rem; color: var(--tinte-2); margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.produkt-top-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.produkt-preise { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip.preis { background: var(--tinte); color: #fff; font-size: .84rem; padding: 4px 11px; }
.produkt-symbol { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--blau-hell); color: var(--blau); }
.produkt-symbol.gross { width: 52px; height: 52px; border-radius: 16px; }
.produkt-symbol.gross .ic { width: 26px; height: 26px; }
.produkt-symbol[data-farbe="1"] { background: var(--gruen-hell); color: var(--gruen); } .produkt-symbol[data-farbe="2"] { background: var(--lila-hell); color: var(--lila); }
.produkt-symbol[data-farbe="3"] { background: var(--gelb-hell); color: var(--gelb); } .produkt-symbol[data-farbe="4"] { background: #fde8ef; color: #a3264b; } .produkt-symbol[data-farbe="5"] { background: var(--flaeche-3); color: var(--tinte); }
.produkt-kopf { display: flex; gap: 16px; align-items: center; }
.produkt-kopf p { margin: 0; font-size: 1.08rem; color: var(--tinte-2); }
.preis-karte { display: grid; gap: 4px; padding: 18px; }
.preis-karte b { font-size: 1.6rem; letter-spacing: -.04em; }
.preis-karte small { color: var(--tinte-3); font-size: .84rem; line-height: 1.45; }
.preis-karte.gruen { background: var(--gruen-hell); border-color: transparent; }
.preis-karte.gruen b { color: var(--gruen); }
.haken-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.haken-liste li { display: flex; gap: 10px; align-items: flex-start; }
.haken-liste .ic { color: var(--gruen); margin-top: 2px; }
.produkt-karte .chip { margin-top: 10px; }
.produkt-karte ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--tinte-2); font-size: .94rem; }
.datei-ziel { display: grid; place-items: center; gap: 6px; padding: 22px; border: 2px dashed var(--linie-2); border-radius: 16px; text-align: center; color: var(--tinte-3); cursor: pointer; transition: border-color .2s, background-color .2s; }
.datei-ziel:hover, .datei-ziel.drueber { border-color: var(--blau); background: var(--blau-hell); }
.datei-ziel input { display: none; }

/* ---------- KI-Assistent (rechts am Laptop, am Handy als Sheet) ---------- */
.ki-panel { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; border-left: 1px solid var(--linie); background: #fff; }
.ki-kopf { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--linie); }
.ki-kopf img { width: 30px; height: 30px; border-radius: 9px; background: var(--tinte); padding: 4px; }
.ki-kopf b { flex: 1; letter-spacing: -.02em; }
.ki-kopf small { display: block; font-weight: 500; color: var(--tinte-3); font-size: .78rem; }
.ki-verlauf { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ki-nachricht { max-width: 92%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; animation: kal-ein .45s var(--feder) both; overflow-wrap: anywhere; }
.ki-nachricht.ich { align-self: flex-end; background: var(--tinte); color: #fff; border-bottom-right-radius: 6px; }
.ki-nachricht.ki { align-self: flex-start; background: var(--flaeche-2); border-bottom-left-radius: 6px; }
.ki-aktionen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ki-aktionen .chip { background: var(--gruen-hell); color: var(--gruen); }
.ki-vorschlaege { display: grid; gap: 8px; margin-top: auto; }
.ki-vorschlaege button { text-align: left; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--linie); background: #fff; cursor: pointer; font-size: .92rem; transition: border-color .2s, transform .45s var(--feder); }
.ki-vorschlaege button:hover { border-color: var(--tinte-3); }
.ki-vorschlaege button:active { transform: scale(.97); }
.ki-eingabe { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--linie); }
.ki-eingabe .mit-mikro { flex: 1; }
.ki-eingabe textarea { min-height: 46px; max-height: 180px; border-radius: 22px; resize: none; padding: 11px 50px 11px 16px; overflow-y: auto; scrollbar-width: none; }
.ki-eingabe textarea::placeholder, .chat-eingabe textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ki-eingabe .mikro { top: 3px; right: 3px; }
.ki-eingabe .knopf { border-radius: 50%; width: 46px; padding: 0; flex: none; }
.ki-tippt { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--flaeche-2); }
.ki-tippt span { width: 7px; height: 7px; border-radius: 50%; background: var(--tinte-3); animation: hupf 1s ease-in-out infinite; }
.ki-tippt span:nth-child(2) { animation-delay: .12s; } .ki-tippt span:nth-child(3) { animation-delay: .24s; }
.ki-fab { display: none; }

/* ---------- Anmeldung ---------- */
.anmelden { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.anmelden-box { width: min(440px, 100%); padding: 34px 30px; border-radius: 30px; background: #fff; border: 1px solid var(--linie); box-shadow: 0 50px 140px -40px rgba(6, 18, 32, .35); animation: sheet-ein .7s var(--feder) both; }
.anmelden-box .marke { padding: 0 0 22px; }
.anmelden-box h1 { margin: 0 0 6px; font-size: 1.8rem; letter-spacing: -.05em; line-height: 1.1; }
.anmelden-box > p { margin: 0 0 22px; color: var(--tinte-3); }
.anmelden-fuss { margin-top: 20px; font-size: .84rem; color: var(--tinte-3); text-align: center; }
.anmelden-fuss a { color: var(--tinte-2); }

/* ---------- Mehr (Handy) ---------- */
.mehr-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mehr-kachel { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--linie); text-decoration: none; font-weight: 600; transition: transform .5s var(--feder); }
.mehr-kachel:active { transform: scale(.95); }
.mehr-kachel .ic { width: 26px; height: 26px; }

/* ---------- Konfetti ---------- */
.konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.konfetti i { position: absolute; bottom: -20px; width: 9px; height: 14px; border-radius: 2px; animation: flieg var(--d) cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes flieg { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* ---------- Tabbar (Handy) ---------- */
.tabbar { display: none; }

@media (max-width: 1360px) {
  .kal-layout { grid-template-columns: minmax(0, 1fr); }
  .kal-layout .kal { max-width: 520px; }
}
@media (max-width: 1280px) {
  .shell.ki-offen { grid-template-columns: var(--leiste) minmax(0, 1fr); }
  .shell.ki-offen .ki-panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(var(--ki-breite), 100vw); z-index: 60; box-shadow: -30px 0 80px -30px rgba(6, 18, 32, .35); animation: rein .5s var(--feder) both; }
  @keyframes rein { from { transform: translateX(100%); } }
}
@media (max-width: 960px) {
  .shell, .shell.ki-offen { grid-template-columns: minmax(0, 1fr); }
  .leiste { display: none; }
  .kopf { height: 56px; }
  .kopf .marke-mobil { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; letter-spacing: -.03em; }
  .kopf .marke-mobil img { width: 26px; height: 26px; }
  .kopf-titel { display: none; }
  .ki-schalter { display: none !important; }
  .seite { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--linie); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; text-decoration: none; color: var(--tinte-3); font-size: .7rem; font-weight: 600; transition: color .2s, transform .45s var(--feder); }
  .tabbar a:active { transform: scale(.88); }
  .tabbar a[aria-current="page"] { color: var(--tinte); }
  .tabbar a .ic { width: 24px; height: 24px; }
  .tabbar .zahl-punkt { position: absolute; top: 2px; left: calc(50% + 6px); }
  .ki-fab { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 45; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--tinte); color: #fff; box-shadow: 0 16px 34px -10px rgba(6, 18, 32, .55); cursor: pointer; transition: transform .5s var(--feder); }
  .ki-fab:active { transform: scale(.88); }
  .ki-fab .ic { width: 26px; height: 26px; }
  .shell.ki-offen .ki-fab { display: none; }
  .shell.ki-offen .ki-panel { position: fixed; inset: auto 0 0 0; top: 6dvh; width: 100%; height: auto; border-left: 0; border-radius: 26px 26px 0 0; z-index: 70; box-shadow: 0 -30px 80px -20px rgba(6, 18, 32, .45); animation: hoch .55s var(--feder) both; }
  .ki-eingabe { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  @keyframes hoch { from { transform: translateY(100%); } }
  .heute-kopf { grid-template-columns: minmax(0, 1fr); text-align: left; padding: 22px; border-radius: 26px; }
  .heute-kopf .ring { width: 104px; height: 104px; }
  .heute-kopf { grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
  .heute-kopf .ring-text b { font-size: 1.7rem; }
  .kal-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-layout { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 56px - 84px - env(safe-area-inset-bottom)); border-radius: 0; border-left: 0; border-right: 0; margin: 0 calc(-1 * clamp(16px, 3vw, 36px)); }
  .zurueck-mobil { display: inline-grid !important; }
  .chat-layout.offen .chat-liste { display: none; }
  .chat-layout:not(.offen) .chat-fenster { display: none; }
  .chat-seite { padding-bottom: 0 !important; }
}
@media (max-width: 760px) {
  .sheet { margin: auto 0 0; width: 100%; max-width: none; max-height: 94dvh; border-radius: 28px 28px 0 0; animation-name: von-unten; }
  .sheet.breit, .sheet.klein { width: 100%; }
  .sheet.zu { animation-name: nach-unten; }
  .sheet-inhalt { padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); }
  .sheet-kopf { padding: 18px 16px 10px 20px; }
  @keyframes von-unten { from { transform: translateY(100%); } }
  @keyframes nach-unten { to { transform: translateY(100%); } }
  .ergebnisse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heute-kopf { grid-template-columns: 88px minmax(0, 1fr) !important; gap: 16px !important; padding: 18px !important; align-items: start; }
  .heute-kopf .ring { width: 88px !important; height: 88px !important; }
  .heute-kopf .ring-text b { font-size: 1.5rem !important; }
  .heute-kopf h1 { font-size: 1.5rem; }
  .heute-kopf p { font-size: .95rem; }
  .abschnitt h2 { font-size: 1.1rem; }
  .seiten-kopf .aktionen { margin-left: 0; width: 100%; }
  .seiten-kopf .aktionen .knopf { flex: 1; }
  .felder-liste { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .felder-liste dd { margin-bottom: 8px; }
  .trichter div { grid-template-columns: 110px minmax(0, 1fr) 36px; }
  .termin { grid-template-columns: 54px minmax(0, 1fr); }
  .termin > :last-child:not(:nth-child(2)) { grid-column: 1 / -1; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
