/* Vorbild: Jira Listenansicht (Mobbin f5765278), dichte Tabelle mit Zellrahmen, alles klickbar */
:root {
  --grund: #ffffff;
  --text: #172b4d;
  --leise: #505f79;
  --blass: #8590a2;
  --linie: #dfe1e6;
  --linie-hell: #ebecf0;
  --hover: #f4f5f7;
  --gewaehlt: #e9f2ff;
  --akzent: #0c66e4;
  --akzent-dunkel: #0055cc;
  --marke: #0b3b73;
  --l-gruen: #dcfff1; --l-gruen-t: #216e4e;
  --l-gelb: #fff7d6; --l-gelb-t: #7f5f01;
  --l-grau: #dcdfe4; --l-grau-t: #44546f;
  --l-blau: #e9f2ff; --l-blau-t: #0055cc;
  --l-lila: #f3f0ff; --l-lila-t: #5e4db2;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font-size: 13px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 16px; height: 16px; flex: none; }
.zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Kopfleiste */
.oben { display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--linie); position: sticky; top: env(safe-area-inset-top, 0px); background: #fff; z-index: 20; }
.marke { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; min-width: 180px; }
.logo { width: 24px; height: 24px; border-radius: 6px; background: var(--marke); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.suche-oben { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 8px; border: 1px solid #8590a2; border-radius: 4px; height: 32px; padding: 0 10px; color: var(--leise); }
.suche-oben:focus-within { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.suche-oben input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 14px; color: var(--text); background: none; }
.oben-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--blass); font-size: 12px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: #5e4db2; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.link { background: none; border: 0; color: var(--leise); padding: 0; font-size: 12px; }
.link:hover { color: var(--text); text-decoration: underline; }

/* Hauptbereich mit Detailfeld rechts */
.haupt { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 48px); }
.haupt.mit-detail { grid-template-columns: minmax(0, 1fr) 480px; }
.inhalt { padding: 16px 24px 110px; min-width: 0; }
.brot { color: var(--leise); font-size: 14px; }
.titelzeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 8px; }
h1 { font-size: 17px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.titel-icon { width: 24px; height: 24px; border-radius: 4px; background: linear-gradient(135deg, #0c66e4, #0b3b73); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.summen { display: flex; gap: 20px; font-size: 12px; color: var(--leise); }
.summen button { border: 0; background: none; padding: 2px 4px; border-radius: 3px; text-align: right; }
.summen button:hover { background: var(--hover); }
.summen b { display: block; font-size: 15px; color: var(--text); font-weight: 600; }

.bereich { display: inline-flex; gap: 2px; padding: 2px; background: var(--hover); border-radius: 4px; margin: 2px 0 12px; }
.bereich button { border: 0; background: none; height: 28px; padding: 0 14px; border-radius: 3px; color: var(--leise); font-weight: 500; }
.bereich button.an { background: #fff; color: var(--text); box-shadow: 0 0 1px rgba(9, 30, 66, .31), 0 1px 1px rgba(9, 30, 66, .13); }
/* Stunden: Kennzahl-Karten wie Mercury, Gruppen nach Stand wie Linear */
.st-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.st-karte { display: flex; flex-direction: column; gap: 2px; text-align: left; background: #fff; border: 1px solid var(--linie); border-radius: 6px; padding: 12px 14px; min-width: 0; }
.st-karte:hover { background: var(--hover); }
.st-karte small { font-size: 12px; color: var(--leise); }
.st-karte b { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.st-karte span { font-size: 12px; color: var(--blass); }
.st-balken { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--linie-hell); margin-top: 8px; }
.st-balken u { display: block; text-decoration: none; }
.b-berechnet { background: #0c66e4; }
.b-blatt { background: #22a06b; }
.b-rest { background: #b3b9c4; }
tr.st-gruppe, tr.st-gruppe:hover { cursor: default; }
tr.st-gruppe td, tr.st-gruppe:hover td { background: var(--hover); height: 34px; }
tr.st-gruppe .leise { margin-left: 10px; font-size: 12px; }
.minus { color: #ae2a19; }
.an-ml { margin-top: 18px; }
.an-ml h2 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
tbody tr.still { cursor: default; }
.ml-fertig td { color: var(--blass); }
.ml-fertig td b { color: var(--blass); font-weight: 500; }
.ml-notiz { width: 170px; height: 26px; border: 1px solid var(--linie); border-radius: 3px; padding: 0 6px; font: inherit; font-size: 12px; background: #fff; color: var(--text); }
.ml-notiz:focus { outline: 0; border-color: var(--akzent); }
.blatt-name { word-break: break-word; font-size: 12px; }
.d-zettel td { vertical-align: top; }
.d-zettel .kopfzeile td { font-weight: 600; color: var(--leise); height: 28px; }
.reiter { display: flex; gap: 16px; border-bottom: 2px solid var(--linie-hell); margin-bottom: 14px; }
.reiter button { border: 0; background: none; padding: 6px 2px; margin-bottom: -2px; border-bottom: 2px solid transparent; color: var(--leise); font-weight: 500; }
.reiter button:hover { color: var(--text); }
.reiter button.an { color: var(--akzent); border-bottom-color: var(--akzent); }
.reiter button span { color: var(--blass); font-weight: 400; margin-left: 2px; }
.reiter .st-pdf { margin: 0 0 4px auto; height: 28px; }

.werkzeugleiste { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.leer-flex { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--linie); background: #fff; border-radius: 4px; font-size: 13px; font-weight: 500; color: var(--leise); white-space: nowrap; }
.btn:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.btn.an { background: var(--gewaehlt); border-color: #85b8ff; color: var(--akzent-dunkel); }
.btn.icon { padding: 0 8px; }
.btn.primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.btn.primaer:hover { background: var(--akzent-dunkel); }
.btn.klein { height: 28px; font-size: 13px; padding: 0 8px; }
.zaehler { background: var(--akzent); color: #fff; border-radius: 8px; font-size: 11px; padding: 0 6px; line-height: 16px; }
.filter-wrap { position: relative; }

/* Menues */
.menue { position: absolute; z-index: 40; background: #fff; border-radius: 4px; box-shadow: 0 8px 12px rgba(9, 30, 66, .15), 0 0 1px rgba(9, 30, 66, .31); padding: 6px 0; min-width: 220px; }
#filter-menue { top: 36px; left: 0; }
.menue button, .menue a { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 7px 14px; text-align: left; font-size: 14px; color: var(--text); }
.menue button:hover, .menue a:hover { background: var(--hover); text-decoration: none; }
.menue .trenner { height: 1px; background: var(--linie-hell); margin: 6px 0; }
.menue .kopf { font-size: 11px; font-weight: 600; color: var(--leise); text-transform: uppercase; padding: 6px 14px 4px; letter-spacing: .03em; }
.kasten { width: 16px; height: 16px; border: 2px solid #8590a2; border-radius: 3px; display: grid; place-items: center; flex: none; }
.kasten.an { background: var(--akzent); border-color: var(--akzent); }
.kasten.an::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* Tabelle mit Zellrahmen */
.tabelle-rahmen { border: 1px solid var(--linie); border-radius: 4px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--leise); height: 38px; padding: 0 10px; border-bottom: 1px solid var(--linie); border-right: 1px solid var(--linie-hell); white-space: nowrap; background: #fff; user-select: none; }
th.sortierbar { cursor: pointer; }
th.sortierbar:hover { background: var(--hover); }
th .pfeil { color: var(--leise); margin-left: 4px; font-size: 11px; }
td { height: 36px; padding: 3px 10px; border-bottom: 1px solid var(--linie-hell); border-right: 1px solid var(--linie-hell); white-space: nowrap; vertical-align: middle; }
th:last-child, td:last-child { border-right: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--hover); }
tbody tr.offen-im-detail td { background: var(--gewaehlt); }
tbody tr.vorgeschlagen td:first-child { box-shadow: inset 2px 0 0 var(--akzent); }
td.r, th.r { text-align: right; }
td.mitte, th.mitte { text-align: center; width: 44px; padding: 0; }
td.objekt { white-space: normal; min-width: 220px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
td.objekt .zweizeilig { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj { font-weight: 600; margin-right: 6px; }
.leise { color: var(--blass); }
.plus { color: var(--l-gruen-t); }
tfoot td { height: 40px; color: var(--leise); font-size: 13px; border-bottom: 0; background: #fff; cursor: default; }
tfoot td b { color: var(--text); }
.leer { padding: 40px 16px; text-align: center; color: var(--leise); }

.haken { width: 16px; height: 16px; border: 2px solid #8590a2; border-radius: 3px; background: #fff; display: inline-grid; place-items: center; padding: 0; vertical-align: middle; }
.haken:hover { border-color: var(--akzent); }
.haken.an { background: var(--akzent); border-color: var(--akzent); }
.haken.an::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* Status wie Jira-Lozenge, mit Auswahlpfeil */
.lozenge { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 4px 0 6px; border-radius: 3px; border: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.lozenge::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-1px, -1px); margin: 0 3px 0 3px; }
.lozenge.ohne::after { display: none; }
.lozenge:hover { filter: brightness(.95); }
.s-zahlbar { background: var(--l-gruen); color: var(--l-gruen-t); }
.s-kunde_offen { background: var(--l-gelb); color: var(--l-gelb-t); }
.s-nicht_weiterberechnet { background: var(--l-grau); color: var(--l-grau-t); }
.s-teilweise { background: var(--l-gelb); color: var(--l-gelb-t); }
.s-bezahlt { background: var(--l-blau); color: var(--l-blau-t); }
.s-vorschlag { background: var(--l-lila); color: var(--l-lila-t); }

.punkte { width: 28px; height: 28px; border: 0; border-radius: 3px; background: none; color: var(--leise); font-size: 16px; line-height: 1; }
.punkte:hover { background: #dcdfe4; }

.legende { color: var(--blass); font-size: 12px; margin-top: 12px; }

/* Detailfeld rechts */
.detail { border-left: 1px solid var(--linie); background: #fff; position: sticky; top: 48px; height: calc(100vh - 48px); overflow-y: auto; padding: 16px 20px 100px; }
.d-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.d-kopf .leise { font-size: 12px; }
.d-schliessen { border: 0; background: none; width: 32px; height: 32px; border-radius: 4px; font-size: 18px; color: var(--leise); }
.d-schliessen:hover { background: var(--hover); }
.detail h2 { font-size: 17px; font-weight: 600; margin: 4px 0 2px; letter-spacing: -.01em; }
.d-objekt { color: var(--leise); margin-bottom: 12px; }
.d-aktionen { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.d-abschnitt { border: 1px solid var(--linie); border-radius: 4px; margin-bottom: 12px; }
.d-abschnitt h3 { margin: 0; font-size: 12px; font-weight: 600; color: var(--leise); padding: 8px 12px; border-bottom: 1px solid var(--linie-hell); }
.d-felder { display: grid; grid-template-columns: 140px 1fr; gap: 0; }
.d-felder div { padding: 7px 12px; border-bottom: 1px solid var(--linie-hell); }
.d-felder div:nth-last-child(-n+2) { border-bottom: 0; }
.d-felder .feld { color: var(--leise); font-size: 13px; }
.d-notiz { padding: 10px 12px; font-size: 13px; color: var(--leise); }
.d-vorschau { width: 100%; height: 560px; border: 0; display: block; border-top: 1px solid var(--linie-hell); }
.d-reiter { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--linie-hell); }
.d-reiter button { border: 0; background: none; padding: 4px 8px; border-radius: 3px; font-size: 13px; color: var(--leise); }
.d-reiter button.an { background: var(--gewaehlt); color: var(--akzent-dunkel); font-weight: 500; }
.d-protokoll { padding: 6px 12px 10px; font-size: 12px; color: var(--leise); }
.d-protokoll div { padding: 3px 0; }
.datum-feld { display: inline-flex; gap: 6px; align-items: center; }
.datum-feld input { font: inherit; font-size: 14px; height: 32px; border: 1px solid #8590a2; border-radius: 4px; padding: 0 8px; }

/* Leiste unten */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 24px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--linie); box-shadow: 0 -4px 12px rgba(9, 30, 66, .06); }
.leiste-innen { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.leiste-summe { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.leiste-summe span { color: var(--leise); }
.leiste-summe strong { font-size: 16px; }
.ueberweisung { margin-top: 10px; display: grid; gap: 6px; }
.ue-posten { display: grid; grid-template-columns: 2fr 1.6fr .8fr 1fr; gap: 2px 20px; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 4px; }
.ue-posten small { display: block; font-size: 11px; color: var(--leise); font-weight: 600; }
.kopieren { border: 0; background: none; color: var(--akzent); font-size: 12px; padding: 0 0 0 6px; }

/* Anmeldung */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #f7f8f9; }
.login-karte { width: 100%; max-width: 360px; background: #fff; border-radius: 4px; padding: 32px; box-shadow: 0 0 10px rgba(9, 30, 66, .1); display: grid; gap: 12px; }
.login-karte h1 { font-size: 17px; margin-bottom: 8px; }
.login-karte input { font: inherit; height: 40px; border: 2px solid var(--linie); border-radius: 3px; padding: 0 10px; }
.login-karte input:focus { outline: 0; border-color: var(--akzent); }
.login-karte .btn { height: 40px; justify-content: center; }
.fehler { color: #ae2a19; font-size: 13px; }

@media (max-width: 1100px) {
  .haupt.mit-detail { grid-template-columns: 1fr; }
  .detail { position: fixed; inset: 48px 0 0 auto; width: min(480px, 100vw); z-index: 25; box-shadow: -8px 0 24px rgba(9, 30, 66, .15); }
}
@media (max-width: 900px) {
  .breit { display: none; }
  td.objekt { min-width: 150px; }
}
@media (max-width: 720px) {
  .oben { gap: 8px; padding: 0 10px; }
  .suche-oben input { font-size: 16px; }
  td, th { padding-left: 6px; padding-right: 6px; }
  td.objekt { min-width: 120px; font-size: 13px; }
  .lozenge { font-size: 10px; }
  .werkzeugleiste .btn { padding: 0 8px; }
  .detail { inset: 48px 0 0 0; width: 100vw; }
  .marke { min-width: 0; }
  .marke span:last-child, .stand { display: none; }
  .inhalt { padding: 12px 12px 110px; }
  .summen { width: 100%; justify-content: space-between; }
  .st-karten { grid-template-columns: 1fr; }
  .ue-posten { grid-template-columns: 1fr 1fr; }
}

/* Stunden je Projekt im Detailfeld: eine Zeile je Projekt, Einzelzeilen aufklappbar */
.d-auf { width: 100%; border-collapse: collapse; font-size: 12px; }
.d-auf td { height: 32px; padding: 4px 12px; border-right: 0; white-space: normal; }
.d-auf tr.gruppe { cursor: pointer; }
.d-auf tr.gruppe:hover td { background: var(--hover); }
.d-auf tr.einzel td { height: auto; padding: 3px 12px 3px 30px; color: var(--leise); border-bottom: 0; background: #fafbfc; }
.d-auf tr.einzel:hover td { background: #fafbfc; }
.d-auf .pfeil-k { color: var(--blass); display: inline-block; width: 10px; }
.d-auf .summe td { font-weight: 600; border-top: 1px solid var(--linie); border-bottom: 0; cursor: default; }
.d-auf .summe:hover td { background: none; }
.d-probe { font-size: 11px; color: var(--l-gruen-t); padding: 0 12px 8px; }
.d-probe.falsch { color: #ae2a19; }

/* ---- Planprojekte SE/NK (02.11.2026): Gruppenzeilen wie Airtable, Karte mit Stationen, Splitscreen Karte/Beleg ---- */
.menue-oben { display: flex; gap: 2px; padding: 2px; background: var(--hover); border-radius: 4px; }
.menue-oben a, .menue-oben span { height: 28px; padding: 0 12px; border-radius: 3px; display: inline-flex; align-items: center; color: var(--leise); font-weight: 500; white-space: nowrap; }
.menue-oben a:hover { text-decoration: none; color: var(--text); background: #fff; }
.menue-oben span.an { background: #fff; color: var(--text); box-shadow: 0 0 1px rgba(9, 30, 66, .31), 0 1px 1px rgba(9, 30, 66, .13); }
#ich { font: inherit; font-size: 12px; height: 28px; border: 1px solid var(--linie); border-radius: 4px; background: #fff; color: var(--leise); }
.geteilt { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 48px); }
.geteilt.mit-beleg { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
.beleg-feld { border-left: 1px solid var(--linie); position: sticky; top: 48px; height: calc(100vh - 48px); display: flex; flex-direction: column; background: #f7f8f9; }
.beleg-kopf { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--linie); background: #fff; font-size: 12px; }
.beleg-kopf span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
#beleg-rahmen { flex: 1; width: 100%; border: 0; background: #fff; }
.lauf { font-size: 12px; color: var(--leise); margin: 0 0 12px; }
.lauf .rot, .rot { color: #ae2a19; }
td.c, th.c { text-align: center; }
th.gruppe-kopf { text-align: center; border-bottom: 1px solid var(--linie-hell); height: 24px; }
tr.obj td { background: #f4f5f7; height: 34px; font-weight: 600; cursor: pointer; }
tr.obj:hover td { background: #ebecf0; }
tr.obj td .leise { font-weight: 400; margin-left: 8px; }
tbody tr.zl { cursor: pointer; }
td.std { font-variant-numeric: tabular-nums; }
.og { display: block; font-size: 10px; color: var(--blass); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.kreuz { font-weight: 700; color: #ae2a19; }
.herk { font-size: 10px; color: var(--blass); margin-left: 3px; vertical-align: super; }
.herk.hand { color: #5e4db2; font-weight: 700; }
.abw { color: #ae2a19; font-weight: 700; }
.fehlt { color: var(--blass); }
a.datum { white-space: nowrap; }
.mini { font-size: 11px; color: var(--leise); display: block; white-space: normal; max-width: 220px; }
.unten-bloecke { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 14px; }
.block { border: 1px solid var(--linie); border-radius: 4px; padding: 10px 12px; }
.block h3 { margin: 0 0 6px; font-size: 13px; }
.block table td { height: 26px; border-right: 0; padding: 2px 6px; white-space: normal; }
.block tr { cursor: default; }
.block tbody tr:hover td { background: none; }
/* Karte */
.k-zurueck { border: 0; background: none; color: var(--akzent); padding: 0; margin: 4px 0 10px; }
.k-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.k-kopf div { border: 1px solid var(--linie); border-radius: 4px; padding: 8px 10px; }
.k-kopf small { display: block; color: var(--leise); font-size: 11px; }
.k-kopf b { font-size: 15px; }
.k-zeilen { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; }
.k-zeile { border: 1px solid var(--linie); border-radius: 6px; padding: 10px 12px 6px; }
.k-zeile h3 { margin: 0 0 2px; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.k-zeile .stueck { color: var(--leise); font-size: 12px; margin-bottom: 8px; }
.stationen { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--linie); }
.stationen li { position: relative; padding: 4px 0 8px 10px; }
.stationen li::before { content: ""; position: absolute; left: -20px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #b3b9c4; }
.stationen li.da::before { background: #22a06b; border-color: #22a06b; }
.stationen li.rot::before { background: #fff; border-color: #ae2a19; }
.stationen .st-name { font-size: 11px; color: var(--leise); text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
.stationen .st-wert { font-size: 13px; }
.knopf-hand { border: 0; background: none; color: var(--blass); font-size: 12px; padding: 0 4px; }
.knopf-hand:hover { color: var(--akzent); }
.k-abschnitt { margin-top: 16px; }
.k-abschnitt h2 { font-size: 14px; margin: 0 0 6px; }
.verlauf td, .termine td { white-space: normal; vertical-align: top; height: auto; padding: 5px 8px; }
.verlauf tr, .termine tr { cursor: default; }
.hinweis-rot { color: #ae2a19; font-size: 12px; margin: 2px 0; }
.hinweis { color: var(--leise); font-size: 12px; margin: 2px 0; }
.lozenge.k1, .lozenge.k2, .lozenge.k3 { background: #ffeceb; color: #ae2a19; }
.lozenge.ok { background: var(--l-gruen); color: var(--l-gruen-t); }
.lozenge.grau { background: var(--l-grau); color: var(--l-grau-t); }
/* Dialog Handwert */
.dialog { position: fixed; inset: 0; background: rgba(9, 30, 66, .35); display: grid; place-items: center; z-index: 60; padding: 16px; }
.dialog-karte { background: #fff; border-radius: 6px; padding: 18px 20px; width: min(460px, 100%); display: grid; gap: 10px; }
.dialog-karte h3 { margin: 0; font-size: 15px; }
.dialog-karte label { display: grid; gap: 4px; font-size: 12px; color: var(--leise); }
.dialog-karte input { font: inherit; font-size: 14px; height: 34px; border: 1px solid #8590a2; border-radius: 4px; padding: 0 8px; color: var(--text); }
.dlg-knoepfe { display: flex; gap: 8px; align-items: center; }
@media (max-width: 1100px) {
  .geteilt.mit-beleg { grid-template-columns: 1fr; }
  .beleg-feld { position: fixed; inset: 48px 0 0 0; z-index: 30; height: auto; }
  .menue-oben a, .menue-oben span { padding: 0 8px; }
}
@media (max-width: 720px) { .menue-oben { display: none; } }
/* Tablet (Tab S8 Ultra quer, um 1180 px): Tabelle ohne Querscrollen */
@media (max-width: 1440px) {
  #liste th, #liste td { padding: 2px 5px; font-size: 12px; }
  #liste td:first-child { white-space: normal; min-width: 130px; }
  #liste th, #liste td { white-space: normal; }
  #liste td.r.zahl { white-space: nowrap; }
  .og { font-size: 9px; }
  .inhalt { padding-left: 14px; padding-right: 14px; }
}

/* ---- Entwurf 03.11.2026 nach Vorlage Shopify-Bestellliste (Mobbin ab8ef727): Polaris-Flaechen, Kennzahlleiste,
   Tabelle in weisser Karte, Badges mit Punkt. Masse und Farben am Vorlagebild abgenommen. ---- */
:root { --p-grund: #f1f1f1; --p-karte: #fff; --p-text: #303030; --p-leise: #616161; --p-linie: #ebebeb; --p-kopf: #f7f7f7;
  --p-grau: #e3e3e3; --p-gelb: #ffeb78; --p-gelb-t: #4f4700; --p-orange: #ffd6a4; --p-orange-t: #5e4200; --p-rot: #fedad9; --p-rot-t: #8e0b21; }
body { background: var(--p-grund); color: var(--p-text); font-size: 13px; }
.oben { background: #1a1a1a; border-bottom: 0; height: 56px; }
.oben .marke { color: #fff; }
.oben .logo { background: #fff; color: #1a1a1a; }
.menue-oben { background: #303030; }
.menue-oben a { color: #cfcfcf; } .menue-oben a:hover { background: #404040; color: #fff; }
.menue-oben span.an { background: #4a4a4a; color: #fff; box-shadow: none; }
.suche-oben { background: #303030; border: 0; border-radius: 10px; color: #b5b5b5; max-width: 560px; }
.suche-oben:focus-within { box-shadow: 0 0 0 2px #616161; }
.suche-oben input { color: #fff; } .suche-oben input::placeholder { color: #a5a5a5; }
#ich { background: #303030; color: #e3e3e3; border: 0; border-radius: 8px; }
.inhalt { max-width: 1760px; margin: 0 auto; width: 100%; padding: 20px 24px 80px; }
.brot { display: none; }
.titelzeile { margin: 0 0 14px; }
.titelzeile h1 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.titel-icon { background: none; color: var(--p-text); border: 1.6px solid var(--p-text); width: 24px; height: 19px; border-radius: 5px; font-size: 9px; }
.titelzeile .summen { display: none; }
.p-karte { background: var(--p-karte); border-radius: 12px; box-shadow: 0 1px 0 rgba(26,26,26,.07), 0 0 0 1px rgba(26,26,26,.06); }
.kennzahlen { display: flex; margin: 0 0 16px; overflow: hidden; }
.kennzahlen .kz-tag { display: flex; align-items: center; padding: 0 22px; border-right: 1px solid var(--p-linie); font-size: 13px; white-space: nowrap; }
.kz { flex: 1; padding: 14px 20px; border-right: 1px solid var(--p-linie); min-width: 0; border-left: 0; border-radius: 0; background: none; border-top: 0; border-bottom: 0; }
.kz:last-child { border-right: 0; }
.kz small { display: inline-block; font-size: 13px; font-weight: 600; color: var(--p-text); border-bottom: 1.5px dotted #b5b5b5; padding-bottom: 1px; }
.kz b { display: block; font-size: 14px; font-weight: 650; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.kz span { font-size: 12px; color: var(--p-leise); }
.kz b.rot { color: var(--p-rot-t); }
.lauf { font-size: 12px; color: var(--p-leise); margin: -6px 0 16px 2px; }
.lauf i { font-style: normal; margin: 0 6px; color: #b5b5b5; }
.tabelle-karte { overflow: hidden; }
.t-leiste { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--p-linie); }
.t-leiste b { font-size: 13px; font-weight: 650; }
.p-knopf { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: #fff; color: var(--p-text);
  font-weight: 550; font-size: 13px; box-shadow: 0 0 0 1px #d4d4d4, 0 1px 0 #d4d4d4; border: 0; }
.p-knopf:hover { background: #f7f7f7; text-decoration: none; }
.tabelle-rahmen { border: 0; border-radius: 0; }
table.pp { table-layout: fixed; width: 100%; border-collapse: collapse; }
table.pp col.w-pa { width: 236px; } table.pp col.w-n { width: 66px; } table.pp col.w-std { width: 78px; }
table.pp col.w-d { width: 96px; } table.pp col.w-ang { width: 92px; } table.pp col.w-fr { width: 160px; } table.pp col.w-bk { width: 136px; }
table.pp col.w-re { width: 104px; } table.pp col.w-eur { width: 104px; } table.pp col.w-k { width: 34px; } table.pp col.w-ok { width: 42px; }
table.pp th { background: var(--p-kopf); color: var(--p-leise); font-size: 12px; font-weight: 550; height: 34px; padding: 0 10px; border: 0; border-bottom: 1px solid var(--p-linie); text-transform: none; letter-spacing: 0; white-space: nowrap; }
table.pp tr.k1 th { height: 28px; border-bottom: 0; padding-top: 6px; }
table.pp th.grp { color: var(--p-text); font-weight: 650; text-transform: none; letter-spacing: 0; font-size: 12px; border-bottom: 0; }
table.pp td { height: 42px; padding: 0 10px; border: 0; border-bottom: 1px solid var(--p-linie); font-size: 13px; color: var(--p-text); overflow: hidden; text-overflow: ellipsis; }
table.pp tbody tr.zl:hover td { background: #f7f7f7; }
tr.obj td, tr.obj:hover td { background: #fafafa; height: 40px; padding: 0 10px; border-bottom: 1px solid var(--p-linie); border-top: 1px solid var(--p-linie); cursor: pointer; }
.obj-kopf { display: flex; align-items: center; gap: 10px; }
.obj-nr { font-weight: 650; font-size: 13px; color: var(--p-text); background: none; padding: 0; font-variant-numeric: tabular-nums; }
.obj-name { font-size: 13px; font-weight: 650; color: var(--p-text); }
.obj-meta { font-size: 12px; color: var(--p-leise); }
.obj-auf { margin-left: auto; font-size: 12px; color: var(--p-leise); }
tr.obj:hover .obj-auf { color: var(--p-text); text-decoration: underline; }
td.pa { white-space: nowrap; }
.pa-k { display: inline-block; min-width: 38px; font-weight: 650; }
.pa-n { color: var(--p-leise); }
.pa-h { color: var(--p-rot-t); font-weight: 700; margin-left: 6px; }
.n { font-weight: 550; font-variant-numeric: tabular-nums; }
.n.v { color: var(--p-orange-t); border-bottom: 1px dashed #e8a54b; }
.n.h { color: #5e4db2; border-bottom: 1px solid #9f8fef; }
td.std b { font-size: 13px; font-weight: 550; font-variant-numeric: tabular-nums; display: block; }
td.std small { display: block; font-size: 11px; color: var(--p-leise); line-height: 1.1; }
/* Badges wie Polaris: grau mit Punkt = belegt, Ring = zugeordnet, gelb mit Ring = wartet */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 7px; border-radius: 8px; font-size: 12px; font-weight: 450; white-space: nowrap;
  font-variant-numeric: tabular-nums; line-height: 20px; background: var(--p-grau); color: #4a4a4a; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
a.chip:hover { text-decoration: none; filter: brightness(.95); }
.chip.z::before, .chip.w::before { background: none; border: 1.5px solid currentColor; width: 4px; height: 4px; }
.chip.w { background: var(--p-gelb); color: var(--p-gelb-t); }
.chip.h { background: #e6e1ff; color: #4a3aa0; }
.chip.neutral { background: none; color: var(--p-text); padding-left: 0; } .chip.neutral::before { display: none; }
a.chip.neutral { text-decoration: underline; text-decoration-color: #c4c4c4; text-underline-offset: 3px; }
.pille { display: inline-flex; align-items: center; padding: 0 7px; border-radius: 8px; font-size: 12px; font-weight: 550; line-height: 20px; }
.pille.rot { background: var(--p-rot); color: var(--p-rot-t); } .pille.gelb { background: var(--p-orange); color: var(--p-orange-t); }
td.kz-zelle { padding: 0; }
.kreuz { display: inline-grid; place-items: center; width: 22px; height: 20px; border-radius: 7px; background: var(--p-rot); color: var(--p-rot-t); font-size: 12px; font-weight: 700; }
.haken { border-radius: 4px; border: 1.5px solid #8a8a8a; }
.leise { color: var(--p-leise); }
.legende { font-size: 12px; color: var(--p-leise); line-height: 2; margin: 12px 4px; }
.leg-chips { display: inline-flex; gap: 6px; margin: 0 10px; vertical-align: middle; }
.unten-bloecke { gap: 16px; margin-top: 16px; }
.unten-bloecke .block { background: #fff; border: 0; border-radius: 12px; box-shadow: 0 1px 0 rgba(26,26,26,.07), 0 0 0 1px rgba(26,26,26,.06); padding: 14px 16px; }
.unten-bloecke .block h3 { font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.unten-bloecke .block td { border-bottom: 1px solid var(--p-linie); font-size: 13px; height: 34px; }
#karte { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 0 rgba(26,26,26,.07), 0 0 0 1px rgba(26,26,26,.06); }
@media (max-width: 1440px) {
  .inhalt { padding: 16px 14px 60px; }
  table.pp col.w-pa { width: 168px; } table.pp col.w-n { width: 50px; } table.pp col.w-std { width: 60px; }
  table.pp col.w-d { width: 82px; } table.pp col.w-ang { width: 72px; } table.pp col.w-fr { width: 126px; } table.pp col.w-bk { width: 110px; }
  table.pp col.w-re { width: 84px; } table.pp col.w-eur { width: 86px; } table.pp col.w-k { width: 28px; } table.pp col.w-ok { width: 32px; }
  table.pp td, table.pp th { padding: 0 5px; font-size: 12px; } .chip { padding: 0 6px; font-size: 11px; gap: 4px; }
  td.pa { white-space: normal; line-height: 1.25; } .pa-n { display: block; font-size: 11px; }
  .kennzahlen .kz-tag { display: none; }
}

/* Breiten nachgezogen 03.11.2026: kein Abschneiden mit "..", Summe der Spalten passt in 1712 px bzw. 1150 px (Tablet) */
table.pp td { overflow: visible; text-overflow: clip; }
table.pp col.w-pa { width: 230px; } table.pp col.w-n { width: 66px; } table.pp col.w-n:nth-child(4) { width: 70px; }
table.pp col.w-std { width: 84px; } table.pp col.w-d { width: 104px; } table.pp col.w-ang { width: 86px; }
table.pp col.w-fr { width: 150px; } table.pp col.w-bk { width: 132px; } table.pp col.w-re { width: 96px; }
table.pp col.w-eur { width: 96px; } table.pp col.w-k { width: 36px; } table.pp col.w-ok { width: 36px; }
td.pa .pa-n { white-space: normal; }
@media (max-width: 1440px) {
  table.pp col.w-pa { width: 140px; } table.pp col.w-n { width: 40px; } table.pp col.w-n:nth-child(4) { width: 48px; }
  table.pp col.w-std { width: 52px; } table.pp col.w-d { width: 64px; } table.pp col.w-ang { width: 60px; }
  table.pp col.w-fr { width: 104px; } table.pp col.w-bk { width: 80px; } table.pp col.w-re { width: 64px; }
  table.pp col.w-eur { width: 72px; } table.pp col.w-k { width: 24px; } table.pp col.w-ok { width: 26px; }
  table.pp td, table.pp th { padding: 0 4px; font-size: 11.5px; }
  table.pp th { white-space: normal; line-height: 1.2; }
  .chip { padding: 0 5px; font-size: 11px; gap: 0; white-space: normal; line-height: 15px; border-radius: 6px; }
  .chip::before { display: none; }
  .chip.z { box-shadow: inset 0 0 0 1px #b5b5b5; background: #fff; }
  .kreuz { width: 18px; height: 18px; font-size: 11px; border-radius: 6px; }
  td.std small { font-size: 9.5px; }
}

.kurz { display: none; }
@media (max-width: 1440px) { .lang { display: none; } .kurz { display: inline; } }
.verlauf .mini, .termine .mini { max-width: none; }
.termine td:first-child, .verlauf td:first-child { white-space: nowrap; width: 90px; }
