:root { --red:#c82832; --green:#22a054; --bg:#f7f2ee; --text:#32323c; --grey:#8c8c96; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; background:var(--bg); color:var(--text); }
.top { display:flex; align-items:center; justify-content:space-between; background:var(--red); color:#fff; padding:12px 20px; }
.brand { color:#fff; text-decoration:none; font-size:22px; font-weight:700; letter-spacing:.3px; }
.brand span { font-weight:400; opacity:.9; }
.top nav { display:flex; gap:18px; align-items:center; }
.top nav a { color:#fff; text-decoration:none; }
form.inline { display:inline; margin:0; }
button.link { background:none; border:0; color:#fff; cursor:pointer; font:inherit; padding:0; text-decoration:underline; }
main { max-width:960px; margin:24px auto; padding:0 16px; }
h1 { margin:0 0 16px; font-size:26px; }
.panel { background:#fff; border:1px solid #e2d6d2; border-radius:12px; padding:24px; }
.panel.narrow { max-width:420px; margin:40px auto; }
label { display:block; margin:0 0 14px; font-size:14px; color:var(--grey); }
input[type=text], input[type=email], input[type=password] { display:block; width:100%; margin-top:4px; padding:10px 12px; font:inherit; color:var(--text); border:1px solid #cfc3bf; border-radius:8px; background:#fff; }
input:focus { outline:2px solid #e9a5aa; border-color:var(--red); }
.btn { display:inline-block; background:var(--red); color:#fff; border:0; border-radius:8px; padding:10px 18px; font:inherit; font-weight:600; cursor:pointer; }
.btn:hover { background:#a91f28; }
.hint { color:var(--grey); font-size:14px; }
.flash { padding:10px 14px; border-radius:8px; margin:0 0 16px; }
.flash.ok  { background:#eaf7ee; border:1px solid #bfe3ca; color:#17673a; }
.flash.err { background:#fdeceb; border:1px solid #f1bdb9; color:#9d1f19; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; }
.card { background:#fff; border:1px solid #e2d6d2; border-radius:12px; padding:18px; }
.card h3 { margin:0 0 6px; }
.badge { display:inline-block; font-size:12px; background:#eee; color:var(--grey); border-radius:20px; padding:2px 10px; }
footer { text-align:center; color:var(--grey); font-size:12px; padding:24px 16px; }

h2 { font-size:18px; margin:28px 0 10px; }
.gap { margin-top:16px; }
.row { display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap; }
.row label { margin:0; }
.row .grow { flex:1 1 260px; }
select { display:block; margin-top:4px; padding:10px 12px; font:inherit; border:1px solid #cfc3bf; border-radius:8px; background:#fff; color:var(--text); }
.mono { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13px; margin-top:8px; }
.tablewrap { overflow-x:auto; background:#fff; border:1px solid #e2d6d2; border-radius:12px; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { text-align:left; padding:9px 12px; border-bottom:1px solid #eee; white-space:nowrap; }
th { background:#faf6f3; color:var(--grey); font-weight:600; }
tr:last-child td { border-bottom:0; }
.tag { display:inline-block; font-size:12px; padding:1px 10px; border-radius:20px; background:#eee; color:#555; }
.tag.offen { background:#eaf7ee; color:#17673a; }
.tag.verwendet { background:#e8eefa; color:#2a4f8f; }
.tag.widerrufen { background:#fdeceb; color:#9d1f19; }
.tag.abgelaufen { background:#fff3dc; color:#8a5a00; }
button.small { background:#fff; border:1px solid #cfc3bf; border-radius:6px; padding:3px 10px; font:inherit; font-size:13px; cursor:pointer; }
button.small:hover { border-color:var(--red); color:var(--red); }
a.btn { text-decoration:none; margin-right:6px; }
code { background:#f3ece8; padding:1px 5px; border-radius:4px; }

/* ---- Schein-Eingabe ---- */
.row.between { justify-content:space-between; align-items:center; }
h2.first { margin-top:0; }
.errlist { margin:6px 0 0 18px; padding:0; }
label.check { display:flex; align-items:center; gap:8px; color:var(--text); font-size:15px; margin:0 0 8px; cursor:pointer; }
label.check input { width:auto; margin:0; }
.radios { display:flex; flex-wrap:wrap; gap:6px 22px; margin-bottom:14px; }
input[type=date] { display:block; margin-top:4px; padding:9px 12px; font:inherit; border:1px solid #cfc3bf; border-radius:8px; background:#fff; color:var(--text); }
input:disabled, select:disabled { background:#f2eeeb; color:#888; }
.cancel { margin-left:14px; color:var(--grey); }
.linkbtn { display:inline-block; text-decoration:none; background:#fff; border:1px solid #cfc3bf; border-radius:6px; padding:3px 10px; color:var(--text); }
.linkbtn:hover { border-color:var(--red); color:var(--red); }
button.small.danger:hover { background:var(--red); color:#fff; }
.mailrow { align-items:center; margin-bottom:6px; }

.los { display:flex; align-items:center; gap:3px; margin:6px 0 4px; }
.los span { display:inline-block; width:30px; height:36px; line-height:36px; text-align:center; font:600 18px ui-monospace,Menlo,Consolas,monospace; border:1px solid #cfc3bf; border-radius:4px; background:#fff; color:#aaa; }
.los span.s6 { background:#eee; color:var(--text); }
.los span.sz { background:#222; color:#fff; border-color:#222; }
.los em { margin-left:10px; color:var(--grey); font-size:13px; font-style:normal; }

#tipps { display:grid; grid-template-columns:repeat(auto-fill,minmax(236px,1fr)); gap:16px; }
.tipp { background:#fbf8f6; border:1px solid #e8dcd8; border-radius:10px; padding:10px; transition:border-color .15s; }
.tipp.full { border-color:var(--green); }
.tipp.partial { border-color:#e6b04a; }
.tipp.shake { animation:shake .3s; }
@keyframes shake { 25% { transform:translateX(-4px); } 75% { transform:translateX(4px); } }
.tipphead { display:flex; align-items:center; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
.tipphead .cnt { font-size:12px; color:var(--grey); }
.tipphead .tools { margin-left:auto; display:flex; gap:4px; }
.tipp .grid { display:grid; grid-template-columns:repeat(7,1fr); gap:3px; }
button.num { padding:0; height:29px; font:13px/1 inherit; color:#777; background:#fff; border:1px solid #ddd0cc; border-radius:5px; cursor:pointer; }
button.num:hover:not(:disabled) { border-color:var(--red); color:var(--red); }
button.num.on { background:var(--blue,#3e68a8); border-color:var(--blue,#3e68a8); color:#fff; font-weight:700; }
.tipp.full button.num.on { background:var(--green); border-color:var(--green); }
button.num:disabled { cursor:default; }
