/* Personal-Website Claudio Fürsatz.
 *
 * Schriften liegen lokal in /fonts/. Das spart nicht nur Ladezeit, sondern
 * auch den Cookie-Banner: Ohne Anfrage an ein fremdes CDN entsteht keine
 * einwilligungspflichtige Datenübermittlung.
 *
 * Gedeckte Palette in Richtung Fachpublikation, Hell- und Dunkelmodus folgen
 * der Systemeinstellung. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/source-serif-4-var.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-600.woff2") format("woff2");
}

:root {
  --paper: #fbfaf8;
  --ink: #1c1b19;
  --muted: #5d5a54;
  --rule: #e2ddd5;
  --accent: #6b3f2e;
  --panel: #f4f1ec;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16161a;
    --ink: #e8e6e1;
    --muted: #a19d96;
    --rule: #2f2f35;
    --accent: #c9a08a;
    --panel: #1e1e23;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main, footer, .breadcrumb {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 6vw, 3rem); margin-top: 0.75rem; }
h2 { font-size: clamp(1.5rem, 4vw, 1.75rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

/* Brotkrumenpfad — sichtbar, passend zum BreadcrumbList-Schema im Head. */
.breadcrumb {
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }

.kopf {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 3rem;
}

/* Porträt. Feste Breite, Höhe aus dem Seitenverhältnis — width und height
   stehen zusätzlich im Tag, damit beim Laden nichts springt. */
.portraet {
  width: 11rem;
  height: auto;
  flex: none;
  border: 1px solid var(--rule);
  background: var(--panel);
}

.rolle {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead { margin-top: 1.25rem; color: var(--muted); }

section {
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
}
section h2 { margin-bottom: 1.5rem; }

/* Der Bruch trägt die Glaubwürdigkeit der Seite und ist deshalb auch
   optisch abgesetzt — aber ohne Signalfarbe, der Text wirkt für sich. */
.bruch {
  border-top: none;
  border-left: 2px solid var(--accent);
  background: var(--panel);
  padding: 1.75rem;
}
.kicker {
  margin: 0 0 0.5rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.methode { margin: 0; padding: 0; list-style: none; counter-reset: schritt; }
.methode > li {
  counter-increment: schritt;
  margin-top: 2rem;
  padding-left: 3rem;
  position: relative;
}
.methode > li::before {
  content: counter(schritt, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.5rem;
  color: var(--rule);
  font-variant-numeric: tabular-nums;
}
.methode h3 { margin-bottom: 0.5rem; }
.methode p { color: var(--muted); }

footer {
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
  padding-bottom: 3rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.risiko { line-height: 1.6; }
footer nav { display: flex; gap: 1.5rem; }

/* Rechtsseiten */
.legal { padding-top: 3rem; }
.legal h1 { margin-bottom: 2rem; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal address {
  font-style: normal;
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 1rem 1.25rem;
  line-height: 1.7;
}
.legal .ph {
  background: var(--panel);
  border-bottom: 1px dashed var(--accent);
  padding: 0 0.25rem;
}

@media (min-width: 40rem) {
  main, footer, .breadcrumb { padding-left: 2rem; padding-right: 2rem; }
  .kopf { flex-direction: row; align-items: flex-start; gap: 2.5rem; padding-top: 4rem; }
  .bruch { padding: 2.25rem; }
}
