/* KetoSana CI · Grundbausteine. Alle Sektionen bauen auf diesen Klassen auf.
   Sektions-CSS liegt in css/sektionen/ und nutzt nur Klassen mit Präfix .s-<name>. */

@font-face {
  font-family: "TikTok Sans";
  src: url("../schrift/TikTokSans.woff2") format("woff2");
  font-weight: 300 900;
  font-stretch: 75% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../schrift/InstrumentSerif-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: var(--t-text);
  line-height: 1.55;
  color: var(--tinte);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

/* Überschriften: schmal und fett wie die Wortmarke auf dem Etikett.
   <em> setzt ein Wort in kursiver Serife ab, das ist der Akzent der Marke. */
h1, h2, h3, h4 { margin: 0; font-weight: 800; font-stretch: 80%; line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-stretch: 88%; line-height: 1.15; font-weight: 750; }
h1 em, h2 em {
  font-family: var(--schrift-akzent);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-size: 1.08em;
  letter-spacing: -0.015em;
  color: var(--akzent);
}

/* Sektion und Flächen. Jede Fläche setzt ihre eigenen Variablen. */
.sek {
  --bg: var(--weiss);
  --fg: var(--tinte);
  --fg-2: var(--tinte-2);
  --akzent: var(--bernstein-500);
  --akzent-klein: var(--bernstein-600); /* kleine Schrift braucht mehr Kontrast als das große Akzentwort */
  --linie: rgba(20, 32, 26, 0.12);
  --flaeche: var(--papier);
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--sek-abstand);
  position: relative;
}
.sek--papier { --bg: var(--papier); --flaeche: var(--weiss); }
.sek--gruen { --bg: var(--gruen-50); --flaeche: var(--weiss); }
.sek--dunkel {
  --bg: var(--gruen-900);
  --fg: var(--papier);
  --fg-2: rgba(247, 242, 231, 0.74);
  --akzent: var(--gold-400);
  --akzent-klein: var(--gold-400);
  --linie: rgba(247, 242, 231, 0.16);
  --flaeche: rgba(247, 242, 231, 0.06);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(47, 122, 85, 0.35), transparent 60%),
    var(--gruen-900);
}
.wrap { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.wrap--schmal { width: min(100% - 2 * var(--rand), 820px); margin-inline: auto; }

/* Sektionskopf: Etikett, Überschrift, Unterzeile */
.kopfzeile { display: grid; gap: var(--a-4); justify-items: center; text-align: center; max-width: 760px; margin: 0 auto var(--a-7); }
.kopfzeile--links { justify-items: start; text-align: left; margin-inline: 0; }
.kopfzeile p { color: var(--fg-2); font-size: var(--t-gross); max-width: var(--breite-text); }

/* Etikett: kleine Zeile über der Überschrift, mit Tropfen davor */
.etikett {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-mini); font-weight: 750; font-stretch: 100%;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--akzent-klein, var(--akzent));
}
.etikett::before {
  content: ""; width: 9px; height: 12px; flex: none;
  background: currentColor;
  clip-path: path("M4.5 0 C6 3.2 9 5.6 9 8 A4.5 4.5 0 0 1 0 8 C0 5.6 3 3.2 4.5 0 Z");
}

/* Knöpfe. Gold ist die Kaufhandlung, es gibt pro Sichtfeld nur einen goldenen Knopf. */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: 0.8rem 1.9rem;
  border: 0; border-radius: var(--r-pille); cursor: pointer;
  font-weight: 800; font-stretch: 86%; font-size: 1.125rem; line-height: 1.15; text-decoration: none; text-align: center;
  transition: transform var(--dauer) var(--kurve), box-shadow var(--dauer) var(--kurve), background var(--dauer) var(--kurve);
}
.btn small { font-weight: 500; font-stretch: 100%; font-size: var(--t-mini); opacity: 0.82; letter-spacing: 0.01em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--gruen-950); box-shadow: var(--schatten-gold); }
.btn--gold:hover { background: linear-gradient(180deg, var(--gold-200), var(--gold-400)); }
.btn--gruen { background: var(--gruen-800); color: var(--papier); box-shadow: var(--schatten-2); }
.btn--gruen:hover { background: var(--gruen-700); }
.btn--hell { background: var(--weiss); color: var(--gruen-900); box-shadow: var(--schatten-2); }
.btn--linie { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--linie); }
.btn--breit { width: 100%; }

/* Karte */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-m); padding: var(--a-5); }
.karte--schatten { box-shadow: var(--schatten-1); }

/* Pille: kleine Marke für Tags und Hinweise */
.pille {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pille);
  font-size: var(--t-mini); font-weight: 700; letter-spacing: 0.02em; line-height: 1.2;
  background: var(--gruen-100); color: var(--gruen-800);
}
.pille--gold { background: var(--gold-100); color: var(--bernstein-800); }
.pille--dunkel { background: var(--gruen-800); color: var(--gold-200); }
.pille--ziegel { background: var(--ziegel-100); color: var(--ziegel); }

/* Hakenliste */
.haken { display: grid; gap: var(--a-3); }
.haken li { position: relative; padding-left: 30px; color: var(--fg-2); }
.haken li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gruen-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23faf0cf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Aufklapper, ohne Skript: <details class="akk"><summary>Frage</summary><div class="akk__inhalt">…</div></details> */
.akk { border-bottom: 1px solid var(--linie); }
.akk summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--a-4);
  padding: var(--a-4) 0; cursor: pointer; list-style: none;
  font-weight: 700; font-stretch: 92%;
}
.akk summary::-webkit-details-marker { display: none; }
.akk summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--linie);
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
  transition: transform var(--dauer) var(--kurve);
}
.akk[open] summary::after { transform: rotate(45deg); }
.akk__inhalt { padding: 0 0 var(--a-5); color: var(--fg-2); max-width: var(--breite-text); }
.akk__inhalt > * + * { margin-top: var(--a-3); }

/* Kleingedrucktes und Quellenhinweis */
.fein { font-size: var(--t-mini); color: var(--fg-2); line-height: 1.5; }

/* Einblenden beim Scrollen, nur wo der Browser es ohne Skript kann */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .zeig { animation: zeig linear both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
  }
}
@keyframes zeig { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .akk summary::after { transition: none; }
}

.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
