/* Mieterpostfach und Mitarbeiterbereich · Markenauftritt Verwaltung Callenius (Ozeanblau, Meerblau, Weiß, Tinte, Eisblau)
   0.39.0 (B-261012-0907): Farben nur als Token in :root (Kontrast im Test gemessen), Plex als WOFF2-Teilmenge unter eigenem Namen „Callenius Sans Teil“ (OFL Ziffer 3, Lizenz in fonts/OFL.txt),
   Wahlzeilen und Knöpfe mindestens 44 px, Feldrand 3:1, Fokus Meerblau 3 px. */
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Callenius Sans Teil"; src: url("fonts/CalleniusSansTeil-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Callenius Sans Teil"; src: url("fonts/CalleniusSansTeil-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ozean: #1D4D63; --meer: #4E8AA0; --weiss: #F7FAFB; --tinte: #1E2A30; --eis: #DCE7EB;
  --seite: #EBF0F2; --linie: #CBD8DD; --leise: #5B6B72; --rot: #9B2C2C; --rot-hell: #F6E3E3; --gruen: #2F6B4F; --gruen-hell: #E2F0E8;
  --papier: #FFFFFF; --rand: #71838C; --ozean-tief: #163E50; --sand: #FFF4E0; --braun: #6B4A10; --himmel: #E5EEF7; --nacht: #24507A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--seite); color: var(--tinte); font: 17px/1.55 "Callenius Sans Teil", system-ui, sans-serif; }
a { color: var(--ozean); }
h1, h2 { font-family: "EB Garamond", Georgia, serif; font-weight: 600; color: var(--ozean); line-height: 1.2; }
h1 { font-size: 1.75rem; margin: 0 0 .6rem; }
h2 { font-size: 1.35rem; margin: 1.2rem 0 .5rem; }
.karte h2:first-child { margin-top: 0; }

.kopf { background: var(--ozean); color: var(--weiss); padding: .8rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.marke { display: flex; align-items: center; gap: .7rem; color: var(--weiss); text-decoration: none; }
.zeichen { width: 30px; height: 30px; flex: none; }
.zeichen rect { fill: none; stroke: var(--weiss); stroke-width: 1; }
.zeichen rect.voll { fill: var(--meer); stroke: var(--meer); }
.marke .name { display: block; font-family: "EB Garamond", Georgia, serif; font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.marke .unter { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--eis); }
.menue { display: flex; align-items: center; gap: 1rem; }
.menue a, .menue .flach { color: var(--weiss); font-size: .95rem; }
.menue form { margin: 0; }

.inhalt { max-width: 760px; margin: 0 auto; padding: 1rem; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; padding: 1.2rem 1.2rem 1.3rem; margin: 0 0 1rem; }
.karte.schmal { max-width: 480px; margin-left: auto; margin-right: auto; }
.leise { color: var(--leise); font-size: .92rem; }
.links { margin: .8rem 0 0; }

.formular { display: flex; flex-direction: column; gap: .35rem; }
.formular label { font-weight: 600; margin-top: .55rem; }
.formular label.haken { font-weight: 400; display: flex; gap: .7rem; align-items: center; min-height: 44px; margin-top: 0; padding: .3rem 0; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { width: 22px; height: 22px; flex: none; margin: 0; padding: 0; accent-color: var(--ozean); }
.formular .gruppe { margin-top: .55rem; }
.formular .frage { font-weight: 600; margin: 0 0 .1rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--tinte); background: var(--papier); border: 1px solid var(--rand); border-radius: 8px; padding: .65rem .75rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 3px solid var(--meer); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { border-color: var(--meer); }
.kopf :focus-visible { outline-color: var(--weiss); }   /* auf Ozean und Tinte trägt Meerblau keine 3:1 */
input[type="file"] { padding: .5rem; background: var(--seite); }
button, .knopf { display: inline-block; font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--ozean); color: var(--weiss); border: 0; border-radius: 8px; padding: .75rem 1.2rem; margin-top: .9rem; }
button:hover, .knopf:hover { background: var(--ozean-tief); color: var(--weiss); }
button.zweit, .knopf.zweit { background: var(--eis); color: var(--ozean); }
button.flach { background: none; padding: 0; margin: 0; font-weight: 400; text-decoration: underline; }
.menue a, .menue button.flach { min-height: 44px; display: inline-flex; align-items: center; }

.meldung { border-radius: 8px; padding: .7rem .9rem; margin: .6rem 0; background: var(--eis); }
.meldung.fehler { background: var(--rot-hell); color: var(--rot); }
.meldung.ok { background: var(--gruen-hell); color: var(--gruen); }
.meldung.notfall { background: var(--sand); color: var(--braun); }
fieldset.einwilligung { border: 1px solid var(--linie); border-radius: 8px; padding: .4rem .9rem .7rem; margin: .9rem 0 .3rem; background: var(--seite); }
fieldset.einwilligung legend { font-weight: 600; padding: 0 .3rem; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { border-top: 1px solid var(--eis); }
.liste li:first-child { border-top: 0; }
.liste .dokument { display: flex; flex-direction: column; padding: .7rem .2rem; text-decoration: none; color: var(--tinte); }
.liste .dokument:hover .titel { text-decoration: underline; }
.liste .titel { font-weight: 600; display: block; }
.liste .zeile { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem .2rem; }
.liste .zeile .leise { display: block; }
.liste li.unter { border-top: 0; padding: 0 .2rem .6rem; }
.neu { font-size: .75rem; background: var(--ozean); color: var(--weiss); border-radius: 99px; padding: .05rem .5rem; vertical-align: middle; }
.status { flex: none; font-size: .85rem; border-radius: 99px; padding: .15rem .6rem; background: var(--eis); color: var(--ozean); }
.status.s-erledigt { background: var(--gruen-hell); color: var(--gruen); }
.status.s-beauftragt { background: var(--himmel); color: var(--nacht); }

.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.kachel { display: flex; flex-direction: column; gap: .2rem; padding: .9rem; border: 1px solid var(--linie); border-radius: 10px; text-decoration: none; color: var(--tinte); background: var(--seite); }
.kachel strong { color: var(--ozean); }
.kachel span { font-size: .88rem; color: var(--leise); }
.kachel:hover { border-color: var(--meer); }
@media (min-width: 640px) { .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.angaben { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .4rem 0 0; }
.angaben dt { color: var(--leise); }
.angaben dd { margin: 0; overflow-wrap: anywhere; }
.qr svg { width: 200px; height: 200px; background: var(--papier); }
.schluessel { font-family: ui-monospace, Menlo, monospace; letter-spacing: .05em; overflow-wrap: anywhere; }

.fuss { text-align: center; color: var(--leise); font-size: .85rem; padding: 1.5rem 1rem 2rem; }
.fuss a { color: var(--leise); }

/* 0.37.0 Mitarbeiterbereich */
.team .kopf { background: var(--tinte); }
fieldset { border: 1px solid var(--linie); border-radius: 10px; padding: .5rem .9rem .9rem; margin: .8rem 0 .2rem; }
fieldset legend { font-family: "EB Garamond", Georgia, serif; font-weight: 600; color: var(--ozean); font-size: 1.15rem; padding: 0 .3rem; }
.dringend { font-size: .75rem; background: var(--rot); color: var(--papier); border-radius: 99px; padding: .05rem .5rem; vertical-align: middle; }
.bald { font-size: .75rem; background: var(--sand); color: var(--braun); border-radius: 99px; padding: .05rem .5rem; vertical-align: middle; }
.text { white-space: pre-line; }
.pruefpunkt { border-top: 1px solid var(--eis); padding: .5rem 0; }
.pruefpunkt:first-of-type { border-top: 0; }
.pruefpunkt .punkt { margin: .2rem 0; font-weight: 600; }
.pruefpunkt .wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.pruefpunkt .wahl label.haken { flex-direction: column; justify-content: center; gap: .2rem; text-align: center; font-size: .9rem; line-height: 1.25;
  border: 1px solid var(--rand); border-radius: 8px; padding: .4rem .2rem; background: var(--papier); }
.pruefpunkt .wahl label.haken:has(input:checked) { border: 2px solid var(--ozean); background: var(--eis); }
.pruefpunkt .vermerk { margin-top: .4rem; }
@supports selector(:has(*)) {
  .pruefpunkt .vermerk { display: none; }
  .pruefpunkt:has(input[value="mangel"]:checked) .vermerk { display: block; }
}
.unterschrift { margin-top: .6rem; display: none; }
.js .unterschrift { display: block; }
/* Grundlinie nur als Hintergrund: sie gehört nicht zur Unterschrift und kommt nicht ins Bild */
.unterschrift canvas { display: block; width: 100%; height: auto; aspect-ratio: 600 / 300; border: 1px dashed var(--meer); border-radius: 8px; touch-action: none;
  background: linear-gradient(to bottom, transparent 76%, var(--linie) 76%, var(--linie) calc(76% + 2px), transparent calc(76% + 2px)), var(--papier); }
.unterschrift .leeren { margin-top: .4rem; padding: .4rem .9rem; min-height: 44px; }
.feldfehler { color: var(--rot); background: var(--rot-hell); border-radius: 6px; padding: .35rem .6rem; margin: .3rem 0; font-weight: 600; }
[aria-invalid="true"] { border-color: var(--rot); }
