/* Plantafel Elektro – Oberfläche · Version 2026.09.24.002 */
:root {
  --grund: #F2F1ED;
  --flaeche: #FFFFFF;
  --flaeche-2: #FAFAF8;
  --flaeche-3: #F6F5F1;
  --linie: #DDDAD2;
  --linie-hell: #EAE8E2;
  --tinte: #17191C;
  --tinte-2: #3A3E44;
  --grau: #5B5F66;
  --akzent: #F2B705;
  --akzent-hell: #FFF8E1;
  --rot: #C2352B;
  --rot-text: #A8261D;
  --rot-hell: #FBE7E5;
  --gruen: #1E5A37;
  --gruen-hell: #E2F1E8;
  --schrift: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--grund); color: var(--tinte); font-family: var(--schrift); font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.laden { padding: 40px; color: var(--grau); }

/* Kopfzeile */
.kopf { height: 56px; background: var(--tinte); color: #F2F1ED; display: flex; align-items: center; gap: 28px; padding: 0 24px; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.marke span { color: var(--akzent); }
.marke svg { flex-shrink: 0; }
.nav { display: flex; gap: 4px; }
.nav button { background: transparent; border: 0; color: #BFC2C7; padding: 8px 12px; border-radius: 6px; font-size: 13.5px; }
.nav button.an { background: #2C2F35; color: #fff; font-weight: 600; }
.nutzer { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #BFC2C7; }
.nutzer button { background: transparent; border: 1px solid #3A3E44; color: #E6E6E6; border-radius: 6px; padding: 6px 10px; font-size: 12.5px; }
.kreis { width: 32px; height: 32px; border-radius: 50%; background: var(--akzent); color: var(--tinte); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }

/* Werkzeugleiste */
.leiste { min-height: 60px; background: var(--flaeche); border-bottom: 1px solid var(--linie); display: flex; align-items: center; gap: 20px; padding: 10px 24px; flex-wrap: wrap; }
.leiste h1 { margin: 0; font-size: 22px; font-weight: 800; }
.reiter { display: flex; gap: 2px; padding: 3px; background: var(--grund); border: 1px solid var(--linie); border-radius: 8px; flex-wrap: wrap; }
.reiter button { height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--tinte-2); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.reiter button.an { background: var(--tinte); color: #fff; font-weight: 600; }
.reiter .zahl { font-family: var(--mono); font-size: 10.5px; opacity: .75; }
.rechts { margin-left: auto; display: flex; gap: 8px; }
.knopf { height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--linie); background: var(--flaeche); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); font-weight: 600; }
.knopf.dunkel { background: var(--tinte); border-color: var(--tinte); color: #fff; font-weight: 600; }
.knopf.gefahr { color: var(--rot-text); border-color: #E8B4AE; }
.knopf.klein { height: 32px; padding: 0 10px; font-size: 12.5px; }

/* Arbeitsbereich */
.bereich { display: flex; gap: 20px; padding: 20px 24px; align-items: flex-start; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; }
.liste { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow: hidden; max-height: calc(100vh - 176px); }
.liste-kopf { height: 52px; flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid var(--linie-hell); }
.suche { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--linie); border-radius: 7px; flex: 1; max-width: 360px; }
.suche input { border: 0; outline: 0; flex: 1; font-size: 12.5px; background: transparent; }
.anzahl { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--grau); }
.zeilenkopf, .zeile { display: grid; gap: 8px; align-items: center; padding: 0 12px; }
.zeilenkopf { height: 36px; background: var(--flaeche-2); border-bottom: 1px solid var(--linie); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); flex-shrink: 0; }
.zeilen { overflow-y: auto; flex: 1; }
.zeile { width: 100%; height: 40px; border: 0; border-bottom: 1px solid #F0EEE9; background: var(--flaeche); text-align: left; font-size: 12.5px; }
.zeile:hover { background: #FCFBF7; }
.zeile.an { background: var(--akzent-hell); box-shadow: inset 3px 0 0 var(--akzent); }
.zeile.inaktiv { color: #8E9197; }
.zeile span, .zeilenkopf span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.zeile .mono { font-family: var(--mono); font-weight: 600; font-size: 11.5px; }
.zeile .fett { font-weight: 600; }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.leer { padding: 24px 12px; color: var(--grau); font-size: 13px; }
.warn { color: var(--rot-text); font-weight: 600; }

/* Formular */
.formular { width: 480px; flex-shrink: 0; display: flex; flex-direction: column; max-height: calc(100vh - 176px); overflow: hidden; }
.form-kopf { padding: 16px 18px; border-bottom: 1px solid var(--linie-hell); }
.form-kopf .art { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.form-kopf h2 { margin: 2px 0 0; font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-inhalt { padding: 16px 18px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; align-content: start; }
.feld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.feld.voll { grid-column: span 2; }
.feld > label, .feld > .titel { font-size: 11.5px; font-weight: 600; color: var(--tinte-2); }
.feld .pflicht { color: var(--rot-text); }
.feld input[type=text], .feld input[type=number], .feld input[type=date], .feld input[type=password], .feld select, .feld textarea {
  height: 38px; padding: 0 10px; border: 1px solid #CFCBC1; border-radius: 7px; background: #fff; font-size: 13px; width: 100%;
}
.feld input:disabled, .feld select:disabled { background: var(--flaeche-3); color: var(--tinte-2); }
.feld .hilfe { font-size: 11.5px; color: var(--grau); line-height: 1.4; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 8px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; }
.check b { display: block; font-size: 13px; font-weight: 600; }
.check small { display: block; font-size: 11.5px; color: var(--grau); margin-top: 2px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid #CFCBC1; background: #fff; font-size: 12px; font-weight: 500; }
.chip.an { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.farben { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.farbe { width: 32px; height: 32px; border-radius: 8px; border: 2px solid transparent; padding: 0; }
.farbe.an { border-color: var(--tinte); box-shadow: inset 0 0 0 2px #fff; }
.hinweis { grid-column: span 2; background: var(--flaeche-3); border: 1px solid var(--linie-hell); border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.45; color: var(--tinte-2); }
.form-fuss { padding: 14px 18px; border-top: 1px solid var(--linie-hell); display: flex; gap: 8px; }
.form-fuss .knopf.primaer { flex: 1; justify-content: center; }
.meldung { margin: 0 18px 12px; padding: 9px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; }
.meldung.ok { background: var(--gruen-hell); color: var(--gruen); }
.meldung.fehler { background: var(--rot-hell); color: var(--rot-text); }

/* Unterliste Sperren */
.unter { grid-column: span 2; border-top: 1px solid var(--linie-hell); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.unter h3 { margin: 0; font-size: 13px; }
.unter table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.unter td, .unter th { text-align: left; padding: 6px 4px; border-bottom: 1px solid #F0EEE9; }
.unter th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); }
.unter .neu { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 6px; }
.unter .neu input { height: 34px; padding: 0 8px; border: 1px solid #CFCBC1; border-radius: 6px; font-size: 12.5px; min-width: 0; }

/* Anmeldung */
.anmeldung { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.anmeldung form { width: 380px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.anmeldung h1 { margin: 0; font-size: 22px; }
.anmeldung p { margin: 0; color: var(--grau); font-size: 13px; line-height: 1.45; }
.anmeldung .feld input { height: 42px; }
.anmeldung .knopf { justify-content: center; }
.fehlerbox { background: var(--rot-hell); color: var(--rot-text); border-radius: 8px; padding: 9px 12px; font-size: 12.5px; font-weight: 600; }

/* Platzhalter Tafel */
.platzhalter { max-width: 720px; margin: 40px auto; padding: 28px; }
.platzhalter h2 { margin: 0 0 8px; }
.platzhalter p { color: var(--tinte-2); line-height: 1.55; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge.ja { background: var(--gruen-hell); color: var(--gruen); }
.badge.nein { background: #F0EFEA; color: var(--grau); }

@media (max-width: 1100px) {
  .bereich { flex-direction: column; }
  .formular, .liste { width: 100%; max-height: none; }
}

/* ===================== Plantafel (Phase 2) ===================== */
:root { --schraffur: repeating-linear-gradient(135deg, #EFEEE9 0px, #EFEEE9 5px, #E1DED6 5px, #E1DED6 10px); --linie-zart: #F0EEE9; --grau-hell: #8E9197; --gelb-hell: #FFF6E3; --gelb-text: #7A5206; --rot-zart: #FBEDEB; }
.navi { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.zeitraum { font-family: var(--mono); font-weight: 600; font-size: 13px; min-width: 230px; text-align: center; }
.leiste2 { min-height: 52px; background: var(--flaeche-2); border-bottom: 1px solid var(--linie); display: flex; align-items: center; gap: 18px; padding: 8px 24px; flex-wrap: wrap; position: relative; z-index: 5; }
.gruppe { display: flex; align-items: center; gap: 8px; }
.gruppe > span { font-size: 11.5px; font-weight: 600; color: var(--grau); }
.seg { display: flex; gap: 2px; padding: 2px; background: #fff; border: 1px solid var(--linie); border-radius: 7px; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: var(--tinte-2); font-size: 12.5px; font-weight: 500; }
.seg button.an { background: var(--tinte); color: #fff; font-weight: 600; }
.schalter { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--linie); border-radius: 7px; background: #fff; font-size: 12.5px; }
.schalter i { width: 30px; height: 18px; border-radius: 9px; padding: 2px; background: #C9C6BD; display: flex; }
.schalter i::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.schalter[aria-pressed="true"] i { background: var(--tinte); justify-content: flex-end; }
.nurlesen { font-size: 12px; font-weight: 600; color: var(--gelb-text); background: var(--gelb-hell); border: 1px dashed #B7790A; border-radius: 6px; padding: 5px 10px; }
.rechtsbox { margin-left: auto; position: relative; display: flex; align-items: center; gap: 10px; }
.rechtsbox .info { font-family: var(--mono); font-size: 11.5px; color: var(--grau); }
.inhalt { padding: 14px 24px 16px; display: flex; flex-direction: column; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kpi span { font-size: 12.5px; color: var(--grau); }
.kpi b { font-size: 22px; font-weight: 800; }
.hints { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hint { display: flex; align-items: center; gap: 8px; background: var(--rot-hell); border: 1px solid #E8B4AE; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; color: #3A1512; }
.hint.hart { border: 1.5px solid var(--rot); font-weight: 600; }
.hint em { font-style: normal; font-family: var(--mono); font-size: 11px; color: #8E1F17; }
.linkknopf { border: 0; background: transparent; text-decoration: underline; font-size: 12px; padding: 4px 0; color: var(--tinte-2); align-self: flex-start; }

.tafel { background: #fff; border: 1px solid var(--linie); border-radius: 10px; overflow: auto; min-height: 380px; max-height: calc(100vh - 290px); -webkit-overflow-scrolling: touch; }
.tkopf, .trow, .tgrp { display: grid; }
.tkopf { height: 44px; border-bottom: 1px solid var(--linie); background: var(--flaeche-2); position: sticky; top: 0; z-index: 3; }
.tkopf > div { border-left: 1px solid var(--linie-hell); padding: 0 8px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.tkopf > div:first-child { border-left: 0; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--grau); position: sticky; left: 0; z-index: 2; background: var(--flaeche-2); }
.tkopf b { font-size: 13px; }
.tkopf small { font-family: var(--mono); font-size: 10.5px; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkopf .konflikt { background: var(--rot-zart); }
.tkopf .konflikt small { color: var(--rot-text); }
.tkopf .feiertag { background: #F6E1DF; }
.tgrp { height: 30px; background: var(--flaeche-3); border-bottom: 1px solid var(--linie-hell); }
.tgrp > button { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; background: var(--flaeche-3); text-align: left; font-size: 12.5px; font-weight: 600; min-width: 0; position: sticky; left: 0; z-index: 2; }
.tgrp > button small { font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--grau); }
.tgrp > button svg { transition: transform .15s; }
.tgrp > button[aria-expanded="true"] svg { transform: rotate(90deg); }
.tgrp > div { border-left: 1px solid var(--linie-hell); display: flex; align-items: center; padding: 0 8px; font-family: var(--mono); font-size: 10.5px; color: var(--grau); }
.tgrp > div.voll { color: #2E7D4F; }
.trow { border-bottom: 1px solid var(--linie-zart); }
.name, .fzname { position: sticky; left: 0; z-index: 2; background: #fff; }
.name { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; min-width: 0; }
.ini { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--tinte); background: var(--tinte); color: #fff; font-size: 9px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ini.azubi { background: #fff; color: var(--tinte); }
.name .n { font-size: 12.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-family: var(--mono); font-size: 9.5px; font-weight: 600; padding: 1px 5px; border-radius: 3px; border: 1px solid var(--linie); white-space: nowrap; }
.tag.m { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.tag.g { background: #E9EBEE; }
.tag.a { background: var(--akzent); border-color: var(--akzent); }
.tag.u18 { color: var(--rot-text); border-color: var(--rot-text); }
.rm { width: 22px; height: 22px; border: 0; border-radius: 4px; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.rm:hover { background: var(--flaeche-3); }
.zelle { border: 0; border-left: 1px solid var(--linie-zart); background: transparent; padding: 4px 3px; display: flex; align-items: center; gap: 2px; min-width: 0; text-align: left; }
.zelle.ft { background: #FBF1EF; }
button.zelle:hover { background: #FFFBEB; }
.block { flex: 1 1 0; min-width: 0; border-radius: 4px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 5px; border: 1px solid transparent; }
.block .z1 { display: flex; align-items: center; gap: 4px; min-width: 0; }
.block .t { flex: 1; min-width: 0; font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block .t.mono { font-family: var(--mono); font-size: 10.5px; }
.block .z2 { font-family: var(--mono); font-size: 10px; color: #43474E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block.abw { background: var(--schraffur); border-color: var(--linie); color: #4A4E55; }
.block.beantragt { background: var(--gelb-hell); border: 1.5px dashed #B7790A; color: var(--gelb-text); }
.block.frei { background: #fff; border: 1px dashed #C9C6BD; color: var(--grau-hell); }
.block.fehler { background: var(--rot-hell) !important; border: 1.5px solid var(--rot); box-shadow: inset 0 2px 0 var(--rot) !important; color: #8E1F17; }
.block.fehler.hart { border-width: 2px; }
.block.fehler .z2 { color: var(--rot-text); }
.fz { font-family: var(--mono); font-weight: 600; font-size: 9.5px; line-height: 1; padding: 2px 4px; border-radius: 3px; border: 1px solid var(--tinte); flex-shrink: 0; }
.fz.fahrer { background: var(--tinte); color: #fff; }
.fz.mit { background: #fff; color: var(--tinte); }
.fzname { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-width: 0; font-size: 12.5px; }
.fzname b { font-family: var(--mono); font-size: 10.5px; padding: 3px 5px; border-radius: 4px; background: var(--akzent); }
.fzname small { font-family: var(--mono); font-size: 10.5px; color: var(--grau); }
.mehr { padding: 12px; display: flex; justify-content: center; position: sticky; left: 0; width: min(100%, 100vw - 60px); }
.mehr button { height: 36px; padding: 0 16px; border: 1.5px dashed #BDB9AF; border-radius: 8px; background: #FCFBF8; color: var(--tinte-2); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }

.picker { position: absolute; top: 42px; right: 0; width: 380px; max-height: 560px; background: #fff; border: 1px solid #CFCBC1; border-radius: 10px; box-shadow: 0 12px 32px rgba(23, 25, 28, .18); display: flex; flex-direction: column; overflow: hidden; }
.picker .pk { padding: 12px 14px; border-bottom: 1px solid var(--linie-hell); display: flex; align-items: center; gap: 8px; }
.picker .pk b { flex: 1; font-size: 14px; }
.picker .pl { overflow-y: auto; padding: 6px 0; }
.picker .pg { display: flex; align-items: center; padding: 8px 14px 4px; font-size: 11.5px; font-weight: 600; color: var(--grau); }
.picker .pg button { margin-left: auto; border: 0; background: transparent; text-decoration: underline; font-size: 11.5px; font-weight: 600; }
.picker .pp { width: 100%; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 0; background: #fff; text-align: left; }
.picker .pp:hover { background: var(--flaeche-3); }
.picker .pp span:not(.ini) { flex: 1; font-size: 13px; }
.picker .pp small { font-size: 11.5px; color: var(--grau); }
.picker .pf { padding: 10px 14px; border-top: 1px solid var(--linie-hell); display: flex; justify-content: flex-end; }

.huelle { position: fixed; inset: 0; background: rgba(23, 25, 28, .45); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 20px; }
.dialog { width: 480px; max-width: 100%; max-height: calc(100vh - 40px); background: #fff; border-radius: 12px; box-shadow: 0 20px 48px rgba(0, 0, 0, .25); display: flex; flex-direction: column; }
.dialog header { padding: 16px 18px; border-bottom: 1px solid var(--linie-hell); }
.dialog header small { font-size: 12px; color: var(--grau); }
.dialog h2 { margin: 2px 0 0; font-size: 18px; }
.abwhinweis { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--gelb-text); background: var(--gelb-hell); border-radius: 6px; padding: 4px 8px; display: inline-block; }
.dialog .df { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.dialog .titel { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); }
.dialog label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--tinte-2); }
.dialog select, .dialog input[type=text], .dialog input[type=date], .dialog input[type=time] { height: 38px; border: 1px solid #CFCBC1; border-radius: 7px; padding: 0 8px; font-size: 13px; font-weight: 400; background: #fff; }
.dialog .cb { flex-direction: row; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.dialog .cb input { width: 18px; height: 18px; }
.dialog .zweier { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog .hilfe { font-weight: 400; }
.vorhanden { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--linie-hell); }
.ve { display: flex; align-items: center; gap: 8px; border: 1px solid var(--linie); border-radius: 8px; padding: 8px 10px; }
.ve.an { border-color: var(--akzent); background: var(--akzent-hell); }
.ve > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ve b { font-size: 13px; }
.ve small { font-size: 11.5px; color: var(--grau); }
.ve small.warn { color: var(--rot-text); }
.konfliktbox { border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.konfliktbox.hart { background: var(--rot-hell); border: 1.5px solid var(--rot); color: #5A1712; }
.konfliktbox.warnung { background: var(--gelb-hell); border: 1.5px solid #B7790A; color: #4A3303; }
.dialog footer { padding: 14px 18px; border-top: 1px solid var(--linie-hell); display: flex; gap: 8px; }
.dialog footer .knopf:first-child { flex: 1; justify-content: center; }

@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leiste, .leiste2, .inhalt { padding-left: 12px; padding-right: 12px; }
  .navi, .rechtsbox { margin-left: 0; }
  .picker { right: auto; left: 0; width: min(380px, calc(100vw - 24px)); }
  .tafel { max-height: 75vh; }
}
@media (prefers-reduced-motion: reduce) { .tgrp > button svg { transition: none; } }
