/* ============================================================
   seite-webdesign.css — Unterseite „Webdesign" (Baustein)
   Nutzt main.css-Tokens und -Klassen (.hero, .naht, .posten, .faq,
   .finale, .motor-link, .btn-leise ...). Hier nur, was main.css
   nicht schon liefert: Unterseiten-Held-Feintuning, Anatomie als
   Signature (CSS-Browser-Rahmen + Hotspot-Pins, gekoppelt an die
   Stationen), Vorher/Nachher-Spannung, dunkler Beweis-Akt, Brücke.

   Bild-Regel (Lehre aus dem Verzerrungs-Bug): Jedes img, dessen
   Breite CSS setzt, bekommt height: auto — sonst bleibt das
   HTML-height-Attribut als fixe Höhe wirksam und streckt das Motiv.
   ============================================================ */

.unterheld .beweis-foto img,
.browser-blatt img,
.schau-rahmen img {
  width: 100%;
  height: auto;
}

/* ---------- Unterseiten-Held: schwebende Bildkarte statt Zahlenkarte ---------- */

.unterheld { padding-bottom: clamp(40px, 6vh, 72px); }

.unterheld .hero-beweis { min-height: 300px; }

.unterheld .beweis-foto { width: min(100%, 470px); }

/* Natives Seitenverhältnis (1240x694) statt 3:2-Beschnitt aus main.css */
.unterheld .beweis-foto img { aspect-ratio: 1240 / 694; object-fit: cover; }

/* Aktiver Dropdown-Eintrag (diese Seite) */
.dd-zeile[aria-current="page"] {
  background: rgba(14, 94, 99, 0.1);
  color: var(--petrol);
  font-weight: 600;
}

.mobilnav-neben a[aria-current="page"] {
  color: var(--petrol) !important;
  font-weight: 700 !important;
}

/* ============================================================
   ANATOMIE (Signature): Browser-Rahmen + Hotspot-Pins
   ============================================================ */

.anatomie {
  background: var(--bg-tint);
  padding-block: clamp(60px, 8.5vh, 108px);
}

.anatomie-kopf { margin-bottom: clamp(36px, 5vh, 60px); }

.anatomie-kopf h2 {
  font-size: var(--fs-h2);
  max-width: 16ch;
}

.anatomie-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 5.5vw, 88px);
  align-items: start;
}

.schaufenster {
  position: sticky;
  top: clamp(96px, 12vh, 140px);
  margin: 0;
  display: grid;
  gap: 14px;
}

.schaufenster figcaption {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-leise);
}

/* Der Browser-Rahmen: dunkle Titelleiste, drei Punkte, helle Adresszeile.
   Alles CSS, kein Bild — das Foto behält sein echtes Verhältnis (1280x800). */

.browser {
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-deep-2);
  box-shadow:
    0 2px 6px rgba(11, 27, 29, 0.08),
    0 30px 80px rgba(14, 94, 99, 0.22);
}

.browser-kopf {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #10292c, var(--bg-deep));
  border-bottom: 1px solid rgba(103, 205, 198, 0.14);
}

.browser-punkte {
  display: flex;
  gap: 6px;
  flex: none;
}

.browser-punkte i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(175, 207, 204, 0.3);
}

.browser-punkte i:first-child { background: var(--mint-hell); }

.browser-adresse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline: auto;
  min-width: min(58%, 320px);
  justify-content: center;
  padding: 6px 16px;
  border-radius: 8px;
  background: rgba(239, 246, 246, 0.94);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.browser-adresse svg { color: var(--petrol); flex: none; }

/* Rechts optisch ausgleichen, damit die Adresse mittig sitzt */
.browser-kopf::after {
  content: '';
  width: 42px;
  flex: none;
}

.browser-blatt {
  position: relative;
  background: #ffffff;
}

/* ---------- Hotspot-Pins: nummerierte Punkte mit Puls-Ring ---------- */

.pin {
  position: absolute;
  left: var(--px);
  top: var(--py);
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: rgba(6, 23, 25, 0.66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease, border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.pin-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(103, 205, 198, 0.65);
  animation: pin-puls 2.2s ease-out infinite;
  pointer-events: none;
}

.pin:nth-of-type(2) .pin-ring { animation-delay: 0.7s; }
.pin:nth-of-type(3) .pin-ring { animation-delay: 1.4s; }

@keyframes pin-puls {
  from { box-shadow: 0 0 0 0 rgba(103, 205, 198, 0.65); }
  to { box-shadow: 0 0 0 14px rgba(103, 205, 198, 0); }
}

/* Pin füllt sich petrol: bei eigenem Hover/Fokus oder wenn die Station zeigt */
.pin:hover,
.pin:focus-visible,
.pin.ist-aktiv {
  background: var(--petrol);
  border-color: var(--mint-hell);
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow: 0 12px 30px rgba(6, 23, 25, 0.45);
}

/* ---------- Stationen: nummerierte Zeilen mit Petrol-Kante ---------- */

.stationen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.station {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
  padding-block: clamp(28px, 3.6vw, 48px);
  padding-left: clamp(18px, 2vw, 26px);
  border-top: 1px solid var(--linie);
}

.station:last-child { border-bottom: 1px solid var(--linie); }

/* Die Petrol-Kante: zeichnet sich bei Hover oder wenn der Pin zeigt */
.station::before {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(28px, 3.6vw, 48px);
  bottom: clamp(28px, 3.6vw, 48px);
  width: 3px;
  border-radius: 999px;
  background: var(--petrol);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.station:hover::before,
.station.ist-aktiv::before { transform: scaleY(1); }

/* Stations-Nummer im selben Kreis-Duktus wie der Pin: füllt sich petrol */
.station-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--petrol);
  background: #ffffff;
  color: var(--petrol);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.station:hover .station-num,
.station.ist-aktiv .station-num {
  background: var(--petrol);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(14, 94, 99, 0.3);
}

.station-body { display: grid; gap: 10px; }

.station-body h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

.station-body p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 46ch;
}

/* ============================================================
   WARUM: Vorher/Nachher-Spannung im .posten-Muster
   ============================================================ */

.warum {
  background: var(--bg);
  padding-block: clamp(60px, 8.5vh, 108px);
}

.warum-kopf { margin-bottom: clamp(32px, 5vh, 52px); }

.warum-kopf h2 {
  font-size: var(--fs-h2);
  max-width: 20ch;
}

.spannung {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

/* Vorher: die austauschbare Seite — bewusst blass, gestrichelt, entsättigt */
.spannung .posten-fremd {
  border: 1.5px dashed rgba(61, 84, 87, 0.35);
  background: transparent;
  box-shadow: none;
}

.spannung .posten-fremd .posten-art { color: var(--ink-leise); }

.spannung .posten-fremd .spann-satz { color: var(--ink-soft); }

/* Nachher: der Motor — satter Petrol-Slab mit Schimmer-Kante (aus main.css) */
.spannung .posten-zeus .spann-satz { color: rgba(255, 255, 255, 0.94); }

.spann-satz {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

/* Der Pfeil zwischen den Slabs: vorher wird nachher */
.spann-pfeil {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--linie);
  box-shadow: var(--karte-schatten);
  display: grid;
  place-items: center;
}

.spann-pfeil::before {
  content: '→';
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--petrol);
}

.warum-zitat {
  margin-top: clamp(32px, 5vh, 52px);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 56ch;
}

.warum-zitat::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: var(--shimmer);
  background-size: 200% 100%;
  animation: schimmer-lauf 6s linear infinite;
  margin-bottom: 22px;
}

/* ---------- Beweis: der eine dunkle Voll-Bleed-Akt ---------- */

.beweis-akt {
  background: var(--bg-deep);
  color: var(--dunkel-ink);
  padding-block: clamp(60px, 8.5vh, 108px);
  overflow: clip;
}

.beweis-aurora {
  position: absolute;
  inset: -10% -20%;
  z-index: var(--z-orb);
  background:
    radial-gradient(820px 460px at 20% 10%, rgba(20, 120, 124, 0.32), transparent 65%),
    radial-gradient(700px 400px at 85% 85%, rgba(103, 205, 198, 0.14), transparent 60%);
  filter: blur(10px);
  animation: orb-drift 28s ease-in-out infinite alternate;
}

.beweis-inhalt {
  position: relative;
  z-index: var(--z-inhalt);
  display: flex;
  justify-content: center;
}

.beweis-schau {
  margin: 0;
  position: relative;
  width: min(100%, 620px);
}

.schau-rahmen {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 32px 90px rgba(6, 23, 25, 0.55);
}

.schau-rahmen img {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.beweis-schau:hover .schau-rahmen img { transform: scale(1.03); }

/* Bildunterschrift als Chip auf dem Motiv (Duktus der Kronzeugen-Chips) */
.beweis-schau figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(6, 23, 25, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- Brücke zu den Motoren: getönte Bühne, zwei große Zeilen ---------- */

.bruecke {
  background: var(--bg-tint);
  padding-block: clamp(48px, 7vh, 84px);
}

.bruecke-intro {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.motor-links {
  display: flex;
  flex-direction: column;
}

.motor-links .motor-link {
  margin-top: 0;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(18px, 2.6vh, 26px);
  border-bottom: 1px solid var(--linie);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s ease;
}

.motor-links .motor-link svg { width: 20px; height: 20px; flex: none; }

/* Hover: Farbe kippt petrol, der Pfeil gleitet (transform, aus main.css) */
.motor-links .motor-link:hover { color: var(--petrol); }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .anatomie-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 6vw, 44px);
  }

  .schaufenster {
    position: static;
    top: auto;
  }
}

@media (max-width: 860px) {
  .spannung { grid-template-columns: minmax(0, 1fr); }

  /* Pfeil zeigt jetzt nach unten: vorher oben, nachher darunter */
  .spann-pfeil::before { content: '↓'; }
}

@media (max-width: 720px) {
  .hero.unterheld { padding-top: 108px; }
  .unterheld .hero-ctas .btn-gross { width: 100%; justify-content: center; }

  .station { padding-block: clamp(24px, 6vw, 36px); }

  .station::before {
    top: clamp(24px, 6vw, 36px);
    bottom: clamp(24px, 6vw, 36px);
  }

  .pin { width: 34px; height: 34px; font-size: 0.78rem; }

  .browser-adresse { min-width: 0; }
  .browser-kopf::after { width: 0; }
}
