/* Panda Revenue – ruhiges, seriöses Layout */
:root {
  color-scheme: light;
  --bg: #f4f5f7; --flaeche: #ffffff; --flaeche-2: #f8f9fb; --text: #141a22; --text-2: #5a6472; --text-3: #8a93a0;
  --linie: #e6e8ec; --linie-2: #eef0f3;
  --nav-bg: #ffffff; --nav-text: #4a5260; --nav-stark: #111418; --nav-hover: #f3f4f6; --nav-aktiv-bg: #f0f1f3; --nav-gruppe: #9aa1ab; --nav-linie: #eceef1;
  --akzent: #2a78d6; --akzent-bg: #eaf2fc;
  --s1: #2a78d6; --s1-hell: #a9cbf2; --s-vj: #c3c8d0; --s2: #eb6834; --s2-hell: #f6c3ab; --ziel: #111418;
  --gut: #1f7a4a; --gut-bg: #e6f4ec; --knapp: #9a6a00; --knapp-bg: #fdf3dc; --schlecht: #b8322a; --schlecht-bg: #fbe9e7;
  --blau: #1f5fa8; --blau-bg: #e6eef9; --rot: #b8322a; --rot-bg: #fbe9e7;
  --schatten: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1117; --flaeche: #161b23; --flaeche-2: #1b212b; --text: #e8ebf0; --text-2: #a3acb9; --text-3: #6f7a88;
    --linie: #262d38; --linie-2: #20262f;
    --nav-bg: #12161c; --nav-text: #a3acb9; --nav-stark: #f2f4f7; --nav-hover: #1b212b; --nav-aktiv-bg: #222a35; --nav-gruppe: #6f7a88; --nav-linie: #222831;
    --akzent: #3987e5; --akzent-bg: #16253a;
    --s1: #3987e5; --s1-hell: #23466f; --s-vj: #4c5563; --s2: #d95926; --s2-hell: #6b3520; --ziel: #e8ebf0;
    --gut: #5cc48a; --gut-bg: #133222; --knapp: #e2b93b; --knapp-bg: #33290f; --schlecht: #f07468; --schlecht-bg: #3a1a18;
    --blau: #7fb2ee; --blau-bg: #172a42; --rot: #f07468; --rot-bg: #3a1a18;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; margin: 0; }
h2 { font-size: 15px; font-weight: 600; margin: 0; }
h3 { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.grau { color: var(--text-2); } .klein { font-size: 12px; }
.notiz { color: var(--text-2); font-size: 12.5px; margin: 4px 0 0; max-width: 1100px; }
.fehler { color: var(--schlecht); background: var(--schlecht-bg); padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.meldung.ok { color: var(--gut); background: var(--gut-bg); padding: 10px 14px; border-radius: 8px; display: block; font-weight: 500; }
.meldung.fehler { display: block; }
.meldung:empty { display: none; }

/* ── Seitenleiste (hell, Panda schwarz-weiss) ── */
body.mit-nav { padding-left: 240px; }
.nav { position: fixed; inset: 0 auto 0 0; width: 240px; background: var(--nav-bg); border-right: 1px solid var(--nav-linie); color: var(--nav-text); display: flex; flex-direction: column; padding: 18px 12px; z-index: 10; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--nav-stark); padding: 2px 8px 18px; text-decoration: none !important; }
.marke-i { display: grid; place-items: center; flex: none; }
.marke-t { display: flex; flex-direction: column; line-height: 1.1; }
.marke-t b { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.marke-t small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--nav-gruppe); }
.ort-wahl { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--nav-aktiv-bg); border-radius: 10px; padding: 3px; margin: 0 4px 8px; }
.ort-wahl a { text-align: center; padding: 7px 6px; border-radius: 8px; color: var(--nav-text); font-weight: 550; text-decoration: none !important; }
.ort-wahl a.aktiv { background: var(--flaeche); color: var(--nav-stark); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.menu { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.menu-t { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--nav-gruppe); padding: 16px 10px 6px; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--nav-text); text-decoration: none !important; font-weight: 500; }
.menu a svg { color: var(--nav-gruppe); }
.menu a:hover { background: var(--nav-hover); color: var(--nav-stark); }
.menu a.aktiv { background: var(--nav-aktiv-bg); color: var(--nav-stark); font-weight: 650; }
.menu a.aktiv svg { color: var(--nav-stark); }
.nav-fuss { border-top: 1px solid var(--nav-linie); padding-top: 12px; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wer { display: flex; gap: 10px; align-items: center; padding: 4px 6px; color: var(--nav-stark); min-width: 0; font-weight: 550; }
.wer small { display: block; color: var(--nav-gruppe); font-size: 11px; font-weight: 400; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--nav-stark); color: var(--nav-bg); display: grid; place-items: center; font-weight: 700; flex: none; }
.abmelden { padding: 6px 8px; color: var(--nav-gruppe); font-size: 12px; flex: none; }
.ziel-hinweis { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; color: var(--text-2); font-size: 13px; }
.ziel-hinweis::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }

main { padding: 24px 32px 56px; max-width: 1680px; min-height: 100vh; }
.raster > .block { display: flex; flex-direction: column; } .raster > .block .leinwand { flex: 1; min-height: 260px; }
body.ohne-nav main { max-width: none; padding: 0; }
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.unter { color: var(--text-2); margin: 4px 0 0; }
.stand-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); background: var(--flaeche); border: 1px solid var(--linie); padding: 6px 12px; border-radius: 999px; box-shadow: var(--schatten); }
.stand-chip .punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--gut); }
.stand-chip .sep { color: var(--text-3); }

/* ── Karten ── */
.block, .karte-t { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 18px 20px; margin: 0 0 18px; }
.karte-t { padding: 0; overflow: hidden; }
.karte-kopf { padding: 16px 20px 12px; }
.block > h2 { margin-bottom: 4px; }
.untertitel { color: var(--text-2); font-size: 12.5px; margin: 2px 0 14px; }

/* ── Tabellen ── */
.scroll { overflow-x: auto; }
table.daten { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
table.daten th { position: sticky; top: 0; background: var(--flaeche-2); color: var(--text-2); font-weight: 600; font-size: 11.5px; text-transform: none; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
table.daten th.n { text-align: right; }
table.daten tr.gruppe th { background: var(--flaeche); color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; text-align: center; border-bottom: none; padding: 10px 12px 2px; }
table.daten tr.gruppe th span { display: block; border-bottom: 2px solid var(--linie); padding-bottom: 6px; }
table.daten tr.gruppe th.leer span { border: none; }
table.daten td { padding: 8px 12px; border-bottom: 1px solid var(--linie-2); white-space: nowrap; }
table.daten td.n { text-align: right; }
table.daten tbody tr:last-child td { border-bottom: none; }
table.daten tbody tr:hover td { background: var(--flaeche-2); }
table.daten td:first-child, table.daten th:first-child { padding-left: 20px; }
table.daten td:last-child, table.daten th:last-child { padding-right: 20px; }
table.daten tr.summe td { font-weight: 650; background: var(--flaeche-2); }
table.daten tr.klein td { padding-top: 3px; padding-bottom: 3px; font-size: 12px; border-bottom: none; }
table.daten tr.klein td:first-child { color: var(--text-3); padding-left: 24px; }
table.daten tr.bn-ende td { padding-bottom: 9px; border-bottom: 2px solid var(--linie); }
table.daten tr.offen td:first-child { color: var(--text-2); }
td.fett { font-weight: 650; }
table.daten.kompakt td, table.daten.kompakt th { padding-left: 8px; padding-right: 8px; }
table.daten.kompakt td:first-child, table.daten.kompakt th:first-child { padding-left: 20px; }
.wert { display: inline-block; padding: 1px 7px; border-radius: 6px; font-weight: 600; }
.wert.gut { color: var(--gut); background: var(--gut-bg); }
.wert.knapp { color: var(--knapp); background: var(--knapp-bg); }
.wert.schlecht { color: var(--schlecht); background: var(--schlecht-bg); }
.wert.rot { color: var(--rot); background: var(--rot-bg); }
.wert.blau { color: var(--blau); background: var(--blau-bg); }

/* ── Reiter ── */
.reiter-leiste { display: flex; gap: 4px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 4px; margin-bottom: 14px; width: max-content; max-width: 100%; overflow-x: auto; box-shadow: var(--schatten); }
.reiter-leiste button { background: none; color: var(--text-2); border: 0; padding: 7px 14px; border-radius: 7px; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.reiter-leiste button:hover { color: var(--text); background: var(--flaeche-2); }
.reiter-leiste button.aktiv { background: var(--akzent-bg); color: var(--akzent); }

/* ── Kennzahlen ── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 16px 18px; }
.kpi-t { color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.kpi-z { font-size: 26px; font-weight: 680; letter-spacing: -.02em; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.kpi-d { font-weight: 600; font-size: 12.5px; padding: 2px 7px; border-radius: 6px; }
.kpi-d.plus { color: var(--gut); background: var(--gut-bg); }
.kpi-d.minus { color: var(--schlecht); background: var(--schlecht-bg); }
.kpi-v, .kpi-u { color: var(--text-2); font-size: 12px; }
.kpi-u { margin-top: 6px; }

/* ── Startseite ── */
.raster { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.raster > * { margin: 0; }
.sp-12 { grid-column: span 12; } .sp-8 { grid-column: span 8; } .sp-7 { grid-column: span 7; } .sp-6 { grid-column: span 6; } .sp-5 { grid-column: span 5; } .sp-4 { grid-column: span 4; }
.leinwand { position: relative; height: 300px; } .leinwand.niedrig { height: 230px; } .leinwand.hoch { height: 380px; }
.chart-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.umschalter { display: inline-flex; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 8px; padding: 2px; }
.umschalter button { background: none; border: 0; padding: 5px 10px; border-radius: 6px; font: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.umschalter button.aktiv { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.handeln ul { list-style: none; margin: 10px 0 6px; padding: 0; }
.handeln li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--linie-2); }
.handeln li:last-child { border-bottom: none; }
.tag { flex: none; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--flaeche-2); color: var(--text-2); }
.tag.rot { background: var(--rot-bg); color: var(--rot); } .tag.blau { background: var(--blau-bg); color: var(--blau); } .tag.gruen { background: var(--gut-bg); color: var(--gut); }

/* Prognose vs. Ziel (Balken je Monat) */
.zielbalken { display: grid; gap: 12px; margin-top: 8px; }
.zb { display: grid; grid-template-columns: 74px 1fr 150px; gap: 12px; align-items: center; }
.zb-m { font-weight: 600; font-size: 13px; }
.zb-bahn { position: relative; height: 18px; background: var(--flaeche-2); border-radius: 5px; }
.zb-ist, .zb-rest { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.zb-ist { background: var(--s1); left: 0; }
.zb-rest { background: var(--s1-hell); }
.zb-ziel, .zb-vj { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; }
.zb-ziel { background: var(--ziel); } .zb-vj { background: var(--s-vj); width: 3px; }
.zb-zahl { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.zb-zahl b { display: block; font-size: 13.5px; }
.legende { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-2); font-size: 12px; margin-top: 12px; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legende i.strich { width: 3px; height: 12px; border-radius: 1px; }

/* ── Umsatz-Rechner ── */
.rechner-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.zeitraum { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--schatten); }
.zeitraum h3 { display: flex; align-items: center; gap: 8px; }
.zeitraum h3 i { width: 10px; height: 10px; border-radius: 3px; background: var(--s1); }
.zeitraum.b h3 i { background: var(--s-vj); }
.zeitraum .felder { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.zeitraum label { font-size: 12px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
table.vergleich td:first-child { color: var(--text); font-weight: 500; }
table.vergleich tr.trenn td { padding: 0; height: 8px; background: var(--flaeche-2); border: none; }

/* ── Formulare & Knöpfe ── */
button, .knopf { background: var(--akzent); color: #fff; border: 0; border-radius: 8px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; display: inline-block; text-decoration: none !important; }
button:hover, .knopf:hover { filter: brightness(1.07); }
button.zweit { background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); }
.klein-btn { padding: 5px 12px; font-size: 12.5px; }
button:disabled { opacity: .5; cursor: default; }
input, select { font: inherit; padding: 7px 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); color: var(--text); }
input:focus, select:focus { outline: 2px solid var(--akzent-bg); border-color: var(--akzent); }
input.zahl { width: 120px; text-align: right; }
input.breit { width: 100%; }
form.zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.einstellungen table.daten td { white-space: normal; }

/* Daten */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.upload { border-top: 1px solid var(--linie-2); padding: 12px 0; }
.upload p { margin: 2px 0; }
label.datei { display: inline-block; margin: 6px 0; padding: 6px 12px; border-radius: 8px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); cursor: pointer; font-weight: 500; }
label.datei input { display: none; }
.fortschritt { height: 6px; background: var(--flaeche-2); border-radius: 3px; overflow: hidden; margin: 8px 0; }
.fortschritt div { height: 100%; width: 0; background: var(--akzent); transition: width .3s; }
h2.abschnitt { margin: 26px 0 12px; font-size: 16px; }

/* Login & leer */
.login { max-width: 380px; margin: 12vh auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 30px; box-shadow: 0 10px 30px rgba(16, 24, 40, .08); }
.login-marke { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 0 22px; font-size: 18px; color: var(--text); }
.login-marke b { font-weight: 750; }
.login h1 { text-align: center; }
.login h1 { font-size: 20px; margin-bottom: 6px; }
.login label { display: block; margin: 0 0 14px; font-weight: 500; font-size: 13px; }
.login input { display: block; width: 100%; margin-top: 6px; }
.login button { width: 100%; padding: 10px; margin-top: 4px; }
.leer-zustand { text-align: center; padding: 60px 20px; background: var(--flaeche); border: 1px dashed var(--linie); border-radius: var(--radius); }
.leer-zustand p { color: var(--text-2); }

@media (max-width: 1100px) { .sp-8, .sp-7, .sp-6, .sp-5, .sp-4 { grid-column: span 12; } }
.menu-knopf { display: none; }
@media (max-width: 860px) {
  body.mit-nav { padding-left: 0; }
  /* Kopfleiste: Logo + Menü-Knopf, darunter Standort */
  .nav { position: sticky; top: 0; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--nav-linie); }
  .marke { padding: 0; }
  .ort-wahl { margin: 0; order: 4; width: 100%; }
  .ort-wahl a { padding: 8px 10px; font-size: 14px; }
  .menu-knopf { display: grid; place-items: center; order: 2; margin-left: auto; background: var(--nav-aktiv-bg); color: var(--nav-stark); border: 0; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
  .menu-knopf .i-auf { display: none; }
  .menu, .nav-fuss { display: none; }
  /* Offenes Menü: ganzer Bildschirm, gleiche Gruppen wie am PC */
  body.nav-offen { overflow: hidden; }
  body.nav-offen .nav { position: fixed; inset: 0; z-index: 50; flex-direction: column; flex-wrap: nowrap; align-items: stretch; overflow-y: auto; gap: 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  body.nav-offen .nav > .marke { order: 1; }
  body.nav-offen .menu-knopf { position: absolute; top: 12px; right: 16px; }
  body.nav-offen .menu-knopf .i-zu { display: none; } body.nav-offen .menu-knopf .i-auf { display: inline; }
  body.nav-offen .ort-wahl { order: 2; margin: 14px 0 4px; }
  body.nav-offen .menu { order: 3; display: flex; flex-direction: column; overflow: visible; flex: none; gap: 2px; }
  body.nav-offen .menu-t { display: block; padding: 18px 12px 6px; }
  body.nav-offen .menu a { padding: 12px 12px; font-size: 16px; border-radius: 10px; }
  body.nav-offen .menu a svg { width: 20px; height: 20px; }
  body.nav-offen .nav-fuss { order: 4; display: flex; margin-top: auto; padding-top: 14px; }
  main { padding: 14px 12px 40px; }
  .seitenkopf { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 14px; }
  h1 { font-size: 19px; }
  .kopf-rechts { justify-content: space-between; }
  .stand-chip { font-size: 11px; padding: 5px 10px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; }
  .kpi-z { font-size: 20px; }
  .kpi-zeile { font-size: 11px; }
  .raster { gap: 12px; }
  .block { padding: 14px; }
  .leinwand, .leinwand.hoch { height: 250px; }
  .zb { grid-template-columns: 50px 1fr 96px; gap: 8px; }
  .zb-zahl { font-size: 11px; } .zb-zahl b { font-size: 12px; }
  table.daten { font-size: 12.5px; }
  table.daten td, table.daten th { padding: 7px 9px; }
  table.daten td:first-child, table.daten th:first-child { position: sticky; left: 0; z-index: 1; background: var(--flaeche); padding-left: 12px; box-shadow: 1px 0 0 var(--linie); }
  table.daten thead th:first-child { background: var(--flaeche-2); z-index: 2; }
  table.daten tr.summe td:first-child { background: var(--flaeche-2); }
  .karte-kopf { padding: 14px 14px 10px; }
  .rechner-form, .karten { grid-template-columns: 1fr; }
  .filterleiste { flex-direction: column; align-items: stretch; }
  .vergleich-info { margin-left: 0; padding: 0; }
  .reiter-leiste { width: 100%; }
  .handeln li { flex-direction: column; gap: 4px; }
  .einstellungen td { display: block; }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 11px 12px; border-radius: 10px; }
  .kpi-t { font-size: 11.5px; line-height: 1.3; }
  .kpi-z { font-size: 19px; margin: 3px 0 4px; }
  .kpi-zeile { font-size: 11px; margin-top: 4px; }
  .kpi-d { font-size: 11px; padding: 1px 5px; }
  .unter { font-size: 13px; }
  .notiz { font-size: 12px; }
}


/* Filterleiste (Stichtag) */
.filterleiste { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 14px 18px; margin-bottom: 18px; }
.filterleiste label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
.vergleich-info { margin-left: auto; color: var(--text-2); font-size: 13px; padding-bottom: 8px; }
.vergleich-info b { color: var(--text); }

.kopf-rechts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.umschalter a { padding: 5px 12px; border-radius: 6px; font-size: 12.5px; color: var(--text-2); text-decoration: none !important; font-weight: 500; }
.umschalter a.aktiv { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.kpi-zeile { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.kpi-zeile { flex-wrap: wrap; row-gap: 2px; }
.kpi-zeile > span:first-child { min-width: 0; white-space: nowrap; }
.kpi-zeile .kpi-d { flex: none; white-space: nowrap; }
.kpi-zeile b { color: var(--text); font-weight: 600; }
.netto-hinweis { font-size: 11px; color: var(--text-3); }
.kpi-zeile b { white-space: nowrap; }
.filterleiste .schnell { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
@media (max-width: 860px) { .filterleiste .schnell { margin-left: 0; } }

/* Sprache */
.login { position: relative; }
.login-sprache { position: absolute; top: 14px; right: 14px; }

/* Ansicht wählen (Reservierungen / Warteliste / Nachfrage) */
.art-wahl { display: inline-flex; gap: 4px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 4px; margin-bottom: 14px; box-shadow: var(--schatten); max-width: 100%; overflow-x: auto; }
.art-wahl a { padding: 8px 16px; border-radius: 9px; color: var(--text-2); font-weight: 550; white-space: nowrap; text-decoration: none !important; }
.art-wahl a:hover { background: var(--flaeche-2); color: var(--text); }
.art-wahl a.aktiv { background: var(--text); color: var(--flaeche); }
@media (max-width: 860px) {
  .art-wahl { display: flex; width: 100%; }
  .art-wahl a { flex: 1; text-align: center; padding: 9px 8px; font-size: 13.5px; }
  .filterleiste { gap: 10px; padding: 12px; }
  .filterleiste label { width: 100%; }
  .filterleiste input, .filterleiste select { width: 100%; }
  .filterleiste .schnell { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
  .filterleiste .schnell .knopf { text-align: center; padding: 8px 4px; font-size: 12.5px; }
  .kopf-rechts { gap: 8px; }
  .stand-chip { width: 100%; justify-content: center; }
}

/* Handy: kompakter Kopf, damit Zahlen sofort sichtbar sind */
@media (max-width: 860px) {
  .nur-pc { display: none; }
  .marke-i img { width: 30px; height: 30px; }
  .marke-t small { display: none; }
  .nav { padding: 8px 12px; gap: 8px; }
  .menu-knopf { width: 38px; height: 38px; }
  body.nav-offen .marke-t small { display: block; }
  body.nav-offen .marke-i img { width: 34px; height: 34px; }
  .ort-wahl a { padding: 6px 8px; font-size: 13.5px; }
  .seitenkopf { gap: 8px; margin-bottom: 12px; }
  .seitenkopf .unter { display: none; }
  h1 { font-size: 18px; }
  .kopf-rechts { display: grid; grid-template-columns: auto auto 1fr; gap: 6px; align-items: center; }
  .kopf-rechts .umschalter a { padding: 4px 9px; font-size: 12px; }
  .stand-chip { width: auto; justify-content: flex-end; justify-self: end; padding: 4px 8px; font-size: 11px; box-shadow: none; }
  .art-wahl { margin-bottom: 10px; padding: 3px; }
  .art-wahl a { padding: 7px 4px; font-size: 12.5px; }
  .filterleiste { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; margin-bottom: 12px; }
  .filterleiste label { width: auto; font-size: 11px; }
  .filterleiste label:has(select) { grid-column: 1 / -1; }
  .filterleiste input, .filterleiste select { padding: 6px 8px; font-size: 13px; }
  .filterleiste .schnell { grid-column: 1 / -1; }
  .filterleiste .schnell .knopf { padding: 6px 4px; font-size: 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-zeile > span:first-child { white-space: normal; }
}
@media (max-width: 860px) {
  .kpi-zeile > span:first-child { flex-basis: 100%; }
  .kpis > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.nur-handy { display: none; }
@media (max-width: 860px) { .nur-handy { display: inline; } .stand-chip { white-space: nowrap; } }

/* Upload-Modus */
.modus { display: grid; gap: 6px; margin: 8px 0 10px; font-size: 13px; }
.modus label { display: flex; gap: 8px; align-items: baseline; cursor: pointer; }

/* Kalender */
.herkunft { display: grid; gap: 8px; max-width: 760px; }
.herkunft > div { display: grid; grid-template-columns: 40px 130px 1fr 60px 170px; gap: 10px; align-items: center; font-size: 13px; }
.herkunft .balken { height: 8px; background: var(--flaeche-2); border-radius: 4px; overflow: hidden; }
.herkunft .balken i { display: block; height: 100%; background: var(--s1); border-radius: 4px; }
.kal-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 24px; margin-top: 8px; }
.kal-monat h3 { font-size: 13px; margin-bottom: 6px; }
.kal-kopf, .kal-tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.kal-kopf span { font-size: 10.5px; color: var(--text-3); text-align: center; }
.kt { display: grid; place-items: center; height: 28px; border-radius: 6px; font-size: 12px; font-variant-numeric: tabular-nums; position: relative; background: var(--flaeche-2); cursor: default; }
.kt.f1 { background: color-mix(in srgb, var(--s1) 18%, var(--flaeche)); }
.kt.f2 { background: color-mix(in srgb, var(--s1) 40%, var(--flaeche)); }
.kt.f3 { background: var(--s1); color: #fff; }
.kt.fei::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--s2); }
.kt.eig { box-shadow: inset 0 0 0 2px var(--text); }
.kt.heute { font-weight: 800; text-decoration: underline; }
.legende .kt { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.legende .kt.fei::after { top: 4px; right: 4px; }
.laender { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; margin: 10px 0; font-size: 13px; }
/* Umsatzplan */
table.plan-tage td.ev { white-space: normal; min-width: 220px; max-width: 320px; }
table.plan-tage td.aktiv-stufe { background: var(--akzent-bg); font-weight: 650; }
table.plan-tage th .grau { font-weight: 400; }
@media (max-width: 860px) { .herkunft > div { grid-template-columns: 34px 1fr 50px; } .herkunft > div > span.grau:not(.klein), .herkunft .klein { display: none; } }
.kpi-z.kpi-text { font-size: 17px; line-height: 1.35; }
@media (max-width: 420px) { .kpi-z.kpi-text { font-size: 13.5px; } }

.laender-wahl { margin-top: 14px; }
.laender-wahl summary { cursor: pointer; color: var(--akzent); font-weight: 550; }

/* Umsatzziel mit Stufen */
.monat-wahl { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.monat-wahl a { padding: 6px 10px; border-radius: 8px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--text-2); font-size: 12.5px; text-decoration: none !important; position: relative; }
.monat-wahl a.hat::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--gut); }
.monat-wahl a.aktiv { background: var(--text); color: var(--flaeche); border-color: var(--text); }
.ziel-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.ziel-kopf > div { background: var(--flaeche-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.ziel-kopf span { font-size: 11.5px; color: var(--text-2); }
.ziel-kopf b { font-size: 17px; font-variant-numeric: tabular-nums; }
.ziel-kopf .eingabe { background: var(--akzent-bg); }
.ziel-kopf input.gross { font-size: 17px; font-weight: 700; width: 100%; }
table.ziel-tab input.zahl { width: 72px; text-align: right; }
table.ziel-tab td.nr { font-weight: 700; }
table.ziel-tab td.warn, table.ziel-tab td.warn * { color: var(--schlecht); font-weight: 700; }
table.ziel-tab button.weg { background: none; border: 0; color: var(--text-3); font-size: 18px; cursor: pointer; padding: 0 6px; }
tr.aktiv-zeile td { background: var(--akzent-bg); }
.mini-balken { width: 90px; height: 8px; background: var(--flaeche-2); border-radius: 4px; overflow: hidden; display: inline-block; }
.mini-balken i { display: block; height: 100%; background: var(--s1); }

.rechenweg { margin: 0 0 16px; background: var(--flaeche-2); border-radius: 10px; padding: 10px 14px; }
.rechenweg summary { cursor: pointer; font-weight: 650; }
.rechenweg table.daten td { white-space: normal; background: transparent; }
.rechenweg table.daten td:first-child { max-width: 680px; }

.monat-wahl .jahr { align-self: center; font-weight: 700; font-size: 12px; color: var(--text-3); margin: 0 2px 0 8px; }
.monat-wahl .jahr:first-child { margin-left: 0; }
table.analyse-tage tr.signal td { background: var(--rot-bg); }
table.analyse-tage td.ev { white-space: normal; min-width: 200px; max-width: 320px; }

.erklaerung { padding: 4px 20px 16px; color: var(--text-2); line-height: 1.55; }
.erklaerung p { margin: 0 0 10px; }
@media (min-width: 900px) { .kpis.drei { grid-template-columns: repeat(3, 1fr); } }

/* Menü: Analyse eingeklappt */
.menu-analyse summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.menu-analyse summary::-webkit-details-marker { display: none; }
.menu-analyse summary::after { content: "▸"; font-size: 11px; margin-right: 6px; }
.menu-analyse[open] summary::after { content: "▾"; }
.menu-u { font-size: 11px; color: var(--nav-gruppe); margin: 8px 12px 2px; }

/* Heute tun */
.heute-kopf { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: stretch; }
.heute-stand { display: flex; align-items: center; gap: 10px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 10px 14px; }
.heute-stand span { color: var(--text-2); }
.heute-stand.alt { border-color: var(--knapp); background: var(--knapp-bg); }
.heute-stand .knopf.klein { padding: 4px 10px; font-size: 12.5px; }
.heute-summe { margin-left: auto; display: flex; align-items: baseline; gap: 8px; background: var(--text); color: var(--flaeche); border-radius: 10px; padding: 10px 16px; }
.heute-summe b { font-size: 20px; } .heute-summe .grau { color: inherit; opacity: .7; font-size: 12.5px; }
.todo-liste { display: grid; gap: 12px; }
.todo { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 16px 18px; }
.todo-kopf { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: start; }
.todo-nr { width: 28px; height: 28px; border-radius: 50%; background: var(--flaeche-2); border: 1px solid var(--linie); display: grid; place-items: center; font-weight: 700; color: var(--text-2); }
.todo-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.todo h3 { margin: 2px 0 4px; font-size: 16px; line-height: 1.35; }
.todo-titel p { margin: 0; color: var(--text-2); }
.todo-euro { text-align: right; white-space: nowrap; }
.todo-euro b { display: block; font-size: 20px; color: var(--gut); }
.todo-euro small { color: var(--text-3); }
.todo-mehr { margin: 10px 0 0 46px; color: var(--text-2); }
.todo-mehr summary { cursor: pointer; color: var(--akzent); font-weight: 550; font-size: 13px; }
.todo-mehr p { margin: 6px 0; }
.todo-form { margin: 12px 0 0 46px; display: grid; gap: 8px; }
.todo-form textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche-2); color: var(--text); }
.todo-form summary { cursor: pointer; color: var(--akzent); }
.todo-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.todo-knoepfe .spaeter { display: inline-flex; gap: 4px; align-items: center; }
.todo-knoepfe input[type=date] { font: inherit; padding: 6px 8px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); color: var(--text); }
.knopf.zweit { background: var(--flaeche-2); color: var(--text); border: 1px solid var(--linie); }
.todo-weitere { margin: 14px 0; }
.todo-weitere > summary { cursor: pointer; color: var(--akzent); font-weight: 600; margin-bottom: 10px; }
.notiz-zelle { max-width: 280px; white-space: normal; color: var(--text-2); }
@media (max-width: 760px) {
  .todo { padding: 14px; }
  .todo-kopf { grid-template-columns: 1fr; gap: 6px; }
  .todo-nr { display: none; }
  .todo-euro { text-align: left; }
  .todo-mehr, .todo-form { margin-left: 0; }
  .heute-summe { margin-left: 0; width: 100%; }
  .heute-stand { width: 100%; }
}
.todo-notiz summary { font-size: 13px; color: var(--akzent); cursor: pointer; }
.todo-notiz textarea { margin-top: 6px; }
.todo-form { grid-template-columns: 1fr; }
.hinweis-k { background: var(--knapp-bg); color: var(--knapp); padding: 8px 12px; border-radius: 8px; }

/* Preis-Zeitstrahl */
.zeitstrahl .zs-kopf { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.zs-legende { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.zs-p { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 2px 0 8px; vertical-align: -1px; }
.zs-ort { margin: 14px 0 6px; }
.zs-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: var(--flaeche-2); border: 1px solid var(--linie); }
.zs-s { height: 100%; }
.zs-s.grenze { box-shadow: inset 2px 0 0 var(--text); }
.rauf { background: var(--rot); } .schwach { background: var(--knapp); } .gemacht { background: var(--gut); }
.halten { background: var(--linie); } .abgelehnt, .spaeter { background: var(--text-3); }
.zs-monate { position: relative; height: 18px; font-size: 11px; color: var(--text-3); }
.zs-monate span { position: absolute; top: 2px; transform: translateX(2px); }
.zs-liste summary { cursor: pointer; color: var(--akzent); font-size: 13px; margin: 2px 0 6px; }
.zs-liste td .zs-p { margin-left: 0; margin-right: 6px; }
.todo .basis { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
/* Log */
.log-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.log-filter label { display: grid; gap: 3px; font-size: 12px; color: var(--text-2); }
.log-filter select, .log-filter input { font: inherit; padding: 6px 8px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); color: var(--text); }
/* Kontaktliste */
.kontakt-form { padding: 6px 20px 18px; border-top: 1px solid var(--linie-2); }
.kontakt-form h3 { margin: 12px 0 10px; font-size: 15px; }
.kontakt-felder { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-bottom: 8px; }
.kontakt-felder label { display: grid; gap: 3px; font-size: 12px; color: var(--text-2); }
.kontakt-felder label.haken { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.kontakt-felder input:not([type=checkbox]), .kontakt-felder select { font: inherit; padding: 6px 8px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); color: var(--text); width: auto; }
.kontakt-form textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche-2); color: var(--text); }
.kontakt-meldung:empty { display: none; }
.todo-dl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* Ziele */
.ziele-tab input.zahl { width: 92px; text-align: right; }
.ziele-tab .z-pl { width: 70px; } .ziele-tab .z-tp, .ziele-tab .z-a { width: 70px; }
.ziele-tab td.ziel { background: var(--akzent-bg); }
.ziele-tab input.gerechnet { background: var(--flaeche-2); color: var(--akzent); font-weight: 600; }
.ziele-tab tr.grau-zeile td { color: var(--text-3); }
.ziele-tab tr.ziele-details td { padding-top: 0; background: var(--flaeche); }
.ziele-tab tr.ziele-details summary { cursor: pointer; color: var(--akzent); font-size: 12.5px; }
.mini-btn { padding: 1px 7px; font-size: 12px; border-radius: 6px; }

/* ⓘ-Erklärungen */
.info-w { position: relative; display: inline-block; vertical-align: middle; }
.info-k { width: 16px; height: 16px; padding: 0; margin-left: 4px; border-radius: 50%; border: 1px solid var(--text-3); background: transparent; color: var(--text-3);
  font: italic 600 10.5px/14px Georgia, serif; text-align: center; cursor: pointer; vertical-align: 1px; text-transform: none; letter-spacing: 0; }
.info-k:hover, .info-w:has(.info-pop:not([hidden])) .info-k { background: var(--akzent); border-color: var(--akzent); color: #fff; filter: none; }
.info-wert { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; border-bottom: 1px dotted var(--text-3); filter: none; }
.info-wert:hover { color: var(--akzent); filter: none; }
.info-pop { position: fixed; z-index: 50; width: 320px; max-width: calc(100vw - 32px); padding: 12px 14px; border-radius: 10px;
  background: var(--flaeche); border: 1px solid var(--linie); box-shadow: 0 8px 24px rgba(16, 24, 40, .16); text-align: left; white-space: normal;
  font: 400 12.5px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); text-transform: none; letter-spacing: 0; }
.info-pop b { display: block; font-size: 13px; margin-bottom: 4px; }
.info-pop { max-height: 70vh; overflow: auto; }
.info-w.info-ort { display: block; margin: 4px 0; }
.info-pop .info-b { display: block; color: var(--text-2); margin-bottom: 6px; }
.info-pop .info-f { display: block; background: var(--flaeche-2); border-radius: 6px; padding: 6px 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }
.info-pop .info-r { display: block; margin-top: 6px; color: var(--akzent); font-weight: 600; }
.info-pop .info-r i { color: var(--text-2); font-weight: 400; font-style: normal; }
th .info-pop { font-weight: 400; }
@media (max-width: 760px) { .info-pop { left: 16px !important; right: 16px !important; top: auto !important; bottom: 16px; width: auto; } }
.info-w .info-pop b { display: block; font-size: 13px; color: var(--text); font-weight: 650; margin-bottom: 4px; }
.info-w .info-pop small, .todo-euro .info-pop { white-space: normal; }
h2 .info-w, h3 .info-w { margin-left: 2px; }

/* Ziel-Tracking: Vorschlag */
.tracking-tab td.vs { min-width: 230px; white-space: normal; }
.vs-t { display: inline; font-weight: 600; font-size: 12.5px; }
.vs-t.rot { color: var(--schlecht, #c0392b); } .vs-t.gelb { color: var(--knapp, #b7791f); } .vs-t.gruen { color: var(--gut, #1e8e5a); } .vs-t.grau { color: var(--text-3); font-weight: 400; }

/* Preisvorschlag */
.pp-kopf { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 13.5px; }
.pp-seg { margin-bottom: 14px; }
.pp-ruhig { opacity: .75; }
.pp-tab td, .pp-tab th { white-space: nowrap; }
.log-listen summary { cursor: pointer; color: var(--akzent); font-size: 12.5px; margin-top: 4px; }
.log-listen table { margin-top: 6px; }
.pp-seg .todo-kopf { grid-template-columns: 1fr auto; }
.pp-seg .todo-tags { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) { .pp-seg .todo-kopf { grid-template-columns: 1fr; } }

/* ── Projekte ── */
.tag.gelb { background: var(--knapp-bg); color: var(--knapp); }
.proj-leiste { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.proj-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; margin-bottom: 22px; }
.proj-karte { display: flex; flex-direction: column; gap: 8px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 16px 18px; color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.proj-karte:hover { border-color: var(--akzent); transform: translateY(-1px); }
.proj-k-kopf { display: flex; flex-direction: column; gap: 6px; }
.proj-k-kopf b { font-size: 15px; line-height: 1.35; }
.proj-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-k-zahlen { font-size: 13px; font-variant-numeric: tabular-nums; }
.proj-k-urteil, .proj-urteil { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--flaeche-2); color: var(--text-2); border-left: 3px solid var(--linie); }
.proj-k-urteil.gruen, .proj-urteil.gruen { background: var(--gut-bg); color: var(--gut); border-color: var(--gut); }
.proj-k-urteil.rot, .proj-urteil.rot { background: var(--rot-bg); color: var(--rot); border-color: var(--rot); }
.proj-k-urteil.gelb, .proj-urteil.gelb { background: var(--knapp-bg); color: var(--knapp); border-color: var(--knapp); }
.proj-urteil { font-size: 14px; padding: 12px 16px; margin: 0 0 18px; }
.proj-k-fuss { font-size: 12px; margin-top: auto; }
.proj-fertig { margin: 8px 0 24px; }
.proj-fertig > summary { cursor: pointer; font-weight: 600; color: var(--text-2); padding: 8px 0; }
.proj-zurueck { margin: -6px 0 12px; }
.proj-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.proj-meta b { color: var(--text-3); font-weight: 500; margin-right: 4px; }
.proj-text { margin: 12px 0 0; color: var(--text-2); }
.proj-status { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linie-2); }
.proj-status label, .proj-felder label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
.proj-status .proj-notiz { flex: 1; min-width: 220px; }
.proj-status .proj-notiz input { width: 100%; }
.proj-felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 14px; }
.proj-felder input, .proj-felder select, .proj-felder textarea { width: 100%; }
.proj-felder textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche-2); color: var(--text); resize: vertical; }
.proj-felder small { color: var(--text-3); font-size: 11px; }
.proj-felder .breit2 { grid-column: span 2; } .proj-felder .breit3 { grid-column: 1 / -1; }
.proj-form h3 { margin: 18px 0 2px; font-size: 14px; }
.proj-kampagnen { margin: 6px 0 16px; }
.pf-kamp { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 16px; margin-top: 8px; }
.pf-k { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 4px 0; cursor: pointer; }
.pf-kamp[hidden] { display: none; }
.pf-k span { flex: 1; min-width: 0; } .pf-k small { display: block; font-size: 11.5px; }
.proj-knoepfe { display: flex; gap: 10px; }
.proj-bearbeiten > summary { cursor: pointer; }
.proj-bearbeiten[open] > summary { margin-bottom: 14px; }
.proj-loeschen { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linie-2); }
.proj-log { list-style: none; margin: 0; padding: 0 20px 14px; }
.proj-log li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--linie-2); font-size: 13px; }
.proj-log li:last-child { border-bottom: none; }
@media (max-width: 860px) {
  .proj-liste { grid-template-columns: 1fr; }
  .proj-felder { grid-template-columns: 1fr; }
  .proj-felder .breit2 { grid-column: auto; }
  .proj-leiste .umschalter { overflow-x: auto; max-width: 100%; }
  .pf-kamp { grid-template-columns: 1fr; }
}
.pf-k-kopf { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pf-k { border: 1px solid var(--linie-2); border-radius: 8px; padding: 6px 8px; align-items: center; cursor: default; }
.pf-k.r-b { border-color: var(--akzent); background: var(--akzent-bg); }
.pf-k.r-a { border-color: var(--s-vj); background: var(--flaeche-2); }
.pf-rolle { display: inline-flex; flex: none !important; border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; background: var(--flaeche); }
.pf-rolle label { cursor: pointer; }
.pf-rolle input { position: absolute; opacity: 0; pointer-events: none; }
.pf-rolle i { display: block; font-style: normal; font-size: 11px; padding: 3px 7px; color: var(--text-2); white-space: nowrap; }
.pf-rolle input:checked + i { background: var(--text); color: var(--flaeche); }
.pf-rolle input:focus-visible + i { outline: 2px solid var(--akzent); }
.proj-fazit { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.5; }
.proj-fazit p { margin: 0; color: var(--text); }
.proj-fazit p.empf { font-weight: 650; }
.proj-fazit p.acht { font-size: 13px; color: var(--text-2); }
table.proj-duell td:nth-child(2), table.proj-duell th:nth-child(2) { background: var(--akzent-bg); }
table.proj-duell td { font-size: 14px; }
.pf-mess { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
.pf-mess-k { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--linie); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: var(--flaeche); }
.pf-mess-k:has(input:checked) { border-color: var(--akzent); background: var(--akzent-bg); }
.pf-mess-k input { margin-top: 3px; }
.pf-mess-k b { display: block; font-size: 13.5px; } .pf-mess-k small { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; line-height: 1.4; }
[data-zeige][hidden], .pf-kz-hinweis[hidden] { display: none !important; }
@media (max-width: 860px) { .pf-mess { grid-template-columns: 1fr; } }
.vgl-leiste { padding-top: 10px; padding-bottom: 10px; margin-top: -8px; }
.vgl-leiste .vgl-t { font-size: 12.5px; font-weight: 600; color: var(--text-2); align-self: center; }
.kpi-vgl { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--linie); font-size: 12.5px; }
@media (min-width: 1300px) { .kpis.sechs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 861px) and (max-width: 1299px) { .kpis.sechs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpis.sechs .kpi-zeile, .kpis.sechs .kpi-zeile span, .kpis.umbruch .kpi-zeile, .kpis.umbruch .kpi-zeile span { white-space: normal; overflow-wrap: anywhere; }
.kpis.sechs .kpi, .kpis.umbruch .kpi { min-width: 0; }
/* Operative Auslastung */
table.occ-tab td, table.occ-tab th { padding: 6px 8px; }
table.occ-tab td.h, table.occ-tab th.h { min-width: 44px; font-size: 12px; font-variant-numeric: tabular-nums; }
table.occ-tab td.occ-o { background: #f1c232; color: #1d1d1d; }
table.occ-tab td.occ-r { background: #e02020; color: #fff; font-weight: 700; }
table.occ-tab tr.occ-monat td { background: var(--flaeche-2); font-size: 12.5px; padding: 8px 12px; }
table.occ-tab tr.occ-we td:first-child { color: var(--s2); }
table.occ-tab tr.occ-heute td { box-shadow: inset 0 2px 0 var(--s1), inset 0 -2px 0 var(--s1); }
table.occ-tab tr.occ-heute td:first-child { font-weight: 700; }
table.occ-tab tr.occ-zukunft td.h:not(.occ-o):not(.occ-r) { color: var(--text-2); }
.legende i.occ-o { background: #f1c232; } .legende i.occ-r { background: #e02020; }
@media (max-width: 860px) { table.occ-tab td.h, table.occ-tab th.h { min-width: 38px; font-size: 11px; padding: 5px 5px; } }
/* Übersicht: Zeitraum + Stichtag, 8 Kacheln */
.ueb-filter { margin-bottom: 8px; }
.ueb-stand { font-size: 12.5px; color: var(--text-2); margin: 0 2px 14px; }
@media (min-width: 861px) { .kpis.acht { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Zeitraum-Kalender (ein Feld statt von/bis) */
.zr-versteckt { display: none !important; }
.zr-feld { position: relative; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
.zr-knopf { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 7px 12px; cursor: pointer; min-width: 220px; text-align: left; white-space: nowrap; }
.zr-knopf:hover { border-color: var(--akzent); }
.zr-knopf svg { color: var(--text-2); flex: none; }
.zr-wert.grau { color: var(--text-3); }
.zr-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .16); padding: 12px; color: var(--text); font-size: 13px; cursor: default; }
.zr-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.zr-hinweis { font-weight: 600; font-size: 13px; text-align: center; flex: 1; }
.zr-nav { width: 32px; height: 32px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.zr-nav:hover { background: var(--flaeche-2); }
.zr-monate { display: flex; gap: 20px; touch-action: none; user-select: none; -webkit-user-select: none; }
.zr-monat { width: 252px; }
.zr-mt { text-align: center; font-weight: 600; margin: 4px 0 8px; }
.zr-raster { display: grid; grid-template-columns: repeat(7, 36px); row-gap: 2px; }
.zr-wt { text-align: center; font-size: 11px; color: var(--text-3); padding-bottom: 4px; }
.zr-tag { height: 34px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; border-radius: 0; font-variant-numeric: tabular-nums; }
.zr-tag:hover { background: var(--flaeche-2); border-radius: 8px; }
.zr-tag.heute { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.zr-tag.drin { background: var(--s1-hell); border-radius: 0; }
.zr-tag.anf, .zr-tag.end { background: var(--s1); color: #fff; font-weight: 600; }
.zr-tag.anf { border-radius: 8px 0 0 8px; } .zr-tag.end { border-radius: 0 8px 8px 0; } .zr-tag.anf.end { border-radius: 8px; }
.zr-fuss { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linie); }
.zr-fuss .knopf { padding: 7px 16px; }
.zr-ok:disabled { opacity: .5; cursor: default; }
@media (max-width: 640px) {
  .zr-knopf { width: 100%; min-width: 0; }
  .zr-feld { grid-column: 1 / -1; }
  .zr-pop { position: fixed; left: 0 !important; right: 0; top: auto; bottom: 0; border-radius: 16px 16px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  body.zr-offen::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 55; }
  .zr-monate { justify-content: center; }
  .zr-monat { width: 100%; max-width: 360px; }
  .zr-raster { grid-template-columns: repeat(7, 1fr); }
  .zr-tag { height: 42px; font-size: 15px; }
  .zr-fuss .knopf { flex: 1; padding: 11px; }
}
/* Live-Verbindung zum Admin (Daten) */
.abgl-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 10px; }
.abgl-karte { border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--flaeche-2); }
.abgl-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.abgl-kopf h3 { margin: 0; }
.abgl-status { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.abgl-status.gut { color: var(--gut); } .abgl-status.schlecht { color: var(--schlecht, #c0392b); }
.abgl-karte label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
.abgl-karte label.abgl-aktiv { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.abgl-karte input:not([type=checkbox]) { width: 100%; }
.abgl-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.fehler-text { color: var(--schlecht, #c0392b); }
@media (max-width: 640px) { .abgl-knoepfe .knopf { flex: 1; } }
.abgl-start { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.abgl-start .abgl-los { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 18px; text-align: left; }
.abgl-start .abgl-los small { font-size: 11.5px; font-weight: 400; opacity: .8; }
@media (max-width: 640px) { .abgl-start .abgl-los { flex: 1 1 100%; } }
/* Auslastung: Parkplatz-Auswahl */
.pp-wahl { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.pp-chip { display: flex; flex-direction: column; gap: 2px; padding: 9px 14px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); color: var(--text); text-decoration: none; min-width: 120px; }
.pp-chip:hover { border-color: var(--akzent); }
.pp-chip b { font-size: 14px; }
.pp-chip span { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.pp-chip i { font-style: normal; }
.pp-chip i.pp-orange { color: #b7860b; font-weight: 600; } .pp-chip i.pp-rot { color: #e02020; font-weight: 600; }
.pp-chip.aktiv { border-color: var(--s1); box-shadow: inset 0 0 0 1px var(--s1); background: var(--s1-hell); }
@media (max-width: 640px) { .pp-wahl { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 2px; -webkit-overflow-scrolling: touch; } .pp-chip { flex: none; } }
/* Google Ads: Alle / Brand / Non-Brand */
.seg-wahl { display: inline-flex; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; align-self: flex-end; background: var(--flaeche); }
.seg-wahl a { padding: 8px 14px; font-size: 13px; color: var(--text-2); text-decoration: none; border-left: 1px solid var(--linie); white-space: nowrap; }
.seg-wahl a:first-child { border-left: 0; }
.seg-wahl a.aktiv { background: var(--s1); color: #fff; font-weight: 600; }
.seg-marke { color: var(--s1); }
@media (max-width: 640px) { .seg-wahl { grid-column: 1 / -1; width: 100%; } .seg-wahl a { flex: 1; text-align: center; } }
/* Log: manueller Eintrag */
.log-neu { padding: 14px 18px; }
.log-neu > summary { display: inline-flex; list-style: none; cursor: pointer; }
.log-neu > summary::-webkit-details-marker { display: none; }
.log-neu[open] > summary { margin-bottom: 14px; }
.log-neu-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.log-neu-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
.log-neu-form .breit { grid-column: 1 / -1; }
.log-neu-form input, .log-neu-form select, .log-neu-form textarea { width: 100%; font: inherit; font-size: 14px; }
.log-neu-form .zr-feld { grid-column: span 2; }
.log-weg { display: inline; margin-left: 6px; }
.link-knopf { background: none; border: 0; padding: 0 2px; color: var(--text-3); cursor: pointer; font-size: 13px; }
.link-knopf:hover { color: #e02020; }
@media (max-width: 760px) { .log-neu-form { grid-template-columns: 1fr; } .log-neu-form .zr-feld { grid-column: 1 / -1; } }

/* Tabellen: lange Spaltenköpfe dürfen umbrechen – so passen breite Tabellen öfter ohne Querscrollen auf den Bildschirm */
table.daten tr:not(.gruppe) th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
table.daten tr:not(.gruppe) th .info-pop { white-space: normal; }
@media (min-width: 900px) {
  /* breite Tabellen: erste Spalte bleibt beim Querscrollen stehen */
  .scroll > table.daten td:first-child, .scroll > table.daten th:first-child { position: sticky; left: 0; z-index: 1; background: var(--flaeche); }
  .scroll > table.daten thead th:first-child { background: var(--flaeche-2); z-index: 2; }
  .scroll > table.daten tr.gruppe th:first-child { background: var(--flaeche); }
  .scroll > table.daten tr.summe td:first-child, .scroll > table.daten tbody tr:hover td:first-child { background: var(--flaeche-2); }
  /* Ziel-Tracking: 13 Spalten – kompakter, damit „Vorschlag“ sichtbar bleibt */
  .tracking-tab td, .tracking-tab tr:not(.gruppe) th { padding-left: 8px; padding-right: 8px; }
  .tracking-tab { font-size: 12.5px; }
  .tracking-tab td.vs { min-width: 190px; }
  .tracking-tab td .klein { white-space: normal; }
}
.zs-l { display: inline-flex; align-items: center; white-space: nowrap; }
.heute-summe b { white-space: nowrap; }
/* Log: Maßnahme und Ergebnis umbrechen statt die Tabelle zu verbreitern */
.log-tabelle > tbody > tr > td:nth-child(4) { white-space: normal; min-width: 320px; max-width: 460px; }
@media (max-width: 899px) { .log-tabelle > tbody > tr > td:nth-child(4) { min-width: 220px; } }
.log-tabelle > tbody > tr > td:nth-child(8), .log-tabelle > tbody > tr > td:nth-child(9) { white-space: normal; min-width: 90px; max-width: 130px; }
.log-tabelle > tbody > tr > td:nth-child(10) { white-space: normal; min-width: 160px; max-width: 240px; }
.log-tabelle > tbody > tr > td.notiz-zelle { white-space: normal; min-width: 140px; max-width: 220px; }
.log-tabelle td td { white-space: nowrap; }
/* 9 Kennzahlen: 5 + 4 auf großen Bildschirmen, 3 × 3 auf mittleren – keine einzelne Restkachel */
@media (min-width: 1300px) { .kpis.neun { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 861px) and (max-width: 1299px) { .kpis.neun { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Handy: Info-Knöpfe größer antippbar (sichtbar gleich klein), Code-Zeilen umbrechen */
@media (pointer: coarse) { .info-k { position: relative; } .info-k::after { content: ''; position: absolute; inset: -12px; } }
code { overflow-wrap: anywhere; }
/* Ziel-Tracking auf dem Handy: Vorschlag je Monat als Karten über der Tabelle */
.tr-karten { display: none; }
@media (max-width: 860px) {
  .tr-karten { display: grid; gap: 10px; margin-bottom: 14px; }
  .tr-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; }
  .tr-karte-k { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .tr-karte-k b { font-size: 15px; }
  .tr-karte-z { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
  .tr-karte .vs-t { display: block; margin-top: 6px; }
}
/* aufklappbarer Zusatzbereich (z. B. Tagesbericht: alle Kennzahlen) */
details.mehr-details { margin: 6px 0 14px; }
details.mehr-details > summary { cursor: pointer; list-style: none; padding: 12px 16px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); font-weight: 600; color: var(--akzent); }
details.mehr-details > summary::-webkit-details-marker { display: none; }
details.mehr-details > summary::before { content: '▸ '; }
details.mehr-details[open] > summary { margin-bottom: 12px; }
details.mehr-details[open] > summary::before { content: '▾ '; }
.wl-zahl { color: var(--s2); }
/* Auslastung: Parkplätze mit Häkchen */
.pp-chip.pp-summe { background: var(--flaeche-2); cursor: default; }
.pp-chip.pp-summe a { color: var(--akzent); }
.pp-chip.pp-haken b { display: flex; align-items: center; gap: 7px; }
.pp-chip .haken { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1.5px solid var(--text-2); border-radius: 4px; font-size: 12px; line-height: 1; color: #fff; flex: none; }
.pp-chip.pp-haken.aktiv .haken { background: var(--s1); border-color: var(--s1); }
.pp-chip.pp-haken.aus { opacity: .62; }
.pp-chip.pp-haken.aus:hover { opacity: 1; }
.pp-chip.pp-haken small { font-weight: 400; font-size: 11px; }
@media (max-width: 640px) { .pp-wahl.haken-wahl { flex-wrap: wrap; overflow: visible; } .pp-wahl.haken-wahl .pp-chip { flex: 1 1 calc(50% - 4px); min-width: 0; } .pp-wahl.haken-wahl .pp-summe { flex-basis: 100%; } }
/* Google Ads Overview: Trichter */
:root { --tr0: #e3eefc; --tr1: #b9d4f6; --tr2: #6fa6ea; --tr3: #2a78d6; --tr-t0: #17324f; --tr-t3: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tr0: #1d3550; --tr1: #22476f; --tr2: #2d619b; --tr3: #3987e5; --tr-t0: #e8ebf0; } }
:root[data-theme="dark"] { --tr0: #1d3550; --tr1: #22476f; --tr2: #2d619b; --tr3: #3987e5; --tr-t0: #e8ebf0; }
.trichter-karte { padding: 18px 20px 6px; margin-bottom: 18px; }
.tr-s0 .tr-p { font-weight: 500; }
.trichter-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.trichter-kopf h2 { margin: 0 0 2px; font-size: 17px; }
.trichter-kopf .untertitel { margin: 0; }
.trichter { display: flex; flex-direction: column; gap: 4px; max-width: 980px; margin: 0 auto; }
.tr-stufe { display: grid; grid-template-columns: minmax(0, 64fr) minmax(0, 36fr); align-items: stretch; gap: 18px; }
.tr-band { position: relative; min-height: 92px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--tr-t0); }
.tr-band::before { content: ''; position: absolute; inset: 0; z-index: 0; }
.tr-s0 .tr-band::before { background: var(--tr0); clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%); border-radius: 10px 10px 0 0; }
.tr-s1 .tr-band::before { background: var(--tr1); clip-path: polygon(7% 0, 93% 0, 86% 100%, 14% 100%); }
.tr-s2 .tr-band::before { background: var(--tr2); clip-path: polygon(14% 0, 86% 0, 79% 100%, 21% 100%); }
.tr-s3 .tr-band::before { background: var(--tr3); clip-path: polygon(21% 0, 79% 0, 62% 100%, 38% 100%); }
.tr-s2 .tr-band, .tr-s3 .tr-band { color: var(--tr-t3); }
.tr-inhalt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 0; max-width: 56%; }
.tr-t { font-size: 12.5px; font-weight: 600; opacity: .85; }
.tr-z { font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tr-p { font-size: 13px; font-weight: 600; }
.tr-k-mobil { display: none; font-size: 12px; margin-top: 3px; }
.tr-kosten { display: flex; flex-direction: column; justify-content: center; gap: 1px; border-left: 2px solid var(--linie); padding-left: 16px; }
.tr-kosten .tr-kt { font-size: 12.5px; color: var(--text-2); }
.tr-kosten b { font-size: 20px; font-variant-numeric: tabular-nums; }
.tr-kosten small { font-size: 12px; color: var(--text-2); }
.tr-notiz { margin: 12px 0 10px; }
@media (max-width: 700px) {
  .trichter-karte { padding: 14px 12px 4px; }
  .tr-stufe { grid-template-columns: 1fr; gap: 0; }
  .tr-kosten { display: none; }
  .tr-k-mobil { display: block; }
  .tr-band { min-height: 96px; }
  .tr-s0 .tr-band::before { clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%); }
  .tr-s1 .tr-band::before { clip-path: polygon(5% 0, 95% 0, 90% 100%, 10% 100%); }
  .tr-s2 .tr-band::before { clip-path: polygon(10% 0, 90% 0, 85% 100%, 15% 100%); }
  .tr-s3 .tr-band::before { clip-path: polygon(15% 0, 85% 0, 77% 100%, 23% 100%); }
  .tr-s3 .tr-band { min-height: 110px; }
  .tr-s3 .tr-inhalt { max-width: 56%; }
  .tr-inhalt { max-width: 72%; }
  .tr-z { font-size: 21px; }
}
/* Ergebnis */
.erg-tab td.neg, .kpi-z.neg { color: #d4351c; }
.erg-tab td.fett { font-weight: 700; }
.erg-tab tr.erg-prog td { font-style: italic; color: var(--text-2); }
.erg-tab tr.erg-prog td .tag { font-style: normal; font-size: 10.5px; padding: 1px 6px; }
.erg-tab th { min-width: 84px; }
.erg-lehre ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.erg-lehre li { margin-bottom: 6px; }
.erg-form input[type=text] { width: 120px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .erg-tab td.neg, :root:not([data-theme="light"]) .kpi-z.neg { color: #ff7b6b; } }
.erg-kpis .kpi-zeile span { white-space: normal; }
.erg-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.erg-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.erg-form input[type=text] { width: 180px; }
.erg-art { display: inline-flex; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; align-self: flex-end; }
.erg-art label { flex-direction: row; align-items: center; gap: 6px; padding: 9px 14px; cursor: pointer; color: var(--text); font-size: 13px; }
.erg-art label + label { border-left: 1px solid var(--linie); }
.erg-art label:has(input:checked) { background: var(--s1); color: #fff; font-weight: 600; }
.erg-art input { margin: 0; }
.erg-kosten h2 { margin-top: 0; }
.erg-kosten tr.grau td { color: var(--text-3); }
@media (max-width: 640px) { .erg-form > label, .erg-form input[type=text], .erg-form select { width: 100%; } .erg-form > label { flex: 1 1 100%; } }
/* Preiswirkung */
.pw-jetzt-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pw-jetzt-kopf h2 { margin: 2px 0 4px; }
.pw-jetzt-kopf p { margin: 0; }
.pw-urteil { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; background: var(--flaeche-2); border: 1px solid var(--linie); color: var(--text-2); white-space: nowrap; }
.pw-urteil.klein { padding: 3px 9px; font-size: 12px; }
.pw-urteil.gut { background: #e6f6ec; border-color: #9fd8b4; color: #146c36; }
.pw-urteil.schlecht { background: #fdecea; border-color: #f2b2aa; color: #a52a1b; }
.pw-urteil.knapp { background: #fff6dd; border-color: #f0d68a; color: #7a5b00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pw-urteil.gut { background: #12321f; color: #8fe0ab; border-color: #24603b; } :root:not([data-theme="light"]) .pw-urteil.schlecht { background: #3a1714; color: #ff9b8f; border-color: #6b2a23; } :root:not([data-theme="light"]) .pw-urteil.knapp { background: #33290c; color: #f2d27a; border-color: #5c4a14; } }
.kpi-z.gut { color: #1a8a46; } .kpi-z.schlecht { color: #d4351c; }
.pw-tab td { vertical-align: top; }
.pw-preis.rauf, .kpi-z.rauf { color: #b4500a; } .pw-preis.runter, .kpi-z.runter { color: #1d6fc4; }
.pw-tab td.n { white-space: nowrap; }

/* Verlauf: Kennzahl wählen (Google Ads / Preiswirkung) */
.pw-metrik { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.pw-metrik button { font: inherit; font-size: 13px; padding: 6px 12px; min-height: 34px; border: 1px solid var(--linie); border-radius: 999px; background: var(--flaeche); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.pw-metrik button:hover { border-color: var(--s1); color: var(--text); }
.pw-metrik button.aktiv { background: var(--s1); border-color: var(--s1); color: #fff; font-weight: 600; }
@media (max-width: 640px) { .pw-metrik { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-right: -16px; padding-right: 16px; } .pw-metrik::-webkit-scrollbar { display: none; } }
.haken-wahl .pp-chip span { white-space: normal; }
.haken-wahl .pp-chip .kpi-d { white-space: nowrap; }

/* Tempo */
.tp-art { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; background: #64748b; padding: 0 4px; }
.tp-art.preis { background: #b4500a; } .tp-art.spend { background: #7c3aed; } .tp-art.mail { background: #15803d; }
.tp-legende { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 4px; }
.tp-l.preis { color: #b4500a; } .tp-l.spend { color: #7c3aed; } .tp-l.mail { color: #15803d; } .tp-l.sonst { color: #64748b; }
.tp-tab td { vertical-align: top; }
.tp-ereignisse { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.tp-ereignisse li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }

/* Google Ads: kleiner Trichter je Kampagne */
.kt-gruppe { margin: 4px 0 18px; }
.kt-g-kopf { font-size: 15px; margin: 6px 0 10px; }
.kt-g-kopf .grau { font-weight: 500; font-size: 13px; }
.kt-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.kt-karte { border: 1px solid var(--linie); border-radius: 12px; padding: 12px 12px 8px; background: var(--flaeche); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kt-kopf { display: flex; flex-direction: column; gap: 3px; }
.kt-name { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.kt-zahlen { font-size: 13px; font-variant-numeric: tabular-nums; }
.kt-warn { display: flex; gap: 4px; flex-wrap: wrap; }
.kt-tr { display: flex; flex-direction: column; align-items: center; }
.kt-s { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 14px; font-size: 12px; color: var(--tr-t0); font-variant-numeric: tabular-nums; }
.kt-s b { font-size: 15px; }
.kt-s0 { width: 100%; background: var(--tr0); clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); border-radius: 8px 8px 0 0; }
.kt-s1 { width: 88%; background: var(--tr1); clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%); }
.kt-s2 { width: 76%; background: var(--tr2); clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%); color: var(--tr-t3); }
.kt-s3 { width: 64%; background: var(--tr3); clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%); color: var(--tr-t3); border-radius: 0 0 8px 8px; }
.kt-u { margin: 2px 0 5px; font-size: 11.5px; color: var(--text-2); text-align: center; line-height: 1.35; }
.kt-u b.schlecht { color: #d4351c; } .kt-u b.knapp { color: #b4500a; }
@media (max-width: 640px) { .kt-raster { grid-template-columns: 1fr; } }
.kt-warn .tag.schlecht { background: #fbebeb; color: #b42318; } .kt-warn .tag.knapp { background: #f9ece7; color: #b4500a; }
/* Leistung je Kampagne */
.kt-karte { position: relative; border-left-width: 5px; }
.kt-karte.kt-top { border-left-color: #0f7b3f; } .kt-karte.kt-gut { border-left-color: #4caf50; } .kt-karte.kt-mittel { border-left-color: #e0b100; }
.kt-karte.kt-schwach { border-left-color: #f08a24; } .kt-karte.kt-schlecht { border-left-color: #d4351c; }
.kt-stufe { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; }
.kt-st-top { background: #0f7b3f; } .kt-st-gut { background: #4caf50; } .kt-st-mittel { background: #e0b100; color: #3a2e00; } .kt-st-schwach { background: #f08a24; } .kt-st-schlecht { background: #d4351c; }
.kt-legende { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }

/* Übersicht: Finance + Operative Occupancy in einem Rahmen */
.kpi-occ2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.kpi-occ2 .kpi-halb { padding: 16px 18px; min-width: 0; }
.kpi-occ2 .kpi-halb + .kpi-halb { border-left: 1px solid var(--linie); }
@media (max-width: 700px) { .kpi-occ2 { grid-template-columns: 1fr; } .kpi-occ2 .kpi-halb { padding: 12px; } .kpi-occ2 .kpi-halb + .kpi-halb { border-left: 0; border-top: 1px solid var(--linie); } }
