/* ─── StammPass Business — Gestaltung ────────────────────────────────────────
   Dunkle Seitenleiste, helle Arbeitsfläche, StammPass-Grün als Akzent.
   Alle Farben als Variablen, damit Diagramme und Karten dieselben nutzen. */
:root{
  --bg:#f4f6fa; --flaeche:#ffffff; --flaeche2:#f8fafc; --text:#0f172a; --leise:#64748b; --leiser:#94a3b8;
  --linie:#e5e9f0; --linie2:#eef1f6;
  --gruen:#22c55e; --gruen-d:#16a34a; --gruen-h:#dcfce7;
  --blau:#3b82f6; --blau-h:#eff6ff; --lila:#8b5cf6; --orange:#f59e0b; --rot:#ef4444; --rot-d:#b91c1c; --rot-h:#fee2e2;
  --gelb-h:#fef3c7; --gelb-d:#92400e; --gold:#f7ce4b;
  --nacht:#0b1220; --nacht2:#121b2e; --nacht3:#1c2840;
  --schatten:0 1px 2px rgba(15,23,42,.05), 0 4px 16px rgba(15,23,42,.05);
  --radius:16px;
}
*{ box-sizing:border-box; margin:0; padding:0 }
html{ -webkit-text-size-adjust:100% }
body{ font-family:"Inter","Segoe UI",system-ui,-apple-system,Roboto,sans-serif; background:var(--bg); color:var(--text); line-height:1.5; font-size:15px }
button{ font:inherit; cursor:pointer; color:inherit }
input,select,textarea{ font:inherit; color:inherit }
a{ color:var(--blau) }
.zahlen-schrift{ font-variant-numeric:tabular-nums }

/* ── Anmeldung ── */
#seiteLogin{ display:none; min-height:100vh; grid-template-columns:1.1fr 1fr }
#seiteLogin.an{ display:grid }
.login-bild{ background:radial-gradient(ellipse at 20% 10%, rgba(34,197,94,.35), transparent 55%),
  radial-gradient(ellipse at 90% 90%, rgba(59,130,246,.3), transparent 50%), var(--nacht);
  color:#fff; padding:56px; display:flex; flex-direction:column; justify-content:space-between }
.login-bild h2{ font-size:2.4rem; line-height:1.1; letter-spacing:-.02em; max-width:14ch }
.login-bild p{ color:rgba(255,255,255,.7); margin-top:14px; max-width:40ch }
.login-bild ul{ list-style:none; display:grid; gap:10px; margin-top:28px; color:rgba(255,255,255,.85) }
.login-bild li::before{ content:'✓'; color:var(--gruen); font-weight:900; margin-right:10px }
.login-form{ display:flex; align-items:center; justify-content:center; padding:32px }
.loginbox{ width:100%; max-width:400px }
.loginbox h1{ font-size:1.6rem; margin:26px 0 4px; letter-spacing:-.01em }
.loginbox p{ color:var(--leise); margin-bottom:6px }
@media (max-width:860px){ #seiteLogin.an{ grid-template-columns:1fr } .login-bild{ display:none } }

.marke{ display:flex; align-items:center; gap:10px; font-weight:900; font-size:1.1rem; letter-spacing:-.01em }
.marke i{ width:32px; height:32px; border-radius:10px; background:var(--gruen); color:var(--nacht); display:grid; place-items:center; font-style:normal; font-size:1rem }
.marke small{ font-weight:700; color:var(--leiser); font-size:.78rem }

/* ── Formulare ── */
label.lbl{ display:block; font-size:.8rem; font-weight:700; color:#475569; margin:16px 0 6px }
.eingabe{ width:100%; padding:11px 13px; border:1px solid #cfd6e1; border-radius:10px; background:#fff }
.eingabe:focus{ outline:2px solid var(--gruen); outline-offset:1px; border-color:var(--gruen) }
textarea.eingabe{ resize:vertical; min-height:74px }
.zwei{ display:grid; grid-template-columns:1fr 1fr; gap:12px }
.drei{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px }
.schalter{ display:flex; align-items:center; gap:12px; cursor:pointer; font-weight:700 }
.schalter input{ width:20px; height:20px; accent-color:var(--gruen-d) }
.zaehler{ font-size:.75rem; color:var(--leiser); text-align:right; margin-top:3px }

.knopf{ padding:10px 16px; border:0; border-radius:10px; font-weight:700; background:var(--nacht); color:#fff; display:inline-flex; align-items:center; gap:8px; white-space:nowrap }
.knopf:disabled{ opacity:.5; cursor:default }
.knopf.gruen{ background:var(--gruen-d) }
.knopf.grau{ background:#e9edf3; color:var(--text) }
.knopf.rot{ background:var(--rot-h); color:var(--rot-d) }
.knopf.klein{ padding:7px 12px; font-size:.85rem }
.knopf.breit{ width:100%; justify-content:center; margin-top:22px; padding:14px }

.meldung{ margin-top:14px; padding:11px 14px; border-radius:10px; font-size:.9rem }
.meldung:empty{ display:none }
.meldung.fehler{ background:var(--rot-h); color:var(--rot-d) }
.meldung.gut{ background:var(--gruen-h); color:#14532d }

/* ── Rahmen ── */
#seiteApp{ display:none; min-height:100vh }
#seiteApp.an{ display:grid; grid-template-columns:248px minmax(0,1fr) }
.menue{ background:var(--nacht); color:#cbd5e1; padding:20px 14px; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; gap:20px; overflow:auto }
.menue .marke{ color:#fff; padding:0 6px }
.menue nav{ display:flex; flex-direction:column; gap:2px }
.menue nav .gruppe{ font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#64748b; margin:14px 10px 6px }
.menue nav button{ text-align:left; padding:9px 12px; border:0; border-radius:10px; background:transparent; font-weight:600; color:#cbd5e1; display:flex; gap:11px; align-items:center }
.menue nav button:hover{ background:var(--nacht2) }
.menue nav button.an{ background:var(--nacht3); color:#fff }
.menue nav button.an span.sym{ color:var(--gruen) }
.menue nav button .sym{ width:20px; text-align:center; font-size:1.05rem }
.menue nav button .zahl{ margin-left:auto; background:var(--gruen); color:var(--nacht); border-radius:999px; padding:0 7px; font-size:.72rem; font-weight:800 }
.menue .unten{ margin-top:auto; border-top:1px solid var(--nacht3); padding:14px 6px 0; font-size:.84rem; display:flex; align-items:center; gap:10px }
.menue .unten .logo{ width:36px; height:36px; border-radius:10px; background:#fff; object-fit:contain; flex:0 0 auto }
.menue .unten .wer{ flex:1 1 auto; min-width:0 }
.menue .unten b{ display:block; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.menue .unten button{ background:none; border:0; color:#94a3b8; font-size:.8rem; padding:0 }

.haupt{ min-width:0; padding:26px 30px 110px }
.seitenkopf{ display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:20px }
.seitenkopf h1{ font-size:1.6rem; line-height:1.15; letter-spacing:-.02em }
.seitenkopf p{ color:var(--leise); font-size:.92rem; margin-top:2px }
.seite{ display:none } .seite.an{ display:block; animation:rein .25s ease }
@keyframes rein{ from{ opacity:0; transform:translateY(4px) } to{ opacity:1; transform:none } }
.teil{ display:none } .teil.an{ display:block }

.reiter, .segment{ display:inline-flex; gap:3px; background:#e9edf3; padding:4px; border-radius:12px; flex-wrap:wrap }
.reiter{ margin-bottom:18px }
.reiter button, .segment button{ padding:7px 14px; border:0; border-radius:9px; background:transparent; font-weight:700; color:#475569; font-size:.88rem }
.reiter button.an, .segment button.an{ background:#fff; color:var(--text); box-shadow:0 1px 3px rgba(15,23,42,.12) }

.karte{ background:var(--flaeche); border-radius:var(--radius); padding:22px; margin-bottom:18px; box-shadow:var(--schatten) }
.karte-kopf{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap }
.karte h2{ font-size:1.02rem; letter-spacing:-.01em }
.karte h2 small{ display:block; font-size:.82rem; font-weight:500; color:var(--leise); margin-top:2px }
.hilfe{ color:var(--leise); font-size:.88rem; margin-bottom:14px }
.leer{ color:var(--leiser); font-size:.9rem; padding:18px 0; text-align:center }

.raster{ display:grid; gap:18px; margin-bottom:18px }
.raster.r2{ grid-template-columns:repeat(2,minmax(0,1fr)) }
.raster.r3{ grid-template-columns:repeat(3,minmax(0,1fr)) }
.raster.r21{ grid-template-columns:minmax(0,2fr) minmax(0,1fr) }
.raster .karte{ margin-bottom:0 }
.raster > *, .spalten > *{ min-width:0 }
.spalten{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:18px; align-items:start }
.klebt{ position:sticky; top:20px }

/* ── Kennzahlen ── */
.kpis{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:18px }
.kpi{ background:var(--flaeche); border-radius:var(--radius); padding:18px 18px 12px; box-shadow:var(--schatten); position:relative; overflow:hidden; min-width:0 }
.kpi .was{ font-size:.8rem; font-weight:700; color:var(--leise); display:flex; align-items:center; gap:7px }
.kpi .was i{ width:8px; height:8px; border-radius:50%; display:inline-block }
.kpi .zahl{ font-size:1.9rem; font-weight:800; letter-spacing:-.03em; margin:6px 0 2px; font-variant-numeric:tabular-nums; white-space:nowrap }
.kpi .dazu{ display:flex; align-items:center; gap:8px; font-size:.8rem; color:var(--leise); min-height:22px }
.kpi svg.spark{ display:block; width:100%; height:40px; margin-top:6px }
.delta{ display:inline-flex; align-items:center; gap:3px; padding:2px 7px; border-radius:999px; font-size:.75rem; font-weight:800 }
.delta.hoch{ background:var(--gruen-h); color:#15803d }
.delta.runter{ background:var(--rot-h); color:var(--rot-d) }
.delta.gleich{ background:#eef2f7; color:#475569 }

.marker{ display:inline-block; padding:3px 9px; border-radius:999px; font-size:.74rem; font-weight:800; white-space:nowrap }
.marker.gruen{ background:var(--gruen-h); color:#166534 }
.marker.gelb{ background:var(--gelb-h); color:var(--gelb-d) }
.marker.rot{ background:var(--rot-h); color:var(--rot-d) }
.marker.grau{ background:#eef2f7; color:#475569 }
.marker.blau{ background:var(--blau-h); color:#1d4ed8 }
.marker.lila{ background:#f3e8ff; color:#6b21a8 }

.hinweisbox{ padding:14px 16px; border-radius:12px; font-size:.9rem; margin-bottom:18px }
.hinweisbox b{ display:block }
.hinweisbox.gelb{ background:var(--gelb-h); color:#78350f }
.hinweisbox.blau{ background:var(--blau-h); color:#1e3a8a }
.hinweisbox.gruen{ background:var(--gruen-h); color:#14532d }
.hinweisbox.rot{ background:var(--rot-h); color:#7f1d1d }

/* ── Diagramme ── */
.diagramm{ position:relative; width:100% }
.diagramm svg{ display:block; width:100%; overflow:visible }
.diagramm .achse{ font-size:11px; fill:var(--leiser) }
.diagramm .gitter{ stroke:var(--linie2); stroke-width:1 }
.tipp{ position:absolute; pointer-events:none; background:var(--nacht); color:#fff; border-radius:10px; padding:9px 11px; font-size:.8rem;
  box-shadow:0 8px 24px rgba(15,23,42,.25); white-space:nowrap; z-index:5; opacity:0; transition:opacity .1s; transform:translate(-50%,-100%) }
.tipp.an{ opacity:1 }
.tipp b{ display:block; font-size:.76rem; color:#94a3b8; font-weight:700; margin-bottom:3px }
.tipp span{ display:flex; align-items:center; gap:7px }
.tipp i{ width:8px; height:8px; border-radius:50%; display:inline-block }
.legende{ display:flex; gap:16px; flex-wrap:wrap; font-size:.82rem; color:var(--leise) }
.legende span{ display:inline-flex; align-items:center; gap:6px; cursor:pointer; user-select:none }
.legende span.aus{ opacity:.4 }
.legende i{ width:10px; height:10px; border-radius:3px; display:inline-block }

.hbalken{ display:grid; gap:9px }
.hbalken .zeile{ display:grid; grid-template-columns:80px 1fr auto; gap:10px; align-items:center; font-size:.85rem }
.hbalken .spur{ height:10px; background:var(--linie2); border-radius:999px; overflow:hidden }
.hbalken .spur div{ height:100%; border-radius:999px; background:var(--gruen) }
.hbalken .wert{ text-align:right; white-space:nowrap; min-width:44px; font-weight:700; font-variant-numeric:tabular-nums }

.heat{ display:grid; grid-template-columns:34px repeat(24,minmax(0,1fr)); gap:3px; font-size:10px; color:var(--leiser) }
.heat div{ aspect-ratio:1; border-radius:4px }
.heat .kopf{ aspect-ratio:auto; text-align:center }
.heat .tag{ aspect-ratio:auto; display:flex; align-items:center; font-weight:700 }

.personen{ display:grid; gap:2px }
.person{ display:flex; align-items:center; gap:12px; padding:9px 4px; border-bottom:1px solid var(--linie2); font-size:.9rem }
.person:last-child{ border-bottom:0 }
.avatar{ width:34px; height:34px; border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:.82rem; flex:0 0 auto; color:#fff }
.person .mitte{ flex:1 1 auto; min-width:0 }
.person .mitte b{ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.person .mitte small{ color:var(--leise) }
.fortschritt{ height:6px; background:var(--linie2); border-radius:999px; overflow:hidden; margin-top:5px }
.fortschritt div{ height:100%; background:var(--gruen); border-radius:999px }

/* ── Tabellen ── */
.tabellenhuelle{ overflow-x:auto; margin:0 -22px; padding:0 22px }
table{ width:100%; border-collapse:collapse; font-size:.88rem }
th,td{ text-align:left; padding:11px 10px; border-bottom:1px solid var(--linie2); white-space:nowrap }
th{ font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--leise); font-weight:800 }
th.sortierbar{ cursor:pointer } th.sortierbar.an{ color:var(--text) }
tbody tr.klickbar{ cursor:pointer } tbody tr.klickbar:hover{ background:var(--flaeche2) }
td.rechts, th.rechts{ text-align:right }
tr.probezeile td{ color:var(--leiser); font-style:italic }
.werkzeuge{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:14px }
.werkzeuge .eingabe{ max-width:280px }
.seiten{ display:flex; gap:8px; align-items:center; justify-content:flex-end; margin-top:14px; font-size:.86rem; color:var(--leise) }

/* ── Seitenfenster (Kundendetail, Anzeige bearbeiten) ── */
.schublade{ position:fixed; inset:0; z-index:60; display:none; background:rgba(15,23,42,.45) }
.schublade.an{ display:block }
.schublade .innen{ position:absolute; top:0; right:0; bottom:0; width:min(560px,100%); background:var(--bg); overflow:auto; box-shadow:-20px 0 60px rgba(15,23,42,.25); animation:schieben .22s ease }
@keyframes schieben{ from{ transform:translateX(40px); opacity:.5 } to{ transform:none; opacity:1 } }
.schublade .kopf{ position:sticky; top:0; background:#fff; padding:16px 20px; display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--linie); z-index:2 }
.schublade .kopf h2{ flex:1 1 auto; font-size:1.1rem }
.schublade .koerper{ padding:20px }

.fenster{ position:fixed; inset:0; z-index:70; display:none; background:rgba(15,23,42,.5); padding:24px; overflow:auto }
.fenster.an{ display:block }
.fensterbox{ max-width:980px; margin:0 auto; background:var(--bg); border-radius:20px; overflow:hidden }
.fensterkopf{ background:#fff; padding:16px 22px; display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--linie) }
.fensterkopf h2{ flex:1 1 auto; font-size:1.15rem }
.fensterinhalt{ padding:22px; display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:22px; align-items:start }
.fensterfuss{ background:#fff; padding:14px 22px; display:flex; gap:10px; justify-content:flex-end; align-items:center; border-top:1px solid var(--linie) }
.fensterfuss .meldung{ margin:0 auto 0 0 }

.fuss{ position:fixed; bottom:0; left:248px; right:0; background:#fff; border-top:1px solid var(--linie); padding:12px 26px; display:none; gap:12px; align-items:center; justify-content:flex-end; z-index:30 }
.fuss.an{ display:flex }
.fuss .hinweis{ flex:1 1 auto; font-size:.86rem; color:var(--leise) }

/* ── Glücksrad ── */
.feldzeile{ display:grid; grid-template-columns:34px 1fr 118px 54px 40px; gap:10px; align-items:center; padding:10px; border:1px solid var(--linie); border-radius:12px; margin-bottom:10px; background:#fff }
.feldkopf{ display:grid; grid-template-columns:34px 1fr 118px 54px 40px; gap:10px; padding:0 10px 6px; font-size:.72rem; font-weight:800; color:var(--leiser); text-transform:uppercase; letter-spacing:.05em }
.feldzeile input[type=text], .feldzeile input[type=number]{ width:100%; padding:9px 11px; border:1px solid #cfd6e1; border-radius:8px }
.feldzeile input[type=color]{ width:100%; height:38px; padding:2px; border:1px solid #cfd6e1; border-radius:8px; background:#fff }
.griff{ text-align:center; color:var(--leiser); font-weight:800; font-size:.85rem }
.weg{ border:0; background:var(--rot-h); color:var(--rot-d); border-radius:8px; height:38px; font-weight:800 }
.chance{ font-size:.78rem; color:#475569; text-align:center; font-weight:700 }
.summe{ margin-top:12px; padding:12px 14px; background:var(--flaeche2); border-radius:10px; font-size:.88rem; color:#475569 }
.summe b{ color:var(--text) }
.radbox{ background:var(--nacht); border-radius:16px; padding:18px; text-align:center }
.radbox svg{ width:100%; height:auto; display:block; border-radius:50%; transition:transform 4s cubic-bezier(.16,.84,.28,1) }
.radhuelle{ position:relative }
.radzeiger{ position:absolute; top:-4px; left:50%; margin-left:-9px; width:18px; height:26px; z-index:2; background:linear-gradient(180deg,#fff3c4,#f7ce4b 45%,#b8860b); clip-path:polygon(50% 100%, 0 0, 100% 0) }
.probeergebnis{ margin-top:14px; color:var(--gold); font-weight:800; min-height:1.4em }

/* ── Werbung ── */
.anzeigen{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px }
.anzeige{ background:#fff; border-radius:16px; overflow:hidden; box-shadow:var(--schatten); display:flex; flex-direction:column }
.anzeige .mini{ padding:14px; background:#eef2f7; display:flex; justify-content:center }
.anzeige .mini .tablet{ width:120px }
.anzeige .text{ padding:14px 16px; flex:1 1 auto; display:flex; flex-direction:column; gap:6px }
.anzeige .text h3{ font-size:1rem; line-height:1.25 }
.anzeige .text .zahlen{ font-size:.82rem; color:var(--leise) }
.anzeige .text .grund{ font-size:.84rem; background:var(--rot-h); color:var(--rot-d); padding:8px 10px; border-radius:8px }
.anzeige .tun{ display:flex; gap:8px; padding:0 16px 16px; flex-wrap:wrap }
.neu-kachel{ border:2px dashed #cbd5e1; border-radius:16px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:260px; color:var(--leise); font-weight:700; background:transparent }
.neu-kachel span{ font-size:2rem; line-height:1; color:var(--gruen-d) }
.tablet{ aspect-ratio:9/16; background:#070b14; border-radius:14px; overflow:hidden; display:flex; flex-direction:column; border:5px solid #1e293b; box-shadow:0 10px 30px rgba(15,23,42,.25); container-type:inline-size }
.t-flaeche{ position:relative; flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center; overflow:hidden }
.t-bild{ width:100%; height:100%; object-fit:contain; display:block }
.t-text{ width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5cqw; padding:8cqw; text-align:center }
.t-titel{ font-size:9.5cqw; font-weight:900; line-height:1.05; white-space:pre-line; word-break:break-word }
.t-zeile{ font-size:4.6cqw; font-weight:700; line-height:1.3; opacity:.88; white-space:pre-line }
.t-marke{ position:absolute; top:3cqw; left:3cqw; padding:.6cqw 2cqw; border-radius:1.4cqw; font-size:3cqw; font-weight:800; background:rgba(0,0,0,.55); color:#fff; text-transform:uppercase; letter-spacing:.06em }
.t-qr{ position:absolute; right:3.5cqw; bottom:3.5cqw; background:#fff; color:#0b1220; border-radius:3cqw; padding:2cqw; display:flex; flex-direction:column; align-items:center; gap:1cqw; max-width:34cqw }
.t-qr .qrattrappe{ width:22cqw; height:22cqw; background:repeating-linear-gradient(90deg,#0b1220 0 2cqw,transparent 2cqw 4cqw), repeating-linear-gradient(0deg,#0b1220 0 2cqw,transparent 2cqw 4cqw); opacity:.85; border-radius:1cqw }
.t-qr span{ font-size:2.8cqw; font-weight:800; line-height:1.2; text-align:center }
.t-leiste{ flex:0 0 auto; padding:3cqw 2cqw; background:#120d04; border-top:.6cqw solid var(--gold); color:var(--gold); font-size:3.6cqw; font-weight:900; text-align:center }
.wahl{ display:inline-flex; gap:4px; background:#e9edf3; padding:4px; border-radius:12px }
.wahl button{ padding:8px 16px; border:0; border-radius:9px; background:transparent; font-weight:700; color:#475569 }
.wahl button.an{ background:#fff; color:var(--text); box-shadow:0 1px 4px rgba(15,23,42,.1) }
.farben{ display:flex; gap:8px; flex-wrap:wrap; align-items:center }
.farben button{ width:34px; height:34px; border-radius:50%; border:3px solid #fff; box-shadow:0 0 0 1px #cbd5e1 }
.farben button.an{ box-shadow:0 0 0 3px var(--gruen-d) }
.farben input[type=color]{ width:40px; height:36px; border:1px solid #cfd6e1; border-radius:8px; padding:2px; background:#fff }
.bildwahl{ border:2px dashed #cbd5e1; border-radius:12px; padding:20px; text-align:center; color:var(--leise); background:#fff; cursor:pointer; display:block }
.bildwahl b{ color:var(--gruen-d) }
.liste-zeile{ display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--linie2) }
.liste-zeile:last-child{ border-bottom:0 }
.liste-zeile .tablet{ width:64px; flex:0 0 auto; border-width:3px; border-radius:8px }
.liste-zeile .mitte{ flex:1 1 auto; min-width:0 }

/* ── Treuekarte (Vorschau) ── */
.treuekarte{ border-radius:22px; overflow:hidden; box-shadow:0 18px 40px rgba(15,23,42,.25); max-width:380px; margin:0 auto }
.treuekarte .tk-kopf{ display:flex; align-items:center; gap:12px; padding:18px }
.treuekarte .tk-logo{ width:52px; height:52px; border-radius:13px; background:#fff; object-fit:contain; padding:4px; flex:0 0 auto }
.treuekarte .tk-name{ font-weight:900; font-size:1.15rem; line-height:1.1 }
.treuekarte .tk-sub{ font-size:.82rem; opacity:.85; margin-top:3px }
.treuekarte .tk-koerper{ padding:0 18px 20px }
.treuekarte .tk-stempel{ display:grid; grid-template-columns:repeat(5,1fr); gap:9px; justify-items:center }
.treuekarte .tk-stempel span{ width:38px; height:38px; border-radius:50%; border:2.5px solid rgba(255,255,255,.7); display:grid; place-items:center; font-size:.9rem }
.treuekarte .tk-stempel span.voll{ border-color:transparent }
.treuekarte .tk-belohnung{ text-align:center; font-weight:800; margin-top:14px }
.aktionzeile{ display:grid; grid-template-columns:1fr 150px 110px 1fr 40px; gap:10px; align-items:end; padding:12px; border:1px solid var(--linie); border-radius:12px; margin-bottom:10px; background:#fff }

.code{ font-family:ui-monospace,Consolas,monospace; background:var(--flaeche2); border:1px solid var(--linie); padding:10px 12px; border-radius:10px; word-break:break-all; font-size:.85rem }

/* ── Handy ── */
.handykopf{ display:none; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px }
@media (max-width:1180px){ .kpis{ grid-template-columns:repeat(2,minmax(0,1fr)) } .raster.r3{ grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media (max-width:960px){
  .spalten, .fensterinhalt, .raster.r2, .raster.r21, .raster.r3{ grid-template-columns:1fr }
  .klebt{ position:static }
}
@media (max-width:860px){
  #seiteApp.an{ display:block }
  .menue{ position:fixed; top:auto; bottom:0; left:0; right:0; height:auto; z-index:40; flex-direction:row; padding:6px; overflow-x:auto; gap:0 }
  .menue .marke, .menue .unten, .menue nav .gruppe{ display:none }
  .menue nav{ flex-direction:row; flex:1 1 auto; gap:2px }
  .menue nav button{ flex-direction:column; gap:1px; font-size:.68rem; padding:6px 9px; flex:0 0 auto }
  .menue nav button .zahl{ display:none }
  .haupt{ padding:16px 16px 150px }
  .fuss{ left:0; bottom:64px; padding:10px 16px }
  .handykopf{ display:flex }
  .fenster{ padding:0 } .fensterbox{ border-radius:0; min-height:100% }
  .kpi .zahl{ font-size:1.5rem }
  .aktionzeile{ grid-template-columns:1fr 1fr }
}
@media (max-width:620px){
  .kpis{ grid-template-columns:1fr 1fr; gap:10px }
  .kpi{ padding:14px 14px 8px }
  .feldzeile{ grid-template-columns:34px 1fr 54px 40px }
  .feldzeile .weit{ grid-column:2 / -1 }
  .feldkopf{ display:none }
  .zwei, .drei{ grid-template-columns:1fr }
  .heat{ grid-template-columns:26px repeat(24,minmax(0,1fr)); gap:1px }
}

/* ═══ Ruhige, schlichte Linie (Wunsch: clean und professionell) ═══════════════
   Helle Seitenleiste, feine Ränder statt Schatten, zurückhaltende Schriftstärken,
   keine bunten Kreise. Steht bewusst am Ende und überschreibt die Grundwerte. */
body{ font-size:14px; color:#1e293b }
h1, .seitenkopf h1{ font-weight:650; font-size:1.45rem; letter-spacing:-.015em }
.karte h2{ font-weight:600; font-size:.98rem }
.karte, .kpi{ box-shadow:none; border:1px solid var(--linie); border-radius:12px }
.kpi{ padding:16px 16px 10px }
.kpi .was{ font-weight:500; color:var(--leise); font-size:.8rem }
.kpi .was i{ width:6px; height:6px }
.kpi .zahl{ font-weight:600; font-size:1.65rem; letter-spacing:-.02em; color:var(--text) }
.delta{ font-weight:600 }
.marker{ font-weight:600; font-size:.72rem; padding:2px 8px; border-radius:6px }
.knopf{ font-weight:600; border-radius:8px }
.knopf.grau{ background:#fff; border:1px solid var(--linie); color:#334155 }
.reiter, .segment{ background:#eef1f5; border-radius:9px }
.reiter button, .segment button{ font-weight:500; border-radius:7px }
.reiter button.an, .segment button.an{ font-weight:600; box-shadow:0 1px 2px rgba(15,23,42,.08) }
th{ font-weight:600; font-size:.7rem }
.hinweisbox{ border-radius:10px; font-size:.86rem }
.hinweisbox b{ font-weight:600 }

/* Seitenleiste hell */
.menue{ background:#fff; color:#475569; border-right:1px solid var(--linie) }
.menue .marke{ color:var(--text) }
.menue .marke i{ background:var(--text); color:#fff; border-radius:8px; width:28px; height:28px; font-size:.9rem }
.menue nav .gruppe{ color:#94a3b8; font-weight:600; letter-spacing:.06em }
.menue nav button{ color:#475569; font-weight:500; padding:8px 10px; border-radius:8px }
.menue nav button:hover{ background:#f4f6fa }
.menue nav button.an{ background:#f1f5f9; color:var(--text); font-weight:600 }
.menue nav button .sym{ width:18px; height:18px; flex:0 0 auto; color:#94a3b8 }
.menue nav button.an .sym{ color:var(--gruen-d) }
.menue .unten{ border-top:1px solid var(--linie) }
.menue .unten b{ color:var(--text); font-weight:600 }
.menue .unten .logo{ border:1px solid var(--linie) }

/* Personen und Einträge */
.avatar{ width:32px; height:32px; background:#eef2f7; color:#334155; font-weight:600; font-size:.8rem }
.person{ padding:10px 2px; gap:12px }
.person .mitte b{ font-weight:600 }
.typ{ width:28px; height:28px; border-radius:8px; display:grid; place-items:center; font-size:.72rem; font-weight:700; flex:0 0 auto }
.typ-stempel{ background:#ecfdf3; color:#15803d }
.typ-einloesung{ background:#fff7ed; color:#c2410c }
.typ-korrektur{ background:#f1f5f9; color:#475569 }
.typ-gutschein{ background:#eff6ff; color:#1d4ed8 }
.kennz{ display:inline-block; font-size:.7rem; font-weight:500; color:#475569; border:1px solid var(--linie); border-radius:5px; padding:0 6px; margin-left:4px; vertical-align:1px }
.erkenntnis{ border-left:2px solid var(--gruen); padding:2px 0 2px 12px; line-height:1.5; color:#334155 }
.erkenntnis b{ color:var(--text); font-weight:600 }
.fortschritt{ height:4px }
.neu-kachel{ border-width:1px }
.login-bild h2{ font-weight:650 }
@media (max-width:860px){
  .menue{ border-right:0; border-top:1px solid var(--linie) }
  .menue nav button .sym{ width:20px; height:20px }
}
.knopf.rot{ background:#fff; border:1px solid #fecaca; color:var(--rot-d) }
.knopf.rot:hover{ background:var(--rot-h) }

/* Impressum / Datenschutz */
.rechtlich{ margin-top:18px; font-size:.78rem; color:var(--leiser) }
.rechtlich a{ color:var(--leise); text-decoration:none } .rechtlich a:hover{ text-decoration:underline }
.menue .rechtlich{ margin:8px 6px 0 }
.raster.r1{ grid-template-columns:1fr }
@media (max-width:860px){ .menue .rechtlich{ display:none } }
