/* Brand "alexlechner.": Figtree, Ink/Mist, Sky Blue als Akzent, Überschriften klein mit farbigem Punkt.
   Schrift liegt auf dem eigenen Server (keine Anfragen an Google Fonts). Figtree: SIL Open Font License 1.1 */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --bg: #F4F4F2;
  --text: #0A0A0A;
  --muted: #5C5C5C;
  --card: #FFFFFF;
  --line: #E2E2DE;
  --accent: #0A6FB0;
  --dot: #38B6FF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --text: #FFFFFF;
    --muted: #A3A3A3;
    --card: #141414;
    --line: #262626;
    --accent: #38B6FF;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 40px; }

/* Kopfzeile mit Wortmarke */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 56px; }
.brand { font-weight: 900; font-size: 22px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; margin-left: 16px; }
.top nav a:hover { color: var(--text); }

h1 { font-weight: 900; font-size: clamp(40px, 9vw, 68px); line-height: 1.02; margin: 0 0 12px; letter-spacing: -0.025em; }
h2 { font-weight: 700; font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
h3 { font-weight: 700; font-size: 17px; margin: 18px 0 4px; }
.dot { color: var(--dot); }
.lead { color: var(--muted); margin: 0 0 40px; font-size: 18px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 22px; }
li { margin-bottom: 4px; }
section { border-top: 1px solid var(--line); padding: 28px 0 16px; }
.muted { color: var(--muted); }
a { color: var(--accent); text-underline-offset: 2px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 32px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; }
.toc a { text-decoration: none; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }

/* App-Karte auf der Startseite */
.app { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.app img { width: 96px; height: 96px; border-radius: 22px; }
.app h2 { font-size: 28px; font-weight: 900; margin-bottom: 6px; letter-spacing: -0.02em; }
.app ul { color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.disabled { color: var(--muted); cursor: default; }

footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
@media (max-width: 520px) { .app { grid-template-columns: 1fr; } .top nav a { margin-left: 12px; } }
