/*
  Builderz Magnet-Flächen: geteilte visuelle Behandlungen für Landingpages.
  Ergänzt site.css (Komponenten-Kanon) — ersetzt nichts daraus.
  Werte-Kanon: docs/design.md + docs/landing-standard.md.
*/

/* ── Dunkle Fläche mit Tiefe: Bronze-Glow + feines Grid + Hairline-Rahmen.
     Dunkel heißt nie "flach" (landing-standard.md §4). */
.m-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(168, 131, 85, 0.10), transparent 30rem),
    linear-gradient(180deg, var(--builderz-green-deep, #0b2419) 0%, #081b12 100%);
  color: var(--paper);
  border-top: 1px solid var(--atelier-line);
  border-bottom: 1px solid var(--atelier-line);
}

.m-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}

.m-dark > * {
  position: relative;
  z-index: 1;
}

/* ── Foto-Kapitel: Full-bleed-Moment für Magnet-Seiten.
     Gleiches Rezept wie .world-chapter (site.css), aber mit frei wählbarem
     Bild pro Seite via --m-chapter-image. */
.m-chapter {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 64vw, 780px);
  padding: clamp(96px, 12vw, 168px) 0;
  border-top: 1px solid rgba(244, 240, 232, 0.1);
  border-bottom: 1px solid rgba(244, 240, 232, 0.1);
  background: #06110c;
  color: var(--paper);
}

.m-chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--m-chapter-image);
  background-size: cover;
  background-position: center;
  filter: saturate(0.64) contrast(1.05) brightness(0.72);
  transform: scale(1.02);
}

.m-chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  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.16) 0%, rgba(6, 17, 12, 0.78) 100%);
}

.m-chapter .site-shell {
  position: relative;
  z-index: 1;
}

.m-chapter h2 {
  font-size: clamp(3rem, 6.4vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.012em;
  color: var(--bone);
  max-width: 15ch;
}

.m-chapter p {
  max-width: 590px;
  color: rgba(244, 240, 232, 0.72);
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
  line-height: 1.65;
}

/* ── Magnet-Ledger: die enorme Serif-Zahl als eigene Aussage.
     Signature-Move 2 (landing-standard.md §6). */
.m-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 88px);
}

.m-ledger--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.m-ledger article {
  border-top: 1px solid var(--atelier-line);
  padding-top: 24px;
}

.m-ledger strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 5.6vw, 6.4rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--bone);
}

.m-ledger span {
  display: block;
  margin-top: 14px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.5;
  color: rgba(244, 240, 232, 0.58);
  max-width: 26ch;
}

.m-ledger--light article {
  border-top-color: rgba(23, 23, 20, 0.18);
}

.m-ledger--light strong {
  color: var(--ink-soft);
}

.m-ledger--light span {
  color: rgba(23, 23, 20, 0.58);
}

/* ── Gezeichnete Linie (mit data-mdraw kombinieren) */
.m-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(168, 131, 85, 0.85), rgba(168, 131, 85, 0.2));
}

.m-rule--paper {
  background: linear-gradient(90deg, rgba(244, 240, 232, 0.5), rgba(244, 240, 232, 0.08));
}

@media (max-width: 980px) {
  .m-ledger,
  .m-ledger--two {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .m-chapter {
    min-height: clamp(440px, 120vw, 640px);
    padding: 96px 0;
  }
}

/* Lange deutsche Komposita (z. B. "Gesellschafterversammlung") dürfen nie
   in die Nachbarspalte laufen: trennen statt überlaufen. */
.magnet-page h1,
.magnet-page h2,
.magnet-page h3 {
  overflow-wrap: break-word;
}

.magnet-page h2,
.magnet-page h3 {
  hyphens: auto;
  -webkit-hyphens: auto;
}
