/* Excuso – Grundlagen: Farben, Schriften, Typografie, Knöpfe. Design „Briefpapier und Petrol“ (docs/plan-website.md, 5). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  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-weight: 100 900;
  font-display: swap;
  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: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-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: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-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: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --paper: #fbf8f2;          /* Seitengrund: warmes Papierweiß */
  --paper-deep: #f3eee4;     /* abgesetzte Flächen */
  --sheet: #ffffff;          /* das Blatt */
  --surface: #ffffff;        /* Karten, Knöpfe, Menüs */
  --ink: #1d2a2d;            /* Text, fast schwarz mit Stich ins Petrol */
  --muted: #56676b;
  --line: #e2dacb;
  --petrol: #1a7b8c;         /* aus dem App-Icon */
  --petrol-strong: #135e6b;
  --petrol-soft: #e1eff1;
  --ink-blue: #4f4dc9;       /* Tinte der Unterschrift im Icon (#5856d6, für Text abgedunkelt) */
  --focus: #1a7b8c;
  --shadow: 0 1px 2px rgba(29, 42, 45, .06), 0 12px 32px -12px rgba(29, 42, 45, .22);
  --radius: 14px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111a1c;
    --paper-deep: #172325;
    --sheet: #f6f2ea;        /* das Blatt bleibt hell wie Papier */
    --surface: #1b282b;
    --ink: #e7eeef;
    --muted: #a3b4b7;
    --line: #2b3a3d;
    --petrol: #4fb3c4;
    --petrol-strong: #7fcbd7;
    --petrol-soft: #1b3236;
    --ink-blue: #a9a8f5;
    --focus: #7fcbd7;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol-strong); text-underline-offset: .18em; }
a:hover { color: var(--petrol); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
/* Lange Wörter („Schulentschuldigung“) auf schmalen Handys trennen statt über den Rand laufen lassen */
h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; }
/* nur lange Wörter trennen („Schulentschuldigung“), nicht „ab-sence“ */
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: min(100% - 32px, 1120px); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10; padding: 8px 14px;
  background: var(--petrol-strong); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.kicker {
  margin: 0 0 .5rem;
  color: var(--petrol-strong);
  font-size: 1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 0 20px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--petrol); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--petrol-strong); border-color: var(--petrol-strong); color: #fff; }
.btn--primary:hover { background: var(--petrol); border-color: var(--petrol); color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn--primary { background: var(--petrol); border-color: var(--petrol); color: #0c1517; }
  .btn--primary:hover { background: var(--petrol-strong); color: #0c1517; }
}
.btn--small { min-height: 44px; padding: 0 18px; }
.btn--quiet { border-color: transparent; background: transparent; color: var(--petrol-strong); }
