/* Shared layout and type for the new public information pages. */
.content-page-intro,
.content-page-section {
  --subpage-reading-width: 64rem;
}

.content-page-intro {
  padding: clamp(3.5rem, 8vw, 7rem) max(1.25rem, calc((100vw - var(--subpage-reading-width)) / 2)) 3rem;
}

.content-page-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.8rem;
  color: var(--color-text-secondary);
  font: 600 0.72rem/1.2 'Open Sans',Arial,sans-serif;
  letter-spacing: 0.16em;
}

.content-page-intro .eyebrow::before {
  width: 1.8rem;
  height: 1px;
  background: var(--color-text-secondary);
  content: "";
}

.content-page-title {
  max-width: 19ch;
  margin: 0;
  font: 400 var(--text-page-title) / 1.04 Georgia, serif;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.content-page-lead {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  font: clamp(1.2rem, 2vw, 1.45rem) / 1.55 'Open Sans',Arial,sans-serif;
}

.content-page-section {
  padding: 1rem max(1.25rem, calc((100vw - var(--subpage-reading-width)) / 2)) var(--s6);
}

.content-page-section > .container {
  width: 100%;
  max-width: var(--subpage-reading-width);
  margin-inline: auto;
}

.content-page-section h2 {
  margin: 0 0 1rem;
  font: 400 var(--text-h2)/1.12 Georgia, serif;
  letter-spacing: -0.02em;
}

.content-page-section p {
  line-height: 1.7;
}

/* Step-by-step figures on the "Was ist Kernfusion?" page: black and white
   circles only — protons solid, neutrons hollow, electrons small dots. */
.fx-section {
  --fx-surface: #f5f4ed;
}

.fx-section + .fx-section {
  padding-top: var(--s4);
}

.fx-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: fx-step;
}

.fx-step {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--fx-surface);
  counter-increment: fx-step;
}

.fx-step h3 {
  display: flex;
  gap: 0.4rem;
  margin: 1rem 0 0.4rem;
  font: 600 1.15rem / 1.3 Georgia, serif;
}

.fx-part h3 {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
  font: 600 1.15rem / 1.3 Georgia, serif;
}

.fx-step h3::before,
.fx-part h3::before {
  content: counter(fx-step) ".";
}

.fx-step p,
.fx-part p {
  margin: 0;
  font-size: 1rem;
}

.fx-plant {
  margin-top: 2rem;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
}

.fx-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: fx-step;
}

.fx-part {
  counter-increment: fx-step;
}

.fx-marker-num {
  fill: var(--color-text-primary);
  stroke: var(--fx-surface);
  stroke-width: 5px;
  stroke-linejoin: round;
  paint-order: stroke;
  font: 700 20px Georgia, serif;
  text-anchor: middle;
  dominant-baseline: central;
}

.fx-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  background: var(--fx-surface);
}

.fx-line {
  fill: none;
  stroke: var(--color-text-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-thin { stroke-width: 1.4; }
.fx-hair { stroke-width: 1; }
.fx-dash { stroke-dasharray: 5 6; }
.fx-solid,
.fx-proton { fill: var(--color-text-primary); }

.fx-proton,
.fx-hollow {
  stroke: var(--color-text-primary);
  stroke-width: 2;
}

.fx-hollow { fill: var(--fx-surface); }

.fx-label {
  fill: var(--color-text-primary);
  font: 400 17px Georgia, serif;
  text-anchor: middle;
  dominant-baseline: central;
}

.fx-label-sm { font-size: 14px; }
.fx-fill { fill: var(--fx-surface); }
.fx-coil { stroke-width: 2.4; }
.fx-beam { stroke-width: 2.4; }

/* Reactor types: three sketch cards, then a comparison table. */
.fx-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.fx-type {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--fx-surface);
}

.fx-type h3 {
  margin: 1rem 0 0.4rem;
  font: 600 1.15rem / 1.3 Georgia, serif;
}

.fx-type p {
  margin: 0;
  font-size: 1rem;
}


.fx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font: 0.95rem 'Open Sans',Arial,sans-serif;
}

.fx-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fx-key {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
}

.fx-key::before {
  content: "";
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-text-primary);
  border-radius: 50%;
  box-sizing: border-box;
}

.fx-key-p::before { background: var(--color-text-primary); }
.fx-key-n::before { background: var(--fx-surface); }
.fx-key-e::before { width: 0.5rem; height: 0.5rem; background: var(--color-text-primary); }

.press-download-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-bg);
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.06);
}

.press-download-card h2 {
  margin: 0 0 0.65rem;
  font: 600 1.2rem / 1.3 Georgia, serif;
}

.press-download-card p {
  margin: 0;
}

.content-page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

/* Simulation maths page: display equations, symbol lists, the fuel table.
   Formulas use KaTeX's Computer Modern fonts (MIT, see fonts/KaTeX-LICENSE.txt). */
@font-face {
  font-family: 'KaTeX Main';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/KaTeX_Main-Regular.woff2) format('woff2');
}

@font-face {
  font-family: 'KaTeX Math';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/KaTeX_Math-Italic.woff2) format('woff2');
}

/* Formulas are MathML (tools/render_math.py), drawn natively with this math font. */
@font-face {
  font-family: 'Latin Modern Math';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/latinmodern-math.woff2) format('woff2');
}

.math-page {
  --math-font: 'KaTeX Main', 'Cambria Math', Georgia, serif;
}

.math-page math {
  font-family: 'Latin Modern Math', math;
}

/* inline formulas in running text sit a touch larger, as the math font runs small */
.math-page p > math {
  font-size: 1.1em;
}

.math-page h2 {
  margin-top: var(--s5);
}

.math-page h2:first-child {
  margin-top: 0;
}

.math-eq {
  max-width: none;
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-bg);
  font-size: 1.3rem;
  text-align: center;
}

.math-eq math {
  margin: 0;
}

/* browsers ignore MathML's columnalign; case distinctions line up on the left */
.math-page mtd[columnalign="left"] {
  text-align: left;
}

.math-eq + .math-eq {
  margin-top: -0.5rem;
}

.math-page var {
  font-family: 'KaTeX Math', var(--math-font);
  font-style: italic;
}

.math-page p > var,
.math-page dd > var {
  font-size: 1.08em;
}

.math-fn {
  font-style: normal;
}

.math-defs {
  display: grid;
  gap: 0.45rem;
  margin: 1.25rem 0;
}

.math-defs > div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
}

.math-defs dt {
  font: 1.2rem / 1.6 var(--math-font);
  text-align: right;
}

.math-defs dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.math-table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
}

.math-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.math-table th,
.math-table td {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  white-space: nowrap;
}

.math-table td:first-child {
  font-size: 1.15rem;
}

.math-table thead th {
  border-bottom-color: var(--color-text-primary);
  font: 600 1rem / 1.3 Georgia, serif;
}

/* Literature: what a paper explains, then its citation and DOI link; rows ruled like the table above */
.math-page h3 {
  margin: var(--s4) 0 0.75rem;
}

.math-refs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.math-refs li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.math-refs li:first-child {
  border-top: 1px solid var(--color-border);
}

.math-ref-note {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  line-height: 1.6;
}

.math-ref-cite {
  container-type: inline-size;
  max-width: none;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* the DOI link never breaks; it moves to the next line as a whole. On the narrowest phones it shrinks
   so the longest one (about 23em) still fits the width of its citation (cqi, see .math-ref-cite). */
.math-ref-doi {
  color: var(--color-text-primary);
  font-size: min(1em, calc(100cqi / 23.5));
  white-space: nowrap;
}

/* The literature folds away behind its heading, with the FAQ's + / − on the right */
.math-lit {
  margin-top: var(--s5);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.math-lit > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0.25rem;
  list-style: none;
  cursor: pointer;
}

.math-lit > summary::-webkit-details-marker {
  display: none;
}

.math-lit > summary h2 {
  margin: 0;
}

.math-lit > summary::after {
  content: "+";
  flex: none;
  font: 1.5rem 'Open Sans', Arial, sans-serif;
}

.math-lit[open] > summary::after {
  content: "\2212";
}

.math-lit > p {
  margin-top: 0;
}

.math-lit > .math-refs:last-child {
  margin-bottom: 1.5rem;
}

/* Buttons side by side, all as wide as the widest one; stacked on phones. */
.cta-pair {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: max-content;
  max-width: 100%;
  gap: 0.75rem;
}

/* the pill is inline-flex, which drops the space before its arrow */
.content-page-cta .pill,
.press-downloads .pill {
  gap: 0.5rem;
}

.demands-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: demands;
  /* every card as tall as the tallest one */
  grid-auto-rows: 1fr;
}

.demands-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.15rem 1.5rem 1.15rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: 0.8rem;
  background: var(--color-bg);
  counter-increment: demands;
}

/* The numerals span the card's full height. Georgia's figures are old-style,
   so 3, 4, 5 and 7 hang below the baseline: the line box is a full em to keep
   them inside the card. A fixed width keeps every text column at the same x. */
.demands-list li::before {
  content: counter(demands);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0.62em;
  color: var(--color-text-primary);
  font: 400 clamp(3.6rem, 9vw, 7.2rem) / 1 Georgia, serif;
  /* Georgia has no lighter weight, and at this size its regular reads as
     bold. A hairline stroke in the card colour shaves every stroke thinner. */
  -webkit-text-stroke: 0.024em var(--color-paper);
  transform: translate(var(--nx, 0), var(--ny, 0));
}

/* Old-style figures sit at three heights (1 2 short, 3 4 5 7 descending,
   6 ascending), so centring the line box does not centre the ink. These
   offsets move each glyph's measured ink box to the middle of its cell. */
.demands-list li:nth-child(1) { --nx: -0.019em; --ny: -0.076em; }
.demands-list li:nth-child(2) { --nx: -0.002em; --ny: -0.076em; }
.demands-list li:nth-child(3) { --nx: 0.011em; --ny: -0.17em; }
.demands-list li:nth-child(4) { --nx: 0.009em; --ny: -0.17em; }
.demands-list li:nth-child(5) { --nx: 0.006em; --ny: -0.178em; }
.demands-list li:nth-child(6) { --nx: -0.006em; --ny: 0.003em; }
.demands-list li:nth-child(7) { --nx: -0.023em; --ny: -0.178em; }

.demands-list h2 {
  margin: 0 0 0.3rem;
  font: 600 1.15rem / 1.35 Georgia, serif;
}

.demands-list p {
  margin: 0;
}

.press-hero {
  padding: 0 max(1.25rem, calc((100vw - var(--content)) / 2));
  background: linear-gradient(112deg, #baa1cc 0%, #a8b8dc 55%, #7acbe3 100%);
}

.press-hero-inner {
  display: flex;
  min-height: clamp(18rem, 35vw, 31rem);
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(250, 249, 245, 0.25);
  border-radius: 1rem 1rem 0 0;
}

.press-hero .eyebrow {
  margin: 0 0 0.8rem;
  font: 600 0.8rem 'Open Sans',Arial,sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.press-hero .content-page-title {
  font-size: clamp(3.2rem, 6vw, 4.5rem);
}

.press-tabs {
  display: flex;
  flex-wrap: wrap;
  background: rgba(250, 249, 245, 0.72);
  border-bottom: 1px solid var(--color-border);
}

.press-tabs a {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  padding: 0.8rem 1.25rem;
  border-right: 1px solid rgba(26, 26, 26, 0.18);
  font: 600 0.88rem 'Open Sans',Arial,sans-serif;
  text-decoration: none;
}

.press-tabs a:hover,
.press-tabs a:focus-visible {
  background: var(--color-paper);
}

.press-service-copy {
  max-width: var(--subpage-reading-width);
}

.press-service-intro {
  padding-top: clamp(3rem, 7vw, 5.5rem);
}

.press-service-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.8rem;
  color: var(--color-text-secondary);
  font: 600 0.72rem/1.2 'Open Sans',Arial,sans-serif;
  letter-spacing: 0.16em;
}

.press-service-intro .eyebrow::before {
  width: 1.8rem;
  height: 1px;
  background: var(--color-text-secondary);
  content: "";
}

.press-service-intro .content-page-title {
  margin-bottom: 1.4rem;
}

.press-download-card {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.press-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.press-downloads .pill {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.65rem;
  font: 600 0.92rem / 1.2 'Open Sans', Arial, sans-serif;
  background: linear-gradient(180deg, #454545 0%, #303030 50%, #222 100%);
  border-color: #494949;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 12px rgba(0, 0, 0, 0.14);
}

.press-downloads .pill:hover {
  background: linear-gradient(180deg, #555 0%, #3a3a3a 52%, #292929 100%);
  border-color: #626262;
  color: #fff;
}

.press-contact {
  padding-top: 0;
}

/* Keep the moved FAQ in the same reading column as the Fusion explanation. */
.content-page-faq {
  --subpage-reading-width: 64rem;
}

.content-page-faq .container {
  width: 100%;
  max-width: var(--subpage-reading-width);
  margin-inline: auto;
}

/* The page's light surface is #f5f4ed rather than white. */
.content-page-faq .faq-trigger {
  background: linear-gradient(180deg, #fff9f4 0%, #efede5 55%, #dedbd3 100%);
}

.content-page-faq .faq-trigger:hover,
.content-page-faq .faq-trigger:focus-visible {
  background: linear-gradient(180deg, #faf9f5 0%, #f2f0e9 55%, #e8e5dd 100%);
}

.content-page-faq .faq-trigger[aria-expanded="true"] {
  background: linear-gradient(180deg, #454545 0%, #303030 52%, #222 100%);
}

.content-page-faq .section-heading {
  margin-bottom: 2rem;
}

/* Use a restrained page title and tab bar instead of the oversized gradient masthead. */
.press-hero {
  padding-inline: max(1.25rem, calc((100vw - var(--content)) / 2));
  background: transparent;
}

.press-hero-inner {
  min-height: 0;
  padding: 1.25rem 0 1rem;
  background: transparent;
  border-radius: 0;
}

.press-hero .content-page-title {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
}

@media (max-width: 56rem) {
  .fx-parts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fx-types {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .fx-steps,
  .fx-parts {
    grid-template-columns: 1fr;
  }

  .cta-pair {
    grid-auto-flow: row;
    width: 100%;
  }

  /* too narrow for a numeral as tall as the card: stack it above the text */
  .demands-list li {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.9rem;
  }

  .demands-list li::before {
    align-self: start;
    font-size: 4.5rem;
  }

  .press-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .press-tabs a {
    min-height: 3rem;
    border-right: 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.14);
  }
}

.a11y-note{padding:1rem 1.25rem;border-left:.1875rem solid var(--color-accent-warm);background:var(--color-paper);font-size:1rem}

/* Kernforderungen print view: the page alone, laid out like the PDF. */
@media print {
  @page { size: A4; margin: 16mm 18mm; }

  html[data-page="kernforderungen"] body { background: #fff; }

  html[data-page="kernforderungen"] :is(.skip-link, .site-header, .site-footer,
    .page-back-wrap, .content-page-cta, #cursor-dot, #cursor-ring) {
    display: none !important;
  }

  html[data-page="kernforderungen"] main::before {
    content: "Bundesverband für Kernfusion e.V.";
    display: block;
    padding-bottom: 5mm;
    border-bottom: 0.3mm solid #1a1a1a;
    font: 11pt Georgia, serif;
  }

  html[data-page="kernforderungen"] .content-page-intro,
  html[data-page="kernforderungen"] .content-page-section {
    padding: 0;
  }

  html[data-page="kernforderungen"] .content-page-title {
    margin-top: 10mm;
    font-size: 30pt;
  }

  html[data-page="kernforderungen"] .content-page-lead {
    margin: 3mm 0 8mm;
    font-size: 12pt;
  }

  html[data-page="kernforderungen"] .demands-list {
    gap: 0;
    grid-auto-rows: auto;
  }

  html[data-page="kernforderungen"] .demands-list li {
    grid-template-columns: 16mm minmax(0, 1fr);
    gap: 5mm;
    padding: 3.5mm 0;
    border: 0;
    border-top: 0.2mm solid #d4d0c8;
    border-radius: 0;
    background: none;
    break-inside: avoid;
  }

  html[data-page="kernforderungen"] .demands-list li:last-child {
    border-bottom: 0.2mm solid #d4d0c8;
  }

  html[data-page="kernforderungen"] .demands-list li::before {
    align-self: center;
    font-size: 34pt;
    -webkit-text-stroke: 0;
  }

  html[data-page="kernforderungen"] .demands-list :is(h2, p) {
    font-size: 10.5pt;
  }

  html[data-page="kernforderungen"] .demands-list h2 {
    font-size: 12pt;
  }
}
