/* Z & M GbR. Eine Datei für alle Seiten: body.firma (Unternehmen), body.drei (3,0), .recht (Rechtstexte).
   Scrollanimationen: skript.js setzt transform und opacity direkt am Element und .aktiv auf Schritte.
   Nichts hier darf pro Bild neu gezeichnet werden: keine Filter, kein backdrop-filter, kein mix-blend-mode auf Bewegtem. */

@font-face {
  font-family: "Geist";
  src: url("/schriften/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/schriften/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --papier: #15191F;
  --flaeche: #1C2128;
  --tinte: #F2F4F6;
  --schiefer: #9AA3AF;
  --linie: #2A313B;

  --nacht: #000000;
  --tafel: #101016;
  --tafel-rand: rgba(255, 255, 255, 0.09);
  --leise-hell: rgba(255, 255, 255, 0.64);
  --cyan: #1ABFFF;
  --indigo: #5959FF;
  --violett: #CC40FF;
  --pink: #FF4DB3;
  --neon: linear-gradient(90deg, var(--cyan), var(--indigo) 33%, var(--violett) 66%, var(--pink));

  --schrift: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rund: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  --rand: 24px;
  --sanft: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
a, button, summary { touch-action: manipulation; }
button, summary, .knopf { -webkit-user-select: none; user-select: none; }

.rahmen { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--rand); }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.springen { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--tinte); color: var(--papier); }
.springen:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

/* Einblenden beim Scrollen (nur mit JavaScript, sonst sofort sichtbar) */
.js .zeigen { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.8s var(--sanft), transform 0.8s var(--sanft); }
.js .zeigen.da { opacity: 1; transform: none; }
.js .gruppen .zeigen:nth-child(2) { transition-delay: 0.12s; }
.js .gruppen .zeigen:nth-child(3) { transition-delay: 0.24s; }
.js .paar .zeigen:nth-child(2) { transition-delay: 0.12s; }

/* Kopf und Fuß -------------------------------------------------------- */

.kopf { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.kopf-innen { display: flex; align-items: center; gap: 32px; height: 60px; }
.navi { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.navi a, .fuss a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .navi a:hover, .fuss a:hover,         .knopf-bald:hover { background: inherit; }
  .knopf-hell.knopf-bald:hover { background: #fff; }
    }
.marke { display: flex; align-items: center; text-decoration: none; }

/* Klappmenü „Apps“ im Kopf, öffnet nach unten rechts aus dem Knopf heraus */
.menue { position: relative; }
.menue summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.menue summary::-webkit-details-marker { display: none; }
.menue summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.menue-pfeil { width: 10px; height: 6px; transition: transform 200ms var(--sanft); }
.menue[open] .menue-pfeil { transform: rotate(180deg); }
.menue-liste {
  position: absolute; right: -12px; top: calc(100% + 14px); width: max-content; min-width: min(260px, calc(100vw - 32px)); padding: 6px;
  border-radius: 16px; background: #1C2128; border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  transform-origin: top right;
}
.menue[open] .menue-liste { animation: menue-auf 180ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes menue-auf { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.menue-app { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 11px; }
.navi .menue-app:hover { text-decoration: none; background: rgba(255, 255, 255, 0.07); }
.menue-app img { border-radius: 9px; flex: none; }
.menue-app strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.2; }
.menue-app small { display: block; font-size: 13px; color: var(--schiefer); }
.logo { display: block; height: 26px; width: auto; overflow: visible; }

.fuss { padding: 48px 0 56px; font-size: 14px; }
.fuss-innen { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.fuss-logo .logo { height: 22px; }
.fuss-c { grid-column: 1 / -1; margin: 0; opacity: 0.6; }

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

.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.knoepfe-mitte { justify-content: center; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.12s var(--sanft);
}
.knopf-dunkel { background: var(--tinte); color: var(--papier); }
.knopf-dunkel:hover { background: #D9DEE4; }
.knopf-hell { background: #fff; color: #000; }
.knopf-hell:hover { background: #E6E8EC; }
.knopf-rand { border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.knopf-rand:hover { border-color: currentColor; }
.knopf-bald { opacity: 0.5; cursor: default; }
.knopf:active:not(.knopf-bald) { transform: scale(0.97); }

/* Klebende Bühnen: der Abschnitt ist höher als der Bildschirm, der Inhalt bleibt stehen ------- */

.klebend { position: sticky; top: 0; height: 100svh; }

/* iPhone 17 Pro, nachgezeichnet: Aluminiumrahmen, schmaler schwarzer Rand, Dynamic Island, Tasten.
   Maße in cqw = Prozent der Gerätebreite, damit es in jeder Größe gleich aussieht.
   Andere Gerätefarben: Deep Blue  linear-gradient(135deg, #3A4A66, #222C40 35%, #46587A 55%, #1E2738)
                        Cosmic Orange linear-gradient(135deg, #F08A4B, #C9581F 35%, #F59A5E 55%, #B44D1A) */
.handy {
  margin: 0; container-type: inline-size;
  --rahmen: linear-gradient(135deg, #E9EBEE 0%, #B7BCC3 30%, #F4F5F7 52%, #A6ACB4 78%, #D9DCE0 100%);
  --schatten: 0 24px 40px -24px rgba(0, 0, 0, 0.85);
}
.geraet {
  position: relative; padding: 1.25cqw; border-radius: 17.6cqw; background: var(--rahmen);
  box-shadow: inset 0 0 0 0.3cqw rgba(255, 255, 255, 0.6), inset 0 0 0 0.7cqw rgba(0, 0, 0, 0.12), var(--schatten);
}
.taste { position: absolute; width: 1cqw; border-radius: 1cqw; background: var(--rahmen); box-shadow: inset 0 0 0 0.2cqw rgba(0, 0, 0, 0.18); }
.taste-aktion { left: -0.75cqw; top: 18%; height: 4.6%; }
.taste-lauter { left: -0.75cqw; top: 26%; height: 7.4%; }
.taste-leiser { left: -0.75cqw; top: 35%; height: 7.4%; }
.taste-seite { right: -0.75cqw; top: 27%; height: 11%; }
.taste-kamera { right: -0.45cqw; top: 55%; height: 7%; width: 0.7cqw; background: #4A4F57; }
.bildschirm { position: relative; border: 2.4cqw solid #000; border-radius: 16.3cqw; overflow: hidden; background: #000; }
.handy img { display: block; width: 100%; }
.insel { position: absolute; top: 2.3cqw; left: 50%; translate: -50% 0; width: 26.5cqw; height: 7.8cqw; border-radius: 99px; background: #000; }
.handy-stapel img + img { position: absolute; inset: 0; }
.handy-stapel img { transition: opacity 0.35s linear; }
.js .handy-stapel img[data-schritt]:not(.aktiv) { opacity: 0; }
.js .handy-stapel img[data-schritt="0"]:not(.aktiv) { opacity: 1; }   /* das erste Bild bleibt als Untergrund */

.buehne { height: calc(var(--schritte) * 60svh + 40svh); }
.buehne-innen { display: grid; grid-template-columns: 1fr 340px; align-items: center; gap: 64px; }
.buehne .handy {
  width: 100%; max-width: min(340px, calc((100svh - 140px) * 0.46)); justify-self: center; margin-top: 60px;
}
.schritte { display: grid; }
.schritt { grid-area: 1 / 1; align-self: center; }
.schritt h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.045em; }
.schritt p { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--schiefer); margin-top: 18px; max-width: 26ch; }
.js .schritt { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 0.6s var(--sanft), transform 0.6s var(--sanft); pointer-events: none; }
.js .schritt.aktiv { opacity: 1; transform: none; pointer-events: auto; }
.app-icon { border-radius: 22px; margin-bottom: 24px; display: block; }

/* Unternehmen ------------------------------------------------------------ */

/* Hintergrund: dunkle Metallwand mit Licht von oben, wie im Logobild */
body.firma { background: #0F1217; color: var(--tinte); }
.firma .kopf { background: #0F1217; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.firma :focus-visible { outline-color: var(--tinte); }
.firma .fuss { border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--schiefer); position: relative; z-index: 1; background: #0F1217; }
.firma main { position: relative; z-index: 1; }

/* Das 3D Logo ist vorab als Video gerendert: Das Gerät spielt es nur ab und rechnet nichts.
   Der Startbereich scrollt ganz normal mit, nichts liegt fest dahinter und nichts wird beim Scrollen überblendet.
   Unter dem Video liegt ein Standbild, damit sofort etwas zu sehen ist, auch im Stromsparmodus. */
.z-held {
  position: relative; overflow: hidden; height: calc(100svh - 61px); min-height: 480px;
  display: grid; align-content: end; justify-items: center; text-align: center;
  padding: 0 var(--rand) max(9svh, 40px);
}
.held-bild img, .held-video {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%;
}
.held-video { opacity: 0; transition: opacity 0.5s linear; }
.held-video.laeuft { opacity: 1; }
.z-held::after {   /* weicher Übergang in die Seitenfarbe */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(180deg, rgba(15, 18, 23, 0), #0F1217);
}
.held-text { position: relative; z-index: 1; display: grid; justify-items: center; }
.held-zeile {
  font-size: clamp(1.7rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1;
  margin: 0 0 24px; max-width: 20ch; color: #fff; text-wrap: balance;
}
.js .held-zeile { animation: hoch 1s 0.3s var(--sanft) backwards; }
.js .held-text .knopf { animation: hoch 1s 0.45s var(--sanft) backwards; }
@keyframes hoch { from { opacity: 0; translate: 0 20px; } }

.naechste { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-block: 40px 160px; text-align: center; }
.naechste p { font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--schiefer); margin: 0; letter-spacing: -0.02em; }
.platz { width: 72px; height: 72px; border-radius: 17px; border: 1.5px dashed rgba(255, 255, 255, 0.2); }

/* Kontakt ---------------------------------------------------------------- */

.kontakt { padding-block: 40px 140px; max-width: 720px; }
.kontakt-kopf { text-align: center; margin-bottom: 40px; }
.kontakt h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.045em; line-height: 1.02; }
.kontakt-kopf p { color: var(--schiefer); font-size: clamp(1.1rem, 1.8vw, 1.35rem); margin: 14px 0 0; }

.formular, .form-erfolg {
  padding: clamp(20px, 4vw, 36px); border-radius: 28px;
  background: #171B21; border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -50px #000;
}
.formular[hidden], .form-erfolg[hidden] { display: none; }
.form-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feld { display: block; margin-bottom: 16px; min-width: 0; }
.feld > span { display: block; font-size: 14px; font-weight: 500; color: #C3C9D1; margin-bottom: 7px; }
.feld input, .feld select, .feld textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 15px;
  font: inherit; font-size: 16px; color: var(--tinte); caret-color: #fff;
  background: #0F1217; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 13px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
.feld select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239AA3AF' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 11px 7px;
}
.feld textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  border-color: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
.feld [aria-invalid="true"] { border-color: #F2788A; }
.feld-fehler { display: block; font-size: 14px; color: #F7A3AF; margin-top: 6px; }
.feld-fehler:empty { display: none; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-unten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 6px; }
.form-hinweis { font-size: 14px; color: var(--schiefer); margin: 0; max-width: 34ch; }
.form-hinweis a { text-underline-offset: 3px; }
.formular button {
  border: 0; cursor: pointer; font-family: inherit; min-width: 170px;
  background: var(--tinte); color: var(--papier);
}
.formular button:disabled { opacity: 0.6; cursor: default; }
.form-meldung { color: #F7A3AF; font-size: 15px; margin: 14px 0 0; }
.form-meldung:empty { display: none; }
.form-erfolg { text-align: center; padding-block: 48px; outline: none; }
.form-erfolg svg { width: 48px; height: 48px; margin: 0 auto 16px; display: block; }
.form-erfolg h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.form-erfolg p { color: var(--schiefer); margin: 8px 0 0; }
.direkt { text-align: center; margin: 24px 0 0; color: var(--schiefer); font-size: 15px; }
.direkt a { color: var(--tinte); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .formular button:not(:disabled):hover { background: #D9DEE4; }
}

/* 3,0 -------------------------------------------------------------------- */

body.drei { background: var(--nacht); color: #fff; --schiefer: var(--leise-hell); }
.drei .kopf { background: #000; border-bottom: 1px solid var(--tafel-rand); }
.drei .fuss { border-top: 1px solid var(--tafel-rand); color: var(--leise-hell); }
.drei :focus-visible { outline-color: var(--cyan); }
.drei h2, .drei h3 { font-family: var(--rund); font-weight: 800; letter-spacing: -0.02em; }
.drei .handy { --schatten: 0 24px 40px -24px rgba(89, 89, 255, 0.6); }

.zurueck { opacity: 0.7; }
.zurueck:hover { opacity: 1; }
.app-marke { display: flex; align-items: center; gap: 10px; font-family: var(--rund); font-weight: 900; font-size: 20px; text-decoration: none; }
.app-marke img { border-radius: 7px; }

.drei-held {
  position: relative; overflow: hidden; text-align: center;
  min-height: calc(100svh - 60px); display: grid; align-content: center;
  padding: 16px var(--rand) 120px;
}
.neon { position: relative; width: min(100%, 760px); aspect-ratio: 1000 / 640; margin: 0 auto; }
.neon img, .neon video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.neon video { opacity: 0; transition: opacity 0.4s linear; }
.neon video.laeuft { opacity: 1; }
.js .neon { animation: einblenden 0.8s var(--sanft) backwards; }
@keyframes einblenden { from { opacity: 0; } }

.drei-unter { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; margin: 0 auto; }

/* Figuren weichen beim Scrollen zur Seite */
.figur { position: absolute; pointer-events: none; transition: transform 0.7s var(--sanft); }
.drei-held.weg .figur-links { transform: translate3d(-120px, 0, 0) rotate(-14deg); }
.drei-held.weg .figur-rechts { transform: translate3d(120px, -40px, 0) rotate(15deg); }
.figur-links {
  width: clamp(150px, 19vw, 260px); left: max(0px, calc(50% - 600px)); bottom: -10px;
  transform: rotate(-4deg);
}
.figur-rechts {
  width: clamp(140px, 17vw, 230px); right: max(8px, calc(50% - 580px)); top: 90px;
  transform: rotate(5deg);
}
.js .figur-links { animation: rein-links 1.2s 0.3s var(--sanft) backwards; }
.js .figur-rechts { animation: rein-rechts 1.2s 0.4s var(--sanft) backwards; }
@keyframes rein-links { from { opacity: 0; translate: -80px 40px; } }
@keyframes rein-rechts { from { opacity: 0; translate: 80px -40px; } }

.drei-abschnitt { padding-block: 120px; }
.drei-abschnitt > h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; text-align: center; margin-bottom: 64px; }
.drei-abschnitt p { color: var(--leise-hell); }

.gruppen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gruppe { padding: 32px; border-radius: 28px; background: var(--tafel); border: 1px solid var(--tafel-rand); position: relative; overflow: hidden; }
.gruppe::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; }
.gruppe:nth-child(1)::before { background: linear-gradient(90deg, var(--cyan), var(--indigo)); }
.gruppe:nth-child(2)::before { background: linear-gradient(90deg, var(--indigo), var(--violett)); }
.gruppe:nth-child(3)::before { background: linear-gradient(90deg, var(--violett), var(--pink)); }
.gruppe h3 { font-size: 1.05rem; margin-bottom: 20px; color: var(--leise-hell); font-weight: 700; }
.gruppe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gruppe li { font-family: var(--rund); font-weight: 800; font-size: 1.45rem; line-height: 1.25; }

/* Bildstreifen läuft beim Scrollen seitlich mit */
.streifen { overflow: hidden; padding-block: 24px 96px; }
.streifen-innen {
  display: flex; gap: 28px; width: max-content; padding-inline: var(--rand);
}
.streifen .handy { width: 250px; flex: none; }
.streifen .handy:nth-child(odd) { transform: translateY(28px); }

.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.block { position: relative; padding: 48px 36px 36px; border-radius: 32px; background: var(--tafel); border: 1px solid var(--tafel-rand); }
.block h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.08; margin-bottom: 16px; max-width: 12ch; }
.block p { max-width: 40ch; font-size: 1.1rem; }
.block-figur { position: absolute; right: 20px; top: -36px; width: 120px; }
.textlink { color: #fff; text-underline-offset: 4px; }

.hilfe { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; max-width: 900px; }
.hilfe h2 { font-size: clamp(2rem, 4vw, 3rem); }
.hilfe .knoepfe { margin-top: 24px; margin-bottom: 28px; }
.hilfe .leise { font-size: 14px; }
.hilfe-figur { width: 100%; max-width: 220px; justify-self: center; }

/* Rechtstexte -------------------------------------------------------------- */

.recht-text { max-width: calc(68ch + 2 * var(--rand)); padding-block: 72px 112px; }
.recht-text h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 12px; }
.recht-text h2 { font-size: 1.12rem; letter-spacing: -0.01em; margin: 2.4em 0 0.5em; }
.recht-text p { max-width: 68ch; }
.recht-text a { text-underline-offset: 3px; }
.firma .recht-text p { color: #C3C9D1; }
.drei .recht-text p { color: rgba(255, 255, 255, 0.78); }
.drei .recht-text h1, .drei .recht-text h2 { font-family: var(--schrift); font-weight: 600; }
.stand { font-size: 15px; opacity: 0.7; }
.entwurf { padding: 14px 18px; border-radius: 12px; background: rgba(198, 26, 50, 0.12); border: 1px solid rgba(230, 70, 90, 0.45); }
.drei .entwurf { background: rgba(255, 77, 179, 0.1); border-color: rgba(255, 77, 179, 0.4); }

/* Kleine Bildschirme --------------------------------------------------------- */

@media (max-width: 900px) {
  .buehne { height: calc(var(--schritte) * 50svh + 50svh); }
  .buehne-innen {
    grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 14px;
    align-content: start; justify-items: center; padding-top: 80px; padding-bottom: 16px; text-align: center;
  }
  .schritte { width: 100%; height: 152px; align-items: start; }
  .schritt { align-self: start; }
  .schritt h2 { font-size: clamp(1.9rem, 8.4vw, 3rem); }
  .schritt p { font-size: 1.05rem; line-height: 1.35; margin: 8px auto 0; max-width: 30ch; }
  .schritt .knoepfe { justify-content: center; flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
  .schritt .knopf { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .app-icon { width: 52px; height: 52px; border-radius: 12px; margin: 0 auto 8px; }
  .buehne .handy { width: min(100%, calc((100svh - 270px) * 0.46)); max-width: 300px; margin-top: 0; align-self: start; }
  .gruppen, .paar { grid-template-columns: 1fr; }
  .hilfe { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; }
  .hilfe .knoepfe { justify-content: center; }
  .hilfe-figur { max-width: 130px; }
  .block-figur { width: 92px; top: -28px; }
  .figur-rechts { top: auto; bottom: -6px; }
}
@media (max-width: 640px) {
  :root { --rand: 20px; }
  .navi { gap: 18px; }
  .kopf-innen { gap: 16px; height: 56px; }
  .fuss { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  .fuss-innen { grid-template-columns: 1fr; }
  .fuss nav { justify-content: flex-start; gap: 12px 20px; }
  .app-marke { font-size: 18px; }
  .drei .navi a[href$="#games"] { display: none; }

  .naechste { padding-block: 24px 96px; }
  .kontakt { padding-block: 24px 88px; }
  .kontakt-kopf { margin-bottom: 28px; }
  .form-reihe { grid-template-columns: 1fr; gap: 0; }
  .formular button { width: 100%; }
  .form-hinweis { max-width: none; }

  .drei-held { padding: 28px var(--rand) 190px; }
  .knoepfe-mitte { margin-top: 22px; }
  .figur-links { width: 136px; left: -10px; }
  .figur-rechts { width: 128px; right: -4px; }
  .drei-abschnitt { padding-block: 72px; }
  .drei-abschnitt > h2 { margin-bottom: 36px; }
  .gruppe { padding: 24px; border-radius: 22px; }
  .gruppe li { font-size: 1.25rem; }
  .paar { gap: 40px; }
  .block { padding: 40px 24px 28px; border-radius: 24px; }
  .block h2 { max-width: 11ch; }
}
/* Hochformat: Logo oben, Satz direkt darunter */
@media (max-aspect-ratio: 1/1) {
  .z-held { align-content: start; padding-top: calc(32svh + 24vw + 20px); }
  .held-zeile { font-size: clamp(1.7rem, 7.6vw, 2.6rem); }
}
/* Auf Touchgeräten wischt man den Bildstreifen selbst, mit der eingebauten Physik des Systems */
@media (pointer: coarse) {
  .streifen {
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    scrollbar-width: none; padding-block: 8px 72px;
  }
  .streifen::-webkit-scrollbar { display: none; }
  .streifen .handy { width: min(62vw, 250px); scroll-snap-align: center; }
  .streifen .handy:nth-child(odd) { transform: none; }
}

/* Weniger Bewegung gewünscht: alles sofort zeigen, nichts klebt, nichts wandert */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .buehne { height: auto; }
  .klebend { position: static; height: auto; padding-block: 64px; }
  .js .zeigen, .js .schritt { opacity: 1; transform: none; pointer-events: auto; }
  .schritte { gap: 48px; height: auto; }
  .schritt { grid-area: auto; }
  .js .handy-stapel img[data-schritt]:not([data-schritt="0"]) { display: none; }
  .streifen { overflow-x: auto; }
}

/* Beitrittsseite für Einladungslinks aus der App */
.beitreten { max-width: calc(52ch + 2 * var(--rand)); padding-block: 72px 112px; }
.beitreten h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 16px; }
.beitreten p { margin: 0 0 16px; }
.beitreten-code strong { font-size: 1.6em; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
