/* =========================================================
   TURNSTASTIC Landingpage — style.css
   Umsetzung des Claude-Design-Konzepts "TURNSTASTIC Landingpage".
   Tokens aus dem TURNS Design System (colors_and_type.css).
   Responsive: 375 (mobile) → 768 (tablet) → 1280+ (desktop)
   ========================================================= */

/* === EUCLID CIRCULAR A WEBFONTS === */
@font-face {
  font-family: "Euclid Circular A";
  src: url("assets/fonts/euclid-circular-a/EuclidCircularA-Light-WebXL.woff2")
    format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Euclid Circular A";
  src: url("assets/fonts/euclid-circular-a/EuclidCircularA-Regular-WebXL.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Euclid Circular A";
  src: url("assets/fonts/euclid-circular-a/EuclidCircularA-Medium-WebXL.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Euclid Circular A";
  src: url("assets/fonts/euclid-circular-a/EuclidCircularA-Semibold-WebXL.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  /* === BRAND === */
  --turns-yellow: #fffc35;
  --turns-orange: #ff9400;
  --turns-black: #0a0a0a;
  --turns-white: #ffffff;

  /* === NEUTRALS === */
  --c-ink-700: #3a3a3a;
  --c-ink-500: #6e6e6e;
  --c-line-300: #d4d2cb;
  --c-line-200: #e8e6df;
  --c-surface: #fafaf9;
  --c-on-dark: #d4d4d4;
  --c-on-dark-dim: #a0a0a0;

  /* === TYPOGRAPHY === */
  --font:
    "Euclid Circular A", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --fw-light: 300;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* Fluide Skala aus dem Design */
  --fs-hero: clamp(38px, 7vw, 84px);
  --fs-h2: clamp(30px, 4.6vw, 56px);
  --fs-h3: clamp(22px, 3vw, 32px);
  --fs-lead: clamp(17px, 2vw, 21px);
  --fs-body: clamp(15px, 1.8vw, 18px);
  --fs-small: 15px;
  --fs-eyebrow: 12px;

  /* === LAYOUT === */
  --container: 1200px;
  --measure: 760px;
  --pad-x: 24px;
  --section-y: clamp(56px, 8vw, 120px);
  --gap-grid: 16px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--turns-white);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--fw-light);
  color: var(--turns-black);
  background: var(--turns-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--turns-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

::selection {
  background: var(--turns-yellow);
  color: var(--turns-black);
}

:focus-visible {
  outline: 3px solid var(--turns-black);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* =========================================================
   SHARED PRIMITIVES
   ========================================================= */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
}

.measure {
  max-width: var(--measure);
}

.section__title {
  margin: 0 0 20px;
  font-size: var(--fs-h2);
  line-height: 1.12;
  font-weight: var(--fw-medium);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section__lead {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: var(--fw-light);
  color: var(--c-ink-700);
  text-wrap: pretty;
}

.section__note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-ink-500);
}

/* Gelber Highlighter — Design-System-Spec:
   Farbbalken auf den unteren 45 % der Zeile, 6px Seitenpolster. */
.hl {
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent 55%,
    var(--turns-yellow) 55%,
    var(--turns-yellow) 100%
  );
  padding: 0 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* =========================================================
   TOPBAR
   ========================================================= */
/* Topbar liegt über dem 100vh-Hero, ohne dessen Höhe zu verkleinern. */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--pad-x);
}

.topbar__wordmark {
  font-size: 17px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
}

.topbar__origin {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.06em;
  color: #4a4a4a;
}

.topbar__origin:hover {
  text-decoration: none;
}

.topbar__logo {
  display: block;
  width: 106px;
  height: auto;
}

/* =========================================================
   1 · HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  /* Volle Viewport-Höhe. dvh fängt die ein-/ausfahrende Browserleiste
     auf Mobilgeräten ab, vh ist der Fallback für ältere Browser. */
  height: 100vh;
  height: 100dvh;
  min-height: 540px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line-200);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(250, 250, 249, 0.92) 0%,
    rgba(250, 250, 249, 0.72) 46%,
    rgba(250, 250, 249, 0.25) 100%
  );
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  /* Oben Platz für die absolut positionierte Topbar. */
  padding: clamp(88px, 12vw, 132px) var(--pad-x) clamp(32px, 5vw, 64px);
}

.hero__title {
  margin: 0 0 24px;
  max-width: 880px;
  font-size: var(--fs-hero);
  line-height: 1.05;
  font-weight: var(--fw-medium);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__lead {
  margin: 0;
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: var(--fw-light);
  color: var(--c-ink-700);
  text-wrap: pretty;
}

.hero__lead strong {
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__hint-arrow {
  display: inline-block;
  animation: bob 1.8s ease-in-out infinite;
}

.hero__note {
  font-size: 11px;
  font-weight: var(--fw-light);
  letter-spacing: 0.04em;
  color: var(--c-on-dark-dim);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

/* =========================================================
   3 · DER WEG — Timeline
   ========================================================= */
.weg {
  padding-top: 0;
}

.weg__intro {
  margin-bottom: clamp(32px, 5vw, 64px);
}

.timeline {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

/* Durchgehende gelbe Linie hinter den Markern */
.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  bottom: 20px;
  width: 4px;
  background: var(--turns-yellow);
}

.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}

.timeline__marker {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--turns-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: var(--fw-semibold);
}

.step-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  background: var(--c-surface);
  padding: clamp(16px, 3vw, 32px);
}

.step-card__title {
  margin: 0 0 10px;
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
}

.step-card__body {
  margin: 0;
  max-width: 32em;
  font-size: var(--fs-body);
  line-height: 1.5;
  font-weight: var(--fw-light);
  color: var(--c-ink-700);
}

.step-card__media {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* =========================================================
   4 · IM DETAIL (dunkel)
   ========================================================= */
.detail {
  background: var(--turns-black);
  color: var(--turns-white);
}

.detail__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--pad-x);
}

.detail__intro {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.detail .section__title {
  color: var(--turns-white);
}

.detail .section__lead {
  color: var(--c-on-dark);
}

.detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-grid);
}

.detail-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
  background: var(--turns-yellow);
  color: var(--turns-black);
}

.detail-card__num {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
}

.detail-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: var(--fw-medium);
}

.detail-card__body {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.45;
  font-weight: var(--fw-light);
}

/* =========================================================
   5 · DEIN BEITRAG
   ========================================================= */
.beitrag__intro {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.impact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-grid);
}

.impact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 150px;
  padding: 24px;
  background: var(--turns-white);
  border: 1px solid var(--c-line-200);
}

.impact-card--accent {
  background: var(--turns-orange);
  border-color: var(--turns-orange);
  color: var(--turns-black);
}

.impact-card__glyph {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
}

.impact-card__label {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.45;
  font-weight: var(--fw-light);
}

.beitrag__footnote {
  margin: 20px 0 0;
  max-width: 56em;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-ink-500);
}

/* =========================================================
   6 · LIEBLINGSTEILE
   ========================================================= */
.lieblingsteile {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line-200);
  border-bottom: 1px solid var(--c-line-200);
}

.lieblingsteile__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--pad-x);
}

.lieblingsteile__title {
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 16em;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap-grid);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--turns-white);
  border: 1px solid var(--c-line-200);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
}

.product-card__bar {
  display: inline-block;
  width: 22px;
  height: 8px;
  background: var(--turns-yellow);
}

/* =========================================================
   7 · DAS SYSTEM
   ========================================================= */
.system__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.system__lockup {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.system__logo {
  display: block;
  width: clamp(200px, 22vw, 280px);
  height: auto;
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-grid);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.fact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--c-line-200);
}

.fact-card__eyebrow {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-500);
}

.fact-card__value {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: var(--fw-medium);
  letter-spacing: -0.03em;
  line-height: 1;
}

.fact-card__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: var(--fw-light);
  color: var(--c-ink-700);
}

.network__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-grid);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.network-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.network-card figcaption {
  padding-top: 12px;
}

.network-card__title {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: var(--fw-medium);
}

.network-card__caption {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: var(--fw-light);
  color: var(--c-ink-500);
}

.partners__eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-500);
}

.partners__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Partner-Tags sind Links zu Projektberichten und Shops. */
.partner-tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--c-line-300);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: var(--fw-medium);
  transition:
    background-color 160ms ease-out,
    border-color 160ms ease-out;
}

/* Nur verlinkte Tags reagieren — ein <span> ist nicht klickbar. */
a.partner-tag:hover,
a.partner-tag:focus-visible {
  /* Statt Unterstreichung: die Pille füllt sich gelb. */
  text-decoration: none;
  background: var(--turns-yellow);
  border-color: var(--turns-yellow);
}

/* =========================================================
   8 · FAQ
   ========================================================= */
.faq {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line-200);
}

.faq__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--pad-x);
}

.faq__intro {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--c-line-300);
}

.faq-item__heading {
  margin: 0;
  font: inherit;
}

.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 18px 4px;
  text-align: left;
  font-family: inherit;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: var(--fw-medium);
  color: var(--turns-black);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-item__icon {
  flex: none;
  transition: transform 240ms ease-out;
}

.faq-item__q[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 280ms ease-out,
    opacity 280ms ease-out;
}

.faq-item__a.is-open {
  max-height: 400px;
  opacity: 1;
}

.faq-item__a p {
  margin: 0;
  padding: 0 4px 22px;
  max-width: 44em;
  font-size: 15.5px;
  line-height: 1.55;
  font-weight: var(--fw-light);
  color: var(--c-ink-700);
}

/* =========================================================
   9 · SOCIAL CTA
   ========================================================= */
.cta {
  background: var(--turns-yellow);
}

.cta__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 130px) var(--pad-x);
  text-align: center;
}

.cta__title {
  margin: 0 auto 20px;
  max-width: 14em;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.05;
  font-weight: var(--fw-medium);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta__lead {
  margin: 0 auto 36px;
  max-width: 36em;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  font-weight: var(--fw-light);
  color: #1f1f1f;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 50px;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  transition: transform 160ms ease-out;
}

.btn:hover {
  text-decoration: none;
  transform: scale(0.98);
}

.btn--primary {
  background: var(--turns-black);
  color: var(--turns-white);
}

.btn--ghost {
  border: 2px solid var(--turns-black);
  color: var(--turns-black);
}

.cta__note {
  margin: 20px 0 0;
  font-size: 12.5px;
  color: var(--c-ink-700);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--turns-black);
  color: var(--turns-white);
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--pad-x) 32px;
}

.footer__logo {
  display: block;
  width: clamp(160px, 18vw, 200px);
  height: auto;
  margin-bottom: 16px;
}

.footer__brand-sub {
  margin: 0;
  max-width: 26em;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: var(--fw-light);
  color: var(--c-on-dark-dim);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col h4 {
  margin: 0;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-500);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  font-size: 14px;
  font-weight: var(--fw-light);
  color: var(--turns-white);
}

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x) 28px;
}

.footer__bottom p {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #1f1f1f;
  font-size: 12px;
  color: var(--c-ink-500);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .timeline::before {
    left: 18px;
  }

  .timeline__step {
    grid-template-columns: 40px 1fr;
  }

  .timeline__marker {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .system__lockup {
    justify-content: flex-start;
  }
}

/* =========================================================
   MOTION — Reveal-Startzustand.
   Nur wenn JS läuft (html.js), sonst bleibt alles sichtbar.
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 500ms ease-out,
    transform 500ms ease-out;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__hint-arrow {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
