[hidden] { display: none !important; }
:root {
  --bg: #f5f4f0;
  --karte: #ffffff;
  --text: #1f2328;
  --leise: #6a6f76;
  --linie: #dedbd3;
  --akzent: #1d5f8a;
  --akzent-hell: #e6eff5;
  --rot: #b3261e;
  --gruen: #2e7d32;
  --radius: 8px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--akzent); }
h1 { font-size: 1.6rem; margin: 0 0 .5rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .75rem; }

.kopf {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
  padding: .75rem 1.25rem; background: var(--akzent); color: #fff;
}
.kopf a { color: #fff; text-decoration: none; }
.kopf .marke { font-weight: 700; font-size: 1.1rem; }
.kopf nav { display: flex; gap: 1.25rem; }
.kopf nav a { opacity: .85; padding: .25rem 0; border-bottom: 2px solid transparent; }
.kopf nav a.aktiv, .kopf nav a:hover { opacity: 1; border-bottom-color: #fff; }

main { max-width: 1150px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

.titelzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.titelzeile h1, .titelzeile h2 { margin-bottom: .75rem; }
.pfad { margin: 0 0 .75rem; font-size: .9rem; }
.untertitel { color: var(--leise); margin-top: -.25rem; }
.info { color: var(--leise); }
.klein { font-size: .85rem; color: var(--leise); }
.nowrap { white-space: nowrap; }
.rechts { text-align: right; }

.karte {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1rem;
}

/* Knöpfe */
button, .knopf {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--akzent); color: #fff; border: 1px solid var(--akzent);
  border-radius: 6px; padding: .5rem 1rem; text-decoration: none; white-space: nowrap;
}
button:hover, .knopf:hover { filter: brightness(1.1); }
.knopf.hell { background: var(--karte); color: var(--akzent); }
button.rot { background: var(--karte); color: var(--rot); border-color: var(--rot); }
button.link { background: none; border: 0; padding: 0; font-weight: 400; color: var(--akzent); text-decoration: underline; }
button.link.rot { color: var(--rot); }

/* Formulare */
input, select, textarea {
  font: inherit; width: 100%; padding: .45rem .6rem; margin-top: .2rem;
  border: 1px solid #c9c5bb; border-radius: 6px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: -1px; }
label { display: block; font-weight: 600; font-size: .9rem; }
label.check, label.radio { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; margin: .25rem 1.25rem .25rem 0; }
label.check input, label.radio input { width: auto; margin: 0; }
fieldset { border: 1px solid var(--linie); border-radius: 6px; padding: .5rem 1rem .75rem; margin: 0; }
legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }
fieldset.optionen { background: var(--akzent-hell); border-color: #c5d8e6; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem 1.25rem; }
.raster .breit { grid-column: 1 / -1; }
.aktionen { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }

.suche { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: .5rem 0 1rem; }
.suche input[type=search] { flex: 1 1 320px; margin: 0; padding: .6rem .8rem; font-size: 1rem; }

.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.inline-form label { flex: 1 1 200px; }
.inline-form label.check { flex: 0 0 auto; }
.nur-knopf { display: inline; margin-left: .75rem; }

.login { max-width: 360px; margin: 3rem auto; }
.login button { margin-top: 1rem; width: 100%; }

/* Tabellen */
.tabelle-wrap { overflow-x: auto; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .55rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid #ece9e2; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--leise); background: #faf9f6; }
tbody tr:hover { background: #fbfaf7; }
tbody tr:last-child td { border-bottom: 0; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
tr.inaktiv td { color: var(--leise); font-style: italic; }
tr.bearbeiten td { background: var(--akzent-hell); }

.details { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.5rem; margin: 0; }
.details dt { color: var(--leise); }
.details dd { margin: 0; }

.marke-format { display: inline-block; padding: .1rem .5rem; border-radius: 99px; font-size: .85rem; font-weight: 600; text-decoration: none; }
.f-punktschrift { background: #efe6f7; color: #5b2a86; }
.f-e-text { background: #e3f1e5; color: #1f6b2c; }
.f-pdf { background: #fbe9e2; color: #9a3412; }
.etikett { font-size: .75rem; background: #eee; color: var(--leise); padding: .05rem .4rem; border-radius: 4px; margin-left: .3rem; }

.meldung { padding: .7rem 1rem; border-radius: 6px; margin-bottom: 1rem; background: #e3f1e5; color: #1b5e20; border: 1px solid #b9dcbf; }
.meldung.fehler { background: #fdecea; color: var(--rot); border-color: #f3c3be; }

.blaettern { display: flex; gap: 1.5rem; justify-content: center; margin: 1rem 0; }
.gefahr { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--linie); }

@media (max-width: 640px) {
  .details { grid-template-columns: 1fr; gap: 0; }
  .details dd { margin-bottom: .5rem; }
  th, td { padding: .5rem; }
}

.kopf .wer { opacity: .75; font-size: .9rem; padding: .25rem .75rem; border-right: 1px solid rgba(255,255,255,.35); }
fieldset.gesperrt { border: 0; padding: 0; margin: 0; min-width: 0; }
.hinweis { background: #fff8e1; border: 1px solid #f0dca0; color: #6d5410; padding: .6rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.etikett.admin { background: #e6eff5; color: var(--akzent); }
.etikett.aus { background: #fdecea; color: var(--rot); }
tr.eigen td:first-child { box-shadow: inset 3px 0 0 var(--akzent); }
