/* nielsheide.de – SPD-CD 2024: Rot #E3000F, Weiß, Schwarz als Akzent, Hellgrau #ededed.
   Schrift: Google Sans Flex (SIL OFL), selbst gehostet – SPD The Sans hat keine Webfont-Lizenz. */
@font-face {
  font-family: "Google Sans Flex";
  src: url("/fonts/google-sans-flex.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --rot: #E3000F;
  --rot-zart: rgba(227, 0, 15, .25);
  --schwarz: #000;
  --weiss: #fff;
  --grau: #ededed;
  --text: #111;
  --mute: #5a5a5a;
  --linie: #d6d6d6;
  --radius: 1.75rem;
  --schatten: 0 1px 2px rgba(0,0,0,.04), 0 16px 48px -16px rgba(0,0,0,.18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--weiss); color: var(--text);
  font: 400 1.0625rem/1.6 "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rot); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: .4rem; }
.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.marke { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; color: var(--schwarz); }
.marke::before { content: ""; width: 1.5rem; height: 1.5rem; border-radius: .45rem; background: var(--rot); }
.kopf-info { font-size: .8rem; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
main { flex: 1; }

/* Hero nach Vorbild „Hero reveal“ */
.held { text-align: center; padding: clamp(2.5rem, 9vw, 6rem) 0 2rem; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.75rem;
  padding: .4rem .95rem .4rem .8rem; border: 1px solid var(--linie); border-radius: 999px;
  background: var(--weiss); font-size: .9rem; font-weight: 500; color: var(--text);
}
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--rot); box-shadow: 0 0 0 4px var(--rot-zart); }
.pill .trenner { color: var(--mute); }
.held h1 {
  font-size: clamp(2.7rem, 9.5vw, 5.75rem); line-height: 1.02; letter-spacing: -.032em;
  font-weight: 650; font-variation-settings: "opsz" 144; margin: 0 auto 1.4rem; max-width: 13ch; color: var(--schwarz);
  text-wrap: balance;
}
.held h1 .akzent { color: var(--rot); text-decoration: underline; text-decoration-color: var(--rot-zart); text-decoration-thickness: .09em; text-underline-offset: .12em; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--mute); margin: 0 auto 2.25rem; max-width: 33rem; text-wrap: pretty; }
.knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.knopf, .knopf-rand {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.6rem;
  border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.knopf { background: var(--schwarz); color: var(--weiss); border: 1px solid var(--schwarz); }
.knopf:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.knopf-rand { background: var(--weiss); color: var(--schwarz); border: 1px solid var(--linie); }
.knopf-rand:hover { border-color: var(--schwarz); }
.knopf[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.pfeil { font-size: .8em; }

/* Einblenden: Wort für Wort aus der Unschärfe, danach Text, Knöpfe, Karte */
@media (prefers-reduced-motion: no-preference) {
  .rein, .held h1 .w { opacity: 0; animation: rein .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .held h1 .w { display: inline-block; filter: blur(12px); transform: translateY(.2em); }
  .held h1 .w:nth-of-type(1) { animation-delay: .2s; }
  .held h1 .w:nth-of-type(2) { animation-delay: .35s; }
  .held h1 .w:nth-of-type(3) { animation-delay: .5s; }
  .held h1 .w:nth-of-type(4) { animation-delay: .65s; }
  .held h1 .w:nth-of-type(5) { animation-delay: .8s; }
  .pill.rein { animation-delay: 0s; transform: translateY(.5rem); }
  .lead.rein { animation-delay: 1s; filter: blur(6px); }
  .knoepfe.rein { animation-delay: 1.2s; transform: translateY(.75rem); }
  .karte.rein { animation-delay: 1.4s; animation-duration: 1.1s; transform: translateY(3rem); }
}
@keyframes rein { to { opacity: 1; filter: blur(0); transform: none; } }

/* Kontakt-Karte */
.karte {
  max-width: 46rem; margin: 3.5rem auto 0; padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--grau); border-radius: var(--radius); box-shadow: var(--schatten); text-align: left;
  scroll-margin-top: 1.5rem;
}
.karte h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 .4rem; font-weight: 650; }
.karte > p { color: var(--mute); margin: 0 0 1.75rem; }
.felder { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.feld { display: grid; gap: .35rem; align-content: start; }
.feld.breit { grid-column: 1 / -1; }
@media (max-width: 36rem) { .felder { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .95rem; }
input, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--weiss);
  border: 1px solid var(--linie); border-radius: .9rem; padding: .8rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 10rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--schwarz); box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--rot); box-shadow: 0 0 0 3px var(--rot-zart); }
.fehler { color: #b0000c; font-size: .9rem; margin: 0; }
.fehler:empty { display: none; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.senden { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.hinweis { font-size: .88rem; color: var(--mute); margin: 0; flex: 1 1 16rem; }
.status { margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: .9rem; background: var(--weiss); font-weight: 600; }
.status:empty { display: none; }
.status.ok { border-left: 4px solid var(--schwarz); }
.status.nein { border-left: 4px solid var(--rot); }

/* Textseiten */
.text { max-width: 46rem; }
.text h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); letter-spacing: -.045em; line-height: 1.04; margin: 2.5rem 0 1.5rem; font-weight: 650; }
.text h2 { font-size: 1.25rem; letter-spacing: -.02em; margin: 2rem 0 .5rem; font-weight: 650; }
.text .karte { margin-top: 2rem; }
address { font-style: normal; }
.kicker { color: var(--rot); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 0 0 .75rem; }

/* Fuß: roter Markenraum */
footer { background: var(--rot); color: var(--weiss); margin-top: 5rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-top: 1.75rem; padding-bottom: 2rem; font-size: .95rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
footer a { color: var(--weiss); }
footer :focus-visible { outline-color: var(--weiss); }
.fuss-name { font-weight: 700; letter-spacing: -.01em; }
.nobr { white-space: nowrap; }
