/* Gemeinsame Grundlage aller Seiten im Plinth-System der App: Schriften, Tokens, Schrift, Knöpfe, Kopf und Fuss. */

/* Schriften: lokal ausgeliefert (SIL Open Font License), kein Abruf bei Google */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens: Farben, Schriften, Abstände, Radien und Bewegung; bewusst nur ein helles Theme */
:root {
  --ink: #111111;
  --surface: #ffffff;
  --paper: #faf7f2;
  --quiet: #ebe6dd;
  --muted: #5a5a5a;
  --coral: #fd9b9b;
  --coral-soft: #ffe2db;
  --error: #c0392b;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-2xs: 0.25rem;
  --s-xs: 0.5rem;
  --s-sm: 0.75rem;
  --s-md: 1rem;
  --s-lg: 1.5rem;
  --s-xl: 2rem;
  --s-2xl: 3rem;
  --s-3xl: 4.5rem;
  --s-4xl: 6rem;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  --h-control: 2.75rem;
  --focus-width: 3px;
  --focus-outer-width: 2px;

  --press-rest: 4px;
  --press-hover: 6px;
  --ease-press: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-press: 120ms;
  --dur-base: 180ms;
  --dur-panel: 240ms;

  --layout-max: 1180px;
  color-scheme: light;
}

/* Grundlage: eine Spalte bis 1180px, Abschnitte über Luft getrennt statt über Linien */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, blockquote, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--coral-soft); color: var(--ink); }

.wrap {
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(var(--s-xl), env(safe-area-inset-left, 0px));
    padding-right: max(var(--s-xl), env(safe-area-inset-right, 0px));
  }
}

/* Schrift */
.display-xl, .display-lg, .headline-lg, .title-md {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; line-height: 1.05; }
.headline-lg { font-size: clamp(1.75rem, 3.6vw, 2.25rem); font-weight: 600; line-height: 1.15; }
.title-md { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.body-lg { font-size: 1.0625rem; line-height: 1.55; }
.body-sm { font-size: 0.875rem; line-height: 1.5; }
.label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-thickness: 2px; }
}

/* Knöpfe: Plinth-Druck, die Fläche ruht über einem Sockel aus Tinte */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-xs);
  min-height: 44px;
  padding: 0.75em 1.4em;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  font: 600 1rem/1.2 var(--font-body);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary, .btn-secondary {
  translate: 0 calc(-1 * var(--press-rest));
  box-shadow: 0 var(--press-rest) 0 0 var(--ink);
  transition:
    translate var(--dur-press) var(--ease-press),
    box-shadow var(--dur-press) var(--ease-press),
    background-color var(--dur-base) ease;
}
.btn-primary { background: var(--coral); }
.btn-secondary { background: var(--paper); }
.btn-ghost {
  background: var(--surface);
  transition: background-color var(--dur-base) ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .btn-secondary:hover {
    translate: 0 calc(-1 * var(--press-hover));
    box-shadow: 0 var(--press-hover) 0 0 var(--ink);
  }
  .btn-ghost:hover { background: var(--paper); }
}
.btn-primary:active, .btn-secondary:active,
.btn-primary[aria-disabled="true"], .btn-secondary[aria-disabled="true"] {
  translate: 0 0;
  box-shadow: 0 0 0 0 var(--ink);
}
.btn[aria-disabled="true"] { cursor: progress; }
.btn:focus-visible, a:focus-visible {
  outline: var(--focus-width) solid var(--coral);
  outline-offset: 3px;
}

/* Kopf: auf allen Seiten gleich, rosa Band */
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  padding-block: var(--s-lg);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font: 700 clamp(2rem, 4vw, 2.5rem)/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark i {
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--ink);
}
.site-head { background: var(--coral-soft); }

/* Fuss: Herkunft links, Rechtliches rechts */
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-sm) var(--s-lg);
  padding-block: var(--s-2xl);
  color: var(--muted);
}
.foot-nav { display: flex; flex-wrap: wrap; gap: var(--s-lg); }
.foot-nav a {
  padding-block: var(--s-2xs);
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-base) ease;
}
.foot-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .foot-nav a:hover { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary, .btn-secondary { transition-duration: 1ms; }
}
