/* Vier eigenständige Werkzeuge mit eigener Gestaltung. Keine Abhängigkeit vom Portal. */
/* ---- Online-Berater (erfundener Badbetrieb) ---- */
.berater-app { overflow: hidden; border: 1px solid #cfe1e3; border-radius: 13px; background: #f6fafa; }
.berater-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; background: #1f4b52; color: #fff; }
.berater-marke { font-size: 17px; font-weight: 600; letter-spacing: .14em; }
.berater-marke span { display: block; margin-top: 4px; color: #cfe4e6; font-size: 11px; font-weight: 400; letter-spacing: .03em; }
.berater-kopf .demo-klein { color: #cfe4e6; }
.berater-raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px; }
.berater-form { min-width: 0; padding: 26px; border: 1px solid #d3e3e5; border-radius: 11px; background: #fff; }
.demo-sammlung .berater-frage { margin-bottom: 24px; }
.demo-sammlung .berater-frage legend { display: flex; gap: 10px; margin-bottom: 12px; color: #1f3d42; font-size: 15px; }
.berater-frage legend span { color: #2a6b73; font: 600 13px/1.7 var(--schrift-mono); }
.berater-optionen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.demo-sammlung .berater-option { display: flex; gap: 10px; margin: 0; padding: 12px; border: 1px solid #d3e3e5; border-radius: 8px; color: #1f3d42; cursor: pointer; }
.demo-sammlung .berater-option:has(input:checked) { border-color: #2a6b73; background: #edf6f7; box-shadow: inset 0 0 0 1px #2a6b73; }
.demo-sammlung .berater-option input { accent-color: #2a6b73; }
.berater-option strong { display: block; font-size: 13px; font-weight: 600; }
.berater-option small { display: block; margin-top: 4px; color: #4d6a6e; font-size: 11px; line-height: 1.5; }
.berater-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.berater-fuss > span { color: #4d6a6e; font-size: 12px; }
.berater-app .knopf--haupt { border-color: #2a6b73; background: #2a6b73; }
.berater-app .knopf--haupt:hover { border-color: #1f5259; background: #1f5259; }
.berater-platzhalter, .berater-ergebnis { padding: 26px; border: 1px solid #d3e3e5; border-radius: 11px; background: #fff; }
.berater-platzhalter h3, .berater-ergebnis h3 { margin: 10px 0; color: #1f3d42; font-size: 23px; font-weight: 600; letter-spacing: -.03em; }
.berater-platzhalter p, .berater-ergebnis > p { color: #4d6a6e; font-size: 14px; line-height: 1.8; }
.berater-daten { display: grid; gap: 0; margin: 18px 0; }
.berater-daten div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #e3eeef; font-size: 13px; }
.berater-daten dt { color: #4d6a6e; }
.berater-daten dd { margin: 0; color: #1f3d42; font-weight: 500; }
.berater-anfrage { margin-top: 18px; padding: 18px; border-left: 4px solid #2a6b73; border-radius: 8px; background: #edf6f7; }
.berater-anfrage h4 { margin: 0 0 6px; color: #1f3d42; font-size: 15px; }
.berater-ergebnis:focus-visible, .berater-anfrage:focus-visible { outline: 3px solid #2a6b73; outline-offset: 4px; }
/* ---- Auslosung ---- */
.los-app { overflow: hidden; border: 1px solid #e2d6ea; border-radius: 13px; background: #fbf8fd; }
.los-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid #e8deef; background: #fff; }
.los-kopf h3 { margin: 6px 0 0; color: #3f2a4a; font-size: 20px; font-weight: 600; }
.los-zaehler { padding: 6px 12px; border-radius: 999px; background: #f0e6f5; color: #5b4566; font-size: 12px; white-space: nowrap; }
.los-raster { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding: 28px; }
.los-buehne { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 360px; padding: 30px; border-radius: 12px; background: #3f2a4a; color: #f3eaf7; text-align: center; }
.los-anzeige { min-height: 1.3em; margin: 0 0 12px; color: #fff; font: 600 clamp(30px, 4vw, 46px)/1.2 Georgia, serif; }
.los-app--zieht .los-anzeige { color: #e7d4f0; }
.los-ergebnis { min-height: 3.4em; max-width: 440px; margin: 0 0 18px; color: #f3eaf7; font-size: 15px; line-height: 1.7; }
.los-ergebnis:focus-visible { outline: 3px solid #e7d4f0; outline-offset: 4px; }
.los-steuerung { width: min(380px, 100%); }
.demo-sammlung .los-steuerung label { margin-top: 0; color: #e7d4f0; text-align: left; }
.los-buehne .demo-fein { max-width: 440px; margin: 16px 0 0; color: #d9c7e2 !important; }
.demo-sammlung .los-app .knopf--haupt { border-color: #f3eaf7; background: #f3eaf7; color: #3f2a4a; }
.demo-sammlung .los-app .knopf--haupt:hover { border-color: #e7d4f0; background: #e7d4f0; }
.los-seite h4 { margin: 0 0 12px; color: #3f2a4a; font-size: 15px; }
.los-seite h4 + .los-protokoll { margin-top: 0; }
.los-teilnehmer { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; }
.los-teilnehmer li { padding: 6px 11px; border: 1px solid #e2d6ea; border-radius: 999px; background: #fff; color: #5b4566; font-size: 12px; }
.los-teilnehmer .gewonnen { border-color: #674978; background: #674978; color: #fff; }
.los-marke { font-size: 11px; }
.los-seite form { margin-bottom: 22px; }
.demo-sammlung .los-seite label { margin-top: 0; }
.los-protokoll { display: grid; gap: 8px; margin: 0; padding: 0 0 0 20px; color: #5b4566; font-size: 12px; line-height: 1.6; }
.los-protokoll .demo-leer { margin-left: -20px; }
/* ---- Zeiterfassung ---- */
.zeit-auswahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.demo-sammlung .zeit-auswahl label { margin-top: 0; color: #c6d4e3; }
.demo-sammlung .zeit-app h4 { margin: 24px 0 4px; color: #273c57; font-size: 14px; }
.zeit-summe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid #e7edf4; }
.zeit-summe strong { color: #34465f; font-size: 14px; font-weight: 500; }
.zeit-wert { color: #273c57; font: 500 13px var(--schrift-mono); white-space: nowrap; }
.zeit-balken { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #edf2f8; }
.zeit-balken i { display: block; width: var(--anteil, 0); height: 100%; border-radius: 4px; background: #155eef; }
.zeit-gesamt { margin: 14px 0 0; color: #34465f !important; }
.zeit-links { display: grid; gap: 24px; min-width: 0; }
.zeit-links > .demo-flaeche { margin-bottom: 0; }
.demo-sammlung .zeit-nachtrag legend { margin-bottom: 4px; font-size: 14px; }
.zeit-nachtrag .demo-formzeile input { max-width: 110px; }
.zeit-einheit { color: #526172; font-size: 13px; }
/* ---- Kennzahlen ---- */
.kennzahl-filter { display: flex; gap: 12px; }
.demo-sammlung .kennzahl-filter label { margin-top: 0; }
.kennzahl-kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kennzahl-kacheln small { display: block; margin-top: 6px; color: #526172; font-size: 11px; }
.kennzahl-raster { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.kennzahl-diagramm { margin: 0; }
.kennzahl-flaeche { position: relative; }
.kennzahl-gitter { stroke: #e1e8f2; stroke-width: 1; }
.kennzahl-grundlinie { stroke: #9fb0c6; stroke-width: 1; }
.kennzahl-achse { fill: #526172; font: 11px var(--schrift, sans-serif); }
.kennzahl-wert { fill: #273c57; font: 600 12px var(--schrift, sans-serif); }
.kennzahl-balken { fill: #155eef; }
.kennzahl-balken.aktiv { fill: #0f47b8; }
.kennzahl-treffer { fill: transparent; cursor: default; }
.kennzahl-tooltip { position: absolute; left: var(--x, 50%); top: var(--y, 50%); z-index: 2; display: grid; gap: 2px; padding: 8px 11px; border: 1px solid #cfdaeb; border-radius: 7px; background: #fff; box-shadow: 0 8px 20px #102c4820; color: #34465f; font-size: 12px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; }
.kennzahl-tooltip strong { color: #273c57; }
.kennzahl-quellen { padding: 22px; border: 1px solid #e4ebf5; border-radius: 8px; }
.kennzahl-quellen h4 { margin: 0 0 14px; color: #273c57; font-size: 15px; }
.kennzahl-quellen ul { display: grid; gap: 12px; margin: 0 0 12px; padding: 0; list-style: none; }
.kennzahl-quellen li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; font-size: 13px; }
.kennzahl-quellname { color: #34465f; }
.kennzahl-quellwert { color: #273c57; font-variant-numeric: tabular-nums; }
.kennzahl-quellbalken { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #edf2f8; }
.kennzahl-quellbalken i { display: block; width: var(--anteil, 0); height: 100%; border-radius: 4px; background: #155eef; }
.kennzahl-tabelle { margin-top: 20px; }
.kennzahl-tabelle summary { padding: 8px 0; color: #1556bc; font-size: 13px; cursor: pointer; }
@media (max-width: 1000px) {
  .kennzahl-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kennzahl-raster { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .berater-raster, .los-raster { grid-template-columns: 1fr; padding: 18px; }
  .berater-optionen { grid-template-columns: 1fr; }
  .berater-kopf, .los-kopf { align-items: flex-start; flex-direction: column; padding: 20px; }
  .los-buehne { min-height: 300px; padding: 24px 18px; }
  .zeit-auswahl { grid-template-columns: 1fr; }
  .kennzahl-filter { flex-direction: column; }
}
@media (max-width: 480px) {
  .berater-form, .berater-platzhalter, .berater-ergebnis { padding: 20px 16px; }
  .berater-daten div { grid-template-columns: 1fr; gap: 2px; }
  .kennzahl-kacheln { grid-template-columns: 1fr; }
  .zeit-nachtrag .demo-formzeile input { max-width: none; }
}
