/* Flowlee · Hero Anthrazit (aktive Arbeitsversion)
   Kopie von hero-offwhite.css mit identischen Layoutregeln, aktiv über html[data-background="anthrazit"].
   Lädt nach showcase.css, hero.css und hero-raum.css; hero-offwhite.css bleibt unverändert (Backup index-offwhite-gesichert.html).
   Showcase-Komposition, Größen und Schweben aus hero-raum.css gelten weiter;
   Hintergrund B greift nicht, da nur an data-background="b" gebunden.
   Feinschliff (Stand davor: hero-anthrazit-vor-feinschliff.css): neutrales Anthrazit #202124 ohne Verläufe,
   Text Weiß #FFFFFF, Haupt-CTA Markenlila #641AFF, Header-CTA als dezenter Outline-Button;
   mobil größere Showcase und unterer CTA tiefer. */

/* ---------- Farben (alle Breiten) ---------- */

[data-background="anthrazit"] body,
[data-background="anthrazit"] .hero {
  background: #202124;
  color: #FFFFFF;
}

[data-background="anthrazit"] .hero__sub {
  color: #FFFFFF;
}

/* Haupt-CTA: Lila, weiße Schrift und Pfeil, kein Glow. Pfeil zeigt im SVG bereits nach rechts. */
[data-background="anthrazit"] .hero__cta {
  background: #641AFF;
  box-shadow: none;
  color: #FFFFFF;
}

[data-background="anthrazit"] .hero__cta-arrow {
  transform: none;
}

/* Hover wie bei den anderen Buttons (Dennis, 19.10.2026): kein Unterstreichen, Fläche hellt leicht auf, Pfeil rückt nach rechts */
[data-background="anthrazit"] .hero__cta {
  transition: background-color .18s ease, transform .18s ease;
}

[data-background="anthrazit"] .hero__cta:hover {
  background: #7334FF;
}

[data-background="anthrazit"] .hero__cta:hover .hero__cta-label {
  text-decoration: none;
}

[data-background="anthrazit"] .hero__cta-arrow {
  transition: transform .18s ease;
}

[data-background="anthrazit"] .hero__cta:hover .hero__cta-arrow {
  transform: translateX(4px);
}

[data-background="anthrazit"] .hero__cta:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  [data-background="anthrazit"] .hero__cta,
  [data-background="anthrazit"] .hero__cta-arrow {
    transition: none;
  }
}

[data-background="anthrazit"] .hero__cta:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* Kontextzeile unter dem Haupt-CTA: zurückhaltendes Hellgrau, linksbündig wie der CTA.
   Negativer margin-top überbrückt einen Teil des Stage-Gaps (je Breite unten), damit ≈ 13–14px sichtbar bleiben. */
[data-background="anthrazit"] .hero__context {
  align-self: flex-start;
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: #8E9198;
}

/* Zwei feste Zeilen: erste heller, zweite zurückhaltender */
[data-background="anthrazit"] .hero__context-main,
[data-background="anthrazit"] .hero__context-place {
  display: block;
  white-space: nowrap;
}

[data-background="anthrazit"] .hero__context-main {
  color: #D4D6DB;
}

/* ---------- Desktop / Tablet: Text → Showcase → CTA untereinander ----------
   Keine Gridflächen der früheren Wortmarke, keine vertikale CTA-Leiste mehr. */

@media (min-width: 768px), (min-width: 480px) and (orientation: landscape) {
  [data-background="anthrazit"] .hero__stage {
    display: flex;
    flex-direction: column;
    padding-bottom: calc(24 * var(--u));
  }

  [data-background="anthrazit"] .hero__cta {
    flex: 0 0 auto;
    align-self: flex-start;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: max-content;
    min-width: 300px;
    min-height: 56px;
    padding: 14px 18px;
    border-radius: 8px;
  }

  [data-background="anthrazit"] .hero__cta-arrow {
    width: 24px;
  }

  [data-background="anthrazit"] .hero__cta-label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 20px;
  }

  /* Stage-Gap hier 40u (ab 1024px 28u, siehe unten) → 13px sichtbar */
  [data-background="anthrazit"] .hero__context {
    max-width: 36ch;
    margin-top: calc(13px - 40 * var(--u));
    font-size: 14px;
  }
}

/* Desktop: Showcase in bisheriger Spaltenbreite (max. 500px, Mobil-Containerregel aus hero-raum.css greift) */
@media (min-width: 1024px) {
  [data-background="anthrazit"] .hero .website-showcase {
    grid-area: auto;
    align-self: flex-start;
    width: clamp(320px, calc(460 * var(--u)), 500px);
    max-width: 100%;
    margin: 0;
  }

  [data-background="anthrazit"] .hero__context {
    margin-top: calc(13px - 28 * var(--u));
  }
}

/* ---------- Mobile (gleiche Abfrage wie hero.css) ---------- */

@media (max-width: 479px), (max-width: 767px) and (orientation: portrait) {
  /* Showcase größer: Bühne 100% + 24px (370px bei 390 → 10px Rand je Seite), Höhe × .72 statt .66
     (244.8px statt 224.4px bei 390). Front 68cqw statt 64, hintere 60cqw statt 58;
     Tiefe, Neigung, Schweben, Screenshots und Rahmen unverändert aus hero-raum.css. */
  [data-background="anthrazit"] .hero .website-showcase .ws-stage {
    width: calc(100% + 24px);
    height: calc(min(340px, 100cqw) * .72);
    margin: 0 0 0 -12px;
  }

  [data-background="anthrazit"] .hero .website-showcase .ws-item--left {
    --x: 0cqw; --w: 60cqw;
  }

  [data-background="anthrazit"] .hero .website-showcase .ws-item--right {
    --x: 40cqw; --w: 60cqw;
  }

  [data-background="anthrazit"] .hero .website-showcase .ws-item--front {
    --x: 16cqw; --w: 68cqw;
  }

  /* CTA unter der Showcase: 28px Stage-Gap + 20–48px (5svh, ≈ 42px bei 390×844).
     Innerhalb der Stage kein eigener Seitenrand (Stage-Padding reicht), Breite wie bisher. */
  [data-background="anthrazit"] .hero__cta {
    width: min(calc(298.523 * var(--m)), 100%);
    margin: clamp(0px, 1svh, 8px) 0 0;
  }

  /* Kontextzeile: mittig unter dem CTA (gleiche Breite), 28px Gap − 10px → 18px sichtbar */
  [data-background="anthrazit"] .hero__context {
    width: min(calc(298.523 * var(--m)), 100%);
    margin-top: -10px;
    font-size: 13px;
  }

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

  /* Hero passt in die sichtbare Höhe (Dennis 20.10.2026, iPhone: Zeile unter dem Knopf lag unter der Safari-Leiste).
     system.js misst die kleine Bildschirmhöhe (100svh) und setzt --ws-skala (0,6…1): die Website-Vorschau schrumpft
     proportional (Komposition bleibt, da die Karten in cqw der Bühne stehen) und bleibt mittig. Unter ~120 px Höhe
     (iPhone SE) fällt sie weg (.hero--ohne-vorschau). Ohne Skript: unverändert wie abgenommen. */
  [data-background="anthrazit"] .hero .website-showcase .ws-stage {
    width: calc((100% + 24px) * var(--ws-skala, 1));
    height: calc(min(340px, 100cqw) * .72 * var(--ws-skala, 1));
    margin: 0 0 0 calc((100% - (100% + 24px) * var(--ws-skala, 1)) / 2);   /* bei 1: −12px wie bisher, kleiner: mittig */
  }
  [data-background="anthrazit"] .hero.hero--knapp .hero__stage { gap: 18px; padding-bottom: 14px; }
  [data-background="anthrazit"] .hero.hero--knapp .hero__context { margin-top: -4px; }
  [data-background="anthrazit"] .hero.hero--ohne-vorschau .website-showcase { display: none; }
}

/* ---------- Designrunde 20.10.2026: Hero unter der festen Kopfleiste, Desktop komponiert ----------
   Mobil (< 768 Hochformat) bleibt exakt wie abgenommen. Tablet: Platz für die 96-px-Kopfleiste.
   Desktop: Text links, Showcase groß rechts, gemeinsame Innenbreite mit Kopfleiste und Abschnitten. */
@media (min-width: 768px) and (max-width: 1023px), (min-width: 480px) and (max-width: 1023px) and (orientation: landscape) {
  [data-background="anthrazit"] .hero__stage {
    padding: 152px var(--pad, 40px) 56px;
    gap: 36px;
  }
  [data-background="anthrazit"] .hero__title { font-size: clamp(52px, 8.4vw, 80px); }
  [data-background="anthrazit"] .hero .website-showcase { width: min(100%, 620px); max-width: none; margin: 8px 0 0; }
  [data-background="anthrazit"] .hero__context { margin-top: -22px; }
}

@media (min-width: 1024px) {
  [data-background="anthrazit"] .hero__stage {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "intro show" "cta show" "ctx show";
    align-content: center;
    column-gap: clamp(40px, 5vw, 96px);
    row-gap: 0;
    padding: calc(80px + 48px) max(40px, calc((100% - 1120px) / 2)) 72px;
  }
  [data-background="anthrazit"] .hero__intro { grid-area: intro; align-self: end; }
  [data-background="anthrazit"] .hero__title { font-size: clamp(54px, 4.7vw, 84px); line-height: .98; }
  [data-background="anthrazit"] .hero__sub { max-width: 26ch; margin-top: 28px; font-size: clamp(19px, 1.5vw, 22px); }
  [data-background="anthrazit"] .hero .website-showcase {
    grid-area: show;
    align-self: center;
    width: 100%;
    max-width: 680px;
    margin: 0;
  }
  [data-background="anthrazit"] .hero__cta { grid-area: cta; margin-top: 40px; }
  [data-background="anthrazit"] .hero__context { grid-area: ctx; margin-top: 16px; text-align: left; }
}

/* ---------- Hero-Eingang (21.10.2026, Dennis „passt“) ----------
   Erzählt den Claim einmal je Sitzung: „Gutes Design.“ und der Text stehen sofort (keine Wartezeit, kein leerer
   Bildschirm), die drei Arbeiten legen sich nacheinander hin, dann erscheint „Gute Geschäfte.“ und auf der vorderen
   Arbeit die Karte „Neue Anfrage“ (aus der Website wird ein Kundenkontakt – Bildsprache wie /kunden-gewinnen/),
   zuletzt der Knopf. Weich (Dennis 21.10.: „geschmeidig, nicht abrupt“): lange, ausrollende Kurven, kurze Wege,
   überlappende Schritte. system.js setzt html.hero-erstmals nur beim ersten Aufruf je Sitzung und nur mit Bewegung.
   Ohne die Klasse ist alles im Endzustand; die Karte gibt es nur während des Eingangs. */
.ws-anfrage { display: none; }
html.hero-erstmals .ws-anfrage {
  display: flex; align-items: center; gap: 8px;
  position: absolute; left: -4%; bottom: 10%; z-index: 5;
  margin: 0; padding: 9px 12px 9px 10px; border-radius: 10px;
  background: #FFFFFF; color: #202124;
  font-family: "Onest", system-ui, sans-serif; font-size: 13px; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 18px 36px -16px rgb(0 0 0 / .65);
  transform: translateZ(60px);
  animation: he-anfrage 4.4s cubic-bezier(.33, 1, .68, 1) 1.25s both;
}
.ws-anfrage b { font-weight: 800; }
.ws-anfrage__punkt { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #00C8BE; box-shadow: 0 0 0 4px rgb(0 200 190 / .22); }
@keyframes he-anfrage {
  0% { opacity: 0; translate: 0 10px; scale: .97; }
  18% { opacity: 1; translate: 0 0; scale: 1; }
  78% { opacity: 1; translate: 0 0; scale: 1; }
  100% { opacity: 0; translate: 0 -4px; scale: 1; }
}
@keyframes he-zeile { from { opacity: 0; translate: 0 .18em; } to { opacity: 1; translate: 0 0; } }
@keyframes he-legen { from { opacity: 0; translate: 0 18px; scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes he-knopf { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
html.hero-erstmals .hero__title span:last-child { animation: he-zeile 1s cubic-bezier(.33, 1, .68, 1) 1s both; }
html.hero-erstmals .hero .ws-item--left { animation: he-legen 1.1s cubic-bezier(.33, 1, .68, 1) .05s both; }
html.hero-erstmals .hero .ws-item--right { animation: he-legen 1.1s cubic-bezier(.33, 1, .68, 1) .25s both; }
html.hero-erstmals .hero .ws-item--front { animation: he-legen 1.1s cubic-bezier(.33, 1, .68, 1) .45s both; }
html.hero-erstmals .hero__cta, html.hero-erstmals .hero__context { animation: he-knopf .9s cubic-bezier(.33, 1, .68, 1) 1.45s both; }
/* Warten auf die Cookie-Entscheidung (nur unter 1024 px, system.js): Ausgangszustand des Eingangs */
html.hero-wartet .hero__title span:last-child,
html.hero-wartet .hero .ws-item,
html.hero-wartet .hero__cta,
html.hero-wartet .hero__context { opacity: 0; }
@media (min-width: 1024px) {
  /* Desktop: die Arbeit legt sich bereits über d-anlegen (desktop.css) hin – hier nur Karte, zweite Zeile, Knopf */
  html.hero-erstmals .hero .ws-item--front { animation: none; }
  html.hero-erstmals .ws-anfrage { left: -28px; bottom: 14%; padding: 11px 15px 11px 13px; font-size: 14px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.hero-erstmals .ws-anfrage { display: none; }
  html.hero-erstmals .hero__title span:last-child, html.hero-erstmals .hero .ws-item, html.hero-erstmals .hero__cta, html.hero-erstmals .hero__context { animation: none; }
}
