/* woX-Familie (woX.cool)
 * Gestaltung aus woKlo übernommen, mit den woStrom-Farben: Orange führt, Nachtblau schreibt,
 * Porzellan trägt, Fliesen als Bühne. Fredoka Bold für Titel und Buttons,
 * DM Sans für Text. Keine externen Anfragen, kein Tracking: Auch die
 * Schriften liegen auf dem eigenen Server (SIL OFL).
 */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --pink: #1f5fff;
  --pink-deep: #1745c4;
  --accent: #1745c4;
  --butter: #ffd45c;
  --wasserblau: #c9d7ff;
  --pflaume: #2a1230;
  --ink: #2a1230;
  --ink-soft: #6b5873;
  --paper: #f4f2ee;
  --paper-soft: #ffffff;
  --line: #d9cfdc;
  --tiles: url("fliesen-hell.svg");

  --radius: 20px;
  --wrap: 62rem;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Fredoka", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #9db6ff;
    --ink: #f4f2ee;
    --ink-soft: #cbbcd0;
    --paper: #2a1230;
    --paper-soft: #3b1e44;
    --line: #5a4363;
    --tiles: url("fliesen-dunkel.svg");
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 20px;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Kopf ---------------------------------------------------------------- */

.masthead {
  padding-block: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.brand .mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand span {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* Bühne --------------------------------------------------------------- */

/* Text auf Fliesen steht immer auf einer deckenden Porzellan-Tafel. */
.hero {
  margin-block: 28px 56px;
  padding: 12px;
  border-radius: 32px;
  background: var(--tiles) center / 384px auto repeat;
}

.hero-panel {
  padding: clamp(28px, 6vw, 56px);
  border-radius: 24px;
  background: var(--paper);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700;
}

.hero .claim {
  margin: 14px 0 0;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--pflaume);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Haupt-Button wie in der App: Pink mit Kante, Weiß nur in fetter Schrift ab 19 px. */
.button {
  display: inline-block;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 5px 0 var(--pink-deep);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--pink-deep);
}

.button.secondary {
  background: var(--paper-soft);
  box-shadow: inset 0 0 0 2px var(--ink-soft);
  color: var(--ink);
}

/* Abschnitte ---------------------------------------------------------- */

section {
  padding-block: 56px;
  border-bottom: 1px solid var(--line);
}

section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

section .lead {
  margin: 0 0 32px;
  max-width: 60ch;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.card h3 {
  margin: 14px 0 6px;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.card .glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wasserblau);
  color: var(--pflaume);
}

.card .glyph svg {
  width: 22px;
  height: 22px;
}

/* Zahlen und Quellen --------------------------------------------------- */

.facts {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.facts dt {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.facts dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  max-width: 68ch;
}

.prose h2 {
  margin-top: 36px;
  font-size: 1.3rem;
}

.prose h3 {
  margin-top: 26px;
  font-size: 1.05rem;
}

.prose address {
  font-style: normal;
}

/* Fuß ------------------------------------------------------------------ */

footer {
  padding-block: 34px 48px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

footer a {
  color: inherit;
}

.legal-note {
  max-width: 68ch;
  margin: 0;
}

/* Unterseiten ---------------------------------------------------------- */

.page-head {
  padding-block: 48px 8px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.page-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.back {
  display: inline-block;
  margin-top: 26px;
  font-size: 0.92rem;
}

.brand .mark {
  border-radius: 9px;
}
