/* forschtec.de - gemeinsames Stylesheet aller Seiten.
   Statische Seite ohne WordPress, ohne Cookies und ohne Fremddienste: Schriften und Bilder
   liegen auf dem eigenen Webspace. Masse der Startseite 1:1 von der bisherigen Wartungsseite
   (gemessen 16.10.2026 bei 1440x900, 768x1024, 390x844). */

/* ---------- Schriften (SIL OFL, selbst gehostet) ---------- */
@font-face { font-family: "Hind"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("schrift/hind-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("schrift/hind-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("schrift/hind-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("schrift/hind-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("schrift/hind-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("schrift/hind-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("schrift/mulish-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("schrift/mulish-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Farben und Grundlagen ---------- */
:root {
  --text: #595959;
  --titel: #303030;
  --leise: #858585;          /* bisher #afafaf - auf dem grauen Foto kaum lesbar */
  --rahmen: #2a2a2a;
  --knopf: #101010;
  --marine: #133b68;
  --verweis: #444444;
  --linie: #ececec;
  --feldrand: #dcdcdc;
  --fehler: #a8261c;
  --gut: #1d6b3a;
  --schrift: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --schrift-titel: "Hind", "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Startseite: Bildlaufleiste in den Grautoenen des Fotos statt hellem Streifen rechts */
html.start { scrollbar-width: thin; scrollbar-color: #9b9b9b #d9d9d9; }
body { margin: 0; background: #fff; color: var(--text); font: 400 14px/1.718 var(--schrift);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--marine); outline-offset: 3px; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Startseite ---------- */
.buehne { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  justify-content: center; min-height: 100vh; min-height: 100svh; padding: 0 5px 16px; }

.hintergrund { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #fff; }
/* Handy: linke Bildhaelfte (Werkzeuge liegen bei 0-45 % der Bildbreite), 60 px angehoben.
   Breite/Versatz wie bisher (die alte Zeile war 30 px breiter als der Bildschirm), damit die
   Oberkante des Fotos im weissen Verlauf verschwindet - ohne dass die Seite seitlich wischt. */
.hintergrund img { position: absolute; left: -15px; bottom: 60px; width: calc(200% + 60px); max-width: none; height: auto; }
.hintergrund::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, .65) 70%, #fff 82%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 76%, rgba(255, 255, 255, .8) 86%, #fff 92%),
    rgba(255, 255, 255, .25); }

.logo { width: 100%; max-width: 1339px; margin: 0 auto; }
.logo img { width: 100%; height: auto; }

.inhalt { text-align: center; }
.titel { margin: 26px 0 0; color: var(--titel); font: 300 22px/28.6px var(--schrift-titel); letter-spacing: 3px; }
.unterzeile { margin: 10px 0 0; color: var(--leise); font: 400 19px/32.3px var(--schrift); }

.rufnummern { position: relative; margin: 43px 12px 0; padding: 26px 14px; border: 3px solid var(--rahmen); border-radius: 5px; }
.rufnummern-symbol { position: absolute; top: -33px; left: 50%; display: grid; place-items: center;
  width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; background: var(--marine); color: #fff; }
.rufnummern-symbol svg { width: 26.25px; height: 30px; }
.rufnummern h2, .rufnummern p { margin: 0 0 10px; color: var(--titel); font: 600 14px/1.55 var(--schrift-titel);
  letter-spacing: 1px; text-transform: uppercase; }
.rufnummern p:last-child { margin-bottom: 0; }
.rufnummern a { text-decoration: none; }
.rufnummern a:hover { text-decoration: underline; text-underline-offset: 3px; }

.knopf { display: block; width: fit-content; margin: 16px auto 0; padding: 7px 11px; border: 2px solid var(--knopf);
  color: var(--knopf); font: 600 11px/normal var(--schrift); letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; transition: background-color .2s, color .2s; }
.knopf:hover, .knopf:focus-visible { background: var(--knopf); color: #fff; }

.sozial { display: flex; justify-content: center; gap: 5px; margin-top: 46px; }
.sozial a { display: grid; place-items: center; width: 57px; height: 36px; color: #000; transition: opacity .2s; }
.sozial a:hover { opacity: .55; }
.sozial svg { width: 31.5px; height: 36px; }

.fuss { margin-top: 114px; color: #000; text-align: center; }
.fuss nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 30px; row-gap: 2px; }
.fuss a { font: 400 14px/20px var(--schrift); text-decoration: none; }
.fuss a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copyright { margin: 0; font: 600 14px/20px var(--schrift); }   /* alte Seite: Mulish nur bis 600 geladen */

@media (min-width: 768px) {
  .buehne { padding: 0 clamp(5px, 1.4vw, 14px) 39px; }
  /* Desktop: Foto deckt die ganze Flaeche, 90 px angehoben, unten weisser Verlauf */
  .hintergrund img { top: 0; left: 0; bottom: auto; width: 100%; height: 100%; object-fit: cover; object-position: 50% calc(100% - 90px); }
  .hintergrund::after { background:
      linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, .75) 86%, #fff 91%),
      rgba(255, 255, 255, .25); }
  .titel { margin-top: 60px; font-size: 29px; line-height: 37.7px; letter-spacing: 1px; }
  .rufnummern { width: clamp(min(710px, 100% - 24px), 50%, 950px); margin: 67px auto 0; padding: 59px 28px 28px; }
  .rufnummern-symbol { top: -34px; }
  .rufnummern h2, .rufnummern p { margin-bottom: 20px; font-size: 12px; line-height: 15.6px; letter-spacing: 3px; }
  .knopf { margin-top: 50px; }
  .sozial { margin-top: 50px; }
  .fuss { margin-top: 355px; }
  .fuss nav { column-gap: 100px; }
  .fuss a { line-height: 18px; }
  .copyright { margin-top: 26px; line-height: 18px; }
}

/* ---------- Unterseiten (Impressum, Datenschutz, Werkzeuganfrage) ---------- */
.unterseite { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.seitenkopf { width: 100%; max-width: 1220px; margin: 0 auto; padding: 18px 20px 0; }
.seitenkopf a { display: inline-block; }
.seitenkopf img { width: 240px; height: auto; }
.seiteninhalt { flex: 1; width: 100%; max-width: 1220px; margin: 0 auto; padding: 44px 20px 72px; }

.seitentitel { margin: 0 0 22px; color: var(--titel); font: 300 32px/1.3 var(--schrift-titel); letter-spacing: 10px;
  text-transform: uppercase; overflow-wrap: anywhere; }
.rechtstext { max-width: 860px; }
.rechtstext .angaben { margin: 0 0 22px; color: var(--titel); font: 500 18px/1.3 var(--schrift-titel); letter-spacing: 5px; text-transform: uppercase; }
.rechtstext h2 { margin: 44px 0 12px; padding-top: 24px; border-top: 1px solid var(--linie); color: var(--titel); font: 700 18px/1.4 var(--schrift); }
.rechtstext h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rechtstext h3 { margin: 26px 0 8px; color: var(--titel); font: 700 15px/1.45 var(--schrift); }
.rechtstext h4 { margin: 18px 0 6px; color: var(--titel); font: 700 14px/1.5 var(--schrift); }
.rechtstext p, .rechtstext ul { margin: 0 0 14px; }
.rechtstext ul { padding-left: 20px; }
.rechtstext li { margin-bottom: 6px; }
.rechtstext strong { font-weight: 700; }
.rechtstext a { color: var(--verweis); text-decoration: underline; text-decoration-color: rgba(68, 68, 68, .35); text-underline-offset: 2px; }
.rechtstext a:hover { text-decoration-color: currentColor; }
.rechtstext .hinweis-stand { margin-top: 40px; color: var(--leise); font-size: 13px; }

.seitenfuss { border-top: 1px solid var(--linie); padding: 26px 20px 30px; color: #000; text-align: center; }
.seitenfuss nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 30px; row-gap: 2px; }
.seitenfuss a { font: 400 14px/20px var(--schrift); text-decoration: none; }
.seitenfuss a:hover, .seitenfuss a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.seitenfuss .copyright { margin-top: 6px; }

@media (max-width: 767px) {
  .seitenkopf { padding-top: 14px; }
  .seitenkopf img { width: 200px; }
  .seiteninhalt { padding: 32px 20px 56px; }
  .seitentitel { font-size: 26px; letter-spacing: 6px; }
  .rechtstext .angaben { font-size: 15px; letter-spacing: 3px; }
  .rechtstext h2 { margin-top: 36px; font-size: 17px; }
}

/* ---------- Werkzeuganfrage ---------- */
.anfrage-kopf { margin: 0 auto 40px; text-align: center; }
.welle { width: 96px; height: 12px; margin: 0 auto; color: #d6d6d6; }
.anfrage-kopf h1 { margin: 26px 0 10px; color: var(--titel); font: 300 44px/1.2 var(--schrift-titel); letter-spacing: 1px; }
.anfrage-kopf p { margin: 0 0 30px; color: var(--titel); font: 600 14px/1.4 var(--schrift-titel); letter-spacing: 4px; text-transform: uppercase; }

.anfrage-raster { display: grid; gap: 30px; }
.anfrage-haupt { min-width: 0; }

.abschnitt { min-width: 0; margin: 0 0 34px; padding: 0; border: 0; }
.abschnitt-titel { float: left; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 18px; padding: 0 0 12px;
  border-bottom: 1px solid var(--linie); color: var(--titel); font: 600 13px/1.4 var(--schrift-titel); letter-spacing: 3px; text-transform: uppercase; }
.abschnitt-titel + * { clear: both; }
.nr { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--marine); color: #fff;
  font: 600 12px/1 var(--schrift-titel); letter-spacing: 0; }
.abschnitt-text { margin: 0 0 12px; }

.felder { display: grid; gap: 18px 20px; }
.feld { display: grid; align-content: start; gap: 6px; min-width: 0; }
.feld > label, .feld > .feldname { color: var(--titel); font: 600 12px/1.4 var(--schrift-titel); letter-spacing: 2px; text-transform: uppercase; }
.pflicht { color: var(--marine); }
.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"],
.formular select, .formular textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--feldrand); border-radius: 3px;
  background: #fff; color: var(--titel); font: 400 15px/1.4 var(--schrift); transition: border-color .15s, box-shadow .15s; }
.formular textarea { min-height: 170px; resize: vertical; }
.formular ::placeholder { color: #9a9a9a; opacity: 1; }
.formular select { appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23303030' d='M0 0h12L6 8z'/%3E%3C/svg%3E") no-repeat right 16px center; }
.formular input:focus, .formular select:focus, .formular textarea:focus {
  outline: none; border-color: var(--marine); box-shadow: 0 0 0 3px rgba(19, 59, 104, .14); }
.formular [aria-invalid="true"] { border-color: var(--fehler); }
.feldfehler { margin: 0; color: var(--fehler); font-size: 13px; }
.feldfehler:empty { display: none; }

/* Leistungen als antippbare Schaltflaechen (echte Checkboxen, nur anders gezeichnet) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid #cfcfcf; border-radius: 999px; background: #fff; color: var(--titel);
  font: 400 14px/1.3 var(--schrift); transition: background-color .15s, border-color .15s, color .15s; user-select: none; }
.chip:hover span { border-color: var(--marine); }
.chip input:checked + span { border-color: var(--marine); background: var(--marine); color: #fff; }
.chip input:checked + span::before { content: "\2713\00a0"; }
.chip input:focus-visible + span { outline: 2px solid var(--marine); outline-offset: 2px; }

.ablage { position: relative; display: grid; justify-items: center; gap: 6px; padding: 24px 18px 30px; border: 2px dashed #cdcdcd;
  border-radius: 4px; background: #fff; text-align: center; transition: border-color .15s, background-color .15s; }
.ablage.ueber { border-color: var(--marine); background: #f5f8fb; }
.ablage:focus-within { border-color: var(--marine); }
.ablage-symbol { width: 34px; height: 34px; margin-bottom: 2px; color: var(--marine); }
.ablage-gross { color: var(--titel); font: 300 24px/1.3 var(--schrift-titel); }
.ablage-klein { max-width: 460px; color: var(--leise); font-size: 13px; }
.ablage-zaehler { position: absolute; right: 10px; bottom: 6px; color: var(--leise); font-size: 12px; }
.datei-knopf { margin-top: 6px; padding: 9px 18px; border: 2px solid var(--knopf); background: #fff; color: var(--knopf);
  font: 600 11px/1.3 var(--schrift); letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
.datei-knopf:hover { background: var(--knopf); color: #fff; }
.datei-feld { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dateiliste { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.dateiliste:empty { display: none; }
.dateiliste li { display: flex; gap: 12px; align-items: center; padding: 8px 10px 8px 12px; border: 1px solid var(--linie); border-radius: 3px; background: #fafafa; }
.dateiliste .name { flex: 1; min-width: 0; overflow: hidden; color: var(--titel); text-overflow: ellipsis; white-space: nowrap; }
.dateiliste .groesse { flex: none; color: var(--leise); font-size: 13px; }
.dateiliste button { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--text);
  font-size: 19px; line-height: 1; cursor: pointer; }
.dateiliste button:hover { background: #ececec; color: var(--titel); }

.abschluss { padding-top: 22px; border-top: 1px solid var(--linie); }
.einwilligung { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.einwilligung input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--marine); cursor: pointer; }
.einwilligung a { color: var(--verweis); }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.absenden { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 22px; }
.senden-knopf { min-height: 48px; padding: 12px 30px; border: 2px solid var(--knopf); background: var(--knopf); color: #fff;
  font: 600 12px/1.2 var(--schrift); letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
@media (hover: hover) { .senden-knopf:hover { background: #fff; color: var(--knopf); } }
.senden-knopf:disabled { border-color: #b5b5b5; background: #b5b5b5; color: #fff; cursor: progress; }
.fortschritt { flex: 1; min-width: 160px; max-width: 320px; height: 6px; overflow: hidden; border-radius: 3px; background: #ececec; }
.fortschritt[hidden] { display: none; }
.fortschritt span { display: block; width: 0; height: 100%; background: var(--marine); transition: width .15s; }
.pflicht-hinweis { margin: 0; color: var(--leise); font-size: 13px; }
.meldung { margin: 18px 0 0; padding: 14px 16px; border-left: 3px solid var(--fehler); background: #fbf1f0; color: var(--titel); }
.meldung:empty { display: none; }

/* Kasten mit rundem Symbol auf der Oberkante - wie der Telefon-Kasten der Startseite */
.kasten-symbol { position: absolute; top: -33px; left: 50%; display: grid; place-items: center; width: 60px; height: 60px; margin-left: -30px;
  border-radius: 50%; background: var(--marine); color: #fff; }
.kasten-symbol svg { width: 26.25px; height: 30px; }
.kontaktkarte { position: relative; margin-top: 34px; padding: 48px 24px 24px; border: 3px solid var(--rahmen); border-radius: 5px; }
.kontaktkarte h2 { margin: 0 0 16px; color: var(--titel); font: 300 26px/1.25 var(--schrift-titel); text-align: center; }
.kontaktwege { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.kontaktwege li { display: grid; gap: 1px; padding-bottom: 10px; border-bottom: 1px solid var(--linie); }
.kontaktwege span { color: var(--leise); font: 600 11px/1.4 var(--schrift-titel); letter-spacing: 2px; text-transform: uppercase; }
.kontaktwege a { color: var(--titel); font: 600 15px/1.45 var(--schrift); text-decoration: none; overflow-wrap: anywhere; }
.kontaktwege a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kontaktkarte h3 { margin: 0 0 8px; color: var(--titel); font: 600 12px/1.4 var(--schrift-titel); letter-spacing: 2px; text-transform: uppercase; }
.hilfeliste { margin: 0; padding-left: 18px; }
.hilfeliste li { margin-bottom: 4px; }

.erfolg { position: relative; margin: 34px 0 0; padding: 50px 28px 34px; border: 3px solid var(--rahmen); border-radius: 5px; text-align: center; }
.erfolg[hidden] { display: none; }
.erfolg:focus { outline: none; }
.erfolg .kasten-symbol svg { width: 30px; height: 30px; }
.erfolg h1, .erfolg h2 { margin: 0 0 10px; color: var(--titel); font: 300 30px/1.25 var(--schrift-titel); }
.erfolg p { margin: 0 0 8px; }
.erfolg a { color: var(--titel); }
.erfolg .knopf { margin-top: 22px; }

@media (min-width: 640px) {
  .felder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feld.breit { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .anfrage-raster { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
  .kontaktkarte { position: sticky; top: 50px; }
}
@media (max-width: 767px) {
  .anfrage-kopf h1 { font-size: 34px; letter-spacing: 3px; }
  .anfrage-kopf p { font-size: 13px; letter-spacing: 2px; }
  .ablage-gross { font-size: 20px; }
  .senden-knopf { width: 100%; }
  .fortschritt { max-width: none; }
}

/* ---------- Cookie-Einstellungen (Banner aus assets/einwilligung.js, Besucherstatistik Etappe 2) ----------
   Nicht modal: das Banner haengt als letztes Element im body und klebt (sticky) am unteren Rand. Am Seitenende steht es
   UNTER dem Fuss - es verdeckt also nie dauerhaft Inhalt; die Seite dahinter bleibt mit Maus und Tastatur bedienbar.
   Nur Klassen und "hidden" (CSP style-src 'self'). B-2: beide Wahl-Knoepfe EINE Klasse (.ds-wahl). */
.ds-banner { position: sticky; bottom: 0; z-index: 1000; display: flex; justify-content: center; padding: 12px;
  pointer-events: none; text-align: left; }
.ds-banner[hidden], .ds-banner [hidden] { display: none !important; }
.ds-karte { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 760px;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border: 2px solid var(--knopf); border-radius: 5px;
  background: #fff; color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); pointer-events: auto;
  font: 400 13.5px/1.6 var(--schrift); }
/* Kopf so hoch wie das x: gescrollter Inhalt laeuft nie darunter */
.ds-kopf { flex: none; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 44px 4px 18px;
  border-bottom: 1px solid var(--linie); }
.ds-punkt { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--marine); }
.ds-titel { margin: 0; color: var(--titel); font: 600 13px/1.3 var(--schrift-titel); letter-spacing: 2.5px;
  text-transform: uppercase; }
.ds-titel:focus { outline: none; }
.ds-titel:focus-visible { outline: 2px solid var(--marine); outline-offset: 2px; }
.ds-zu { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--titel); font: 400 22px/1 var(--schrift); cursor: pointer; }
.ds-zu:hover { background: var(--linie); }
/* Text darf scrollen, die Knoepfe nie */
.ds-text { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px 18px 0; }
.ds-text p { margin: 0 0 8px; }
.ds-klein { color: var(--leise); font-size: 12px; }
.ds-fuss { flex: none; padding: 10px 18px 14px; border-top: 1px solid var(--linie); }
.ds-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ds-knoepfe.ds-einzeln { grid-template-columns: 1fr; }
.ds-wahl { min-height: 42px; margin: 0; padding: 9px 10px; border: 2px solid var(--knopf); border-radius: 0; background: #fff;
  color: var(--knopf); font: 700 12px/1.2 var(--schrift); letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; }
.ds-wahl:hover, .ds-wahl:focus-visible { background: var(--knopf); color: #fff; }
/* dritter Knopf "Mehr": bewusst leiser als die zwei gleichwertigen Wahl-Knoepfe */
.ds-mehr-knopf { display: block; width: 100%; min-height: 36px; margin: 8px 0 0; padding: 6px 10px;
  border: 1px solid var(--feldrand); border-radius: 0; background: #f6f6f6; color: var(--titel);
  font: 700 12px/1.2 var(--schrift); letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; }
.ds-mehr-knopf:hover, .ds-mehr-knopf:focus-visible { background: var(--linie); }
.ds-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 14px; margin-top: 8px; }
.ds-zeile-rechts { justify-content: flex-end; }
.ds-einst { padding: 2px 0; border: 0; background: none; color: var(--marine); font: 700 12.5px/1.4 var(--schrift);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ds-links { display: flex; gap: 14px; font-size: 12.5px; }
.ds-links a { color: var(--text); }
/* Ebene 2: Reiter, Kategorien, Dienste, Historie */
.ds-reiter { display: grid; grid-template-columns: 1fr 1fr; margin: 4px 0 6px; border-bottom: 1px solid var(--feldrand); }
.ds-reiter-knopf { padding: 8px 6px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--leise);
  font: 600 13px/1.2 var(--schrift); cursor: pointer; }
.ds-reiter-knopf[aria-selected="true"] { border-bottom-color: var(--marine); color: var(--titel); }
.ds-kat { border-bottom: 1px solid var(--linie); }
.ds-kat-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; }
.ds-kat-name { color: var(--titel); font: 700 14px/1.3 var(--schrift); cursor: pointer; }
.ds-kat-koerper { padding: 0 0 8px 20px; }
.ds-kurz { margin: 0 0 6px; color: var(--text); font-size: 12.5px; }
.ds-dienst { margin: 6px 0 4px; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 4px; background: #fbfbfb; }
.ds-dienst-name { display: block; color: var(--titel); font-size: 13px; }
.ds-mehr { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 4px; padding: 2px 0; border: 0; background: none;
  color: var(--marine); font: 700 12.5px/1.3 var(--schrift); text-align: left; cursor: pointer; }
.ds-pfeil { display: inline-block; width: 1em; color: var(--marine); }
.ds-details { margin: 0 0 10px; padding: 0; list-style: none; border-top: 1px solid var(--linie); }
.ds-details li { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--linie);
  font-size: 12.5px; }
.ds-details b { color: var(--titel); }
.ds-details code { padding: 0 3px; border-radius: 3px; background: #f4f4f4; font-size: 11.5px; }
.ds-kippe { position: relative; flex: none; width: 46px; height: 26px; margin-top: 2px; }
.ds-kippe input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ds-kippe i { position: absolute; inset: 0; border-radius: 13px; background: #b9bec6; transition: background .15s;
  pointer-events: none; }
.ds-kippe i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: left .15s; }
.ds-kippe input:checked + i { background: var(--gut); }
.ds-kippe input:checked + i::after { left: 23px; }
.ds-kippe input:focus-visible + i { outline: 2px solid var(--marine); outline-offset: 2px; }
.ds-kippe.ds-gesperrt i { background: #8fb39d; }
.ds-kippe.ds-gesperrt input { cursor: not-allowed; }
.ds-hist { margin: 8px 0; padding: 0 0 0 4px; list-style: none; border-left: 2px solid #9fd8c9; }
.ds-hist li { display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 8px; padding: 7px 0 7px 6px;
  font-size: 12.5px; }
.ds-hist li i { width: 10px; height: 10px; margin-left: -12px; border-radius: 50%; }
.ds-hist li i.ds-ja { background: #39b56a; }
.ds-hist li i.ds-nein { background: #e05a4f; }
.ds-zeit { color: var(--leise); }
/* B-5: Server-Protokoll ist keine Kategorie, sondern eine Infozeile ausserhalb der Auswahl */
.ds-info { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--marine); background: #f3f6fa; font-size: 12.5px; }
.ds-info b { color: var(--titel); }

@media (max-width: 480px) {
  .ds-banner { padding: 6px; }
  .ds-karte { max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); }
  .ds-kopf { padding: 8px 40px 4px 14px; }
  .ds-text, .ds-fuss { padding-left: 14px; padding-right: 14px; }
  .ds-wahl { font-size: 11.5px; letter-spacing: .8px; }
  .ds-kat-koerper { padding-left: 8px; }
  .ds-details li { grid-template-columns: 1fr; gap: 0; }
}
@media print {
  .ds-banner { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
