/* Gestaltung: aufgeräumt, große Tippflächen fürs Tablet, volle Breite auf dem Desktop (A9). Keine fremden Schriften. */
:root {
  --grund: #f4f1ea; --karte: #ffffff; --text: #1d2a2a; --leise: #5b6b6a; --rand: #d9d3c6;
  --akzent: #1f5f5b; --akzent-hell: #e3efed; --warn: #a3401f; --tinte: #0d1a73; --gut: #2e6b3d;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.45; min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: var(--akzent); }
h1 { font-size: 1.5rem; margin: 0 0 .3rem; }
h2 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }

.testband { background: #c0392b; color: #fff; text-align: center; font-weight: 700; padding: .3rem; letter-spacing: .04em; }

.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1rem; padding: .5rem 20px; background: var(--akzent); color: #fff; }
.marke { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.kopf-titel { opacity: .85; }
.kopf-rechts { margin-left: auto; display: flex; gap: .4rem; flex-wrap: nowrap; }
.reiter { display: flex; gap: .25rem; overflow-x: auto; flex: 1; scrollbar-width: none; }
.reiter::-webkit-scrollbar { display: none; }
.reiter a { color: #fff; text-decoration: none; padding: .55rem .9rem; border-radius: 999px; white-space: nowrap; opacity: .82; }
.reiter a.aktiv { background: #fff; color: var(--akzent); opacity: 1; font-weight: 600; }

main#inhalt { flex: 1; padding: 20px; width: 100%; }
.lade { color: var(--leise); }
.gruppen { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.gruppe { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin: 0; min-width: 0; }
.gruppe.gross { grid-column: 1 / -1; }
.gruppe > legend { font-weight: 700; padding: 0 .4rem; color: var(--akzent); }
.felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem 1rem; align-items: end; }
.breit2 { grid-column: span 2; } .breit3 { grid-column: 1 / -1; }
@media (max-width: 520px) { .breit2 { grid-column: 1 / -1; } }

.feld { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; color: var(--leise); min-width: 0; }
input, select, textarea, button, .knopf { font: inherit; }
.feld input, .feld select, .feld textarea, .login input { font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid var(--rand); border-radius: 9px; padding: .6rem .7rem; min-height: 46px; width: 100%; }
.feld textarea { resize: vertical; min-height: 4.2rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, .knopf:focus-visible, a:focus-visible { outline: 3px solid #f0b429; outline-offset: 1px; border-color: var(--akzent); }
.hinweis { color: var(--leise); font-size: .88rem; margin: .2rem 0; }

.haken { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem .6rem; border: 1.5px solid var(--rand); border-radius: 9px; background: #fff; min-height: 46px; cursor: pointer; }
.haken input { width: 1.35rem; height: 1.35rem; margin: .1rem 0 0; flex: none; accent-color: var(--akzent); }
.wahl { border: 0; padding: 0; margin: 0; min-width: 0; }
.wahl legend { font-size: .88rem; color: var(--leise); padding: 0 0 .25rem; }
.wahl-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; }
.wahl-knoepfe label { position: relative; cursor: pointer; }
.wahl-knoepfe input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl-knoepfe span { display: block; padding: .55rem .95rem; border: 1.5px solid var(--rand); border-radius: 999px; background: #fff; min-height: 46px; line-height: 1.6; }
.wahl-knoepfe input:checked + span { background: var(--akzent); border-color: var(--akzent); color: #fff; font-weight: 600; }
.wahl-knoepfe input:focus-visible + span { outline: 3px solid #f0b429; }

button, .knopf { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; border: 1.5px solid var(--akzent); background: #fff; color: var(--akzent); border-radius: 999px; padding: .55rem 1.1rem; min-height: 46px; font-weight: 600; }
button.haupt, .knopf.haupt { background: var(--akzent); color: #fff; }
button.gross { font-size: 1.1rem; padding: .8rem 1.6rem; margin-top: .8rem; }
button.klein { min-height: 36px; padding: .3rem .8rem; font-size: .85rem; font-weight: 500; }
button:disabled { opacity: .45; cursor: not-allowed; }
.kopf .leise { border-color: rgba(255,255,255,.5); background: transparent; color: #fff; min-height: 40px; padding: .35rem .85rem; font-weight: 500; white-space: nowrap; }

.tab-fuss { display: flex; gap: 1rem; margin-top: 18px; }
.platz { flex: 1; }
.rollbar { overflow-x: auto; }
table.zeiten { border-collapse: collapse; width: 100%; }
.zeiten th, .zeiten td { padding: .3rem .5rem; text-align: left; white-space: nowrap; }
.zeiten thead th { color: var(--akzent); border-bottom: 2px solid var(--rand); }
.zeiten tbody th { font-weight: 500; color: var(--leise); }
.zeiten input { font-size: 1rem; border: 1.5px solid var(--rand); border-radius: 9px; padding: .45rem .5rem; min-height: 44px; width: 7.2rem; background: #fff; color: var(--text); }
.zeiten td span { padding: 0 .3rem; color: var(--leise); }
.haushalt-zeile { display: grid; grid-template-columns: 2fr 1.1fr 1.2fr 1fr 1fr; gap: .6rem; margin-bottom: .6rem; }
@media (max-width: 760px) { .haushalt-zeile { grid-template-columns: 1fr 1fr; padding-bottom: .6rem; border-bottom: 1px dashed var(--rand); } }

.fehlt { margin: .6rem 0; padding-left: 1.2rem; }
.fehlt li { color: var(--warn); margin: .15rem 0; }
.fehlt li a { color: inherit; }
.fehlt li.gut { color: var(--gut); list-style: "✓  "; }
.dok-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.dok-liste { margin: .2rem 0 1rem; }
.pads { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-bottom: 1rem; }
.pads { align-items: end; }
.pad-kopf { display: flex; align-items: end; justify-content: space-between; gap: .6rem; margin-bottom: .3rem; }
.pad-kopf strong, .pad-kopf span { display: block; }
.pad-kopf span { color: var(--leise); }
.pad-rahmen { position: relative; border: 2px solid var(--akzent); border-radius: var(--radius); background: #fffef9; overflow: hidden; }
.pad { display: block; width: 100%; aspect-ratio: 3 / 1; touch-action: none; cursor: crosshair; }
.pad-linie { position: absolute; left: 5%; right: 5%; bottom: 22%; border-bottom: 1.5px dashed #b9b29f; pointer-events: none; }
.signKarte .haken, .gruppe > .haken { margin: .5rem 0; }
.fertig { border-color: var(--gut); }
.gross-text { font-size: 1.25rem; font-weight: 600; color: var(--gut); margin: .3rem 0; }

.meldung { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #1d2a2a; color: #fff; padding: .8rem 1.2rem; border-radius: 12px; max-width: min(92vw, 720px); z-index: 20; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.meldung.fehler { background: var(--warn); }
.fuss { text-align: center; color: var(--leise); font-size: .85rem; padding: .8rem; margin: 0; }

.streifen { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; justify-content: space-between; margin-bottom: 16px; }
.aktionen { display: flex; gap: .6rem; }
.karten { display: grid; gap: 16px; }

.anmeldung { justify-content: center; }
.login { margin: auto; width: min(92vw, 400px); padding: 20px 0; }
.login .karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.login h1 span { font-weight: 400; color: var(--leise); font-size: 1.1rem; }
.login label { display: flex; flex-direction: column; gap: .3rem; color: var(--leise); font-size: .9rem; }
.fehler { color: var(--warn); margin: 0; font-weight: 600; }

.rechtstext { flex: 1; padding: 20px; display: grid; grid-template-columns: minmax(0, 46rem) minmax(220px, 1fr); gap: 32px; align-items: start; }
.rechtstext .spalte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.infokasten { background: var(--akzent-hell); border-radius: var(--radius); padding: 1rem 1.2rem; position: sticky; top: 76px; }
.infokasten h2 { margin-top: 0; }
@media (max-width: 860px) { .rechtstext { grid-template-columns: 1fr; } .kopf { flex-wrap: wrap; } .reiter { order: 3; flex-basis: 100%; } }
@media print { .kopf, .fuss, .tab-fuss { display: none; } }
