/* Website schnattern.com – nutzt nur die Variablen aus schnatter.css (Styleguide/tokens, per Build kopiert).
   Grund Weiß, abgesetzte Bereiche Hellgrau, Überschriften/Knöpfe/Ziffern rund (Nunito selbst gehostet),
   Fließtext Systemschrift. Orange nur für den Hauptknopf (und den Schnabel der Gans). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light only;
  --breite: 1120px;
  --rand: clamp(20px, 5vw, 40px);
  --abstand-sektion: clamp(64px, 10vw, 120px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--schnatter-grund-web);
  color: var(--schnatter-text);
  font-family: var(--schnatter-schrift-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important; /* auch bei Bausteinen mit eigenem display (Karten mit grid) */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
.rund {
  font-family: var(--schnatter-schrift-rund);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-wrap: balance;
}

h3 {
  font-size: 21px;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--schnatter-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--schnatter-fokus);
  outline-offset: 3px;
  border-radius: 4px;
}

.unsichtbar {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.huelle {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}

.nebentext {
  color: var(--schnatter-text-2);
}

/* --- Bausteine ------------------------------------------------------------------------------------------------ */

.chip {
  display: inline-block;
  margin: 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--schnatter-info);
  color: var(--schnatter-text);
  font-family: var(--schnatter-schrift-rund);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.karte {
  background: var(--schnatter-flaeche);
  border: 1.5px solid var(--schnatter-linie);
  border-radius: var(--schnatter-radius-karte);
  padding: clamp(24px, 4vw, 36px);
}

.band .karte {
  border-color: transparent; /* Karten auf Hellgrau ohne Linie */
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--schnatter-knopf-hoehe);
  padding: 0 28px;
  border: 0;
  border-radius: var(--schnatter-radius-knopf);
  background: var(--schnatter-aktion);
  color: var(--schnatter-aktion-text);
  font-family: var(--schnatter-schrift-rund);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.knopf:hover {
  box-shadow: inset 0 0 0 100vmax rgb(0 0 0 / 0.05);
}

.knopf:active {
  transform: scale(0.98);
}

.knopf:focus-visible {
  outline-color: var(--schnatter-text);
}

.knopf[disabled] {
  opacity: 0.35;
  cursor: default;
}

.knopf-breit {
  width: 100%;
}

.knopf-zweit {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--schnatter-text);
}

.knopf-zweit:hover {
  box-shadow: inset 0 0 0 1.5px var(--schnatter-text), inset 0 0 0 100vmax rgb(0 0 0 / 0.04);
}

.linkknopf {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--schnatter-link);
  font: inherit;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.markierung {
  background: var(--schnatter-markierung);
  border-radius: 4px;
  padding: 0 4px;
}

/* --- Kopf --------------------------------------------------------------------------------------------------- */

.held {
  padding: clamp(20px, 5vw, 64px) 0 var(--abstand-sektion);
}

/* Mobil: Logo/Claim, Telefon, Wunschnummer eng untereinander. Desktop: links Logo/Claim, rechts Telefon direkt
   über der Wunschnummer – Scheibe und Ziffernfelder gehören zusammen. */
.held .huelle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "text" "telefon" "formular";
}

.held-text {
  grid-area: text;
}

.held h1 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.held h1 img {
  width: min(100%, 440px);
  margin-left: -6px; /* Pinselschrift hat links Luft */
}

.claim {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.05;
  font-weight: 800;
  text-wrap: balance;
}

.held-text .chip {
  margin-top: 16px;
}

.telefon-spalte {
  grid-area: telefon;
  width: 100%;
  max-width: 560px;
  margin: 16px auto 0;
}

.formular-spalte {
  grid-area: formular;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 920px) {
  .held .huelle {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    grid-template-areas: "text telefon" "text formular";
    column-gap: clamp(40px, 6vw, 96px);
  }

  .held-text {
    align-self: start;
    position: sticky;
    top: max(32px, 14vh);
  }

  .telefon-spalte {
    margin-top: 0;
  }
}

/* --- Telefon mit Wählscheibe ---------------------------------------------------------------------------------
   Maße aus apps/ios/Schnatter/Waehlscheibe.swift (Anteile des Gehäuses 1435 × 1086):
   Scheibenmitte 57,77 % / 60,04 %, Scheibe 39,02 % der Breite (= 51,56 % der Höhe),
   Anschlag-Mitte 70,28 % / 74,45 %, Größe 11,64 % × 16,85 %. */

.telefon {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  aspect-ratio: 1435 / 1086;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.telefon img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.telefon .gehaeuse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.telefon .scheibe {
  position: absolute;
  left: 38.26%;
  top: 34.26%;
  width: 39.02%;
  aspect-ratio: 1;
  border-radius: 50%;
  touch-action: none; /* nur die Scheibe fängt Gesten – daneben scrollt die Seite normal */
  cursor: grab;
  will-change: transform;
}

.telefon .scheibe.greift {
  cursor: grabbing;
}

.telefon .scheibe img {
  width: 100%;
  height: 100%;
}

.telefon .anschlag {
  position: absolute;
  left: 64.46%;
  top: 66.03%;
  width: 11.64%;
  height: 16.85%;
}

.telefon-hinweis {
  max-width: 26em;
  margin: 2px auto 10px;
  text-align: center;
  font-size: 15px;
}

/* --- Formular ------------------------------------------------------------------------------------------------- */

.vormerken h2,
.danke h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.nummer-teil {
  text-align: center;
}

.nummer-teil p {
  font-size: 16px;
}

.nummer-teil .ziffern {
  margin: 0 auto;
}

.nummer-teil .nummer-aktionen {
  justify-content: center;
}

@media (max-width: 480px) {
  .vormerken {
    padding: 22px 20px;
  }
}

.feld-titel {
  display: block;
  margin: 0 0 8px;
  font-family: var(--schnatter-schrift-rund);
  font-size: 16px;
  font-weight: 700;
}

/* Ein echtes Eingabefeld (Einfügen, Autofill, Screenreader) liegt unsichtbar über sechs gezeichneten Feldern. */
.ziffern {
  position: relative;
  width: max-content;
  max-width: 100%;
}

.ziffern input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  font-size: 16px; /* verhindert Zoom auf iOS */
  cursor: text;
}

.felder {
  display: flex;
  gap: 8px;
}

.felder span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 58px;
  border: 1px solid var(--schnatter-grau-mittel);
  border-radius: var(--schnatter-radius-feld);
  background: var(--schnatter-flaeche);
  font-family: var(--schnatter-schrift-rund);
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: border-color 120ms ease;
}

.felder span.offen {
  border: 2px solid var(--schnatter-fokus);
}

.ziffern:focus-within .felder span.offen {
  box-shadow: 0 0 0 3px rgb(255 162 28 / 0.25);
}

.felder.wackelt {
  animation: wackeln 300ms ease;
}

@keyframes wackeln {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

@media (max-width: 400px) {
  .felder {
    gap: 6px;
  }

  .felder span {
    width: 40px;
    height: 52px;
    font-size: 26px;
  }
}

.nummer-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 10px 0 0;
}

.status {
  min-height: 1.5em;
  margin: 8px 0 10px;
  font-size: 16px;
}

.weich-versteckt {
  visibility: hidden; /* Platz bleibt – „Nummer vorschlagen“ springt nicht */
}

.status.frei::before,
.status.belegt::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 0.05em;
}

.status.frei::before {
  background: var(--schnatter-blau);
}

.status.belegt::before {
  background: var(--schnatter-grau-text);
}

.eingabe {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--schnatter-grau-mittel);
  border-radius: var(--schnatter-radius-feld);
  background: var(--schnatter-flaeche);
  color: var(--schnatter-text);
  font: inherit;
  font-size: 17px;
}

.eingabe:focus {
  outline: none;
  border: 2px solid var(--schnatter-fokus);
  padding: 11px 15px;
}

.eingabe::placeholder {
  color: var(--schnatter-text-2);
  opacity: 0.8;
}

.einwilligung {
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--schnatter-text-2);
}

.einwilligung p {
  margin: 0 0 10px;
}

/* „Einverstanden“: echte Checkbox (Tastatur, Screenreader), als Pille zum Antippen gestaltet. */
.zustimmung {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px 8px 12px;
  border: 1.5px solid var(--schnatter-grau-mittel);
  border-radius: 999px;
  background: var(--schnatter-flaeche);
  color: var(--schnatter-text);
  font-family: var(--schnatter-schrift-rund);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.zustimmung input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--schnatter-tinte);
  cursor: pointer;
}

.zustimmung:has(input:checked) {
  border-color: var(--schnatter-text);
  background: var(--schnatter-info);
}

.zustimmung:has(input:focus-visible) {
  outline: 3px solid var(--schnatter-fokus);
  outline-offset: 3px;
}

.zustimmung input:focus-visible {
  outline: none;
}

.honig {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fehler {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.fehler:empty {
  margin: 0;
  min-height: 0;
}

.danke {
  text-align: center;
}

.danke img {
  width: 150px;
  margin: 0 auto 12px;
}

.danke .felder {
  justify-content: center;
  margin: 6px 0 18px;
}

/* --- Bänder ----------------------------------------------------------------------------------------------- */

.sektion {
  padding: var(--abstand-sektion) 0;
}

.band {
  background: var(--schnatter-grau-hell);
}

.sektion-kopf {
  max-width: 40em;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.sektion-kopf p {
  margin: 14px 0 0;
  font-size: 19px;
}

.raster-2 {
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .raster-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.produkt {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.produkt .bild {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 200px;
}

.produkt .bild img {
  width: auto;
  height: 200px;
}

.produkt .chip {
  align-self: flex-start;
}

.produkt p:last-child {
  margin: 0;
}

.benachrichtigen {
  display: grid;
  gap: 16px 40px;
  align-items: center;
  margin-top: 24px;
}

@media (min-width: 760px) {
  .benachrichtigen {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }
}

.benachrichtigen h3 {
  margin-bottom: 6px;
}

.benachrichtigen p {
  margin: 0;
}

.benachrichtigen .zeile {
  display: flex;
  gap: 10px;
}

.benachrichtigen .zeile .eingabe {
  flex: 1;
  min-width: 0;
}

.benachrichtigen .zeile .knopf {
  flex: none;
}

@media (max-width: 480px) {
  .benachrichtigen .zeile {
    flex-direction: column;
  }
}

.benachrichtigen .einwilligung {
  margin: 12px 0 0;
}

/* --- Wer wir sind --------------------------------------------------------------------------------------------- */

.wir {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 760px) {
  .wir {
    grid-template-columns: auto 1fr;
    gap: 56px;
  }
}

.avatare {
  display: flex;
  gap: 20px;
  margin: 0;
}

.avatare figure {
  margin: 0;
  text-align: center;
}

/* Avatar wie in der App: Gans im gemalten Ring, Fläche und Rahmen sind ins Bild eingebacken (werkzeuge/bilder.py). */
.avatare img {
  display: block;
  width: 164px;
  height: auto;
}

.avatare figcaption {
  margin-top: 10px;
  font-family: var(--schnatter-schrift-rund);
  font-size: 18px;
  font-weight: 800;
}

.wir p {
  max-width: 36em;
  font-size: 18px;
}

/* --- Fuß ---------------------------------------------------------------------------------------------------- */

.fuss {
  padding: 48px 0 56px;
  border-top: 1.5px solid var(--schnatter-linie);
  font-size: 15px;
  color: var(--schnatter-text-2);
}

.fuss .huelle {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: center;
  justify-content: space-between;
}

.fuss img {
  width: 140px;
}

.fuss p {
  margin: 0;
}

.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.fuss a {
  color: var(--schnatter-text-2);
}

/* --- Textseiten (Impressum, Datenschutz, Bestätigen) ----------------------------------------------------- */

.kopfleiste {
  padding: 28px 0;
}

.kopfleiste img {
  width: 170px;
}

.textseite {
  max-width: 44em;
  padding-bottom: var(--abstand-sektion);
}

.textseite h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 16px 0 24px;
}

.textseite h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}

.textseite h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}

.textseite ul {
  padding-left: 1.2em;
}

.textseite li {
  margin-bottom: 0.4em;
}

.mitte {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 0 var(--rand) var(--abstand-sektion);
}

.mitte .karte {
  width: min(100%, 520px);
  text-align: center;
}

.mitte .karte img {
  width: 150px;
  margin: 0 auto 16px;
}

.mitte .karte h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.mitte .karte .felder {
  justify-content: center;
  margin: 8px 0 20px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
