/*
 * Sichtbarkeit als Chefsache — magnet-specific layer.
 * site.css supplies chrome (.nav/.footer/.skip-link/.language-toggle),
 * tokens, .site-shell, .button/.button--light/.button--ghost (atelier
 * slide-fill pass, border-radius: 0) and .kicker (Verdana/bronze
 * !important pass). This file holds only what site.css does not already
 * provide for this page: the dark photographic hero, the light/dark
 * section palette, the numbered index, the ledger stats, the dark CTA
 * button variant and the full gate (email-gated PDF) component. Shared by
 * the DE and EN landing pages.
 */

* { margin: 0; padding: 0; }

body.sichtbarkeit-als-chefsache-page {
  font-weight: 300;
  color: var(--ink-soft);
  background: var(--bone);
}

/* Focus ring: site.css's default :focus-visible is already bronze, which
   is right for this page's light sections/gate. Only the dark hero and
   dark section need the source's mint accent restored. */
.magnet-hero :focus-visible,
.section--dark :focus-visible {
  outline-color: #abffc0;
}

/* Kicker contrast: site.css's global .kicker pass (!important) is tuned
   for dark surfaces (#b59262) and only lists specific per-page selectors
   for the darker #755a36 tone used on light surfaces. This page's light
   sections aren't on that list, so it needs matching specificity here. */
.section--light .kicker.kicker.kicker {
  color: #755a36 !important;
}

/* ---------- Hero (site photography; renamed from .hero — site.css owns
   .hero/.hero__lead/.hero__actions for the homepage with different duty) ---------- */

.magnet-hero {
  background: #06110c;
  color: var(--bone);
  padding: clamp(110px, 14vw, 200px) 0 clamp(90px, 11vw, 160px);
  position: relative;
  overflow: hidden;
}

.magnet-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/empty-boardroom.webp");
  background-position: center;
  background-size: cover;
  filter: saturate(0.64) contrast(1.05) brightness(0.72);
  transform: scale(1.02);
}

.magnet-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 17, 12, 0.9) 0%, rgba(6, 17, 12, 0.54) 52%, rgba(6, 17, 12, 0.86) 100%),
    linear-gradient(180deg, rgba(6, 17, 12, 0.3) 0%, rgba(6, 17, 12, 0.82) 100%);
  pointer-events: none;
}

.magnet-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(244, 240, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 232, 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.08;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), transparent 70%);
  pointer-events: none;
}

.magnet-hero .site-shell {
  position: relative;
  z-index: 3;
}

.magnet-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.35rem, 5.6vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  max-width: 18ch;
  margin-top: 26px;
}

.magnet-hero__lead {
  margin-top: 34px;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: rgba(244, 240, 232, 0.82);
}

.magnet-hero__actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
  flex-wrap: wrap;
}

.magnet-hero__meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.56);
}

/* ---------- Sections: light/dark palette (site.css's .section only sets
   the padding rhythm — it has no light/dark modifier) ---------- */

.section--light {
  background: var(--bone);
  color: var(--ink-soft);
}

.section--dark {
  background:
    radial-gradient(circle at 82% 12%, rgba(154, 122, 79, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--builderz-green), var(--forest-atelier));
  color: var(--bone);
}

/* Renamed from .section__head (BEM) to .section-head: site.css already owns
   .section__head with a different grid ratio and a p:not(.kicker) rule
   assuming a single dark theme — renaming sidesteps both instead of
   fighting specificity. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.45fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 4.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 18px;
  max-width: 16ch;
}

.section-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(23, 23, 20, 0.72);
  max-width: 44ch;
}

.section--dark .section-desc {
  color: var(--muted);
}

.section-body {
  max-width: 68ch;
  font-size: 1.05rem;
}

.section--dark .section-body {
  color: rgba(244, 240, 232, 0.88);
  margin-bottom: clamp(56px, 7vw, 96px);
}

/* ---------- Index ("Was die Vorlage enthält" / "What the paper covers") ---------- */

.index {
  list-style: none;
}

.index li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid var(--builderz-line-light);
}

.index li:first-child {
  border-top: 1px solid rgba(26, 26, 26, 0.2);
}

.index__num {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--bronze);
  padding-top: 8px;
}

.index h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.index p {
  margin-top: 10px;
  max-width: 64ch;
  color: rgba(23, 23, 20, 0.72);
}

/* ---------- Ledger (dark, "Der Absender" / "Who this is from") ---------- */

.ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 7vw, 110px);
}

.ledger article {
  border-top: 1px solid var(--atelier-line);
  padding-top: 26px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.ledger strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.7rem, 6.1vw, 7.05rem);
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.ledger span {
  max-width: 22ch;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Button: dark variant (site.css's atelier pass already ships
   .button/.button--light/.button--ghost with the slide-fill mechanic and
   border-radius: 0 — only the dark variant is missing) ---------- */

.button--dark {
  background: var(--ink-soft);
  color: var(--bone);
  border-color: var(--ink-soft);
}

.button--dark::before {
  background: var(--bone);
}

.button--dark:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: var(--forest-atelier);
}

/* ---------- Gate (email-gated PDF delivery) ---------- */

.gate__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(300px, 0.45fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.gate__intro h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 4.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 18px;
  max-width: 14ch;
}

.gate__promise {
  margin-top: 26px;
  max-width: 52ch;
  font-size: 1.05rem;
  color: rgba(23, 23, 20, 0.78);
}

.gate__form {
  display: grid;
  gap: 20px;
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid rgba(26, 26, 26, 0.2);
  background: rgba(255, 255, 255, 0.5);
}

.gate__field {
  display: grid;
  gap: 8px;
}

.gate__field > span {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(23, 23, 20, 0.7);
}

.gate__field input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(26, 26, 26, 0.3);
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
}

.gate__field input:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 1px;
  border-color: var(--bronze);
}

.gate__consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.gate__consent input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--bronze);
}

.gate__consent span {
  font-family: "Tiempos Text", Georgia, serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(23, 23, 20, 0.62);
}

.gate__consent a {
  color: rgba(23, 23, 20, 0.78);
}

.gate__status {
  min-height: 1.2em;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f351e;
}

.gate__form .button {
  justify-self: start;
}

.gate__confirm {
  max-width: 760px;
}

.gate__confirm h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 18px;
  max-width: 20ch;
}

.gate__confirm-body {
  margin-top: 26px;
  max-width: 64ch;
  font-size: 1.05rem;
  color: rgba(23, 23, 20, 0.8);
}

.gate__confirm-actions {
  margin-top: 36px;
}

/* Programmatic focus target: no visible ring on the confirmation state */
.gate__confirm:focus,
.gate__confirm:focus-visible {
  outline: none;
}

/* ---------- Reveal on scroll (JS toggles html.reveal-ready) ---------- */

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease-atelier), transform 620ms var(--ease-atelier);
}

html.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 980px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ledger {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .gate__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .magnet-hero h1 {
    font-size: clamp(2.4rem, 10.5vw, 3.35rem);
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .section-head h2,
  .gate__intro h2 {
    font-size: clamp(2rem, 8.5vw, 2.35rem);
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .gate__confirm h2 {
    font-size: clamp(1.8rem, 7.5vw, 2.1rem);
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .ledger strong {
    font-size: clamp(3rem, 15vw, 3.7rem);
  }

  .index li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .index__num {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.gate__noscript {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.65;
}
