/* HeltAIum – Handy-Schicht der Unterseiten (alles außer /de/, /en/, /hu/).
   Eingebunden mit media="screen and (max-width: 760px)": Am Desktop, am Tablet und auf dem Papier gilt keine dieser Regeln.
   Die Bausteine dazu (Klasse .hx-m) setzt build-handy.mjs in die Seiten, das Verhalten liegt in sub.js, der Erdhorizont in sub-sky.js.

   Dieselbe Nacht wie auf der Startseite: Nachtuhr und Menü in der Kopfzeile, Fortschrittslinie am oberen Rand, Leiste unten,
   im Kopf jeder Seite der Rand der Erde aus dem Orbit (mit dem Finger drehbar), dazu je Seitenart ein Stück zum Anfassen.

   Regeln:
   - Was sich endlos von selbst bewegt, steht unter html.hx-move. sub.js setzt die Klasse nur, solange der Pausenknopf
     zu sehen ist und die Bewegung nicht angehalten wurde (WCAG 2.2.2). Ohne Skript bewegt sich nichts endlos.
   - Was erst durch das Skript sichtbar wird (Auftritte), steht unter html.hx-on. Fällt das Skript aus, bleibt alles lesbar.
   - Nichts hier liest oder braucht die Scroll-Position, außer der Fortschrittslinie in der festen Kopfzeile. */

:root {
  --hx-night: #02040a; --hx-night-2: #070c18; --hx-night-3: #0c1424;
  --hx-ink: #eef3fb; --hx-ink-2: #b3bfd3; --hx-ink-3: #8491a8;
  --hx-line: rgba(150, 180, 235, .14); --hx-line-2: rgba(150, 180, 235, .28);
  --hx-blue: #2f8bff; --hx-blue-hi: #7cc8ff; --hx-gold: #f2c27b; --hx-gold-hi: #ffe2b0; --hx-dawn: #ff9e5e; --hx-ok: #58d6a6;
  --hx-d: 'Sora', 'Instrument Sans', system-ui, sans-serif;
  --hx-b: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hx-gut: 20px; --hx-nav: 60px;
  --hx-ease: cubic-bezier(.2, .7, .2, 1);
  --hx-limb: rgba(150, 205, 255, .55);
  --hx-limb-glow: 0 -1px 3px rgba(200, 230, 255, .45), 0 -6px 34px rgba(47, 139, 255, .36), 0 -18px 90px rgba(47, 139, 255, .16);
}
/* Ersatzschrift für die große Überschrift. Bis Sora geladen ist, zeigt der Browser eine Schrift des Geräts. Die läuft 9 bis 13 % schmaler:
   Die Überschrift braucht dann oft eine Zeile weniger, und sobald Sora eintrifft, rutscht alles darunter (zuerst die Erde) eine Zeile tiefer.
   „Sora Ersatz“ ist die fette Arial des Geräts, auf die Laufweite von Sora 600 gebracht. Der Wert 108 % ist ausgezählt: Mit ihm bricht die
   Überschrift auf den Unterseiten in 13 Handybreiten fast immer gleich um (6 von 507 Fällen anders; ohne Ersatzschrift war es etwa jeder vierte).
   Sie lädt nichts aus dem Netz. Fehlt Arial auf dem Gerät, gilt die Reihenfolge dahinter wie bisher. */
@font-face { font-family: 'Sora Ersatz'; font-style: normal; font-weight: 500 900; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 108%; }
html { scroll-padding-top: calc(var(--hx-nav) + 10px); }
.hx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hx-m[hidden], [class^="hx-"][hidden], [class*=" hx-"][hidden] { display: none !important; }

/* ── Knöpfe ── */
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.1 var(--hx-b); letter-spacing: 0; text-decoration: none; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s, background-color .2s, border-color .2s; }
.hx-btn:active { transform: scale(.97); }
.hx-btn svg { width: 17px; height: 17px; flex: none; }
.hx-btn-light { background: var(--hx-ink); color: #04070f; }
.hx-btn-line { background: rgba(2, 4, 10, .4); border-color: var(--hx-line-2); color: var(--hx-ink); }
.hx-btn-ok { background: var(--hx-ok); color: #03140d; box-shadow: 0 0 0 6px rgba(88, 214, 166, .15), 0 18px 46px -14px rgba(88, 214, 166, .95); }

/* ── Kopfzeile: Wortmarke links, rechts Nachtuhr, Pausenknopf, Menü ── */
html[data-hx~="rahmen"] body { padding-top: var(--hx-nav); }
html[data-hx~="rahmen"] :is(.nav, .blog-nav, .legal-nav) {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: flex-start;
  height: var(--hx-nav); min-height: var(--hx-nav); padding: 0 var(--hx-gut);
  background: rgba(2, 4, 10, .74); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--hx-line);
}
html[data-hx~="rahmen"] :is(.nav, .blog-nav, .legal-nav) > :not(.brand) { display: none; }
.hx-top { display: flex; align-items: center; gap: 2px; position: fixed; top: 0; right: calc(var(--hx-gut) - 4px); z-index: 56; height: var(--hx-nav); }
.hx-clock { display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; font: 500 13.5px/1 var(--hx-b); color: var(--hx-ink-2); font-variant-numeric: tabular-nums; }
.hx-clock::before { content: ''; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset -3.5px -1.5px 0 0 var(--hx-gold-hi); transform: rotate(-24deg); }
.hx-pause { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--hx-ink-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hx-pause svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: currentColor; }
.hx-pause .hx-i-play, .hx-pause[aria-pressed="true"] .hx-i-pause { display: none; }
.hx-pause[aria-pressed="true"] .hx-i-play { display: block; }
.hx-burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid var(--hx-line-2); background: rgba(2, 4, 10, .5); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hx-bars { display: grid; gap: 6px; width: 18px; }
.hx-bars span { height: 1.6px; border-radius: 2px; background: var(--hx-ink); transition: transform .3s var(--hx-ease); }
.hx-burger[aria-expanded="true"] .hx-bars span:first-child { transform: translateY(3.8px) rotate(45deg); }
.hx-burger[aria-expanded="true"] .hx-bars span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
:is(.hx-pause, .hx-burger, .hx-btn, .hx-menu a):focus-visible { outline: 2px solid var(--hx-blue-hi); outline-offset: 3px; }
@media (scripting: none) { .hx-burger, .hx-pause { display: none; } }

/* Fortschritt: die Nacht (die Seite) schreitet voran. Die einzige Stelle, die der Scroll-Position folgt; sie steht fest am Fensterrand. */
.hx-rail { display: block; position: fixed; inset: 0 0 auto 0; z-index: 57; height: 2px; overflow: hidden; pointer-events: none; }
.hx-rail span { display: block; height: 100%; background: linear-gradient(90deg, var(--hx-blue-hi) 0 62%, var(--hx-gold) 86%, var(--hx-dawn)); transform-origin: 0 50%; transform: scaleX(var(--hx-p, 0)); }

/* ── Menü: deckt das ganze Fenster, die Kopfzeile bleibt darüber stehen (wie auf der Startseite) ── */
.hx-menu {
  display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 70; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--hx-nav) + 10px) var(--hx-gut) max(24px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 110% 46% at 86% -6%, rgba(47, 139, 255, .2), transparent 62%), #03060d;
  animation: hx-fade .3s ease;
}
@keyframes hx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-item { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html.hx-open[data-hx~="rahmen"] :is(.nav, .blog-nav, .legal-nav) { z-index: 72; background: none; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-height: 700px) { .hx-menu-main a { padding: 9px 0; font-size: clamp(22px, 6.4vw, 26px); } .hx-menu-jump { margin-top: 12px; } .hx-menu-foot { padding-top: 14px; gap: 8px; } }
.hx-open .hx-top { z-index: 73; }
.hx-open .hx-clock, .hx-open .hx-pause, .hx-open .hx-rail, .hx-open .hx-bar { visibility: hidden; }
.hx-menu-x { position: fixed; top: calc((var(--hx-nav) - 46px) / 2); right: calc(var(--hx-gut) - 4px); width: 46px; height: 46px; border: 0; background: none; opacity: 0; }
.hx-menu-main { display: grid; }
.hx-menu-main a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hx-line);
  font: 300 clamp(25px, 7.2vw, 31px)/1.15 var(--hx-d); letter-spacing: -.024em; color: var(--hx-ink); text-decoration: none; animation: hx-item .4s var(--hx-ease) both; }
.hx-menu-main a::after { content: ''; flex: none; width: 8px; height: 8px; margin-right: 4px; border-top: 1.5px solid var(--hx-ink-3); border-right: 1.5px solid var(--hx-ink-3); transform: rotate(45deg); }
.hx-menu-main a:nth-child(2) { animation-delay: .02s; } .hx-menu-main a:nth-child(3) { animation-delay: .04s; } .hx-menu-main a:nth-child(4) { animation-delay: .06s; }
.hx-menu-main a:nth-child(5) { animation-delay: .08s; } .hx-menu-main a:nth-child(6) { animation-delay: .1s; } .hx-menu-main a:nth-child(7) { animation-delay: .12s; }
/* die Abschnitte dieser Seite als Sprungmarken: eine Reihe zum Wischen, ohne Beschriftung */
.hx-menu-jump { display: flex; gap: 8px; margin: 16px calc(-1 * var(--hx-gut)) 0; padding: 2px var(--hx-gut) 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; animation: hx-item .4s var(--hx-ease) .14s both; }
.hx-menu-jump::-webkit-scrollbar { display: none; }
.hx-menu-jump:empty { display: none; }
.hx-menu-jump a { flex: none; max-width: 78vw; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--hx-line-2); border-radius: 999px;
  font: 500 14.5px/1.2 var(--hx-b); color: var(--hx-ink-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-menu-foot { display: grid; gap: 12px; margin-top: auto; padding-top: 20px; animation: hx-item .4s var(--hx-ease) .16s both; }
.hx-menu-foot .hx-btn { min-height: 54px; font-size: 16px; }
.hx-menu-direct, .hx-menu-legal { display: flex; flex-wrap: wrap; gap: 0 22px; }
.hx-menu-direct a, .hx-menu-legal a { display: inline-flex; align-items: center; min-height: 44px; font: 400 15px/1.2 var(--hx-b); color: var(--hx-ink-2); text-decoration: none; }
.hx-menu-legal a { font-size: 14px; color: var(--hx-ink-3); }
.hx-menu-lang { display: inline-flex; gap: 6px; }
.hx-menu-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; border: 1px solid var(--hx-line); border-radius: 999px; font: 600 14px/1 var(--hx-b); color: var(--hx-ink-2); text-decoration: none; }
.hx-menu-lang a[aria-current] { border-color: var(--hx-blue-hi); color: var(--hx-ink); }

/* ── Leiste unten: zwei Aktionen in Daumenhöhe ── */
.hx-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 40; padding: 8px; border-radius: 999px;
  background: rgba(4, 7, 15, .9); border: 1px solid var(--hx-line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .45s var(--hx-ease), opacity .3s; }
/* weggeschoben ist die Leiste auch für Tastatur und Bildschirmleser weg (sonst läge der Fokus auf etwas Unsichtbarem) */
.hx-bar.is-off { transform: translateY(150%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .45s var(--hx-ease), opacity .3s, visibility 0s .45s; }
@media (max-width: 340px) { .hx-bar .hx-btn { padding: 0 8px; font-size: 14px; } .hx-bar .hx-btn svg { display: none; } }
/* ein Element mit Fokus kommt nie unter der Leiste zu liegen (WCAG 2.4.11) */
html:is([data-hx~="leiste-beide"], [data-hx~="leiste-anruf"]) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
html:is([data-hx~="leiste-beide"], [data-hx~="leiste-anruf"]) body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ── Bühne im Kopf der Seite: der Rand der Erde ── */
.hx-scene { display: block; position: relative; height: 346px; height: clamp(292px, calc(100svh - 318px), 440px); margin: 10px calc(-1 * var(--hx-gut)) 0; overflow: hidden; }   /* erste Höhe: für Browser ohne svh */
.hx-sky { position: absolute; inset: 0; }
/* Maß für sub-sky.js: Oberkante = Scheitel des Horizonts, Breite = Erdradius */
.hx-sky-m { position: absolute; left: 0; top: 34%; width: max(152vw, 560px); height: 0; }
/* solange die Erde nicht gezeichnet ist (oder ohne WebGL): der Horizont als Linie, wie bisher */
.hx-sky::before { content: ''; position: absolute; left: 50%; top: 34%; width: max(304vw, 1120px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  border-top: 1px solid var(--hx-limb); box-shadow: var(--hx-limb-glow); background: var(--hx-night); transition: opacity .8s; }
.hx-sky-c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; opacity: 0; transition: opacity 1s;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, #000 70%, transparent 98%); }
.hx-sky-on .hx-sky-c { opacity: 1; }
.hx-sky-on::before { opacity: 0; }
.hx-sky::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--hx-night)); pointer-events: none; }
/* Hinweis, dass sich die Erde drehen lässt; verschwindet nach der ersten Drehung */
.hx-spin { display: none; position: absolute; left: 50%; bottom: 24%; z-index: 2; transform: translateX(-50%); align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(4, 8, 18, .6); border: 1px solid var(--hx-line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 13.5px/1 var(--hx-b); color: var(--hx-ink-2); white-space: nowrap; pointer-events: none; transition: opacity .5s; }
.hx-spin i { width: 16px; height: 10px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 10px 10px; opacity: .8; }
.hx-sky-live .hx-spin { display: inline-flex; animation: hx-fade .8s ease 1.2s both; }
.hx-move .hx-sky-live .hx-spin i { animation: hx-nudge 1.5s ease-in-out 3; }
@keyframes hx-nudge { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
.hx-spun .hx-spin { opacity: 0; animation: none; }

/* ── Bühne mit einem Stück zum Anfassen: der Horizont liegt dahinter, das Stück steht auf ihm ── */
.hx-scene.has-stage { display: flex; flex-direction: column; align-items: center; height: auto; padding: 0 var(--hx-gut) 4px; }
.hx-scene.has-stage .hx-sky-m, .hx-scene.has-stage .hx-sky::before { top: 126px; }
.hx-scene.has-stage .hx-spin { display: none; }
.hx-scene.has-stage > :not(.hx-sky) { position: relative; z-index: 1; }

/* ── Telefon-Seite: der Beispielanruf. Kreis und Balken folgen der Lautstärke der Aufnahme (wie auf der Startseite). ── */
.hx-call { display: grid; justify-items: center; width: 100%; text-align: center; }
.hx-call-tag { margin: 4px 0 0; font: 400 13.5px/1.35 var(--hx-b); color: var(--hx-ink-3); }
.hx-call-tag b { display: block; font-weight: 600; font-size: 15px; color: var(--hx-ink); }
.hx-orb { --amp: 0; display: grid; place-items: center; position: relative; width: 124px; height: 124px; margin: 20px 0 0; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 64% 28%, #d4f0ff 0 6%, var(--hx-blue) 36%, #0a2a60 82%); box-shadow: 0 0 0 1px rgba(170, 220, 255, .65), 0 0 80px -6px rgba(47, 139, 255, .98);
  transform: scale(calc(1 + var(--amp) * .08)); transition: transform .09s linear, background-color .4s, box-shadow .4s; }
.hx-orb svg { position: relative; width: 40px; height: 40px; }
.hx-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(124, 200, 255, .6); opacity: 0; }
.hx-move .hx-orb i { animation: hx-ring 2.7s var(--hx-ease) infinite; }
.hx-move .hx-orb i:nth-child(2) { animation-delay: .9s; }
.hx-move .hx-orb i:nth-child(3) { animation-delay: 1.8s; }
@keyframes hx-ring { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.9); opacity: 0; } }
.hx-call.has-env.is-live .hx-orb i { animation: none; opacity: calc(.14 + var(--amp) * .62); transform: scale(calc(1.1 + var(--amp) * .42)); transition: transform .09s linear, opacity .09s linear; }
.hx-call.has-env.is-live .hx-orb i:nth-child(2) { opacity: calc(.08 + var(--amp) * .42); transform: scale(calc(1.22 + var(--amp) * .86)); }
.hx-call.has-env.is-live .hx-orb i:nth-child(3) { opacity: calc(.04 + var(--amp) * .26); transform: scale(calc(1.34 + var(--amp) * 1.3)); }
/* spricht der Anrufer, wird das Bild golden (Gold = Menschen) */
.hx-call.is-live[data-speaker="user"] .hx-orb { background: radial-gradient(circle at 64% 28%, #fff6e2 0 6%, var(--hx-gold) 36%, #5c3c12 82%); box-shadow: 0 0 0 1px rgba(255, 226, 176, .7), 0 0 80px -6px rgba(242, 194, 123, .95); }
.hx-call.is-live[data-speaker="user"] .hx-orb i { border-color: rgba(242, 194, 123, .65); }
.hx-call-meter { display: flex; align-items: center; justify-content: center; gap: 14px; height: 32px; margin-top: 14px; }
.hx-call-time { font: 300 25px/1 var(--hx-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--hx-ink-3); transition: color .3s; }
.hx-call:is(.is-live, .is-done) .hx-call-time { color: var(--hx-ink); }
.hx-wave { display: flex; align-items: center; gap: 4px; height: 32px; }
.hx-wave i { width: 3.5px; height: 12%; border-radius: 4px; background: var(--hx-ink-3); transition: background-color .3s; }
.hx-call.is-live .hx-wave i { background: var(--hx-blue-hi); }
.hx-call.is-live[data-speaker="user"] .hx-wave i { background: var(--hx-gold); }
.hx-call-card { width: 100%; margin-top: 12px; padding: 18px 14px 14px; border-radius: 28px; border: 1px solid rgba(124, 200, 255, .3); background: rgba(6, 11, 22, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 40px 90px -40px #000; transition: border-color .5s; }
.hx-call.is-live[data-speaker="user"] .hx-call-card { border-color: rgba(242, 194, 123, .4); }
.hx-call-cap { min-height: 4.1em; margin: 0; padding: 0 4px; font: 400 clamp(18px, 5vw, 21px)/1.33 var(--hx-b); color: var(--hx-ink); text-wrap: pretty; }
.hx-call-cap .who { display: block; margin-bottom: 4px; font: 600 13.5px/1.2 var(--hx-b); color: var(--hx-blue-hi); }
.hx-call[data-speaker="user"] .hx-call-cap .who { color: var(--hx-gold-hi); }
.hx-call-cap b { font-weight: 600; }
/* Annehmen: antippen oder den Hörer nach rechts schieben */
.hx-slide { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 62px; margin-top: 14px; padding: 0 20px 0 64px; border: 0; border-radius: 999px;
  background: rgba(88, 214, 166, .13); box-shadow: inset 0 0 0 1px rgba(88, 214, 166, .5); color: var(--hx-ink); font: 600 17px/1.1 var(--hx-b); cursor: pointer;
  touch-action: pan-y; overflow: hidden; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.hx-slide:focus-visible { outline: 2px solid var(--hx-blue-hi); outline-offset: 3px; }
.hx-slide-knob { position: absolute; left: 5px; top: 5px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--hx-ok); color: #03140d;
  box-shadow: 0 0 0 6px rgba(88, 214, 166, .15), 0 10px 30px -8px rgba(88, 214, 166, .95); transform: translateX(var(--sx, 0px)); transition: transform .35s var(--hx-ease); }
.hx-slide.is-drag .hx-slide-knob { transition: none; }
.hx-slide-knob svg { width: 24px; height: 24px; }
.hx-slide-idle { opacity: calc(1 - var(--sp, 0) * 1.4); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hx-move .hx-slide-idle { background: linear-gradient(100deg, #cfe0f5 32%, #fff 50%, #cfe0f5 68%) 0 0 / 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: hx-shine 2.8s linear infinite; }
}
@keyframes hx-shine { from { background-position: 130% 0; } to { background-position: -110% 0; } }
.hx-slide.is-on { padding: 0 24px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hx-line-2); }
.hx-slide.is-on .hx-slide-knob { display: none; }
html:not(.hx-on) .hx-slide { visibility: hidden; }
.hx-call-next { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hx-line); animation: hx-item .5s var(--hx-ease) both; }
.hx-call-next p { margin: 0; font: 400 15px/1.45 var(--hx-b); color: var(--hx-ink-2); }
.hx-call-next .hx-call-ok { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--hx-ok); }
.hx-call-ok i { width: 18px; height: 18px; border-radius: 50%; background: var(--hx-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.6l4.6 4.6L19 7.6' fill='none' stroke='%2303140d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hx-call-next div { display: grid; gap: 8px; }
.hx-call-next .hx-btn { min-height: 52px; font-size: 16px; }
.hx-call-foot { margin: 12px 0 0; font: 400 12.5px/1.45 var(--hx-b); color: var(--hx-ink-3); }
@media (prefers-reduced-motion: reduce) { .hx-call-next { animation: none; } .hx-slide-knob, .hx-orb { transition: none; } }

/* ── Leistungsseiten: die Beispiele der Seite als Karte über dem Horizont. Wischen wechselt das Beispiel, die Stationen
      leuchten der Reihe nach auf, ein Tipp führt zur Karte im Abschnitt „Beispiele“. Nur Zierde (aria-hidden): Der Inhalt steht unten. ── */
.hx-flow { position: absolute; left: 12px; right: 12px; top: 10px; z-index: 2; touch-action: pan-y; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.hx-flow-card { display: grid; gap: 4px; min-height: 112px; padding: 13px 16px 14px; border-radius: 22px; background: rgba(13, 21, 38, .74); border: 1px solid rgba(160, 190, 240, .2);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 22px 44px -26px #000; align-content: start; }
.hx-flow-tag { font: 500 13px/1.3 var(--hx-b); color: var(--hx-gold); }
.hx-flow-title { font: 600 16.5px/1.25 var(--hx-b); color: var(--hx-ink); }
.hx-flow-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin-top: 7px; }
.hx-flow-chips span { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border: 1px solid var(--hx-line-2); border-radius: 999px; font: 500 13px/1.2 var(--hx-b); color: var(--hx-ink-2);
  transition: border-color .4s, color .4s, background-color .4s, box-shadow .4s; }
.hx-flow-chips i { width: 14px; height: 1.5px; border-radius: 2px; background: var(--hx-line-2); transition: background-color .4s; }
.hx-flow-chips span.on { border-color: var(--hx-blue-hi); color: var(--hx-ink); background: rgba(47, 139, 255, .16); box-shadow: 0 0 18px -6px var(--hx-blue); }
.hx-flow-chips span.on:last-child { border-color: var(--hx-gold); background: rgba(242, 194, 123, .14); box-shadow: 0 0 18px -6px var(--hx-gold); }   /* das Ziel: Gold = bei Ihnen angekommen */
.hx-flow-chips i.on { background: var(--hx-blue-hi); }
.hx-flow .hx-dots { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .hx-flow { animation: hx-drop .65s var(--hx-ease) .35s both; }
  .hx-flow-card.is-swap > * { animation: hx-item .35s var(--hx-ease) both; }
}
@keyframes hx-drop { from { opacity: 0; transform: translateY(-18px) scale(.94); } to { opacity: 1; transform: none; } }
.hx-scene:has(.hx-flow) .hx-sky-m, .hx-scene:has(.hx-flow) .hx-sky::before { top: 50%; }
.hx-scene:has(.hx-flow) .hx-spin { bottom: 12%; }

/* ── Kopf der Seite: Leistungsseiten, Live-Demo, Webseiten-Vorschau, Branchenseiten ── */
html[data-hx] .hero { padding: 10px var(--hx-gut) 30px; border-bottom: 0; }
html[data-hx] .hero::after { display: none; }                       /* der Horizont sitzt jetzt in der Bühne */
html[data-hx] .hero-body { gap: 0; }
html[data-hx] .hero-body .crumb { display: block; margin: 4px 0 14px; font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-hx] .hero-body .crumb > * { margin-right: 6px; }
html[data-hx] :is(.hero-body, .blog-head, .booking-head) h1 { max-width: none; padding-bottom: .1em; font-family: 'Sora', 'Sora Ersatz', 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-size: clamp(33px, 10.2vw, 44px); line-height: 1.02; letter-spacing: -.052em; text-wrap: balance;
  overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; filter: drop-shadow(0 6px 26px rgba(47, 139, 255, .45)); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html[data-hx] :is(.hero-body, .blog-head, .booking-head) h1 { background: linear-gradient(180deg, #fff 18%, #cfeaff 58%, #86ccff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
/* am Morgen (Terminseite) trägt die Überschrift das warme Licht des Sonnenaufgangs */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html[data-hx~="himmel-morgen"] .booking-head h1 { background-image: linear-gradient(180deg, #fff 18%, #ffe9c9 60%, #f2c27b 100%); filter: drop-shadow(0 6px 26px rgba(242, 160, 90, .4)); }
}
html[data-hx] .hero-body .lead { position: relative; margin-top: -26px; font-size: 17px; line-height: 1.6; }
html[data-hx] .hero-body .hx-scene.has-stage + .lead { margin-top: 22px; }
html[data-hx] .hero-actions { margin-top: 22px; }
html[data-hx]:is([data-hx~="leiste-beide"], [data-hx~="leiste-anruf"]) .hero-actions { display: none; }   /* die Leiste unten trägt die beiden Aktionen */

/* ── Auftritte (nur mit Skript) ── */
@media (prefers-reduced-motion: no-preference) {
  .hx-on .hx-rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .9s var(--hx-ease); }
  .hx-on .hx-rv.is-in { opacity: 1; transform: none; }
}

/* ── Wisch-Reihen: mit der Tastatur erreichbar (sub.js setzt tabindex), der Fokus ist sichtbar ── */
:is(.feature-list, .cases, .anwendung-grid, .booking-perks, .cards, .process, .vsc-grid)[tabindex]:focus-visible { outline: 2px solid var(--hx-blue-hi); outline-offset: -2px; border-radius: 22px; }

/* ── Pausenknopf in der Bühne: auf Seiten ohne die Kopfzeile der Handy-Schicht (404, /start/) ── */
.hx-pause-in { position: absolute; right: 10px; top: 10px; z-index: 3; border: 1px solid var(--hx-line-2); background: rgba(2, 4, 10, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ── Wisch-Reihen: Punkte darunter ── */
.hx-dots { display: flex; justify-content: center; align-items: center; gap: 6px; height: 22px; margin-top: 8px; }
.hx-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--hx-line-2); transition: width .35s var(--hx-ease), background-color .35s; }
.hx-dots i.on { width: 20px; background: var(--hx-blue-hi); }

@media (prefers-reduced-motion: reduce) {
  .hx-menu, .hx-menu-main a, .hx-menu-jump, .hx-menu-foot { animation: none; }
  .hx-bar, .hx-bars span, .hx-sky-c, .hx-sky::before { transition: none; }
}

/* ══════════════ Leistungsseiten (21 Seiten, zwei Vorlagen) ══════════════ */
html[data-hx~="leistung"] :is(.section-head h2, .anwendung h2, .fitness h2, .methode h2, .faq h2) { font-weight: 500; font-size: clamp(28px, 8.2vw, 35px); line-height: 1.07; letter-spacing: -.042em; }
html[data-hx~="leistung"] .section-head { margin-bottom: 24px; }

/* „Kennen Sie das?“: vier Meldungen, wie ein Telefon sie zeigt */
html[data-hx~="leistung"] .problem-grid { gap: 10px; }
html[data-hx~="leistung"] .problem { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; padding: 15px 18px 17px 14px; border-radius: 22px;
  background: rgba(13, 21, 38, .74); border: 1px solid rgba(160, 190, 240, .2); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 22px 44px -26px #000; }
html[data-hx~="leistung"] .problem .mark { display: grid; place-items: center; width: 38px; height: 38px; margin: 2px 0 0; border-radius: 12px; background: var(--hx-gold); box-shadow: 0 0 22px -4px var(--hx-gold);
  font: 700 20px/1 var(--hx-d); color: #2a1a04; }
html[data-hx~="leistung"] .problem h3 { font-size: 17.5px; line-height: 1.25; }
html[data-hx~="leistung"] .problem p { margin-top: 5px; font-size: 15px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  html[data-hx~="leistung"] .problem[data-reveal] { transform: translateY(-16px) scale(.95); transform-origin: 50% 0; transition: opacity .45s ease, transform .65s var(--hx-ease); }
  html[data-hx~="leistung"] .problem[data-reveal].in { transform: none; }
}

/* Reihen zum Wischen: Merkmale, Beispiele */
html[data-hx~="leistung"] :is(.feature-list, .cases, .anwendung-grid) {
  display: flex; flex-direction: row; gap: 12px; grid-template-columns: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--hx-gut);
  margin-inline: calc(-1 * var(--hx-gut)); padding: 2px var(--hx-gut) 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: none; border: 0;
}
html[data-hx~="leistung"] :is(.feature-list, .cases, .anwendung-grid)::-webkit-scrollbar { display: none; }
html[data-hx~="leistung"] :is(.feature-list > li, .cases > .uc, .anwendung-grid > .awc) { flex: 0 0 82%; scroll-snap-align: start; margin: 0; }
html[data-hx~="leistung"] :is(.uc, .awc)[data-reveal] { opacity: 1; transform: none; }       /* in der Reihe steht jede Karte sofort da */
html[data-hx~="leistung"] .feature-list { margin-top: 26px; }
html[data-hx~="leistung"] .feature-list > li { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 20px 20px 22px; border: 1px solid var(--hx-line); border-radius: 20px; background: rgba(5, 9, 18, .78); }
html[data-hx~="leistung"] .feature-list .check { display: grid; place-items: center; width: 36px; height: 36px; margin: 0; border-radius: 50%; border: 1px solid rgba(124, 200, 255, .42); background: rgba(124, 200, 255, .1); color: var(--hx-blue-hi); font-size: 16px; }
html[data-hx~="leistung"] .solution .lead-text { font-size: 21px; line-height: 1.36; }

/* Ablauf: eine Linie von Blau nach Gold, jeder Schritt leuchtet auf, wenn er ins Bild kommt */
html[data-hx~="leistung"] :is(.process, .met-grid) { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 30px; border: 0; }
html[data-hx~="leistung"] :is(.process, .met-grid)::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 34px; width: 2px; border-radius: 2px; opacity: .32;
  background: linear-gradient(180deg, var(--hx-blue-hi), var(--hx-blue-hi) 55%, var(--hx-gold) 82%, var(--hx-dawn)); }
html[data-hx~="leistung"] :is(.phase, .met) { position: relative; display: grid; gap: 8px; padding: 0 0 30px; border: 0 !important; border-radius: 0; background: none; }
html[data-hx~="leistung"] :is(.phase, .met):last-child { padding-bottom: 0; }
html[data-hx~="leistung"] :is(.phase, .met)::after, html[data-hx~="leistung"] .phase:first-child::after {
  content: ''; position: absolute; left: -30px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--hx-night); border: 2px solid var(--hx-line-2); box-shadow: none;
  transition: background-color .5s .3s, border-color .5s .3s, box-shadow .5s .3s; }
html[data-hx~="leistung"] :is(.phase, .met).in::after { background: var(--hx-blue-hi); border-color: var(--hx-blue-hi); box-shadow: 0 0 16px var(--hx-blue); }
html[data-hx~="leistung"] :is(.phase, .met):last-child.in::after { background: var(--hx-gold); border-color: var(--hx-gold); box-shadow: 0 0 16px rgba(242, 194, 123, .9); }   /* die Übergabe: Gold = Menschen */
html[data-hx~="leistung"] :is(.phase .step, .met-num) { font-size: 14px; }
html[data-hx~="leistung"] :is(.phase h4, .met h4) { font-size: 21px; line-height: 1.2; }
html[data-hx~="leistung"] :is(.phase p, .met p) { max-width: none; font-size: 15.5px; line-height: 1.55; }
html[data-hx~="leistung"] :is(.phase .when, .met-foot) { justify-self: start; margin-top: 2px; padding: 5px 12px; border: 1px solid rgba(242, 194, 123, .36); border-radius: 999px; background: rgba(242, 194, 123, .09); color: var(--hx-gold-hi); font-size: 13px; line-height: 1.3; }

/* Fragen: größere Tippfläche, die Antwort kommt mit einer kleinen Bewegung */
html[data-hx~="leistung"] .q { padding: 18px 0; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) { html[data-hx~="leistung"] .q.open .body .a { animation: hx-item .4s var(--hx-ease) both; } }

/* Chatbot-Seite: die Fragen als Gesprächsverlauf. Die Frage antippen schickt sie ab, darunter steht die Antwort.
   Es sind die geschriebenen Antworten dieser Seite (von Daniel Helt), keine Antworten der KI; zur echten KI führt der letzte Knopf. */
html[data-hx~="chatbot"] .q-list { display: grid; gap: 10px; border: 0; }
html[data-hx~="chatbot"] .q { display: block; padding: 0; border: 0; }
html[data-hx~="chatbot"] .q :is(.toggle, .num) { display: none; }
html[data-hx~="chatbot"] .q .body { display: grid; gap: 8px; }
html[data-hx~="chatbot"] .q .body h4 { justify-self: end; max-width: 88%; padding: 11px 16px 12px; border: 1px solid rgba(242, 194, 123, .42); border-radius: 20px 20px 6px 20px; background: rgba(242, 194, 123, .06);
  font: 500 16px/1.32 var(--hx-b); letter-spacing: 0; color: var(--hx-ink); cursor: pointer; transition: background-color .3s; }
html[data-hx~="chatbot"] .q.open .body h4 { background: rgba(242, 194, 123, .17); }
html[data-hx~="chatbot"] .q .body .a { justify-self: start; max-width: 94%; margin: 0 0 6px; padding: 12px 15px 14px; border: 1px solid rgba(124, 200, 255, .24); border-radius: 6px 20px 20px 20px; background: rgba(47, 139, 255, .09);
  font-size: 15.5px; line-height: 1.55; color: var(--hx-ink); }
html[data-hx~="chatbot"] .q .body .a::before { content: 'Daniel Helt'; display: block; margin-bottom: 4px; font: 600 13px/1.2 var(--hx-b); color: var(--hx-blue-hi); }
@media (prefers-reduced-motion: no-preference) { html[data-hx~="chatbot"] .q.open .body .a { animation: hx-bubble .45s var(--hx-ease) both; } }
.hx-chat-live { display: flex; justify-content: flex-end; margin-top: 12px; }
.hx-chat-live .hx-btn { min-height: 48px; padding: 0 20px; background: var(--hx-blue-hi); border-color: transparent; color: #04070f; box-shadow: 0 14px 36px -14px rgba(47, 139, 255, .95); }
.hx-chat-live .hx-btn::after { content: ''; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* ══════════════ Abschluss jeder Seite: der Morgen ══════════════ */
html[data-hx] :is(.cta, section.cta) { position: relative; overflow: hidden; }
html[data-hx] .cta > .hx-sky { z-index: 0; }
html[data-hx] .cta > .hx-sky .hx-sky-m { top: 34px; }
html[data-hx] .cta > .hx-sky::before { display: none; }
html[data-hx] .cta > .hx-sky .hx-sky-c { -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 96%); mask-image: linear-gradient(180deg, #000 52%, transparent 96%); }
html[data-hx] .cta > .hx-sky::after { height: 62%; background: linear-gradient(180deg, transparent, rgba(2, 4, 10, .78) 46%, var(--hx-night)); }
html[data-hx] .cta > :not(.hx-sky) { position: relative; z-index: 1; }
html[data-hx] .cta.hx-dawn::before { opacity: 0; }
html[data-hx] .cta h2 { font-weight: 600; font-size: clamp(31px, 9.4vw, 40px); line-height: 1.04; letter-spacing: -.05em; text-wrap: balance; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html[data-hx] .cta.hx-dawn h2 { background: linear-gradient(180deg, #fff 22%, #ffe9c9 62%, #f2c27b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 4px 22px rgba(2, 4, 10, .9)); }
}

/* ══════════════ Branchenseiten (/handwerk/, /praxis/, /kanzlei/, /immobilien/, /gastro/, /selbsttest/, /ablauf/, /sicherheit/) ══════════════ */
html[data-hx~="branche"] .section-head h2 { font-weight: 500; font-size: clamp(28px, 8.2vw, 35px); line-height: 1.07; letter-spacing: -.042em; }
html[data-hx~="branche"] .hero-body .lead { margin-top: -22px; }
html[data-hx~="branche"] .hero-body .hero-sub { position: relative; }

/* Meldung über dem Horizont: ein Anruf geht ein, die KI nimmt ihn an (nur Zierde; dasselbe sagt die Überschrift darunter) */
.hx-note { --tone: var(--hx-gold); position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px 10px 11px; border-radius: 20px;
  background: rgba(13, 21, 38, .74); border: 1px solid rgba(160, 190, 240, .2); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 22px 44px -26px #000; pointer-events: none; }
.hx-note-ic { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #04121c; background: var(--tone); box-shadow: 0 0 22px -4px var(--tone); transition: background-color .5s, box-shadow .5s; }
.hx-note-ic svg { grid-area: 1 / 1; width: 20px; height: 20px; transition: opacity .35s, transform .5s var(--hx-ease); }
.hx-note-ic svg + svg { opacity: 0; transform: scale(.5); }
.hx-note-txt { display: grid; min-width: 0; }
.hx-note-txt b { grid-area: 1 / 1; font: 600 15.5px/1.25 var(--hx-b); color: var(--hx-ink); transition: opacity .35s ease, transform .5s var(--hx-ease); }
.hx-note-txt b + b { opacity: 0; transform: translateY(8px); }
.hx-note-time { font: 500 13.5px/1 var(--hx-b); color: var(--hx-ink-2); font-variant-numeric: tabular-nums; }
.hx-note[data-step="1"] { --tone: var(--hx-ok); }
.hx-note[data-step="1"] .hx-note-ic svg { opacity: 0; transform: scale(.5); }
.hx-note[data-step="1"] .hx-note-ic svg + svg { opacity: 1; transform: none; }
.hx-note[data-step="1"] .hx-note-txt b { opacity: 0; transform: translateY(-8px); }
.hx-note[data-step="1"] .hx-note-txt b + b { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .hx-on .hx-note { opacity: 0; transform: translateY(-18px) scale(.94); transform-origin: 50% 0; transition: opacity .45s ease, transform .65s var(--hx-ease); }
  .hx-on .hx-note.is-in { opacity: 1; transform: none; }
  .hx-on .hx-note.is-in[data-step="0"] .hx-note-ic { animation: hx-shake 1.1s ease-in-out 2; }
}
@keyframes hx-shake { 0%, 44%, 100% { transform: none; } 8%, 24% { transform: rotate(-11deg); } 16%, 32% { transform: rotate(11deg); } }
.hx-scene:has(.hx-note) .hx-sky-m, .hx-scene:has(.hx-note) .hx-sky::before { top: 40%; }

/* Beispielanruf: das Gespräch als Verlauf wie in einem Nachrichten-Programm; „mitlesen“ lässt die Sätze nacheinander erscheinen */
html[data-hx~="branche"] .call .turns { display: grid; gap: 10px; padding: 14px 12px; }
html[data-hx~="branche"] .call .turn { max-width: 90%; padding: 11px 14px 12px; border: 1px solid rgba(124, 200, 255, .22); border-radius: 18px 18px 18px 6px; background: rgba(47, 139, 255, .09); }
html[data-hx~="branche"] .call .turn-anrufer { justify-self: end; border-color: rgba(242, 194, 123, .3); border-radius: 18px 18px 6px 18px; background: rgba(242, 194, 123, .08); }
html[data-hx~="branche"] .call .turn p { font-size: 15.5px; line-height: 1.5; }
html[data-hx~="branche"] .call .turn-anrufer p { color: var(--hx-ink); }
html[data-hx~="branche"] .call .who-anrufer { color: var(--hx-gold-hi); }
html[data-hx~="branche"] .call .more-turns .turns { padding-top: 14px; }
.hx-rp { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 4px; }
.hx-rp-btn { flex: 1; min-height: 50px; padding: 0 18px; gap: 10px; }
.hx-rp-btn i { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.hx-rp-btn.is-on i { width: 12px; height: 12px; border: 0; border-radius: 2px; background: currentColor; }
.hx-rp-time { min-width: 3.2em; font: 300 24px/1 var(--hx-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--hx-ink-3); text-align: right; transition: color .3s; }
.call.is-play .hx-rp-time { color: var(--hx-ink); }
/* während des Mitlesens: ein Fenster fester Höhe, neue Sätze kommen unten an und schieben die älteren nach oben */
.hx-rp-log { display: none; }
.call.is-play .hx-rp-log { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; height: min(58svh, 430px); padding: 14px 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%); }
html[data-hx] .call.is-play > .turns, html[data-hx] .call.is-play > .more-turns { display: none; }
.hx-rp-log .turn { flex: none; list-style: none; }
@media (prefers-reduced-motion: no-preference) { .hx-rp-log .turn { animation: hx-bubble .45s var(--hx-ease) both; } }
@keyframes hx-bubble { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
/* nach dem Gespräch kommt die E-Mail an */
@media (prefers-reduced-motion: no-preference) { .mail.hx-arrive { animation: hx-arrive 1.1s var(--hx-ease) both; } }
@keyframes hx-arrive { 0% { opacity: 0; transform: translateY(-22px) scale(.95); box-shadow: 0 0 0 0 rgba(88, 214, 166, 0); } 55% { opacity: 1; transform: none; box-shadow: 0 0 0 8px rgba(88, 214, 166, .22); } 100% { box-shadow: 0 0 0 0 rgba(88, 214, 166, 0); } }

/* ══════════════ /start/ (Kurzseite für Verweise von außen) und 404: die Erde als Fenster bzw. unter der Meldung ══════════════ */
html[data-hx~="start"] .hx-scene { height: 250px; margin: 14px 0 6px; border: 1px solid var(--hx-line); border-radius: 22px; }
html[data-hx~="start"] .hx-sky-m, html[data-hx~="start"] .hx-sky::before { top: 30%; }
html[data-hx~="e404"] .hx-scene { height: 290px; height: clamp(240px, 42svh, 340px); }

/* ══════════════ Blog-Übersicht: eine Titelgeschichte, darunter schmale Zeilen ══════════════ */
html[data-hx] :is(.blog-head, .booking-head) { padding: 10px var(--hx-gut) 26px; }
html[data-hx] :is(.blog-head, .booking-head)::after { display: none; }      /* der Horizont sitzt in der Bühne */
html[data-hx] :is(.blog-head, .booking-head) .meta { margin: 4px 0 12px; font-size: 13px; }
html[data-hx] :is(.blog-head, .booking-head) .lead { position: relative; margin-top: -22px; font-size: 17px; line-height: 1.6; }
html[data-hx~="blog"] .blog-list { gap: 10px; }
html[data-hx~="blog"] .blog-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 3px; padding: 12px; border-radius: 18px; }
html[data-hx~="blog"] .blog-card .card-img { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 84px; height: 84px; aspect-ratio: auto; border-radius: 12px; overflow: hidden; }
html[data-hx~="blog"] .blog-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
html[data-hx~="blog"] .blog-card .card-meta { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; gap: 0 8px; padding: 0; font-size: 12.5px; line-height: 1.5; }
html[data-hx~="blog"] .blog-card .card-body { grid-column: 2; grid-row: 2; }
html[data-hx~="blog"] .blog-card .card-body h2 { font-weight: 500; font-size: 17px; line-height: 1.26; letter-spacing: -.012em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
html[data-hx~="blog"] .blog-card .card-body p, html[data-hx~="blog"] .blog-card .card-tag { display: none; }
html[data-hx~="blog"] .blog-card:first-of-type { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 0; padding: 0 0 18px; overflow: hidden; border-color: var(--hx-line-2); }
html[data-hx~="blog"] .blog-card:first-of-type .card-img { grid-column: 1; grid-row: 1; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 0; }
html[data-hx~="blog"] .blog-card:first-of-type .card-meta { grid-column: 1; grid-row: 2; padding: 14px 16px 2px; font-size: 13.5px; }
html[data-hx~="blog"] .blog-card:first-of-type .card-body { grid-column: 1; grid-row: 3; padding: 0 16px; }
html[data-hx~="blog"] .blog-card:first-of-type .card-body h2 { font-size: 25px; line-height: 1.16; letter-spacing: -.03em; -webkit-line-clamp: unset; display: block; }
html[data-hx~="blog"] .blog-card:first-of-type .card-body p { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.55; }
html[data-hx~="blog"] .blog-card:first-of-type .card-tag { display: inline-flex; grid-column: 1; grid-row: 4; justify-self: start; margin: 12px 16px 0; }

/* ══════════════ News: die Filter als eine Reihe zum Wischen ══════════════ */
html[data-hx~="news"] .news-tags { flex-wrap: nowrap; gap: 8px; margin-inline: calc(-1 * var(--hx-gut)); padding: 2px var(--hx-gut) 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); }
html[data-hx~="news"] .news-tags::-webkit-scrollbar { display: none; }
html[data-hx~="news"] .news-tag-btn { flex: none; min-height: 44px; white-space: nowrap; }

/* ══════════════ Terminseite: die vier Zusagen als Reihe, Kontaktwege als große Flächen ══════════════ */
html[data-hx~="termin"] .booking-perks { display: flex; gap: 12px; margin: 0; padding: 2px var(--hx-gut) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--hx-gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html[data-hx~="termin"] .booking-perks::-webkit-scrollbar { display: none; }
html[data-hx~="termin"] .booking-perk { flex: 0 0 76%; scroll-snap-align: start; }
html[data-hx~="termin"] .booking-channels { display: grid; gap: 10px; }
html[data-hx~="termin"] .booking-channels .sep { display: none; }
html[data-hx~="termin"] .booking-channels a { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 18px; border: 1px solid var(--hx-line-2); border-radius: 999px; background: rgba(2, 4, 10, .4);
  font: 600 16px/1.2 var(--hx-b); color: var(--hx-ink); text-decoration: none; }

/* ══════════════ Rechtstexte: ruhig. Das Inhaltsverzeichnis als Reihe zum Wischen, bequeme Lesegröße ══════════════ */
html[data-hx~="recht"] .legal-body .toc ol { display: flex; gap: 8px; columns: auto; margin: 10px calc(-1 * var(--hx-gut)) 0; padding: 2px var(--hx-gut) 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; list-style: none; }
html[data-hx~="recht"] .legal-body .toc ol::-webkit-scrollbar { display: none; }
html[data-hx~="recht"] .legal-body .toc li { flex: none; margin: 0; padding: 0; }
html[data-hx~="recht"] .legal-body .toc li::before, html[data-hx~="recht"] .legal-body .toc li::marker { content: none; }
html[data-hx~="recht"] .legal-body .toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border: 1px solid var(--hx-line-2); border-radius: 999px; font-size: 14.5px; white-space: nowrap; text-decoration: none; }

/* Zeitleisten (Projektablauf, Pilot): jeder Schritt leuchtet auf, wenn er ins Bild kommt */
@media (prefers-reduced-motion: no-preference) {
  .hx-on .timeline > li.hx-step { opacity: .42; transition: opacity .7s ease; }
  .hx-on .timeline > li.hx-step.is-in { opacity: 1; }
  .hx-on .timeline > li.hx-step::before { transition: box-shadow .7s .2s, background-color .7s .2s; }
  .hx-on .timeline > li.hx-step.is-in::before { background-color: var(--hx-blue-hi); box-shadow: 0 0 16px var(--hx-blue); }
}

/* Selbsttest: beantwortete Fragen tragen ein goldenes Häkchen, der Zähler füllt sich, das Ergebnis kommt an */
html[data-hx~="selbsttest"] .quiz fieldset { transition: border-color .4s; }
html[data-hx~="selbsttest"] .quiz fieldset:has(input:checked) { border-color: rgba(242, 194, 123, .5); }
html[data-hx~="selbsttest"] .quiz fieldset:has(input:checked) legend::after { content: ''; display: inline-block; width: 18px; height: 18px; margin-left: 8px; vertical-align: -3px; border-radius: 50%;
  background: var(--hx-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.6l4.6 4.6L19 7.6' fill='none' stroke='%232a1a04' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hx-on[data-hx~="selbsttest"] .quiz-progress { position: relative; z-index: 0; padding: 11px 16px; border: 1px solid var(--hx-line-2); border-radius: 999px; overflow: hidden; }
.hx-on[data-hx~="selbsttest"] .quiz-progress::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(124, 200, 255, .26), rgba(242, 194, 123, .4));
  transform-origin: 0 50%; transform: scaleX(var(--hx-q, 0)); transition: transform .5s var(--hx-ease); }
@media (prefers-reduced-motion: no-preference) { .quiz-out.hx-arrive { animation: hx-arrive-gold 1.1s var(--hx-ease) both; } }
@keyframes hx-arrive-gold { 0% { opacity: 0; transform: translateY(18px) scale(.96); box-shadow: 0 0 0 0 rgba(242, 194, 123, 0); } 55% { opacity: 1; transform: none; box-shadow: 0 0 0 8px rgba(242, 194, 123, .22); } 100% { box-shadow: 0 0 0 0 rgba(242, 194, 123, 0); } }

/* Rechner: das Ergebnis reagiert sichtbar, wenn sich eine Zahl ändert */
@media (prefers-reduced-motion: no-preference) { .result-num.hx-bump { animation: hx-bump .5s var(--hx-ease); } }
@keyframes hx-bump { 0% { transform: scale(1); } 35% { transform: scale(1.07); text-shadow: 0 0 34px rgba(242, 194, 123, .75); } 100% { transform: scale(1); } }
html[data-hx~="branche"] .result-num { transform-origin: 0 60%; font-size: clamp(46px, 14vw, 62px); }
