/* zentrale/static/zentrale.css */
:root { --dunkel:#2B2A28; --akzent:#35557A; --papier:#F4F2EF; --rot:#B3261E; --gruen:#2E7D32; }
body { margin:0; background:var(--papier); color:var(--dunkel); font-family:-apple-system, "Segoe UI", Arial, sans-serif; }
main { max-width:980px; margin:0 auto; padding:24px 16px 64px; }
h1 { font-size:1.6rem; } h2 { font-size:1.2rem; margin-top:2rem; }
label { display:block; margin:.8rem 0 .2rem; font-weight:600; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width:100%; box-sizing:border-box; padding:.55rem; border:1px solid #bbb; border-radius:6px; font:inherit; }
button, .knopf { background:var(--akzent); color:#fff; border:0; border-radius:6px; padding:.6rem 1.1rem; font:inherit; cursor:pointer; text-decoration:none; display:inline-block; }
.knopf-rot { background:var(--rot); } .knopf-leise { background:#777; }
.meldung { background:#FFF4CE; border:1px solid #E8D48A; padding:.6rem .8rem; border-radius:6px; }
.fehler { color:var(--rot); } .ok { color:var(--gruen); }
table { border-collapse:collapse; width:100%; background:#fff; }
th { background:#DDD8D0; text-align:left; } th, td { padding:.4rem .5rem; border-bottom:1px solid #e3e0da; }
tr:nth-child(even) td { background:#F3E3C8; }
td.zahl { text-align:right; } td.mitte { text-align:center; }
.markiert td { background:#FFD6A5 !important; } .rot td { background:#F8B4B4 !important; }
.schritt-fertig { color:var(--gruen); } .schritt-fehler { color:var(--rot); } .schritt-laeuft { color:var(--akzent); }
@media (max-width:640px) { table { font-size:.85rem; } }

/* --- Anmeldung fuer Neukunden (Markus 17.11.2026): Farben wie die
   HANDGEMACHT-Homepage und -Mails, Schritt fuer Schritt. --- */
body.kunde { --akzent:#2c5f80; background:#f4f5f7; color:#3a3c42; }
body.kunde main { max-width:720px; }
.k-kopf { text-align:center; padding:8px 0 18px; }
.k-logo { width:260px; max-width:70%; height:auto; }
.k-karte { background:#fff; border:1px solid #e0e3e9; border-top:4px solid var(--akzent);
  border-radius:8px; padding:22px 28px 26px; }
.k-karte h1 { margin-top:0; color:#24485f; }
.k-hinweis { color:#5a5c64; margin:.3rem 0 .6rem; }
.k-zwischen { margin-bottom:.2rem; font-weight:600; }
.k-liste li { margin:.25rem 0; }
.k-gruss { margin-top:1.4rem; font-weight:600; }
.k-knoepfe { display:flex; justify-content:space-between; gap:12px; margin-top:1.8rem; }
.k-knoepfe button[value=weiter], .k-knoepfe button[value=absenden] { margin-left:auto; padding:.7rem 1.6rem; }
.k-hilfe { margin:.5rem 0 .9rem; background:#eef3f7; border-radius:6px; padding:.45rem .8rem; }
.k-hilfe summary { cursor:pointer; color:var(--akzent); font-weight:600; }
.k-hilfe p { margin:.5rem 0; }
.k-anbieter-tipp { background:#FFF4CE; border:1px solid #E8D48A; border-radius:6px; padding:.1rem .8rem; margin:.4rem 0; }
.k-adresse { background:#eef3f7; border-radius:6px; padding:.5rem .8rem; word-break:break-all; }
.k-haken { font-weight:normal; }
.k-haken input { margin-right:.4rem; }
.k-leiste { margin-bottom:14px; }
.k-leiste-text { margin:0 0 8px; text-align:center; color:#5a5c64; }
.k-leiste ol { list-style:none; display:flex; gap:4px; padding:0; margin:0; }
.k-leiste li { flex:1; }
.k-leiste a { display:flex; flex-direction:column; align-items:center; gap:4px; text-decoration:none; color:#90939b; font-size:.75rem; text-align:center; }
.k-leiste .punkt { width:28px; height:28px; border-radius:50%; background:#dfe3e8; color:#5a5c64;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem; }
.k-leiste li.fertig .punkt { background:#cfe3d1; color:var(--gruen); }
.k-leiste li.jetzt .punkt { background:var(--akzent); color:#fff; }
.k-leiste li.jetzt a { color:#24485f; font-weight:600; }
.k-pruefliste { list-style:none; padding:0; }
.k-pruefliste li { display:flex; justify-content:space-between; gap:12px; padding:.55rem .2rem; border-bottom:1px solid #e3e6ea; }
.k-pruefliste a { color:#24485f; font-weight:600; }
@media (max-width:640px) {
  .k-leiste .name { display:none; }
  .k-karte { padding:18px 16px 20px; }
  .k-pruefliste li { flex-direction:column; gap:2px; }
}
.k-schild { display:inline-block; font-size:.7rem; font-weight:600; padding:.05rem .45rem; border-radius:9px; margin-left:.3rem; vertical-align:middle; }
.k-schild.pflicht { background:#fde2c8; color:#8a4b12; }
.k-schild.frei { background:#e3e6ea; color:#5a5c64; }
.k-adresse-zeile { display:flex; align-items:center; gap:4px; background:#eef3f7; border-radius:6px; padding:.45rem .6rem; flex-wrap:wrap; }
.k-adresse-zeile .k-adresse-teil { color:#3a3c42; white-space:nowrap; }
.k-adresse-zeile input.k-kurzname { flex:1 1 140px; width:auto; min-width:120px; font-weight:600; }
.k-vertrauen { background:#e8f3ea; border:1px solid #b9dbbf; border-left:4px solid var(--gruen); border-radius:6px; padding:.2rem .9rem; margin:.4rem 0 1rem; }
.k-vertrauen p { margin:.5rem 0; }
.k-zahlart { border:1px solid #e0e3e9; border-radius:6px; padding:.4rem .9rem .8rem; margin-top:1.2rem; }
.k-zahlart legend { font-weight:600; padding:0 .3rem; }
.k-mandat { background:#f7f8fa; border-radius:6px; padding:.2rem .9rem .6rem; margin-top:.5rem; }
.hinweis-gelb { background:#fff4c2; border:1px solid #e0c040; border-radius:6px; padding:.6rem 1rem; margin:1rem 0; }

/* --- Verwaltung (Markus, 18.11.2026): Kopfleiste, Kacheln, Kaesten --- */
.kopfleiste { background:#1f4e79; color:#fff; }
.kopfleiste nav { max-width:980px; margin:0 auto; padding:0 16px; display:flex; flex-wrap:wrap; align-items:center; gap:4px 18px; }
.kopfleiste a { color:#fff; text-decoration:none; padding:.8rem 0; }
.kopfleiste a:hover { text-decoration:underline; }
.kopfleiste .marke { font-weight:700; margin-right:auto; }
.plakette { display:inline-block; background:#e8830c; color:#fff; font-size:.75rem; font-weight:700; border-radius:10px; padding:.05rem .5rem; min-width:1rem; text-align:center; }
.kacheln { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; margin:1rem 0 1.5rem; }
.kachel { background:#fff; border:1px solid #d3dfe9; border-top:4px solid #1f4e79; border-radius:8px; padding:14px 16px; text-decoration:none; color:var(--dunkel); display:flex; flex-direction:column; gap:4px; }
.kachel-zahl { font-size:1.7rem; font-weight:700; color:#1f4e79; }
.kachel-offen { border-top-color:#e8830c; } .kachel-offen .kachel-zahl { color:#e8830c; }
.kaesten { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.kasten { background:#fff; border:1px solid #d3dfe9; border-radius:8px; padding:4px 18px 16px; margin:16px 0; }
.kaesten .kasten { margin:0 0 16px; }
.kasten h2 { margin-top:.9rem; color:#1f4e79; }
.kasten table { margin-top:.4rem; }
.daten { display:grid; grid-template-columns:7rem 1fr; gap:.3rem .8rem; margin:0; }
.daten dt { font-weight:600; color:#5a6b7a; } .daten dd { margin:0; }
.suche { display:flex; gap:8px; margin:1rem 0; } .suche input { max-width:360px; }
.tabelle-rahmen { overflow-x:auto; }
table th { background:#eaf2f8; color:#1f4e79; }
table tr:nth-child(even) td { background:#f4f8fb; }
th.zahl { text-align:right; }
td.nowrap { white-space:nowrap; }
form.inline { display:inline; margin:0; }
.knopfreihe { display:flex; flex-wrap:wrap; gap:10px; }
code.schluessel { display:inline-block; background:#eaf2f8; padding:.3rem .6rem; border-radius:6px; word-break:break-all; }
@media (max-width:760px) {
  .kacheln { grid-template-columns:1fr 1fr; }
  .kaesten { grid-template-columns:1fr; }
  table.kundenliste, table.kundenliste tbody, table.kundenliste tr, table.kundenliste td { display:block; }
  table.kundenliste tr:first-child { display:none; }
  table.kundenliste tr { border-bottom:2px solid #d3dfe9; padding:.4rem 0; }
  table.kundenliste td { border:0; padding:.15rem .6rem; text-align:left; }
  table.kundenliste td.zahl { text-align:left; }
  table.kundenliste td::before { content:attr(data-label) ": "; color:#5a6b7a; font-size:.8rem; }
}
.kachel .klein { font-size:.8rem; color:#5a6b7a; }

/* Kosten pro Kunde: graue fette Kopfzeile, deutliche Zebra-Streifen, Zahlen rechts */
table.kostentabelle th { background:#d9dde1; color:#222; font-weight:700; white-space:nowrap; }
table.kostentabelle td { white-space:nowrap; }
table.kostentabelle tr:nth-child(even) td { background:#dcebf7; }
table.kostentabelle tr.summe th { background:#c4c9ce; }
table.kostentabelle .minus { color:#b00020; font-weight:700; }
table.kostentabelle small { color:#5a6b7a; font-weight:400; }

.abo-kasten { border-radius:8px; padding:.6rem 1rem; margin:1rem 0; border:1px solid; }
.abo-kasten p { margin:.2rem 0 .5rem; }
.abo-offen { background:#fff4c2; border-color:#e0c040; }
.abo-gebucht { background:#d8f0d8; border-color:#6fb56f; }
.abo-nicht { background:#e4e6e8; border-color:#b0b4b8; }
table.kostentabelle tr.stoerung td { background:#f8c9c9; }
.stoerung-schild { background:#b00020; color:#fff; font-weight:700; border-radius:4px; padding:.15rem .5rem; white-space:nowrap; }

/* Monatsabrechnung: ganze Bildschirmbreite (Markus 19.11.2026, nur am Rechner) */
body.breit main { max-width:none; padding:24px 40px 64px; }
table.lauftabelle th { background:#d9dde1; white-space:nowrap; padding:.6rem .8rem; }
table.lauftabelle td { padding:.7rem .8rem; vertical-align:top; }
table.lauftabelle tr:nth-child(even) td { background:#dcebf7; }
table.lauftabelle td.zahl, table.lauftabelle td.mitte { white-space:nowrap; }
table.lauftabelle td.firma { min-width:200px; }
table.lauftabelle td.positionen { min-width:420px; }
table.lauftabelle .pos { display:flex; justify-content:space-between; gap:24px; padding:1px 0; }
table.lauftabelle .pos-betrag { white-space:nowrap; text-align:right; }
table.lauftabelle td.stand { min-width:240px; }
table.lauftabelle tr.summe th { background:#c4c9ce; }
.schild { display:inline-block; padding:2px 10px; border-radius:12px; font-size:.85rem; font-weight:700; white-space:nowrap; }
.schild-gruen { background:#d7eed8; color:#1f5e23; } .schild-rot { background:#f8c9c9; color:#8a1c16; }
.schild-grau { background:#e3e0da; color:#444; }
.schild-gelb { background:#fff1a8; color:#6b5200; text-decoration:none; border:1px solid #e0c040; margin-top:6px; }
table.lauftabelle .notiz { font-size:.82rem; margin-top:4px; color:#444; }
table.lauftabelle .notiz.rot { color:var(--rot); }
body.breit .kopfleiste nav { max-width:none; padding:0 40px; }
