/* Neuer Hero – Schritt Hero 1 (Richtungsprobe). Nur der erste Bildschirm bis zu den vier Leistungen.
   Farben nur Kobalt, Neongrün, Tiefsee, Weiß. Schriften Familjen Grotesk und Instrument Sans. */
:root {
  --hn-tief: #061528; --hn-kobalt: #2442eb; --hn-neon: #d7f52a; --hn-papier: #f4f4ef;
  --hn-ease: cubic-bezier(.23, 1, .32, 1); --hn-rand: clamp(20px, 4.4vw, 76px);
}

/* Wassergrund ohne Tinten-Simulation (reduzierte Bewegung, Laden am Handy, Kontextverlust): immer bildschirmfüllend blau.
   Vorher lag der Verlauf nur einen Bildschirm hoch auf Papierweiß (#f4f4ef) – darunter wurde die Seite weiß. */
.water-world .ink-fallback {
  background: linear-gradient(180deg, #071747, #0d2a63 55%, #123975) !important;
  background-size: 100% 100% !important; background-position: 0 0 !important; background-repeat: no-repeat !important;
}

/* Die alte Höhe des Scroll-Films gilt nicht mehr; die Leistungen folgen direkt. */
body[data-intro] #hero-zone.hn { height: auto; background: transparent; }
body[data-intro="motion"] #hero-zone.hn + .services { margin-top: 0; }
#hero-zone.hn { position: relative; color: var(--hn-papier); isolation: isolate; }
/* Schritt Hero 5: solange die Bühne läuft, liegt sie vor den Leistungen (die sind seit dem kleineren Abstand schon nah) */
#hero-zone.hn.hn-buehne-vorn { z-index: 4; }

/* ---------- Bühne: klebt genau einen Bildschirm lang ---------- */
.hn-buehne {
  position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; z-index: 0;
  background:
    radial-gradient(40% 52% at 70% 47%, #2442eb59, transparent 72%),
    radial-gradient(46% 30% at 62% 100%, #d7f52a14, transparent 70%),
    radial-gradient(30% 26% at 8% 100%, #d7f52a0f, transparent 70%),
    linear-gradient(180deg, #02060f, #050c1d);
}
.hn-szene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--hn-ease); touch-action: pan-y; }
.hn-3d-bereit .hn-szene { opacity: 1; }
.hn-ersatz { display: none; position: absolute; right: 2vw; top: 50%; width: min(58vw, 1100px); height: auto; transform: translateY(-46%); }
.hn-ohne-3d .hn-ersatz { display: block; }
/* Reparatur 02.11.2026 (Befund 15): Nach Verlust des WebGL-Kontexts liegt die leere Zeichenfläche nicht über dem Ersatzbild */
.hn-ohne-3d .hn-szene { visibility: hidden; }
/* Sobald die 3D-Bühne steht, malt sie ihren Grund selbst. Wo der Bildschirm unter Wasser Fenster ist, scheint die
   Wasserwelt der Seite (Tinte) hindurch. */
.hn-3d-bereit .hn-buehne { background: transparent; }

/* „Wir sind Tandemwerk.“ auf dem Bildschirm: der Bildschirm-Shader setzt ihn aus Pixeln zusammen (hero-geschichte.js);
   das Element liefert nur Tims Wortlaut. */
.hn-schirmtitel { display: none; }

/* ---------- Schritt Hero 5: Leertaste statt Scroll-Film ----------
   Der Hinweis erscheint, sobald der Laptop nah ist und seine Leertaste leuchtet (Klasse aus hero-szene.js). Er ist selbst ein Knopf
   (Tippen, Klick, Enter); die kleine Kappe pulsiert im Takt der 3D-Taste und senkt sich beim Drücken mit. Kein Glas, kein Blur. */
.hn-taste {
  position: fixed; z-index: 6; left: 50%; bottom: clamp(26px, 6.5svh, 64px); display: inline-flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 32px); text-align: left; text-wrap: balance;
  min-height: 56px; padding: 0 22px 0 14px; border: 0; border-radius: 999px; background: #030a1ee0; color: var(--hn-papier);
  box-shadow: inset 0 0 0 1px #2442eb8c, 0 18px 44px -18px #000; font: 500 16px/1.2 'Instrument Sans', sans-serif; letter-spacing: -.005em;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  opacity: 0; visibility: hidden; transform: translate3d(-50%, 10px, 0);
  transition: opacity .22s var(--hn-ease), transform .3s var(--hn-ease), visibility 0s .3s;
}
.hn-taste-bereit .hn-taste { opacity: 1; visibility: visible; transform: translate3d(-50%, 0, 0); transition: opacity .28s var(--hn-ease), transform .4s var(--hn-ease), visibility 0s; }
.hn-taste-gedrueckt .hn-taste { opacity: 0; visibility: hidden; transform: translate3d(-50%, 6px, 0) scale(.97); transition: opacity .2s var(--hn-ease) .12s, transform .2s var(--hn-ease) .12s, visibility 0s .32s; }
.hn-taste__kappe {
  position: relative; flex: none; width: 74px; height: 28px; border-radius: 8px; background: linear-gradient(180deg, #1a2440, #0b1020);
  box-shadow: inset 0 1px 0 #ffffff26, inset 0 -3px 0 #00000080, 0 0 0 1.5px #d7f52a; transition: transform .12s var(--hn-ease);
}
/* Leuchten als eigene Ebene: nur die Deckkraft pulsiert (läuft ohne Hauptfaden) */
.hn-taste__kappe::after { content: ''; position: absolute; inset: -7px; border-radius: 13px; box-shadow: 0 0 18px 3px #d7f52aa6; opacity: .35; }
/* der Puls läuft nur, solange der Hinweis zu sehen ist (versteckt hätte er in jedem Bild Arbeit gemacht) */
.hn-taste-bereit .hn-taste__kappe::after { animation: hn-kappe-puls 1.85s var(--hn-ease) infinite alternate; }
@keyframes hn-kappe-puls { to { opacity: 1; } }
.hn-taste:active .hn-taste__kappe, .hn-taste-gedrueckt .hn-taste__kappe { transform: translateY(3px) scale(.97); }
.hn-taste:focus-visible { outline: 3px solid var(--hn-neon); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .hn-taste:hover { box-shadow: inset 0 0 0 1px #d7f52a, 0 18px 44px -18px #000; } }
@media (max-width: 900px) {
  .hn-taste { bottom: calc(var(--h-unten, 92px) + 18px); max-width: calc(100vw - 28px); gap: 12px; padding: 8px 20px 8px 12px; border-radius: 22px; font-size: 15px; }
  .hn-taste__kappe { width: 58px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hn-taste { display: none; }
  .hn-taste__kappe::after { animation: none; opacity: .8; }
}

/* ---------- Erster Bildschirm ---------- */
.hn-erster {
  position: relative; z-index: 2; min-height: 100svh; display: grid; align-content: center;
  padding: calc(64px + clamp(26px, 7svh, 84px)) var(--hn-rand) clamp(96px, 14svh, 150px); pointer-events: none;
}
.hn-erster :is(a, button) { pointer-events: auto; }
/* Beim Eintauchen weicht der Text nach oben aus (mit der Scrollrichtung) und gibt die Bühne frei */
.hn-erster { will-change: transform, opacity; }
.hn-ist-aus .hn-erster { visibility: hidden; }
.hn-erster :is(.hn-titel, .hn-antwort, .hn-hinweis, .hn-fakten p) { text-shadow: 0 2px 28px #030a1e8c; }
.hn-spalte { max-width: min(47vw, 900px); }
.hn-titel {
  margin: 0; font: 600 clamp(48px, 5.6vw, 112px)/.95 'Familjen Grotesk', sans-serif; letter-spacing: -.048em;
  text-wrap: balance; color: var(--hn-papier);
}
.hn-antwort { margin: clamp(18px, 2.8svh, 30px) 0 0; font: 400 clamp(18px, 1.5vw, 26px)/1.38 'Instrument Sans', sans-serif; color: #d5ddef; max-width: 30ch; }
.hn-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(26px, 4.4svh, 44px); }
.hn-knopf {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--hn-neon);
  color: #071222; font: 500 17px/1 'Instrument Sans', sans-serif; text-decoration: none; letter-spacing: -.005em;
  box-shadow: 0 0 0 1px #e9ff6b inset, 0 14px 44px -14px #d7f52a99; transition: transform .16s var(--hn-ease), box-shadow .2s ease;
}
.hn-knopf:active { transform: scale(.97); }
.hn-knopf, .hn-weiter { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hn-knopf:focus-visible, .hn-weiter:focus-visible { outline: 3px solid var(--hn-papier); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .hn-knopf:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #f0ff8a inset, 0 18px 50px -12px #d7f52ac0; } }
.hn-hinweis { font: 400 15px/1.4 'Instrument Sans', sans-serif; color: #b8c5dd; }
.hn-fakten {
  position: absolute; left: var(--hn-rand); right: var(--hn-rand); bottom: clamp(22px, 4svh, 44px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
}
.hn-fakten p { margin: 0; max-width: 60ch; font: 400 15px/1.5 'Instrument Sans', sans-serif; color: #c4cfe6; }
.hn-fakten strong { color: var(--hn-papier); font-weight: 600; }
.hn-fakten b { color: var(--hn-neon); font-weight: 600; white-space: nowrap; }
.hn-weiter {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--hn-papier); text-decoration: none;
  font: 500 14px/1 'Instrument Sans', sans-serif; white-space: nowrap;
}
.hn-weiter svg { width: 16px; height: 16px; transition: transform .2s var(--hn-ease); }
@media (hover: hover) and (pointer: fine) { .hn-weiter:hover svg { transform: translateY(3px); } }

/* ---------- Ankunft in der Wasserwelt ---------- */
/* Schritt Hero 5 (Tim: „der riesige Abstand über ‚Vier Wege‘ muss weg“): keine Mindesthöhe mehr (vorher 100 bzw. 112 svh, am Handy
   lagen 387 px Leere zwischen Diamant-Satz und „Vier Wege“), unten nur noch ein kurzer Abstand */
.hn-ankunft {
  position: relative; z-index: 2; min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; align-content: start; padding: 15svh var(--hn-rand) clamp(28px, 5svh, 56px);
}
.hn-frage {
  grid-column: 1 / 9; margin: 0 0 clamp(14px, 2.2svh, 26px); max-width: 26ch;
  font: 500 clamp(26px, 2.5vw, 48px)/1.08 'Familjen Grotesk', sans-serif; letter-spacing: -.03em; color: #e3eaf7; text-wrap: balance;
  text-shadow: 0 2px 24px #031033aa;
}
/* bis zur Ankunft unsichtbar (die Texte liegen schon an ihrem Platz, die Bühne klebt darüber) */
.hn-js body[data-intro="motion"] #hero-zone:not(.hn-ankunft-los) .hn-ankunft > * { opacity: 0; }
.hn-wort { display: inline-block; }
.hn-kraft-huelle { grid-column: 1 / -1; position: relative; }
.hn-kraft { margin: 0; font: 600 clamp(64px, 11.6vw, 214px)/.9 'Familjen Grotesk', sans-serif; letter-spacing: -.055em; white-space: nowrap; color: var(--hn-papier); }
.hn-kraft.is-pixel { color: transparent; }
.hn-pixel { position: absolute; pointer-events: none; }
.hn-kraft-text { grid-column: 1 / 6; margin: clamp(22px, 3.4svh, 40px) 0 0; font: 400 clamp(18px, 1.4vw, 24px)/1.45 'Instrument Sans', sans-serif; color: #e3eaf7; max-width: 34ch; }
.hn-diamant { grid-column: 7 / 13; margin: clamp(22px, 3.4svh, 40px) 0 0; font: 600 clamp(30px, 3.3vw, 62px)/1.02 'Familjen Grotesk', sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.hn-ankunft :is(.hn-kraft-text, .hn-diamant) { text-shadow: 0 2px 24px #031033aa; }
/* Schritt Hero 5: der Diamant rechts neben Tims Satz – schleift sich aus groben Pixeln (hero-diamant.js), nicht riesig */
.hn-ankunft .hn-diamant { grid-column: 7 / 11; }
.hn-stein { grid-column: 11 / 13; align-self: center; justify-self: start; position: relative; width: min(100%, 220px); aspect-ratio: 1; margin-top: clamp(22px, 3.4svh, 40px); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hn-stein canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; }
.hn-stein.ist-aus { display: none; }

/* Einlauf beim Erscheinen: kurz, danach steht der Inhalt */
.hn-js [data-hn-einlauf] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--hn-ease), transform .7s var(--hn-ease); }
.hn-js [data-hn-einlauf].is-da { opacity: 1; transform: none; }

/* ---------- Buchstaben: fallen von oben ein, werden aus Pixeln scharf, weichen aus ---------- */
.hn-w { display: inline-block; white-space: nowrap; }
.hn-b { position: relative; display: inline-block; white-space: pre; transition: color .25s ease; }
.hn-b.is-weg { color: #e9ff8f; }
.hn-b[data-p] { color: transparent; }
.hn-b[data-p]::after { content: ''; position: absolute; left: .03em; right: .03em; top: .16em; bottom: .08em; }
.hn-b[data-p='1']::after { background: var(--hn-papier); opacity: .92; }
.hn-b[data-p='2']::after { background: repeating-conic-gradient(var(--hn-papier) 0 25%, transparent 0 50%) 0 0 / .26em .26em; opacity: .85; }
.hn-b[data-p='3']::after { background: repeating-conic-gradient(var(--hn-papier) 0 25%, transparent 0 50%) 0 0 / .12em .12em; opacity: .5; }
.hn-b[data-p='4']::after { display: none; }
.hn-js [data-hn-buchstaben]:not(.is-gesetzt) { color: transparent; }

/* Glas-Pille mit Licht: seit 02.11.2026 für alle Seiten in gemeinsam/navigation.css */

/* ---------- Handy und Hochformat: eigene Gestaltung ---------- */
@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) {
  .hn-erster { display: flex; flex-direction: column; align-content: normal; padding: calc(100px + 22px) var(--hn-rand) 26px; }
}
@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) {
  .hn-spalte { max-width: none; display: contents; }
  .hn-titel { font-size: clamp(40px, 11.6vw, 64px); line-height: .98; }
  .hn-frage { grid-column: 1 / -1; font-size: clamp(24px, 6.8vw, 34px); }
  .hn-antwort { font-size: clamp(17px, 4.6vw, 21px); max-width: 32ch; }
  .hn-luecke { flex: 1 0 auto; min-height: 37svh; }
  .hn-aktion { margin-top: 0; gap: 10px 16px; }
  .hn-knopf { min-height: 54px; flex: 1 1 auto; justify-content: center; }
  .hn-hinweis { font-size: 14px; }
  .hn-fakten { position: static; margin-top: 22px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .hn-fakten p { font-size: 14px; }
  .hn-ankunft { grid-template-columns: minmax(0, 1fr); padding-top: 14svh; min-height: 0; padding-bottom: 20px; }
  .hn-kraft { white-space: normal; font-size: clamp(58px, 18.5vw, 120px); line-height: .92; }
  .hn-kraft-text, .hn-diamant { grid-column: 1 / -1; }
  .hn-diamant { font-size: clamp(28px, 8.4vw, 44px); margin-top: 26px; }
  /* Handy: Satz links, der Diamant klein rechts daneben */
  .hn-ankunft { grid-template-columns: minmax(0, 1fr) clamp(84px, 25vw, 120px); column-gap: 12px; }
  .hn-ankunft .hn-diamant { grid-column: 1 / 2; }
  .hn-stein { grid-column: 2 / 3; width: 100%; margin-top: 26px; justify-self: end; }
}
@media (min-width: 901px) { .hn-luecke { display: none; } }
/* Handy: Kopf nur mit Wortmarke, „Erstgespräch anfragen“ sitzt in der Daumen-Leiste (seite.css) */
@media (max-width: 900px) {
  .hn-erster { padding-top: calc(env(safe-area-inset-top, 0px) + 84px); padding-bottom: calc(var(--h-unten, 92px) + 46px); }
  .hn-aktion .hn-knopf, .hn-weiter { display: none; }
  .hn-luecke { min-height: 30svh; }
}

/* ---------- Reduzierte Bewegung: ruhige Fassung ohne Eintauchen ---------- */
body[data-intro="quiet"] .hn-buehne { position: absolute; inset: 0 0 auto; margin: 0; }
/* ruhig: der Ankunftsblock liegt auf dem blauen Wassergrund der Seite (eigener Verlauf gab eine harte Kante zu den Leistungen) */
body[data-intro="quiet"] .hn-ankunft { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  .hn-szene, .hn-knopf, .hn-weiter svg { transition: none; }
  .hn-js [data-hn-einlauf] { opacity: 1; transform: none; transition: none; }
}
