/* Flowlee · Hero (Bauversion) */

/* Onest (variabel), wie live auf designerstower.de; Outfit-Stand: hero-outfit-vorher.css */
@font-face {
  font-family: "Onest";
  src: url("onest.ttf") format("truetype");
  font-weight: 100 900;
  font-display: block;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #641AFF;
  color: #FFFFFF;
  font-family: "Onest", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* ---------- Grundaufbau (Desktop ab 1024px) ----------
   1u = 1px des 1280×720-Referenzentwurfs.
   Skaliert mit der Breite, wird bei flachen Fenstern durch die Höhe begrenzt. */

.hero {
  /* Farbprobe kräftig; vorheriger Stand: hero-vor-farbverstaerkung.css */
  --violet: #641AFF;
  --cyan: #00FFE0;
  --orange: #FF8500;
  --ink: #14102A;
  --white: #FFFFFF;
  --u: min(100cqw / 1280, 100svh / 720);
  --cta-w: clamp(88px, 11%, 240px);

  container-type: inline-size;
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--violet);
  color: var(--white);
}

@supports not (height: 1svh) {
  .hero {
    --u: min(100cqw / 1280, 100vh / 720);
  }
}

.hero__stage {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(40 * var(--u));
  padding: calc(102 * var(--u)) 0 0 calc(60 * var(--u));
  overflow: hidden;
}

.hero__title {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 800;
  font-size: calc(93 * var(--u));
  line-height: .99;
  letter-spacing: -.035em;
}

.hero__title span {
  display: block;
  white-space: nowrap;
}

/* Subline direkt unter der Headline, gemeinsam in .hero__intro (nicht über den Stage-gap getrennt) */
.hero__intro {
  min-width: 0;
}

.hero__sub {
  max-width: 38ch;
  margin: clamp(24px, calc(26 * var(--u)), 28px) 0 0;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: clamp(20px, calc(22 * var(--u)), 24px);
  line-height: 1.45;
  color: var(--white);
}

/* Leads & Webdesign: horizontal vor dem &, Webdesign vertikal rechts daneben */
.hero__claim {
  margin: auto 0 0;
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  padding-right: calc(64 * var(--u));
  font-family: "Onest", sans-serif;
  line-height: 1;
}

.hero__leads {
  margin-bottom: calc(8 * var(--u));
  font-size: calc(110 * var(--u));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
}

.hero__amp {
  /* negativer Abstand: unten kontrolliert angeschnitten */
  margin: 0 0 calc(-69 * var(--u)) calc(10 * var(--u));
  color: var(--orange);
  font-size: calc(360 * var(--u));
  font-weight: 650;
  line-height: .95;
}

.hero__web {
  margin: 0 0 calc(25 * var(--u)) calc(-8 * var(--u));
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: calc(73 * var(--u));
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.035em;
  white-space: nowrap;
}

/* Kontaktleiste */
.hero__cta {
  flex: 0 0 var(--cta-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(52 * var(--u));
  padding: calc(28 * var(--u)) 0 calc(40 * var(--u));
  background: var(--cyan);
  color: var(--ink);
  font-family: "Onest", sans-serif;
  text-decoration: none;
}

.hero__cta-arrow {
  display: block;
  flex: none;
  width: max(28px, calc(56 * var(--u)));
  height: auto;
}

.hero__cta-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: max(16px, calc(39 * var(--u)));
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.hero__cta:hover .hero__cta-label {
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .18em;
}

.hero__cta:focus {
  outline: none;
}

.hero__cta:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: -10px;
}

/* ---------- Website-Showcase (../showcase-build, Stand vorher: hero-vor-showcase.css) ----------
   showcase.css/showcase.js bleiben unverändert, hier nur Einbindungs-Overrides.
   @font-face aus showcase.css zeigt auf dieselbe onest.ttf; hero.css lädt danach,
   daher gilt font-display: block von oben und die Datei wird nur einmal geladen.
   Kein eigener Seitenabstand: der Hero-Rand dient als Raum für Schweben und Schatten. */

.hero .website-showcase {
  width: auto;
  max-width: 680px;
  margin-right: calc(60 * var(--u));
  padding-inline: 0;
  overflow: visible;
}

/* Wortgruppe liegt über eventuell hineinragenden Schatten */
.hero__claim {
  position: relative;
  z-index: 1;
}

/* Desktop: Intro über beiden Spalten, darunter Showcase links unten, Claim rechts unten */
@media (min-width: 1024px) {
  .hero__stage {
    display: grid;
    grid-template-columns: minmax(0, clamp(320px, calc(460 * var(--u)), 500px)) minmax(max-content, 1fr);
    grid-template-rows: auto auto;
    align-content: space-between;
    /* 28u statt 40u, damit der Hero bei 1440×900 in den Viewport passt */
    gap: calc(28 * var(--u));
  }

  .hero__intro {
    grid-column: 1 / -1;
  }

  .hero .website-showcase {
    grid-area: 2 / 1;
    align-self: end;
    max-width: none;
    margin: 0 0 calc(56 * var(--u));
  }

  .hero__claim {
    grid-area: 2 / 2;
    justify-self: end;
    align-self: end;
    margin: 0;
  }
}

/* ---------- Tablet / flache Formate (bis 1023px) ---------- */

@media (max-width: 1023px) {
  .hero {
    --u: min(100cqw / 1000, 100svh / 720);
    --cta-w: clamp(76px, 12%, 140px);
  }

  @supports not (height: 1svh) {
    .hero {
      --u: min(100cqw / 1000, 100vh / 720);
    }
  }
}

/* ---------- Mobile (Hochformat unter 768px, alles unter 480px) ---------- */

@media (max-width: 479px), (max-width: 767px) and (orientation: portrait) {
  .hero {
    --m: min(100cqw / 390, 100svh / 760);
    --pad: clamp(20px, 5.6cqw, 40px);
    flex-direction: column;
  }

  .hero__stage {
    flex: 1 0 auto;
    /* 28px statt 40px, damit Intro, Showcase, Wortgruppe und CTA bei 390×844 in den Viewport passen */
    gap: 28px;
    /* oben +64px Luft über dem Intro (Platz für spätere Idee); unten: 24–28px Abstand zum Button */
    padding: calc(clamp(40px, 8svh, 120px) + 64px) var(--pad) clamp(24px, calc(28 * var(--m)), 28px);
  }

  /* Showcase zwischen Intro und Wortgruppe, Inhaltsbreite; Bühne max. 340px ≈ 224px hoch */
  .hero .website-showcase {
    max-width: none;
    margin-right: 0;
  }

  .hero .website-showcase .ws-stage {
    max-width: 340px;
  }

  .hero__title {
    /* zwei Zeilen garantiert: Zeilenbreite ≈ 7em, Puffer bis 8em */
    font-size: min(calc((100cqw - 2 * var(--pad)) / 8), calc(56 * var(--m)));
    line-height: 1.02;
  }

  .hero__sub {
    max-width: none;
    margin-top: clamp(20px, calc(24 * var(--m)), 24px);
    font-size: clamp(17px, calc(18 * var(--m)), 18px);
    line-height: 1.5;
  }

  /* Wortmarke: Leads rechtsbündig in Spalte 1, Wortende ragt ~16m ins &.
     Webdesign darunter über beide Spalten: links am L von Leads, rechts an der äußeren &-Kante.
     Spalte 1 fest auf die bisherige Webdesign-Breite (203.625m), damit der größere Webdesign-Text
     sie nicht verbreitert und Leads, & und CTA an ihrem Platz bleiben.
     Flexible erste Zeile nimmt die Überhöhe des 128m-& auf, die Wortzeilen bleiben eng. */
  .hero__claim {
    align-self: stretch;
    display: grid;
    grid-template-columns: calc(203.625 * var(--m)) max-content;
    grid-template-rows: 1fr auto auto;
    justify-content: start;
    align-items: end;
    column-gap: 0;
    padding: 0;
  }

  .hero__leads,
  .hero__web {
    position: relative;
    z-index: 1;
    justify-self: end;
  }

  .hero__leads {
    grid-area: 2 / 1;
    margin: 0;
    font-size: calc(56 * var(--m));
    line-height: .8;
  }

  /* 390×844: links 77.961px (L von Leads) = 21.836 + 56.125m, rechts 320.359px (&-Kante), 242.398m breit */
  .hero__web {
    grid-area: 3 / 1 / 4 / 3;
    justify-self: start;
    margin: calc(-1 * var(--m)) 0 0 calc(56.125 * var(--m));
    writing-mode: horizontal-tb;
    transform: none;
    font-size: calc(47.617 * var(--m));
    line-height: .86;
    white-space: nowrap;
  }

  /* -22m: ~16m sichtbare Überlappung plus linke Vorbreite der &-Glyphe */
  .hero__amp {
    grid-area: 1 / 2 / 4 / 3;
    z-index: 0;
    margin: 0 0 0 calc(-22 * var(--m));
    font-size: calc(160 * var(--m));
    font-weight: 800;
    line-height: .8;
  }

  /* Button links bündig mit der Headline, rechts bündig mit der Boxkante des & (nicht der Tintenkante);
     unten lila Abstand inkl. safe-area.
     298.523m = Wortmarkenbreite in Onest bei 390px: rechte &-Box 320.359px − linker Rand 21.836px.
     Ändert sich Schrift, Größe oder Laufweite der Wortmarke, diesen Wert neu messen. */
  .hero__cta {
    flex: 0 0 auto;
    align-self: flex-start;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: calc(10 * var(--m));
    width: min(calc(298.523 * var(--m)), calc(100% - 2 * var(--pad)));
    min-height: 56px;
    margin: 0 0 calc(clamp(20px, 2.8svh, 24px) + env(safe-area-inset-bottom, 0px)) var(--pad);
    padding: 14px calc(16 * var(--m));
    border-radius: 8px;
    /* Neon-Türkis, nur mobil heller: helle Innenkante + verstärkter Glow, keine Animation */
    background: #00FFF0;
    box-shadow:
      inset 0 0 0 1px rgb(255 255 255 / .55),
      0 0 16px rgb(0 255 240 / .70),
      0 0 34px rgb(0 255 240 / .40);
  }

  /* Desktop-Pfeil zeigt nach rechts oben; +45° dreht ihn mobil nach rechts.
     Breite skaliert mit m wie Label, Gap und Padding (24px bei 390×844). */
  .hero__cta-arrow {
    width: calc(24 * var(--m));
    transform: rotate(45deg);
  }

  /* einzeilig, skaliert mit m wie die Wortmarke (nicht nur mit der Breite):
     20px bei 390×844; bei 320×568 (m = .747) ≈ 14.9px, passt mit freier Luft vor dem Pfeil
     (vorher feste 17px: Text brauchte 186px bei nur 167.7px Platz und stieß an den Pfeil) */
  .hero__cta-label {
    min-width: 0;
    writing-mode: horizontal-tb;
    transform: none;
    font-size: calc(20 * var(--m));
    font-weight: 600;
    white-space: nowrap;
  }

  .hero__cta:focus-visible {
    outline-offset: -6px;
  }

  /* Kopfleiste: siehe system.css (Designrunde 20.10.2026) */
}
