/* Kiezmax — schlicht, gut lesbar, Kontrast >= 4.5:1, sichtbarer Fokus. */
:root {
  --text: #1b1f24;
  --gedimmt: #4a5560;
  --grund: #ffffff;
  --flaeche: #f2f5f7;
  --akzent: #0b5c8c;
  --akzent-text: #ffffff;
  --fehler: #a4161a;
  --ok: #1f6f43;
  --rand: #c9d2d9;
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--grund); }
a { color: var(--akzent); }
:focus-visible { outline: 3px solid #f0a202; outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--grund); padding: 8px; z-index: 10; }
.kopf { background: var(--akzent); color: var(--akzent-text); padding: 12px 16px; }
.kopf a { color: var(--akzent-text); }
.marke { font-weight: 700; font-size: 1.3rem; text-decoration: none; margin-right: 12px; }
.absender { font-size: .9rem; }
.kopf nav ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
.fuss { max-width: 760px; margin: 32px auto; padding: 16px; border-top: 1px solid var(--rand); }
.lead { font-size: 1.1rem; color: var(--gedimmt); }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.kachel { display: block; padding: 16px; border: 1px solid var(--rand); border-radius: 8px; background: var(--flaeche); text-decoration: none; color: var(--text); }
.kachel strong { display: block; color: var(--akzent); font-size: 1.1rem; }
label { display: block; font-weight: 600; margin-top: 16px; }
.hilfe { font-size: .9rem; color: var(--gedimmt); margin: 2px 0 4px; }
input[type=text], input[type=email], input[type=number], select, textarea { width: 100%; padding: 10px; font: inherit; border: 1px solid var(--gedimmt); border-radius: 6px; }
textarea { min-height: 120px; }
fieldset { border: 1px solid var(--rand); border-radius: 6px; margin-top: 16px; }
fieldset label { display: inline; font-weight: 400; margin: 0 16px 0 4px; }
button, .knopf { display: inline-block; margin-top: 16px; padding: 12px 20px; font: inherit; font-weight: 600; color: var(--akzent-text); background: var(--akzent); border: 0; border-radius: 6px; cursor: pointer; text-decoration: none; }
button.zweitrangig { background: var(--flaeche); color: var(--akzent); border: 1px solid var(--akzent); }
.fehlerbox { border: 2px solid var(--fehler); padding: 12px; border-radius: 6px; color: var(--fehler); }
.feldfehler { color: var(--fehler); font-weight: 600; margin: 4px 0; }
.erfolg { border: 2px solid var(--ok); padding: 12px; border-radius: 6px; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--rand); }
.stand { list-style: none; padding: 0; }
.stand li { border-left: 4px solid var(--akzent); padding: 4px 12px; margin: 8px 0; }
.stand time { color: var(--gedimmt); font-size: .9rem; display: block; }
.balken { background: var(--akzent); height: 1rem; border-radius: 3px; }
#karte { height: 380px; border: 1px solid var(--rand); border-radius: 6px; margin-top: 12px; }
.marke-status { font-size: .85rem; padding: 2px 8px; border-radius: 10px; background: var(--flaeche); border: 1px solid var(--rand); }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; margin: 0; color: inherit; text-decoration: underline; font-weight: 400; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.balken-zelle { width: 45%; }
.faellig { color: var(--fehler); margin-left: 6px; }
.schichten input[type="checkbox"] { width: auto; margin-right: 6px; }
.schichten label { display: inline; margin-right: 18px; }
.durchlauf { margin: 8px 0; }
.visuell-versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stapel { display: flex; width: 140px; height: 12px; background: var(--rand); border-radius: 3px; overflow: hidden; }
.stufe-nicht { background: #a8321a; }
.stufe-erfuellt { background: #7fb88c; }
.stufe-top { background: #1d6b33; }
.tabelle-scroll { overflow-x: auto; max-width: 100%; }
.haekchen { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; }
.haekchen input[type="checkbox"] { width: auto; margin-top: 4px; }
.haekchen label { margin: 0; font-weight: 400; }
.notiztext, .einladungstext { white-space: pre-wrap; font-family: inherit; background: var(--flaeche, #f5f5f5); padding: 8px; border-radius: 4px; }
.hinweisbox { border: 1px solid var(--rand); border-left: 4px solid #1d5f8a; background: var(--flaeche); padding: 10px 12px; border-radius: 4px; }
/* Blacking out a photo (I-B3): a grid of checkboxes over the photo works without JavaScript and mouse;
   schwaerzen.js adds rectangles drawn with the mouse. A checked cell shows how it will look. */
.schwaerzen-flaeche { position: relative; display: inline-block; max-width: 100%; margin-top: 8px; }
.schwaerzen-flaeche img { display: block; max-width: 100%; height: auto; }
.raster { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(6, 1fr); }
.rasterfeld { border: 1px dashed rgba(255, 255, 255, .7); outline: 1px dashed rgba(0, 0, 0, .5); outline-offset: -2px; cursor: pointer; margin: 0; }
.rasterfeld input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rasterfeld:has(input:checked) { background: #000; }
.rasterfeld:has(input:focus-visible) { outline: 3px solid #f0a202; outline-offset: -3px; }
.raster.zeichnen { cursor: crosshair; touch-action: none; }
.rechteck { position: absolute; background: #000; pointer-events: none; }
.rechteck-liste button { margin-left: 8px; }

/* The demo space (I-D6): a plain note above the header that scrolls away, readable without the glass. */
.demo-hinweis { margin: 0; padding: 8px 16px; background: #fff4d6; color: #3d2c00; border-bottom: 2px solid #8a6100;
  text-align: center; font-size: .9rem; line-height: 1.4; }
.demo-hinweis p { margin: 0; }
