/*
 * TAPCARD · Landingpage
 *
 * Aufbau nach Wise (grosse Schriftbloecke, Pillen, Hell/Dunkel als Rhythmus),
 * Haut nach dem TAPCARD-Kanon: warme Neutrale, Tinte statt Schwarz, ein
 * Akzent als Satzzeichen, kein weicher Schatten, keine scharfe Ecke.
 *
 * Die Farb- und Formwerte stammen aus
 * Stempelkarten/stempelkarten-platform/design/marke/tokens/tokens.css und
 * tragen dieselben Namen. Wer dort etwas aendert, zieht es hier nach.
 */

.lokal-hinweis {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 28px;
  background: #110e0c;
  color: #faf7f4;
}
.lokal-hinweis p { max-width: 65ch; font-size: 1rem; line-height: 1.5; }
.lokal-hinweis .knopf { background: #faf7f4; color: #110e0c; }

/* ---------------------------------------------------------------- Schriften */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('schriften/bricolage.woff2') format('woff2-variations'),
    url('schriften/bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gabarito';
  src: url('schriften/gabarito.woff2') format('woff2-variations'),
    url('schriften/gabarito.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('schriften/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- Tokens */

:root {
  /* farbe, aus tokens.css */
  --farbe-grund: #faf7f4;
  --farbe-flaeche: #efeae5;
  --farbe-waesche: #f6e6dc;
  --farbe-linie: #ddd6cf;
  --farbe-matt: #8a8683;
  --farbe-tinte: #48443f;
  --farbe-tinte-auszeichnung: #110e0c;
  --farbe-behaelter: #2b2622;
  --farbe-akzent: #147378;

  /* Leise Schrift auf der Buehne: Grund mit 72 % Deckkraft, wie auf dem Pass. 9,4 : 1 auf Tinte. */
  --farbe-auf-dunkel-leise: rgba(250, 247, 244, 0.72);
  --farbe-linie-dunkel: rgba(250, 247, 244, 0.14);

  /* Der erfundene Beispielbetrieb. Kartenflaeche nach den Leitplanken aus farbe.json:
     Luminanz 0,54 (Fenster 0,018 bis 0,565), Saettigung 0,22. Schrift darauf: Tinte, 10,8 : 1. */
  --betrieb: #b9c7a8;
  --betrieb-tief: #8a9879;

  /* schrift */
  --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;

  /* form */
  --form-radius-chip: 4px;
  --form-radius-eingabe: 12px;
  --form-radius-leiste: 20px;
  --form-radius-behaelter: 28px;
  --form-radius-voll: 999px;
  --form-stempel-versatz: 4px;

  /* Bewegung: eine kraeftige Ausklang-Kurve fuer alles, was erscheint. */
  --kurve-aus: cubic-bezier(0.23, 1, 0.32, 1);
  --kurve-schub: cubic-bezier(0.77, 0, 0.175, 1);

  --rand: 20px;

  /* Scrollweg, auf dem sich die Karte einmal umdreht. Kurz genug, dass die
     Rueckseite noch auf der Buehne steht, bevor die Buehne aus dem Bild geht. */
  --drehweg: 58vh;
}

/* ---------------------------------------------------------------- Grundlagen */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--farbe-grund);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--farbe-grund);
  color: var(--farbe-tinte);
  font-family: var(--schrift-oberflaeche);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.007em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

.symbole {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sym {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rahmen {
  width: min(100% - 2 * var(--rand), 1120px);
  margin-inline: auto;
}

.sprung {
  position: absolute;
  left: var(--rand);
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--form-radius-voll);
  background: var(--farbe-tinte-auszeichnung);
  color: var(--farbe-grund);
  font-weight: 600;
  text-decoration: none;
}

.sprung:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--farbe-akzent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- Bedienelemente */

/* Der Hauptknopf: Tinte, vollrund. Der Akzent fuellt ihn nie (Kanon, Gesetz 6). */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: var(--form-radius-voll);
  background: var(--farbe-tinte-auszeichnung);
  color: var(--farbe-grund);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.006em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease-out, background-color 200ms ease;
}

.knopf .sym {
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--kurve-aus);
}

.knopf:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .knopf:hover {
    background: var(--farbe-behaelter);
  }

  .knopf:hover .sym {
    transform: translateX(3px);
  }
}

.knopf--klein {
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
}

.pille {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--form-radius-voll);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease-out, background-color 200ms ease;
}

.pille--kontur {
  box-shadow: inset 0 0 0 1px var(--farbe-tinte-auszeichnung);
  color: var(--farbe-tinte-auszeichnung);
}

.pille:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .pille--kontur:hover {
    background: var(--farbe-flaeche);
  }
}

/* Der Zweitweg: unterstrichener Textlink, nie ein zweiter gefuellter Knopf. */
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--farbe-tinte-auszeichnung);
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: currentColor;
}

.textlink .sym {
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--kurve-aus);
}

@media (hover: hover) {
  .textlink:hover .sym {
    transform: translate(2px, -1px);
  }
}

/* ---------------------------------------------------------------- Schrift */

.wortmarke {
  font-family: var(--schrift-auftritt);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--farbe-tinte-auszeichnung);
  text-decoration: none;
}

.wortmarke--klein {
  font-size: 18px;
}

/* display: der eine Schrei pro Bildschirm. 52 px, 0,90, -0,020 em, Schnitt 750. */
.anzeige {
  font-family: var(--schrift-auftritt);
  font-size: clamp(52px, 13.3vw, 72px);
  font-weight: 750;
  font-stretch: 88%;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--farbe-tinte-auszeichnung);
}

/* heading-lg: 40 px, 1,00, -0,005 em, Schnitt 700. */
.titel {
  font-family: var(--schrift-auftritt);
  font-size: clamp(40px, 3.4vw + 27px, 60px);
  font-weight: 700;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--farbe-tinte-auszeichnung);
  text-wrap: balance;
}

.lead {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 18px;
  line-height: 1.5;
  hyphens: auto;
}

/* ---------------------------------------------------------------- Kopf */

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.hauptnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 4px 16px;
  border-bottom: 1px solid var(--farbe-linie);
}

.hauptnav a,
.inhalt-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--farbe-linie);
  border-radius: var(--form-radius-voll);
  background: var(--farbe-flaeche);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--farbe-tinte-auszeichnung);
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hauptnav a:hover,
.inhalt-nav a:hover,
.inhalt-nav a[aria-current="page"] {
  border-color: var(--farbe-tinte-auszeichnung);
  background: var(--farbe-tinte-auszeichnung);
  color: var(--farbe-grund);
}

.inhalt-nav a[aria-current="page"] {
  font-weight: 700;
}

.anzeige.anzeige--produkte {
  font-size: clamp(34px, 8.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.produkt-verweis {
  margin-top: 20px;
}

.abschluss__produkte {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.abschluss__produkte a {
  min-height: 44px;
  align-content: center;
  text-underline-offset: 4px;
}

/* ---------------------------------------------------------------- Einstieg */

.einstieg {
  padding-top: 28px;
}

.anzeige .zeile {
  display: block;
  /* Platz fuer die Unterlaengen von p und g, die eine Zeilenhoehe von 0,9 sonst abschneidet. */
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.anzeige .zeile > span {
  display: inline-block;
}

.einstieg__unter {
  margin-top: 20px;
  max-width: 30ch;
  font-size: 18px;
}

.handlung {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 28px;
}

/* Die Buehne: Apples dunkle Flaeche fuer den einen Gegenstand. */
.buehne {
  position: relative;
  display: grid;
  place-items: center;
  height: 380px;
  margin-top: 36px;
  border-radius: var(--form-radius-behaelter);
  background: var(--farbe-tinte-auszeichnung);
  overflow: clip;
}

.buehne__notiz {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  font-family: var(--schrift-daten);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--farbe-matt);
}

.kippen {
  width: min(300px, 78%);
  perspective: 1100px;
  margin-top: -18px;
}

.schwebe,
.karte3d {
  position: relative;
  transform-style: preserve-3d;
}

.karte3d {
  aspect-ratio: 85.6 / 54;
  /* Ruhelage, wenn keine Bewegung laeuft: Vorderseite, leicht gekippt. */
  transform: rotateX(14deg) rotateY(-22deg) rotateZ(-5deg);
}

.karte3d__seite,
.karte3d__kante {
  position: absolute;
  inset: 0;
  border-radius: 3.7% / 5.9%;
}

.karte3d__seite {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  transform: translateZ(1.6px);
}

.karte3d__seite--hinten {
  transform: rotateY(180deg) translateZ(1.6px);
}

/* Vier Lagen zwischen Vorder- und Rueckseite: an der Kante werden sie zur Kartendicke. */
.karte3d__kante {
  background: #d9d2ca;
  transform: translateZ(calc((var(--z) - 2.5) * 0.8px));
}

.karte3d__glanz {
  position: absolute;
  inset: -60% -80%;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 49%,
    rgba(255, 255, 255, 0.04) 56%,
    transparent 62%
  );
  transform: translateX(-18%);
}

.nfc-karte--vorn .karte3d__glanz {
  background: linear-gradient(
    112deg,
    transparent 36%,
    rgba(17, 14, 12, 0.07) 48%,
    transparent 60%
  );
}

/* Die NFC-Karte selbst. Alle Masse haengen an ihrer Breite: der Innenabstand in
   Prozent (bezogen auf die Kartenbreite), alles darin in Containereinheiten. */
.nfc-karte {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 7.5% 8% 7%;
}

/* Vorder- und Rueckseite setzen alles absolut. Ohne Innenabstand ist die Inhaltsbreite
   die volle Kartenbreite, und nur dann stimmt 1cqw = 1 % der Karte. */
.nfc-karte--vorn,
.nfc-karte--hinten {
  padding: 0;
}

.nfc-karte--vorn {
  background: var(--farbe-grund);
  color: var(--farbe-tinte-auszeichnung);
}

.nfc-karte--hinten {
  justify-content: flex-end;
  /* Tinte wie die Buehne: nur so traegt der Akzent 3,44 : 1. Die Haarlinie haelt die Karte sichtbar. */
  background: var(--farbe-tinte-auszeichnung);
  color: var(--farbe-grund);
  box-shadow: inset 0 0 0 1px rgba(250, 247, 244, 0.22);
}

.nfc-karte__name {
  font-family: var(--schrift-auftritt);
  font-size: 8.6cqw;
  font-weight: 750;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: -0.015em;
}

.nfc-karte__rolle {
  margin-top: 2.2cqw;
  font-size: 4.6cqw;
  line-height: 1.3;
  color: var(--farbe-tinte);
}

.nfc-karte__fuss {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}

.nfc-karte__firma {
  font-size: 4.4cqw;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Das Funksymbol, um 90 Grad gedreht: die bekannten Wellen fuer kontaktlos. */
.nfc-karte__funk {
  width: 9cqw;
  height: 9cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
}

/* Gedruckte Karte, mit Kasim am 04.10. abgestimmt (Vorlage: entwurf/visitenkarte-druck.html,
   856 px breit). Alle Masse von dort in Kartenbreite umgerechnet: 1cqw = 8,56 px.
   Aussenabstand ueberall 6,54cqw (56 px), gemessen an der Tinte. */

/* Vorderseite: nur der Name in der Mitte. */
.nfc-karte__mitte {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding-bottom: 1.87cqw;
  text-align: center;
}

.nfc-karte__mitte .nfc-karte__name {
  font-size: 12.15cqw;
  font-weight: 780;
  line-height: 0.95;
  letter-spacing: -0.02em;
  translate: -0.47cqw 0;
}

/* Unten links Firma, Rolle, Mail mit gleichen Zeilenabstaenden. */
.nfc-karte__angaben {
  position: absolute;
  left: 6.54cqw;
  bottom: 6.13cqw;
  display: grid;
  justify-items: start;
}

.nfc-karte__angaben .nfc-karte__firma {
  font-family: var(--schrift-auftritt);
  font-size: 3.5cqw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.nfc-karte__angaben .nfc-karte__rolle {
  margin-top: 0.93cqw;
  font-size: 3.1cqw;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.nfc-karte__post {
  margin: 0.99cqw 0 0 -0.23cqw;
  font-family: var(--schrift-daten);
  font-size: 3.1cqw;
  font-weight: 500;
  line-height: 1;
  color: var(--farbe-tinte);
}

/* Das Antipp-Zeichen unten rechts, auf der Grundlinie der Mail. */
.nfc-karte--vorn > .nfc-karte__funk {
  position: absolute;
  right: 5.37cqw;
  bottom: 5.96cqw;
  width: 5.14cqw;
  height: 5.14cqw;
}

/* Rueckseite: grosse Wortmarke unten links, darunter der Hinweis. */
.nfc-karte__block {
  position: absolute;
  left: 6.31cqw;
  bottom: 5.96cqw;
}

.nfc-karte__marke {
  font-family: var(--schrift-auftritt);
  font-size: 17.52cqw;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.025em;
}

.nfc-karte__antippen {
  display: flex;
  align-items: center;
  gap: 0.93cqw;
  margin-top: 2.1cqw;
}

/* Der Akzent auf der Buehne: genau ein Element im ersten Bildschirm.
   Das gedrehte Zeichen hat innen Luft; der Rand zieht es buendig unter das T. */
.nfc-karte__antippen .nfc-karte__funk {
  width: 5.37cqw;
  height: 5.37cqw;
  margin-left: -0.82cqw;
  stroke: var(--farbe-akzent);
  stroke-width: 2.2;
}

.nfc-karte__antippen span {
  font-family: var(--schrift-daten);
  font-size: 2.8cqw;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--farbe-matt);
}

/* Nur noch auf der Team-Karte bei der Stempelkarte. */
.nfc-karte__hinweis {
  margin-top: 3cqw;
  font-family: var(--schrift-daten);
  font-size: 3.3cqw;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--farbe-matt);
}

/* ---------------------------------------------------------------- Pillenleiste */

.produkte {
  position: relative;
  margin-top: 48px;
}

.leiste {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  justify-content: center;
  height: 0;
  pointer-events: none;
}

.leiste__innen {
  display: inline-flex;
  gap: 2px;
  height: 44px;
  padding: 4px;
  border-radius: var(--form-radius-voll);
  background: rgba(250, 247, 244, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--farbe-linie);
  pointer-events: auto;
}

.leiste a {
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(6px, 2.2vw, 13px);
  border-radius: var(--form-radius-voll);
  color: var(--farbe-tinte);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 220ms ease, color 220ms ease;
}

.leiste a.ist-aktiv {
  background: var(--farbe-tinte-auszeichnung);
  color: var(--farbe-grund);
}

/* ---------------------------------------------------------------- Abschnitte */

.abschnitt {
  padding: 96px 0 88px;
  /* Was hier hineinfliegt (die kleine Karte), startet ausserhalb des Bildschirms.
     clip statt hidden: kein eigener Scrollbereich, die klebende Leiste bleibt unberuehrt. */
  overflow-x: clip;
}

.abschnitt--dunkel {
  background: var(--farbe-tinte-auszeichnung);
  color: var(--farbe-auf-dunkel-leise);
}

.abschnitt--dunkel .titel,
.abschnitt--dunkel .textlink {
  color: var(--farbe-grund);
}

.abschnitt--flaeche {
  background: var(--farbe-flaeche);
}

.raster-zwei {
  display: grid;
  gap: 40px;
}

/* ---------------------------------------------------------------- Szene: Karte ans Handy */

.szene {
  position: relative;
  height: 540px;
}

.telefon {
  position: absolute;
  top: 34px;
  left: calc(50% - 132px);
  width: 236px;
  aspect-ratio: 236 / 494;
  padding: 8px;
  border-radius: 40px;
  background: var(--farbe-tinte-auszeichnung);
}

.telefon__bildschirm {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--farbe-grund);
}

/* Der Grund von Kasims Karte, damit vor dem Erscheinen keine helle Luecke blitzt. */
.telefon__bildschirm--vk {
  background: #edf0ea;
}

.telefon__bildschirm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.telefon__insel {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 66px;
  height: 19px;
  border-radius: var(--form-radius-voll);
  background: var(--farbe-tinte-auszeichnung);
  transform: translateX(-50%);
}

.szene__karte {
  position: absolute;
  top: 0;
  left: calc(50% + 18px);
  z-index: 2;
  width: min(150px, 42%);
  aspect-ratio: 85.6 / 54;
  transform: translate(10px, -4px) rotate(-8deg);
}

.szene__karte .nfc-karte {
  /* Halt fuer die absolut gesetzten Teile; die 3D-Karte hat ihn schon ueber karte3d__seite. */
  position: relative;
  border-radius: 3.7% / 5.9%;
  box-shadow: inset 0 0 0 1px var(--farbe-linie), 0 3px 0 0 var(--farbe-linie);
}

.szene__welle {
  position: absolute;
  top: 46px;
  left: calc(50% + 52px);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--farbe-akzent);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4);
}

/* ---------------------------------------------------------------- Merkmale (Visitenkarte) */

.merkmale {
  display: grid;
}

.merkmal {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--farbe-linie);
}

.merkmal__sym {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--farbe-tinte-auszeichnung);
}

.merkmal__titel {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.007em;
  color: var(--farbe-tinte-auszeichnung);
}

.merkmal p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
}

.merkmale .textlink {
  margin-top: 8px;
  justify-self: start;
}

/* ---------------------------------------------------------------- Wallet und Pass */

.wallet {
  position: relative;
  width: 100%;
  max-width: 358px;
  margin-inline: auto;
  padding-top: 34px;
}

/* Zwei Paesse dahinter: so liegt eine Karte im Wallet, nicht allein auf dem Tisch. */
.wallet__dahinter {
  position: absolute;
  top: 0;
  height: 80px;
  border-radius: var(--form-radius-eingabe);
}

.wallet__dahinter--eins {
  left: 22px;
  right: 22px;
  background: #3a3430;
}

.wallet__dahinter--zwei {
  top: 16px;
  left: 11px;
  right: 11px;
  background: #57504a;
}

.pass {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--form-radius-eingabe);
  background: var(--betrieb);
  color: var(--farbe-tinte-auszeichnung);
}

.pass__kerbe {
  position: absolute;
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--farbe-tinte-auszeichnung);
}

.pass__kerbe--links {
  left: -7px;
}

.pass__kerbe--rechts {
  right: -7px;
}

.pass__kopf {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: start;
  gap: 12px;
}

.pass__logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--farbe-tinte-auszeichnung);
  color: var(--betrieb);
  font-family: var(--schrift-auftritt);
  font-size: 20px;
  font-weight: 800;
}

.pass__betrieb,
.pass__zaehler {
  display: grid;
  gap: 3px;
}

.pass__zaehler {
  text-align: right;
}

.pass__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pass__programm {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.pass__stand {
  font-family: var(--schrift-auftritt);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.pass__zeile {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pass__raster {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 14px;
  margin-top: 18px;
}

.stempel {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--farbe-tinte-auszeichnung);
  box-shadow: inset 0 0 0 1px rgba(17, 14, 12, 0.52);
}

.stempel svg {
  width: 48%;
  height: 48%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.52;
}

/* Der Abdruck: Tintenscheibe mit hartem Versatz, kein Weichzeichner (Kanon, Gesetz 1). */
.stempel--voll {
  background: var(--farbe-tinte-auszeichnung);
  color: var(--betrieb);
  box-shadow: 0 var(--form-stempel-versatz) 0 0 var(--betrieb-tief);
}

.stempel--voll svg {
  opacity: 1;
}

/* Gerade gestempelt: der Frischering, 3,5 px ausserhalb, 1,5 px stark. */
.stempel--frisch::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--farbe-akzent);
}

.pass__linie {
  display: block;
  height: 1px;
  margin-top: 26px;
  background: currentColor;
  opacity: 0.25;
}

.pass__mitglied {
  display: block;
  margin-top: 14px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.wallet__notiz {
  margin-top: 18px;
  font-family: var(--schrift-daten);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--farbe-matt);
}

/* ---------------------------------------------------------------- Kacheln (Stempelkarte) */

.kacheln {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 300px);
  gap: 12px;
  margin: 48px calc(-1 * var(--rand)) 0;
  padding: 0 var(--rand) 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rand);
  scrollbar-width: none;
}

.kacheln::-webkit-scrollbar {
  display: none;
}

.kachel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--form-radius-behaelter);
  background: var(--farbe-behaelter);
  scroll-snap-align: start;
}

.kachel .sym {
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
  color: var(--farbe-grund);
}

.teamkarte {
  display: none;
}

.nfc-karte--team {
  border-radius: 3.7% / 5.9%;
  background: var(--farbe-tinte-auszeichnung);
  color: var(--farbe-grund);
  box-shadow: inset 0 0 0 1px var(--farbe-linie-dunkel);
}

.nfc-karte--team .nfc-karte__hinweis {
  margin: 0 0 3cqw;
}

.nfc-karte--team .nfc-karte__firma {
  color: var(--farbe-auf-dunkel-leise);
  font-weight: 500;
}

.kachel__titel {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.011em;
  color: var(--farbe-grund);
}

.kachel p {
  font-size: 16px;
  line-height: 1.5;
}

.abschnitt--dunkel .textlink {
  margin-top: 28px;
}

/* ---------------------------------------------------------------- Speisekarte */

.szene--karte {
  height: 520px;
}

.szene--karte .telefon {
  top: 0;
  left: calc(50% - 118px);
}

.szene__notiz {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  font-family: var(--schrift-daten);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  color: var(--farbe-tinte);
}

.menue {
  padding: 46px 14px 16px;
  color: var(--farbe-tinte-auszeichnung);
}

.menue__kopf {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menue__logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--betrieb);
  font-family: var(--schrift-auftritt);
  font-size: 17px;
  font-weight: 800;
}

.menue__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.menue__art {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--farbe-tinte);
}

.menue__reiter {
  display: flex;
  gap: 5px;
  margin-top: 16px;
}

.menue__reiter span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 9px;
  border-radius: var(--form-radius-voll);
  box-shadow: inset 0 0 0 1px var(--farbe-linie);
  font-size: 12px;
  font-weight: 600;
  color: var(--farbe-tinte);
}

.menue__reiter .ist-aktiv {
  background: var(--farbe-tinte-auszeichnung);
  box-shadow: none;
  color: var(--farbe-grund);
}

.menue__liste {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.menue__liste li {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--farbe-linie);
}

.menue__gericht {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.menue__gericht small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--farbe-tinte);
}

.menue__preis {
  font-family: var(--schrift-daten);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* Der Preiswechsel: alter und neuer Preis liegen in derselben Zelle uebereinander. */
.menue__preis--wechsel {
  display: inline-grid;
  overflow: hidden;
}

.menue__preis--wechsel > span {
  grid-area: 1 / 1;
}

.menue__preis--wechsel .alt {
  visibility: hidden;
}

.menue__neu::before {
  content: '';
  position: absolute;
  inset: 0 -8px;
  z-index: -1;
  border-radius: 8px;
  background: var(--farbe-waesche);
  opacity: 0;
}

.menue__aus .menue__gericht,
.menue__aus .menue__preis {
  color: var(--farbe-tinte);
}

.menue__aus .menue__preis {
  text-decoration: line-through;
}

.menue__marke {
  display: flex;
  align-items: center;
  width: fit-content;
  height: 18px;
  margin-top: 4px;
  padding: 0 7px;
  border-radius: var(--form-radius-voll);
  background: var(--farbe-tinte-auszeichnung);
  color: var(--farbe-grund);
  font-size: 10.5px;
  font-weight: 600;
}

/* Zwei Felder nebeneinander (Speisekarte) */
.paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.paar__feld {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px 22px;
  border-radius: var(--form-radius-leiste);
  background: var(--farbe-grund);
}

.paar__feld .sym {
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  color: var(--farbe-tinte-auszeichnung);
}

.paar__feld .kachel__titel {
  font-size: 17px;
  letter-spacing: 0;
  color: var(--farbe-tinte-auszeichnung);
}

.paar__feld p {
  font-size: 16px;
  line-height: 1.45;
  hyphens: auto;
}

.raster-zwei__voll {
  margin-top: -16px;
}

/* ---------------------------------------------------------------- Grundsatz */

.grundsatz {
  padding: 104px 0 72px;
}

.grundsatz__satz {
  font-family: var(--schrift-auftritt);
  font-size: clamp(34px, 2.8vw + 23px, 58px);
  font-weight: 700;
  font-stretch: 92%;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--farbe-tinte-auszeichnung);
  max-width: 18ch;
}

.grundsatz__nach {
  margin-top: 28px;
  max-width: 34ch;
}

/* ---------------------------------------------------------------- Abschluss */

.abschluss-rahmen {
  padding-bottom: 24px;
}

/* Wise' dunkle Abschnittskarte mit heller Einlage. */
.abschluss {
  padding: 40px 24px 24px;
  border-radius: var(--form-radius-behaelter);
  background: var(--farbe-tinte-auszeichnung);
  color: var(--farbe-auf-dunkel-leise);
}

.abschluss .titel {
  color: var(--farbe-grund);
}

.einlage {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 18px;
  border-radius: var(--form-radius-eingabe);
  background: var(--farbe-grund);
  color: var(--farbe-tinte-auszeichnung);
}

.einlage__sym {
  width: 24px;
  height: 24px;
  color: var(--farbe-akzent);
}

.einlage__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.einlage__etikett {
  font-family: var(--schrift-daten);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--farbe-tinte);
}

.einlage__adresse {
  font-size: 17px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.einlage .knopf {
  grid-column: 1 / -1;
  margin-top: 4px;
}

/* ---------------------------------------------------------------- Rechtstexte */

.rechtstext {
  padding: 32px 0 24px;
}

.rechtstext > * {
  max-width: 64ch;
}

.rechtstext h2 {
  margin-top: 36px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.011em;
  color: var(--farbe-tinte-auszeichnung);
}

.rechtstext p {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.55;
  hyphens: auto;
}

.rechtstext a {
  color: var(--farbe-tinte-auszeichnung);
  text-underline-offset: 3px;
}

.rechtstext p.rechtstext__vorweg {
  margin-top: 20px;
  font-size: 19px;
}

.rechtstext p.rechtstext__stand {
  margin-top: 40px;
  font-size: 15px;
}

/* ---------------------------------------------------------------- Fuss */

.fuss {
  display: grid;
  gap: 10px;
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
}

.fuss__zeile {
  font-size: 16px;
}

.fuss__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 8px;
}

.fuss__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--farbe-tinte-auszeichnung);
  text-underline-offset: 4px;
}

.fuss__klein {
  font-size: 14px;
}

/* ================================================================ Bewegung
 *
 * Jede Bewegung hat einen Grund:
 *  - Einstieg: Hierarchie, die Schlagzeile kommt zuerst.
 *  - Karte dreht beim Scrollen: der Gegenstand zeigt beide Seiten.
 *  - Karte ans Handy: erklaert, was beim Antippen passiert.
 *  - Stempel setzen sich: erklaert den Zaehler.
 *  - Preis wechselt: erklaert „ohne Nachdruck“.
 *  - Woerter werden dunkel: der Grundsatz wird Satz fuer Satz gelesen.
 * Bei „Bewegung reduzieren“ steht alles sofort im Endzustand.
 */

@media (prefers-reduced-motion: no-preference) {
  /* Einstieg */
  .anzeige .zeile > span {
    animation: hoch 950ms var(--kurve-aus) both;
    animation-delay: calc(var(--i) * 90ms + 60ms);
  }

  .auftritt {
    animation: auf 900ms var(--kurve-aus) both;
    animation-delay: calc(var(--i) * 90ms + 140ms);
  }

  .schwebe {
    animation: schweben-ein 1400ms var(--kurve-aus) both;
    animation-delay: 380ms;
  }

  @keyframes hoch {
    from {
      transform: translateY(108%);
    }
  }

  @keyframes auf {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
  }

  @keyframes schweben-ein {
    from {
      opacity: 0;
      transform: translateY(46px) rotateX(24deg) rotateY(-48deg);
    }
  }

  /* Einblenden beim Scrollen */
  .js [data-zeigen] {
    opacity: 1;
    transform: none;
  }

  .js [data-zeigen].ist-da {
    opacity: 1;
    transform: none;
  }

  /* Karte ans Handy */
  .js [data-szene='tippen'] .szene__karte {
    opacity: 0;
    transform: translate(96px, 150px) rotate(10deg);
    transition: transform 900ms var(--kurve-aus), opacity 400ms ease;
  }

  .js [data-szene='tippen'].ist-dran .szene__karte {
    opacity: 1;
    transform: translate(0, 0) rotate(-9deg);
  }

  .js [data-szene='tippen'].ist-fertig .szene__karte {
    transform: translate(10px, -4px) rotate(-8deg);
    transition-duration: 700ms;
  }

  .js [data-szene='tippen'] .szene__seite {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    transition: opacity 650ms var(--kurve-aus), transform 800ms var(--kurve-aus);
    transition-delay: 1150ms;
  }

  .js [data-szene='tippen'].ist-dran .szene__seite {
    opacity: 1;
    transform: none;
  }

  .js [data-szene='tippen'].ist-dran .szene__welle {
    animation: welle 1100ms var(--kurve-aus) 760ms both;
  }

  .js [data-szene='tippen'].ist-dran .szene__welle--zwei {
    animation-delay: 940ms;
  }

  @keyframes welle {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.35);
    }
    20% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(1.25);
    }
  }

  /* Stempel setzen sich */
  .js [data-szene='stempeln'] .pass {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 600ms ease, transform 900ms var(--kurve-aus);
  }

  .js [data-szene='stempeln'].ist-dran .pass {
    opacity: 1;
    transform: none;
  }

  .js [data-szene='stempeln']:not(.ist-dran) .stempel--voll {
    background: transparent;
    color: var(--farbe-tinte-auszeichnung);
    box-shadow: inset 0 0 0 1px rgba(17, 14, 12, 0.52);
  }

  .js [data-szene='stempeln']:not(.ist-dran) .stempel--voll svg {
    opacity: 0.52;
  }

  .js [data-szene='stempeln'].ist-dran .stempel--voll {
    animation: abdruck 520ms var(--kurve-aus) both;
    animation-delay: calc(var(--n) * 420ms + 700ms);
  }

  .js [data-szene='stempeln'].ist-dran .stempel--voll svg {
    animation: abdruck-zeichen 520ms ease both;
    animation-delay: calc(var(--n) * 420ms + 700ms);
  }

  .js [data-szene='stempeln'] .stempel--frisch::after {
    opacity: 0;
    transform: scale(0.8);
  }

  .js [data-szene='stempeln'].ist-dran .stempel--frisch::after {
    animation: frisch 600ms var(--kurve-aus) both;
    animation-delay: calc(2 * 420ms + 700ms + 260ms);
  }

  @keyframes abdruck {
    0% {
      background: transparent;
      color: var(--farbe-tinte-auszeichnung);
      box-shadow: inset 0 0 0 1px rgba(17, 14, 12, 0.52);
      transform: scale(1);
    }
    35% {
      background: var(--farbe-tinte-auszeichnung);
      color: var(--betrieb);
      box-shadow: 0 0 0 0 var(--betrieb-tief);
      transform: scale(1.16);
    }
    100% {
      background: var(--farbe-tinte-auszeichnung);
      color: var(--betrieb);
      box-shadow: 0 var(--form-stempel-versatz) 0 0 var(--betrieb-tief);
      transform: scale(1);
    }
  }

  @keyframes abdruck-zeichen {
    0% {
      opacity: 0.52;
    }
    35%,
    100% {
      opacity: 1;
    }
  }

  @keyframes frisch {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Preis wechselt, ein Getraenk ist aus */
  .js [data-szene='aendern'] .menue__preis--wechsel .alt {
    visibility: visible;
    transition: transform 520ms var(--kurve-aus), opacity 300ms ease;
    transition-delay: 900ms;
  }

  .js [data-szene='aendern'] .menue__preis--wechsel .neu {
    opacity: 0;
    transform: translateY(100%);
    transition: transform 520ms var(--kurve-aus), opacity 300ms ease;
    transition-delay: 900ms;
  }

  .js [data-szene='aendern'].ist-dran .menue__preis--wechsel .alt {
    opacity: 0;
    transform: translateY(-100%);
  }

  .js [data-szene='aendern'].ist-dran .menue__preis--wechsel .neu {
    opacity: 1;
    transform: none;
  }

  .js [data-szene='aendern'].ist-dran .menue__neu::before {
    animation: waesche 1800ms ease 760ms both;
  }

  @keyframes waesche {
    0% {
      opacity: 0;
    }
    18%,
    60% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }

  .js [data-szene='aendern']:not(.ist-dran) .menue__aus .menue__gericht,
  .js [data-szene='aendern']:not(.ist-dran) .menue__aus .menue__preis {
    color: var(--farbe-tinte-auszeichnung);
    text-decoration-color: transparent;
  }

  .menue__aus .menue__gericht,
  .menue__aus .menue__preis {
    transition: color 400ms ease 1900ms, text-decoration-color 400ms ease 1900ms;
  }

  .js [data-szene='aendern'] .menue__marke {
    opacity: 0;
    transform: translateY(4px) scale(0.95);
    transition: opacity 400ms ease 1900ms, transform 500ms var(--kurve-aus) 1900ms;
  }

  .js [data-szene='aendern'].ist-dran .menue__marke {
    opacity: 1;
    transform: none;
  }

  /* Woerter werden beim Lesen dunkel */
  .js .grundsatz__satz .wort {
    color: var(--farbe-matt);
    transition: color 260ms ease;
  }

  .js .grundsatz__satz .wort.ist-gelesen {
    color: var(--farbe-tinte-auszeichnung);
  }
}

/* Die Karte dreht sich mit dem Scrollen. Wo der Browser eine Scroll-Zeitleiste
   kennt, rechnet er selbst; sonst schiebt seite.js die Zeit ueber --p. */
@keyframes karte-drehen {
  0% {
    transform: rotateX(14deg) rotateY(-22deg) rotateZ(-5deg);
  }
  45% {
    transform: rotateX(10deg) rotateY(62deg) rotateZ(-1deg);
  }
  100% {
    transform: rotateX(12deg) rotateY(188deg) rotateZ(4deg);
  }
}

@keyframes glanz {
  from {
    transform: translateX(-18%);
  }
  to {
    transform: translateX(22%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .karte3d {
      animation: karte-drehen linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px var(--drehweg);
    }

    .karte3d__glanz {
      animation: glanz linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px var(--drehweg);
    }
  }

  .scrub-js .karte3d {
    animation: karte-drehen 1s linear both paused;
    animation-delay: calc(var(--p, 0) * -1s);
  }

  .scrub-js .karte3d__glanz {
    animation: glanz 1s linear both paused;
    animation-delay: calc(var(--p, 0) * -1s);
  }
}

/* ================================================================ Breiter */

@media (min-width: 600px) {
  :root {
    --rand: 32px;
  }

  .buehne {
    height: 460px;
  }

  .kippen {
    width: 360px;
  }

  .paar__feld {
    padding: 24px;
  }
}

@media (min-width: 960px) {
  .kopf {
    height: 80px;
  }

  .einstieg {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 56px;
    padding-top: 24px;
  }

  .anzeige {
    font-size: clamp(64px, 6.4vw, 92px);
  }

  .einstieg__unter {
    font-size: 20px;
  }

  .buehne {
    height: 560px;
    margin-top: 0;
  }

  .kippen {
    width: 420px;
  }

  :root {
    --drehweg: 42vh;
  }

  .produkte {
    margin-top: 72px;
  }

  .abschnitt {
    padding: 136px 0 120px;
  }

  .raster-zwei {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 80px;
    row-gap: 40px;
    align-items: start;
  }

  .raster-zwei > .abschnitt__kopf {
    grid-column: 1;
    grid-row: 1;
  }

  .raster-zwei > .szene,
  .raster-zwei > .wallet {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .raster-zwei > .merkmale,
  .raster-zwei > .paar,
  .raster-zwei > .raster-zwei__voll {
    grid-column: 1;
  }

  .raster-zwei--gedreht > .abschnitt__kopf {
    grid-column: 2;
  }

  .raster-zwei--gedreht > .wallet {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .raster-zwei__voll {
    margin-top: 0;
  }

  .lead {
    font-size: 20px;
  }

  /* Drei Kacheln als Bento: eine grosse links, zwei gestapelt rechts. */
  .kacheln {
    grid-auto-flow: row;
    grid-template-columns: 1.2fr 1fr;
    grid-auto-columns: auto;
    margin: 80px 0 0;
    padding: 0;
    overflow: visible;
  }

  .kachel:first-child {
    grid-row: span 2;
    justify-content: flex-end;
    min-height: 320px;
  }

  .teamkarte {
    display: block;
    width: min(300px, 70%);
    aspect-ratio: 85.6 / 54;
    margin: 8px 0 auto 4px;
    transform: rotate(-4deg);
  }

  .grundsatz {
    padding: 160px 0 96px;
  }

  .abschluss {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    column-gap: 64px;
    padding: 64px;
  }

  .abschluss .lead {
    grid-column: 1;
  }

  .abschluss__produkte {
    grid-column: 1;
  }

  .einlage {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: 24px 1fr auto;
    margin-top: 0;
    padding: 20px 20px 20px 22px;
  }

  .einlage .knopf {
    grid-column: auto;
    margin-top: 0;
  }

  .fuss {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 32px;
  }

  .fuss__links {
    margin-top: 0;
  }

  .fuss__klein {
    grid-column: 1 / -1;
  }
}
