*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px;background:#f5f5f3;color:#1a1a1a;min-height:100vh;line-height:1.45}
a{color:#17603a;text-decoration:none}a:hover{text-decoration:underline}
nav{background:#123524;color:#fff;padding:0 1rem;display:flex;align-items:center;flex-wrap:wrap;min-height:52px;position:sticky;top:0;z-index:50;box-shadow:0 1px 3px rgba(0,0,0,.15)}
nav .brand{font-weight:600;color:#fff;padding:14px 1rem 14px 0;margin-right:.5rem;border-right:1px solid #2c5a43;white-space:nowrap}
nav a{color:#cfe3d7;padding:14px .5rem;font-size:14px;white-space:nowrap}
nav a:hover,nav a.aktiv{color:#fff;background:rgba(255,255,255,.1);text-decoration:none}
nav .spacer{flex:1}
nav form{display:inline}
nav button{background:none;border:none;color:#cfe3d7;font:inherit;font-size:14px;padding:14px .5rem;cursor:pointer}
nav button:hover{color:#fff}
.intern{background:#fef3e2;color:#7d4e00;font-size:13px;padding:.35rem 1rem;border-bottom:1px solid #f0d9a8}
.container{max-width:1040px;margin:0 auto;padding:1.25rem 1rem 3rem}
h1{font-size:21px;font-weight:600;margin-bottom:.35rem}
h2{font-size:17px;font-weight:600;margin-bottom:.6rem}
h3{font-size:14px;font-weight:600;margin:.9rem 0 .4rem;color:#444}
p{margin-bottom:.6rem}
.sub{color:#666;font-size:14px;margin-bottom:1rem}
.klein{font-size:13px;color:#666}
.meldungen{position:fixed;top:60px;right:1rem;z-index:60;display:flex;flex-direction:column;gap:.5rem;max-width:min(420px,calc(100vw - 2rem))}
.meldungen:empty{display:none}
.flash{padding:.6rem 2.2rem .6rem 1rem;border-radius:6px;font-size:14px;box-shadow:0 3px 10px rgba(0,0,0,.12);position:relative;transition:opacity .4s}
.flash.weg{opacity:0}
.flash .zu{position:absolute;top:.25rem;right:.4rem;background:none;border:none;font-size:18px;line-height:1;cursor:pointer;color:inherit;padding:.2rem .35rem}
.flash.success{background:#e6f4ea;color:#1e6b3a;border:1px solid #b6dfc4}
.flash.error{background:#fce8e8;color:#8b1a1a;border:1px solid #f5c0c0}
.card{background:#fff;border:1px solid #e4e4e0;border-radius:10px;padding:1.1rem 1.25rem;margin-bottom:1rem}
.warn{border-color:#f0d9a8;background:#fffaf0}
.stopp{border-color:#f5c0c0;background:#fff6f6}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.75rem;margin-bottom:1rem}
.metric{background:#fff;border:1px solid #e4e4e0;border-radius:8px;padding:.8rem .9rem}
.metric .val{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.metric .lab{font-size:13px;color:#666;margin-top:2px}
.metric.haupt{border-color:#17603a;background:#f1f8f4}
.rot{color:#b3261e}.gruen{color:#1e6b3a}
.tabelle{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;padding:6px 8px;border-bottom:2px solid #e4e4e0;font-size:13px;color:#666;font-weight:600;white-space:nowrap}
td{padding:6px 8px;border-bottom:1px solid #f0f0ee;vertical-align:middle}
tr:last-child td{border-bottom:none}
td.z,th.z{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
tr.summe td{font-weight:600;border-top:2px solid #e4e4e0}
tr.durch td{color:#999;text-decoration:line-through}
tr.kopf td{background:#fafaf8;font-weight:600}
.btn{display:inline-block;padding:6px 13px;border-radius:6px;font:inherit;font-size:14px;cursor:pointer;border:1px solid #ccc;background:#fff;color:#222}
.btn:hover{background:#f3f3f0;text-decoration:none}
.btn.haupt{background:#17603a;color:#fff;border-color:#17603a}
.btn.haupt:hover{background:#114a2c}
.btn.gefahr{color:#b3261e;border-color:#f0b8b4}
.btn.sm{padding:3px 9px;font-size:13px}
form.zeile{display:inline-flex;gap:.35rem;align-items:center;flex-wrap:wrap}
input[type=text],input[type=password],input[type=date],select{padding:6px 9px;border:1px solid #ccc;border-radius:6px;font:inherit;font-size:14px;background:#fff;color:#1a1a1a;max-width:100%}
input.kurz{width:6.2rem}
input:focus,select:focus{outline:2px solid #17603a;outline-offset:0;border-color:#17603a}
.felder{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem;margin-bottom:.8rem}
.feld{display:flex;flex-direction:column;gap:3px}
.feld label{font-size:13px;color:#555;font-weight:500}
.tag{display:inline-block;padding:1px 8px;border-radius:20px;font-size:12px;font-weight:500;white-space:nowrap}
.tag.g{background:#e6f4ea;color:#1e6b3a}.tag.r{background:#fce8e8;color:#8b1a1a}.tag.a{background:#fef3e2;color:#7d4e00}.tag.n{background:#f0f0ee;color:#555}
ul.liste{margin:.2rem 0 .7rem 1.2rem}ul.liste li{margin-bottom:.2rem}
ol.schritte{margin:.2rem 0 .2rem 1.3rem}ol.schritte li{margin-bottom:.45rem}
.ok::before{content:"✓ ";color:#1e6b3a;font-weight:700}.nok::before{content:"✗ ";color:#b3261e;font-weight:700}
code{background:#f0f0ee;padding:1px 5px;border-radius:4px;font-size:13px}
details{margin:.3rem 0}summary{cursor:pointer;font-weight:500}
.login{max-width:360px;margin:4rem auto;padding:0 1rem}
@media (max-width:600px){nav a,nav button{padding:10px .55rem}nav .brand{border:none;width:100%;padding:10px 0 0}.container{padding:1rem .7rem 3rem}}
.abst{margin:.7rem 0 1rem}.schmal{max-width:420px}.mt{margin-top:.6rem}.mt2{margin-top:.35rem}.mt3{margin-top:1rem}
ul.ohne{list-style:none;margin-left:0}
input[type=file]{font:inherit;font-size:14px;max-width:100%}
.btn[disabled]{opacity:.5;cursor:not-allowed}
code{overflow-wrap:anywhere;word-break:break-all}
p,li,summary{overflow-wrap:anywhere}
td p,td li,td summary,td code{overflow-wrap:normal;word-break:normal}
.btn{white-space:nowrap}
.card>.btn.haupt,.card form.zeile .btn.haupt{white-space:normal}
nav .wer{color:#9fc3ae;font-size:13px;padding:0 .4rem}
.datum-zeile{display:inline-flex;gap:.3rem;align-items:center;max-width:100%}
.datum-zeile input{flex:1;min-width:0}
.heute{flex:none}
.ablage{border:2px dashed #c9d7cf;border-radius:8px;padding:.7rem;display:flex;flex-direction:column;gap:.35rem;background:#fafcfb}
.ablage.drueber{border-color:#17603a;background:#eef7f1}
.ablage.gewaehlt{border-style:solid;border-color:#b6dfc4}
.ablage-text{font-size:13px;color:#555}
dialog.frage{border:1px solid #e4e4e0;border-radius:10px;padding:1.2rem 1.3rem;max-width:440px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
dialog.frage::backdrop{background:rgba(0,0,0,.35)}
.frage-text{font-weight:600;margin-bottom:.4rem}
.frage-knoepfe{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1rem}
textarea{padding:6px 9px;border:1px solid #ccc;border-radius:6px;font:inherit;font-size:14px;width:100%;min-height:4.5rem;resize:vertical}
textarea:focus{outline:2px solid #17603a;border-color:#17603a}
input[type=number],input[type=email],input[type=tel],input[type=month]{padding:6px 9px;border:1px solid #ccc;border-radius:6px;font:inherit;font-size:14px;background:#fff;max-width:100%}
@media (max-width:600px){nav{position:static}.meldungen{top:.5rem}}
.ohne-rahmen{border:none;padding:0;margin:0;min-width:0}
.qr{margin:.6rem 0}.qr svg{max-width:100%;height:auto;border:1px solid #e4e4e0;border-radius:6px}
ul.codes{list-style:none;margin:.6rem 0;columns:2;max-width:26rem}ul.codes li{margin-bottom:.35rem}
ul.codes code,code.schluessel{font-size:15px;letter-spacing:.04em;word-break:normal;white-space:nowrap}
.schmal-breit{max-width:640px}
/* Rechnungen einlesen (0.4.2): gelesener Text einer Rechnung */
pre.rohtext{font-size:.72rem;line-height:1.25;overflow-x:auto;background:#f7f7f5;border:1px solid #e3e3df;border-radius:6px;padding:.6rem;white-space:pre}

/* 0.4.3 Tabellen einlesen */
textarea.geruest{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.75rem;line-height:1.3;min-height:30rem;white-space:pre;overflow:auto}
td.roh{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.7rem;white-space:pre;color:#666;background:#fafaf8}
tr.aus td{color:#999;text-decoration:line-through}tr.aus td.grund{text-decoration:none}
table.vorschau th{white-space:nowrap}table.vorschau td{max-width:22rem;overflow:hidden;text-overflow:ellipsis}
.felder.zuordnung .feld{min-width:15rem}
table.jahr td.z,table.jahr th.z{white-space:nowrap}table.jahr tr.zukunft td{color:#aaa}
