/* Home2New Umfrage in der Marke von home2new.de: Schwarz, Grün #008b1f, Grau #a6a6a6.
   Schriften wie dort: Fira Sans (Überschriften), Roboto (Text), Poppins (Knöpfe).
   Knopfgrün #007d1c statt #008b1f, weil Weiß auf #008b1f nur 4,46 : 1 erreicht (WCAG verlangt 4,5).
   Handschrift nur in Ernests Unterschrift. */
@font-face { font-family: "Fira Sans"; src: url("fonts/fira-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Herr Von Muellerhoff"; src: url("fonts/herr-von-muellerhoff-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --schwarz: #000;
  --flaeche: #111;
  --weiss: #fff;
  --grau: #a6a6a6;
  --gruen: #008b1f;
  --knopf: #007d1c;
  --gewaehlt: #0b2410;
  --rand: #333;
  --head: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --knopfschrift: "Poppins", var(--sans);
  --hand: "Herr Von Muellerhoff", cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--schwarz); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--schwarz); color: var(--weiss);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
::selection { background: var(--gruen); color: var(--weiss); }
a { color: var(--weiss); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible, .chips input:focus-visible + label {
  outline: 2px solid var(--gruen); outline-offset: 3px;
}
h1:focus, h2:focus { outline: none; }

.wrap { width: 100%; max-width: 36rem; margin-inline: auto; padding-inline: 20px; }

/* Kopf: sein Logo, rechts klein, wer fragt */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; }
.logo { display: block; width: 104px; height: auto; flex: none; }
.absender { margin: 0; font-size: .875rem; line-height: 1.4; color: var(--grau); text-align: right; }

/* Schritte. Ohne Skript stehen alle untereinander, mit Skript (html.mit-js) immer nur einer. */
html:not(.mit-js) .js-nur { display: none !important; }
.mit-js .js-nur { display: flex; }
.mit-js .balken.js-nur { display: block; }
.schritt { padding: 30px 0 34px; }
.mit-js .schritt { display: none; }
.mit-js .schritt.aktiv { display: block; animation: rein .35s var(--ease); }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h1, h2 { font-family: var(--head); font-weight: 600; text-wrap: balance; margin: 0; color: var(--weiss); }
h1 { font-size: clamp(2.6rem, 11.5vw, 3.75rem); line-height: 1.05; letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; color: var(--gruen); }
.lead { margin: 12px 0 0; font-family: var(--head); font-weight: 600; font-size: 1.25rem; line-height: 1.35; text-wrap: pretty; }
.beob { margin: 26px 0 0; text-wrap: pretty; }
.info { margin: 26px 0 0; color: var(--grau); }
.start { padding-top: 34px; }

.zaehler { margin: 0 0 10px; font-size: .875rem; color: var(--grau); }
.balken { height: 4px; margin-bottom: 26px; background: var(--rand); overflow: hidden; }
.balken i { display: block; height: 100%; width: 0; background: var(--gruen); transition: width .5s var(--ease); }
.schritt h2 { font-size: clamp(1.75rem, 7.5vw, 2.25rem); line-height: 1.15; }
.tipp { margin: 10px 0 0; color: var(--grau); font-size: .875rem; }

/* Antippen */
.chips { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chips label {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px;
  border: 1px solid var(--rand); border-radius: 4px; background: var(--flaeche); color: var(--weiss);
  font-size: 1.0625rem; line-height: 1.35; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.chips label::before {
  content: ""; flex: none; width: 20px; height: 20px;
  border: 1.5px solid var(--grau); background: transparent;
}
.chips input[type="radio"] + label::before { border-radius: 50%; }
.chips input[type="checkbox"] + label::before { border-radius: 2px; }
.chips label:hover { border-color: var(--gruen); }
.chips input:checked + label { background: var(--gewaehlt); border-color: var(--gruen); }
.chips input:checked + label::before {
  border-color: var(--gruen); background: var(--gruen);
  box-shadow: inset 0 0 0 4px var(--gewaehlt);
}

/* Zusatzfeld: mit Skript erst nach der passenden Wahl */
.mit-js .zusatz:not(.offen) { display: none; }
.mit-js .zusatz.offen { animation: rein .3s var(--ease); }

/* Schreiben */
.klein { display: block; margin: 24px 0 8px; font-size: 1.0625rem; font-weight: 500; }
textarea, input[type="text"], input[type="tel"], input[type="email"] {
  display: block; width: 100%;
  font: 400 1.0625rem/1.5 var(--sans); color: var(--weiss);
  background: var(--flaeche); border: 1px solid var(--grau); border-radius: 4px;
  padding: 12px 14px;
  transition: border-color .2s var(--ease);
}
.schritt > textarea { margin-top: 24px; min-height: 9rem; }
textarea { resize: vertical; }
textarea:focus, input:focus { border-color: var(--gruen); outline: none; }

/* Knöpfe */
.nav { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.knopf {
  flex: 1; min-height: 56px; padding: 0 22px;
  font: 600 1.0625rem/1 var(--knopfschrift); color: var(--weiss);
  background: var(--knopf); border: 0; border-radius: 4px; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.knopf:hover { background: #006b18; }
.knopf[disabled] { opacity: .6; cursor: progress; }
.zurueck {
  min-height: 56px; padding: 0 14px; align-items: center;
  font: 400 1rem/1 var(--sans); color: var(--grau);
  background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em;
}
.hinweis { margin: 16px 0 0; font-size: .875rem; color: var(--grau); }
.hinweis a { color: var(--grau); }
.meldung { margin: 24px 0 0; padding: 12px 14px; border-radius: 4px; background: #2a1212; color: #ffcfcf; font-size: 1rem; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Danke */
.danke { padding: 34px 0 10px; outline: none; }
.danke h2 { font-size: clamp(2rem, 8.5vw, 2.6rem); line-height: 1.1; }
.danke p { margin: 14px 0 0; }
.danke p + p { margin-top: 8px; }
.gruss { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.unterschrift { font-family: var(--hand); font-size: 3.4rem; line-height: 1; color: var(--weiss); transform: rotate(-4deg); }
.gruss img { width: 72px; height: 68px; }

.fuss {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin-top: 40px; padding: 18px 0 30px;
  font-size: .875rem; color: var(--grau);
}
.fuss span { margin-right: auto; }
.fuss a { color: var(--grau); }

[hidden] { display: none !important; }

@media (min-width: 640px) {
  .logo { width: 120px; }
  .start { padding-top: 56px; }
  .schritt { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
