/* Wasserwerk Vechta – Zustimmungsportal. Gestaltung „Tiefenwasser“: dunkles Kopfband mit weißer Displaytypografie
   und dem Punktraster aus dem Logo, darunter eine helle Karte, die in das Band hineinragt. Abstandsraster auf
   8-px-Basis. Keine externen Assets, keine Skripte, WCAG-AA-Kontraste, rein CSS-Animationen. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/open-sans-v34-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/open-sans-v34-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/open-sans-v34-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/poppins-v20-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/poppins-v20-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/poppins-v20-latin-700.woff2") format("woff2"); }

:root {
  /* Farben */
  --ink: #1b2130;           /* Fließtext 16:1 */
  --ink-soft: #3f4759;      /* 9:1 */
  --muted: #5b6377;         /* 6,3:1 */
  --brand: #009ad1;         /* Markenblau, Akzente */
  --brand-deep: #0b6a99;    /* Links/Buttons 5,6:1 */
  --brand-ink: #063d5c;     /* Überschriften im hellen Bereich */
  --deep-1: #04243a;        /* Kopfband */
  --deep-2: #0a4d74;
  --deep-3: #1088bd;
  --sky: #9edcf7;           /* Overline auf dunkel, 7:1 */
  --ice: #f2f8fc;
  --ice-2: #e3f0f9;
  --line: #d6e4ee;
  --line-strong: #b8cfdf;
  --white: #ffffff;
  --ok: #17694a; --ok-bg: #e6f5ee; --ok-line: #b5dfc5;
  --err: #b3261e; --err-bg: #fdecea; --err-line: #f1b7b2;
  --info-bg: #eaf5fb; --info-line: #b9dcef;
  --focus: #ffbf47;
  /* Abstände (8-px-Raster) */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 2.5rem; --s6: 3rem; --s7: 4rem;
  --radius: 20px; --radius-s: 12px;
  --shadow: 0 30px 60px -30px rgba(4, 36, 58, .45), 0 2px 6px rgba(4, 36, 58, .06);
  --font-body: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Poppins", "Open Sans", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --dots-light: radial-gradient(circle, rgba(255, 255, 255, .55) 1.6px, transparent 2px);
  --dots-blue: radial-gradient(circle, rgba(0, 154, 209, .35) 1.5px, transparent 1.9px);
  --wave-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 200 56 380 4 600 26 S 960 54 1160 26 S 1380 6 1440 28 V56 H0 Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--white); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; padding-bottom: var(--s6); }
.wrap { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 var(--s3); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.015em; overflow-wrap: break-word; hyphens: manual; }
h1 { font-size: clamp(2rem, 2.8vw + 1rem, 2.75rem); font-weight: 700; hyphens: none; }
h2 { font-size: 1.4rem; font-weight: 600; color: var(--brand-ink); margin-bottom: var(--s2); }
p { margin: 0 0 var(--s2); }
ul { margin: 0 0 var(--s2); padding-left: 1.25rem; }
li { margin-bottom: var(--s1); }
a { color: var(--brand-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--focus); color: #000; padding: .6rem 1rem; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .95rem; line-height: 1.6; }
.hint { font-weight: 400; color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.overline { font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-deep); margin: 0 0 var(--s2); }

/* ---------- Kopfband ---------- */
.site-header { position: relative; color: #fff; background: linear-gradient(135deg, var(--deep-1) 0%, var(--deep-2) 48%, var(--deep-3) 100%); padding: 0 0 6rem; isolation: isolate; overflow: hidden; }
.site-header::before { content: ""; position: absolute; top: 0; right: 0; width: 55%; height: 100%; background-image: var(--dots-light); background-size: 18px 18px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0%, #000 15%, transparent 70%); z-index: -1; }
.site-header .glow { position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; right: -18vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(0, 154, 209, .55), transparent 62%); z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; background: var(--wave-white) center / 100% 100% no-repeat; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-4vw, 3vw, 0); } }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s3); padding-bottom: var(--s3); }
.brand-tile { display: inline-block; background: #fff; border-radius: 14px; padding: .7rem 1rem; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5); }
.brand-tile img { display: block; height: 46px; width: auto; }
.header-claim { font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.35; text-align: right; color: #fff; max-width: 15rem; margin: 0; }
.header-claim span { display: block; font-weight: 500; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: .2rem; }
.hero { padding-top: var(--s4); }
.hero .overline { color: var(--sky); }
.hero h1 { color: #fff; max-width: 24ch; margin-bottom: var(--s3); text-shadow: 0 2px 20px rgba(4, 36, 58, .35); }
.hero .lead { color: rgba(255, 255, 255, .9); max-width: 42rem; margin-bottom: 0; }
.chip { display: inline-block; padding: .3rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 600; font-size: .95rem; text-transform: none; letter-spacing: 0; margin-left: .3rem; vertical-align: middle; }

/* ---------- Karten ---------- */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem); margin: 0 0 var(--s4); box-shadow: var(--shadow); }
.card-first { margin-top: -4rem; }
.card-soft { background: var(--ice); border-color: var(--ice-2); box-shadow: none; }
.card-accent { border-top: 6px solid var(--brand); }
.card > :last-child { margin-bottom: 0; }
.reveal { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.card-first.reveal { animation-name: rise-move; }
.reveal:nth-of-type(2) { animation-delay: .12s; }
.reveal:nth-of-type(3) { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-move { from { transform: translateY(18px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal, .site-header .glow { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Schrittleiste ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); list-style: none; padding: 0; margin: 0 0 var(--s5); counter-reset: step; }
.steps li { position: relative; padding: var(--s2) var(--s2) var(--s2) 3.6rem; border-radius: var(--radius-s); background: var(--ice); border: 1px solid var(--ice-2); font-size: .95rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brand-deep); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; display: grid; place-items: center; }
.steps li strong { display: block; color: var(--brand-ink); font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin-bottom: .15rem; }
.steps li.done { background: var(--ok-bg); border-color: var(--ok-line); }
.steps li.done::before { background: var(--ok); content: "✓"; }

/* ---------- Abschnitte ---------- */
.section { position: relative; padding: var(--s4) 0 0 4.2rem; margin: var(--s4) 0 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.section-num { position: absolute; left: 0; top: var(--s4); font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--brand); opacity: .4; }
.section:first-of-type .section-num { top: 0; }
.section h2 { margin-top: .2rem; margin-bottom: var(--s2); }
.section > p { margin-bottom: var(--s3); }

/* ---------- Formulare ---------- */
.form .field { margin-bottom: var(--s3); }
label { display: block; font-weight: 600; margin-bottom: var(--s1); }
.input { display: block; width: 100%; font: inherit; padding: .95rem 1.1rem; border: 2px solid var(--line-strong); border-radius: var(--radius-s); background: #fff; color: var(--ink); min-height: 56px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: var(--brand); }
.input:focus { border-color: var(--brand-deep); outline: 3px solid var(--focus); outline-offset: 2px; }
.input-code { font-family: var(--font-mono); letter-spacing: .2em; font-size: 1.35rem; text-align: center; background: linear-gradient(180deg, #fff, var(--ice)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fieldset { border: 0; padding: 0; margin: 0 0 var(--s3); min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-note { margin: var(--s2) 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font: inherit; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; padding: .95rem 1.9rem; min-height: 56px; border-radius: var(--radius-s); border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center; transition: transform .15s, box-shadow .15s, background-color .15s; }
.btn-primary { background: var(--brand-deep); color: #fff; box-shadow: 0 14px 28px -14px rgba(11, 106, 153, .9); }
.btn-primary::after { content: "→"; font-weight: 700; transition: transform .15s; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; transform: translateY(-2px); }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-secondary { background: #fff; color: var(--brand-deep); border-color: var(--brand-deep); }
.btn-secondary:hover { background: var(--ice); }
.btn-danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err-bg); }
.btn:active { transform: translateY(0); }

.alert { padding: var(--s2) var(--s3); border-radius: var(--radius-s); margin: 0 0 var(--s3); border: 1px solid transparent; border-left-width: 6px; line-height: 1.6; }
.alert-error { background: var(--err-bg); color: var(--err); border-color: var(--err-line); border-left-color: var(--err); }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); border-left-color: var(--ok); }
.alert-info { background: var(--info-bg); color: var(--brand-ink); border-color: var(--info-line); border-left-color: var(--brand); }

/* ---------- Auswahlkarten ---------- */
.check { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s2) 1.25rem; border: 2px solid var(--line); border-radius: var(--radius-s); margin-bottom: var(--s2); background: #fff; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.check:hover { border-color: var(--brand); }
.check:has(input:checked) { border-color: var(--brand-deep); background: var(--ice); box-shadow: inset 4px 0 0 var(--brand); }
.check input[type="checkbox"] { width: 1.6rem; height: 1.6rem; margin: .2rem 0 0; flex: 0 0 auto; accent-color: var(--brand-deep); cursor: pointer; }
.check label { margin: 0; font-weight: 400; cursor: pointer; line-height: 1.55; overflow-wrap: break-word; }
.check .acct { display: block; font-weight: 600; color: var(--brand-ink); margin-bottom: .1rem; }
table.objects { width: 100%; border-collapse: collapse; margin: 0 0 var(--s3); }
table.objects th, table.objects td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.objects th { background: var(--ice); color: var(--brand-ink); font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.declaration { background: var(--ice); border: 1px solid var(--ice-2); border-radius: var(--radius-s); padding: var(--s3); margin-top: var(--s2); }
.declaration .check { background: #fff; margin-bottom: var(--s2); }
.declaration .check:has(input:checked) { background: #fff; }
.declaration .small { margin: 0; }

/* ---------- Fuß ---------- */
.site-footer { position: relative; background: var(--ice); border-top: 4px solid var(--brand); padding: var(--s5) 0 var(--s4); font-size: .95rem; line-height: 1.7; color: var(--ink-soft); overflow: hidden; }
.site-footer::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 80%; background-image: var(--dots-blue); background-size: 16px 16px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 0% 100%, #000 10%, transparent 65%); pointer-events: none; }
.footer-inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s5); z-index: 1; }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer strong { font-family: var(--font-head); color: var(--brand-ink); font-size: 1.05rem; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 var(--s2); }
  .header-claim { display: none; }
  .brand-tile img { height: 40px; }
  .site-header { padding-bottom: 4.5rem; }
  .hero { padding-top: var(--s2); }
  .hero h1 { font-size: 1.75rem; max-width: none; }
  h1 { hyphens: manual; }
  .card { padding: var(--s3) var(--s2); margin-bottom: var(--s3); }
  .card-first { margin-top: -3rem; }
  .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: var(--s1); }
  .section { padding-left: 3rem; }
  .section-num { font-size: 2.1rem; }
  table.objects th, table.objects td { padding: .65rem .6rem; }
}
@media print { .site-header::before, .site-header::after, .site-header .glow, .site-footer::after, .btn { display: none; } .card { box-shadow: none; } }
