/* ==== SCHRIFTEN ==== */
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-800-900.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Ziffern ohne Schrägstrich in der Null (Preise, Telefon, PLZ): nur U+0030–0039 aus Arial */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  font-weight: 400;
  font-style: normal;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
  font-weight: 700;
  font-style: normal;
  unicode-range: U+0030-0039;
}
/* Ersatzschriften mit gemessenen Metriken (Rendermessung bei Schriftstärke 400) */
@font-face {
  font-family: "Literata Fallback";
  src: local("Georgia Bold"), local("Georgia-Bold");
  font-weight: 800 900;
  size-adjust: 101.5%;
  ascent-override: 116.3%;
  descent-override: 30.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Atkinson Hyperlegible Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400 700;
  size-adjust: 98.6%;
  ascent-override: 94.8%;
  descent-override: 28.9%;
  line-gap-override: 0%;
}

/* ==== FARBEN UND MASSE ==== */
:root {
  --g1: rgb(250 251 253);
  --g2: rgb(238 241 246);
  --g3: rgb(226 231 239);
  --g4: rgb(207 214 225);
  --g6: rgb(88 96 112);
  --g9: rgb(23 27 36);
  --a1: rgb(47 94 99);
  --a2: rgb(194 59 34);
  --a3: rgb(163 47 26);
  --w0: rgb(255 255 255);
  --f1: "Literata", "Literata Fallback", Georgia, serif;
  --f2: "Atkinson Hyperlegible", "Atkinson Hyperlegible Fallback", Arial, sans-serif;
  --r1: 22px;
  --r2: 16px;
  --s1: 0 1px 2px rgb(23 27 36 / 0.06), 0 10px 24px -12px rgb(23 27 36 / 0.2);
  --s2: 0 2px 4px rgb(23 27 36 / 0.08), 0 24px 44px -18px rgb(23 27 36 / 0.32);
  --w1: 1240px;
  --p1: clamp(16px, 4vw, 40px);
  --hh: 64px;
  color-scheme: light;
}
@media (min-width: 1000px) {
  :root {
    --hh: 76px;
  }
}

/* ==== GRUNDLAGE ==== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--hh) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html [hidden] {
  display: none;
}
body {
  margin: 0;
  min-height: 100vh;

  font-family: var(--f2);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--g9);

  background: var(--g1);
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
}
h1,
h2,
h3 {
  font-family: var(--f1);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: normal;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(2rem, 1.35rem + 1.9vw, 3rem);
  font-weight: 900;
}
h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem);
}
h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
}
p + p {
  margin-top: 0.85em;
}
a {
  color: var(--a1);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--a1);
  outline-offset: 3px;
}
strong,
b {
  font-weight: 700;
}
address {
  font-style: normal;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
table {
  border-collapse: collapse;
}
.sr {
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;

  white-space: nowrap;

  clip: rect(0 0 0 0);
  border: 0;
}
.wr {
  width: 100%;
  max-width: var(--w1);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--p1);
  padding-right: var(--p1);
}

/* ==== TEXTBAUSTEINE ==== */
.eb {
  margin-bottom: 12px;

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--a1);
}
.ld {
  max-width: 62ch;

  font-size: 1.125rem;
  color: var(--g6);
}
.pf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 0;

  font-weight: 700;
  color: var(--a1);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.pf::after {
  content: "\2192";

  font-size: 1.15em;
  text-decoration: none;

  transition: translate 0.2s ease;
}
.pf:hover::after {
  translate: 4px 0;
}
.kn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;

  font-weight: 700;
  line-height: 1.2;
  color: var(--w0);
  text-decoration: none;

  background: var(--a2);
  border: 0;
  border-radius: 999px;

  transition: background 0.2s ease;
}
.kn:hover {
  color: var(--w0);

  background: var(--a3);
}
.kn[disabled],
.kn[aria-busy="true"] {
  cursor: progress;

  background: var(--a3);
}
.kn-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;

  font-weight: 700;
  color: var(--a1);
  text-decoration: none;

  background: var(--w0);
  border: 1.5px solid var(--a1);
  border-radius: 999px;
}
.kn-2:hover {
  color: var(--w0);

  background: var(--a1);
}
.chp {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;

  font-size: 0.95rem;
  font-weight: 700;
  color: var(--g9);
  text-decoration: none;

  background: var(--w0);
  border: 1px solid var(--g4);
  border-radius: 999px;
}
.chp:hover {
  color: var(--a1);

  border-color: var(--a1);
}

/* ==== KOPFZEILE ==== */
.hd {
  position: sticky;
  top: 0;
  z-index: 100;

  background: var(--g1);
  border-bottom: 1px solid var(--g3);
}
.hd-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "menu mk ts" "nav nav nav";
  align-items: center;
  column-gap: 12px;
  min-height: var(--hh);
}
.hd-mk {
  grid-area: mk;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 0;

  text-align: right;
}
.mk {
  margin: -8px 0;
  padding: 8px 0;

  font-family: var(--f1);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--g9);
  text-decoration: none;
}
.mk:hover {
  color: var(--a1);
}
.mk-zu {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--g6);
}
.hd-menu {
  grid-area: menu;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px;

  font-weight: 700;

  background: none;
  border: 0;
}
.js .hd-menu {
  display: inline-flex;
}
.hd-strich,
.hd-strich::before,
.hd-strich::after {
  display: block;
  width: 22px;
  height: 2px;

  background: var(--g9);
  border-radius: 2px;

  transition: rotate 0.2s ease, translate 0.2s ease;
}
.hd-strich {
  position: relative;
}
.hd-strich::before,
.hd-strich::after {
  position: absolute;
  left: 0;

  content: "";
}
.hd-strich::before {
  top: -7px;
}
.hd-strich::after {
  top: 7px;
}
.hd-menu[aria-expanded="true"] .hd-strich {
  background: transparent;
}
.hd-menu[aria-expanded="true"] .hd-strich::before {
  translate: 0 7px;
  rotate: 45deg;
}
.hd-menu[aria-expanded="true"] .hd-strich::after {
  translate: 0 -7px;
  rotate: -45deg;
}
.nv {
  grid-area: nav;
}
.nv-l {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;

  list-style: none;
}
.nv-l a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;

  font-weight: 700;
  color: var(--g9);
  text-decoration: none;

  border-bottom: 2px solid transparent;
}
.nv-l a:hover,
.nv-l a[aria-current="page"] {
  color: var(--a1);

  border-bottom-color: var(--a1);
}
.js .nv {
  position: fixed;
  top: var(--hh);
  left: 0;
  right: 0;
  bottom: 0;

  padding: 24px var(--p1) 40px;
  overflow-y: auto;

  background: var(--g1);

  visibility: hidden;
  translate: -100% 0;
  transition: translate 0.25s ease, visibility 0s linear 0.25s;
}
.js .nv.on {
  visibility: visible;
  translate: 0 0;
  transition: translate 0.25s ease, visibility 0s;
}
.js .nv-l {
  flex-direction: column;
  gap: 4px;
}
.js .nv-l a {
  width: 100%;
  min-height: 56px;

  font-family: var(--f1);
  font-size: 1.5rem;
  font-weight: 800;

  border-bottom: 1px solid var(--g3);
}
.hd-ts {
  grid-area: ts;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 4px 6px 8px;

  font-weight: 700;
  color: var(--g9);
  text-decoration: none;
}
.hd-ts svg {
  width: 24px;
  height: 24px;
}
.hd-tt {
  display: none;
}
.hd-zl {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;

  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--w0);

  background: var(--a2);
  border-radius: 999px;

  transition: scale 0.2s ease;
}
.hd-zl[data-n="0"] {
  color: var(--g9);

  background: var(--g3);
}
.hd-zl.entered {
  scale: 1.25;
}
@media (min-width: 560px) {
  .hd-tt {
    display: inline;
  }
}
@media (min-width: 1000px) {
  .hd-in {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "nav mk ts";
    column-gap: 28px;
  }
  .js .hd-menu {
    display: none;
  }
  .mk {
    font-size: 1.6rem;
  }
  .js .nv {
    position: static;

    padding: 0;
    overflow: visible;

    background: none;

    visibility: visible;
    translate: none;
    transition: none;
  }
  .js .nv-l {
    flex-direction: row;
    gap: 0 22px;
  }
  .js .nv-l a {
    width: auto;
    min-height: 44px;

    font-family: var(--f2);
    font-size: 1rem;
    font-weight: 700;

    border-bottom: 2px solid transparent;
  }
  .js .nv-l a:hover,
  .js .nv-l a[aria-current="page"] {
    border-bottom-color: var(--a1);
  }
}

/* ==== SEITENKOPF (Unterseiten) ==== */
.ph {
  padding-top: 32px;
  padding-bottom: 28px;

  background: linear-gradient(180deg, var(--g2) 0%, var(--g1) 100%);
}
.ph-in {
  display: grid;
  align-content: end;
}
.ph-in > * {
  min-width: 0;
}
.ph h1 {
  max-width: 32ch;
}
.ph .ld {
  margin-top: 14px;
}
@media (min-width: 1000px) {
  .ph-in {
    min-height: 168px;
  }
  .ph .ld {
    max-width: 70ch;
  }
}

/* ==== FUSSZEILE ==== */
.ft {
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: 28px;
  padding-bottom: 28px;

  color: var(--g3);

  background: var(--g9);
}
.ft-in {
  display: grid;
  gap: 14px;
}
.ft-l {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.ft-l a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;

  font-weight: 700;
  color: var(--w0);
  text-decoration: none;
}
.ft-l a:hover,
.ft-l a:focus-visible {
  color: var(--w0);
  text-decoration: underline;
}
.ft a:focus-visible {
  outline-color: var(--w0);
}
.ft-r {
  min-width: 0;

  font-size: 0.95rem;
  color: var(--g3);
}
.ft-r a {
  color: var(--w0);
}
.ft-r a:hover {
  color: var(--w0);
}

/* ==== FORMULARE ==== */
.fd {
  display: grid;
  gap: 6px;
}
.fd label,
.fd .fd-t {
  font-weight: 700;
}
.fd input,
.fd select,
.fd textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;

  font-size: 1rem;

  background: var(--w0);
  border: 1.5px solid var(--g4);
  border-radius: 12px;
}
.fd textarea {
  min-height: 140px;

  resize: vertical;
}
.fd input:focus,
.fd select:focus,
.fd textarea:focus {
  border-color: var(--a1);
}
.fd [aria-invalid="true"] {
  border-color: var(--a3);
}
.fh {
  font-size: 0.92rem;
  color: var(--g6);
}
.fe {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--a3);
}
.cb {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.cb input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 2px 0 0;

  accent-color: var(--a1);
}
.cb label {
  font-weight: 400;
}
.hp {
  position: absolute;
  left: -9999px;

  width: 1px;
  height: 1px;
  overflow: hidden;
}
