/* Badkosten-Check – gemeinsames Stylesheet */
/* Lokal gehostete Schriften (Caladea = Serif, Carlito = Sans), keine externen Requests */
@font-face { font-family: "Caladea"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Caladea-Regular.woff") format("woff"); }
@font-face { font-family: "Caladea"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/Caladea-Bold.woff") format("woff"); }
@font-face { font-family: "Caladea"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/Caladea-Italic.woff") format("woff"); }
@font-face { font-family: "Carlito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Carlito-Regular.woff") format("woff"); }
@font-face { font-family: "Carlito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/Carlito-Bold.woff") format("woff"); }
@font-face { font-family: "Carlito"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/Carlito-Italic.woff") format("woff"); }
:root {
  --bg: #F7F6F2;
  --bg-elev: #FFFFFF;
  --text: #1E2A32;
  --muted: #4E5A63;
  --accent: #0E5C63;
  --accent-dark: #0A454B;
  --accent-soft: #E4EEEF;
  --sand: #D9CBB3;
  --sand-soft: #EFE8DA;
  --success: #2F6B4F;
  --line: #E3E0D8;
  --danger: #8A2E2E;
  --serif: "Caladea", Georgia, "Times New Roman", serif;
  --sans: "Carlito", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 72ch;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(30, 42, 50, 0.06), 0 8px 24px -12px rgba(30, 42, 50, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.6em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); margin-top: 2.2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 0.5rem; top: -4rem;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
  z-index: 100; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--accent-dark); text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 5px;
  background: var(--accent); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1;
}
.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav-drop { position: relative; }
.nav-drop > summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 0.5rem 0.75rem; border-radius: var(--radius);
  font-weight: 700; color: var(--text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after {
  content: ""; width: 0.5em; height: 0.5em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-drop[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.nav-drop > summary:hover { background: var(--sand-soft); }
.nav-menu {
  position: absolute; right: 0; top: calc(100% + 0.4rem);
  min-width: 20rem; max-width: calc(100vw - 2rem);
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0.5rem; margin: 0; list-style: none;
}
.nav-menu li { margin: 0; }
.nav-menu a {
  display: block; padding: 0.55rem 0.75rem; text-decoration: none; color: var(--text);
  border-radius: 4px; font-size: 0.97rem; line-height: 1.35;
}
.nav-menu a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav-menu a small { display: block; color: var(--muted); font-size: 0.82rem; }
.nav .btn { padding: 0.5rem 0.95rem; font-size: 0.95rem; }
.nav-link { text-decoration: none; font-weight: 700; padding: 0.5rem 0.75rem; border-radius: var(--radius); color: var(--text); }
.nav-link:hover { background: var(--sand-soft); text-decoration: none; }
.lbl-short { display: none; }
@media (max-width: 40rem) {
  .nav-link { display: none; }
  .site-header .wrap { gap: 0.5rem; }
  .brand span.brand-text { font-size: 1.05rem; white-space: nowrap; }
  .nav .btn { padding: 0.45rem 0.7rem; font-size: 0.9rem; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.35rem; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent-dark); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-sand { background: var(--sand); color: var(--text); border-color: var(--sand); }
.btn-sand:hover { background: #cdbc9e; border-color: #cdbc9e; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }

/* ---------- Layout helpers ---------- */
main { display: block; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-title { margin-top: 0; }
.kicker {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #F1EFE8 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hero .wrap {
  display: grid; gap: 2.5rem; align-items: start;
}
@media (min-width: 60rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; }
}
.hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; max-width: 52ch; }
.hero-points li { padding-left: 1.6rem; position: relative; color: var(--text); }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 0.9rem; height: 0.9rem;
  border-radius: 50%; background: var(--sand); box-shadow: inset 0 0 0 3px var(--bg);
  border: 1px solid #c9b997;
}

/* ---------- Kostenrechner ---------- */
.calc {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 1.9rem);
  position: relative;
}
.calc::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--accent) 0 55%, var(--sand) 55% 100%);
  border-radius: 10px 10px 0 0;
}
.calc h2 { margin-top: 0; font-size: 1.35rem; }
.calc-row { margin-bottom: 1.2rem; }
.calc label, .calc legend { font-weight: 700; display: block; margin-bottom: 0.4rem; }
.calc-size { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.calc-size output { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--accent-dark); }
input[type="range"] {
  width: 100%; margin: 0.4rem 0 0; accent-color: var(--accent); height: 2rem; cursor: pointer;
}
.range-scale { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.calc fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: block; text-align: center; padding: 0.6rem 0.4rem; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--bg); font-size: 0.95rem; line-height: 1.25;
  transition: border-color 0.15s, background-color 0.15s;
}
.chip span small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc-result {
  margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--sand-soft); border: 1px solid #e6dcc6;
}
.calc-result .label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--muted); }
.calc-result .value { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem); font-weight: 700; color: var(--accent-dark); line-height: 1.15; margin: 0.2rem 0; }
.calc-result .value span { white-space: nowrap; }
.calc-note { font-size: 0.9rem; color: var(--muted); margin: 0.5rem 0 0; }
.calc .btn { margin-top: 1.2rem; }
.calc-source { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0; }

/* ---------- Kacheln ---------- */
.tiles { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile {
  display: flex; flex-direction: column; gap: 0.5rem; height: 100%;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.35rem 1.4rem 1.4rem; text-decoration: none; color: var(--text);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  border-top: 4px solid var(--sand);
}
.tile:hover { border-color: var(--accent); border-top-color: var(--accent); text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.tile:nth-child(1) { border-top-color: var(--accent); }
.tile .tile-n { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.tile h3 { margin: 0; font-size: 1.15rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.tile .tile-more { color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.tile:hover .tile-more { text-decoration: underline; }

/* ---------- Home: So arbeiten wir ---------- */
.method { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .method { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.method ol { list-style: none; padding: 0; margin: 0; counter-reset: m; display: grid; gap: 1rem; }
.method ol li { counter-increment: m; position: relative; padding-left: 3rem; }
.method ol li::before {
  content: counter(m); position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; color: var(--accent-dark);
  background: var(--sand-soft); border: 1px solid var(--sand);
}
.transparency {
  border-left: 4px solid var(--sand); background: var(--sand-soft);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  max-width: var(--measure); font-size: 0.97rem;
}
.transparency p:last-child { margin-bottom: 0; }

.cta-band {
  background: var(--accent); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem);
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 60ch; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--sand-soft); border-color: var(--sand-soft); }
.cta-band a:not(.btn) { color: #fff; }

/* ---------- Article ---------- */
.article-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--sand); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-dark); }
.article-head h1 { max-width: 24ch; }
.meta-line { color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0 0; max-width: var(--measure); }
.meta-line span + span::before { content: "·"; margin: 0 0.5rem; color: var(--sand); }

.article-grid { display: grid; gap: 2.5rem; align-items: start; padding-block: 1rem 3rem; }
@media (min-width: 64rem) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 17rem; gap: 4rem; }
  .article-grid .toc { position: sticky; top: 5.25rem; order: 2; }
}
.article-body { max-width: var(--measure); min-width: 0; }
.article-body > :first-child { margin-top: 0; }

.toc {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.25rem;
  max-width: var(--measure); font-size: 0.93rem;
}
.toc h2 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 0.6rem; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin-bottom: 0.3rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-dark); text-decoration: underline; }

.notice {
  display: flex; gap: 0.8rem; align-items: flex-start;
  border: 1px solid var(--line); background: var(--bg-elev); border-radius: var(--radius);
  padding: 0.85rem 1rem; font-size: 0.93rem; color: var(--muted); margin: 0 0 1.75rem;
}
.notice::before {
  content: "i"; flex: 0 0 auto; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sand-soft); border: 1px solid var(--sand);
  font-family: var(--serif); font-weight: 700; color: var(--accent-dark); font-size: 0.85rem; margin-top: 0.1rem;
}
.notice p { margin: 0; }

.table-wrap { position: relative; margin: 1.25rem 0 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Scroll-Hinweis: Verlaufs-Schatten rechts, solange nicht ans Ende gescrollt */
.table-wrap::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2.5rem; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(30,42,50,0.16));
  border-radius: 0 var(--radius) var(--radius) 0; opacity: 1; transition: opacity 0.2s;
}
.table-wrap.is-end::after, .table-wrap.no-scroll::after { opacity: 0; }
.table-hint { display: none; font-size: 0.8rem; color: var(--muted); padding: 0.35rem 0.8rem; border-top: 1px solid var(--line); background: var(--sand-soft); }
.table-hint::before { content: "↔"; margin-right: 0.4rem; }
@media (max-width: 640px) { .table-wrap:not(.no-scroll) .table-hint { display: block; } }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 30rem; }
thead th { text-align: left; background: var(--sand-soft); color: var(--text); font-weight: 700; padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--sand); white-space: nowrap; }
tbody td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 640px) {
  table { font-size: 14px; min-width: 26rem; }
  thead th { padding: 0.45rem 0.5rem; }
  tbody td { padding: 0.4rem 0.5rem; }
}
tbody tr:nth-child(even) td { background: #FBFAF7; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--accent-dark); }

.article-body blockquote { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 4px solid var(--sand); color: var(--muted); }

.cta-box {
  margin: 2.5rem 0; padding: 1.5rem 1.6rem 1.6rem;
  background: var(--accent-soft); border: 1px solid #cfdfe0; border-left: 5px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.cta-box h3 { margin: 0 0 0.5rem; font-size: 1.25rem; color: var(--accent-dark); }
.cta-box p { margin-bottom: 0.9rem; }
.cta-box p:last-child { margin-bottom: 0; }
.cta-box .btn { margin-top: 0.25rem; }

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev);
  margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer; padding: 0.9rem 2.6rem 0.9rem 1.1rem; font-weight: 700; list-style: none; position: relative;
  font-family: var(--serif); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-a { padding: 0.9rem 1.1rem 0.2rem; }
.faq .faq-a p:last-child { margin-bottom: 0.9rem; }

.sources { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2.5rem; }
.sources p { margin: 0; }

.related { margin-top: 2.5rem; padding: 1.4rem 1.5rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; }
.related h2 { margin: 0 0 0.9rem; font-size: 1.2rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.related li { padding-left: 1.2rem; position: relative; }
.related li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--sand); transform: rotate(45deg); }
.related a { font-weight: 700; }
.related small { display: block; color: var(--muted); font-size: 0.88rem; }

/* ---------- Static pages ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0.5rem; }
.page-body { max-width: var(--measure); padding-block: 1rem 3.5rem; }
.page-body > :first-child { margin-top: 0; }

/* ---------- Form ---------- */
.form-layout { display: grid; gap: 2.5rem; padding-block: 1rem 3.5rem; align-items: start; }
@media (min-width: 64rem) { .form-layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: 4rem; } }
.form-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); max-width: 48rem; }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field .req { color: var(--danger); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid #cfcbc0; border-radius: var(--radius); padding: 0.65rem 0.8rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #fff; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field textarea { min-height: 7rem; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--muted); margin: 0.3rem 0 0; }
fieldset.form-section { border: 0; padding: 0; margin: 0 0 1.75rem; }
fieldset.form-section legend { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.9rem; padding: 0; }
.consent { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.consent-check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.consent-check input { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; accent-color: var(--accent); flex: 0 0 auto; }
.consent-check label { font-size: 0.95rem; line-height: 1.55; }
.consent details { margin-top: 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.consent summary { cursor: pointer; padding: 0.7rem 1rem; font-weight: 700; color: var(--accent-dark); }
.consent .consent-full { padding: 0.25rem 1.1rem 0.5rem; font-size: 0.93rem; max-width: 70ch; }
.consent .consent-full h3 { font-size: 1.05rem; margin-top: 0.75rem; }
.consent .consent-full ul { padding-left: 1.2rem; }
.fee-note { font-size: 0.9rem; color: var(--muted); margin: 0.9rem 0 0; }
.form-actions { margin-top: 1.5rem; }
.form-status { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius); font-size: 0.95rem; }
.form-status[data-state="error"] { background: #F6E4E4; border: 1px solid #E5BFBF; color: var(--danger); }
.form-status[data-state="info"] { background: var(--sand-soft); border: 1px solid var(--sand); }
.form-status:empty { display: none; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.aside-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem 1.4rem; font-size: 0.95rem; }
.aside-card h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
.aside-card ul { padding-left: 1.2rem; margin: 0; }
.aside-card li { margin-bottom: 0.5rem; }
.aside-card .check { list-style: none; padding: 0; }
.aside-card .check li { padding-left: 1.6rem; position: relative; }
.aside-card .check li::before { content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.45rem; height: 0.8rem; border-right: 2.5px solid var(--success); border-bottom: 2.5px solid var(--success); transform: rotate(45deg); }

.thanks { text-align: left; max-width: 44rem; padding-block: clamp(2.5rem, 7vw, 5rem) 4rem; }
.thanks .mark { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #E3EFE8; border: 1px solid #BFD8C9; display: grid; place-items: center; margin-bottom: 1.25rem; }
.thanks .mark::before { content: ""; width: 0.8rem; height: 1.4rem; border-right: 3px solid var(--success); border-bottom: 3px solid var(--success); transform: translateY(-3px) rotate(45deg); }

/* ---------- Footer ---------- */
.site-footer { background: #1E2A32; color: #D8DEE2; padding-block: 3rem 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sand); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--sand); color: var(--text); }
.site-footer .footer-about { color: #B9C3CA; font-size: 0.95rem; max-width: 40ch; margin-top: 0.75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 2.25rem; padding-top: 1.25rem; font-size: 0.88rem; color: #B9C3CA; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; text-underline-offset: 0.15em; }
.link-button:hover { color: var(--sand); }

/* ---------- Datenschutz-Hinweisbalken ---------- */
.notice-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  background: var(--bg-elev); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px -12px rgba(30,42,50,0.3);
  padding: 0.5rem clamp(1rem, 4vw, 2.5rem);
  max-height: 12vh; overflow: hidden;
}
.notice-bar[hidden] { display: none; }
.notice-inner { max-width: 76rem; margin-inline: auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 0.75rem 1rem; }
.notice-bar p { margin: 0; font-size: 0.85rem; line-height: 1.3; flex: 1 1 auto; min-width: 0; }
.notice-bar .btn { flex: 0 0 auto; padding: 0.45rem 0.9rem; font-size: 0.9rem; }
body.has-notice { padding-bottom: 5rem; }
@media (max-width: 640px) {
  .notice-bar p { font-size: 0.78rem; line-height: 1.25; }
  .notice-bar .btn { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
}

/* ---------- 404 ---------- */
.err { max-width: 44rem; padding-block: clamp(3rem, 8vw, 6rem); }
.err .big { font-family: var(--serif); font-size: 5rem; color: var(--sand); line-height: 1; margin: 0; }

@media print {
  .site-header, .site-footer, .notice-bar, .cta-box, .toc, .related, .skip-link { display: none !important; }
  body { background: #fff; }
}
