/* Alpha Akquise · Design-System (hell/dunkel, Handy zuerst). Tokens aus dem IH-Arbeitsplatz v2. */
@font-face { font-family: "Inter Variable"; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans Variable"; src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #F4F6F9; --surface: #fff; --surface2: #F8F9FB; --ink: #0F172A; --ink2: #334155; --muted: #64748B; --faint: #94A3B8;
  --line: #E5E8EE; --line2: #F0F2F5;
  --acc: #2563EB; --acc2: #1D4ED8; --acc-soft: #EEF3FF; --acc-ink: #1E3A8A;
  --ok: #16A34A; --ok-soft: #ECFBF1; --ok-line: #BBEBCB;
  --amb: #B45309; --amb-soft: #FFF7E8; --amb-line: #FAD9A1;
  --vio: #7C3AED; --vio-soft: #F5F0FF; --teal: #0F766E; --teal-soft: #E9F7F4;
  --red: #DC2626; --red-soft: #FEF1F1; --red-line: #F8C9C9;
  --gold: #B7791F; --gold-soft: #FFF8E6; --silber: #64748B; --silber-soft: #F1F5F9; --bronze: #A0522D; --bronze-soft: #FBF0EA;
  --sh: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -10px rgba(16,24,40,.10);
  --sh-pop: 0 24px 60px -12px rgba(16,24,40,.28);
  --hex: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  --r: 16px; --r-s: 11px;
  --font: "Inter Variable", Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --head: "Plus Jakarta Sans Variable", "Inter Variable", system-ui, sans-serif;
  --side-w: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"]) {
    --bg:#0B0F17; --surface:#121826; --surface2:#161D2D; --ink:#E7ECF5; --ink2:#C3CCDB; --muted:#94A0B4; --faint:#6B7689;
    --line:#232C3D; --line2:#1A2232; --acc:#5B8DEF; --acc2:#7AA2F4; --acc-soft:#17223A; --acc-ink:#BFD2FA;
    --ok:#34D07A; --ok-soft:#0F2A1B; --ok-line:#1D4D32; --amb:#F0B45A; --amb-soft:#2A2010; --amb-line:#4D3A17;
    --vio:#A98BF5; --vio-soft:#221A38; --teal:#4FD1C0; --teal-soft:#0F2826; --red:#F87171; --red-soft:#3A1418; --red-line:#5C2228;
    --gold:#F2C14E; --gold-soft:#2C230F; --silber:#B8C2D0; --silber-soft:#1C2433; --bronze:#E09060; --bronze-soft:#2C1A10;
    --sh: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5); --sh-pop: 0 24px 60px -12px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dunkel"] {
  --bg:#0B0F17; --surface:#121826; --surface2:#161D2D; --ink:#E7ECF5; --ink2:#C3CCDB; --muted:#94A0B4; --faint:#6B7689;
  --line:#232C3D; --line2:#1A2232; --acc:#5B8DEF; --acc2:#7AA2F4; --acc-soft:#17223A; --acc-ink:#BFD2FA;
  --ok:#34D07A; --ok-soft:#0F2A1B; --ok-line:#1D4D32; --amb:#F0B45A; --amb-soft:#2A2010; --amb-line:#4D3A17;
  --vio:#A98BF5; --vio-soft:#221A38; --teal:#4FD1C0; --teal-soft:#0F2826; --red:#F87171; --red-soft:#3A1418; --red-line:#5C2228;
  --gold:#F2C14E; --gold-soft:#2C230F; --silber:#B8C2D0; --silber-soft:#1C2433; --bronze:#E09060; --bronze-soft:#2C1A10;
  --sh: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5); --sh-pop: 0 24px 60px -12px rgba(0,0,0,.7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -.02em; margin: 0; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 10px; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .klein { font-size: 13px; } .fett { font-weight: 700; }
.grow { flex: 1; } .rechts { text-align: right; } .mitte { text-align: center; } .nowrap { white-space: nowrap; }
.zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zeile.eng { gap: 6px; } .zeile.zw { justify-content: space-between; }
.stapel > * + * { margin-top: 16px; }
.stapel.eng > * + * { margin-top: 8px; }
.versteckt { display: none !important; }

/* Logo */
.marke { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.marke img { height: 30px; width: auto; }
.marke .lg-h { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="hell"]) .marke .lg-d { display: none; } :root:not([data-theme="hell"]) .marke .lg-h { display: block; } }
:root[data-theme="dunkel"] .marke .lg-d { display: none; } :root[data-theme="dunkel"] .marke .lg-h { display: block; }
.marke b { font-family: var(--head); font-weight: 800; font-size: 15px; letter-spacing: .01em; display: block; line-height: 1.1; }
.marke small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hx { width: 12px; height: 14px; clip-path: var(--hex); background: var(--line); display: inline-block; flex: none; }
.hx.acc { background: linear-gradient(160deg, #60A5FA, #2563EB); }

/* App-Rahmen: Seitenleiste (Desktop) + Fußleiste (Handy) */
.rahmen { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.seite { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.seite nav { display: flex; flex-direction: column; gap: 2px; }
.seite nav .kat { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 14px 10px 6px; }
.seite nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink2); font-weight: 500; text-decoration: none; }
.seite nav a:hover { background: var(--line2); color: var(--ink); }
.seite nav a.an { background: var(--acc-soft); color: var(--acc-ink); font-weight: 650; }
.seite nav a .zahl { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--acc); color: #fff; border-radius: 99px; padding: 0 7px; line-height: 18px; }
.seite .fuss { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.welt-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--acc-soft); color: var(--acc-ink); }
.haupt { min-width: 0; display: flex; flex-direction: column; }
.kopf { height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 28px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 30; }
.kopf .titel { font-family: var(--head); font-weight: 700; font-size: 16px; }
.kopf .handy-marke { display: none; }
.inhalt { padding: 26px 28px 60px; max-width: 1280px; width: 100%; }
.inhalt.breit { max-width: none; }
.fussleiste { display: none; }

@media (max-width: 900px) {
  .rahmen { grid-template-columns: 1fr; }
  .seite { display: none; }
  .kopf { padding: 0 16px; height: 56px; }
  .kopf .handy-marke { display: flex; }
  .kopf .titel { display: none; }
  .inhalt { padding: 18px 16px 96px; }
  .fussleiste { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .fussleiste a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 10px; }
  .fussleiste a svg.i { width: 22px; height: 22px; }
  .fussleiste a.an { color: var(--acc); }
  h1 { font-size: 22px; }
}

/* Seitenkopf */
.seitenkopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.seitenkopf p { color: var(--muted); margin: 6px 0 0; }

/* Karten */
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 20px; }
.karte.flach { box-shadow: none; }
.karte.dicht { padding: 14px 16px; }
.karte > h2, .karte > .kk { margin-bottom: 14px; }
.kk { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.raster { display: grid; gap: 16px; }
.raster.r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster.r4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.raster.seite-rechts { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1100px) { .raster.r4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .raster.r3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .raster.seite-rechts { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .raster.r2, .raster.r3 { grid-template-columns: 1fr; } .raster.r4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Kennzahlen */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh); }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .w { font-family: var(--head); font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi .s.ok { color: var(--ok); } .kpi .s.red { color: var(--red); }
.balken { height: 8px; border-radius: 99px; background: var(--line2); overflow: hidden; }
.balken > i { display: block; height: 100%; background: var(--acc); border-radius: 99px; }
.balken.ok > i { background: var(--ok); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid transparent; background: var(--acc); color: #fff; font-weight: 650; font-size: 14px; text-decoration: none !important; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--acc2); }
.btn.zwei { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.zwei:hover { background: var(--line2); }
.btn.leise { background: transparent; color: var(--ink2); }
.btn.leise:hover { background: var(--line2); }
.btn.ok { background: var(--ok); } .btn.ok:hover { filter: brightness(.95); }
.btn.rot { background: var(--red); } .btn.rot:hover { filter: brightness(.95); }
.btn.rot-zwei { background: var(--surface); color: var(--red); border-color: var(--red-line); }
.btn.gross { padding: 14px 20px; font-size: 15px; border-radius: 14px; }
.btn.klein { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.voll { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Abzeichen */
.abz { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--line2); color: var(--ink2); white-space: nowrap; }
.abz .p { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.abz.acc { background: var(--acc-soft); color: var(--acc-ink); }
.abz.ok { background: var(--ok-soft); color: var(--ok); }
.abz.amb { background: var(--amb-soft); color: var(--amb); }
.abz.red { background: var(--red-soft); color: var(--red); }
.abz.vio { background: var(--vio-soft); color: var(--vio); }
.abz.teal { background: var(--teal-soft); color: var(--teal); }
.abz.gold { background: var(--gold-soft); color: var(--gold); }
.abz.silber { background: var(--silber-soft); color: var(--silber); }
.abz.bronze { background: var(--bronze-soft); color: var(--bronze); }

/* Tabellen (werden auf dem Handy zu Karten) */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabelle td { padding: 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover { background: var(--surface2); }
.tabelle .r { text-align: right; }
.tabelle-huelle { overflow-x: auto; margin: -6px -8px; }
@media (max-width: 700px) {
  .tabelle.handy-karten thead { display: none; }
  .tabelle.handy-karten tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 8px 4px; background: var(--surface); }
  .tabelle.handy-karten td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 10px; text-align: right; }
  .tabelle.handy-karten td::before { content: attr(data-l); color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; }
  .tabelle.handy-karten td.r { text-align: right; }
}

/* Listen */
.liste { display: flex; flex-direction: column; }
.liste > .e { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line2); color: inherit; text-decoration: none; }
.liste > .e:last-child { border-bottom: 0; }
a.e:hover { background: var(--surface2); border-radius: 10px; }
.liste .e .t { font-weight: 600; }
.liste .e .u { font-size: 13px; color: var(--muted); }
.zeit-block { min-width: 58px; text-align: center; padding: 6px 8px; border-radius: 10px; background: var(--acc-soft); color: var(--acc-ink); font-weight: 700; font-family: var(--head); line-height: 1.15; }
.zeit-block small { display: block; font-size: 11px; font-weight: 600; opacity: .8; }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.feld label, .feld .label { font-size: 13px; font-weight: 600; color: var(--ink2); }
.feld .hilfe { font-size: 12.5px; color: var(--muted); }
.eingabe, .feld input:not([type=checkbox]):not([type=radio]):not([type=file]), .feld select, .feld textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); outline: none; min-height: 44px; }
.feld textarea { min-height: 96px; resize: vertical; }
.eingabe:focus, .feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 16%, transparent); }
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.felder .ganz { grid-column: 1 / -1; }
@media (max-width: 640px) { .felder { grid-template-columns: 1fr; } }
.haken { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.haken input { width: 19px; height: 19px; accent-color: var(--acc); }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 11px; padding: 9px 13px; cursor: pointer; font-weight: 550; background: var(--surface); }
.wahl input { accent-color: var(--acc); }
.wahl label:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); color: var(--acc-ink); }
.suche { position: relative; }
.suche input { padding-left: 38px !important; }
.suche svg.i { position: absolute; left: 12px; top: 13px; color: var(--faint); }

/* Hinweise */
.meldung { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.meldung.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.meldung.fehler { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.meldung.info { background: var(--acc-soft); color: var(--acc-ink); }
.meldung.warn { background: var(--amb-soft); color: var(--amb); border-color: var(--amb-line); }
.leer { text-align: center; padding: 36px 16px; color: var(--muted); }
.leer svg.i { width: 34px; height: 34px; color: var(--faint); margin-bottom: 8px; }
.leer b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* Reiter */
.reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.reiter a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.reiter a.an { color: var(--ink); border-color: var(--acc); }
.reiter a .zahl { font-size: 11px; background: var(--line2); border-radius: 99px; padding: 0 7px; margin-left: 4px; }

/* Demo-Leiste */
.demo-leiste { background: linear-gradient(90deg, #1E3A8A, #2563EB); color: #fff; font-size: 13px; padding: 7px 16px; display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.demo-leiste a { color: #fff; font-weight: 700; text-decoration: underline; }
.sperr-leiste { background: var(--amb-soft); color: var(--amb); border-bottom: 1px solid var(--amb-line); font-size: 13.5px; padding: 9px 16px; text-align: center; font-weight: 600; }

/* Avatar */
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-ink); display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.avatar.gross { width: 46px; height: 46px; font-size: 16px; }

/* Weltenwahl */
.welten-seite { min-height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 60%),
  radial-gradient(900px 500px at 110% 10%, color-mix(in srgb, var(--vio) 10%, transparent), transparent 60%), var(--bg); }
.welten-kopf { padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.welten-mitte { max-width: 1180px; margin: 0 auto; padding: 30px 24px 60px; width: 100%; }
.welten-mitte .gross-titel { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.035em; }
.welten-mitte .unter { color: var(--muted); font-size: 17px; max-width: 640px; margin: 12px 0 34px; }
.welten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .welten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .welten { grid-template-columns: 1fr; } .welten-kopf { padding: 16px; } .welten-mitte { padding: 10px 16px 40px; } }
.welt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh); color: var(--ink); text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; overflow: hidden; }
.welt:hover { transform: translateY(-3px); box-shadow: var(--sh-pop); border-color: color-mix(in srgb, var(--wf, var(--acc)) 45%, var(--line)); }
.welt .sym { width: 52px; height: 58px; clip-path: var(--hex); display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--wf, var(--acc)) 70%, #fff), var(--wf, var(--acc))); color: #fff; }
.welt .sym svg.i { width: 24px; height: 24px; }
.welt h2 { font-size: 19px; }
.welt p { color: var(--muted); font-size: 14px; margin: 0; }
.welt .wer { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wf, var(--acc)); }
.welt .los { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--wf, var(--acc)); display: flex; align-items: center; gap: 6px; }
.welt ul { margin: 2px 0 0; padding-left: 18px; color: var(--ink2); font-size: 13.5px; }

/* Login */
.login-seite { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.login-box { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--sh-pop); }

/* Dialog */
dialog.dlg { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); box-shadow: var(--sh-pop); }
dialog.dlg::backdrop { background: rgba(10,15,25,.45); backdrop-filter: blur(3px); }
dialog.dlg .dk { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
dialog.dlg .di { padding: 20px; max-height: 70vh; overflow-y: auto; }
dialog.dlg .df { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--sh-pop); z-index: 100; }
@media (max-width: 900px) { .toast { bottom: 90px; } }

/* Fortschritt (Akademie) */
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--acc) calc(var(--p) * 1%), var(--line2) 0); display: grid; place-items: center; flex: none; }
.ring::after { content: attr(data-t); width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 13px; font-family: var(--head); }
.schritt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.schritt:last-child { border-bottom: 0; }
.schritt .kn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 800; color: var(--muted); }
.schritt.fertig .kn { background: var(--ok); border-color: var(--ok); color: #fff; }
.schritt.jetzt .kn { border-color: var(--acc); color: var(--acc); }

/* Hilfsklassen fürs Drucken */
@media print { .seite, .kopf, .fussleiste, .demo-leiste, .btn { display: none !important; } .rahmen { display: block; } .karte { box-shadow: none; } }

/* ---------- Arbeitsplatz (Dialer) ---------- */
.ap { display: grid; grid-template-columns: 320px minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
@media (max-width: 1320px) { .ap { grid-template-columns: minmax(0, 1fr) 380px; } .ap .ap-links { grid-column: 1 / -1; order: 3; } }
@media (max-width: 900px) { .ap { grid-template-columns: 1fr; } .ap .ap-links { order: 2; } .ap .ap-rechts { order: 3; } }
.ap-links, .ap-rechts { position: sticky; top: 78px; }
@media (max-width: 1320px) { .ap-links, .ap-rechts { position: static; } }
.leitfaden details { border-bottom: 1px solid var(--line2); padding: 10px 0; }
.leitfaden details:last-child { border-bottom: 0; }
.leitfaden summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.leitfaden summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.leitfaden details[open] summary::before { transform: rotate(45deg); }
.leitfaden .lt { white-space: pre-line; color: var(--ink2); padding: 8px 0 2px 16px; font-size: 14.5px; }
.lead-kopf { display: flex; gap: 14px; align-items: flex-start; }
.lead-kopf .firma { font-family: var(--head); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.nummer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface2); }
.nummer .n { font-family: var(--head); font-size: 20px; font-weight: 800; letter-spacing: .01em; }
.anrufbox { display: none; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-weight: 700; border: 1px solid var(--ok-line); }
.anrufbox.an { display: flex; }
.anrufbox .uhr { font-family: var(--head); font-variant-numeric: tabular-nums; }
.daten-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.daten-raster .l { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .daten-raster { grid-template-columns: 1fr; } }
.ergebnisse { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .ergebnisse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ergebnisse .btn { padding: 12px 8px; flex-direction: column; gap: 4px; font-size: 13px; }
.frage { padding: 12px 0; border-bottom: 1px solid var(--line2); }
.frage:last-child { border-bottom: 0; }
.frage .ft { font-weight: 650; margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; }
.frage .ft .stern { color: var(--red); }
.stufen-anzeige { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.kal-tage { display: flex; flex-direction: column; gap: 10px; }
.kal-tag { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kal-tag .kt { display: flex; justify-content: space-between; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.kal-tag .kt .muted { font-weight: 500; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { padding: 7px 11px; border-radius: 9px; border: 1.5px solid var(--ok-line); background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { filter: brightness(.97); }
.slot.belegt, .slot.vorbei { background: var(--line2); color: var(--faint); border-color: var(--line); cursor: not-allowed; text-decoration: line-through; }
.slot.gesperrt { background: var(--red-soft); color: var(--red); border-color: var(--red-line); cursor: not-allowed; }
.slot.mein { background: var(--acc); color: #fff; border-color: var(--acc); }
.kal-leer { font-size: 13px; color: var(--faint); }
.termin-feier { text-align: center; padding: 30px 20px; }
.termin-feier .hex-gross { width: 86px; height: 96px; margin: 0 auto 16px; clip-path: var(--hex); background: linear-gradient(160deg, #4ADE80, #16A34A); display: grid; place-items: center; color: #fff; animation: pop .5s ease; }
.termin-feier .hex-gross svg.i { width: 40px; height: 40px; stroke-width: 2.6; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.proj-karte { display: flex; flex-direction: column; gap: 12px; border-left: 5px solid var(--pf, var(--acc)); }
.proj-karte .pn { font-family: var(--head); font-weight: 800; font-size: 18px; }
.saeule { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.saeule > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.saeule i { display: block; width: 100%; max-width: 30px; background: var(--acc); border-radius: 6px 6px 3px 3px; min-height: 3px; }
.saeule small { font-size: 10.5px; color: var(--faint); }
.saeule b { font-size: 11.5px; }
@media (max-width: 900px) { .demo-leiste { font-size: 12px; padding: 5px 10px; gap: 6px; } .demo-leiste svg.i { display: none; } }
.kunden-logo { padding: 10px 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); text-align: center; }
.kunden-logo img { max-height: 40px; max-width: 100%; }
.handy-nur { display: none !important; }
@media (max-width: 900px) { .handy-nur { display: inline-grid !important; } }

/* --- Handy-Feinschliff (Review 20.10.) --- */
.saeule > div { min-width: 0; }
.saeule b { font-size: 10px; }
@media (max-width: 640px) {
  .saeule { gap: 2px; }
  .saeule b { display: none; }
  .saeule small { font-size: 9px; }
  .kopf { gap: 8px; }
  .kopf .welt-chip { padding: 4px 8px; }
  .kopf .welt-chip span, .kopf .welt-chip { font-size: 0; }
  .kopf .welt-chip svg.i { width: 18px; height: 18px; }
  .seitenkopf > .zeile, .seitenkopf > form { width: 100%; }
}
@media (max-width: 700px) {
  .tabelle.handy-karten td { min-width: 0; overflow-wrap: anywhere; }
  .tabelle.handy-karten td::before { flex: none; max-width: 40%; }
  .tabelle.handy-karten td > * { min-width: 0; max-width: 60%; }
  .tabelle.handy-karten td select.eingabe { max-width: 190px; }
}
@media (max-width: 640px) {
  .btn { white-space: normal; }
  .seitenkopf .zeile { flex-wrap: wrap; }
}

.zeit-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.zeit-zeile .haken { min-width: 130px; }
.zeit-zeile input[type=time] { width: 116px; }
@media (max-width: 900px) {
  .handy-weg { display: none !important; }
  .lead-kopf { flex-wrap: wrap; }
  .lead-kopf .firma { font-size: 20px; }
  .liste > .e { flex-wrap: wrap; }
  .liste > .e .grow { min-width: 60%; }
}
.einrichtung .schritt { text-decoration: none; color: inherit; }
.einrichtung .schritt:hover .fett { color: var(--acc); }
@media (max-width: 640px) {
  .raster.kpi-reihe { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpi-reihe .kpi { padding: 12px 10px; }
  .kpi-reihe .kpi .l { font-size: 11px; line-height: 1.25; }
  .kpi-reihe .kpi .l svg.i { display: none; }
  .kpi-reihe .kpi .w { font-size: 22px; }
  .kpi-reihe .kpi .s { display: none; }
}
