/*
 * TAPCARD · Angaben eintragen
 *
 * Das Formular, ueber das neue Kunden ihre Daten fuer die Visitenkarte
 * schicken. Es gehoert TAPCARD, nicht der Karte, und traegt deshalb die
 * Handschrift der Marke: den Designstandard aus
 * Stempelkarten/stempelkarten-chip-zaehler/design/STANDARD.md und die
 * Masse der Landingpage (tapcard-landing/seite/stil.css).
 *
 * Kurz, was daraus hier gilt:
 *   - warmer Grund, nie Reinweiss; Tinte, nie reines Schwarz   (Gesetz 3, 4)
 *   - kein weicher Schatten - Tiefe aus Haarlinie und Flaeche  (Gesetz 1)
 *   - der Hauptknopf ist schwarz; Petrol nur fuer Links und
 *     den Fokusring, nie als Flaeche                            (Gesetz 6)
 *   - Bricolage ab 21 px, Gabarito bis 16 px, Plex Mono fuer
 *     Versalzeilen                                              (Gesetz 8)
 *   - alles Bedienbare ist eine Pille; Eingaben 12 px Radius,
 *     Boegen 28 px; Eingaben nie unter 16 px, sonst zoomt iOS
 *
 * Die Karte in der Vorschau bringt ihren eigenen Stil mit. Sie steht in
 * einem eigenen Dokument im Rahmen; nichts von hier faerbt auf sie ab - und
 * nichts von ihr hierher. Das Terrakotta der Karte ist ihre Farbe, nicht die
 * der Marke.
 */

/* ---------------------------------------------------------------- Schriften */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/eintragen/schriften/bricolage.woff2') format('woff2-variations'),
    url('/eintragen/schriften/bricolage.woff2') format('woff2');
  /* Ohne Breitenbereich greift font-stretch ins Leere (STANDARD.md, Abschnitt 5). */
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gabarito';
  src: url('/eintragen/schriften/gabarito.woff2') format('woff2-variations'),
    url('/eintragen/schriften/gabarito.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/eintragen/schriften/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- Tokens */

:root {
  /* Flaechen - eins zu eins aus apps/kunde/src/app/globals.css */
  --grund: #faf7f4;
  --papier: #ffffff;
  --flaeche: #efeae5;
  --behaelter: #2b2622;

  /* Tinte */
  --tinte: #110e0c;
  --tinte-2: #48443f;
  /* Nur fuer Platzhalter - als Text liegt er unter 4,5 : 1. */
  --tinte-3: #8a8683;
  --linie: #ddd6cf;
  --feld-rahmen: #c9c0b7;

  /* Akzent: nur Links und Fokusring */
  --akzent: #147378;
  --akzent-stark: #0f5c60;

  /* Zustaende, je mit getoenter Flaeche - alle ueber 4,9 : 1 */
  --gefahr: #a33a28;
  --gefahr-flaeche: #f6e4df;

  --schrift-auftritt: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --schrift-oberflaeche: 'Gabarito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --schrift-daten: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --radius-voll: 999px;
  --radius-flaeche: 28px;
  --radius-leiste: 20px;
  --radius-feld: 12px;
  --radius-klein: 8px;

  --kurve-aus: cubic-bezier(0.23, 1, 0.32, 1);

  --rand: 20px;
  --spalte: 640px;
}

/* ---------------------------------------------------------------- Grundlagen */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  background: var(--grund);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--tinte-2);
  font-family: var(--schrift-oberflaeche);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  /* Schuetzt die Sekunde, in der die Hausschrift noch laedt und der Rueckfall breiter setzt. */
  overflow-x: clip;
}

main {
  flex: 1;
}

[hidden] {
  display: none !important;
}

h1,
h2,
p,
fieldset {
  margin: 0;
}

fieldset {
  min-width: 0;
}

a {
  color: var(--akzent);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
}

.rahmen {
  width: min(100% - 2 * var(--rand), 1040px);
  margin-inline: auto;
}

.sym {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- Schrift */

.wortmarke {
  font-family: var(--schrift-auftritt);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tinte);
}

.wortmarke--klein {
  font-size: 18px;
}

/* typo-anzeige: einmal pro Bildschirm. */
.anzeige {
  font-family: var(--schrift-auftritt);
  font-size: 34px;
  font-weight: 750;
  font-stretch: 90%;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--tinte);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.anzeige:focus {
  outline: none;
}

/* typo-titel */
.titel {
  padding: 0;
  font-family: var(--schrift-auftritt);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--tinte);
}

.lead {
  margin-top: 12px;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.5;
}

/* typo-daten: Versalien und Ziffern */
.daten,
.kopf__marke,
.fortschritt__text,
.noetig,
.zaehler,
.danke__marke {
  font-family: var(--schrift-daten);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinte-2);
}

/* ---------------------------------------------------------------- Kopf und Fuss */

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 22px;
  padding: 40px 0 calc(28px + env(safe-area-inset-bottom));
}

.fuss__links {
  display: flex;
  gap: 4px 22px;
}

.fuss__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tinte);
}

/* ---------------------------------------------------------------- Bedienelemente */

/* Der Hauptknopf: Tinte, vollrund. Der Akzent fuellt ihn nie. */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-voll);
  background: var(--tinte);
  color: var(--grund);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.006em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 200ms ease;
}

.knopf .sym {
  transition: transform 200ms var(--kurve-aus);
}

.knopf:active {
  transform: scale(0.97);
}

.knopf:disabled {
  cursor: progress;
  background: var(--behaelter);
}

@media (hover: hover) {
  .knopf:hover {
    background: var(--behaelter);
  }

  .knopf:hover .sym {
    transform: translateX(3px);
  }
}

.pille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-voll);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 200ms ease;
}

.pille--kontur {
  box-shadow: inset 0 0 0 1px var(--tinte);
  color: var(--tinte);
}

.pille:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .pille--kontur:hover {
    background: var(--flaeche);
  }
}

/* Der Zweitweg: unterstrichener Text, nie ein zweiter gefuellter Knopf. */
.textknopf {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinte);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  cursor: pointer;
}

/* ---------------------------------------------------------------- Formular */

.formular {
  padding-bottom: 8px;
}

.fortschritt,
.wieder,
.schritt,
.leiste__innen {
  max-width: var(--spalte);
  margin-inline: auto;
}

.fortschritt {
  padding: 12px 0 28px;
}

.fortschritt__balken {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.fortschritt__balken li {
  height: 4px;
  border-radius: var(--radius-voll);
  background: var(--linie);
  transition: background-color 300ms ease;
}

.fortschritt__balken li.ist-an {
  background: var(--tinte);
}

.wieder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
  margin-bottom: 24px;
  padding: 8px 18px;
  border-radius: var(--radius-leiste);
  background: var(--flaeche);
  font-size: 15px;
}

.wieder .textknopf {
  font-size: 15px;
}

.schritt {
  animation: auftritt 260ms var(--kurve-aus) both;
}

@keyframes auftritt {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.schritt--gestalten {
  max-width: none;
}

/* Der Bogen: Papier auf warmem Grund, Haarlinie statt Schatten. */
.bogen {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  padding: 22px 20px 24px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-flaeche);
  background: var(--papier);
}

.schritt > .lead + .bogen {
  margin-top: 28px;
}

/*
 * Die Legende eines Fieldsets sitzt sonst im Rahmen, ausserhalb des Rasters.
 * Als float wird sie ein gewoehnliches Rasterelement, und der Abstand kommt
 * wie ueberall aus gap.
 */
fieldset.bogen > legend {
  float: left;
  width: 100%;
  margin: 0;
}

.bogen__text {
  margin-top: -8px;
  font-size: 15px;
  line-height: 1.5;
}

.bogen__text strong {
  color: var(--tinte);
  font-weight: 600;
}

.reihe {
  display: grid;
  gap: 18px;
}

@media (min-width: 520px) {
  .reihe {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .reihe--plz {
    grid-template-columns: 1fr 2fr;
  }
}

.feld {
  display: grid;
  gap: 7px;
  min-width: 0;
}

/* typo-stark */
.feld__name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--tinte);
}

.noetig {
  font-size: 10px;
}

.feld__eingabe {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--feld-rahmen);
  border-radius: var(--radius-feld);
  background: var(--papier);
  color: var(--tinte);
  font: inherit;
  /* Unter 16 px zoomt iOS beim Antippen in das Feld. */
  font-size: 16px;
  transition: border-color 150ms ease;
}

.feld__eingabe::placeholder {
  color: var(--tinte-3);
  opacity: 1;
}

.feld__eingabe:focus {
  border-color: var(--tinte);
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

.feld__eingabe--block {
  min-height: 0;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}

.feld__eingabe[aria-invalid='true'] {
  border-color: var(--gefahr);
}

/* typo-klein */
.feld__hinweis {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.003em;
  color: var(--tinte-2);
}

.feld__fehler {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gefahr);
}

.zaehler {
  font-size: 10px;
}

.zaehler.ist-voll {
  color: var(--gefahr);
}

/* ---------------------------------------------------------------- Foto */

.foto {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.foto__bild {
  display: grid;
  place-items: center;
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--flaeche);
  box-shadow: inset 0 0 0 1px var(--linie);
}

.foto__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto__zeichen {
  font-family: var(--schrift-auftritt);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--tinte);
}

.foto__wahl {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.foto__knoepfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

/* Unsichtbar, aber erreichbar - die Beschriftung "Foto waehlen" ist der Knopf. */
.foto__eingabe {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.foto__eingabe:focus-visible + .foto__knoepfe .pille {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- Gestalten */

.gestalten {
  display: grid;
  gap: 8px;
  max-width: var(--spalte);
  margin-inline: auto;
}

.gestalten__wahl {
  min-width: 0;
}

.vorschau {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

/*
 * Der Telefonrahmen. Die Huelle nimmt den Platz ein, den der verkleinerte
 * Rahmen braucht; der Rahmen selbst bleibt innen echte 390 x 844 und wird
 * nur skaliert (skript.js setzt --mass). Wuerde man ihn kleiner rechnen,
 * bekaeme die Karte ein anderes Fenster als auf dem Telefon.
 */
.telefon__huelle {
  --mass: 0.6;
  position: relative;
  width: calc(410px * var(--mass));
  height: calc(864px * var(--mass));
  flex: none;
}

.telefon {
  position: absolute;
  top: 0;
  left: 0;
  width: 410px;
  height: 864px;
  padding: 10px;
  border-radius: 54px;
  background: var(--tinte);
  transform: scale(var(--mass));
  transform-origin: 0 0;
}

.telefon__huelle {
  cursor: zoom-in;
}

/* Klicks in einen Rahmen kommen nie bei der Seite an - so landen sie bei der Huelle und oeffnen die grosse Ansicht. */
.telefon__schirm {
  display: block;
  width: 390px;
  height: 844px;
  border: 0;
  border-radius: 44px;
  background: var(--grund);
  pointer-events: none;
}

.farbwelten__hinweis {
  margin-top: -6px;
}

.vorschau__gross {
  min-height: 44px;
}

@media (min-width: 960px) {
  .schritt--gestalten .gestalten {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'kopf vorschau'
      'wahl vorschau';
    align-items: start;
    gap: 0 56px;
    max-width: 1040px;
  }

  .gestalten__kopf {
    grid-area: kopf;
  }

  .gestalten__wahl {
    grid-area: wahl;
  }

  .vorschau {
    grid-area: vorschau;
    position: sticky;
    top: 24px;
    margin-top: 0;
  }
}

/* Farbwelten: eine kleine Karte je Wahl, wie sie auf dem Telefon aussaehe. */
.farbwelten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.farbwelt {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px 8px 10px;
  border-radius: 20px;
  background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--linie);
  cursor: pointer;
  transition: transform 150ms ease-out, box-shadow 150ms ease;
}

.farbwelt:active {
  transform: scale(0.97);
}

.farbwelt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.farbwelt:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--tinte);
}

.farbwelt:has(input:focus-visible) {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
}

.farbwelt__probe {
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  height: 58px;
  padding: 0 10px;
  border-radius: var(--radius-feld);
}

.farbwelt__punkt {
  width: 14px;
  height: 14px;
  margin: 0 auto 2px;
  border-radius: 50%;
}

.farbwelt__zeile {
  height: 9px;
  border-radius: 4px;
}

.farbwelt__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--tinte);
}

/* "Entscheide du" - keine Farben, sondern ein Satz. */
.farbwelt__probe--offen {
  place-items: center;
  background: var(--flaeche);
  font-family: var(--schrift-auftritt);
  font-size: 26px;
  font-weight: 700;
  color: var(--tinte);
}

/* Schalter: Knoepfe an und aus, Kurz zu mir an und aus. */
.schalterliste {
  display: grid;
}

.schalter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  cursor: pointer;
}

.schalterliste .schalter + .schalter {
  border-top: 1px solid var(--linie);
}

.schalter__text {
  font-size: 16px;
  font-weight: 600;
  color: var(--tinte);
}

.schalter__neben {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--tinte-2);
  overflow-wrap: anywhere;
}

.schalter__eingabe {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.schalter__bahn {
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  border-radius: var(--radius-voll);
  background: var(--feld-rahmen);
  transition: background-color 200ms ease;
}

.schalter__bahn::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--papier);
  transition: transform 220ms var(--kurve-aus);
}

.schalter__eingabe:checked + .schalter__bahn {
  background: var(--tinte);
}

.schalter__eingabe:checked + .schalter__bahn::after {
  transform: translateX(20px);
}

.schalter__eingabe:focus-visible + .schalter__bahn {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
}

.kurztext {
  display: grid;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--linie);
}

/* Zwei Stellen fuer den Kurztext - eine getoente Bahn, die Wahl liegt als Papier darauf. */
.umschalter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-voll);
  background: var(--flaeche);
}

.umschalter__wahl {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-voll);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--tinte-2);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.umschalter__wahl input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.umschalter__wahl:has(input:checked) {
  background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--tinte);
  color: var(--tinte);
}

.umschalter__wahl:has(input:focus-visible) {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- Uebersicht */

.uebersicht {
  margin-top: 28px;
}

.uebersicht .bogen {
  gap: 0;
}

.uebersicht__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.uebersicht__liste {
  margin: 0;
}

.uebersicht__zeile {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--linie);
}

.uebersicht__zeile:first-child {
  border-top: 0;
}

.uebersicht__zeile dt {
  font-size: 13px;
  line-height: 1.5;
}

.uebersicht__zeile dd {
  margin: 0;
  font-size: 16px;
  color: var(--tinte);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

@media (min-width: 520px) {
  .uebersicht__zeile {
    grid-template-columns: 9.5em 1fr;
    gap: 14px;
  }

  .uebersicht__zeile dt {
    padding-top: 2px;
  }
}

.uebersicht__foto {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Das Einverstaendnis: ein eigener Haken, 24 px, in der Formsprache der Felder. */
.haken {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
}

.haken__eingabe {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.haken__kasten {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid var(--feld-rahmen);
  border-radius: var(--radius-klein);
  background: var(--papier);
  transition: background-color 150ms ease, border-color 150ms ease;
}

.haken__kasten::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 7px;
  height: 12px;
  border: solid var(--grund);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.haken__eingabe:checked + .haken__kasten {
  border-color: var(--tinte);
  background: var(--tinte);
}

.haken__eingabe:checked + .haken__kasten::after {
  opacity: 1;
}

.haken__eingabe:focus-visible + .haken__kasten {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
}

.haken__eingabe[aria-invalid='true'] + .haken__kasten {
  border-color: var(--gefahr);
}

.haken__text {
  font-size: 15px;
  line-height: 1.5;
}

/* Eine Meldung: getoente Flaeche, das Wort in der Zustandsfarbe. */
.meldung,
.hinweis {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-leiste);
  background: var(--gefahr-flaeche);
  color: var(--gefahr);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.hinweis {
  margin: 24px 0;
  background: var(--flaeche);
  color: var(--tinte);
}

/* Die Falle fuer Programme: aus dem Bild, aus der Tabulatorfolge. */
.falle {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------- Leiste */

/*
 * Weiter und Zurueck kleben unten am Bildschirm. Auf dem Telefon liegt der
 * Daumen dort - und wer im zweiten Schritt drei Felder ausfuellt, soll nicht
 * erst bis ans Ende rollen muessen, um weiterzukommen.
 */
.leiste {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 28px;
  /* Ueber die ganze Breite - sonst blitzt beim Rollen am Rand vorbei, was darunter liegt. */
  margin-inline: calc(50% - 50vw);
  padding: 12px var(--rand) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linie);
  background: var(--grund);
}

.leiste__innen {
  display: flex;
  align-items: center;
  gap: 18px;
}

.leiste .knopf {
  flex: 1;
  margin-left: auto;
}

@media (min-width: 520px) {
  .leiste .knopf {
    flex: none;
    min-width: 200px;
  }
}

/* ---------------------------------------------------------------- Danke */

.danke {
  max-width: var(--spalte);
  margin: 0 auto;
  padding: 48px 0 24px;
}

.danke .anzeige {
  margin-top: 10px;
}

.danke__marke {
  color: var(--tinte-2);
}

/* ---------------------------------------------------------------- Gross */

/*
 * Die Karte in voller Groesse. Auf dem Telefon in der echten Breite des
 * Geraets - genau so, wie sie spaeter beim Antippen erscheint. Auf dem
 * Rechner im Rahmen von 390 x 844, auf die Fensterhoehe verkleinert.
 */
.gross {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--behaelter);
}

.gross__huelle {
  --mass: 0.8;
  position: relative;
  width: calc(390px * var(--mass));
  height: calc(844px * var(--mass));
  border-radius: calc(44px * var(--mass));
  overflow: hidden;
}

.gross__schirm {
  display: block;
  width: 390px;
  height: 844px;
  border: 0;
  background: var(--grund);
  transform: scale(var(--mass));
  transform-origin: 0 0;
}

.gross__zu {
  flex: none;
  background: var(--grund);
  color: var(--tinte);
}

@media (hover: hover) {
  .gross__zu:hover {
    background: var(--flaeche);
  }
}

@media (max-width: 499px) {
  .gross {
    padding: 0 0 calc(12px + env(safe-area-inset-bottom));
    gap: 12px;
  }

  .gross__huelle {
    width: 100%;
    height: auto;
    flex: 1;
    border-radius: 0;
  }

  .gross__schirm {
    width: 100%;
    height: 100%;
    transform: none;
  }
}

/* ---------------------------------------------------------------- Weite Schirme */

@media (min-width: 720px) {
  .anzeige {
    font-size: 44px;
  }

  .bogen {
    padding: 26px 28px 28px;
  }
}

/* ---------------------------------------------------------------- Bewegung */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
[data-kundenbereich="lokal"] .nur-anfrage { display: none; }
html:has([data-kundenbereich="lokal"]) { scrollbar-width: none; }
html:has([data-kundenbereich="lokal"])::-webkit-scrollbar { display: none; }
