/* Startbereich: Code wird Website, Website bekommt Kunden.
   Ebenen-Vertrag (Magic-Page hero-depth): fern = Vanta-Netz, mitte = Editor, fokus = entstehende Website,
   nah = Anzeige, Text = 1x. hero.js treibt alle Ebenen aus EINEM Scroll-Fortschritt (nur transform/opacity).
   Ohne JS, ohne WebGL und bei "Bewegung reduzieren" steht die fertige Szene. */
.hx { position: relative; isolation: isolate; overflow: hidden; min-height: max(680px, min(100svh, 940px)); display: flex; align-items: center; padding-block: 132px 112px; background: var(--bg); }
.hx__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 3.5vw, 56px); align-items: center; width: min(var(--wrap), 100% - 2 * var(--pad)); }
.hx__copy { max-width: 680px; }
.hx__title { hyphens: manual; -webkit-hyphens: manual; font-size: calc(clamp(42px, 4.6vw, 70px) * var(--fs, 1)); font-weight: 750; line-height: 1.02; letter-spacing: -.04em; }
.hx__title em { font-style: italic; font-weight: 500; font-family: var(--text); letter-spacing: -.03em; color: var(--accent); }
.hx .hero__sub { margin-top: 24px; max-width: 46ch; }

/* Wechselnde Frage über der Überschrift und Antwort darunter (hero-fragen.js).
   Alle Texte liegen in einer Rasterzelle übereinander, unsichtbare Platzhalter halten die Höhe. */
.hero__ask { display: grid; grid-template-columns: minmax(0, max-content) auto; align-items: center; justify-content: start; column-gap: 10px; margin: -8px 0 14px; }
.hero__ask > p { grid-area: 1 / 1; }
.hero__ask-q { margin: 0; font-family: var(--text); font-size: calc(clamp(17px, 1.4vw, 21px) * var(--fs, 1)); font-weight: 600; font-style: italic; line-height: 1.35; color: var(--accent); }
.hero__ghost { visibility: hidden; }
.hero__ask.is-typing [data-ask-q]::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.15em; background: currentColor; animation: askCaret .7s steps(1) infinite; }
@keyframes askCaret { 50% { opacity: 0; } }
.hero__ask-stop { grid-area: 1 / 2; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.hero__ask-stop:hover, .hero__ask-stop:focus-visible { opacity: 1; border-color: var(--line-2); }
.hero__ask-stop svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero__ask-stop .i-play { display: none; fill: currentColor; stroke: none; }
.hero__ask.is-paused .i-pause { display: none; }
.hero__ask.is-paused .i-play { display: inline; }
.hx .hero__subs { display: grid; margin-top: 24px; max-width: 46ch; }
.hx .hero__subs > .hero__sub { grid-area: 1 / 1; margin-top: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hx .hero__subs > .is-out { opacity: 0; transform: translateY(6px); visibility: hidden; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }

/* fern: Vanta-Netz; ohne WebGL ein ruhiges Verlaufs-Netz aus CSS als Poster */
.hx__far { position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(ellipse 55% 60% at 72% 40%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%),
  radial-gradient(ellipse 30% 35% at 88% 78%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%),
  var(--bg); }
.hx__far > canvas { opacity: 0; transition: opacity 1.4s var(--ease); }
.hx__far.is-vanta-active > canvas { opacity: .9; }
/* Scrim: Netz nur rechts, links ruhige Fläche für die Schrift, unten weich in die nächste Sektion */
.hx__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(90deg, var(--bg) 0%, var(--bg) 22%, color-mix(in srgb, var(--bg) 80%, transparent) 42%, transparent 70%),
  linear-gradient(0deg, var(--bg) 0%, transparent 26%),
  radial-gradient(ellipse 40% 45% at 74% 46%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }

/* Szene */
.hx__scene { position: relative; height: clamp(420px, 40vw, 540px); }
.hx__scene > * { position: absolute; will-change: transform; }
.hx__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; font-size: calc(11.5px * var(--fs, 1)); color: #8a95ab; border-bottom: 1px solid rgb(255 255 255 / .06); }
.hx__bar i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; }
.hx__bar span { margin-left: 8px; }

.hx__editor { left: 0; top: 0; width: 66%; border-radius: 14px; overflow: hidden; background: #111622; box-shadow: 0 0 0 1px rgb(255 255 255 / .07), 0 40px 80px -40px rgb(0 0 0 / .8); }
.hx__code { margin: 0; padding: 16px 18px 22px; font: 400 calc(12.5px * var(--fs, 1))/1.9 ui-monospace, "SFMono-Regular", Consolas, monospace; color: #c9d2e3; white-space: normal; counter-reset: ln; }
.hx__ln { display: block; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.hx__ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 2ch; margin-right: 1.6ch; text-align: right; color: #4b5671; }
.hx__code b { font-weight: 500; color: #9db2dc; } /* Editor bleibt in beiden Modi dunkel, Farben daher fest */
.hx__code u { text-decoration: none; color: #e8c39e; }
.hx__code s { text-decoration: none; color: #df9363; }

.hx__site { right: 0; top: 36%; width: 57%; border-radius: 14px; overflow: hidden; background: #f6f3ee; color: #1d2433; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 50px 90px -40px rgb(0 0 0 / .85); }
.hx__bar--light { color: #67624f; background: #ece7df; border-bottom-color: #e0dacf; }
.hx__page { display: grid; gap: 12px; justify-items: start; padding: 18px 20px 22px; }
.hx__logo { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 calc(12.5px * var(--fs, 1))/1 var(--display); letter-spacing: .01em; }
.hx__logo span { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, #d9824a, #a5552b); }
.hx__h { margin: 2px 0 0; font: 700 calc(clamp(18px, 1.7vw, 23px) * var(--fs, 1))/1.12 var(--display); letter-spacing: -.02em; }
.hx__img { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; width: 100%; height: 74px; }
.hx__img i { border-radius: 8px; background: linear-gradient(160deg, #c9b8a0, #8f7a62); }
.hx__img i:nth-child(2) { background: linear-gradient(160deg, #b9c3cf, #6e7f95); }
.hx__img i:nth-child(3) { background: linear-gradient(160deg, #d8c9b2, #a99173); }
.hx__btn { padding: 9px 16px; border-radius: 999px; border: 1px dashed #c8c0b2; font-size: calc(12.5px * var(--fs, 1)); font-weight: 700; color: #1d2433; transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s; }
.hx.is-styled .hx__btn, html:not(.js) .hx__btn { background: var(--accent); color: #0b0d12; border: 1px solid transparent; }

.hx__ad { left: -2%; bottom: -14%; width: 41%; filter: drop-shadow(0 24px 40px rgb(0 0 0 / .7)); }
.hx__ad-q { margin: 0 0 10px auto; width: fit-content; max-width: 90%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: #262d3d; font-size: calc(13px * var(--fs, 1)); color: #dfe4ee; }
.hx__ad-card { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; background: #1b2130; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); font-size: calc(12.5px * var(--fs, 1)); color: #b7bfcd; }
.hx__ad-card strong { font: 700 calc(14px * var(--fs, 1))/1.2 var(--display); color: #eef0f4; }
.hx__ad-tag { justify-self: start; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: #f0a877; font-size: calc(10.5px * var(--fs, 1)); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Eröffnung: Code tippt sich, die Website baut sich mit auf, dann landet die Anzeige. Nur mit JS. */
.hx.is-playing .hx__ln { opacity: 0; clip-path: inset(0 100% 0 0); }
.hx.is-playing .hx__ln.is-typed { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .55s steps(26, end), opacity .05s; }
.hx.is-playing [data-show] { opacity: 0; translate: 0 10px; }
.hx.is-playing [data-show].is-on { opacity: 1; translate: 0 0; transition: opacity .7s var(--ease), translate .7s var(--ease); }

/* Runder Knopf mit Kupfer-Kugel vorn (auch von anderen Abschnitten genutzt) */
.btn--orb { gap: 14px; padding: 6px 24px 6px 6px; }
.form .btn--orb[type="submit"] { justify-self: start; align-self: flex-start; } /* Senden-Knopf nur so breit wie sein Inhalt */
.btn__orb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transition: transform .4s var(--ease); }
.btn__orb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--orb:hover .btn__orb { transform: translateX(3px); }

@media (max-width: 1080px) {
  .hx__grid { grid-template-columns: 1fr; }
  .hx__scene { max-width: 620px; width: 100%; }
}
/* Handy: eigene Komposition. Text zuerst, darunter nur Website plus Anzeige, kein Editor, kein Netz */
@media (max-width: 900px) {
  .hx { display: block; min-height: 0; padding-block: 112px 64px; }
  .hx__shade { background: linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
  .hx__scene { height: 400px; margin-top: 36px; }
  .hx__editor { display: none; }
  .hx__site { left: 0; right: auto; top: 0; width: 86%; }
  .hx__ad { left: auto; right: 0; bottom: 0; width: 64%; }
}
@media (max-width: 700px) { .hx__title { font-size: calc(clamp(34px, 9.6vw, 46px) * var(--fs, 1)); } }
@media (max-width: 400px) { .hx__scene { height: 380px; } .hx__img { height: 56px; } }
