/*
 * MY MARKET – Homepage mymarketapp.de
 * 2026-10-04 erste Fassung, 2026-10-05 neu im Stil der Apple-Produktseiten:
 * große Überschriften, App auf iPhones, Bildkacheln, ruhige Einblendungen.
 *
 * Farben 1:1 aus der App (constants/farben.ts + global.css, Dunkel-Modus),
 * MY MARKET Grün als einziger Akzent.
 * Keine externen Schriften (Google Fonts würden die IP an Google senden):
 * die Systemschrift ist auf iPhone und Mac Apples SF Pro.
 * Kein JavaScript, keine Cookies. Die Einblendungen beim Scrollen laufen
 * nur per CSS (animation-timeline) und nur, wenn „Bewegung reduzieren“ aus
 * ist – ohne Unterstützung im Browser ist einfach alles sofort sichtbar.
 */
:root {
  color-scheme: dark;
  --bg: #081013;
  --surface: #161d20;
  --surface2: #1e2628;
  --border: #2a3134;
  --text: #efefef;
  --text2: #949494;
  --text-hell: #d6dbdb;
  --primary: #65cb00;
  --primary-hover: #74dc0f;
  --warn: #f5c542;
  --zu: #8a9497;
  --linie: rgba(255, 255, 255, 0.08);
  --radius: 28px;
  --breite: 1120px;
  --kurve: cubic-bezier(0.22, 1, 0.36, 1);
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-gross: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sprungziele nicht unter der festen Kopfleiste verstecken */
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.springen {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--primary);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 60;
}

.springen:focus {
  top: 12px;
}

.innen {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 20px;
}

.gruen {
  color: var(--primary);
}

/* ---------- Typografie (eng gesetzte große Schrift, wie bei Apple) ---------- */
h1,
h2,
h3 {
  font-family: var(--schrift-gross);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 1.15rem + 6.4vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.024em;
  margin: 0 0 16px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  letter-spacing: 0;
  margin: 0 0 12px;
}

.lead {
  font-size: clamp(1.1875rem, 1rem + 0.75vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.014em;
  color: var(--text2);
  font-weight: 500;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Kopfleiste: durchscheinend, Inhalt läuft darunter durch ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 16, 19, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--linie);
}

.nav-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  min-height: 44px;
  white-space: nowrap;
}

.marke img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.marke b {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  color: rgba(239, 239, 239, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color 200ms ease;
}

.nav-links a:hover {
  color: #fff;
}

/* ---------- Bühne ---------- */
.buehne {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 20px 0;
  text-align: center;
}

/* Grünes Leuchten hinter den iPhones */
.buehne::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(1100px, 150vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(101, 203, 0, 0.26), rgba(101, 203, 0, 0.07) 55%, rgba(101, 203, 0, 0) 75%);
  pointer-events: none;
}

/* Unten laufen die iPhones weich in den Hintergrund aus */
.buehne::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(180deg, rgba(8, 16, 19, 0) 0%, var(--bg) 92%);
  z-index: 3;
  pointer-events: none;
}

.buehne-text {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.buehne .lead {
  max-width: 660px;
  margin: 0 auto;
}

.aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 32px;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--bg);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background-color 200ms ease, transform 120ms ease-out;
}

.knopf:hover {
  background: var(--primary-hover);
}

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

.pfeil-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.pfeil-link svg {
  width: 17px;
  height: 17px;
  transition: transform 200ms var(--kurve);
}

.pfeil-link:hover {
  text-decoration: underline;
}

.pfeil-link:hover svg {
  transform: translateX(2px);
}

/* ---------- iPhone-Rahmen (das App-Bild liegt darin) ---------- */
.handy {
  --w: 300px;
  position: relative;
  flex: none;
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.158);
  background: linear-gradient(150deg, #4a5257 0%, #22282b 22%, #15191b 50%, #2b3236 78%, #111416 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 50px 90px -30px rgba(0, 0, 0, 0.85);
}

.handy img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--w) * 0.128);
  background: #000;
}

/* Seitentasten links (Aktion, laut, leise) und rechts (Seite) */
.handy::before,
.handy::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #2b3236;
}

.handy::before {
  left: -2px;
  top: 17%;
  height: 4%;
  box-shadow: 0 calc(var(--w) * 0.15) 0 #2b3236, 0 calc(var(--w) * 0.3) 0 #2b3236;
}

.handy::after {
  right: -2px;
  top: 25%;
  height: 10%;
}

.handys {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: clamp(48px, 7vw, 80px) auto 0;
  /* Die iPhones stehen unten über den Rand – die Bühne schneidet sie ab */
  margin-bottom: calc(clamp(250px, 27vw, 330px) * -0.62);
}

.handy-mitte {
  --w: clamp(250px, 27vw, 330px);
  z-index: 2;
}

.handy-seite {
  --w: clamp(205px, 22vw, 270px);
  z-index: 1;
  margin-bottom: clamp(18px, 3vw, 40px);
  opacity: 0.92;
}

.handy-seite:first-child {
  margin-right: calc(var(--w) * -0.16);
}

.handy-seite:last-child {
  margin-left: calc(var(--w) * -0.16);
}

/* ---------- Aussage ---------- */
.aussage-abschnitt {
  padding: clamp(96px, 11vw, 150px) 20px clamp(40px, 7vw, 88px);
}

.aussage {
  max-width: 980px;
  margin: 0 auto;
  font-family: var(--schrift-gross);
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text2);
  text-align: center;
  text-wrap: balance;
}

.aussage strong {
  color: var(--text);
  font-weight: 700;
}

/* ---------- Abschnitte ---------- */
.abschnitt {
  padding: clamp(72px, 10vw, 128px) 0;
}

.kopf-mitte {
  max-width: 820px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.kopf-mitte h2 {
  margin-bottom: 0;
}

/* ---------- Kacheln ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.kachel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 3vw, 36px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
}

.kachel h3 {
  font-size: clamp(1.625rem, 1.15rem + 1.3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.kachel p {
  margin: 0;
  color: var(--text2);
  max-width: 36ch;
}

.kachel-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 700ms var(--kurve);
}

.kachel-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 10, 12, 0) 30%, rgba(5, 10, 12, 0.5) 58%, rgba(5, 10, 12, 0.94) 100%);
}

.kachel-foto p {
  color: rgba(239, 239, 239, 0.88);
}

.kachel-symbol {
  justify-content: space-between;
  min-height: 340px;
  background:
    radial-gradient(110% 60% at 15% 0%, rgba(101, 203, 0, 0.1), rgba(101, 203, 0, 0) 60%),
    var(--surface);
}

.symbol-gross {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: rgba(101, 203, 0, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.symbol-gross svg {
  width: 46px;
  height: 46px;
}

/* Kachel „Geöffnet“: die drei Zustände aus der App */
.kachel-status {
  justify-content: space-between;
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(101, 203, 0, 0.16), rgba(101, 203, 0, 0) 62%),
    var(--surface);
}

.status-stapel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.status-stapel li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.125rem;
  border: 1px solid;
}

.status-stapel .punkt {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.status-offen {
  color: var(--primary);
  background: rgba(101, 203, 0, 0.14);
  border-color: rgba(101, 203, 0, 0.42);
  box-shadow: 0 0 36px rgba(101, 203, 0, 0.22);
}

.status-offen .punkt {
  box-shadow: 0 0 10px rgba(101, 203, 0, 0.9);
}

.status-bald {
  color: var(--warn);
  background: rgba(245, 197, 66, 0.1);
  border-color: rgba(245, 197, 66, 0.32);
}

.status-zu {
  color: var(--zu);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ---------- Region ---------- */
.region {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(480px, 82vh, 780px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px clamp(56px, 9vw, 112px);
  text-align: center;
}

.region-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.region::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(8, 16, 19, 0.1) 16%, rgba(8, 16, 19, 0.55) 40%, rgba(8, 16, 19, 0.92) 64%, var(--bg) 100%);
}

.region-text {
  max-width: 900px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.region .eyebrow {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.region h2 {
  margin-bottom: 14px;
}

.region .lead {
  color: rgba(239, 239, 239, 0.85);
}

/* ---------- Für Anbieter ---------- */
.zwei-spalten {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.anbieter-text .lead {
  margin-bottom: 8px;
}

.handy-einzel {
  --w: clamp(250px, 30vw, 330px);
  margin: 0 auto;
}

.haken-liste {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.haken-liste li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-hell);
}

.haken-liste svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--primary);
}

.schritte {
  list-style: none;
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.schritte li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}

.zahl {
  display: block;
  font-family: var(--schrift-gross);
  font-size: clamp(3.25rem, 2.4rem + 2.6vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  background: linear-gradient(160deg, #a2e066 0%, var(--primary) 45%, #3d7a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.schritte h3 {
  font-size: 1.5rem;
  letter-spacing: -0.018em;
  margin: 0 0 6px;
}

.schritte p {
  margin: 0;
  color: var(--text2);
}

/* ---------- Kontakt ---------- */
.hilfe {
  display: grid;
  gap: 16px;
}

.kachel-text-only {
  min-height: 0;
  justify-content: flex-start;
  gap: 0;
}

.kachel-text-only h3 {
  margin-bottom: 12px;
}

.kachel-text-only p {
  max-width: 54ch;
}

.kachel-text-only p + p,
.kachel-text-only .mail + p {
  margin-top: 12px;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  font-family: var(--schrift-gross);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mail svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.mail:hover {
  text-decoration: underline;
}

/* ---------- Schluss ---------- */
.schluss {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 20px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.schluss::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: 700px;
  max-width: 140vw;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(101, 203, 0, 0.14), rgba(101, 203, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.app-symbol {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  margin: 0 auto 28px;
  box-shadow: 0 24px 60px -16px rgba(101, 203, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.schluss h2 {
  margin-bottom: 12px;
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.recht {
  max-width: 72ch;
  padding: clamp(40px, 6vw, 72px) 20px 80px;
  margin: 0 auto;
}

.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}

.zurueck:hover {
  text-decoration: underline;
}

.recht h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem);
  margin: 16px 0 6px;
}

.stand {
  color: var(--text2);
  margin: 0 0 28px;
  font-size: 0.9375rem;
}

.recht h2 {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 40px 0 10px;
}

.recht p,
.recht li {
  color: var(--text-hell);
}

.recht p {
  margin: 0 0 14px;
}

.recht ul {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

.recht li {
  margin-bottom: 6px;
}

.recht address {
  font-style: normal;
}

.entwurf {
  display: flex;
  gap: 10px;
  border: 1px solid rgba(245, 197, 66, 0.4);
  background: rgba(245, 197, 66, 0.1);
  border-radius: 16px;
  padding: 12px 16px;
  color: var(--text-hell);
  font-size: 0.9375rem;
  margin: 8px 0 28px;
}

.entwurf svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--warn);
  margin-top: 3px;
}

.offen {
  color: var(--warn);
}

/* ---------- Fußzeile ---------- */
.fuss {
  border-top: 1px solid var(--linie);
  padding: 28px 0 40px;
  color: var(--text2);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.fuss-zeile {
  margin: 0 0 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--linie);
}

.fuss-unten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}

.fuss nav {
  display: flex;
  flex-wrap: wrap;
}

.fuss nav a {
  color: var(--text2);
  text-decoration: none;
  padding: 0 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.fuss nav a:first-child {
  padding-left: 0;
}

.fuss nav a + a {
  border-left: 1px solid var(--border);
}

.fuss nav a:hover {
  color: var(--text);
}

/* Handy: Symbol-Kacheln so hoch wie ihr Inhalt – vorher 340 px Mindesthöhe
   mit viel Leere zwischen Symbol und Text (Playwright-Prüfung 17.10.2026). */
@media (max-width: 699px) {
  .kachel-symbol {
    min-height: 0;
    justify-content: flex-start;
    gap: 22px;
  }
}

/* ---------- Advent (saisonal) ---------- */
.advent h2 {
  margin-bottom: 14px;
}

.advent .kopf-mitte .lead {
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

/* Die vier Adventssonntage im Stil des Datums-Abzeichens aus der App
   (Tag groß, Monat grün in Großbuchstaben). */
.advent-tage {
  list-style: none;
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px);
  max-width: 640px;
}

.advent-tage li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(14px, 2.4vw, 22px) 6px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.advent-tage .tag {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.advent-tage .monat {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.advent-tage .name {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text2);
  white-space: nowrap;
}

/* ---------- größere Bildschirme ---------- */
@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .kachel-breit,
  .kachel-letzte {
    grid-column: span 2;
  }

  .kachel-letzte {
    min-height: 300px;
  }

  .hilfe,
  .schritte {
    grid-template-columns: repeat(2, 1fr);
  }

  .schritte {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 440px;
  }

  .kachel,
  .kachel-letzte {
    min-height: 0;
  }

  .kachel-letzte {
    grid-column: span 1;
  }

  .zwei-spalten {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

/* Kachel-Fotos zoomen bei Maus-Berührung ganz leicht heran */
@media (hover: hover) {
  .kachel-foto:hover img {
    transform: scale(1.04);
  }
}

/* Unter 520 px reicht der Platz neben dem Schriftzug nicht für drei Links –
   dort bleibt nur „Kontakt“. */
@media (max-width: 519px) {
  .nav-links a.nur-breit {
    display: none;
  }
}

/* ---------- Bewegung (nur wenn „Bewegung reduzieren“ aus ist) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Bühne baut sich beim Laden einmal auf */
  .buehne-text > * {
    animation: auftauchen 900ms var(--kurve) both;
  }

  .buehne-text > :nth-child(2) {
    animation-delay: 70ms;
  }

  .buehne-text > :nth-child(3) {
    animation-delay: 140ms;
  }

  .buehne-text > :nth-child(4) {
    animation-delay: 210ms;
  }

  .handys {
    animation: aufsteigen 1200ms var(--kurve) 250ms both;
  }

  /* Einblenden beim Scrollen – nur wo der Browser das per CSS kann */
  @supports (animation-timeline: view()) {
    .erscheinen {
      animation: erscheinen linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }

    /* Ganz unten kann die Seite nicht weit genug scrollen, damit „cover 30 %“
       erreicht wird – dort endet die Einblendung, sobald alles im Bild ist. */
    .schluss .erscheinen {
      animation-range: entry 0% entry 100%;
    }

    .region-bild {
      animation: region-zoom linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes auftauchen {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes aufsteigen {
  from {
    opacity: 0;
    transform: translateY(80px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes erscheinen {
  from {
    opacity: 0;
    transform: translateY(48px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes region-zoom {
  from {
    transform: scale(1.12);
  }

  to {
    transform: scale(1);
  }
}

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

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

/* Durchsichtigkeit reduzieren: Kopfleiste deckend */
@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Mehr Kontrast: graue Texte heller, Kacheln mit Rand */
@media (prefers-contrast: more) {
  :root {
    --text2: #b9b9b9;
  }

  .kachel,
  .schritte li {
    outline: 1px solid rgba(255, 255, 255, 0.35);
  }
}
