/* BRS · gemeinsame Gestaltung für Anmeldung, Übersicht und Zugänge
   (Farben und Schriften wie im Antragsformular) */
:root {
  --ink: #1a1a2e; --ink2: #2d2d44; --rule: #d4cfc8; --rule2: #e8e4df;
  --paper: #faf8f5; --paper2: #f3f0eb; --cream: #fffef9;
  --red: #b81c2e; --green: #1a5e3a; --blue: #1a3a6e; --amber: #c07000;
  --muted: #6b6560; --hint: #8a7e78;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.5; }

.kopf { background: var(--blue); color: #fff; padding: 20px 40px 16px; border-bottom: 3px solid var(--red); }
.kopf h1 { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.3; }
.kopf .sub { font-size: 12px; opacity: .75; margin-top: 3px; }

.seite { max-width: 1120px; margin: 0 auto; padding: 28px 40px 60px; }
.seite.schmal { max-width: 440px; padding-top: 48px; }

h2 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 12px; }
p.hinweis { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

.karte { background: var(--cream); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 24px; }
.karte + .karte { margin-top: 20px; }

label.feld { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

.btn { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--sans); padding: 8px 16px; border-radius: 4px;
  border: 1px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.12); }
.btn.zweit { background: #fff; color: var(--blue); }
.btn.gefahr { background: #fff; color: var(--red); border-color: var(--red); }
.btn.klein { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.meldung { margin-top: 14px; padding: 10px 12px; border-radius: 4px; font-size: 13px; display: none; }
.meldung.fehler { display: block; background: #fbeaec; color: var(--red); border: 1px solid #efc2c8; }
.meldung.ok { display: block; background: #e7f3ec; color: var(--green); border: 1px solid #b9dcc6; }

.werkzeug { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 14px; }
.werkzeug .spacer { margin-left: auto; }
.werkzeug label.feld { margin-top: 0; }
.werkzeug select { width: auto; min-width: 140px; }

table.liste { width: 100%; border-collapse: collapse; background: var(--cream); border: 1px solid var(--rule); font-size: 13px; }
table.liste th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
  background: var(--paper2); padding: 8px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.liste td { padding: 9px 10px; border-bottom: 1px solid var(--rule2); vertical-align: top; }
table.liste tr:last-child td { border-bottom: none; }
table.liste td.nr { font-family: var(--mono); font-weight: 500; color: var(--blue); width: 48px; }
table.liste td.aktion { white-space: nowrap; text-align: right; }
table.liste td.aktion .btn + .btn { margin-left: 6px; }
.titel-zeile { font-weight: 600; }
.klein-grau { font-size: 12px; color: var(--muted); }

.marke { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.marke.offen { background: #fff4dc; color: #8a5300; }
.marke.votum { background: #e3ecfa; color: var(--blue); }
.marke.aus { background: #eee; color: #777; }

.leer { padding: 36px; text-align: center; color: var(--muted); background: var(--cream); border: 1px dashed var(--rule); border-radius: 6px; }

.startpw { margin-top: 14px; padding: 14px 16px; background: #fffae6; border: 1px solid #e8cf8a; border-radius: 4px; }
.startpw code { font-family: var(--mono); font-size: 15px; background: #fff; padding: 2px 8px; border: 1px solid var(--rule); border-radius: 3px; }

.schulwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px 10px; margin-top: 4px;
  max-height: 180px; overflow-y: auto; padding: 8px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.schulwahl label { font-size: 12px; display: flex; gap: 6px; align-items: center; cursor: pointer; }

.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

@media (max-width: 760px) {
  .kopf { padding: 14px 16px; }
  .seite { padding: 18px 16px 50px; }
  .raster2 { grid-template-columns: 1fr; }
  table.liste thead { display: none; }
  table.liste, table.liste tbody, table.liste tr, table.liste td { display: block; width: 100%; }
  table.liste tr { border-bottom: 1px solid var(--rule); padding: 8px 0; }
  table.liste td { border: none; padding: 3px 12px; }
  table.liste td.aktion { text-align: left; padding-top: 8px; }
}
