/* regio Abrechnung – Styles. regio-CI: Grün #89B71A, Dunkelgrau #39393A, Weiß/Hellgrau, Calibri (Fallback Carlito). Keine weiteren Farben:
   „blockiert“ ist ein dunkelgraues Ausrufezeichen, „offen“ ein grauer Ring, „erledigt“ ein grüner Haken. */
:root { --green: #89B71A; --dark: #39393A; --mid: #666668; --line: #E1E1E2; --bg: #F3F3F3; --ring: #B0B0B1; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--dark); font: 16px/1.45 Calibri, Carlito, "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; border-radius: 6px; }
h1 { margin: 2px 0 6px; font-size: 40px; line-height: 1.1; }
h1::after { content: ""; display: block; width: 64px; height: 6px; background: var(--green); border-radius: 3px; margin-top: 10px; }
h2, h3, h4 { margin: 0; }
p { margin: 0 0 8px; }
.muted { color: var(--mid); }
.eyebrow { font-weight: 700; color: var(--mid); font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: ui-monospace, Consolas, Menlo, monospace; }

/* Kopfleiste */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .in { max-width: 1360px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 28px; }
.top .logo { height: 42px; width: auto; display: block; }
.top nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.top nav a { padding: 9px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; color: var(--mid); white-space: nowrap; }
.top nav a.on { background: var(--bg); color: var(--dark); box-shadow: inset 0 -3px 0 var(--green); }
.top nav a:hover { color: var(--dark); }
.top .who { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--mid); white-space: nowrap; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 28px 24px 80px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.head .right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Bausteine */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--bg); color: var(--mid); white-space: nowrap; }
.pill.dark { background: var(--dark); color: #fff; } .pill.green { background: var(--green); color: var(--dark); }
.chip { font-size: 13px; font-weight: 700; padding: 1px 9px; border-radius: 6px; background: var(--bg); color: var(--dark); border: 1px solid var(--line); white-space: nowrap; display: inline-block; }
.chip.neu { background: var(--dark); border-color: var(--dark); color: #fff; } .chip.g { background: #fff; border: 1.5px solid var(--green); }
.btn { border: 0; border-radius: 8px; padding: 9px 16px; background: var(--green); color: var(--dark); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(.95); } .btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: #fff; border: 1.5px solid var(--ring); } .btn.sm { padding: 5px 11px; font-size: 14px; }
.btn.text { background: none; padding: 4px 6px; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.cardh { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cardh h2 { font-size: 20px; } .cardh .cnt { margin-left: auto; font-weight: 700; white-space: nowrap; } .cardh .hint { font-size: 14px; color: var(--mid); }
.bar { height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.st { width: 24px; height: 24px; flex: none; display: block; } .ic { width: 15px; height: 15px; flex: none; display: inline-block; vertical-align: -2px; }
.mode { font-size: 13px; color: var(--mid); display: inline-flex; gap: 5px; align-items: center; font-weight: 600; white-space: nowrap; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--mid); align-items: center; } .legend span { display: inline-flex; gap: 6px; align-items: center; } .legend .st { width: 18px; height: 18px; }
.note { font-size: 14px; color: var(--mid); }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 14px; border: 1.5px solid var(--green); border-radius: 12px; background: #fff; }
.banner.dark { border-color: var(--dark); } .banner .st { width: 22px; height: 22px; margin-top: 1px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 50; max-width: 90vw; font-weight: 600; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.leer { padding: 28px 18px; text-align: center; color: var(--mid); }

/* Formulare und Dialoge */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-width: 0; }
.field > span, .field > label { font-size: 13px; color: var(--mid); font-weight: 700; }
.field input:not([type=checkbox]), .field select, .field textarea, .inp { width: 100%; padding: 8px 10px; border: 1.5px solid var(--ring); border-radius: 8px; background: #fff; min-height: 38px; }
.field textarea { resize: vertical; min-height: 70px; line-height: 1.4; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(137,183,26,.28); }
.check { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; font-weight: 600; } .check input { width: 18px; height: 18px; accent-color: var(--dark); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(720px, 94vw); max-height: 92vh; box-shadow: 0 10px 40px rgba(0,0,0,.3); color: var(--dark); }
dialog::backdrop { background: rgba(57,57,58,.55); }
dialog form { display: flex; flex-direction: column; max-height: 92vh; }
dialog .dh { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
dialog .dh h2 { font-size: 20px; } dialog .db { padding: 16px 20px; overflow-y: auto; } dialog .df { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: #FAFAFA; border-radius: 0 0 14px 14px; }
dialog .err { border: 1.5px solid var(--dark); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-weight: 600; }
.zeile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 2px; margin-bottom: 10px; background: #FAFAFA; }
.tage { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .tage label { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; border: 1.5px solid var(--ring); border-radius: 8px; padding: 3px 8px; background: #fff; }

/* Status-Symbole und Checklisten */
.item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: start; }
.item:first-child { border-top: 0; }
.item .ic-b { background: none; border: 0; padding: 2px 0 0; cursor: default; display: block; } .item .ic-b.tg { cursor: pointer; border-radius: 50%; } .item .ic-b.tg:hover .st circle:first-child { stroke: var(--dark); }
.item .t { font-weight: 700; line-height: 1.3; } .item .sub { color: var(--mid); font-size: 15px; margin-top: 1px; white-space: pre-line; }
.item.d .t, .item.w .t { color: var(--mid); font-weight: 600; }
.item.x { box-shadow: inset 5px 0 0 var(--dark); background: #FAFAFA; }
.item .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.item .box { grid-column: 2 / 4; margin-top: 8px; border: 1.5px solid var(--dark); border-radius: 10px; padding: 10px 14px; background: #fff; font-size: 15px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.item .box.ekz { border-color: var(--green); justify-content: flex-start; gap: 16px; }
.big-ekz { font-size: 28px; font-weight: 700; line-height: 1; }
.item .acts { grid-column: 2 / 4; display: flex; gap: 8px; margin-top: 4px; }

/* Übersicht */
.kpis { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; } .kpi .l { font-size: 13.5px; font-weight: 700; color: var(--mid); text-transform: uppercase; letter-spacing: .05em; }
.kpi .big { font-size: 34px; font-weight: 700; line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 15px; color: var(--mid); } .kpi .s b { color: var(--dark); } .kpi.alert { box-shadow: inset 5px 0 0 var(--dark); } .kpi .bar { margin: 10px 0 6px; }
.two { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); align-items: start; } .todo li:last-child { border-bottom: 0; } .todo li.x { box-shadow: inset 5px 0 0 var(--dark); }
.todo .st { width: 22px; height: 22px; margin-top: 1px; } .todo b { display: block; line-height: 1.25; } .todo .s { font-size: 14px; color: var(--mid); }
.todo a { font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 5px; align-items: center; border-bottom: 2px solid var(--green); white-space: nowrap; }
.cal { list-style: none; margin: 0; padding: 8px 18px 14px; }
.cal li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; padding: 8px 0; align-items: start; position: relative; }
.cal li::before { content: ""; position: absolute; left: 8px; top: 30px; bottom: -10px; width: 2px; background: var(--line); } .cal li:last-child::before { display: none; }
.cal .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ring); background: #fff; z-index: 1; margin-top: 3px; } .cal .dot.d { background: var(--green); border-color: var(--green); }
.cal .dot.now { border-color: var(--green); box-shadow: 0 0 0 4px rgba(137,183,26,.28); } .cal small { display: block; color: var(--mid); font-size: 13.5px; line-height: 1.3; }
.src { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 16px; }
.src .card { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; } .src h3 { font-size: 18px; } .src .s { font-size: 14.5px; color: var(--mid); line-height: 1.35; flex: 1; }
.src .row { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.3; } .src .row .st { width: 20px; height: 20px; margin-top: 1px; }

/* Lauf */
.kp { display: flex; align-items: center; gap: 24px; padding: 14px 22px; flex-wrap: wrap; }
.kp .k b { font-size: 25px; line-height: 1.1; display: block; white-space: nowrap; } .kp .k span { font-size: 14px; color: var(--mid); } .kp .sep { width: 1px; align-self: stretch; background: var(--line); } .ring { width: 60px; height: 60px; }
.cols { display: grid; grid-template-columns: 196px minmax(0, 1fr) 392px; gap: 22px; align-items: start; } .cols.ohne-detail { grid-template-columns: 196px minmax(0, 1fr); } .cols.dispo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.phases { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; }
.phases a { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 10px; text-decoration: none; font-weight: 700; line-height: 1.2; } .phases a:hover { background: #fff; }
.phases .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #fff; border: 2px solid var(--ring); flex: none; }
.phases a.part .n { border-color: var(--green); } .phases a.full .n { background: var(--green); border-color: var(--green); } .phases small { display: block; font-weight: 400; color: var(--mid); font-size: 13.5px; }
.phase { margin-bottom: 18px; overflow: hidden; scroll-margin-top: 80px; } .phase > .bar { height: 4px; border-radius: 0; }
.phase .intro { padding: 10px 18px; font-size: 14.5px; color: var(--mid); border-bottom: 1px solid var(--line); background: #FAFAFA; }
.mh, .mrow { display: grid; grid-template-columns: minmax(0, 1fr) 92px repeat(var(--n, 5), 52px); align-items: center; gap: 0 2px; padding: 0 12px 0 18px; }
.mh { font-size: 12px; font-weight: 700; color: var(--mid); padding-top: 9px; padding-bottom: 8px; border-bottom: 1px solid var(--line); background: #FAFAFA; text-align: center; } .mh .l { text-align: left; } .mh .r { text-align: right; padding-right: 6px; }
.mg { padding: 8px 18px; font-weight: 700; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; } .mg .gc { margin-left: auto; font-weight: 600; color: var(--mid); font-size: 14px; }
.mrow { padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line); cursor: pointer; } .mrow:hover { background: #FAFAFA; }
.mrow.sel { background: #fff; box-shadow: inset 5px 0 0 var(--green), inset 0 2px 0 var(--green), inset 0 -2px 0 var(--green); } .mrow.x { box-shadow: inset 5px 0 0 var(--dark); }
.mrow.sel.x { box-shadow: inset 5px 0 0 var(--dark), inset 0 2px 0 var(--green), inset 0 -2px 0 var(--green); } .mrow.ent { opacity: .55; }
.mn b { display: block; line-height: 1.2; } .mn .sub { font-size: 13.5px; color: var(--mid); line-height: 1.3; margin-top: 2px; } .mn .sub .chip { font-size: 11.5px; padding: 0 6px; margin-right: 4px; } .mn .wn { display: block; font-size: 13.5px; font-weight: 700; margin-top: 2px; }
.mb { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; padding-right: 6px; font-size: 15px; } .mb small { display: block; font-weight: 400; color: var(--mid); font-size: 12px; }
.ms { display: contents; } .mi { display: grid; place-items: center; } .mi .st { width: 22px; height: 22px; } .mi::after { content: none; }
.mfoot { display: flex; justify-content: space-between; padding: 10px 18px; font-size: 14px; color: var(--mid); }
.vrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); align-items: center; } .vrow:last-child { border-bottom: 0; }
.vrow b { line-height: 1.25; } .vrow .vw { font-size: 14px; color: var(--mid); line-height: 1.3; } .vrow.n b { color: var(--mid); font-weight: 600; }
.vst { font-size: 13px; font-weight: 700; border-radius: 99px; padding: 3px 12px 3px 6px; display: inline-flex; gap: 6px; align-items: center; border: 1.5px solid var(--ring); background: #fff; white-space: nowrap; }
.vst .st { width: 18px; height: 18px; } .vst.d { border-color: var(--green); } .vst.n { color: var(--mid); border-style: dashed; } button.vst:hover { border-color: var(--dark); }
.det { position: sticky; top: 80px; overflow: hidden; max-height: calc(100vh - 100px); overflow-y: auto; }
.det > header { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); } .det h2 { margin: 8px 0 2px; font-size: 22px; line-height: 1.2; }
.det .sec { padding: 12px 18px; border-bottom: 1px solid var(--line); } .det .sec:last-child { border-bottom: 0; }
.det h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--mid); display: flex; gap: 8px; align-items: center; }
.wbox { border: 1.5px solid var(--dark); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; } .wbox .st { width: 20px; height: 20px; margin-top: 1px; flex: none; } .wbox .btn { margin-top: 8px; }
.calc { width: 100%; border-collapse: collapse; font-size: 15px; } .calc td { padding: 5px 0; border-top: 1px solid var(--line); vertical-align: top; } .calc tr:first-child td { border-top: 0; }
.calc td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px; } .calc td small { display: block; color: var(--mid); font-size: 13px; }
.calc .sum td { font-weight: 700; border-top: 2px solid var(--dark); } .calc .sub2 td { color: var(--mid); font-size: 14px; }
.calc input { width: 84px; padding: 4px 8px; border: 1.5px solid var(--ring); border-radius: 6px; text-align: right; }
.kal { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; } .kal div { text-align: center; font-size: 10.5px; color: var(--mid); line-height: 1.2; width: 26px; }
.kal i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; margin: 2px auto 0; font-style: normal; font-weight: 700; font-size: 12px; background: var(--green); color: var(--dark); }
.txt { border: 1px solid var(--line); background: #FAFAFA; border-radius: 8px; padding: 8px 10px; font-size: 14.5px; line-height: 1.35; margin-bottom: 6px; display: flex; gap: 10px; align-items: flex-start; } .txt span { flex: 1; } .txt button { flex: none; }
.steps { list-style: none; margin: 0; padding: 0; } .steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 7px 0; } .steps .st { width: 24px; height: 24px; }
.steps button.tg { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; } .steps .t { font-weight: 700; line-height: 1.25; } .steps .s { font-size: 14px; color: var(--mid); line-height: 1.3; } .steps li.w .t, .steps li.n .t { color: var(--mid); font-weight: 600; }
.steps .x-btn { font-size: 12.5px; color: var(--mid); background: none; border: 0; padding: 0 0 0 8px; text-decoration: underline; }
.hintp { font-size: 14px; color: var(--mid); margin: 0; }
.det textarea { width: 100%; border: 1.5px solid var(--ring); border-radius: 8px; padding: 8px 10px; resize: vertical; min-height: 56px; }

.mrow.mit-l .mi { display: block; text-align: center; } .mrow.mit-l .mi .st { margin: 0 auto; }
.mrow.mit-l .mi::after { content: attr(data-l); display: block; font-size: 10px; color: var(--mid); line-height: 1.1; margin-top: 2px; }
.ein { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; margin-bottom: 4px; }

/* Abrechnungsarten: Editor, Formeln, Ausprobieren, Verlauf */
code { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: .9em; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.formelbox { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #FAFAFA; font-size: 14.5px; line-height: 1.55; margin-top: 6px; }
.liste { margin: 6px 0 4px; padding-left: 18px; font-size: 14.5px; }
h3.fh { font-size: 17px; margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.grid5 { display: grid; grid-template-columns: 1.4fr 1.15fr .7fr .8fr 1fr; gap: 0 12px; }
.gridp { display: grid; grid-template-columns: 1fr 1.9fr .9fr; gap: 0 12px; }
.srow { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
dialog .zeile .field { margin-bottom: 8px; }
.namen { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.namechip { cursor: pointer; font-family: ui-monospace, Consolas, Menlo, monospace; font-weight: 600; background: #fff; border: 1.5px solid var(--green); }
.namechip:hover { background: var(--bg); }
details.hilfe { margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fff; font-size: 14.5px; }
details.hilfe summary { cursor: pointer; font-weight: 700; } details.hilfe ul { margin: 8px 0 2px; padding-left: 18px; } details.hilfe li { margin-bottom: 4px; }
.probe { border: 1.5px solid var(--green); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
#aprobeerg .err { border: 1.5px solid var(--dark); border-radius: 8px; padding: 8px 12px; margin-top: 10px; font-weight: 600; }
.vl { padding: 10px 0; border-bottom: 1px solid var(--line); } .vl table { margin-top: 6px; } .vl table td { padding: 6px 8px; font-size: 14px; vertical-align: top; }

/* Tabellen (Kundenregeln, Nutzer, Zuschlag) */
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.fl { border: 1.5px solid var(--ring); background: #fff; border-radius: 99px; padding: 6px 14px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; } .fl.on { background: var(--dark); border-color: var(--dark); color: #fff; } .fl small { font-size: 13px; opacity: .8; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 20px; align-items: start; } .tb { overflow: hidden; }
table.k { width: 100%; border-collapse: collapse; } .k th { font-size: 12.5px; color: var(--mid); font-weight: 700; padding: 10px 8px; text-align: left; background: #FAFAFA; border-bottom: 1px solid var(--line); }
.k td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } .k th:first-child, .k td:first-child { padding-left: 18px; } .k th:last-child, .k td:last-child { padding-right: 14px; }
.k tr.r { cursor: pointer; } .k tr.r:hover td { background: #FAFAFA; } .k tr.r.sel td { background: #fff; box-shadow: inset 0 2px 0 var(--green), inset 0 -2px 0 var(--green); } .k tr.r.sel td:first-child { box-shadow: inset 5px 0 0 var(--green), inset 0 2px 0 var(--green), inset 0 -2px 0 var(--green); }
.k tr.off td { color: var(--mid); } .k b { display: block; line-height: 1.25; } .k .sub { font-size: 13.5px; color: var(--mid); line-height: 1.3; } .k .rg { font-size: 14px; line-height: 1.3; }
.gel { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1.5px solid var(--green); background: #fff; white-space: nowrap; display: inline-block; } .gel.aus { border-color: var(--ring); border-style: dashed; color: var(--mid); }
.qm { margin-left: 6px; display: inline-flex; vertical-align: -4px; } .qm .st { width: 18px; height: 18px; }
.quote { border-left: 4px solid var(--ring); background: #FAFAFA; padding: 8px 12px; font-size: 14.5px; line-height: 1.4; border-radius: 0 8px 8px 0; white-space: pre-line; }
.tpl { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14.5px; line-height: 1.4; margin-bottom: 6px; } .tpl mark { background: none; color: var(--dark); font-weight: 700; box-shadow: inset 0 -3px 0 var(--green); }
.vb { margin-bottom: 18px; overflow: hidden; } .vb .vi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 11px 18px; border-top: 1px solid var(--line); align-items: center; } .vb .vi.aus { color: var(--mid); }
.vb .vi small { display: block; color: var(--mid); } .vb .btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
table.t { width: 100%; border-collapse: collapse; } .t th { font-size: 12.5px; color: var(--mid); font-weight: 700; padding: 10px 14px; text-align: left; background: #FAFAFA; border-bottom: 1px solid var(--line); } .t td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; } .t td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Anmeldung */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.authbox { width: min(400px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; box-shadow: 0 6px 30px rgba(0,0,0,.08); }
.authbox img { height: 56px; width: auto; display: block; margin-bottom: 18px; } .authbox h1 { font-size: 28px; } .authbox h1::after { width: 44px; height: 5px; margin-top: 8px; }
.authbox .sub { margin: 8px 0 16px; } .authbox .err { border: 1.5px solid var(--dark); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-weight: 600; }
.authbox .big { width: 100%; justify-content: center; padding: 12px 18px; font-size: 16px; } .authbox .hint { font-size: 13px; color: var(--mid); margin-top: 12px; }
.infobox { border: 1.5px solid var(--green); border-radius: 8px; padding: 8px 12px; font-size: 14px; margin-bottom: 12px; }
.lnk { border: 0; background: none; padding: 0; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; font: inherit; }
.regeln { list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--mid); } .regeln li::before { content: "○ "; } .regeln li.ok { color: var(--dark); font-weight: 600; } .regeln li.ok::before { content: "✓ "; color: var(--green); }
.konto { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin-bottom: 14px; font-size: 15px; } .konto .muted { font-size: 13px; }
.check.zeigen { font-weight: 400; font-size: 14px; }

@media (max-width: 1240px) { .cols { grid-template-columns: 1fr 380px; } .cols.ohne-detail { grid-template-columns: 1fr; } .phases { display: none; } }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } .two { grid-template-columns: 1fr; } .layout { grid-template-columns: 1fr; } .det { position: static; max-height: none; } .tb { overflow-x: auto; } table.k { min-width: 760px; } }
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; } .mh { display: none; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; gap: 6px 8px; }
  .mrow .ms { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); }
  .mi::after { content: attr(data-l); font-size: 10.5px; color: var(--mid); margin-top: 1px; display: block; text-align: center; } .mi { display: block; text-align: center; } .mi .st { margin: 0 auto; }
}
@media (max-width: 800px) {
  .top .in { gap: 4px 12px; padding: 8px 14px; flex-wrap: wrap; } .top nav { order: 3; flex: 1 1 100%; } .top .who { margin-left: auto; } .top .who .nm { display: none; } .wrap { padding: 18px 14px 60px; } h1 { font-size: 32px; }
  .kp { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; width: 100%; padding: 12px 14px; } .kp .sep, .kp .ring { display: none; } .kp .k b { font-size: 20px; } .kp .k span { font-size: 12.5px; }
  .item { grid-template-columns: 28px minmax(0, 1fr); padding: 14px; } .item .meta { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; } .item .box, .item .acts { grid-column: 1 / 3; }
  .kpis, .grid2, .grid3, .grid5, .gridp, .srow, .ein { grid-template-columns: 1fr; } .todo li { grid-template-columns: 24px 1fr; } .todo li a { grid-column: 2; }
}
