/* Hausarztpraxis am Ahornhain — Demo von FatCat Digital
   Ruhig, klar, barrierearm. Schrift: Atkinson Hyperlegible Next (SIL OFL 1.1, lokal). */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F3EC;          /* warmes Papier */
  --surface: #FFFFFF;
  --soft: #E6EFE8;        /* zartes Salbei */
  --soft-2: #EDF2F5;      /* zartes Blau */
  --ink: #17282C;
  --muted: #3E5157;
  --line: #C9D3CD;
  --green: #2D6A4F;
  --green-dark: #1F4E39;
  --on-green: #FFFFFF;
  --blue: #1E5470;
  --warn-bg: #FFF4E0;
  --warn-line: #B4561A;
  --warn-ink: #5A2A08;
  --focus: #FFC629;
  --route: #B4561A;
  --map-bg: #FBFAF6;
  --map-block: #E4E1D6;
  --map-road: #FFFFFF;
  --map-roadline: #B9B4A4;
  --map-green: #DCE9DF;
  --map-water: #A9CBDD;
  --map-park: #D6E2EC;
  --map-stop: #1E5470;
  --radius: 1rem;
  --radius-lg: 1.75rem;
  --shadow: 0 1px 2px rgb(23 40 44 / .06), 0 8px 24px rgb(23 40 44 / .06);
  --wrap: 72rem;
  --gut: clamp(1rem, 4vw, 2.5rem);
}

/* Hoher Kontrast: Schalter oder Systemeinstellung */
html[data-contrast="high"] {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --soft: #FFFFFF;
  --soft-2: #FFFFFF;
  --ink: #000000;
  --muted: #000000;
  --line: #000000;
  --green: #00391F;
  --green-dark: #000000;
  --blue: #002A40;
  --warn-bg: #FFFFFF;
  --warn-line: #000000;
  --warn-ink: #000000;
  --route: #000000;
  --map-bg: #FFFFFF;
  --map-block: #D9D9D9;
  --map-roadline: #000000;
  --map-green: #E8E8E8;
  --map-water: #5A8FB0;
  --map-park: #E8E8E8;
  --map-stop: #000000;
  --shadow: none;
}
html[data-contrast="high"] .card,
html[data-contrast="high"] .way,
html[data-contrast="high"] .serv__item,
html[data-contrast="high"] .role,
html[data-contrast="high"] .step,
html[data-contrast="high"] .form,
html[data-contrast="high"] .urgent { border: 2px solid #000; }
html[data-contrast="high"] .hero__fig img,
html[data-contrast="high"] .serv__fig img { filter: contrast(1.1); }

/* Schriftgrößen-Umschalter: skaliert alles, weil alles in rem gesetzt ist */
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-size="2"] { font-size: 115%; }
html[data-size="3"] { font-size: 130%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  font-size: 1.1875rem;      /* 19 px */
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
strong { font-weight: 700; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--focus);
  border-radius: .35rem;
}
main:focus-visible { box-shadow: none; outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.small { font-size: .9rem; color: var(--muted); }

/* Skip-Link */
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: .5rem;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 3.5rem; }

/* Demo-Leiste — fixiert, nicht wegklickbar */
.demobar {
  position: sticky; top: 0; z-index: 50;
  background: #10201C; color: #F2F2EE;
  font-size: .8125rem; line-height: 1.4;
}
.demobar p {
  margin: 0; padding: .5rem var(--gut);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem 1rem; text-align: center;
}
.demobar a { color: #FFE08A; font-weight: 700; }
.demobar a:focus-visible { outline-color: #FFE08A; box-shadow: none; }

/* Darstellungs-Werkzeuge */
.tools { background: var(--surface); border-bottom: 1px solid var(--line); }
.tools__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem 1.25rem; padding-block: .5rem; }
.tools__group { display: flex; align-items: center; gap: .375rem; }
.tools__label { font-size: .875rem; color: var(--muted); margin-right: .25rem; }
.tbtn {
  font: inherit; font-size: .9375rem; font-weight: 700; line-height: 1;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 .6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  color: var(--ink); background: var(--surface);
  border: 2px solid #6B7C80; border-radius: .6rem; cursor: pointer;
}
.tbtn--m { font-size: 1.125rem; }
.tbtn--l { font-size: 1.375rem; }
.tbtn--wide { font-size: .9375rem; padding-inline: .85rem; }
.tbtn:hover { border-color: var(--green); }
.tbtn[aria-pressed="true"] { background: var(--green); color: var(--on-green); border-color: var(--green); }

/* Kopf */
.head { background: var(--surface); border-bottom: 1px solid var(--line); }
.head__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; }
.brand__mark { width: 3rem; height: 3rem; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__k { font-size: .875rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.brand__n { font-size: 1.375rem; font-weight: 700; }

.menu-btn {
  font: inherit; font-weight: 700; font-size: 1rem;
  min-height: 2.75rem; padding: 0 1.1rem; border-radius: .6rem;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .25rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem .8rem;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem; border-radius: .6rem;
}
.nav a:hover { background: var(--soft); text-decoration: underline; }
.nav a.nav__cta { background: var(--green); color: var(--on-green); }
.nav a.nav__cta:hover { background: var(--green-dark); }

/* Mobil: Menü einklappbar — nur wenn JS die Klasse setzt */
@media (max-width: 59.99em) {
  .js-nav .menu-btn { display: inline-block; }
  .js-nav .nav { flex-basis: 100%; }
  .js-nav .nav.is-closed { display: none; }
  .js-nav .nav ul { flex-direction: column; gap: .25rem; padding-bottom: .5rem; }
  .js-nav .nav a { width: 100%; font-size: 1.125rem; padding: .6rem .9rem; border: 2px solid var(--line); }
  .js-nav .nav a.nav__cta { border-color: var(--green); }
}
@media (min-width: 60em) { .menu-btn { display: none !important; } }

/* Hero */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font-size: .9375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green);
}
.hero h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.08; margin-bottom: 1.25rem; }
.lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); color: var(--muted); max-width: 36rem; }
.status {
  display: inline-flex; align-items: center; gap: .65rem; margin-top: .5rem;
  padding: .6rem 1rem; border-radius: 99rem; background: var(--surface); border: 2px solid var(--line);
  font-weight: 700; font-size: 1.0625rem;
}
.status__dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open .status__dot { background: var(--green); box-shadow: 0 0 0 4px var(--soft); }
.status.is-closed .status__dot { background: var(--warn-line); }
.status small { font-weight: 400; color: var(--muted); font-size: .875rem; }

.hero__fig { margin: 0; position: relative; }
.hero__fig img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 40%;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 6rem;
}
.hero__fig::after {
  content: ""; position: absolute; inset: auto auto -1rem -1rem; width: 40%; height: 40%;
  border-radius: 0 0 0 6rem; border: 3px solid var(--green); border-top: 0; border-right: 0;
  opacity: .35; pointer-events: none; z-index: -1;
}

@media (min-width: 60em) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
}

/* Die vier Wege */
.ways { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40em) { .ways { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .ways { grid-template-columns: repeat(4, 1fr); } }
.way {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 1rem; align-items: start; height: 100%;
  padding: 1.35rem 3rem 1.35rem 1.25rem; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); border: 2px solid transparent;
  color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.way:hover { border-color: var(--green); }
.way__ico { grid-row: 1 / 3; width: 3rem; height: 3rem; color: var(--green); padding: .1rem; }
.way__t { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.way__d { color: var(--muted); font-size: 1rem; line-height: 1.4; margin-top: .25rem; }
.way__go {
  position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--green); transition: transform .15s;
}
.way:hover .way__go { transform: translate(.25rem, -50%); }
@media (prefers-reduced-motion: reduce) { .way, .way__go { transition: none; } }
@media (min-width: 72em) {
  /* vier schmale Karten: Symbol oben, Text volle Breite, Pfeil oben rechts */
  .way { grid-template-columns: 1fr; align-content: start; padding: 1.5rem 1.5rem 1.6rem; row-gap: .9rem; }
  .way__ico { grid-row: auto; }
  .way__d { margin-top: -.55rem; }
  .way__go { top: 1.5rem; transform: none; }
  .way:hover .way__go { transform: translateX(.25rem); }
}

/* Notfall */
.urgent {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius);
  background: var(--warn-bg); border-left: .45rem solid var(--warn-line); color: var(--warn-ink);
}
.urgent__h { font-size: 1.125rem; margin-bottom: .35rem; }
.urgent p { max-width: 60rem; }

/* Abschnitte allgemein */
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); scroll-margin-top: 4.5rem; }
section[id] { scroll-margin-top: 4.5rem; }
.sec__head { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sec__head h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
.sec__lead { font-size: 1.1875rem; color: var(--muted); }
.card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card--soft { background: var(--soft); box-shadow: none; }
.card h3 { font-size: 1.25rem; }

/* Sprechzeiten */
.sec--hours { background: var(--surface); border-block: 1px solid var(--line); }
.hours { display: grid; gap: 1.5rem; }
@media (min-width: 60em) { .hours { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; } }
.hours__table { overflow-x: auto; container-type: inline-size; }
/* Große Schrift auf schmalen Schirmen: Tabelle wird zur Liste statt seitlich abzuschneiden */
@container (max-width: 21em) {
  .hours__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hours__table tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; padding: .85rem .6rem; border-bottom: 1px solid var(--line); }
  .hours__table th, .hours__table td { display: block; padding: 0; border: 0; }
  .hours__table tbody th { grid-column: 1 / -1; margin-bottom: .3rem; }
  .hours__table td::before { content: attr(data-label); display: block; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-style: normal; }
}
table { width: 100%; border-collapse: collapse; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 700; color: var(--muted); font-size: .9375rem; padding-bottom: .75rem; }
th, td { text-align: left; padding: .9rem .75rem; border-bottom: 1px solid var(--line); }
thead th { font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 700; }
tbody tr.is-today { background: var(--soft); }
tbody tr.is-today th::after {
  content: "heute"; display: inline-block; margin-left: .6rem; padding: .05rem .5rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--green); color: var(--on-green); border-radius: .35rem; vertical-align: .15em;
}
.closed { color: var(--muted); font-style: italic; }
.hours__side { display: grid; gap: 1rem; }
.tel { font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; display: inline-block; margin-top: .25rem; }
.tel:hover { text-decoration: underline; }
@media (max-width: 26em) {
  th, td { padding: .75rem .4rem; }
  table { font-size: 1rem; }
}

/* Leistungen */
.serv__intro { display: grid; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.serv__intro .sec__head { margin-bottom: 0; }
.serv__fig { margin: 0; }
.serv__fig img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #EEE; }
@media (min-width: 60em) { .serv__intro { grid-template-columns: 1.2fr .8fr; gap: 4rem; } }
.serv { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40em) { .serv { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .serv { grid-template-columns: repeat(3, 1fr); } }
.serv__item {
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow); border-top: .3rem solid var(--green);
}
.serv__item h3 { font-size: 1.25rem; }
.serv__item p { color: var(--muted); font-size: 1.0625rem; }

/* Ihr Besuch */
.sec--visit { background: var(--soft-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 52em) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.step { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step__n {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 1.25rem;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: 1.0625rem; }
.bring { margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius); border: 2px dashed var(--blue); }
.bring__h { font-size: 1.25rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem 2rem; }
@media (min-width: 40em) { .checks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .checks { grid-template-columns: repeat(3, 1fr); } }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: .15rem; top: .45em; width: 1.1rem; height: .6rem;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg);
}

/* Team */
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40em) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .team { grid-template-columns: repeat(4, 1fr); } }
.role { position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.role__ico {
  display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1.25rem;
  background: var(--soft); color: var(--green); margin-bottom: 1rem;
}
.role__ico svg { width: 2.5rem; height: 2.5rem; }
.role .role__count {
  position: absolute; top: 1.25rem; right: 1.5rem; margin: 0;
  font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--green); text-align: right;
}
.role .role__count span { display: block; margin-top: .3rem; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: right; }
.role h3 { font-size: 1.1875rem; }
.role p { color: var(--muted); font-size: 1.0625rem; }

/* Anfahrt */
.sec--map { background: var(--surface); border-block: 1px solid var(--line); }
.map__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60em) { .map__grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.addr { font-style: normal; font-size: 1.25rem; font-weight: 700; line-height: 1.5; margin-bottom: 1.75rem; }
.route { margin: 0; display: grid; gap: 1.25rem; }
.route dt { font-weight: 700; font-size: 1.125rem; }
.route dd { margin: .2rem 0 0; color: var(--muted); }
.map__fig { margin: 0; }
.map { width: 100%; border-radius: var(--radius-lg); border: 2px solid var(--line); }
.map__fig figcaption { font-size: .9375rem; color: var(--muted); margin-top: .75rem; }
.map text { font-family: "Atkinson Hyperlegible Next", Verdana, sans-serif; }
.map__lbl { font-size: 25px; font-weight: 700; fill: var(--ink); }
.map__lbl--on { fill: var(--on-green); }
.map__street {
  font-size: 20px; font-weight: 700; fill: var(--muted); letter-spacing: .02em;
  paint-order: stroke; stroke: var(--map-road); stroke-width: 6px; stroke-linejoin: round;
}
.map__street--water { fill: var(--blue); stroke: var(--map-green); }
.map__h { font-size: 21px; font-weight: 800; fill: #fff; }
.map__p { font-size: 34px; font-weight: 800; fill: var(--blue); }
.map__n { font-size: 11px; font-weight: 800; fill: var(--ink); }
@media (max-width: 40em) {
  .map__street { font-size: 26px; }
  .map__lbl { font-size: 30px; }
}
.nowrap { white-space: nowrap; }

/* Kontakt */
.contact__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60em) { .contact__grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }
.contact__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.contact__list li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.contact__k { font-weight: 700; color: var(--muted); }
@media (max-width: 24em) { .contact__list li { grid-template-columns: 1fr; gap: 0; } }
.note { padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--warn-bg); border-left: .35rem solid var(--warn-line); color: var(--warn-ink); }

.form { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1.125rem; margin-bottom: .75rem; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.form { container-type: inline-size; }
@container (max-width: 19em) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3.25rem;
  padding: .5rem .75rem; border: 2px solid #6B7C80; border-radius: .75rem; font-weight: 700; font-size: 1rem; line-height: 1.25;
  hyphens: manual; overflow-wrap: break-word;
}
.choice input:checked + span { background: var(--green); border-color: var(--green); color: var(--on-green); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--focus); }
.choice:hover span { border-color: var(--green); }

.field { margin-bottom: 1.25rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 40em) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; font-size: 1.0625rem; }
.req { font-weight: 400; color: var(--muted); font-size: .9375rem; }
input[type="text"], input[type="tel"], textarea {
  width: 100%; font: inherit; font-size: 1.1875rem; color: var(--ink);
  padding: .8rem .95rem; min-height: 3.25rem; border: 2px solid #6B7C80; border-radius: .6rem; background: #fff;
}
html[data-contrast="high"] input[type="text"], html[data-contrast="high"] input[type="tel"], html[data-contrast="high"] textarea { border-color: #000; }
input::placeholder { color: #5E6E72; opacity: 1; }
textarea { resize: vertical; min-height: 7rem; }
input:focus-visible, textarea:focus-visible { border-color: var(--ink); border-radius: .6rem; }
[aria-invalid="true"] { border-color: #A3261B !important; }
.hint { font-size: .9375rem; color: var(--muted); margin: .4rem 0 0; }
.err { font-size: .9375rem; color: #A3261B; font-weight: 700; margin: .4rem 0 0; }

.field--check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .85rem; align-items: start; }
.field--check input { width: 1.6rem; height: 1.6rem; margin: .1rem 0 0; accent-color: var(--green); cursor: pointer; }
.field--check label { font-weight: 400; margin: 0; }
.field--check .err { grid-column: 2; }
.btn {
  font: inherit; font-weight: 700; font-size: 1.1875rem; cursor: pointer;
  min-height: 3.5rem; padding: .8rem 2rem; border-radius: .75rem; border: 0;
  background: var(--green); color: var(--on-green); width: 100%;
}
@media (min-width: 40em) { .btn { width: auto; } }
.btn:hover { background: var(--green-dark); }
.form__done {
  margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: .75rem;
  background: var(--soft); border: 2px solid var(--green); font-weight: 700;
}

/* Fuß */
.foot { background: #10201C; color: #E9EDEA; padding-block: 2.5rem; font-size: 1rem; }
.foot__in { display: grid; gap: 1.5rem; }
@media (min-width: 48em) { .foot__in { grid-template-columns: 1fr auto; align-items: end; } }
.foot__name { font-weight: 700; font-size: 1.1875rem; margin-bottom: .25rem; }
.foot .small { color: #C5CEC9; }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot a { color: #FFFFFF; display: inline-block; min-height: 2.75rem; line-height: 2.75rem; }
.foot a:focus-visible { outline-color: #fff; }

@media print {
  .demobar, .tools, .nav, .menu-btn, .form, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}

/* 4K-Bildschirme: Grundschrift wächst ab 1920 px mit — auch zusammen mit dem Schriftgrößen-Umschalter. */
@media (min-width: 1921px) {
  html { font-size: calc(100% + (100vw - 1920px) / 192); }
  html[data-size="2"] { font-size: calc(115% + (100vw - 1920px) / 167); }
  html[data-size="3"] { font-size: calc(130% + (100vw - 1920px) / 148); }
}

/* Bildpipeline 2026-11-11: <picture> erzeugt keine eigene Box — Layout bleibt wie beim nackten <img> */
picture { display: contents; }
picture > source { display: none; } /* sonst wird <source> unter display:contents zum Grid-Element (handel: Bild 0 px hoch) */
