/* CIF Spedition – Design angelehnt an Hausfreund: hell, ruhig, weiße Karten, Indigo als Akzent */
:root {
  --bg: #f5f6f8; --karte: #fff; --rand: #e5e7eb; --rand2: #eef0f3; --text: #111827; --text2: #4b5563; --text3: #9ca3af;
  --akzent: #4f46e5; --akzent-dunkel: #4338ca; --akzent-hell: #eef0ff;
  --rot: #dc2626; --rot-hell: #fdecec; --gruen: #15803d; --gruen-hell: #e8f6ee; --orange: #c2410c; --orange-hell: #fff1e6;
  --gelb-hell: #fdf6e3; --radius: 12px; --schatten: 0 1px 2px rgba(16,24,40,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
.ic { flex: none; vertical-align: middle; }
h1 { font-size: 26px; font-weight: 700; margin: 0 0 2px; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.unter { color: var(--text2); margin: 0 0 22px; }
.leise { color: var(--text2); }
.sehrleise { color: var(--text3); }
.klein { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.fett { font-weight: 600; }
.rot { color: var(--rot); } .gruen { color: var(--gruen); } .orange { color: var(--orange); }

/* Rahmen */
.app { display: flex; min-height: 100vh; }
.seitenleiste { width: 232px; flex: none; background: #fff; border-right: 1px solid var(--rand); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 14px 10px; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); padding: 4px 8px 14px; }
.marke:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--akzent); color: #fff; display: grid; place-items: center; }
.seitenleiste nav { flex: 1; overflow: auto; }
.navgruppe { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); padding: 14px 10px 6px; border-top: 1px solid var(--rand2); margin-top: 6px; }
.navgruppe:first-child { border-top: 0; margin-top: 0; padding-top: 4px; }
.navlink { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #1f2937; font-weight: 500; margin: 1px 0; }
.navlink:hover { background: #f3f4f6; text-decoration: none; }
.navlink.aktiv { background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 600; }
.navlink .ic { color: #6b7280; }
.navlink.aktiv .ic { color: var(--akzent); }
.navzahl { margin-left: auto; background: var(--rot); color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px; }
.ich { display: flex; align-items: center; gap: 10px; padding: 10px 6px 2px; border-top: 1px solid var(--rand2); }
.ich div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ich small { color: var(--text3); font-size: 11px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent-dunkel); display: grid; place-items: center; font-weight: 700; }
.haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oben { position: sticky; top: 0; z-index: 20; background: rgba(245,246,248,.92); backdrop-filter: blur(6px); display: flex; align-items: center; gap: 12px; padding: 14px 28px; }
.inhalt { padding: 10px 28px 40px; max-width: 1480px; width: 100%; }
.menueknopf { display: none; }

/* Suche */
.suchfeld { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rand); border-radius: 10px; padding: 0 12px; height: 42px; color: var(--text2); }
.suchfeld input { border: 0; outline: 0; flex: 1; font: inherit; background: transparent; height: 40px; padding: 0; }
.suchfeld:focus-within { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
.suchtreffer { position: absolute; left: 0; right: 0; top: 46px; background: #fff; border: 1px solid var(--rand); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.12); display: none; overflow: hidden; }
.suchtreffer.offen { display: block; }
.suchtreffer a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; color: var(--text); border-bottom: 1px solid var(--rand2); }
.suchtreffer a:last-child { border-bottom: 0; }
.suchtreffer a:hover, .suchtreffer a.markiert { background: var(--akzent-hell); text-decoration: none; }

/* Karten */
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten); }
.karte > .kopf { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--rand2); }
.karte > .kopf h2 { flex: 1; }
.karte > .koerper { padding: 16px 20px; }
.karte.ohnekopf { padding: 16px 20px; }
.raster { display: grid; gap: 16px; }
.r2 { grid-template-columns: 1fr 1fr; }
.r5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stapel > * + * { margin-top: 16px; }

/* Kennzahlen */
.kennzahl { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 16px 18px; display: block; color: var(--text); }
.kennzahl:hover { text-decoration: none; border-color: #cfd3da; }
.kennzahl .titel { font-size: 13px; font-weight: 600; color: #374151; }
.kennzahl .wert { font-size: 26px; font-weight: 700; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kennzahl .hinweis { font-size: 12.5px; color: var(--text2); }
.kennzahl.rot { background: var(--rot-hell); border-color: #f5c2c2; } .kennzahl.rot .wert { color: var(--rot); }
.kennzahl.gruen .wert { color: var(--gruen); }
.kennzahl.aktiv { border-color: var(--akzent); box-shadow: 0 0 0 2px var(--akzent-hell); }
.kennzahl.klein { padding: 10px 14px; } .kennzahl.klein .wert { font-size: 20px; margin: 0; display: inline; margin-right: 6px; }

/* Aufgabenliste (wie „Jetzt erledigen“) */
.aufgaben { list-style: none; margin: 0; padding: 4px 20px 8px; }
.aufgabe { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rand2); }
.aufgabe:last-child { border-bottom: 0; }
.aufgabe .chip { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.aufgabe .text { flex: 1; min-width: 0; }
.aufgabe .text strong { display: block; font-weight: 600; }
.aufgabe .text span { color: var(--text2); font-size: 12.5px; }
.datumchip { width: 44px; height: 46px; border-radius: 10px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; background: var(--gelb-hell); color: #a16207; }
.datumchip b { font-size: 17px; }
.datumchip small { font-size: 10px; text-transform: uppercase; margin-top: 3px; }
.datumchip.rot { background: var(--rot-hell); color: var(--rot); }
.datumchip.blau { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.datumchip.grau { background: #f3f4f6; color: #6b7280; }

/* Gruppen auf „Heute“ */
.gruppe { margin-bottom: 18px; }
.gruppenkopf { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--rand2); }
.gruppenkopf h2 { font-size: 15px; }
.zaehler { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.zeile { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--rand2); color: var(--text); cursor: pointer; }
.zeile:last-child { border-bottom: 0; }
.zeile:hover { background: #fafbfc; text-decoration: none; }
.zeile .nr { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zeile .kunde { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.zeile .kurz { color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 60px; }
.zeile.abgerechnet { background: #f2fbf5; }
.zeile.bcfehlt { background: #fff7f7; }
.tag { width: 56px; flex: none; color: var(--text2); font-variant-numeric: tabular-nums; }
.tag.rot { color: var(--rot); font-weight: 600; }

/* Badges & Farben */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.c-grau { background: #f1f2f4; color: #4b5563; } .c-blau { background: #e8f0fe; color: #1d4ed8; } .c-indigo { background: #eef0ff; color: #4338ca; }
.c-cyan { background: #e6f7fb; color: #0e7490; } .c-lila { background: #f3ecfd; color: #7e22ce; } .c-teal { background: #e6f6f3; color: #0f766e; }
.c-gruen { background: var(--gruen-hell); color: var(--gruen); } .c-braun { background: #f5eee6; color: #8a5a2b; }
.c-rot { background: var(--rot-hell); color: var(--rot); } .c-orange { background: var(--orange-hell); color: var(--orange); }
.c-gelb { background: var(--gelb-hell); color: #a16207; }
.badge.voll.c-rot { background: var(--rot); color: #fff; } .badge.voll.c-orange { background: #ea580c; color: #fff; }
.punkt { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.p-grau { background: #9ca3af; } .p-blau { background: #2563eb; } .p-indigo { background: #4f46e5; } .p-cyan { background: #06b6d4; }
.p-lila { background: #9333ea; } .p-teal { background: #0d9488; } .p-gruen { background: #16a34a; } .p-braun { background: #92400e; } .p-rot { background: var(--rot); } .p-orange { background: #ea580c; }

/* Knöpfe & Felder */
.knopf { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--rand); background: #fff; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.knopf:hover { background: #f9fafb; text-decoration: none; }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf.primaer:hover { background: var(--akzent-dunkel); }
.knopf.gefahr { color: var(--rot); }
.knopf.klein { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.knopf:disabled { opacity: .5; cursor: default; }
.iconknopf { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; color: var(--text2); cursor: pointer; }
.iconknopf:hover { background: #f3f4f6; color: var(--text); }
.iconknopf.klein { width: 30px; height: 30px; border: 1px solid var(--rand); background: #fff; }
.linkknopf { border: 0; background: none; color: var(--akzent); font: inherit; cursor: pointer; padding: 0; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  font: inherit; color: var(--text); border: 1px solid var(--rand); background: #fff; border-radius: 8px; padding: 0 10px; height: 36px; width: 100%; min-width: 0; outline: none; }
textarea { height: auto; min-height: 70px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
input.fehlt { border-color: #f19a9a; background: #fffafa; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--akzent); vertical-align: middle; }
label.feld { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text2); font-weight: 500; }
label.feld > span.lbl { display: flex; align-items: center; gap: 6px; }
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 14px; }
.felder .breit { grid-column: 1 / -1; }
.reihe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reihe.eng { gap: 4px; }
.abstand { flex: 1; }
.segment { display: inline-flex; background: #f1f2f4; border-radius: 9px; padding: 3px; gap: 2px; }
.segment button, .segment a { border: 0; background: transparent; font: inherit; font-weight: 500; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: #374151; display: inline-flex; align-items: center; gap: 6px; }
.segment .an { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.segment a:hover { text-decoration: none; }
.partnerwahl { display: flex; gap: 6px; align-items: center; }
.partnerwahl select { flex: 1; }
.pw-such { position: relative; flex: 1; min-width: 0; }
.pw-liste { position: absolute; z-index: 30; left: 0; right: 0; top: 38px; background: #fff; border: 1px solid var(--rand); border-radius: 8px; box-shadow: 0 10px 30px rgba(16,24,40,.12); max-height: 280px; overflow: auto; display: none; }
.pw-liste.offen { display: block; }
.pw-liste div { padding: 7px 10px; cursor: pointer; display: flex; gap: 8px; }
.pw-liste div:hover, .pw-liste div.markiert { background: var(--akzent-hell); }
.pw-liste small { color: var(--text3); }
.gespeichert { color: var(--gruen); font-size: 12px; opacity: 0; transition: opacity .3s; }
.gespeichert.zeigen { opacity: 1; }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text2); padding: 10px 12px; border-bottom: 1px solid var(--rand); white-space: nowrap; background: #fafbfc; }
.tabelle td { padding: 9px 12px; border-bottom: 1px solid var(--rand2); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tr.klickbar { cursor: pointer; }
.tabelle tr.klickbar:hover td { background: #fafbfc; }
.tabelle .rechts { text-align: right; }
.tabelle input, .tabelle select { height: 32px; }
.tabelle tr.tagkopf td { background: #f7f8fa; font-weight: 600; cursor: pointer; }
.tabelle tr.markiert td { background: var(--akzent-hell) !important; }
.tabelle tr.abgerechnet td { background: #f2fbf5; }
.tabelle tr.bcfehlt td { background: #fff7f7; }
.nummernfeld { width: 150px; }

/* Werkzeugleiste über Listen */
.werkzeug { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.periode { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.sammelleiste { display: flex; align-items: center; gap: 10px; background: var(--akzent); color: #fff; padding: 8px 14px; border-radius: 10px; margin-bottom: 12px; }
.sammelleiste .knopf { height: 30px; }

/* Wochenplan */
.woche { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.tagspalte { background: #eceef2; border-radius: 12px; padding: 10px; min-height: 300px; }
.tagspalte.heute { background: #e3e6fb; }
.tagspalte .tk { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 8px; }
.plankarte { display: block; background: #fff; border: 1px solid var(--rand); border-left: 4px solid #9ca3af; border-radius: 9px; padding: 8px 10px; margin-bottom: 7px; color: var(--text); }
.plankarte:hover { text-decoration: none; border-color: #c7cbd3; }
.plankarte.abgerechnet { background: #f2fbf5; }
.plankarte .k { display: flex; gap: 6px; align-items: baseline; font-weight: 600; }
.plankarte .k span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plankarte .r { color: var(--text2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plankarte .n { display: flex; gap: 6px; align-items: center; font-size: 12px; margin-top: 3px; }
.l-grau { border-left-color: #9ca3af; } .l-blau { border-left-color: #2563eb; } .l-indigo { border-left-color: #4f46e5; } .l-cyan { border-left-color: #06b6d4; }
.l-lila { border-left-color: #9333ea; } .l-teal { border-left-color: #0d9488; } .l-gruen { border-left-color: #16a34a; } .l-braun { border-left-color: #92400e; } .l-rot { border-left-color: var(--rot); } .l-orange { border-left-color: #ea580c; }

/* Auftrag */
.auftragkopf { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.auftragkopf h1 { display: flex; align-items: center; gap: 12px; }
.auftraglayout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.meilensteine { display: flex; gap: 0; margin-top: 4px; }
.meilenstein { flex: 1; text-align: center; font-size: 11.5px; color: var(--text2); cursor: pointer; position: relative; }
.meilenstein .kreis { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #d1d5db; background: #fff; display: grid; place-items: center; margin: 0 auto 4px; font-weight: 600; font-size: 12px; position: relative; z-index: 1; }
.meilenstein::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: #e5e7eb; }
.meilenstein:first-child::before { display: none; }
.meilenstein.fertig .kreis { background: #16a34a; border-color: #16a34a; color: #fff; }
.meilenstein.fertig::before { background: #16a34a; }
.meilenstein.naechste .kreis { border: 2px solid var(--akzent); color: var(--akzent); }
.meilenstein.naechste { color: var(--akzent-dunkel); font-weight: 600; }
.schritt { border-bottom: 1px solid var(--rand2); }
.schritt:last-child { border-bottom: 0; }
.schrittzeile { display: flex; align-items: center; gap: 10px; padding: 11px 20px; cursor: pointer; }
.schrittzeile:hover { background: #fafbfc; }
.schrittzeile .titel { font-weight: 500; white-space: nowrap; }
.schrittzeile .info { color: var(--text2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schrittzeile .wer { color: var(--text3); font-size: 12px; white-space: nowrap; }
.haken { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c9cdd4; display: grid; place-items: center; flex: none; background: #fff; color: #fff; cursor: pointer; padding: 0; }
.haken.an { background: #16a34a; border-color: #16a34a; }
.haken.ueber { background: #e5e7eb; border-color: #d1d5db; color: #6b7280; }
.schrittinhalt { padding: 4px 20px 16px 52px; display: none; }
.schritt.offen .schrittinhalt { display: block; }
.schritt.naechster { background: #fbfbff; box-shadow: inset 3px 0 0 var(--akzent); }
.schritt.naechster .schrittzeile .titel { font-weight: 700; color: var(--akzent-dunkel); }
.untergruppe { background: #f8f9fb; border: 1px solid var(--rand2); border-radius: 10px; padding: 12px; margin-top: 10px; }
.untergruppe h4 { margin: 0 0 10px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.unterpunkte { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.unterpunkte label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.hinweisbox { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; margin-bottom: 12px; }
.hinweisbox.rot { background: var(--rot-hell); color: var(--rot); }
.hinweisbox.orange { background: var(--orange-hell); color: var(--orange); }
.hinweisbox.blau { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.hinweisbox.gruen { background: var(--gruen-hell); color: var(--gruen); }
.leer { text-align: center; padding: 40px 20px; color: var(--text2); }
.leer .chip { width: 52px; height: 52px; border-radius: 12px; background: var(--akzent-hell); color: var(--akzent); display: grid; place-items: center; margin: 0 auto 12px; }
.leer strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.summenzeile { display: flex; gap: 20px; flex-wrap: wrap; padding: 10px 20px; border-top: 1px solid var(--rand2); color: var(--text2); font-size: 13px; }
.dateiliste .zeile { cursor: default; }
.ablage { border: 2px dashed #d3d7de; border-radius: 10px; padding: 16px; text-align: center; color: var(--text2); cursor: pointer; }
.ablage.drueber { border-color: var(--akzent); background: var(--akzent-hell); }

/* Dialog & Meldung */
.dialoghintergrund { position: fixed; inset: 0; background: rgba(17,24,39,.35); display: grid; place-items: center; z-index: 100; padding: 20px; }
.dialoghintergrund[hidden] { display: none; }
.dialogbox { background: #fff; border-radius: 14px; width: min(620px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.dialogbox.breit { width: min(900px, 100%); }
.dialogbox .dkopf { padding: 18px 22px 6px; display: flex; align-items: center; gap: 10px; }
.dialogbox .dkopf h2 { font-size: 18px; flex: 1; }
.dialogbox .dkoerper { padding: 10px 22px 6px; }
.dialogbox .dfuss { padding: 14px 22px 18px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.meldung { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 90vw; white-space: pre-line; }
.mailtext { width: 100%; min-height: 300px; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.vergleich td { vertical-align: top; }
.vergleich .alt { color: var(--text3); white-space: pre-line; }
.vergleich .neu { white-space: pre-line; font-weight: 500; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .karte { width: min(380px, 100%); padding: 28px; }
.login .marke { padding: 0 0 18px; }
.fehlerbox { background: var(--rot-hell); color: var(--rot); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }

@media (max-width: 1100px) { .auftraglayout { grid-template-columns: 1fr; } .r2 { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .seitenleiste { position: fixed; left: -260px; z-index: 50; transition: left .2s; box-shadow: 0 0 30px rgba(0,0,0,.15); }
  .seitenleiste.offen { left: 0; }
  .menueknopf { display: inline-grid; }
  .oben, .inhalt { padding-left: 14px; padding-right: 14px; }
  .oben .knopf.primaer { padding: 0 10px; }
  .zeile .kurz { display: none; }
}
@media print { .seitenleiste, .oben { display: none; } .inhalt { padding: 0; } body { background: #fff; } }

/* Aufklappmenüs */
details.menue { position: relative; }
details.menue > summary { list-style: none; }
details.menue > summary::-webkit-details-marker { display: none; }
.menueliste { position: absolute; z-index: 40; top: 40px; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--rand); border-radius: 10px; box-shadow: 0 12px 34px rgba(16,24,40,.14); padding: 6px; }
.menueliste.rechts { left: auto; right: 0; }
.menueliste button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--text); }
.menueliste button:hover { background: #f3f4f6; }
.menueliste button.rot { color: var(--rot); }
.menueliste hr { border: 0; border-top: 1px solid var(--rand2); margin: 4px 0; }
.chip.c-rot, .chip.c-indigo, .chip.c-orange { }
.partnerliste .zeile.aktiv { background: var(--akzent-hell); }
.gruppenwahl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.gruppenwahl a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--rand); color: var(--text); font-weight: 500; }
.gruppenwahl a:hover { text-decoration: none; background: #f9fafb; }
.gruppenwahl a.an { background: var(--akzent-hell); border-color: #c7cbf7; color: var(--akzent-dunkel); }
.gruppenwahl .n { font-size: 12px; color: var(--text3); }

/* Korrekturen */
[hidden] { display: none !important; }
.suchfeld input[type=search], .suchfeld input[type=text] { border: 0; box-shadow: none; padding: 0; height: 100%; flex: 1; width: auto; background: transparent; }
form.suchfeld { width: 340px; }
input.nummernfeld { width: 150px; }
.zeile input.nummernfeld { flex: none; }
.oben .menueknopf { display: none; }
#kalkulation td:first-child input { min-width: 180px; }
.tabelle td.rechts { white-space: nowrap; }
@media (max-width: 800px) { .oben .menueknopf { display: inline-grid; } form.suchfeld { width: 100%; } }
