/* =====================================================================
   Unterseiten (Leistungen, Referenzen, Fragen, Anfrage, Rechtstexte, Fragebogen).
   Baut auf basis.css auf (Kopfleiste, Knöpfe, Schluss, Fußzeile, Demo-Rahmen)
   und ergänzt nur, was die Unterseiten zusätzlich brauchen.
   Die Farben kommen aus --bg, --fg, --leise, --linie, --akzent, die effekte.js
   beim Scrollen setzt. Ohne Skript bekommt jeder Abschnitt seinen festen Ton.
   ===================================================================== */

[hidden] {
  display: none !important;
}

/* ---- Feste Töne je Abschnitt (ohne Skript, bei reduzierter Bewegung) ---- */
.ton-wald { --ton: #121714; }
.ton-moos { --ton: #2a312c; }
.ton-stein { --ton: #4a544d; }
.ton-nebel { --ton: #b7bdb6; }
.ton-hell { --ton: #dfe3dc; }
.ton-licht { --ton: #f2f4ef; }

html:not(.fliesst) :is(.ton-wald, .ton-moos, .ton-stein, .ton-nebel, .ton-hell, .ton-licht) {
  background: var(--ton);
}
html:not(.fliesst) :is(.ton-nebel, .ton-hell, .ton-licht) {
  --fg: #1c221e;
  --leise: #3a443d;
  --linie: rgba(28, 34, 30, 0.18);
  --linie-stark: rgba(28, 34, 30, 0.32);
  --akzent: #a26b14;
  --akzent-text: #6b470f;
  color: var(--fg);
}

/* ---- Navigation: aktuelle Seite -------------------------------------- */
.kopf__nav a[aria-current="page"],
.fuss__links a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
  background-size: 100% 2px, 0% 2px;
}

/* ---- Knopf mit Rand ------------------------------------------------------ */
.knopf--rand {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--linie-stark);
}
.knopf--rand:hover {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  border-color: var(--fg);
}
.knopf:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.knopf:disabled:hover {
  background: var(--messing);
}
button.knopf {
  cursor: pointer;
}

/* ---- Seitenkopf: schmales Nebelbild --------------------------------------- */
.seitenkopf {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(21rem, 44vh, 29rem);
  padding-block: 7.5rem clamp(2rem, 5vw, 3.25rem);
  overflow: clip;
  isolation: isolate;
  background: #121714;
  color: #eef0ec;
  --fg: #eef0ec;
  --leise: #d2d7d0;
  --linie: rgba(238, 240, 236, 0.16);
  --akzent: #e8aa51;
  --akzent-text: #e8aa51;
}
.seitenkopf__rahmen {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.seitenkopf__bild {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.seitenkopf::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 23, 20, 0.5) 0%, rgba(18, 23, 20, 0.6) 40%, rgba(18, 23, 20, 0.86) 100%);
}
.seitenkopf__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.seitenkopf h1 {
  max-width: 17em;
  font-size: clamp(2rem, 5.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.seitenkopf__lead {
  max-width: 42rem;
  margin-top: 1.1rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--leise);
}
.vorzeile {
  margin-bottom: 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--akzent-text);
}
.vorzeile__nr {
  margin-right: 0.5rem;
  color: var(--leise);
}

/* ---- Leistungen: drei Abschnitte -------------------------------------------- */
.leist {
  padding-block: var(--abstand);
}
.leist__raster {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}
@media (min-width: 900px) {
  .leist__raster {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
  .leist--gedreht .leist__bild {
    order: 2;
  }
}
.leist__bild {
  margin: 0;
}
.leist__bild .shot {
  transform: none;
  cursor: zoom-in;
}
.leist__bild .shot img:focus-visible {
  outline-offset: -4px;
}
.leist__bild figcaption {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--leise);
}
.leist__bild figcaption strong {
  color: var(--fg);
}
.leist__text h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.028em;
}
.leist__lead {
  max-width: 36rem;
  margin-top: 1.1rem;
  font-size: 1.125rem;
  color: var(--leise);
}
.leist__lead strong {
  color: var(--fg);
}
.leist__listentitel {
  margin-top: 1.75rem;
  font-size: 1rem;
  font-weight: 700;
}
.leist__liste {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
  max-width: 36rem;
}
.leist__liste li {
  position: relative;
  padding-left: 1.75rem;
}
.leist__liste li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.55em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--akzent);
  border-bottom: 2px solid var(--akzent);
  transform: rotate(-45deg);
}
.leist__mass {
  max-width: 36rem;
  margin-top: 1.75rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--akzent);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}
.leist__mass h3 {
  font-size: 1rem;
  font-weight: 700;
}
.leist__mass p {
  margin-top: 0.35rem;
  color: var(--leise);
}
.leist__bsp {
  max-width: 36rem;
  margin: 1.5rem 0 1.25rem;
  font-size: 0.975rem;
  color: var(--leise);
}
.leist .textlink {
  display: inline-block;
}
.leist__bild--demo .demo-rahmen {
  margin-inline: auto;
}

/* ---- Demo im Telefonrahmen (auch auf breiten Bildschirmen) -------------- */
.demo-rahmen--handy {
  width: min(100%, 390px);
  max-width: 390px;
  border-width: 2px;
  border-radius: 28px;
}
.demo-rahmen--handy .demo-leiste {
  height: 1.6rem;
  justify-content: center;
}
.demo-rahmen--handy .demo-leiste i {
  display: none;
}
.demo-rahmen--handy .demo-leiste::after {
  content: "";
  width: 4rem;
  height: 0.4rem;
  border-radius: 99px;
  background: #4a544d;
}
.demo-rahmen--handy .demo-flaeche {
  height: clamp(30rem, 74svh, 40rem);
}
.demo-rahmen--handy .demo-poster {
  object-position: 50% 92%;
}
.demo-rahmen--handy .demo-poster__zeile {
  font-size: 1.7rem;
}

/* ---- Referenzen --------------------------------------------------------------- */
.ref {
  padding-block: var(--abstand);
}
.ref__raster {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .ref__raster {
    grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
    justify-content: center;
  }
}
.ref__text h2,
.ref__titel {
  max-width: 24em;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.028em;
}
.ref__text p:not(.vorzeile) {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--leise);
}
.ref__knoepfe {
  margin-top: 1.5rem;
}
.vn-paar {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 760px) {
  .vn-paar {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
.vn {
  padding: 1.4rem 1.6rem;
  border: 1px dashed var(--linie-stark);
  border-radius: 16px;
  color: var(--leise);
}
.vn--nachher {
  border: 1.5px solid var(--akzent);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  color: var(--fg);
}
.vn__label {
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--akzent-text);
}
.vn--vorher .vn__label {
  color: var(--leise);
}
.ref__bilder {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .ref__bilder {
    grid-template-columns: 1fr 1fr;
  }
}
.ref__hinweis {
  max-width: 44rem;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: var(--leise);
}
.ref__eigene {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--linie);
}
@media (min-width: 760px) {
  .ref__eigene {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: 2.5rem;
  }
}
.ref__eigene p {
  max-width: 34rem;
  font-size: 1.0625rem;
  color: var(--leise);
}

/* ---- Lightbox (lightbox.js legt das Fenster an) ------------------------- */
.lightbox__ausloeser {
  cursor: zoom-in;
}
.lightbox {
  max-width: 94vw;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eef0ec;
  cursor: zoom-out;
}
.lightbox::backdrop {
  background: rgba(8, 10, 9, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 94vw;
  max-height: 84vh;
  border: 1px solid rgba(238, 240, 236, 0.3);
  border-radius: 10px;
  background: #0b0e0c;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.lightbox__hinweis {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.875rem;
  color: #d2d7d0;
}

/* ---- Fragen: fünf Hauptfragen, Folgefragen darunter ---------------------
   Bewusst ohne Einblendung und ohne Übergänge: alles steht ruhig da.      */
.fragen {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.fragen__innen {
  display: grid;
  gap: 0.85rem;
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}
.fragen summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
}
.fragen summary::-webkit-details-marker {
  display: none;
}
/* Jede Hauptfrage ist ein helles Blatt mit eigener Schriftfarbe: gut lesbar,
   egal wie weit die Seite beim Scrollen schon aufgehellt ist. */
.frage-haupt {
  --fg: #1c221e;
  --leise: #3a443d;
  --linie: rgba(28, 34, 30, 0.16);
  --linie-stark: rgba(28, 34, 30, 0.3);
  --akzent: #a26b14;
  --akzent-text: #6b470f;
  border: 1px solid rgba(28, 34, 30, 0.14);
  border-radius: 16px;
  background: #f2f4ef;
  color: var(--fg);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.55);
}
.frage-haupt > summary {
  padding: 1.15rem 1.4rem;
  border-radius: 16px;
}
.frage-haupt > summary:hover {
  background: rgba(28, 34, 30, 0.05);
}
.frage-haupt > summary h2 {
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
/* Plus, das beim Öffnen zum Kreuz wird */
.frage-haupt > summary::after {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background:
    linear-gradient(var(--akzent), var(--akzent)) center / 100% 2px no-repeat,
    linear-gradient(var(--akzent), var(--akzent)) center / 2px 100% no-repeat;
}
.frage-haupt[open] > summary::after {
  transform: rotate(45deg);
}
.frage-haupt__antwort {
  padding: 0 1.4rem 1.5rem;
}
.frage-haupt__antwort > p,
.folge__antwort p {
  max-width: 38rem;
  color: var(--leise);
}
.weiter {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--linie);
}
.weiter__label {
  margin-bottom: 0.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--akzent-text);
}
.folge {
  border-bottom: 1px solid var(--linie);
}
.folge:last-child {
  border-bottom: 0;
}
.folge > summary {
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.4rem;
  border-radius: 8px;
}
.folge > summary:hover {
  background: rgba(28, 34, 30, 0.06);
}
.folge > summary h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
/* Pfeil, der beim Öffnen nach unten zeigt */
.folge > summary::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid var(--akzent);
  border-right: 2px solid var(--akzent);
  transform: rotate(45deg);
}
.folge[open] > summary::before {
  transform: rotate(135deg);
}
.folge__antwort {
  margin: 0.1rem 0 1rem 0.65rem;
  padding: 0.2rem 0 0.2rem 1.35rem;
  border-left: 2px solid var(--akzent);
}

/* ---- Anfrage: Fragebaum auf einem hellen Blatt ------------------------------ */
.anfrage-seite {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
}
.anfrage-seite__innen {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}
.karte {
  --fg: #1c221e;
  --leise: #3a443d;
  --linie: rgba(28, 34, 30, 0.18);
  --linie-stark: rgba(28, 34, 30, 0.32);
  --akzent: #a26b14;
  --akzent-text: #6b470f;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  background: #f2f4ef;
  color: var(--fg);
  border-radius: 20px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.45);
}
.karte a:not(.knopf) {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nojs-hinweis {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--linie-stark);
  border-radius: 14px;
  font-size: 0.95rem;
}
.js .nojs-hinweis {
  display: none;
}
.fortschritt {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.fortschritt__text {
  min-width: 8.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--leise);
}
.fortschritt progress {
  flex: 1;
  height: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--linie);
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}
.fortschritt progress::-webkit-progress-bar {
  background: var(--linie);
}
.fortschritt progress::-webkit-progress-value {
  background: var(--akzent);
}
.fortschritt progress::-moz-progress-bar {
  background: var(--akzent);
}
.frage {
  min-width: 0;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}
.frage legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.frage:focus {
  outline: none;
}
.frage__hinweis {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: var(--leise);
}
.antworten {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}
.antwort {
  position: relative;
  display: block;
  cursor: pointer;
}
.antwort input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.antwort span {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--linie-stark);
  border-radius: 14px;
  background: #fff;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
}
.antwort span::before {
  content: "";
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid var(--linie-stark);
  border-radius: 50%;
  background: #fff;
}
.antwort--mehrere span::before {
  border-radius: 0.3rem;
}
.antwort:hover span {
  border-color: var(--akzent);
}
.antwort input:checked + span {
  border-color: var(--akzent);
  background: #fbf1de;
}
.antwort input:checked + span::before {
  border-color: var(--akzent);
  background: var(--akzent);
  box-shadow: inset 0 0 0 3px #fbf1de;
}
.antwort--mehrere input:checked + span::before {
  box-shadow: none;
  background: var(--akzent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}
.antwort input:focus-visible + span {
  outline: 3px solid var(--akzent);
  outline-offset: 2px;
}
.antwort-feld,
.feld {
  margin-top: 1rem;
}
.antwort-feld label,
.feld label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.antwort-feld input,
.feld input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--linie-stark);
  border-radius: 12px;
  background: #fff;
  color: var(--fg);
  font: inherit;
}
.antwort-feld input:focus,
.feld input:focus {
  outline: 3px solid var(--akzent);
  outline-offset: 1px;
  border-color: var(--akzent);
}
.feld__hinweis {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--leise);
}
.anfrage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.ergebnis h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.ergebnis h2:focus {
  outline: none;
}
.ergebnis h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
}
.ergebnis__groesse {
  display: inline-block;
  margin: 0.6rem 0;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: #fbf1de;
  font-weight: 700;
  color: var(--akzent-text);
}
.ergebnis__liste {
  display: grid;
  gap: 0.3rem;
  padding-left: 1.2rem;
  list-style: disc;
}
.ergebnis__liste li::marker {
  color: var(--akzent);
}
.ergebnis__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.ergebnis__status {
  min-height: 1.4rem;
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--leise);
}
.ergebnis__datenschutz {
  font-size: 0.9rem;
  color: var(--leise);
}
.ergebnis__text {
  margin-top: 1.25rem;
  font-size: 0.92rem;
}
.ergebnis__text summary {
  cursor: pointer;
  font-weight: 600;
}
.ergebnis__text pre {
  margin: 0.8rem 0 0;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  font: 0.85rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 12px;
}
.ergebnis__klein {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
.linkknopf {
  padding: 0.3rem 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--leise);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkknopf:hover {
  color: var(--fg);
}

@media (max-width: 520px) {
  .seitenkopf {
    padding-top: 9rem;
  }
  .fortschritt__text {
    min-width: 0;
    white-space: normal;
  }
  .ergebnis__knoepfe .knopf,
  .anfrage-nav .knopf {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .knopf,
  .knopf--rand {
    transition: none;
  }
}

@media print {
  .kopf,
  .skip-link,
  .seitenkopf,
  .fuss,
  .anfrage-seite .fortschritt,
  .anfrage-seite .frage,
  .anfrage-seite .anfrage-nav,
  .anfrage-seite .ergebnis__knoepfe,
  .anfrage-seite .ergebnis__klein,
  .anfrage-seite .nojs-hinweis {
    display: none !important;
  }
  body,
  .ton-hell {
    background: #fff !important;
  }
  .karte {
    box-shadow: none;
  }
  .ergebnis__text:not([open]) pre {
    display: block;
  }
}

/* =====================================================================
   Rechtstexte (Impressum, Datenschutz) und 404: Text auf dem hellen Blatt
   ===================================================================== */
.rechtstext {
  max-width: 44rem;
}
.rechtstext h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}
.rechtstext > :first-child {
  margin-top: 0;
}
.rechtstext p,
.rechtstext ul {
  margin-bottom: 0.8rem;
  color: var(--leise);
}
.rechtstext ul {
  padding-left: 1.3rem;
  list-style: disc;
}
.rechtstext li {
  margin-bottom: 0.3rem;
}
.rechtstext strong {
  color: var(--fg);
}
.seite-fehler__text {
  max-width: 34rem;
  margin-bottom: 1.5rem;
  color: var(--leise);
}

/* =====================================================================
   Fragebogen zum Ausdrucken (print.js), auf dem hellen Blatt
   ===================================================================== */
.form-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--linie-stark);
  border-radius: 14px;
  background: #fbf1de;
}
.form-intro .k {
  flex: none;
  margin-top: 0.15rem;
  color: var(--akzent-text);
}
.form-intro h2 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.form-intro p,
.form-intro ol {
  color: var(--leise);
  font-size: 0.96rem;
}
.form-intro ol {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  list-style: decimal;
}
.form-intro ol li + li {
  margin-top: 0.2rem;
}
.print-title {
  display: none;
  font-size: 1.1rem;
  font-weight: 600;
}
.q {
  min-width: 0;
  margin: 0 0 1.1rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--linie);
  border-radius: 14px;
  background: #fff;
}
.q > legend,
.q__title {
  margin-bottom: 0.3rem;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.q > legend {
  padding-inline: 0.2rem;
}
.q__hint {
  margin-bottom: 0.8rem;
  color: var(--leise);
  font-size: 0.9rem;
}
.opt {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
}
.opt:hover {
  background: color-mix(in srgb, var(--akzent) 10%, transparent);
}
.opt input[type="checkbox"] {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--akzent);
  cursor: pointer;
}
.opt--inline {
  flex-wrap: wrap;
  align-items: center;
}
.label-w {
  min-width: 5rem;
}
.field-line {
  flex: 1;
  min-width: 12rem;
  padding: 0.25rem 0.3rem;
  border: 0;
  border-bottom: 1.5px solid var(--linie-stark);
  background: transparent;
  color: var(--fg);
  font: inherit;
}
.field-line:focus,
.q textarea:focus {
  outline: none;
  border-color: var(--akzent);
}
.field-line:focus-visible,
.q textarea:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 2px;
}
.q textarea {
  width: 100%;
  min-height: 4.5rem;
  margin-top: 0.4rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--linie-stark);
  border-radius: 10px;
  background: #fff;
  color: var(--fg);
  font: inherit;
  resize: vertical;
}
.form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1rem 0 0.25rem;
  background: linear-gradient(180deg, transparent, #f2f4ef 35%);
}
.form-actions .hint {
  color: var(--leise);
  font-size: 0.9rem;
}
.form-actions .knopf {
  gap: 0.6rem;
}
.form-actions .knopf svg {
  flex: none;
}

@media print {
  .print-title {
    display: block;
    margin-bottom: 1rem;
  }
  .anfrage-seite {
    padding: 0;
  }
  .anfrage-seite .karte {
    padding: 0;
    background: #fff;
    box-shadow: none;
  }
  .form-actions {
    display: none !important;
  }
  .form-intro {
    border: 1px solid #bbb;
    background: #f4f4f4;
  }
  .q {
    margin-bottom: 0.6rem;
    padding: 0.9rem 1rem;
    border: 1px solid #ccc;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .opt {
    padding: 0.2rem 0;
  }
  .field-line {
    border-bottom: 1px solid #333;
  }
  .q textarea {
    min-height: 3rem;
    border: 1px solid #999;
  }
}
