/* ── Schriften (lokal) ─────────────────────────────────────────── */
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ── Grundwerte ────────────────────────────────────────────────── */
:root {
  --papier: #F6F8F5;
  --flaeche: #FFFFFF;
  --schrift: #202E2A;
  --schrift-2: #52635D;
  --gruen: #285B48;
  --gruen-dunkel: #1E4637;
  --auf-gruen: #FFFFFF;
  --linie: #D5DDD8;
  --getoent: #E7EDE8;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rand: clamp(1.25rem, 5vw, 3rem);
  --abstand: clamp(4rem, 10vw, 7.5rem);
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--schrift);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }

p, ul, ol, dl { margin: 0 0 1.1em; }
p { max-width: 62ch; text-wrap: pretty; }

a { color: var(--gruen); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gruen-dunkel); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 70rem; margin-inline: auto; padding-inline: var(--rand); }
.schmal > * { max-width: 40rem; }

.skip {
  position: absolute; left: var(--rand); top: -4rem;
  background: var(--gruen); color: var(--auf-gruen);
  padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { top: 0.5rem; color: var(--auf-gruen); }

/* Kleine Auszeichnung über Überschriften */
.marke {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--schrift-2);
}
p.marke { margin-bottom: 0.9rem; }

.lead { font-size: 1.3rem; line-height: 1.55; }

/* ── Kopf ──────────────────────────────────────────────────────── */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf__innen {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.25rem 2rem; padding-block: 1.1rem;
}
.wortmarke {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  color: var(--schrift); text-decoration: none;
}
.nav { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding-block: 0.5rem;
  color: var(--schrift); text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--gruen); }

/* ── Handlungen ────────────────────────────────────────────────── */
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.75rem; margin: 2rem 0 0; max-width: none; }
.aktionen__notiz { font-size: 0.95rem; color: var(--schrift-2); }

.knopf {
  display: inline-block;
  background: var(--gruen); color: var(--auf-gruen);
  font-weight: 600; text-decoration: none;
  padding: 0.85rem 1.6rem; border-radius: 3px;
  transition: background-color 0.15s;
}
.knopf:hover { background: var(--gruen-dunkel); color: var(--auf-gruen); }

.textlink { font-weight: 600; }
.textlink::after { content: " →"; }

/* ── Titelblatt (Startseite) ───────────────────────────────────── */
.titelblatt { padding-block: clamp(4.5rem, 14vw, 10rem) var(--abstand); }
.titelblatt__name {
  font-size: clamp(2.75rem, 10vw, 6.5rem);
  font-weight: 400; line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: 0.55em;
}
.titelblatt__name span { display: block; color: var(--gruen); }
.titelblatt__lead { font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.5; max-width: 34em; }
.titelblatt__lead .marke { display: block; margin-bottom: 0.5rem; }

/* ── Kapitel ───────────────────────────────────────────────────── */
/* Die gestrichelte Linie ist eine Naht: das eine Materialdetail der Seite. */
.kapitel { padding-block: var(--abstand); border-top: 2px dashed var(--linie); }
.seitenkopf { padding-block: clamp(3.5rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem); }
.buchkopf { padding-block: clamp(2.5rem, 7vw, 5rem) var(--abstand); }
.kapitel h2:not(:first-child) { margin-top: 2.2em; }
.marke + h2:not(:first-child) { margin-top: 0; }

.doppelseite { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 52rem) {
  .doppelseite { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.medienflaeche {
  background: var(--getoent);
  border-radius: 4px;
  padding: clamp(2rem, 7vw, 4.5rem) 1.5rem;
  display: grid; place-items: center;
}

/* ── Cover ─────────────────────────────────────────────────────── */
.cover {
  display: block; width: min(100%, 17rem); height: auto;
  border-radius: 2px 5px 5px 2px;
  box-shadow: 0 1px 2px rgba(32, 46, 42, 0.2), 0 18px 36px -14px rgba(32, 46, 42, 0.45);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.medienflaeche:hover .cover { transform: rotate(0deg); }

/* ── „Was brauchen Sie heute?“ ─────────────────────────────────── */
.kapitel--bedarf { background: var(--flaeche); }
.bedarf__kopf h2 { font-size: clamp(2rem, 5.5vw, 3.25rem); margin-top: 0.4em; }
.bedarf__kopf p { color: var(--schrift-2); }

.bedarf { margin-top: 2.25rem; }
.bedarf__wahl { display: none; }
.js .bedarf__wahl { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }

.bedarf__knopf {
  font: inherit; font-family: var(--serif); font-size: 1.3rem; text-align: left;
  color: var(--schrift); background: var(--papier);
  border: 1px solid var(--linie); border-radius: 4px;
  padding: 1.25rem 1.4rem; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.bedarf__knopf:hover { border-color: var(--gruen); }
.bedarf__knopf[aria-expanded="true"] { background: var(--gruen); border-color: var(--gruen); color: var(--auf-gruen); }
.bedarf__knopf[aria-expanded="true"]:focus-visible { outline-offset: 4px; }

.bedarf__felder { display: grid; gap: 1.5rem; }
.bedarf__feld {
  border-left: 3px solid var(--gruen);
  padding: 0.25rem 0 0.25rem clamp(1.1rem, 3vw, 2rem);
}
.bedarf__feld > :last-child { margin-bottom: 0; }
.bedarf__feld[hidden] { display: none; }
.js .bedarf__feld h3 { font-size: 1.6rem; }
.js .bedarf__feld:not([hidden]) { animation: einblenden 0.35s ease both; }

.bedarf__dazu-titel { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--schrift-2); margin-bottom: 0.6rem; }
.bedarf__dazu { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bedarf__dazu li { background: var(--getoent); border-radius: 3px; padding: 0.3rem 0.8rem; font-size: 1rem; }

.bedarf__hinweis { margin: 2rem 0 0; font-size: 0.95rem; color: var(--schrift-2); }

@media (min-width: 52rem) {
  .js .bedarf__wahl { grid-template-columns: repeat(3, 1fr); }
  html:not(.js) .bedarf__felder { grid-template-columns: repeat(3, 1fr); }
}

@keyframes einblenden {
  from { opacity: 0; transform: translateY(8px); }
}

/* ── Buchseite ─────────────────────────────────────────────────── */
.bereiche {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; gap: 1px; background: var(--linie);
  border: 1px solid var(--linie); border-radius: 4px; overflow: hidden;
  counter-reset: bereich;
}
@media (min-width: 44rem) { .bereiche { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .bereiche { grid-template-columns: repeat(6, 1fr); }
  .bereich { grid-column: span 2; }
  .bereich:nth-child(4), .bereich:nth-child(5) { grid-column: span 3; }
}
.bereich {
  background: var(--flaeche); padding: 1.75rem 1.5rem;
  counter-increment: bereich; scroll-margin-top: 1.5rem;
}
.bereich::before {
  content: counter(bereich);
  display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--gruen);
  margin-bottom: 0.6rem;
}
.bereich p { margin: 0; font-size: 1.05rem; }
.bereich:target { background: var(--getoent); box-shadow: inset 0 3px 0 var(--gruen); }

.liste { list-style: none; padding: 0; }
.liste li { padding: 0.7rem 0; border-bottom: 1px solid var(--linie); }
.liste li:first-child { border-top: 1px solid var(--linie); }

.daten { margin-bottom: 0; }
.daten div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
.daten div:first-child { border-top: 1px solid var(--linie); }
.daten dt { color: var(--schrift-2); }
.daten dd { margin: 0; }

/* ── Abschluss und Fuß ─────────────────────────────────────────── */
.abschluss { background: var(--getoent); padding-block: var(--abstand); }

.rechtstext h2 { font-size: 1.35rem; }
.rechtstext a { overflow-wrap: anywhere; }

.fuss { border-top: 1px solid var(--linie); font-size: 1rem; color: var(--schrift-2); }
.fuss__innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.75rem; }
.fuss__links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.fuss a { color: inherit; display: inline-block; padding-block: 0.4rem; }

/* ── Abschnitts-Enthüllung ─────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.ist-da { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover, .knopf, .bedarf__knopf { transition: none; }
  .js .bedarf__feld:not([hidden]) { animation: none; }
}
