/* Gemeinsames Design der Rechtstexte (Impressum, Datenschutz, AGB, AVV, Meta, Datenlöschung, Kündigen, /en/) – nur der Inhalt (main).
   Kopfzeile mit Mega-Menü und Footer setzt dev/seo-seiten/bauen.mjs ein (gleich wie auf allen Seiten). */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f3f3f1;
  --surface: #fff;
  --text: #0e0e0e;
  --soft: #3c3c37;
  --muted: #6b6b63;
  --line: #e2e2de;
  --line-strong: #cfcfc9;
  --gruen: #b9f27c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: calc(100% - 32px); min-width: 0; overflow-wrap: break-word; max-width: 820px; margin: 24px auto 64px; padding: 56px 56px 72px; background: var(--surface); border-radius: 32px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
main h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.02; hyphens: auto; overflow-wrap: break-word; }
main .stand { color: var(--muted); margin-top: 12px; font-size: 15px; }
main h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; margin: 44px 0 12px; }
main h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
main p, main li { color: var(--soft); font-size: 16px; line-height: 1.7; }
main p + p { margin-top: 12px; }
main ul, main ol { margin: 10px 0 0 22px; }
main li + li { margin-top: 6px; }
main a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
main a:hover { text-decoration-color: var(--text); }
main strong { color: var(--text); font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; color: var(--text); background: var(--bg); padding: 1px 5px; border-radius: 6px; }
.adresse { margin-top: 12px; }
.parteien { margin-top: 28px; }
.inhalt { margin-top: 28px; padding: 18px 22px; background: var(--bg); border-radius: 18px; }
.inhalt ol { margin-top: 6px; }
.tabelle { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--soft); line-height: 1.55; }
.tabelle th { color: var(--text); font-weight: 700; }
.widerruf {
  margin-top: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--text);
  border: 0;
  border-radius: 999px;
  height: 44px;
  padding: 0 22px;
  cursor: pointer;
}
.widerruf:hover { box-shadow: 0 10px 24px rgba(0,0,0,.14); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
@media (max-width: 600px) {
  main { width: calc(100% - 24px); margin: 8px auto 40px; padding: 32px 20px 48px; border-radius: 24px; }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; }
  .tabelle thead { display: none; }
  .tabelle tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tabelle td { border: 0; padding: 2px 0; font-size: 14px; }
  .tabelle td:first-child { color: var(--text); }
}


/* Vertrag kündigen (/kuendigen/): Logo, schmale Karte mit Formular, Hinweis zu den Fristen */
body.einzeln main { max-width: 480px; padding: 36px 32px 32px; margin-top: 20px; margin-bottom: 18px; flex: 0 0 auto; }
body.einzeln main h1 { font-size: 30px; letter-spacing: -0.04em; }
body.einzeln .unter { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.fussnote { max-width: 480px; width: calc(100% - 32px); margin: 0 auto 40px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--muted); }
.fussnote a { color: var(--muted); }
.formular { margin-top: 26px; display: grid; gap: 18px; }
.formular label, .formular .feld { display: grid; gap: 7px; font-size: 15px; font-weight: 700; color: var(--text); }
.formular .optional { font-weight: 400; color: var(--muted); }
.formular input[type=email], .formular input[type=date], .formular textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; width: 100%; min-height: 48px; }
.formular textarea { resize: vertical; min-height: 90px; }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--gruen); }
.formular .wahl { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--soft); font-size: 15px; cursor: pointer; }
.formular .wahl input { width: 18px; height: 18px; accent-color: var(--text); flex: none; }
.formular .datum { margin-left: 28px; width: calc(100% - 28px); }
.formular .datum[hidden] { display: none; }
.formular .honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#captcha { min-height: 65px; }
#captcha:empty { display: none; }
.absenden { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--text); border: 0; border-radius: 999px; height: 52px; padding: 0 28px; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.absenden:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.absenden:disabled { opacity: .6; cursor: wait; transform: none; }
.fehler-box { margin-top: 20px; padding: 12px 16px; border-radius: 14px; background: #fde8e6; color: #8a1c12; font-weight: 600; font-size: 15px; }
.haken { width: 56px; height: 56px; border-radius: 50%; background: var(--gruen); border: 2px solid var(--text); display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 20px; }
.haken.neutral { background: var(--bg); }
.nachweis { margin: 20px 0; padding: 16px 20px; background: var(--bg); border-radius: 18px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.nachweis dt { color: var(--muted); font-size: 15px; }
.nachweis dd { color: var(--text); font-weight: 700; font-size: 15px; }
@media (max-width: 600px) {
  body.einzeln main { padding: 28px 20px 24px; }
  .nachweis { grid-template-columns: 1fr; gap: 2px; }
  .nachweis dd + dt { margin-top: 10px; }
}
[id] { scroll-margin-top: calc(var(--oben, 106px) + 16px); }

/* Hinweisbox (z. B. „Convenience translation“), Tabelle der Meta-Berechtigungen */
.hinweis { margin-top: 24px; padding: 14px 18px; background: var(--bg); border-left: 4px solid var(--gruen); border-radius: 12px; }
.hinweis p { font-size: 15px; }
.tabelle code { white-space: nowrap; }
main ul + p, main ol + p, main .tabelle + p { margin-top: 12px; }
