/* KI-Einrichtung Mathias Bruhin – gemeinsames Stylesheet
   Grundlage: Keiso-Stil (IBM Plex, 4 Schriftgrössen gesamt, höchstens 3 pro Ansicht,
   Abstände 4/8/12/16/24/32/48/64, Radien 4 und 8, eine Akzentfarbe).
   Akzent «Aare-Petrol» #0b5f6f: Farbton 190°, abgeleitet vom Fluss in Aarau.
   Mehr Farbe ohne zweite Akzentfarbe (26.11.2026): dieselbe Petrol-Familie als
   volle Fläche (Kopf, Schlagzeile, Kontakt) und als helle Tönung für jeden zweiten
   Abschnitt. Alle Paare gemessen: WCAG und APCA, siehe Kommentare bei den Werten. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f3f5f7;
  --surface: #ffffff;
  --ink: #17212b;
  --muted: #586675;
  --line: #d9e0e7;
  --accent: #0b5f6f;
  --on-accent: #ffffff;
  --band: #0b4f5c;          /* Weiss darauf 9,18:1, Lc 95 */
  --on-band: #ffffff;
  --on-band-muted: #cfe6ea; /* 7,07:1, Lc 76 */
  --tint: #e2f0f2;          /* Text 13,95:1, Nebentext 5,03:1 Lc 69, Link 6,24:1 Lc 74 */
  --tint-line: #aecbd1;

  --fs-s: 16px;
  --fs-m: 18px;
  --fs-l: 24px;
  --fs-xl: 44px;

  --r-s: 4px;
  --r-m: 8px;

  --sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1318;
    --surface: #151d25;
    --ink: #e5ebf1;
    --muted: #b3c0cd;
    --line: #4a5866;
    --accent: #7cc6d3;
    --on-accent: #062126;
    --band: #0f3a43;          /* Text 10,25:1, Lc 88 */
    --on-band: #e5ebf1;
    --on-band-muted: #b3d9df; /* 8,15:1, Lc 73 */
    --tint: #11252b;          /* Text 13,21:1, Nebentext 8,57:1 Lc 65, Link 8,22:1 Lc 63 */
    --tint-line: #42646b;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-m);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: 1088px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Text ---------- */

h1, h2, h3 { line-height: 1.25; font-weight: 600; margin: 0; }
h1 { font-size: var(--fs-xl); letter-spacing: -0.01em; max-width: 20ch; }
h2 { font-size: var(--fs-l); margin-bottom: 16px; }
h3 { font-size: var(--fs-m); margin-bottom: 8px; }

p, ul, ol, dl { margin: 0 0 16px; }
p:last-child, ul:last-child, ol:last-child, dl:last-child { margin-bottom: 0; }
ul, ol { padding-left: 24px; }
li + li { margin-top: 8px; }

.text { max-width: 65ch; }
.lead { max-width: 52ch; margin-top: 24px; }
.small { font-size: var(--fs-s); color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: var(--fs-s); }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-s);
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
}
.skip:focus { top: 16px; }

/* ---------- Kopf und Fuss ---------- */

.site-head { padding: 24px 0; }
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.brand { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-s); }
.brand span { font-weight: 400; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: var(--fs-s); }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; }
.nav a:hover { text-decoration: underline; }

.site-foot {
  margin-top: 0;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-s);
  color: var(--muted);
}
.site-foot .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.site-foot a { color: var(--ink); }

/* ---------- Farbflächen ---------- */

/* Kopf + Schlagzeile + Kontakt: volle Petrol-Fläche */
.site-head, .hero, #kontakt {
  background: var(--band);
  color: var(--on-band);
  --line: var(--on-band-muted);
}
.site-head .brand, .site-head .nav a { color: var(--on-band); }
.site-head .brand span { color: var(--on-band-muted); }
.hero a:not(.button), #kontakt a:not(.button) { color: var(--on-band); }
.hero .preise li:last-child { color: var(--on-band-muted); }
.hero :focus-visible, #kontakt :focus-visible, .site-head :focus-visible { outline-color: var(--on-band); }
.hero .button, #kontakt .button {
  background: var(--on-band);
  color: var(--band);
  border-color: var(--on-band);
}
/* Skizze in der Schlagzeile behält die hellen Farben der Seite */
.hero .bild { color: var(--ink); --line: var(--tint-line); }

/* Jeder zweite Abschnitt: helle Petrol-Tönung, Karten bleiben weiss */
#pakete, #ablauf, #fragen {
  background: var(--tint);
  --line: var(--tint-line);
}

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

section { padding: 48px 0; }
.hero { padding: 32px 0 48px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; }
  .hero { padding: 48px 0 64px; }
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

.button {
  display: inline-block;
  padding: 12px 24px;
  min-height: 48px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-s);
  font-weight: 600;
  font-size: var(--fs-m);
  text-decoration: none;
  line-height: 24px;
}
.button:hover { text-decoration: underline; }
.button.secondary {
  background: transparent;
  color: var(--accent);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 24px;
}

/* Pakete */
.packages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (min-width: 760px) {
  .packages { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .packages { grid-template-columns: repeat(3, 1fr); }
}
.package { display: flex; flex-direction: column; }
.package h3 { font-size: var(--fs-l); margin-bottom: 4px; }
.package .price { font-weight: 600; margin: 0; color: var(--accent); font-size: var(--fs-l); }
.package .meta { color: var(--muted); font-size: var(--fs-s); margin-bottom: 16px; }
.package ul { flex: 1; margin-bottom: 24px; }
.package .button { align-self: flex-start; }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 48px;
}
@media (min-width: 880px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

/* Ablauf: echte Reihenfolge, darum nummeriert */
.steps { list-style: none; padding: 0; counter-reset: step; max-width: 65ch; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
}
.steps li + li { margin-top: 24px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: var(--r-s);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-align: center;
  line-height: 30px;
}
.steps strong { display: block; }

/* Preise in der Schlagzeile */
.preise { list-style: none; padding: 0; margin-top: 24px; }
.preise li + li { margin-top: 4px; }
.preise li:last-child { color: var(--muted); font-size: var(--fs-s); margin-top: 8px; }

.hinweise { margin-top: 32px; }
/* Weitere Angebote: Preistabelle */
.mehr { margin-top: 24px; }
.mehr h3 { font-size: var(--fs-l); }
.tabelle { overflow-x: auto; margin-top: 16px; }
.tabelle table { width: 100%; border-collapse: collapse; min-width: 560px; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); }
.tabelle thead th { border-top: 0; font-size: var(--fs-s); color: var(--muted); font-weight: 600; }
.tabelle tbody th { font-weight: 600; white-space: nowrap; }
.tabelle .zahl { text-align: right; white-space: nowrap; padding-right: 0; color: var(--accent); font-weight: 600; }
.tabelle .klein { font-size: var(--fs-s); color: var(--muted); font-weight: 400; }
.bald { margin-top: 16px; }


/* ---------- Skizzen (eigene SVG-Zeichnungen, Farben aus den Variablen) ---------- */

figure { margin: 0; }
figcaption { margin-top: 12px; font-size: var(--fs-s); color: var(--muted); }

.sk { display: block; width: 100%; height: auto; max-width: 100%; overflow: visible; }
.sk text { font-family: var(--sans); font-size: 16px; fill: var(--ink); }
.sk .mono { font-family: var(--mono); }
.sk .fett { font-weight: 600; }
.sk .t2 { fill: var(--muted); }
.sk .ton { fill: var(--on-accent); }
.sk .takzent { fill: var(--accent); }
.sk .flaeche { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; }
.sk .grund { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.sk .feld { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; }
.sk .trenn { fill: none; stroke: var(--line); stroke-width: 1.5; }
.sk .balken { fill: var(--line); }
.sk .balken-on { fill: var(--on-accent); }
.sk .akzent { fill: var(--accent); }
.sk .haken { fill: none; stroke: var(--on-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sk .linie,
.sk .akzent-linie,
.sk .markierung { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sk .linie { stroke: var(--muted); }
.sk .akzent-linie,
.sk .markierung { stroke: var(--accent); }
.sk .markierung { stroke-dasharray: 4 4; }
.sk .zeiger { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.sk .initialen { font-size: 40px; font-weight: 600; fill: var(--accent); }

.bild { max-width: 480px; }

.paket-bild { max-width: 240px; margin-bottom: 24px; }

.skizzen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.skizzen figure { max-width: 480px; }
.skizzen .schmal { max-width: 280px; }
@media (min-width: 880px) {
  /* Spalten im Verhältnis der Bildbreiten (400 / 280 / 400), damit die Schrift in allen drei Skizzen gleich gross ist */
  .skizzen { grid-template-columns: minmax(0, 10fr) minmax(0, 7fr) minmax(0, 10fr); gap: 24px; }
}

/* Ablauf als Bild-Reihe: echte Reihenfolge, darum nummeriert */
.ablauf {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.ablauf li { counter-increment: step; margin: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; align-content: start; }
.ablauf .piktogramm { width: 48px; height: 48px; grid-row: span 2; }
.ablauf strong { display: block; padding-top: 12px; }
.ablauf strong::before { content: counter(step) ". "; }
.ablauf span { grid-column: 2; }
@media (min-width: 880px) {
  .ablauf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ablauf li { display: block; }
  .ablauf .piktogramm { margin-bottom: 12px; }
  .ablauf strong { padding-top: 0; margin-bottom: 4px; }
}

.regeln { margin-top: 48px; }
.regeln h3 { margin-bottom: 16px; }

/* Über mich mit Foto */
.ueber {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 640px) {
  .ueber { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
}
.foto {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  object-fit: cover;
}

/* Häufige Fragen */
.faq { max-width: 65ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style-position: outside;
  margin-left: 24px;
}
.faq details > div { padding: 0 0 16px 24px; }

/* Rechtstexte und Anleitung */
.doc { max-width: 65ch; }
.doc h1 { font-size: var(--fs-l); max-width: none; margin-bottom: 8px; }
.doc h2 { font-size: var(--fs-m); margin: 32px 0 8px; }
.doc .stand { color: var(--muted); font-size: var(--fs-s); margin-bottom: 32px; }
.placeholder { background: var(--line); padding: 0 4px; border-radius: var(--r-s); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--muted);
  border-radius: var(--r-s);
}
.answer-line { border-bottom: 1px solid var(--line); height: 32px; }

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 600px) {
  :root { --fs-xl: 32px; }
  .wrap { padding: 0 16px; }
  section { padding: 32px 0; }
  .panel { padding: 16px; }
}

/* ---------- Druck (Anleitung, Rechtstexte) ---------- */

@media print {
  :root {
    --paper: #ffffff; --surface: #ffffff; --ink: #000000;
    --muted: #333333; --line: #999999; --accent: #000000; --on-accent: #ffffff;
    --band: #ffffff; --on-band: #000000; --on-band-muted: #333333; --tint: #ffffff; --tint-line: #999999;
  }
  @page { margin: 16mm; }
  body { font-size: 11pt; }
  section, .hero { padding: 0; }
  .site-head { padding: 0 0 16px; }
  .doc h2 { margin-top: 24px; }
  .doc .stand { margin-bottom: 16px; }
  .site-head .nav, .skip, .no-print, .site-foot .links { display: none; }
  .site-foot { margin-top: 32px; padding: 16px 0 0; }
  .panel { border-color: #999999; break-inside: avoid; }
  a { color: #000000; text-decoration: none; }
  h2 { break-after: avoid; }
  .steps li, .checklist li { break-inside: avoid; }
}
