/* Die Funkenherzen – Stylesheet
   Farben und Schriften vom Umschlag Band 1. Keine Inline-Styles (CSP). */

@font-face {
  font-family: "Sniglet";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/sniglet-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light only;
  --creme: #FFF8EE;
  --tinte: #3A2A1E;
  --tinte-dunkel: #1F150E;
  --neben: #6B5A4A;
  --rot: #E8423F;
  --gold: #F2A93B;
  --linie: rgba(58, 42, 30, 0.16);
  --rahmen: rgba(58, 42, 30, 0.14);
  --gutter: clamp(16px, 4.2vw, 48px);
  --abstand-oben: clamp(56px, 8vw, 104px);
  --schrift-titel: "Sniglet", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --schrift-text: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--tinte); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--tinte-dunkel); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--tinte); outline-offset: 4px; border-radius: 6px; }

.fh-nowrap { white-space: nowrap; }
.fh-tap { display: inline-flex; align-items: center; min-height: 44px; }

/* Abschnitte */
.fh-hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter) 0;
}
.fh-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--abstand-oben) var(--gutter) 0;
}

/* Überschriften */
.fh-h1 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: clamp(30px, 8.6vw, 64px);
  line-height: 1.05;
  color: var(--rot);
  text-wrap: balance;
}
.fh-h2 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  color: var(--tinte);
  text-wrap: balance;
}
.fh-h2--klein { font-size: clamp(24px, 3.2vw, 32px); }

/* Text */
.fh-lead {
  margin: 16px 0 0;
  max-width: 32em;
  font-size: clamp(20px, calc(14px + 1.2vw), 24px);
  line-height: 1.6;
}
.fh-lead--erst { margin-top: 0; }
.fh-tagline { margin: 12px 0 0; color: var(--neben); }
.fh-p { margin: 16px 0 0; max-width: 32em; }
.fh-statement {
  margin: clamp(20px, 3vw, 36px) 0 0;
  max-width: 24em;
  font-weight: 700;
  font-size: clamp(21px, calc(15px + 1.1vw), 26px);
  line-height: 1.45;
}
.fh-p--abstand { margin-top: 20px; }

/* Button */
.fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 14px;
  background: var(--tinte);
  color: var(--creme);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
}
.fh-btn:hover { background: var(--tinte-dunkel); color: var(--creme); }
.fh-btn:focus-visible { outline: 3px solid var(--tinte); outline-offset: 4px; }
.fh-actions { margin: 32px 0 0; }

/* Funken */
.fh-spark { position: absolute; pointer-events: none; }
.fh-spark--hero { top: clamp(14px, 2.5vw, 32px); right: var(--gutter); }
.fh-spark--leiste { top: -24px; right: 4px; }
.fh-spark--vignette { top: -4px; right: -14px; }

/* Hero: Cover groß */
.fh-hb {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "text" "cover" "cta";
  row-gap: 28px;
}
.fh-hb-text { grid-area: text; }
.fh-hb-cover { grid-area: cover; }
.fh-hb-cta { grid-area: cta; }
.fh-cover {
  display: block;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 1px solid var(--rahmen);
}

/* Band 1 */
.fh-band1 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(20px, 3vw, 36px);
}
.fh-band1-text { flex: 1 1 360px; min-width: 0; max-width: 640px; }
.fh-band1-fakten { flex: 1 1 300px; min-width: 0; max-width: 440px; }
.fh-fakten { list-style: none; margin: 0; padding: 0; }
.fh-fakten li { padding: 12px 0; border-top: 1px solid var(--linie); }
.fh-fakten li:last-child { border-bottom: 1px solid var(--linie); }

/* Blick ins Buch */
.fh-spreads {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 32px);
  max-width: 1040px;
  margin-top: clamp(20px, 3vw, 36px);
}
.fh-spread { display: block; width: 100%; border-radius: 10px; }

/* Die Sechs – mobil: 2 × 3 Porträts, Texte darunter */
.fh-leiste-wrap { position: relative; margin-top: clamp(32px, 4vw, 48px); }
.fh-leiste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 18px;
}
.fh-fig { display: contents; }
.fh-c-ronja { --ring: #FC4243; }
.fh-c-mila { --ring: #F2A93B; }
.fh-c-theo { --ring: #4FB8CD; }
.fh-c-ada { --ring: #9B6DD6; }
.fh-c-nuri { --ring: #5D7BD5; }
.fh-c-jaro { --ring: #7BC47F; }
.fh-kopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}
.fh-portrait {
  display: block;
  width: 100%;
  max-width: 176px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 5px solid var(--ring);
  background: var(--creme);
}
.fh-name {
  margin: 6px 0 0;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
}
.fh-beiname { margin: 0; font-size: 16px; line-height: 1.35; color: var(--neben); }
.fh-text { position: relative; margin: 0; padding-left: 26px; max-width: 32em; }
.fh-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ring);
}
.fh-k1 { grid-area: 1 / 1; }
.fh-k2 { grid-area: 1 / 2; }
.fh-k3 { grid-area: 1 / 3; }
.fh-k4 { grid-area: 2 / 1; }
.fh-k5 { grid-area: 2 / 2; }
.fh-k6 { grid-area: 2 / 3; }
.fh-t1 { grid-area: 3 / 1 / 4 / -1; margin-top: 14px; }
.fh-t2 { grid-area: 4 / 1 / 5 / -1; }
.fh-t3 { grid-area: 5 / 1 / 6 / -1; }
.fh-t4 { grid-area: 6 / 1 / 7 / -1; }
.fh-t5 { grid-area: 7 / 1 / 8 / -1; }
.fh-t6 { grid-area: 8 / 1 / 9 / -1; }

/* Band 2 */
.fh-band2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  max-width: 760px;
}
.fh-band2-text { flex: 1 1 280px; min-width: 0; }
.fh-band2-text .fh-p { margin-top: 12px; max-width: 30em; }
.fh-band2-bild { position: relative; order: -1; flex: 0 0 auto; }
.fh-vignette {
  display: block;
  width: clamp(132px, 16vw, 180px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 3px solid var(--rahmen);
}

/* Fußzeile */
.fh-footer { margin-top: clamp(64px, 10vw, 128px); border-top: 1px solid var(--linie); }
.fh-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 4.5vw, 56px) var(--gutter) clamp(40px, 5vw, 64px);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neben);
}
.fh-footer-inner p { margin: 12px 0 0; max-width: 33em; }
.fh-footer-inner p:first-child { margin-top: 0; }
.fh-footer-inner .fh-kontakt { margin-top: 8px; }
.fh-footer-nav { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 28px; }

/* Unterseiten: Impressum, Datenschutz, 404 */
.fh-recht {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(64px, 8vw, 104px);
}
.fh-recht > p:first-child { margin: 0; }
.fh-recht h1 {
  margin: clamp(32px, 5vw, 64px) 0 0;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.1;
  color: var(--rot);
}
.fh-recht h2 {
  margin: 40px 0 0;
  font-family: var(--schrift-titel);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
}
.fh-recht p { margin: 12px 0 0; max-width: 32em; }
.fh-recht .fh-meta { margin-top: 16px; color: var(--neben); }

/* Ab 640 px: Texte unter den Porträts (2 × 3) */
@media (min-width: 640px) {
  .fh-leiste { column-gap: 28px; row-gap: 48px; }
  .fh-fig { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .fh-portrait { border-width: 7px; }
  .fh-name { font-size: 22px; }
  .fh-text { padding-left: 0; margin-top: 0; }
  .fh-text::before { display: none; }
}

/* Ab 900 px: Cover rechts, Text und Button links */
@media (min-width: 900px) {
  .fh-hb {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: ". cover" "text cover" "cta cover" ". cover";
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 64px;
    row-gap: 32px;
  }
  .fh-h1 { font-size: clamp(36px, 4vw, 56px); }
}

/* Ab 1080 px: alle sechs in einer Reihe */
@media (min-width: 1080px) {
  .fh-leiste { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
