/*
 * Kukino, Webseite. Gestaltung nach docs/DESIGN.md: Weiß wie eine Arbeitsplatte, Tinte und genau eine Farbe, Eigelb.
 * Bagel Fat One steht nur in der Wortmarke, alles andere ist Figtree. Beide liegen lokal (keine fremden Abrufe).
 * Bewegung: einmal der Biss beim Laden, einmal der Bon, der druckt. Sonst nur Antworten auf Berührung.
 */

/* ------------------------------------------------------------------------------------------------ Schriften */

@font-face {
  font-family: "Bagel Fat One";
  src: url("fonts/bagel-fat-one.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  /* block: Die Wortmarke soll nie kurz in einer Ersatzschrift aufblitzen */
  font-display: block;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------------------------------------ Farben */

:root {
  color-scheme: light dark;
  --papier: #ffffff;
  --nebel: #f2f4f7;
  --linie: #e3e6ec;
  --tinte: #12141c;
  --tinte-weich: #5b6170;
  --eigelb: #ffc629;
  --eigelb-tief: #e9a800;
  --eigelb-hauch: #fff1bf;
  --tomate: #e5392d;
  --basilikum: #1e9e5a;
  /* Papier des Bons: bleibt auch im Dunkeln hell, Text darauf immer dunkel */
  --bon: #ffffff;
  --bon-tinte: #12141c;
  --bon-weich: #5b6170;
  /* Die Bühne: die Eigelb-Fläche oben und am Schluss, darauf das Zeichen in Tinte wie auf dem Startbild der App */
  --buehne: var(--eigelb);
  --auf-buehne: #12141c;
  --auf-buehne-weich: rgba(18, 20, 28, 0.78);
  --zeichen: #12141c;
  --knopf-buehne: #12141c;
  --knopf-buehne-text: #ffffff;
  --rand-buehne: rgba(18, 20, 28, 0.28);
  --fokus: #12141c;

  --rand: 20px;
  --abschnitt: 72px;
  --schrift: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wort: "Bagel Fat One", "Figtree", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0e1014;
    --nebel: #191c23;
    --linie: #2a2e38;
    --tinte: #f4f5f7;
    --tinte-weich: #a3a9b8;
    --eigelb-tief: #c28c00;
    --eigelb-hauch: #3b3212;
    --tomate: #ff5a4e;
    --basilikum: #3ccb7f;
    --bon: #f7f4ec;
    /* Im Dunkeln wäre eine große Eigelb-Fläche grell: Die Bühne wird dunkel, das Zeichen trägt das Eigelb */
    --buehne: #171a21;
    --auf-buehne: #f4f5f7;
    --auf-buehne-weich: #a3a9b8;
    --zeichen: #ffc629;
    --knopf-buehne: #ffc629;
    --knopf-buehne-text: #12141c;
    --rand-buehne: #3a3f4b;
    --fokus: #ffc629;
  }
}

@media (min-width: 600px) {
  :root {
    --rand: 32px;
    --abschnitt: 96px;
  }
}
@media (min-width: 960px) {
  :root {
    --rand: 48px;
    --abschnitt: 128px;
  }
}

/* ------------------------------------------------------------------------------------------------ Grundlagen */

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 960px) {
  body {
    font-size: 18px;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2.5px;
}

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

/* Die SVG-Vorlagen (Zeichen der Quellen, Statusleiste) stehen unsichtbar oben in der Seite */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.springen {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--tinte);
  color: var(--papier);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.springen:focus-visible {
  transform: none;
}

.breite {
  width: 100%;
  max-width: calc(1200px + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* Abschnitte: Luft statt Linien. Die Fläche wechselt, wo ein neuer Gedanke beginnt. */
.abschnitt {
  padding-block: var(--abschnitt);
}
.abschnitt-nebel {
  background: var(--nebel);
}

.titel {
  font-size: clamp(34px, 4.6vw, 56px);
  max-width: 18ch;
}
.titel-breit {
  max-width: 24ch;
}
.abschnitt-knapp {
  padding-block: clamp(56px, 7vw, 96px);
}
.einleitung {
  margin-top: 20px;
  max-width: 36em;
  color: var(--tinte-weich);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
}

/* ------------------------------------------------------------------------------------------------ Knöpfe */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.3, 0.7, 0.4, 1.4), background-color 160ms ease;
}
.knopf:hover {
  text-decoration: none;
}
.knopf:active {
  transform: scale(0.97);
}
.knopf-eigelb {
  background: var(--eigelb);
  color: #12141c;
}
.knopf-eigelb:hover {
  background: #ffd04d;
}
.knopf-buehne {
  background: var(--knopf-buehne);
  color: var(--knopf-buehne-text);
}
.knopf-nebel {
  background: var(--nebel);
  color: var(--tinte);
}

/* "Bald im App Store": kein Knopf, nur der Stand. Deshalb Umriss statt Fläche, und kein Zeiger. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 6px 22px 6px 16px;
  border: 2px solid var(--rand-buehne);
  border-radius: 999px;
  color: var(--auf-buehne);
  line-height: 1.1;
}
.store svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.store-klein {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--auf-buehne-weich);
}
.store-gross {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

/* ------------------------------------------------------------------------------------------------ Kopf und Bühne */

.kopf {
  background: var(--buehne);
  color: var(--auf-buehne);
  padding-top: 28px;
}
.kopf-innen {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.navi {
  display: none;
}
.navi ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navi a:not(.knopf) {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.navi a:not(.knopf):hover {
  background: rgba(18, 20, 28, 0.08);
}
@media (prefers-color-scheme: dark) {
  .navi a:not(.knopf):hover {
    background: rgba(255, 255, 255, 0.08);
  }
}
.navi .knopf {
  min-height: 46px;
  padding: 0 20px;
  margin-left: 8px;
}
.navi-link {
  display: none;
}
@media (min-width: 760px) {
  .navi {
    display: block;
    padding-top: clamp(4px, 1.2vw, 20px);
  }
}
@media (min-width: 1120px) {
  .navi-link {
    display: list-item;
  }
}

/* Die Wortmarke mit dem Zeichen davor. Groß im Kopf der Startseite, klein in der Fußzeile und auf den Unterseiten. */
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  font-family: var(--wort);
  font-size: clamp(58px, 9.6vw, 140px);
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--auf-buehne);
  text-decoration: none;
}
.marke-wort {
  display: inline-flex;
  /* Bagel Fat One sitzt tief in der Zeile: die Mitte der Buchstaben auf die Mitte des Dreiecks holen */
  transform: translateY(-0.07em);
}
.marke-wort > span {
  display: inline-block;
}

/* Das Zeichen: Abspiel-Dreieck mit Biss. Die Box ist größer als das Dreieck (viewBox 100, Dreieck rund 26 bis 87),
 * deshalb die negativen Ränder: So steht die Spitze des Dreiecks bündig mit dem Text darunter. */
.biss {
  width: 1.12em;
  height: 1.12em;
  margin-left: -0.29em;
  margin-right: -0.1em;
  overflow: visible;
  flex: none;
}
.biss-dreieck {
  fill: var(--zeichen);
  stroke: var(--zeichen);
  stroke-width: 13;
  stroke-linejoin: round;
}
.biss-mund {
  fill: var(--buehne);
}
.biss-kruemel path {
  fill: var(--zeichen);
  stroke: var(--zeichen);
  stroke-linejoin: round;
}

/* Die Kachel: dasselbe Zeichen auf Eigelb, wie das App-Symbol. Für helle Flächen (Fußzeile, Unterseiten). */
.kachel-zeichen {
  width: 1em;
  height: 1em;
  flex: none;
  border-radius: 0.26em;
}
.marke-klein {
  gap: 0.3em;
  font-size: 30px;
  color: var(--tinte);
}
.marke-klein .marke-wort {
  transform: translateY(0.03em);
}
.marke-klein .kachel-zeichen {
  width: 1.15em;
  height: 1.15em;
}

/* ------------------------------------------------------------------------------------------------ Der Biss beim Laden */

/* Ablauf wie in app/src/components/Logo.tsx: Mund offen, in 100 ms zuschnappen, das Dreieck staucht sich und federt
 * zurück, vier Krümel fliegen nach oben rechts weg und fallen mit Schwerkraft. Danach baut sich die Wortmarke auf. */
.biss-kruemel g g {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .biss-bewegt .biss-mund {
    animation: biss-zu 100ms cubic-bezier(0.32, 0, 0.67, 0) 420ms both;
  }
  .biss-bewegt .biss-koerper {
    transform-box: view-box;
    transform-origin: 36px 80px;
    animation: biss-stoss 550ms linear 505ms both;
  }
  .biss-bewegt .biss-kruemel g g {
    animation: 650ms linear 510ms both;
  }
  .biss-bewegt .biss-kruemel > g:nth-child(1) g {
    animation-name: kruemel-1;
  }
  .biss-bewegt .biss-kruemel > g:nth-child(2) g {
    animation-name: kruemel-2;
  }
  .biss-bewegt .biss-kruemel > g:nth-child(3) g {
    animation-name: kruemel-3;
  }
  .biss-bewegt .biss-kruemel > g:nth-child(4) g {
    animation-name: kruemel-4;
  }
  /* Buchstabe für Buchstabe, je 55 ms versetzt. Die Seite läuft unter einer strengen Content-Security-Policy (keine
   * style-Attribute), deshalb stehen die Verzögerungen hier statt am Buchstaben. Acht reichen auch für einen längeren Namen. */
  .kopf .marke-wort > span {
    animation: buchstabe 300ms cubic-bezier(0.3, 1.5, 0.5, 1) 640ms both;
  }
  .kopf .marke-wort > span:nth-child(2) {
    animation-delay: 695ms;
  }
  .kopf .marke-wort > span:nth-child(3) {
    animation-delay: 750ms;
  }
  .kopf .marke-wort > span:nth-child(4) {
    animation-delay: 805ms;
  }
  .kopf .marke-wort > span:nth-child(5) {
    animation-delay: 860ms;
  }
  .kopf .marke-wort > span:nth-child(6) {
    animation-delay: 915ms;
  }
  .kopf .marke-wort > span:nth-child(7) {
    animation-delay: 970ms;
  }
  .kopf .marke-wort > span:nth-child(8) {
    animation-delay: 1025ms;
  }
}

@keyframes biss-zu {
  from {
    transform: translate(6.78px, -12.25px);
  }
  to {
    transform: translate(0, 0);
  }
}
@keyframes buchstabe {
  from {
    opacity: 0;
    transform: translateY(0.18em) scale(0.7);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Berechnet mit tmp/website-werk/keyframes.mjs: gleiche Bahn, Drehung und Ausblendung wie die Krümel in der App */
@keyframes kruemel-1 {
  0% { transform: translate(0px, 0px) rotate(0deg); opacity: 0; }
  10% { transform: translate(3px, -2.85px) rotate(26deg); opacity: 1; }
  20% { transform: translate(6px, -4.6px) rotate(52deg); opacity: 1; }
  30% { transform: translate(9px, -5.25px) rotate(78deg); opacity: 1; }
  40% { transform: translate(12px, -4.8px) rotate(104deg); opacity: 1; }
  50% { transform: translate(15px, -3.25px) rotate(130deg); opacity: 1; }
  60% { transform: translate(18px, -0.6px) rotate(156deg); opacity: 0.89; }
  70% { transform: translate(21px, 3.15px) rotate(182deg); opacity: 0.67; }
  80% { transform: translate(24px, 8px) rotate(208deg); opacity: 0.44; }
  90% { transform: translate(27px, 13.95px) rotate(234deg); opacity: 0.22; }
  100% { transform: translate(30px, 21px) rotate(260deg); opacity: 0; }
}
@keyframes kruemel-2 {
  0% { transform: translate(0px, 0px) rotate(0deg); opacity: 0; }
  10% { transform: translate(2.4px, -2.15px) rotate(-20deg); opacity: 1; }
  20% { transform: translate(4.8px, -3.4px) rotate(-40deg); opacity: 1; }
  30% { transform: translate(7.2px, -3.75px) rotate(-60deg); opacity: 1; }
  40% { transform: translate(9.6px, -3.2px) rotate(-80deg); opacity: 1; }
  50% { transform: translate(12px, -1.75px) rotate(-100deg); opacity: 1; }
  60% { transform: translate(14.4px, 0.6px) rotate(-120deg); opacity: 0.89; }
  70% { transform: translate(16.8px, 3.85px) rotate(-140deg); opacity: 0.67; }
  80% { transform: translate(19.2px, 8px) rotate(-160deg); opacity: 0.44; }
  90% { transform: translate(21.6px, 13.05px) rotate(-180deg); opacity: 0.22; }
  100% { transform: translate(24px, 19px) rotate(-200deg); opacity: 0; }
}
@keyframes kruemel-3 {
  0% { transform: translate(0px, 0px) rotate(0deg); opacity: 0; }
  10% { transform: translate(2.6px, -2.78px) rotate(32deg); opacity: 1; }
  20% { transform: translate(5.2px, -4.72px) rotate(64deg); opacity: 1; }
  30% { transform: translate(7.8px, -5.82px) rotate(96deg); opacity: 1; }
  40% { transform: translate(10.4px, -6.08px) rotate(128deg); opacity: 1; }
  50% { transform: translate(13px, -5.5px) rotate(160deg); opacity: 1; }
  60% { transform: translate(15.6px, -4.08px) rotate(192deg); opacity: 0.89; }
  70% { transform: translate(18.2px, -1.82px) rotate(224deg); opacity: 0.67; }
  80% { transform: translate(20.8px, 1.28px) rotate(256deg); opacity: 0.44; }
  90% { transform: translate(23.4px, 5.22px) rotate(288deg); opacity: 0.22; }
  100% { transform: translate(26px, 10px) rotate(320deg); opacity: 0; }
}
@keyframes kruemel-4 {
  0% { transform: translate(0px, 0px) rotate(0deg); opacity: 0; }
  10% { transform: translate(3.6px, -1.45px) rotate(-28deg); opacity: 1; }
  20% { transform: translate(7.2px, -2.2px) rotate(-56deg); opacity: 1; }
  30% { transform: translate(10.8px, -2.25px) rotate(-84deg); opacity: 1; }
  40% { transform: translate(14.4px, -1.6px) rotate(-112deg); opacity: 1; }
  50% { transform: translate(18px, -0.25px) rotate(-140deg); opacity: 1; }
  60% { transform: translate(21.6px, 1.8px) rotate(-168deg); opacity: 0.89; }
  70% { transform: translate(25.2px, 4.55px) rotate(-196deg); opacity: 0.67; }
  80% { transform: translate(28.8px, 8px) rotate(-224deg); opacity: 0.44; }
  90% { transform: translate(32.4px, 12.15px) rotate(-252deg); opacity: 0.22; }
  100% { transform: translate(36px, 17px) rotate(-280deg); opacity: 0; }
}
@keyframes biss-stoss {
  0% { transform: rotate(-61.05deg) scale(1, 1) rotate(61.05deg); }
  3.64% { transform: rotate(-61.05deg) scale(0.966, 1.015) rotate(61.05deg); }
  7.27% { transform: rotate(-61.05deg) scale(0.943, 1.024) rotate(61.05deg); }
  12.73% { transform: rotate(-61.05deg) scale(0.93, 1.03) rotate(61.05deg); }
  18.18% { transform: rotate(-61.05deg) scale(0.943, 1.024) rotate(61.05deg); }
  23.64% { transform: rotate(-61.05deg) scale(0.971, 1.012) rotate(61.05deg); }
  29.09% { transform: rotate(-61.05deg) scale(0.999, 1.001) rotate(61.05deg); }
  34.55% { transform: rotate(-61.05deg) scale(1.016, 0.993) rotate(61.05deg); }
  40% { transform: rotate(-61.05deg) scale(1.021, 0.991) rotate(61.05deg); }
  45.45% { transform: rotate(-61.05deg) scale(1.017, 0.993) rotate(61.05deg); }
  50.91% { transform: rotate(-61.05deg) scale(1.008, 0.997) rotate(61.05deg); }
  56.36% { transform: rotate(-61.05deg) scale(1, 1) rotate(61.05deg); }
  67.27% { transform: rotate(-61.05deg) scale(0.994, 1.003) rotate(61.05deg); }
  78.18% { transform: rotate(-61.05deg) scale(0.998, 1.001) rotate(61.05deg); }
  100% { transform: rotate(-61.05deg) scale(1, 1) rotate(61.05deg); }
}

/* ------------------------------------------------------------------------------------------------ Held */

.held {
  background: var(--buehne);
  color: var(--auf-buehne);
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(56px, 7vw, 104px);
}
.held-innen {
  display: grid;
  gap: 48px;
  align-items: start;
}
.held h1 {
  font-size: clamp(38px, 5.2vw, 70px);
  max-width: 14ch;
}
.held-text {
  margin-top: 24px;
  max-width: 31em;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--auf-buehne-weich);
}
.held .knoepfe {
  margin-top: 36px;
}
.held-klein {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--auf-buehne-weich);
}
.held-telefon {
  justify-self: center;
}
@media (min-width: 960px) {
  .held-innen {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 64px;
  }
  .held-spalte {
    padding-top: clamp(24px, 3.4vw, 56px);
  }
  /* Das Telefon rückt unter die Navigation hoch, so steht der ganze Kopf auf dem ersten Bildschirm */
  .held-telefon {
    justify-self: end;
    margin-top: -64px;
    margin-right: clamp(0px, 3vw, 48px);
  }
}

/* ------------------------------------------------------------------------------------------------ Telefon */

/* Ein iPhone aus CSS, darin ein echtes Bild der App (Ansicht 393 x 759 ohne Statusleiste und Heimleiste,
 * die beiden malt der Rahmen selbst dazu). --b ist die Breite des ganzen Telefons. */
.telefon {
  --b: 264px;
  width: var(--b);
  flex: none;
}
.telefon-rahmen {
  padding: calc(var(--b) * 0.034);
  border-radius: calc(var(--b) * 0.165);
  background: #1b1d24;
  box-shadow:
    inset 0 0 0 calc(var(--b) * 0.007) #474b57,
    0 calc(var(--b) * 0.12) calc(var(--b) * 0.2) calc(var(--b) * -0.08) rgba(18, 20, 28, 0.42);
}
.telefon-schirm {
  position: relative;
  aspect-ratio: 393 / 852;
  border-radius: calc(var(--b) * 0.132);
  overflow: hidden;
  background: #ffffff;
  color: #12141c;
}
.telefon-schirm img {
  position: absolute;
  left: 0;
  top: 6.925%;
  width: 100%;
  height: 89.085%;
  object-fit: cover;
  object-position: top;
}
.telefon-status {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6.925%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7.5% 0 11%;
  font-size: calc(var(--b) * 0.043);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.telefon-status svg {
  width: 17.5%;
  height: auto;
}
.telefon-insel {
  position: absolute;
  top: 1.29%;
  left: 50%;
  width: 32%;
  height: 4.34%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000000;
}
.telefon-heim {
  position: absolute;
  bottom: 0.94%;
  left: 50%;
  width: 34%;
  height: 0.6%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #12141c;
}
.held .telefon {
  --b: 272px;
}
@media (min-width: 600px) {
  .held .telefon {
    --b: 300px;
  }
}
@media (min-width: 960px) {
  .held .telefon {
    --b: 336px;
  }
}

/* ------------------------------------------------------------------------------------------------ So geht's */

.ablauf-innen {
  display: grid;
  gap: 56px;
}
.schritte {
  margin-top: 40px;
  list-style: none;
  counter-reset: schritt;
  display: grid;
  gap: 32px;
  max-width: 34em;
}
.schritte li {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 20px;
  counter-increment: schritt;
}
/* Die Nummer auf einer Eigelb-Scheibe, wie im Bon und im Kochmodus: Es ist wirklich eine Reihenfolge. */
.schritte li::before {
  content: counter(schritt);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--eigelb);
  color: #12141c;
  font-size: 21px;
  font-weight: 800;
}
.schritte h3 {
  font-size: clamp(21px, 2vw, 25px);
  padding-top: 9px;
}
.schritte p {
  margin-top: 8px;
  color: var(--tinte-weich);
}
@media (min-width: 960px) {
  .ablauf-innen {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 72px;
    align-items: start;
  }
}

/* Der Drucker: oben steckt das Video im Schlitz, unten kommt der Bon heraus. */
.drucker {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
  padding-top: 150px;
}
.video-karte {
  position: absolute;
  top: 0;
  left: 50%;
  width: 132px;
  aspect-ratio: 9 / 16;
  transform: translateX(-50%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px -14px rgba(18, 20, 28, 0.45);
}
.video-karte img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-quelle {
  position: absolute;
  left: 9px;
  bottom: 9px;
  width: 24px;
  height: 24px;
}
.video-dauer {
  position: absolute;
  right: 9px;
  bottom: 10px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(18, 20, 28, 0.62);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}
/* Der Schlitz liegt über Video und Bon: Das Video verschwindet darin, der Bon kommt darunter hervor. */
.schlitz {
  position: relative;
  z-index: 2;
  height: 26px;
  border-radius: 13px;
  background: #12141c;
  box-shadow: inset 0 -5px 0 #2b2f3a;
}
@media (prefers-color-scheme: dark) {
  .schlitz {
    background: #2b2f3a;
    box-shadow: inset 0 -5px 0 #3a3f4b;
  }
}
.schlitz::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 9px;
  height: 6px;
  border-radius: 3px;
  background: #000000;
}

/* ------------------------------------------------------------------------------------------------ Der Bon */

.bon {
  position: relative;
  z-index: 1;
  margin: -10px 14px 0;
  filter: drop-shadow(0 14px 18px rgba(18, 20, 28, 0.16));
}
.bon-papier {
  --zacke: 14px;
  padding: 30px 22px calc(24px + var(--zacke) / 2);
  border-radius: 0 0 0 0;
  background: var(--bon);
  color: var(--bon-tinte);
  font-size: 15px;
  line-height: 1.45;
  /* Zackenkante unten: je Zahn ein Viertelkreis-Ausschnitt einer kegelförmigen Maske */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zacke) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zacke) 100%;
}
.bon-titel {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.bon-kopf {
  margin-top: 6px;
  color: var(--bon-weich);
}
.bon-abschnitt {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
}
.bon-zutaten {
  margin-top: 6px;
  list-style: none;
}
.bon-zutaten li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-block: 2px;
}
/* Punktlinie zwischen Name und Menge */
.bon-zutaten li::after {
  content: "";
  order: 1;
  flex: 1;
  min-width: 12px;
  border-bottom: 2px dotted #c9cdd6;
  transform: translateY(-4px);
}
.bon-menge {
  order: 2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bon-schritte {
  margin-top: 8px;
  list-style: none;
  counter-reset: bon;
  display: grid;
  gap: 8px;
}
.bon-schritte li {
  position: relative;
  padding-left: 32px;
  counter-increment: bon;
}
.bon-schritte li::before {
  content: counter(bon);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffc629;
  color: #12141c;
  font-size: 13px;
  font-weight: 800;
}
.bon-fuss {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 2px dashed #e3e6ec;
  color: var(--bon-weich);
  font-size: 14px;
}

/* Der Bon druckt: Die Maske wächst von oben nach unten, die Zeilen stehen schon drauf, am Ende federt das Papier nach.
 * Nur mit Skript (es merkt, wann der Bon ins Bild kommt) und nie bei "Bewegung reduzieren". */
.bon.wartet .bon-papier {
  clip-path: inset(0 0 100% 0);
}
.bon.druckt .bon-papier {
  animation: drucken 860ms cubic-bezier(0.25, 0.8, 0.3, 1) both;
}
.bon.druckt {
  animation: nachfedern 1100ms ease-out both;
}
@keyframes drucken {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes nachfedern {
  0%,
  72% {
    transform: none;
  }
  84% {
    transform: translateY(5px);
  }
  94% {
    transform: translateY(-1px);
  }
  100% {
    transform: none;
  }
}

/* ------------------------------------------------------------------------------------------------ Quellen */

.quellen-innen {
  display: grid;
  gap: 40px;
}
.quellen-liste {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 12px;
}
.quellen-liste li {
  display: grid;
  justify-items: start;
  gap: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.quellen-liste svg {
  width: 56px;
  height: 56px;
}
/* Im Dunkeln verschwände der fast schwarze TikTok-Kreis: ein feiner Ring hält alle Zeichen gleich sichtbar */
@media (prefers-color-scheme: dark) {
  .quellen-liste svg {
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px #3a3f4b;
  }
}
.quellen-satz {
  margin-top: 20px;
  max-width: 30em;
  color: var(--tinte-weich);
}
@media (min-width: 960px) {
  .quellen-innen {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
  }
  .quellen-liste {
    gap: 36px 24px;
  }
  .quellen-liste svg {
    width: 64px;
    height: 64px;
  }
}

/* ------------------------------------------------------------------------------------------------ Funktionen */

.funktion {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-top: 72px;
}
.funktion:first-of-type {
  margin-top: 56px;
}
.funktion-text h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 16ch;
}
.funktion-text > p {
  margin-top: 16px;
  max-width: 30em;
  color: var(--tinte-weich);
}
.funktion-text > p.leise {
  font-size: 15px;
}
.punkte {
  margin-top: 22px;
  max-width: 30em;
  list-style: none;
  display: grid;
  gap: 12px;
}
.punkte li {
  position: relative;
  padding-left: 30px;
}
/* Ein kleines Eigelb-Dreieck statt eines Punkts: das Abspiel-Zeichen, ohne Biss (der gehört nur dem Logo). */
.punkte li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.42em;
  width: 13px;
  height: 14px;
  background: var(--eigelb);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  border-radius: 2px;
}
.funktion .telefon {
  justify-self: center;
}
/* Im Markup steht der Text immer zuerst (auf dem Handy liest man erst, dann kommt das Bild). Breit steht das Telefon
 * abwechselnd rechts und links (.funktion-links), der Text bleibt linksbündig. */
@media (min-width: 960px) {
  .funktion {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(56px, 8vw, 120px);
    margin-top: 112px;
  }
  .funktion:first-of-type {
    margin-top: 72px;
  }
  .funktion .telefon {
    --b: 300px;
  }
  .funktion-links {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .funktion-links .telefon {
    order: -1;
  }
  .funktion-text {
    max-width: 520px;
  }
}

/* Drei kleinere Funktionen: oben ein Ausschnitt des Telefons, darunter der Text. */
.kacheln {
  margin-top: 96px;
  list-style: none;
  display: grid;
  gap: 48px 32px;
}
@media (min-width: 760px) {
  .kacheln {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .kacheln {
    margin-top: 128px;
  }
}
.kachel-bild {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--nebel);
  display: flex;
  justify-content: center;
  padding-top: 32px;
}
.kachel-bild .telefon {
  --b: 236px;
}
/* Drei Kacheln nebeneinander auf mittleren Breiten: das Telefon kleiner, sonst schneidet die Kachel es seitlich ab */
@media (min-width: 760px) and (max-width: 1099px) {
  .kachel-bild {
    height: 260px;
    padding-top: 26px;
  }
  .kachel-bild .telefon {
    --b: 188px;
  }
}
.kachel h3 {
  margin-top: 24px;
  font-size: clamp(21px, 2vw, 24px);
}
.kachel p {
  margin-top: 8px;
  color: var(--tinte-weich);
}

/* ------------------------------------------------------------------------------------------------ Für wen */

.fuerwen {
  margin-top: 48px;
  list-style: none;
  display: grid;
  gap: 0 48px;
}
.fuerwen li {
  padding-block: 28px;
  border-top: 2px solid var(--linie);
}
.fuerwen h3 {
  font-size: clamp(21px, 2.1vw, 26px);
  max-width: 20ch;
}
.fuerwen p {
  margin-top: 10px;
  max-width: 28em;
  color: var(--tinte-weich);
}
@media (min-width: 760px) {
  .fuerwen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------------------------------------ Fragen */

.fragen-innen {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .fragen-innen {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 72px;
    align-items: start;
  }
}
.fragen-kontakt {
  margin-top: 20px;
  max-width: 22em;
  color: var(--tinte-weich);
}
.fragen {
  border-top: 2px solid var(--linie);
}
.fragen details {
  border-bottom: 2px solid var(--linie);
}
.fragen summary {
  position: relative;
  display: block;
  padding: 22px 56px 22px 0;
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
.fragen summary::-webkit-details-marker {
  display: none;
}
/* Plus, das beim Öffnen zum Minus wird: die Antwort auf das Antippen */
.fragen summary::before,
.fragen summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 2.5px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms cubic-bezier(0.3, 0.7, 0.4, 1);
}
.fragen summary::after {
  transform: rotate(90deg);
}
.fragen details[open] summary::after {
  transform: rotate(0deg);
}
.fragen summary:hover {
  color: var(--tinte);
}
.antwort {
  padding: 0 0 26px;
  max-width: 38em;
  color: var(--tinte-weich);
}
.antwort p + p {
  margin-top: 12px;
}

/* ------------------------------------------------------------------------------------------------ Schluss */

.schluss {
  background: var(--buehne);
  color: var(--auf-buehne);
}
.schluss-innen {
  display: grid;
  gap: 40px;
  align-items: center;
}
.schluss-text {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.schluss h2 {
  font-size: clamp(44px, 6.4vw, 92px);
  letter-spacing: -0.03em;
}
.schluss p {
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--auf-buehne-weich);
}
.schluss .knoepfe {
  margin-top: 16px;
}
/* Zum Schluss das Zeichen groß, wie auf dem Startbild der App: Eigelb, angebissenes Dreieck, "Mach was draus" */
.schluss-zeichen {
  width: clamp(120px, 26vw, 340px);
  height: auto;
  margin-left: calc(clamp(120px, 26vw, 340px) * -0.24);
}
@media (min-width: 960px) {
  .schluss-innen {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 64px;
  }
  .schluss-zeichen {
    order: 2;
    margin: 0 clamp(0px, 3vw, 48px) 0 0;
  }
}

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

.fuss {
  padding-block: 56px 40px;
  border-top: 1px solid var(--linie);
}
.fuss-innen {
  display: grid;
  gap: 28px;
}
.fuss-oben {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.fuss nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  font-weight: 600;
}
.fuss nav a {
  display: inline-block;
  padding-block: 6px;
}
.fuss-unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 15px;
  color: var(--tinte-weich);
}
.fuss-hinweis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--tinte);
}
.fuss-hinweis svg {
  width: 18px;
  height: 18px;
  color: var(--basilikum);
}

/* ------------------------------------------------------------------------------------------------ Unterseiten */

.kopf-schlicht {
  padding-block: 20px;
  border-bottom: 1px solid var(--linie);
}
.kopf-schlicht .kopf-innen {
  align-items: center;
  /* Drei Verweise passen auf schmalen Telefonen nicht neben die Wortmarke: Sie rutschen dann in die Zeile darunter */
  flex-wrap: wrap;
  row-gap: 4px;
}
.kopf-schlicht nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  list-style: none;
  font-weight: 600;
}
.kopf-schlicht nav a {
  display: inline-block;
  padding: 8px 2px;
}
.kopf-schlicht nav a[aria-current="page"] {
  text-decoration: none;
  color: var(--tinte-weich);
}

.recht {
  padding-block: 56px 96px;
}
.recht-innen {
  max-width: 760px;
}
.recht h1 {
  font-size: clamp(38px, 5vw, 56px);
}
/* "Nutzungsbedingungen" und "Datenschutzerklärung" sind in 38 px breiter als ein schmales Telefon: dann trennen */
.recht h1,
.recht h2 {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
.recht h2 {
  margin-top: 48px;
  font-size: clamp(23px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.recht h3 {
  margin-top: 28px;
  font-size: 19px;
}
.recht p,
.recht ul,
.recht dl {
  margin-top: 12px;
}
.recht ul {
  padding-left: 1.2em;
}
.recht li + li {
  margin-top: 6px;
}
.recht .stand {
  margin-top: 12px;
  color: var(--tinte-weich);
}
.recht address {
  font-style: normal;
}
.recht li address {
  margin-block: 8px;
}
.recht ol {
  margin-top: 12px;
  padding-left: 1.4em;
}
/* Absätze der Nutzungsbedingungen: (1), (2) ... vor jedem Absatz, wie man es von Verträgen kennt */
.recht ol.absaetze {
  padding-left: 0;
  list-style: none;
  counter-reset: absatz;
}
.recht ol.absaetze > li {
  position: relative;
  padding-left: 2.4em;
  counter-increment: absatz;
}
.recht ol.absaetze > li::before {
  content: "(" counter(absatz) ")";
  position: absolute;
  left: 0;
  color: var(--tinte-weich);
  font-variant-numeric: tabular-nums;
}
.recht ol.absaetze > li + li {
  margin-top: 12px;
}
.recht table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.recht th,
.recht td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  vertical-align: top;
}
.recht th {
  font-weight: 700;
}
.tabelle {
  overflow-x: auto;
}
/* Auf dem Telefon wird jede Zeile der Tabelle eine eigene Karte: Drei Spalten wären dort zu schmal oder müssten seitlich
   gewischt werden. Die Beschriftung jeder Zelle steht in data-label. */
@media (max-width: 599px) {
  .tabelle table,
  .tabelle tbody,
  .tabelle tr,
  .tabelle td {
    display: block;
  }
  .tabelle thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .tabelle tr {
    padding-block: 14px;
    border-bottom: 1px solid var(--linie);
  }
  .recht .tabelle td {
    padding: 2px 0;
    border: 0;
  }
  .tabelle td:first-child {
    font-weight: 700;
  }
  .tabelle td[data-label] {
    margin-top: 6px;
  }
  .tabelle td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--tinte-weich);
  }
}

.widerspruch {
  margin-top: 16px;
  padding: 18px 20px;
  border: 2px solid var(--tinte);
  border-radius: 16px;
}

/* ------------------------------------------------------------------------------------------------ 404 */

.fehlerseite {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: 64px;
  background: var(--buehne);
  color: var(--auf-buehne);
}
.fehlerseite-innen {
  display: grid;
  justify-items: start;
  gap: 20px;
}
.fehlerseite h1 {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.03em;
}
.fehlerseite p {
  max-width: 30em;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--auf-buehne-weich);
}
.fehlerseite .knopf {
  margin-top: 12px;
}
/* Impressum, Datenschutz und Bedingungen sind auch von der Fehlerseite aus erreichbar */
.fehlerseite-recht ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 8px;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}
.fehlerseite-recht a {
  display: inline-block;
  padding-block: 6px;
  color: var(--auf-buehne-weich);
}
/* Das Zeichen beißt hier einmal zu: Hier fehlt ein Stück. */
.fehlerseite-zeichen {
  width: clamp(120px, 18vw, 200px);
  height: auto;
  margin: 0 0 0 calc(clamp(120px, 18vw, 200px) * -0.265);
}

/* ------------------------------------------------------------------------------------------------ Einwilligung */

/* Baustein für später: erscheint nur, wenn in site.js EINWILLIGUNG_NOETIG auf true steht. */
.einwilligung {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  max-width: 560px;
  margin-inline: auto;
  padding: 22px;
  border-radius: 24px;
  background: var(--papier);
  color: var(--tinte);
  box-shadow: 0 24px 60px -18px rgba(18, 20, 28, 0.45), 0 0 0 1px var(--linie);
}
.einwilligung h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.einwilligung p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--tinte-weich);
}
.einwilligung .knoepfe {
  margin-top: 18px;
}
.einwilligung .knopf {
  flex: 1 1 160px;
}

/* ------------------------------------------------------------------------------------------------ Bewegung reduzieren */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .bon.wartet .bon-papier {
    clip-path: none;
  }
}
