/* Premium-Unterseiten V3 – nach seo-page.css laden. */
.seo-page { background: #f4f6f5; }
.seo-page .seo-breadcrumbs { background: #fff; border-bottom: 1px solid #e5e9e8; }
.seo-page .seo-hero__inner { min-height: clamp(620px, 72vh, 780px); padding-block: clamp(86px, 10vw, 132px); }
.seo-page .seo-hero h1 { max-width: 840px; font-size: clamp(3.15rem, 6.2vw, 6.35rem); line-height: .94; letter-spacing: -.055em; }
.seo-page .seo-hero__lead { max-width: 760px; font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.72; }
.seo-page .seo-tech-card { border-color: rgba(255,255,255,.18); background: rgba(4,17,24,.76); box-shadow: 0 30px 90px rgba(0,0,0,.28); backdrop-filter: blur(18px); }

body .seo-content { width: min(1240px, calc(100% - 48px)); padding: 96px 0 116px; }
body .seo-module { padding: clamp(82px, 9vw, 128px) 0; border-top: 0; }
body .seo-module + .seo-module:not(.seo-module--visual):not(.seo-module--scene) { border-top: 1px solid #dfe5e3; }
body .seo-module.module-look-framed:not(.seo-module--visual),
body .seo-module.module-look-tinted:not(.seo-module--visual),
body .seo-module.module-look-ruled:not(.seo-module--visual) { margin: 0; padding-right: 0; padding-left: 0; border-width: 0; border-radius: 0; background: transparent; background-image: none; box-shadow: none; }
body .module-heading { max-width: 820px; margin-bottom: clamp(38px, 5vw, 62px); padding-left: 0; border-left: 0; }
body .module-heading > p:last-child { max-width: 720px; font-size: 1rem; line-height: 1.72; }
body .seo-content h2 { font-size: clamp(2.35rem, 4.4vw, 4.6rem); line-height: .99; letter-spacing: -.052em; }

body .seo-module--intro { padding-top: 0 !important; }
body .module-intro-grid { gap: clamp(34px, 6vw, 78px); padding: clamp(38px, 6vw, 78px); border: 1px solid #dfe5e3; border-radius: clamp(24px, 3vw, 44px); background: #fff; box-shadow: 0 30px 90px rgba(8,30,41,.09); }
body .module-intro-grid > div:first-child { align-self: center; }
body .module-lead { max-width: 680px; margin-bottom: 30px; color: #41565f; font-size: clamp(1.02rem, 1.35vw, 1.17rem); line-height: 1.76; }
.intro-facts { display: grid; border-top: 1px solid #dfe5e3; }
.intro-facts span { position: relative; padding: 14px 0 14px 28px; color: #465d66; border-bottom: 1px solid #e5eae9; font-size: .88rem; line-height: 1.5; }
.intro-facts span::before { position: absolute; left: 0; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--page-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--page-accent) 12%, transparent); content: ""; }
body .page-brief { padding: clamp(30px, 4vw, 46px); border: 0; border-radius: 26px; color: #fff; background: linear-gradient(145deg, #071820, var(--page-accent-strong)); box-shadow: none; }
body .page-brief__index { color: color-mix(in srgb, var(--page-accent-two) 55%, #ffcc7d); }
body .page-brief__label, body .page-brief h3, body .page-brief li { color: #fff; }
body .page-brief li { border-color: rgba(255,255,255,.13); }

body .seo-module--visual { padding-block: clamp(92px, 10vw, 138px); }
body .factor-composition,
body .factor-composition--bento,
body .factor-composition--rail,
body .factor-composition--stagger,
body .factor-composition--ledger,
body .factor-composition--tiles,
body .factor-composition--editorial { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; padding: 0; border: 0; }
body .factor-composition .factor-panel,
body .factor-composition--bento .factor-panel:first-child,
body .factor-composition--bento .factor-panel:last-child,
body .factor-composition--tiles .factor-panel:nth-child(n) { display: block; grid-column: auto; min-height: 250px; padding: 30px; transform: none; color: #10232d; border: 1px solid #dfe5e3; border-radius: 22px; background: #fff; box-shadow: 0 18px 55px rgba(8,30,41,.06); }
body .factor-composition .factor-panel:nth-child(3n + 2) { background: color-mix(in srgb, var(--page-accent-soft) 76%, #fff); }
body .factor-composition .factor-panel:nth-child(3n) { color: #fff; border-color: transparent; background: var(--page-accent-strong); }
body .factor-composition .factor-panel:nth-child(3n) h3,
body .factor-composition .factor-panel:nth-child(3n) p { color: #fff; }

/* Verbindlicher Kontrast fuer helle Faktorkarten.
   Die V2-Tiles setzten Karten 2/5 inklusive Text dunkel; V3 hellt diese
   Flaechen auf. Deshalb muessen die direkten Textfarben hier ebenfalls
   explizit auf dunkel zurueckgesetzt werden. */
body .factor-composition .factor-panel:nth-child(3n + 1),
body .factor-composition .factor-panel:nth-child(3n + 2) { color: #10232d; }
body .factor-composition .factor-panel:nth-child(3n + 1) h3,
body .factor-composition .factor-panel:nth-child(3n + 2) h3 { color: #0b1d2a; }
body .factor-composition .factor-panel:nth-child(3n + 1) p,
body .factor-composition .factor-panel:nth-child(3n + 2) p { color: #52616c; }

/* Weisse Ziffern erhalten auf allen dynamischen Farbpaletten mindestens
   AA-Kontrast. --page-accent-strong erreicht selbst im hellsten Hue > 4.5:1. */
body .seo-page .factor-panel > span,
body .seo-page .process-composition > article > span,
body .seo-page .compare-stage article > span,
body .seo-page .seo-card__number,
body .seo-page .spectrum-map span {
  color: #fff;
  background: var(--page-accent-strong);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

/* Zukunftssicher fuer Faktorkarten mit zusaetzlichem Nachweisblock. */
body .factor-composition .factor-panel:nth-child(3n + 1) .card-proof,
body .factor-composition .factor-panel:nth-child(3n + 2) .card-proof {
  color: #41565f;
  border-left-color: var(--page-accent-strong);
  background: #fff;
}
body .factor-composition .factor-panel:nth-child(3n + 1) .card-proof b,
body .factor-composition .factor-panel:nth-child(3n + 2) .card-proof b {
  color: var(--page-accent-strong);
}
body .factor-panel > span { margin-bottom: 34px; }
body .factor-panel p { font-size: .91rem; line-height: 1.68; }

body .seo-content .seo-module.seo-module--scene { box-sizing: border-box; width: 100vw; margin-right: calc(50% - 50vw) !important; margin-left: calc(50% - 50vw) !important; padding: clamp(86px, 10vw, 140px) max(24px, calc((100vw - 1240px) / 2)); padding-inline: max(24px, calc((100vw - 1240px) / 2)) !important; background: #fff; }
body .scene-module-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(42px, 7vw, 96px); }
body .editorial-scene { border: 0; border-radius: clamp(22px, 3vw, 42px); box-shadow: 0 36px 100px rgba(5,31,42,.22); }
body .editorial-scene img { aspect-ratio: 8 / 5; }
body .scene-module-copy { min-width: 0; }
body .scene-module-copy h2 { max-width: 100%; font-size: clamp(2.25rem, 3.2vw, 3.55rem); overflow-wrap: anywhere; hyphens: auto; }
body .scene-module-copy > p,
body .scene-module-copy li { max-width: 100%; overflow-wrap: anywhere; }
body .scene-module-copy > p:not(.seo-kicker) { max-width: 600px; font-size: 1rem; }

body .process-composition,
body .process-composition--v1,
body .process-composition--v2,
body .process-composition--v3 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; padding: 0; border: 0; }
body .process-composition > article,
body .process-composition--v1 > article,
body .process-composition--v2 > article:nth-child(n),
body .process-composition--v3 > article { display: block; min-height: 270px; padding: 30px; transform: none; border: 1px solid #dfe5e3; border-radius: 22px; background: #fff; }
body .process-composition > article:nth-child(even) { background: color-mix(in srgb, var(--page-accent-soft) 72%, #fff); }
body .process-composition > article > span { margin-bottom: 38px; }
body .process-composition p { font-size: .9rem; line-height: 1.67; }

body .criterion-board { grid-template-columns: repeat(5,minmax(0,1fr)); overflow: hidden; border-radius: 24px; box-shadow: 0 24px 70px rgba(8,30,41,.07); }
body .criterion-board article { padding: 30px 24px; background: #fff; }
body .criterion-board article:nth-child(even) { background: #f7f9f8; }
body .seo-table-wrap { overflow: hidden auto; border-radius: 24px; box-shadow: 0 24px 70px rgba(8,30,41,.07); }
body .seo-table th { background: var(--page-accent-strong); }
body .seo-table td { background: #fff; }
body .decision-split { border: 0; border-radius: 28px; box-shadow: 0 28px 80px rgba(8,30,41,.11); }
body .seo-faq details { border-radius: 16px; background: #fff; box-shadow: 0 10px 32px rgba(8,30,41,.045); }
body .seo-related-link { background: #fff; }

@media (max-width:980px) {
  .seo-page .seo-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .seo-page .seo-tech-card { max-width: 680px; }
  body .factor-composition,
  body .factor-composition--bento,
  body .factor-composition--rail,
  body .factor-composition--stagger,
  body .factor-composition--ledger,
  body .factor-composition--tiles,
  body .factor-composition--editorial,
  body .process-composition,
  body .process-composition--v1,
  body .process-composition--v2,
  body .process-composition--v3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body .criterion-board { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body .scene-module-grid { grid-template-columns: 1fr; }
  body .scene-module-copy { max-width: 760px; }
}

@media (max-width:720px) {
  body .seo-content { width: min(100% - 28px,1240px); padding-top: 58px; }
  .seo-page .seo-hero h1 { font-size: clamp(2.75rem,13vw,4.7rem); }
  body .module-intro-grid { grid-template-columns: 1fr; padding: 28px 20px; border-radius: 24px; }
  body .factor-composition,
  body .factor-composition--bento,
  body .factor-composition--rail,
  body .factor-composition--stagger,
  body .factor-composition--ledger,
  body .factor-composition--tiles,
  body .factor-composition--editorial,
  body .process-composition,
  body .process-composition--v1,
  body .process-composition--v2,
  body .process-composition--v3,
  body .criterion-board { grid-template-columns:1fr; }
  body .factor-composition .factor-panel,
  body .process-composition > article { min-height:0; }
  body .scene-module-grid { grid-template-columns:1fr; }
  body .seo-module--scene { padding-inline:14px; }
  body .scene-module-copy { padding-inline:8px; }
}

/* Globale Kontrastgarantie: helle redaktionelle Flaechen verwenden dunkle Schrift. */
body .seo-content .seo-module.seo-module--scene {
  color: #10232d;
  background: #fff;
}

body .seo-content .seo-module.seo-module--scene .scene-module-copy h2,
body .seo-content .seo-module.seo-module--scene .scene-module-copy h3,
body .seo-content .seo-module.seo-module--scene .scene-module-copy > p,
body .seo-content .seo-module.seo-module--scene .scene-module-copy li,
body .seo-content .seo-module.seo-module--scene .scene-module-copy a:not(.button) {
  color: #10232d;
}

body .seo-content .seo-module.seo-module--scene .scene-module-copy > p:not(.seo-kicker) {
  color: #41565f;
}

body .seo-content .seo-module.seo-module--scene .scene-module-copy li {
  border-color: #dfe5e3;
}

/* Premium-Rahmen fuer alle sieben Visual-Module statt randloser Vollbreite. */
body .seo-content .seo-module.seo-module--visual {
  position: relative;
  isolation: isolate;
  width: min(100%, 1240px);
  margin: clamp(44px, 6vw, 82px) auto;
  padding: clamp(64px, 8vw, 104px) clamp(28px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: clamp(28px, 3.2vw, 44px);
  box-shadow: 0 34px 96px rgba(5,31,42,.18);
}

body .seo-content .seo-module.seo-module--visual .module-heading {
  max-width: 1040px;
  margin-bottom: clamp(42px, 5vw, 64px);
}

body .seo-content .seo-module.seo-module--visual .module-heading h2 {
  max-width: 980px;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  line-height: 1.01;
  overflow-wrap: anywhere;
}

body .seo-content .seo-module.seo-module--visual .intent-visual {
  border-radius: clamp(20px, 2.4vw, 30px);
  box-shadow: 0 24px 72px rgba(0,0,0,.24);
}

body .seo-content .seo-module.seo-module--visual.module-look-ruled::after {
  inset: 20px;
  border-radius: calc(clamp(28px, 3.2vw, 44px) - 12px);
}

@media (max-width:720px) {
  body .seo-content .seo-module.seo-module--visual {
    margin-block: 28px;
    padding: 48px 20px;
    border-radius: 24px;
  }

  body .seo-content .seo-module.seo-module--visual .module-heading h2 {
    font-size: clamp(2rem, 10vw, 3.15rem);
  }

  body .seo-content .seo-module.seo-module--visual.module-look-ruled::after {
    inset: 10px;
    border-radius: 17px;
  }
}

/* Hero ohne die entfernte technische Zusammenfassung. */
body .seo-page .seo-hero--text-only .seo-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(500px, 64vh, 650px);
}

body .seo-page .seo-hero--text-only .seo-hero__inner > div:first-child {
  width: min(940px, 100%);
}

@media (max-width:720px) {
  body .seo-page .seo-hero--text-only .seo-hero__inner {
    min-height: 0;
  }
}

/* Ruhigere Headlines fuer alle generierten Unterseiten. */
.seo-page .seo-hero h1 {
  font-size: clamp(2.7rem, 5.35vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

body .seo-content h2 {
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

body .scene-module-copy h2 {
  font-size: clamp(1.95rem, 2.85vw, 3rem);
}

body .seo-content .seo-module.seo-module--visual .module-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
}

@media (max-width:720px) {
  .seo-page .seo-hero h1 {
    font-size: clamp(2.1rem, 9.2vw, 2.55rem);
    line-height: 1.06;
    letter-spacing: -.03em;
  }

  body .seo-content h2,
  body .scene-module-copy h2,
  body .seo-content .seo-module.seo-module--visual .module-heading h2 {
    font-size: clamp(1.75rem, 7.2vw, 2.15rem);
    line-height: 1.1;
    letter-spacing: -.025em;
  }
}
