/* GB-Assistent – ruhiges, gut lesbares Grundlayout.
   Haupt- und Akzentfarbe kommen aus den Einstellungen (basis.html). */

@font-face { font-family: "Source Sans 3"; src: url("/schriften/SourceSans3-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "Source Sans 3"; src: url("/schriften/SourceSans3-Semibold.ttf"); font-weight: 600; }
@font-face { font-family: "Source Sans 3"; src: url("/schriften/SourceSans3-Bold.ttf"); font-weight: 700; }

:root {
  --text: #1f2328;
  --text-leise: #5f6368;
  --flaeche: #f6f7f8;
  --karte: #ffffff;
  --linie: #d5dadf;
  --hinweis: #eef3f6;
}

* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: var(--flaeche); line-height: 1.5;
}
main { flex: 1; }
a { color: var(--haupt); }
h1 { color: var(--haupt); font-weight: 700; line-height: 1.2; }

.leiste { display: flex; justify-content: space-between; align-items: center;
  padding: .7rem 1.5rem; background: var(--haupt); color: #fff; }
.leiste a { color: #fff; text-decoration: none; font-weight: 700; }
.leiste-firma { font-size: .85rem; opacity: .85; }

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

.seite { max-width: 60rem; margin: 2rem auto; padding: 0 1.25rem; }

.start { max-width: 46rem; margin: 0 auto; padding: 4rem 1.25rem 2rem; text-align: center; }
.start-logo { width: 100%; max-width: 40rem; max-height: 11rem; object-fit: contain; }
.start h1 { font-size: 2.1rem; margin: 2rem 0 .6rem; }
.start-unterzeile { color: var(--text-leise); margin: 0 0 2.5rem; }
.logo-platzhalter { margin: 0 auto; width: 16rem; min-height: 9rem; border: 2px dashed #a0a0a0;
  border-radius: 10px; display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  padding: 1rem; color: #777; font-size: .8rem; }
.logo-platzhalter strong { font-size: 1.6rem; letter-spacing: .1em; color: #999; }

.knopf { display: inline-block; background: var(--haupt); color: #fff; border: 0; border-radius: 8px;
  padding: .7rem 1.4rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.knopf:hover, .knopf:focus-visible { filter: brightness(1.25); }
.knopf:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
.knopf-gross { font-size: 1.3rem; padding: 1rem 2.6rem; border-radius: 12px; }

.hinweis { background: var(--hinweis); border-left: 4px solid var(--haupt); border-radius: 6px;
  padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; }

.liste { width: 100%; border-collapse: collapse; background: var(--karte); margin: 1.5rem 0;
  border: 1px solid var(--linie); }
.liste th, .liste td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--linie); }
.liste th { background: #e6ecef; color: var(--haupt); font-size: .85rem; }

/* ======================================================= Stufe 1b */
.leiste-name { display: flex; align-items: center; gap: .6rem; }
.leiste-logo { height: 3.2rem; display: block; }
.leiste-menue { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.leiste-menue a { font-weight: 400; font-size: .9rem; }
.seite.breit { max-width: 78rem; }
.seite.schmal { max-width: 46rem; }
.leise { color: var(--text-leise); font-size: .88rem; }
.wichtig { color: var(--akzent); font-size: .7em; vertical-align: super; }
.marke { display: inline-block; font-size: .75rem; background: #fff1c4; color: #6b4e00; border-radius: 4px; padding: 0 .4rem; }
.knopf.klein, .klein-knopf { font-size: .82rem; padding: .3rem .7rem; border-radius: 6px; }
.klein-knopf { background: #e6ecef; color: var(--haupt); border: 0; cursor: pointer; font: inherit; font-size: .82rem; }
.klein-knopf.aktiv { background: var(--haupt); color: #fff; }
.leise-knopf { background: #e6ecef !important; color: var(--haupt) !important; }
.gefahr-knopf { background: #b3261e !important; }
.link-knopf { background: none; border: 0; color: var(--haupt); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.voll { width: 100%; margin: .5rem 0; }
.inline { display: inline; }
.hinweis-box { background: #fff6da; border-left: 4px solid #b7791f; border-radius: 6px; padding: .8rem 1rem; margin: 1rem 0; }
.leer, .leer-gross { color: var(--text-leise); font-style: italic; }
.leer-gross { padding: 2rem; text-align: center; background: var(--karte); border: 1px dashed var(--linie); border-radius: 10px; }

/* Begriffe aus dem Glossar */
.begriff { text-decoration: underline dotted var(--haupt); text-underline-offset: 3px; cursor: help; position: relative; }
.begriff:hover::after, .begriff:focus::after {
  content: attr(data-kurz); position: absolute; left: 0; top: 1.6em; z-index: 20; width: 18rem;
  background: #1f2328; color: #fff; font-size: .8rem; line-height: 1.35; padding: .5rem .6rem; border-radius: 6px; font-weight: 400; }

/* Assistent: drei Spalten */
.assistent { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 21rem; gap: 1.5rem; padding: 1rem 1.5rem; max-width: 100rem; margin: 0 auto; }
.assistent.ohne-rechts { grid-template-columns: 15rem minmax(0, 1fr); }
.assistent.ohne-nav { grid-template-columns: minmax(0, 1fr) 21rem; max-width: 80rem; }
@media (max-width: 1100px) { .assistent, .assistent.ohne-rechts, .assistent.ohne-nav { grid-template-columns: 1fr; } .rechts { order: 3; } }
.schritte { font-size: .88rem; position: sticky; top: .5rem; align-self: start; max-height: calc(100vh - 1rem); overflow: auto; }
.schritte h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); margin: 1rem 0 .3rem; }
.schritte ol { list-style: none; padding: 0; margin: 0; }
.schritte li a { display: flex; gap: .5rem; align-items: center; padding: .3rem .4rem; border-radius: 6px; text-decoration: none; color: var(--text); }
.schritte li.aktiv a { background: #e6ecef; font-weight: 600; }
.schritte .legende { font-size: .72rem; color: var(--text-leise); margin-top: 1rem; }
.nav-status { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; border: 2px solid #9aa0a6; flex: none; vertical-align: middle; }
.nav-status.in_arbeit { border-color: #b7791f; background: linear-gradient(90deg, #b7791f 50%, transparent 50%); }
.nav-status.fertig { border-color: #2e7d32; background: #2e7d32; }
.nav-status.hinweise { border-color: #b7791f; background: #fff1c4; border-radius: 2px; }
.nav-status.liste, .nav-status.export { border-color: var(--haupt); border-radius: 2px; }

.projektkopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .6rem 1rem; font-size: .9rem; }
.projektkopf-rechts { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.projektkopf label { display: flex; gap: .4rem; align-items: center; font-size: .82rem; color: var(--text-leise); }
.speicherstatus { font-size: .82rem; color: #2e7d32; min-width: 9rem; text-align: right; }
.speicherstatus .speichert { color: var(--text-leise); }
.speicherstatus .fehler, .fehler { color: #b3261e; }
.gespeichert { color: #2e7d32; }

.seitenkopf .bereich { margin: 1rem 0 0; color: var(--akzent); font-weight: 600; font-size: .85rem; }
.seitenkopf h1 { margin: .2rem 0 .8rem; font-size: 1.7rem; }
.darum { background: var(--karte); border-left: 4px solid var(--haupt); border-radius: 6px; padding: .2rem 1rem .4rem; }
.darum h2 { font-size: 1rem; margin: .6rem 0 .2rem; }
.brauchen { margin: .8rem 0; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: .5rem 1rem; }
.brauchen summary { cursor: pointer; font-weight: 600; color: var(--haupt); }

.gefuehrt-karten h2 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .6rem; }
.karte { display: flex; flex-direction: column; gap: .3rem; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .7rem .8rem; text-decoration: none; color: var(--text); font-size: .85rem; }
.karte:hover { border-color: var(--haupt); }
.karte strong { color: var(--haupt); font-size: .95rem; }

.hinweise:not(:empty) { margin: 1rem 0; }
.hinweise h2 { font-size: 1rem; margin: 0 0 .3rem; color: #6b4e00; }
.hinweise ul { margin: 0; background: #fff6da; border-radius: 8px; padding: .6rem 1rem .6rem 2rem; }

.formular { margin-top: 1rem; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; }
@media (max-width: 700px) { .felder { grid-template-columns: 1fr; } }
.feld { display: flex; flex-direction: column; gap: .3rem; position: relative; border: 0; padding: 0; margin: 0; min-width: 0; }
.feld-breit { grid-column: 1 / -1; }
.feld label, .feld legend { font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: .35rem; }
.feld input[type=text], .feld input[type=date], .feld input[type=time], .fz-suche input, .feld input:not([type]), .feld select, .feld textarea,
.formular-klassisch input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .formular-klassisch select, .formular-klassisch textarea,
.schritt-block select, .schritt-block input:not([type=radio]):not([type=checkbox]), .frage input[type=text], .frage textarea, .frage select, .zeile-form input, .zeile-form select, .filter input, .filter select, .suche-feld input, .register-filter input {
  font: inherit; font-size: .95rem; padding: .45rem .6rem; border: 1px solid #b9c0c6; border-radius: 6px; background: #fff; width: 100%; }
.filter input, .filter select { width: auto; }
.feld textarea { resize: vertical; min-height: 4.2rem; }
.feld :focus { outline: 2px solid var(--haupt); outline-offset: 1px; }
.feld-leer > label::after { content: "noch offen"; font-weight: 400; font-size: .72rem; color: #8a6d00; background: #fff6da; border-radius: 4px; padding: 0 .35rem; }
.feld-ne input, .feld-ne textarea, .feld-ne select { background: #f3f3f3; color: #777; }
.info { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1px solid var(--haupt); background: #fff; color: var(--haupt); font-size: .7rem; font-weight: 700; cursor: pointer; padding: 0; line-height: 1; font-family: Georgia, serif; font-style: italic; }
.info-beispiel { display: inline-block; width: 1rem; height: 1rem; border: 1px solid var(--haupt); border-radius: 50%; text-align: center; font-size: .65rem; line-height: 1rem; font-style: italic; }
.ne-knopf { align-self: flex-start; background: none; border: 1px dashed #b9c0c6; color: var(--text-leise); border-radius: 12px; font-size: .72rem; padding: .05rem .55rem; cursor: pointer; }
.ne-knopf.aktiv { border-style: solid; border-color: #8a6d00; color: #8a6d00; background: #fff6da; }
.feld-warnung p { margin: 0; background: #fff6da; border-radius: 6px; padding: .3rem .5rem; font-size: .84rem; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.messwert { display: grid; grid-template-columns: 5rem 5rem 8rem 1fr 1fr; gap: .4rem; }
@media (max-width: 900px) { .messwert { grid-template-columns: 1fr 1fr; } }
.rechenhilfe { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.rechenhilfe input { width: 9rem !important; }
.auswahlgruppe { border: 1px solid var(--linie); border-radius: 8px; padding: .5rem .8rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.auswahlgruppe legend { padding: 0 .3rem; }
.haken { display: flex; align-items: flex-start; gap: .45rem; font-weight: 400 !important; font-size: .92rem; cursor: pointer; }
.haken input { margin-top: .25rem; }
.stufen { display: flex; gap: 1.2rem; flex-wrap: wrap; border: 0; padding: 0; }

.eintrag { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .8rem 1rem 1rem; margin: 0 0 1rem; }
.eintrag > legend { font-weight: 600; color: var(--haupt); padding: 0 .4rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.eintrag.gefaehrdung { background: #f4f4f4; }
.eintrag.vorschlag { border-color: #b7791f; border-style: dashed; }
.zeilentyp { font-size: .75rem; font-weight: 400; border: 1px solid var(--linie); border-radius: 10px; padding: 0 .5rem; color: var(--text-leise); }
.eintrag-aktionen { display: flex; gap: .4rem; margin-top: .8rem; justify-content: flex-end; }
.neu-form { margin: .5rem 0 1.5rem; }
.partner { margin-top: .8rem; background: #eef3f6; border-radius: 8px; padding: .5rem .8rem; font-size: .88rem; }
.partner p { margin: 0 0 .4rem; }

.pruefen { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .6rem 1rem 1rem; margin: 1.5rem 0; }
.pruefen h2 { font-size: 1rem; }
.pruefen .haken { margin: .35rem 0; }
.blaettern { display: flex; justify-content: space-between; margin: 1.5rem 0 3rem; }

.rechts { font-size: .9rem; position: sticky; top: .5rem; align-self: start; max-height: calc(100vh - 1rem); overflow: auto; }
.tipps { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .5rem 1rem; }
.tipps summary { cursor: pointer; font-weight: 700; color: var(--haupt); }
.tipps h3 { font-size: .9rem; margin: .8rem 0 .2rem; }
.tipps ol, .tipps ul { padding-left: 1.2rem; margin: .2rem 0; }
.woher { font-size: .78rem; color: var(--text-leise); margin: .6rem 0; }
.woher summary { cursor: pointer; }
.hilfe-panel { background: #eef3f6; border-radius: 10px; padding: .4rem 1rem .8rem; margin-top: .5rem; min-height: 6rem; }
.hilfe-panel h3 { margin: .6rem 0; color: var(--haupt); font-size: 1rem; }
.hilfe-panel h4 { margin: .6rem 0 .1rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-leise); }
.hilfe-panel p { margin: 0; }
.hilfe-panel .gut { border-left: 3px solid #2e7d32; padding-left: .5rem; }
.hilfe-panel .schlecht { border-left: 3px solid #b3261e; padding-left: .5rem; }
dialog { max-width: 40rem; border: 0; border-radius: 12px; padding: 1.5rem; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.35); }

/* Fotos und Markierungen */
.upload-zeile { display: flex; gap: .6rem; flex-wrap: wrap; }
.bild-markierung { position: relative; display: inline-block; max-width: 100%; cursor: crosshair; }
.bild-markierung img { max-width: 100%; max-height: 32rem; display: block; border-radius: 6px; }
.marker { position: absolute; transform: translate(-50%, -50%); width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--haupt); color: #fff; border: 2px solid #fff; font-weight: 700; font-size: .8rem; cursor: pointer; padding: 0; }
.markier-leiste { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: .5rem 0 1rem; font-size: .88rem; }
.bilder-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem; }
.bilder-raster img { width: 100%; border-radius: 6px; }

/* Ressourcen und Kurz-Check */
.gruppe { font-size: 1.15rem; margin: 1.6rem 0 .5rem; color: var(--haupt); }
.beispiele { font-size: .85rem; margin: .3rem 0 .6rem; }
.beispiele summary { cursor: pointer; color: var(--haupt); }
.screening-art { border-top: 1px solid var(--linie); padding: .6rem 0; }
.screening-art.erfuellt { background: #fff9e6; }
.screening-art h3 { font-size: 1rem; margin: .3rem 0; display: flex; justify-content: space-between; }
.punkte { font-size: .8rem; background: #e6ecef; border-radius: 10px; padding: 0 .6rem; font-weight: 400; }
.kriterium { margin: .4rem 0 .4rem .5rem; }
.schwelle { font-size: .75rem; background: #f6f7f8; padding: .4rem; border-radius: 6px; white-space: pre-wrap; }

/* Geführter Modus */
.kontext, .fragen, .vorschau, .rechnung { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .6rem 1rem 1rem; margin: 1rem 0; }
.kontext h2, .fragen h2, .vorschau h2, .rechnung h2 { font-size: 1.05rem; }
.frage { padding: .7rem 0; border-bottom: 1px solid #eef0f2; }
.frage:last-child { border-bottom: 0; }
.frage-text { font-weight: 600; display: block; margin-bottom: .3rem; }
.mit-einheit { display: flex; gap: .5rem; align-items: center; }
.mit-einheit input { max-width: 24rem; }
.quelle-frage { display: flex; gap: .5rem; align-items: center; font-size: .85rem; margin-top: .4rem; color: var(--text-leise); }
.quelle-frage select { width: auto !important; }
.vorschlag-karte { border: 1px dashed #b7791f; border-radius: 8px; padding: .4rem .8rem; margin: .5rem 0; background: #fffdf5; }
.vorschlag-karte.gefaehrdung { background: #f4f4f4; }
.abschnitt-wahl { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Menü, Listen, Formulare */
.menue-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.menuepunkte { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.filter { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .5rem 0 1rem; }
.standort-karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .6rem 1rem; margin: 0 0 1rem; }
.standort-karte > summary { cursor: pointer; font-size: 1.05rem; }
.liste td.aktionen, td.aktionen { font-size: .82rem; white-space: normal; }
td.aktionen > * { margin-right: .5rem; }
.mini-dialog { display: inline-block; }
.mini-dialog summary { display: inline; cursor: pointer; color: var(--haupt); text-decoration: underline; }
.mini-dialog[open] form { position: absolute; background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: .8rem; box-shadow: 0 6px 20px rgba(0,0,0,.15); z-index: 30; max-width: 22rem; }
.ampel { font-size: 1.2rem; }
.faellig-ueberfaellig { color: #b3261e; font-weight: 600; }
.faellig-bald { color: #8a6d00; font-weight: 600; }
tr.archiviert { opacity: .55; }
.schritt-block { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .4rem 1.2rem 1rem; margin: 1rem 0; }
.schritt-block label { display: block; font-weight: 600; margin: .8rem 0 .3rem; }
.wahl { display: block; border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .8rem; margin: .5rem 0; font-weight: 400 !important; cursor: pointer; }
.formular-klassisch .feld { margin-bottom: .9rem; }
.zahlen-raster { display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 400; }
.zahlen-raster input { width: 4rem !important; }
.farben { display: flex; gap: 1.5rem; font-weight: 400; }
.farbfeld { display: inline-block; width: 1rem; height: 1rem; border-radius: 3px; vertical-align: middle; }
.logo-wahl { display: flex; gap: 2rem; align-items: flex-end; flex-wrap: wrap; }
.logo-wahl img { max-height: 5rem; max-width: 20rem; background: #fff; padding: .4rem; border: 1px solid var(--linie); border-radius: 6px; }
.einrichtung { text-align: left; }
.einrichtung .start-logo { display: block; margin: 2rem auto 1rem; max-width: 26rem; }
.aufgaben { list-style: none; padding: 0; }
.aufgaben li { padding: .35rem 0; border-bottom: 1px solid #eef0f2; }
.aufgaben li.erledigt { color: var(--text-leise); text-decoration: line-through; }
.haken-knopf { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--haupt); }
.zeile-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.zeile-form input { flex: 1 1 20rem; }
.zeile-form select { width: auto; }
.glossar dt { font-weight: 700; color: var(--haupt); margin-top: 1rem; }
.glossar dd { margin: .2rem 0 0; }
.abc a { margin-right: .4rem; }
@media print { .leiste, .schritte, .rechts, .fuss, .blaettern, .zeile-form, .haken-knopf { display: none !important; } .assistent { display: block; } }

.feld > .klein-knopf { align-self: flex-start; }

/* ======================================================= Stufe 2 */
:root { --akz: #DDF0DA; --akz-r: #2E7D32; --bes: #FFF1C4; --bes-r: #B7791F; --gef: #F9D5D1; --gef-r: #C62828; --off: #EDEDED; }
.ampel-akzeptanz { background: var(--akz) !important; border-left: 5px solid var(--akz-r) !important; }
.ampel-besorgnis { background: var(--bes) !important; border-left: 5px solid var(--bes-r) !important; }
.ampel-gefahr { background: var(--gef) !important; border-left: 5px solid var(--gef-r) !important; }
.eintrag.ampel-offen { background: var(--off); border-left: 5px solid #9aa0a6; }
.eintrag.ampel-offen > legend::after { content: " · noch nicht beurteilt"; font-weight: 400; color: var(--text-leise); }
tr.ampel-akzeptanz td, tr.ampel-besorgnis td, tr.ampel-gefahr td { background: transparent; }
.einstufung-legende { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0; font-size: .85rem; }
.einstufung-legende > div { border-radius: 8px; padding: .5rem .7rem; }
.einstufung-wahl { display: flex; gap: .6rem; flex-wrap: wrap; margin: .9rem 0; }
.einstufung-knopf { flex: 1 1 10rem; display: flex; gap: .5rem; align-items: center; justify-content: center; border-radius: 10px; padding: .7rem; cursor: pointer; font-weight: 700; border: 2px solid transparent; }
.einstufung-knopf input { accent-color: #1f2328; }
.einstufung-knopf:has(input:checked) { border-color: #1f2328; box-shadow: 0 0 0 2px #fff inset; }
.aus-bogen2 { margin: .2rem 0 .8rem; }
.lotse-vorschlag, .finder { background: #eef3f6; border-radius: 8px; padding: .5rem .8rem; margin: .5rem 0; font-size: .88rem; }
.finder .klein-knopf { margin: .2rem .2rem 0 0; }
.beurteilung-info .hinweis, .lmm-ergebnis .hinweis { background: #fff6da; border-radius: 6px; padding: .3rem .5rem; }
.lmm-ergebnis { margin-top: 1rem; border-radius: 10px; padding: .6rem 1rem; background: #f3f5f6; border-left: 5px solid #9aa0a6; }
.lmm-ergebnis.akzeptanz { background: var(--akz); border-left-color: var(--akz-r); }
.lmm-ergebnis.besorgnis { background: var(--bes); border-left-color: var(--bes-r); }
.lmm-ergebnis.gefahr { background: var(--gef); border-left-color: var(--gef-r); }
.lmm-punkte { font-size: 1.15rem; margin: .2rem 0; }
.lotse { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .5rem 1rem; margin: 1rem 0; }
.lotse summary { cursor: pointer; font-weight: 700; color: var(--haupt); }
.methoden { columns: 2; font-size: .88rem; }
.vollst { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: center; background: var(--karte); border: 1px solid var(--linie); border-left: 5px solid #9aa0a6; border-radius: 8px; padding: .6rem .9rem; margin: .4rem 0; }
.vollst.ok { border-left-color: var(--akz-r); }
.vollst .feld { grid-column: 1 / -1; }
.status-ok { color: var(--akz-r); font-weight: 600; font-size: .88rem; }
.ziel-ausgabe { margin-top: .6rem; }
.zieltext { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .8rem; }
.ziel.ampel-keine { border-left: 5px solid var(--haupt); }
.kurzliste { margin: .2rem 0 .6rem; padding-left: 1.2rem; font-size: .9rem; }

/* ======================================================= Stufe 3 */
.ok-box { background: var(--akz) !important; border-left-color: var(--akz-r) !important; }
.pruefliste { list-style: none; padding: 0; }
.pruefliste > li { background: var(--karte); border: 1px solid var(--linie); border-left: 5px solid var(--akz-r); border-radius: 8px; padding: .5rem .9rem; margin: .4rem 0; }
.pruefliste > li.problem { border-left-color: var(--bes-r); }
.qualitaet .note { white-space: nowrap; font-weight: 700; }
.note-5, .note-4 { color: var(--akz-r); } .note-3 { color: var(--bes-r); } .note-2, .note-1 { color: var(--gef-r); }
.ziel-block { margin: 1.5rem 0; }
.ideen li { margin: .3rem 0; }
.befragung input { width: 3.5rem !important; }
tr.auffaellig td { background: var(--bes); }
tr.hervor td { font-weight: 600; background: #eef3f6; }
.tour { text-align: center; padding-top: 3rem; }
.tour-text { font-size: 1.15rem; max-width: 36rem; margin: 1rem auto 2rem; }
.tour-punkte { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; }
.tour-punkte span { width: .7rem; height: .7rem; border-radius: 50%; background: var(--linie); }
.tour-punkte span.aktiv { background: var(--haupt); }
.gefahrstoff { margin-bottom: .8rem; }

.beenden-form { display: inline; margin-left: .6rem; }
.knopf-leise { background: none; border: 1px solid var(--linie); border-radius: 6px; padding: .15rem .6rem; font: inherit; color: inherit; cursor: pointer; }
.knopf-leise:hover { border-color: var(--haupt); color: var(--haupt); }
.sdb { margin: -.4rem 0 1.4rem; padding: .7rem 1rem; border-radius: 0 0 8px 8px; font-size: .9rem; }
.sdb p { margin: .2rem 0; }
.sdb ol { margin: .4rem 0; padding-left: 1.3rem; }
.sdb ol li { margin: .35rem 0; }
.sdb-fehlt { background: #fff6da; border-left: 4px solid #b7791f; }
.sdb-ok { background: var(--akz, #eef6ee); border-left: 4px solid var(--akz-r, #4a8a4a); }
.sdb-ok form.inline { margin-right: .6rem; }
.sdb-verknuepfen { margin-top: .5rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
/* Produktregister und Produktsuche */
.produkt-suche, .register-neu { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin: .6rem 0 1.4rem; }
.suche-feld { position: relative; flex: 1 1 22rem; }
.suche-feld input { width: 100%; }
.suche-feld label { display: block; font-size: .85rem; margin-bottom: .2rem; }
.vorschlaege { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; }
.vorschlag-liste { list-style: none; margin: .2rem 0 0; padding: .25rem; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 22rem; overflow: auto; }
.vorschlag { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: .45rem .6rem; font: inherit; cursor: pointer; color: inherit; }
.vorschlag:hover, .vorschlag:focus { background: #eef3f5; outline: none; }
.vorschlag-name { font-weight: 600; }
.vorschlag-neu { color: var(--haupt); border-top: 1px solid var(--linie); border-radius: 0 0 6px 6px; }
.marke { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: #eee; color: #555; }
.marke-ok { background: var(--akz); color: var(--akz-r); }
.marke-fehlt { background: #fff1c4; color: #8a5a00; }
.register-neu .feld { flex: 0 1 12rem; }
.register-filter input { width: 100%; margin: .4rem 0 1rem; }
.produkt-karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .6rem 1rem; margin: .7rem 0; scroll-margin-top: 5rem; }
.produkt-karte:target { box-shadow: 0 0 0 3px var(--akzent); }
.produkt-karte > details > summary { cursor: pointer; display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.produkt-karte .felder { margin-top: .6rem; }
.produkt-karte .sdb { margin: .6rem 0; border-radius: 8px; }
.produkt-kopf { display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .4rem; }
.produkt-name { margin: .3rem 0 0; }
.auslese { margin: .6rem 0; background: #f6f8fa; border: 1px solid var(--linie); border-radius: 8px; padding: .5rem .9rem; }
.auslese > summary { cursor: pointer; font-weight: 600; }
.auslese-tabelle { width: 100%; border-collapse: collapse; margin: .5rem 0; font-size: .9rem; }
.auslese-tabelle th { text-align: left; vertical-align: top; width: 34%; padding: .3rem .5rem .3rem 0; font-weight: 600; }
.auslese-tabelle td { padding: .3rem 0; border-top: 1px solid var(--linie); }
.auslese-tabelle td p { margin: 0 0 .2rem; }
.auslese-form { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.gef-vorschlaege { margin: .4rem 0; font-size: .9rem; }
.gef-vorschlaege .marke { display: inline-block; margin: .1rem .2rem .1rem 0; }
.marke-besonders { background: var(--gef); color: var(--gef-r); }
.sdb-vorschlaege { background: #f6f8fa; border: 1px solid var(--linie); border-radius: 10px; padding: .6rem 1rem; margin: 0 0 1.2rem; }
.sdb-vorschlaege > summary { cursor: pointer; font-weight: 600; }
.sdb-vorschlag { border-top: 1px solid var(--linie); padding-top: .5rem; margin-top: .5rem; }
.sdb-vorschlag ul { margin: .2rem 0; padding-left: 1.2rem; }
.sdb-vorschlag li { margin: .3rem 0; }
.sdb-ohne { background: #eef1f3; border-left: 4px solid #8a97a0; }
.ohne-sdb-option { margin-top: .6rem; font-size: .88rem; }
.ohne-sdb-option > summary { cursor: pointer; color: var(--haupt); }
.ohne-sdb-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .4rem 0; }
.ohne-sdb-form label { flex: 1 1 100%; }
.ohne-sdb-form select { display: block; width: 100%; max-width: 100%; margin-top: .2rem; font: inherit; font-size: .88rem; padding: .3rem; }
.sdb-handschuh { background: #eef4f8; border-left: 4px solid #5b8db0; }
/* Register-Liste und Steckbrief */
.filter-reiter { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 .8rem; }
.reiter { border: 1px solid var(--linie); border-radius: 999px; padding: .25rem .8rem; cursor: pointer; font-size: .88rem; background: var(--karte); }
.reiter input { display: none; }
.reiter.aktiv { background: var(--haupt); color: #fff; border-color: var(--haupt); }
.register-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.produkt-liste { list-style: none; padding: 0; margin: .4rem 0 1.6rem; }
.produkt-zeile { display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: baseline; padding: .6rem .9rem; margin: .35rem 0; background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; color: inherit; text-decoration: none; }
.produkt-zeile:hover { border-color: var(--haupt); }
.produkt-zeile-name { font-weight: 700; }
.produkt-titel { font-weight: 800; margin-bottom: .1rem; }
.steckbrief-tabelle { width: 100%; border-collapse: collapse; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; margin: .4rem 0 1.4rem; }
.steckbrief-tabelle th { text-align: left; vertical-align: top; width: 30%; padding: .55rem .8rem; font-weight: 600; border-top: 1px solid var(--linie); }
.steckbrief-tabelle td { padding: .55rem .8rem; border-top: 1px solid var(--linie); }
.steckbrief-tabelle tr:first-child th, .steckbrief-tabelle tr:first-child td { border-top: 0; }
.steckbrief-tabelle td p { margin: 0 0 .25rem; }
.steckbrief-tabelle .marke { display: inline-block; margin: .1rem .2rem .1rem 0; }
.dokument-liste { list-style: none; padding: 0; }
.dokument-liste li { padding: .45rem 0; border-bottom: 1px solid var(--linie); }
.dokument-form { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin: .6rem 0; }
.bearbeiten { margin: 1.4rem 0; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .6rem 1rem; }
.bearbeiten > summary { cursor: pointer; font-weight: 600; }

/* ---------- Hygiene-Begehungen */
.hygiene-standort { border: 1px solid var(--linie); border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0; background: #fff; }
.hygiene-standort-kopf { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.hygiene-standort-kopf h2 { margin: 0 0 .2rem; }
.hygiene-aktionen { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.hygiene-liste { margin-top: .6rem; }
.marke-mangel { background: #fbe5e2; color: #9b2c1f; }
.hygiene-standortname { font-size: 1.15rem; margin: 0 0 .4rem; }
.hygiene-angaben { display: grid; grid-template-columns: 10rem 7rem 1fr; gap: .8rem; margin: 1rem 0 .4rem; }
.hygiene-angaben .feld { margin: 0; }
.hygiene-stand { position: sticky; top: 0; z-index: 5; background: var(--hinweis, #f1f5f7); border-radius: 8px; padding: .45rem .7rem; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.hygiene-warnung { flex-basis: 100%; margin: .2rem 0 0; color: #9b2c1f; font-size: .9rem; }
.hygiene-punkte { border-top: 1px solid var(--linie); }
.hygiene-punkt { display: grid; grid-template-columns: 2.6rem 1fr auto; gap: .3rem .8rem; padding: .55rem .3rem; border-bottom: 1px solid var(--linie); align-items: center; }
.hygiene-punkt.ist-mangel { background: #fbe5e2; box-shadow: inset 4px 0 0 #b23a2a; }
.hygiene-nr { font-weight: 600; color: var(--haupt); align-self: start; padding-top: .1rem; }
.hygiene-vorher { font-size: .85rem; color: #9b2c1f; margin-top: .15rem; }
.hygiene-wahl { display: flex; gap: .25rem; }
.hygiene-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hygiene-wahl span { display: inline-flex; width: 2.4rem; height: 2.1rem; align-items: center; justify-content: center; border: 1px solid var(--linie); border-radius: 6px; font-size: 1.1rem; cursor: pointer; background: #fff; }
.hygiene-wahl input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 1px; }
.hygiene-wahl .wahl-ok input:checked + span { background: #2f7d4f; border-color: #2f7d4f; color: #fff; }
.hygiene-wahl .wahl-mangel input:checked + span { background: #b23a2a; border-color: #b23a2a; color: #fff; }
.hygiene-wahl .wahl-nz input:checked + span { background: #6b7280; border-color: #6b7280; color: #fff; }
.hygiene-bemerkung { grid-column: 2 / 4; width: 100%; }
.hygiene-knoepfe { display: flex; gap: .6rem; align-items: center; margin: 1.4rem 0 .6rem; flex-wrap: wrap; }
.hygiene-loeschen { margin-top: 1.5rem; }
@media (max-width: 700px) {
  .hygiene-angaben { grid-template-columns: 1fr 1fr; }
  .hygiene-punkt { grid-template-columns: 2.2rem 1fr; }
  .hygiene-wahl { grid-column: 2; }
}

/* ---------- Firmen */
.firma-karte { display: grid; grid-template-columns: 11rem 1fr; gap: .4rem 1.2rem; border: 1px solid var(--linie); border-radius: 10px; padding: 1rem; margin: 1rem 0; background: #fff; }
.firma-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; background: #f6f8f9; border-radius: 8px; padding: .6rem; min-height: 5rem; }
.firma-logo img { max-width: 100%; max-height: 4.5rem; object-fit: contain; }
.firma-logo-standard { opacity: .55; }
.firma-form .feld { margin-top: 0; }
.firma-knoepfe { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.firma-aktionen { grid-column: 2; display: flex; gap: 1rem; }
.firma-neu { border-top: 1px solid var(--linie); padding-top: .6rem; }
@media (max-width: 700px) { .firma-karte { grid-template-columns: 1fr; } .firma-aktionen { grid-column: 1; } }

/* ---------- Einzelne Bereiche (z. B. Therapieliegen) */
.bereich-vorlage { border-top: 1px solid var(--linie); padding-top: .6rem; margin-top: .6rem; }
.bereich-vorlage h3 { margin: 0 0 .1rem; }
.bereich-neu { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .6rem 0; }
.bereich-neu input { flex: 1 1 12rem; }
.bereich-kopf { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .6rem 1rem; }
.bereich-kopf .feld { margin: 0; }
.bereich-ergebnis { position: sticky; top: 0; z-index: 5; margin: 1rem 0; padding: .6rem .9rem; border-radius: 8px; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.bereich-ergebnis.bereich-rot { background: #fbe5e2; } .bereich-ergebnis.bereich-gruen { background: #e3f3e8; } .bereich-ergebnis.bereich-offen { background: #fff6da; }
.bereich-abschnitt { border: 1px solid var(--linie); border-radius: 10px; padding: .4rem 1rem .8rem; margin: 1.2rem 0; background: #fff; }
.bereich-abschnitt h2 { font-size: 1.1rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.bereich-frage { border-top: 1px solid var(--linie); padding: .6rem 0; }
.bereich-frage-kopf { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: .8rem; align-items: start; }
.bereich-frage-text p { margin: 0 0 .2rem; }
.bereich-frage.zustand-entfaellt, .bereich-frage.zustand-gesperrt { opacity: .45; }
.bereich-frage.zustand-offen { background: #fffaf0; box-shadow: inset 4px 0 0 #e8701a; padding-left: .5rem; }
.bereich-frage.ampel-rot { box-shadow: inset 4px 0 0 #b23a2a; padding-left: .5rem; }
.bereich-frage.ampel-gruen { box-shadow: inset 4px 0 0 #2f7d4f; padding-left: .5rem; }
.hygiene-wahl .wahl-ja span, .hygiene-wahl .wahl-nein span { width: 3.4rem; font-size: .95rem; }
.hygiene-wahl .wahl-ja input:checked + span, .hygiene-wahl .wahl-nein input:checked + span { background: var(--haupt); border-color: var(--haupt); color: #fff; }
.bereich-wirkung { margin: .4rem 0 .2rem 4rem; font-weight: 600; }
.punkt { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: -1px; }
.punkt-gruen { background: #5fae2e; } .punkt-rot { background: #e30613; }
.bereich-anhang, .bereich-massnahme { margin: .4rem 0 0 4rem; }
.bereich-anhang { border: 1px solid var(--linie); border-radius: 8px; padding: .4rem .8rem; }
.bereich-anhang .haken { display: block; margin: .15rem 0; }
.bereich-massnahme summary { cursor: pointer; color: var(--haupt); }
.bereich-massnahme-felder { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem .8rem; margin-top: .4rem; }
.bereich-massnahme-felder .feld-breit { grid-column: 1 / -1; }
.bereich-massnahme-felder .feld { margin: 0; }
.bereich-erledigt { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; border-top: 1px dashed var(--linie); padding-top: .6rem; margin-top: .4rem; font-size: .9rem; }
.bereich-aktionen { display: flex; gap: 1.2rem; margin-top: 1rem; }
@media (max-width: 700px) {
  .bereich-frage-kopf { grid-template-columns: 2.6rem 1fr; } .bereich-frage-kopf .hygiene-wahl { grid-column: 2; }
  .bereich-wirkung, .bereich-anhang, .bereich-massnahme { margin-left: 0; }
  .bereich-massnahme-felder { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mutterschutz */
.mutter-seite { max-width: none; }
.mutter-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.mutter-eingabe h2 { font-size: 1.05rem; margin-top: 1.6rem; }
.mutter-eingabe textarea { width: 100%; }
.mutter-bausteine { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .5rem; }
.mutter-baustein .haken { display: block; }
.mutter-param { display: flex; gap: .5rem; align-items: center; margin: .1rem 0 .3rem 1.6rem; font-size: .9rem; }
.mutter-param input { flex: 1; }
.mutter-raster[data-art="praxis"] .nur-hausbesuch, .mutter-raster[data-art="hausbesuch"] .nur-praxis { display: none; }
.mutter-eigen { margin: .4rem 0 .8rem; } .mutter-eigen summary { cursor: pointer; color: var(--haupt); font-size: .9rem; }
.mutter-vorschau { position: sticky; top: .5rem; max-height: calc(100vh - 1rem); overflow-y: auto; }
.mutter-blatt { background: #fff; border: 1px solid var(--linie); border-radius: 6px; padding: 1.4rem 1.6rem; font-size: .88rem; line-height: 1.45; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.mutter-blatt p { margin: 0 0 .7rem; }
.mutter-titel { text-align: center; font-weight: 700; color: var(--mutter-farbe); font-size: 1rem; margin: .4rem 0 1.2rem !important; }
.mutter-ueber { color: var(--mutter-farbe); margin-top: 1rem !important; }
.mutter-eigen-marke { font-size: .72rem; background: #fff1c4; color: #6b4e00; border-radius: 4px; padding: 0 .35rem; }
@media (max-width: 1000px) { .mutter-raster { grid-template-columns: 1fr; } .mutter-vorschau { position: static; max-height: none; } }

/* ---------- Unfälle */
.unfall-hochladen { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; padding: 1rem; border: 2px dashed var(--linie); border-radius: 10px; }
.ticket-marke-melden { background: #fbe5e2; color: #9b2c1f; font-weight: 700; }
.ticket-marke-beobachten { background: #fff1c4; color: #6b4e00; }
.ticket-marke-gemeldet { background: #e3f3e8; color: #24603a; }
.ticket-marke-offen, .ticket-marke-abgeschlossen { background: #eee; color: #555; }
tr.ticket-melden td { background: #fdf3f1; }
.frist-vorbei { color: #b23a2a; }
.ticket-kopf { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; border-left: 6px solid #999; background: #f4f4f4; }
.ticket-kopf.ticket-melden { background: #fbe5e2; border-color: #b23a2a; }
.ticket-kopf.ticket-beobachten { background: #fff6da; border-color: #b7791f; }
.ticket-kopf.ticket-gemeldet { background: #e3f3e8; border-color: #2f7d4f; }
.au-zeile { display: grid; grid-template-columns: 9.5rem 9.5rem 9.5rem 1fr auto auto; gap: .4rem; align-items: center; }
.au-liste td { padding: .3rem 0; }
.unfall-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.unfall-weitere { margin: 1rem 0; } .unfall-weitere summary { cursor: pointer; color: var(--haupt); }
.menue-zahl { display: inline-block; min-width: 1.2rem; padding: 0 .3rem; margin-left: .2rem; border-radius: 999px; background: #e30613; color: #fff; font-size: .72rem; text-align: center; }
@media (max-width: 800px) { .au-zeile { grid-template-columns: 1fr 1fr; } }

/* Fahrzeugunfälle */
.fz-kopf { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin: 1rem 0 .3rem; }
.fz-suche { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 16rem; }
.fz-suche label { font-weight: 600; font-size: .92rem; }
.kennzeichen { display: inline-block; font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .04em; border: 1.5px solid #333; border-radius: 4px; padding: 0 .4rem; background: #fff; white-space: nowrap; }
tr.fz-neu td { background: #e3f3e8; }

/* Frühere Gefährdungsbeurteilungen (PDF) */
.altdok { margin: .6rem 0 .4rem; }
.altdok-liste { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-direction: column; gap: .35rem; }
.altdok-liste li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.altdok-stand { font-size: .82rem; background: #e6ecef; color: var(--haupt); border-radius: 999px; padding: .05rem .55rem; white-space: nowrap; }
.altdok-zeile { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; flex: 1; }
.altdok-zeile input[name=titel] { flex: 1; min-width: 14rem; }
.altdok-zeile input { font: inherit; font-size: .92rem; padding: .3rem .5rem; border: 1px solid #b9c0c6; border-radius: 6px; }
.altdok-stand-feld { font-size: .85rem; display: flex; align-items: center; gap: .3rem; }
.standort-dok-zahl { font-size: .82rem; }
.altdok-titel { font-size: .95rem; margin: .8rem 0 .2rem; color: var(--haupt); }

/* Betriebliche Ersthelfer */
.eh-marke-abgelaufen { background: #fbe5e2; color: #9b2c1f; font-weight: 700; }
.eh-marke-auffordern { background: #fff1c4; color: #6b4e00; font-weight: 700; }
.eh-marke-aufgefordert { background: #e6ecef; color: var(--haupt); }
.eh-marke-ohne_nachweis { background: #eee; color: #555; }
.eh-marke-gueltig { background: #e3f3e8; color: #24603a; }
tr.eh-abgelaufen td { background: #fdf3f1; }
tr.eh-auffordern td { background: #fffaea; }
.eh-details-zeile td { padding-top: 0; border-bottom: 1px solid var(--linie); background: transparent !important; }
.eh-details summary { cursor: pointer; color: var(--haupt); font-size: .88rem; }
.eh-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: .6rem 0; }
@media (max-width: 900px) { .eh-raster { grid-template-columns: 1fr; } }
.eh-raster h4 { margin: .4rem 0; font-size: .92rem; }
.eh-kurse { margin: 0 0 .5rem; padding-left: 1.1rem; font-size: .9rem; }
.eh-form { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: flex-end; margin: .3rem 0 .6rem; }
.eh-form label:not(.haken) { display: flex; flex-direction: column; font-size: .82rem; font-weight: 600; gap: .2rem; }
.eh-form input:not([type=checkbox]), .eh-form select { font: inherit; font-size: .9rem; padding: .35rem .5rem; border: 1px solid #b9c0c6; border-radius: 6px; background: #fff; }
.eh-neu { padding: .8rem; border: 1px dashed var(--linie); border-radius: 10px; }
.eh-hinweis-faellig { color: #8a5a00; font-weight: 600; }

/* Ampel (Brandschutz, Ersthelfer) */
.ampel-liste { list-style: none; margin: .4rem 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.ampel-punkt { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .2rem .7rem .2rem .45rem; font-size: .84rem; border: 1px solid transparent; }
.ampel-punkt a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.ampel-punkt a:hover strong { text-decoration: underline; }
.ampel-licht { width: .8rem; height: .8rem; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.ampel-gruen { background: #e3f3e8; color: #1f5a34; } .ampel-gruen .ampel-licht { background: #2f9e57; }
.ampel-gelb { background: #fff4cf; color: #6b4e00; } .ampel-gelb .ampel-licht { background: #f2b705; }
.ampel-rot { background: #fbe5e2; color: #8f2a1d; } .ampel-rot .ampel-licht { background: #d13b2a; }
.ampel-grau { background: #eef0f2; color: #555; } .ampel-grau .ampel-licht { background: #a7adb3; }
.ampel-text { font-weight: 400; }
.ampel-einzeln { white-space: nowrap; }
tr.bs-rot td { background: #fdf3f1; } tr.bs-gelb td { background: #fffaea; }
.bs-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.bs-kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .8rem 1rem; }
.bs-kachel h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.bs-kachel-breit { margin: 1rem 0; }
.bs-aktionen { display: flex; flex-direction: column; gap: .2rem; margin: .4rem 0; }
.bs-gf { align-items: center; padding: .45rem .6rem; border-left: 4px solid #e0a800; background: #fff8e1; border-radius: 6px; }
.bs-gf-stand { font-size: .88rem; }
.bs-gf-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-end; }
.bs-gf .klein-knopf { white-space: normal; text-align: left; }
.standort-ampel { margin: .2rem 0 .6rem; }

/* Hygiene: Planung, frühere Begehungen */
.hygiene-planen { margin: .5rem 0; }
.hygiene-planen summary { cursor: pointer; color: var(--haupt); font-size: .9rem; }
.hygiene-planen input[type=number] { width: 6rem; }
.hygiene-notiz { flex: 1 1 100%; }
.hygiene-notiz textarea { width: 100%; font: inherit; font-size: .9rem; padding: .35rem .5rem; border: 1px solid #b9c0c6; border-radius: 6px; }
tr.hygiene-frueher td { background: #f7f8f9; }
.hygiene-notiz-text { font-size: .9rem; }

/* Geräteprüfungen */
.geraete-katalog { margin: 1rem 0; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .6rem 1rem; }
.geraete-katalog summary { cursor: pointer; color: var(--haupt); font-weight: 600; }
.geraete-katalog dt { font-weight: 700; margin-top: .6rem; }
.geraete-katalog dd { margin: .2rem 0 0 0; font-size: .9rem; }
.geraete-tabelle td:first-child, .geraete-tabelle th:first-child { width: 8.5rem; }
.eh-form input.schmal { width: 5.5rem; }
.geraete-tabelle { table-layout: fixed; }
.geraete-tabelle th:nth-child(2) { width: 12rem; } .geraete-tabelle th:nth-child(4) { width: 11rem; }
.geraete-tabelle th:nth-child(5) { width: 6.5rem; } .geraete-tabelle th:nth-child(6) { width: 6.5rem; }
.geraete-tabelle td { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.geraete-tabelle .ampel-einzeln { white-space: normal; border-radius: .6rem; align-items: flex-start; line-height: 1.25; hyphens: manual; -webkit-hyphens: manual; }
.geraete-tabelle .ampel-einzeln .ampel-licht { margin-top: .2rem; }
.geraete-aktion { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.geraet-vorschlag { flex: 1 1 100%; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; font-size: .9rem; min-height: 1.2rem; }
.feld-bezeichnung input { min-width: 18rem; }
.pruef-auswahl { list-style: none; padding: 0; margin: .3rem 0 1rem; display: flex; flex-direction: column; gap: .3rem; }
.pauschal-haken { display: block; padding: .7rem 1rem; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; margin: .5rem 0 1rem; }
.anbieter-mini { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.anbieter-wahl { border: 1px solid var(--linie); border-radius: 8px; padding: .5rem .8rem; margin: .6rem 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.anbieter-wahl legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }
.anbieter-kachel p { margin: .35rem 0; }
.anbieter-gebiet { font-weight: 600; }
.anbieter-neu { outline: 2px solid #2f9e57; }
.anbieter-logo { max-height: 3rem; max-width: 12rem; object-fit: contain; display: block; margin-bottom: .3rem; }

/* ASA-Sitzungen */
.asa-firma { margin: 1rem 0; }
.asa-felder { display: flex; flex-direction: column; gap: .8rem; margin: .8rem 0; }
.asa-felder label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; }
.asa-felder textarea { font: inherit; font-weight: 400; font-size: .95rem; padding: .5rem .6rem; border: 1px solid #b9c0c6; border-radius: 6px; resize: vertical; }
.asa-knoepfe { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
tr.asa-geplant td { background: #f3f7fb; }
.asa-loeschen { margin-top: 2rem; }
.bereich-abgleich .abgleich-liste { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.bereich-abgleich .abgleich-liste li { background: var(--karte); border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .8rem; }
.bereich-dateien-titel { margin: .8rem 0 .2rem; font-size: .95rem; }
tr.postfach-neu td { font-weight: 600; background: #f3f7fb; }

/* Vorschlag aus einer hochgeladenen PDF */
.vorschlag-box { border: 1px solid #b9d3ea; border-left: 5px solid #2b6cb0; background: #f1f7fd; border-radius: .5rem; padding: .9rem 1.1rem; margin: 1rem 0 1.4rem; }
.vorschlag-box p { margin: .3rem 0; }
.vorschlag-gelesen, .vorschlag-hinweise { margin: .3rem 0 .6rem 1.2rem; padding: 0; }
.vorschlag-hinweise li { color: #7a4a00; }

/* Standortliste: was offen ist – was gilt */
.standort-status { min-width: 22rem; }
.standort-status .ampel-liste { margin: 0 0 .4rem; }
.status-gueltig { margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .82rem; }
.gueltig-chip { display: inline-flex; align-items: center; gap: .3rem; background: #e3f3e8; color: #1f5a34; border-radius: 999px; padding: .1rem .55rem .1rem .35rem; text-decoration: none; }
.gueltig-chip .ampel-licht { background: #2f9e57; width: .65rem; height: .65rem; }
.altdok-vorschlag { flex-basis: 100%; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .9rem;
  background: #fff8e1; border: 1px solid #f0d98c; border-radius: 6px; padding: .3rem .6rem; margin: .3rem 0; }
.typenschild-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .4rem 0; }
.erkannter-text { white-space: pre-wrap; font-size: .85rem; background: #f6f7f8; padding: .5rem; border-radius: 6px; max-height: 14rem; overflow: auto; }
.htmx-indicator { display: none; } .htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }
.praxen-box { border: 1px solid #d5dbe0; border-radius: 8px; padding: .5rem .9rem; margin-bottom: 1rem; }
.praxen-box > summary { cursor: pointer; font-weight: 600; }
.praxen-liste { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .45rem; }
.praxen-liste .gb-haken { list-style: none; margin: .2rem 0 0 1.7rem; padding: 0; font-size: .92rem; }
.praxis-haken input, .gb-haken input, .haken-zeile input { margin-right: .4rem; }
.uebernahme-vorschau { background: #f6f8fa; border-radius: 6px; padding: .5rem .8rem; margin: .5rem 0 .8rem; font-size: .93rem; }
.uebernahme-vorschau ul { margin: .2rem 0 .4rem 1.1rem; padding: 0; }
.haken-zeile { display: block; margin-top: .8rem; font-weight: normal; }
/* Eingang */
.eingang-zone { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 2rem 1rem; border: 2px dashed #9fb0bf;
  border-radius: 10px; cursor: pointer; text-align: center; background: #fafbfc; }
.eingang-zone.ueber { background: #eef5fb; border-color: #3b7bbf; }
.eingang-laeuft { display: none; } .eingang-upload.laeuft .eingang-laeuft { display: block; }
.eingang-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .eingang-raster { grid-template-columns: 1fr; } }
.eingang-vorschau iframe { width: 100%; height: 70vh; border: 1px solid #d5dbe0; border-radius: 8px; }
.eingang-vorschau img { max-width: 100%; max-height: 70vh; border: 1px solid #d5dbe0; border-radius: 8px; display: block; }
.eingang-form fieldset { border: 1px solid #d5dbe0; border-radius: 8px; padding: .5rem .9rem .7rem; margin: 0 0 .8rem; }
.eingang-form [hidden] { display: none !important; }
.eingang-form legend { font-weight: 600; padding: 0 .3rem; }
.eingang-form label { display: block; margin: .3rem 0; }
.eingang-form input:not([type=radio]):not([type=checkbox]), .eingang-form select { font: inherit; padding: .3rem .5rem; border: 1px solid #b9c0c6; border-radius: 6px; max-width: 100%; }
.eingang-art { display: flex !important; gap: .5rem; align-items: flex-start; padding: .25rem 0; }
.eingang-art input { margin-top: .3rem; }
.eingang-neu { display: flex; gap: .5rem; flex-wrap: wrap; margin-left: 1.5rem; }
.inline-haken { display: inline-block !important; margin-right: .8rem !important; }
.internet-suche-zeile { display: flex; gap: .5rem; flex-wrap: wrap; margin: .4rem 0 .2rem; }
.doppelt-box { background: #fdecea; border-color: #e8a29a; }
.doppelt-box ul { margin: .3rem 0 .4rem 1.1rem; padding: 0; }
.handy-zeile { margin: .2rem 0 .8rem; }
.handy-anleitung .schritte { padding-left: 1.3rem; display: grid; gap: .5rem; }
.handy-anleitung code { font-size: .85rem; background: #f3f5f7; padding: .1rem .3rem; border-radius: 4px; word-break: break-all; }
.bg-bestaetigt { background: #e3f3e8; border-left: 4px solid #2f7d4f; border-radius: 6px; padding: .6rem 1rem; margin: .6rem 0; }
.bg-hochladen { margin: .4rem 0 1rem; }

/* ======================================================= Kopf: Hauptreiter mit Unterreitern, Hauptmenü, Suche */
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.leiste { gap: 1rem; justify-content: flex-start; position: relative; z-index: 50; }
.hm-schalter { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; border-radius: 6px;
  font-size: 1.25rem; line-height: 1; padding: .35rem .55rem; cursor: pointer; }
.hm-schalter:hover, .hm-schalter[aria-expanded="true"] { background: rgba(255,255,255,.15); }
.kopfreiter { display: flex; gap: .2rem; flex-wrap: wrap; flex: 1; }
.kopfreiter-gruppe { position: relative; }
.kopfreiter-kopf { background: transparent; border: 0; color: #fff; font: inherit; font-size: .95rem; padding: .55rem .8rem;
  border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: .3rem; }
.kopfreiter-gruppe.aktiv > .kopfreiter-kopf { background: rgba(255,255,255,.18); font-weight: 700; }
.kopfreiter-kopf:hover, .kopfreiter-gruppe.offen > .kopfreiter-kopf { background: rgba(255,255,255,.22); }
.kopfreiter-pfeil { font-size: .7rem; opacity: .8; }
.kopfreiter-unter { display: none; position: absolute; left: 0; top: 100%; min-width: 19rem; background: #fff; color: #1f2933;
  border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: .4rem; z-index: 60; }
.kopfreiter-gruppe:hover > .kopfreiter-unter, .kopfreiter-gruppe.offen > .kopfreiter-unter, .kopfreiter-gruppe:focus-within > .kopfreiter-unter { display: block; }
.kopfreiter-gruppe::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .4rem; }  /* Maus-Brücke */
.leiste .kopfreiter-unter a { display: block; color: #1f2933; font-weight: 400; padding: .5rem .7rem; border-radius: 6px; }
.leiste .kopfreiter-unter a:hover, .leiste .kopfreiter-unter a:focus { background: #eef3f5; outline: none; }
.leiste .kopfreiter-unter a.aktiv { background: #e6ecef; }
.kopfreiter-titel { display: block; font-weight: 700; color: var(--haupt); }
.kopfreiter-text { display: block; font-size: .8rem; color: #5f6b76; }

.suche { position: relative; margin-left: auto; }
.suche input { width: 16rem; max-width: 40vw; padding: .45rem .7rem; border-radius: 6px; border: 0; font: inherit; font-size: .9rem; }
.such-vorschlaege { position: absolute; right: 0; top: calc(100% + .3rem); width: 26rem; max-width: 90vw; max-height: 70vh; overflow: auto;
  background: #fff; color: #1f2933; border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.2); z-index: 70; }
.such-vorschlaege:empty { display: none; }
.sv-gruppe { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #5f6b76; padding: .6rem .8rem .2rem; }
.leiste .sv-treffer, .leiste .sv-alle { display: block; color: #1f2933; font-weight: 400; padding: .4rem .8rem; }
.sv-treffer strong { display: block; color: var(--haupt); font-size: .9rem; }
.sv-treffer span { display: block; font-size: .78rem; color: #5f6b76; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leiste .sv-treffer:hover, .leiste .sv-treffer.gewaehlt, .leiste .sv-alle:hover, .leiste .sv-alle.gewaehlt { background: #eef3f5; }
.leiste .sv-alle { border-top: 1px solid #e6ecef; font-size: .85rem; color: var(--haupt); }
.sv-leer { padding: .7rem .8rem; margin: 0; font-size: .88rem; }

.hauptmenue { position: fixed; left: 0; top: var(--kopf-hoehe, 4.6rem); bottom: 0; width: 15rem; overflow: auto; background: #f4f7f8;
  border-right: 1px solid #dde4e8; padding: .8rem .6rem; z-index: 40; }
body.mit-hauptmenue main, body.mit-hauptmenue .fuss { margin-left: 15rem; }
.hm-gruppe summary { cursor: pointer; font-weight: 700; color: var(--haupt); padding: .4rem .5rem; border-radius: 6px; }
.hm-gruppe summary:hover { background: #e6ecef; }
.hm-gruppe ul { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 .6rem; }
.hm-gruppe a { display: block; padding: .3rem .5rem; border-radius: 6px; text-decoration: none; color: #1f2933; font-size: .92rem; }
.hm-gruppe a:hover { background: #e6ecef; }
.hm-gruppe a.aktiv { background: var(--haupt); color: #fff; }
.suche-gross { display: flex; gap: .5rem; margin: 1rem 0 1.5rem; }
.suche-gross input { flex: 1; padding: .6rem .8rem; font: inherit; }
.such-liste { padding-left: 1.2rem; }
.such-liste li { margin: .3rem 0; }
@media (max-width: 900px) {
  body.mit-hauptmenue main, body.mit-hauptmenue .fuss { margin-left: 0; }
  .hauptmenue { width: 80vw; box-shadow: 4px 0 20px rgba(0,0,0,.2); }
  .kopfreiter { display: none; }               /* schmales Fenster: Reiter über ☰ */
  .leiste { flex-wrap: wrap; }
  .suche input { width: 9rem; }
}
@media print { .hauptmenue, .kopfreiter, .suche, .hm-schalter { display: none !important; } body.mit-hauptmenue main { margin-left: 0; } }
.inline-form { display: inline; margin-left: .6rem; }
.fall-abschluss { margin: 1rem 0; }
.abschluss-knoepfe { display: grid; gap: .6rem; }
.abschluss-knoepfe form { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.krank-angabe { margin: .5rem 0 1rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.akte-hochladen { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .6rem 0 1.2rem; }
.akte-art select { font-size: .85rem; }
.abgleich-felder { display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0; }
.abgleich-feld { border: 1px solid var(--linie); border-radius: 8px; padding: .45rem .6rem; background: #fff; }
.abgleich-feld.abgleich-aendern { background: #fff6da; }
.abgleich-feld label.abgleich-kopf { display: flex; gap: .45rem; align-items: baseline; flex-wrap: wrap; margin: 0 0 .3rem; }
.abgleich-bisher { font-size: .9rem; margin: 0 0 .3rem; overflow-wrap: anywhere; white-space: pre-line; }
.abgleich-feld textarea { display: block; width: 100%; box-sizing: border-box; font: inherit; padding: .3rem .5rem; border: 1px solid #b9c0c6;
  border-radius: 6px; resize: vertical; field-sizing: content; min-height: 2.3rem; line-height: 1.35; }
.fall-wahl { display: flex; gap: .5rem; align-items: flex-start; margin: .35rem 0; }
.fall-block { margin: .6rem 0; }
.krank-frage label { display: block; margin: .25rem 0; }
.krank-frage input[type=date] { width: auto; display: inline-block; }
.hygiene-notiz { grid-column: 2 / 4; }
.notiz-ticket { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; font-size: .85rem; margin-top: .25rem; }
.notiz-ticket input[type=date] { width: auto; padding: .1rem .3rem; font-size: .85rem; }
.abschnitt-notiz { margin: .6rem 0 1.4rem; }
.abschnitt-notiz textarea { width: 100%; }
.abschnitt-notiz label { font-weight: 600; font-size: .9rem; }
.ok-marke { background: #e3f3e8; color: #2f7d4f; }
@media (max-width: 700px) { .hygiene-notiz { grid-column: 2; } }
.bestaetigung { border-left: 4px solid var(--linie); padding: .4rem .8rem; margin: .6rem 0 1rem; background: #fafbfc; border-radius: 6px; }
.bestaetigung.bs-rot { border-left-color: #b23a2a; }
.bestaetigung.bs-gelb { border-left-color: #b7791f; }
.bestaetigung.bs-gruen { border-left-color: #2f7d4f; }
.bestaetigung-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.bestaetigung-form input[name=bemerkung] { flex: 1; min-width: 12rem; }
.bestaetigung-verlauf ul { margin: .3rem 0; }
.empfehlung-form { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .9rem; margin: .5rem 0 1.2rem; }
.empfehlung-form .feld-breit, .empfehlung-form fieldset { grid-column: 1 / -1; }
.empfehlung-form button { grid-column: 1 / -1; justify-self: start; }
.empfehlung-form input:not([type=checkbox]), .empfehlung-form textarea { width: 100%; box-sizing: border-box; }
.empfehlung-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.empfehlung-form .inline-haken { display: inline-flex; flex-direction: row; margin-right: .8rem; }
.empfehlung { border: 1px solid var(--linie); border-left: 4px solid #b7791f; border-radius: 8px; padding: .7rem 1rem; margin: .8rem 0; background: #fff; }
.empfehlung h3 { margin: 0 0 .3rem; }
.empfehlung-erledigt { display: flex; gap: .6rem; flex-wrap: wrap; margin: .5rem 0; }
.empfehlung-erledigt input { flex: 1; min-width: 14rem; }
@media (max-width: 700px) { .empfehlung-form { grid-template-columns: 1fr; } }
.tipp { border: 1px solid var(--linie); border-left: 4px solid var(--haupt); border-radius: 8px; padding: .7rem 1rem; margin: .8rem 0; background: #fff; }
.tipp h3 { margin: 0 0 .4rem; }
.tipp-text ul { padding-left: 1.2rem; }
.tipp-text li { margin: .2rem 0; }
.produkt-tipps details.tipp summary { cursor: pointer; font-weight: 700; color: var(--haupt); }
.empfehlung-form select[multiple] { width: 100%; }
.unterweisung-frage { border-left: 4px solid var(--linie); background: #fafbfc; border-radius: 6px; padding: .5rem .9rem; margin: .8rem 0 1rem; }
.unterweisung-frage.bs-gruen { border-left-color: #2f7d4f; }
.unterweisung-frage.bs-rot { border-left-color: #b23a2a; }

/* Aktuelle Mängel je Praxis (Hygiene-Übersicht) */
.maengel { margin: .8rem 0; }
.maengel h3 { margin: .4rem 0 .5rem; font-size: 1.05rem; }
.mangel { border: 1px solid var(--linie); border-left: 4px solid #b23a2a; border-radius: 8px; padding: .5rem .7rem; margin: .45rem 0; background: #fff; }
.mangel.bs-gruen { border-left-color: #2f7d4f; background: #f4faf6; }
.mangel.bs-gelb { border-left-color: #c58a12; }
.mangel-kopf { display: flex; gap: .4rem; align-items: baseline; flex-wrap: wrap; }
.mangel-form textarea { width: 100%; font: inherit; font-size: .9rem; padding: .35rem .5rem; border: 1px solid #b9c0c6; border-radius: 6px; margin-top: .35rem; }
.mangel-zeile { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .3rem; }
.mangel-behoben { margin: .3rem 0; }
.gegenkontrolle ul { margin: .3rem 0 0 1.1rem; }
.mangel.bs-grau { border-left-color: #a7adb3; }

.maschinenschrift { font-family: 'Courier New', Courier, monospace; font-size: 1.05em; }
.mp-form { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: flex-end; margin: .4rem 0; }
.mp-form label { display: flex; flex-direction: column; font-size: .82rem; font-weight: 600; gap: .2rem; }
.mp-form input { font: inherit; padding: .35rem .5rem; border: 1px solid #b9c0c6; border-radius: 6px; }
.bereich-neu select.bereich-quelle { flex: 1 1 100%; }
.bereich-abgleich .abgleich-knoepfe { display: flex; gap: .8rem; align-items: center; margin-top: .4rem; }
.bereich-frage, .bereich-abschnitt { scroll-margin-top: 4.5rem; }
.eingabe-schmal { max-width: 7rem; }

/* ======================================================= Auffrischung 0.58: moderneres Erscheinungsbild */
:root {
  --flaeche: #f3f5f9;
  --linie: #dde3ea;
  --schatten: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .06);
  --schatten-hoch: 0 10px 30px rgba(16, 24, 40, .14);
  --rund: 14px;
}
body { background: radial-gradient(1200px 500px at 100% -10%, rgba(232, 112, 26, .07), transparent 60%), var(--flaeche); }
h1 { letter-spacing: -.01em; }
h2 { color: var(--haupt); letter-spacing: -.005em; }

/* Kopfleiste: Verlauf und Akzentlinie (nicht „sticky“ – sonst verdeckt sie Sprungziele und die mitlaufenden Ergebnisleisten) */
.leiste { position: relative; z-index: 50;
  background: linear-gradient(100deg, var(--haupt) 0%, color-mix(in srgb, var(--haupt) 82%, #3b5b8c) 100%);
  box-shadow: 0 2px 0 var(--akzent), 0 6px 20px rgba(16, 24, 40, .18); }
.leiste-logo { filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.kopfreiter-kopf { border-radius: 999px; transition: background .15s; }
.kopfreiter-gruppe.aktiv > .kopfreiter-kopf { background: rgba(255,255,255,.16); box-shadow: inset 0 -2px 0 var(--akzent); }
.kopfreiter-unter { border-radius: 12px; box-shadow: var(--schatten-hoch); border: 1px solid var(--linie); overflow: hidden; }
.kopfreiter-unter a:hover { background: color-mix(in srgb, var(--akzent) 8%, #fff); }
.suche input { border-radius: 999px; padding-left: 1rem; background: rgba(255,255,255,.95); box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
.menue-zahl { background: var(--akzent); }

/* Knöpfe */
.knopf { border-radius: 10px; box-shadow: 0 1px 2px rgba(16,24,40,.12), 0 3px 8px color-mix(in srgb, var(--haupt) 22%, transparent);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s; }
.knopf:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--haupt) 28%, transparent); filter: brightness(1.15); }
.knopf:active { transform: translateY(0); }
.klein-knopf, .leise-knopf { border-radius: 8px; transition: background .12s, color .12s; }
.klein-knopf:hover { background: color-mix(in srgb, var(--haupt) 14%, #fff); }

/* Karten, Tabellen, Kästen */
.karte, .tipps, .hygiene-standort, .leer-gross { border-radius: var(--rund); box-shadow: var(--schatten); border-color: var(--linie); }
.karte { transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.karte:hover { transform: translateY(-2px); box-shadow: var(--schatten-hoch); border-color: color-mix(in srgb, var(--akzent) 60%, var(--linie)); }
.liste { border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten); border-color: var(--linie); border-collapse: separate; border-spacing: 0; }
.liste th { background: color-mix(in srgb, var(--haupt) 6%, #fff); text-transform: uppercase; letter-spacing: .04em; font-size: .74rem; }
.liste tbody tr:hover > td { background: color-mix(in srgb, var(--haupt) 3%, #fff); }
.liste tr:last-child > td { border-bottom: 0; }
.hinweis { border-radius: 12px; border-left-color: var(--akzent); box-shadow: var(--schatten); background: #fff; }
.hinweis-box { border-radius: 12px; }
.tipps { border-top: 3px solid var(--akzent); }

/* Eingabefelder */
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  border: 1px solid var(--linie); border-radius: 8px; padding: .4rem .6rem; font: inherit; background: #fff;
  transition: border-color .12s, box-shadow .12s; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 22%, transparent); }
.suche input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 45%, transparent); }

.fuss { opacity: .85; }

/* ------------------------------------------------------- Startseite */
body.startseite { background: var(--flaeche); }
.start-held { position: relative; overflow: hidden; padding: 0 1.25rem 3rem; }
.start-band { position: absolute; inset: 0 0 auto 0; height: 23rem; overflow: hidden;
  background: linear-gradient(125deg, var(--haupt) 0%, color-mix(in srgb, var(--haupt) 75%, #3b5b8c) 60%, color-mix(in srgb, var(--haupt) 60%, #4d6fa3) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
.start-kreis { position: absolute; border-radius: 50%; filter: blur(2px); }
.start-kreis.k1 { width: 30rem; height: 30rem; right: -8rem; top: -12rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--akzent) 55%, transparent), transparent 65%); animation: schweben 9s ease-in-out infinite alternate; }
.start-kreis.k2 { width: 22rem; height: 22rem; left: -6rem; bottom: -10rem;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); animation: schweben 11s ease-in-out infinite alternate-reverse; }
.start-raster { position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
@keyframes schweben { from { transform: translate(0, 0); } to { transform: translate(-2.5rem, 1.5rem); } }
.start-inhalt { position: relative; max-width: 50rem; margin: 0 auto; padding-top: 4.5rem; text-align: center;
  animation: einblenden .6s ease-out both; }
@keyframes einblenden { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.start-logo-karte { background: #fff; border-radius: 22px; padding: 2.2rem 2.8rem; display: inline-block; max-width: 100%;
  box-shadow: 0 24px 60px rgba(10, 20, 40, .28), 0 0 0 1px rgba(255,255,255,.6); }
.start-logo { width: 100%; max-width: 34rem; max-height: 10rem; object-fit: contain; display: block; }
.start-titel { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 2.4rem 0 .3rem; color: var(--haupt); font-weight: 700; line-height: 1.1; }
.start-slogan { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--text-leise); margin: 0 0 2.2rem; }
.start-slogan::after { content: ""; display: block; width: 4rem; height: 4px; border-radius: 4px; margin: 1.2rem auto 0; background: var(--akzent); }
.start-titel + .start-knopf { margin-top: 2rem; }
.start-knopf { font-size: 1.3rem; padding: 1rem 2.8rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--akzent), color-mix(in srgb, var(--akzent) 75%, #c0392b));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--akzent) 45%, transparent); }
.start-knopf span { display: inline-block; transition: transform .2s; }
.start-knopf:hover { filter: brightness(1.06); box-shadow: 0 14px 34px color-mix(in srgb, var(--akzent) 55%, transparent); }
.start-knopf:hover span { transform: translateX(5px); }
.start-sicher { color: var(--text-leise); font-size: .85rem; margin-top: 1.2rem; }
.start-bereiche { max-width: 66rem; margin: 0 auto 3rem; padding: 0 1.25rem; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.start-kachel { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: #fff;
  text-decoration: none; color: var(--text); border: 1px solid var(--linie); box-shadow: var(--schatten); position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease; animation: einblenden .5s ease-out both; animation-delay: calc(.25s + var(--i) * .06s); }
.start-kachel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--haupt); transition: background .18s; }
.start-kachel:hover { transform: translateY(-3px); box-shadow: var(--schatten-hoch); }
.start-kachel:hover::before { background: var(--akzent); }
.start-kachel-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.start-kachel-kopf strong { color: var(--haupt); font-size: 1.1rem; }
.start-kachel-text { font-size: .82rem; color: var(--text-leise); line-height: 1.4; }
.start-offen { background: color-mix(in srgb, var(--akzent) 14%, #fff); color: color-mix(in srgb, var(--akzent) 70%, #000);
  border-radius: 999px; padding: .05rem .6rem; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.start-ok { color: #2e7d4f; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .start-kreis, .start-inhalt, .start-kachel { animation: none; }
  .knopf, .karte, .start-kachel { transition: none; }
}
.start-titel { text-wrap: balance; }
.start-strich { display: block; width: 4rem; height: 4px; border-radius: 4px; margin: 1.3rem auto 2.2rem; background: var(--akzent); }
@media (max-width: 700px) {
  .start-band { height: 12.5rem; }
  .start-inhalt { padding-top: 2.5rem; }
  .start-logo-karte { padding: 1.2rem 1.4rem; border-radius: 18px; }
  .start-titel { margin-top: 2rem; }
}

/* ------------------------------------------------------- Anmelden, Einladung, Zugänge (Online-Betrieb) */
.anmelde-inhalt { max-width: 30rem; padding-top: 3.5rem; }
.anmelde-karte { display: block; text-align: left; padding: 2rem 2.2rem; }
.anmelde-logo { max-height: 5.5rem; margin: 0 auto 1.2rem; }
.anmelde-name { display: block; text-align: center; font-size: 1.3rem; color: var(--haupt); }
.anmelde-karte h1 { font-size: 1.6rem; margin: .2rem 0 1rem; }
.anmelde-form { display: flex; flex-direction: column; gap: .9rem; margin: 1rem 0; }
.anmelde-form label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .92rem; }
.anmelde-form input { font-size: 1.05rem; padding: .6rem .7rem !important; }
.anmelde-form .start-knopf { font-size: 1.1rem; padding: .8rem 1.5rem; margin-top: .4rem; width: 100%; }
.fehler-box { background: #fbe5e2; border-left-color: #b3261e; }
.link-karte { background: #fff; border: 2px solid var(--akzent); border-radius: var(--rund); padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; box-shadow: var(--schatten); }
.link-karte h2 { margin: 0 0 .3rem; }
.link-zeile { display: flex; gap: .5rem; flex-wrap: wrap; }
.link-zeile input { flex: 1 1 18rem; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.fuss-konto { margin-left: .2rem; }
@media (max-width: 700px) { .anmelde-karte { padding: 1.3rem 1.2rem; } .zugaenge-seite .liste { display: block; overflow-x: auto; } }
