/* Farben und Radius aus theme-testwoche.css (V02), damit das Portal vertraut bleibt. */
:root {
  --bg: #f3f3f3; --card: #ffffff; --ink: #12151c; --muted: #5f686e;
  --line: rgb(18 21 28 / 0.18); --accent: #00ffaa;
  --ok: #2e7d4f; --ok-bg: #e8f3ec; --warn: #b3541e; --warn-bg: #f9ece4;
  --rot: #a12a2a; --rot-bg: #f9e6e6; --gelb: #7a5a00; --gelb-bg: #fbf1cf;
  --radius: 4px;
  --schrift: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--schrift); }
a { color: inherit; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.kopf { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  padding: 16px max(16px, env(safe-area-inset-left, 0px)); background: var(--card); border-bottom: 1px solid var(--line); }
.kopf img { display: block; height: 20px; width: auto; }
.haupt { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.haupt a { text-decoration: none; }
.haupt a:hover { text-decoration: underline; }
.haupt form { margin: 0; }
main { max-width: 860px; margin: 0 auto; padding: 32px 16px 56px; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance; }
h2 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 12px; }
footer { padding: 20px 16px 32px; text-align: center; font-size: .8rem; color: var(--muted); }
p { margin: 0 0 12px; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.feld { display: grid; gap: 6px; border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.feld[hidden] { display: none; }
.feld > label, legend { font-weight: 500; padding: 0; }
.hilfe { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); }
.pflicht { color: var(--warn); }
.feldfehler { color: var(--warn); font-size: .875rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); }
textarea { resize: vertical; }
.optionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.optionen label { position: relative; cursor: pointer; }
.optionen input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.optionen span { display: block; min-height: 44px; padding: 10px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); }
.optionen input:checked + span { background: var(--accent); border-color: var(--ink); }
.optionen input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.skala .optionen span { min-width: 48px; text-align: center; }
.haken label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.haken input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
button, .knopf { display: inline-block; min-height: 44px; padding: 10px 16px; background: var(--card); border: 1px solid var(--ink);
  border-radius: var(--radius); cursor: pointer; text-decoration: none; font-weight: 500; }
button:hover, .knopf:hover { background: var(--ink); color: var(--accent); }
button.still { border-color: transparent; background: none; min-height: 0; padding: 0; font-weight: 400; }
button.still:hover { color: inherit; text-decoration: underline; background: none; }
.cta { width: 100%; padding: 14px 20px; margin-top: 4px; }
.cta:disabled { opacity: .4; pointer-events: none; }
.schmal { max-width: 440px; }
.reihe { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.reihe .feld { margin: 0; flex: 1 1 180px; }
.reihe .breit { flex: 3 1 260px; }
.reihe form { margin: 0; }
.filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 16px; }
.filter label { display: grid; gap: 4px; font-size: .875rem; flex: 0 1 240px; }
.meldung { padding: 12px 14px; border-radius: var(--radius); margin: 0 0 16px; }
.meldung ul { margin: 6px 0 0; padding-left: 20px; }
.meldung.ok { background: var(--ok-bg); color: var(--ok); }
.meldung.warnung { background: var(--warn-bg); color: var(--warn); }
.meldung.fehler { background: var(--rot-bg); color: var(--rot); }
.pille { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .875rem; font-weight: 500; }
.pille.gruen { background: var(--ok-bg); color: var(--ok); }
.pille.gelb { background: var(--gelb-bg); color: var(--gelb); }
.pille.rot { background: var(--rot-bg); color: var(--rot); }
.pille.offen { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.leise { color: var(--muted); }
.tabelle { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th { text-align: left; font-weight: 500; color: var(--muted); white-space: nowrap; }
th, td { padding: 10px 12px; vertical-align: top; }
td:first-child a { white-space: nowrap; }
tbody tr { border-top: 1px solid var(--line); }
td.aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
td.aktionen form { margin: 0; }
td.aktionen button { min-height: 36px; padding: 6px 10px; font-size: .875rem; }
.klein { min-width: 72px; }
.raster img { display: block; width: 150px; max-width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); }
.raster small { display: block; color: var(--muted); margin-top: 4px; }
.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 16px; }
.eckdaten dt { font-size: .8125rem; color: var(--muted); }
.eckdaten dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.liste dt { font-size: .875rem; color: var(--muted); margin-top: 10px; }
.liste dd { margin: 0; overflow-wrap: anywhere; }
.schritte { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.schritte a { padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.schritte a:hover { border-color: var(--ink); }
.schritte span { padding: 10px 0; }
.linkbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 16px; display: grid; gap: 10px; justify-items: start; }
.linkbox code { overflow-wrap: anywhere; font-size: .875rem; }
.qr img { width: 260px; max-width: 100%; height: auto; image-rendering: pixelated; }
.mailtext { white-space: pre-wrap; font: inherit; margin: 0 0 12px; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.slot { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.slot label { font-weight: 500; }
.slot input { max-width: 100%; font-size: .875rem; }
.slot output { font-size: .875rem; color: var(--muted); min-height: 1.3em; }
.slot.fertig { background: var(--ok-bg); }
.slot.fertig output { color: var(--ok); }
.slot.fehler output { color: var(--warn); }
.testleiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 6px 16px; background: var(--gelb-bg); font-size: .875rem; }
.testleiste input { width: auto; min-height: 32px; padding: 2px 6px; }
.testleiste button { min-height: 32px; padding: 2px 10px; }
