:root{--accent:#005498;--red:#e3000f;--ink:#111;--muted:#667085;--line:#e4e8ee;--bg:#f3f5f8}
@font-face{font-family:Outfit;font-weight:300 700;font-display:swap;src:url(/fonts/outfit-latin.woff2) format('woff2')}
*{box-sizing:border-box}
body{margin:0;font:15px/1.45 "Neulis Sans",Outfit,Arial,sans-serif;color:var(--ink);background:#fff}
header{background:#fff;border-bottom:3px solid var(--ink);display:flex;align-items:center;gap:1.5rem;padding:.6rem 1.2rem;position:sticky;top:0;z-index:5;flex-wrap:wrap}
header strong{color:var(--ink);font-size:1.1rem}
nav{display:flex;gap:.3rem;flex:1;flex-wrap:wrap}
nav button{background:none;border:0;padding:.5rem .9rem;border-radius:.2rem;font:inherit;cursor:pointer;color:var(--muted);font-weight:600}
nav button.active{background:none;color:var(--ink);box-shadow:inset 0 -3px 0 var(--accent);border-radius:0}
main{max-width:64rem;margin:1.2rem auto;padding:0 1rem}
.panel{background:#fff;border-top:3px solid var(--ink);padding:1.2rem 0 1.4rem;margin-bottom:1.6rem}
.narrow{border:1px solid var(--line);border-top:3px solid var(--ink);padding:1.4rem}
.narrow{max-width:22rem;margin:15vh auto}
h1,h2,h3{margin:0 0 .8rem} h2{font-size:1.2rem} h3{font-size:1rem;color:var(--muted)}
label{display:block;font-weight:600;font-size:.85rem;margin-bottom:.8rem;color:#475467}
input,select,textarea{display:block;width:100%;margin-top:.25rem;padding:.5rem .65rem;border:1px solid #cfd5df;border-radius:.2rem;font:inherit;background:#fff;color:var(--ink)}
input[type=checkbox],input[type=radio]{display:inline-block;width:auto;margin:0 .4rem 0 0}
input[type=color]{padding:.15rem;height:2.4rem;width:5rem}
input:focus,select:focus,textarea:focus{outline:2px solid #9cc4e4;border-color:var(--accent)}
button{font:inherit;cursor:pointer}
button.primary{background:var(--accent);color:#fff;border:0;border-radius:.2rem;padding:.55rem 1.1rem;font-weight:700}
button.primary:hover{filter:brightness(1.1)}
button.ghost{background:#fff;border:1px solid #cfd5df;border-radius:.2rem;padding:.4rem .8rem;font-weight:600;color:var(--ink)}
button.danger{background:#fff;border:1px solid #f1b9bd;color:var(--red);border-radius:.2rem;padding:.4rem .8rem;font-weight:600}
.row{display:flex;gap:1rem;flex-wrap:wrap} .row>*{flex:1;min-width:11rem}
.actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.err{color:var(--red);min-height:1.2em;margin:.5rem 0 0}
table{width:100%;border-collapse:collapse} th,td{text-align:left;padding:.55rem .6rem;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.tag{display:inline-block;font-size:.75rem;font-weight:700;padding:.1rem .5rem;border-radius:.15rem;background:#e6f0f8;color:var(--accent);margin-right:.25rem}
.tag.main{background:#fdecee;color:var(--red)} .tag.brk{background:#eef0f3;color:var(--muted)}
.logo-prev{height:4.5rem;background:#fff;border:1px dashed #cfd5df;border-radius:.2rem;display:flex;align-items:center;justify-content:center;padding:.4rem;margin:.3rem 0}
.logo-prev img{max-height:100%;max-width:100%;object-fit:contain}
.thumb{height:2.4rem;width:6rem;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:.2rem}
dialog{border:0;border-top:4px solid var(--ink);border-radius:0;padding:1.5rem;width:min(40rem,94vw);box-shadow:0 10px 40px rgba(0,0,0,.25)}
dialog::backdrop{background:rgba(16,24,40,.5)}
#toast{position:fixed;bottom:1.2rem;left:50%;transform:translateX(-50%);background:#0f5132;color:#fff;padding:.6rem 1.2rem;border-radius:.2rem;z-index:20}
#toast.bad{background:#7a271a}
.hint{color:var(--muted);font-size:.85rem;margin:.2rem 0 .8rem}
.linkrow{display:flex;gap:.6rem;align-items:center;padding:.5rem 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.linkrow code{flex:1;min-width:14rem;background:#f3f5f8;padding:.35rem .6rem;border-radius:.2rem;word-break:break-all}
.dayhead td{background:#f7f9fb;font-weight:700;color:var(--muted)}
@media(max-width:640px){th:nth-child(3),td:nth-child(3){display:none}}

/* CI-Feinschliff nach Entwurf */
header strong::before, h2::before { content: "» "; color: var(--red); }
h2 { font-weight: 700; }
th { border-bottom: 2px solid var(--ink); }
td { border-bottom: 1px dotted #b8b8b8; }
.tag { background: #dbe7f1; color: var(--accent); }
.tag.main { background: #fde3e5; color: var(--red); }
.dayhead td { background: #f3f3f3; color: #555; }
.linkrow { border-bottom: 1px dotted #b8b8b8; }
td:first-child { white-space: nowrap; }
.tag { white-space: nowrap; }
