/* ------------------------------------------------------------------
   cheeseburger.ch — ein Stylesheet, keine externen Ressourcen.
   Systemschriftstack in Schweizer Grotesk-Tradition: eng gesetzte,
   kraeftige Ueberschriften, viel Weissraum, duenne Linien.
   Farbwelt warm: Roestbraun als Primaerfarbe, Cheddar-Bernstein als Akzent.
   ------------------------------------------------------------------ */

:root {
  color-scheme: light dark;

  --grund:        #fdfbf7;
  --flaeche:      #ffffff;
  --flaeche-warm: #f7f0e5;
  --text:         #241a12;
  --text-leise:   #6b5b4d;
  --linie:        #e6ddd0;
  --primaer:      #9c3d10;
  --primaer-hell: #b8551f;
  --akzent:       #b8791a;
  --akzent-flach: #fdf3e2;

  --radius: 10px;
  --schrift: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --breite: 68rem;

  /* Farben der Schnittzeichnung. Als Praesentationsattribut referenziert
     (fill="var(--bun)"), nicht als style-Attribut — sonst greift die CSP. */
  --bun:        #dfa85f;
  --bun-boden:  #d19a51;
  --sauce:      #f0c04a;
  --zwiebel:    #f4e7ec;
  --gurke:      #93a83f;
  --kaese:      #e9a622;
  --patty:      #7a4429;
  --tomate:     #c4402f;
  --salat:      #7ea247;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:        #14100c;
    --flaeche:      #1c1712;
    --flaeche-warm: #221b14;
    --text:         #f3ece2;
    --text-leise:   #b6a795;
    --linie:        #332820;
    --primaer:      #f0a05a;
    --primaer-hell: #f7bb85;
    --akzent:       #e8b45c;
    --akzent-flach: #2a1f14;
  }
}

*, *::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(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; font-weight: 800; }
h1 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.15rem); }
h2 { font-size: clamp(1.4rem, 1.18rem + 1.05vw, 2rem); margin-top: 2.4em; }
h3 { font-size: clamp(1.08rem, 1.02rem + .32vw, 1.28rem); margin-top: 1.9em; font-weight: 700; }

p, ul, ol { margin: 0 0 1.1em; }
p { text-wrap: pretty; }

a { color: var(--primaer); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--akzent); }

strong { font-weight: 700; }

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

.skiplink {
  position: absolute; left: -9999px; top: 0;
  background: var(--flaeche); color: var(--text);
  padding: .7rem 1.1rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skiplink:focus { left: 0; }

/* ---------- Kopf ---------- */

.kopf {
  border-bottom: 1px solid var(--linie);
  background: var(--grund);
  position: sticky; top: 0; z-index: 20;
}
.kopf__innen {
  max-width: var(--breite); margin: 0 auto; padding: .85rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center;
}

.marke {
  display: inline-flex; align-items: center; gap: .55rem;
  color: inherit; text-decoration: none; font-weight: 800;
  letter-spacing: -.03em; font-size: 1.16rem;
}
.marke__zeichen { flex: none; color: var(--akzent); }
.marke__text strong { color: var(--primaer); font-weight: 800; }
.marke:hover .marke__text strong { color: var(--akzent); }

.hauptnav { margin-left: auto; }
.hauptnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .15rem .35rem;
}
.hauptnav a {
  display: block; padding: .42rem .68rem; border-radius: 6px;
  text-decoration: none; color: var(--text-leise);
  font-size: .95rem; font-weight: 600;
}
.hauptnav a:hover { background: var(--akzent-flach); color: var(--primaer); }
.hauptnav a[aria-current="page"] { color: var(--primaer); background: var(--akzent-flach); }

/* ---------- Brotkrumen ---------- */

.krumen { border-bottom: 1px solid var(--linie); background: var(--flaeche-warm); }
.krumen__innen { max-width: var(--breite); margin: 0 auto; padding: .55rem 1.25rem; }
.krumen ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem;
  font-size: .85rem; color: var(--text-leise);
}
.krumen li + li::before { content: "›"; margin-right: .4rem; color: var(--linie); }

/* ---------- Grundraster ---------- */

.abschnitt { padding: 3rem 1.25rem; }
.abschnitt--sanft { background: var(--flaeche-warm); border-block: 1px solid var(--linie); }
.innen { max-width: var(--breite); margin: 0 auto; }
.text { max-width: 42rem; }
.text > h2:first-child, .text > h3:first-child, .innen > h2:first-child { margin-top: 0; }

.vorspann { font-size: 1.16rem; color: var(--text-leise); max-width: 40rem; }

.text ul, .text ol { padding-left: 1.35rem; }
.text li { margin-bottom: .45rem; }
.text li::marker { color: var(--akzent); }

/* ---------- Hero ---------- */

.hero { padding: 3.5rem 1.25rem 2.5rem; }
.hero__innen {
  max-width: var(--breite); margin: 0 auto;
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__innen { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}
.hero__vorspann { font-size: 1.2rem; color: var(--text-leise); }
.hero h1 { margin-bottom: .35em; }

/* ---------- Schnittzeichnung ---------- */

.schnitt { margin: 0; }
.schnitt svg { width: 100%; height: auto; display: block; }
.schnitt figcaption {
  font-size: .85rem; color: var(--text-leise); margin-top: .8rem;
  border-top: 1px solid var(--linie); padding-top: .8rem;
}

/* ---------- Knoepfe ---------- */

.knopfreihe { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.knopf {
  display: inline-block; padding: .72rem 1.25rem; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: .98rem;
  border: 1px solid var(--primaer);
}
.knopf--voll { background: var(--primaer); color: var(--grund); }
.knopf--voll:hover { background: var(--akzent); border-color: var(--akzent); color: var(--grund); }
.knopf--leer { color: var(--primaer); }
.knopf--leer:hover { background: var(--akzent-flach); }

/* ---------- Karten ---------- */

.karten {
  display: grid; gap: 1.1rem; margin: 2rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  list-style: none; padding: 0;
}
.karte {
  position: relative; background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.3rem 1.35rem; margin: 0;
}
.karte:hover { border-color: var(--akzent); }
.karte h2, .karte h3 { margin: 0 0 .35rem; font-size: 1.12rem; }
.karte p { margin: 0; color: var(--text-leise); font-size: .95rem; }
.karte a { text-decoration: none; color: inherit; }
.karte a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.karte a:hover { color: var(--primaer); }

/* ---------- Nummerierte Schritte ---------- */

.schritte { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: schritt; }
.schritte > li {
  counter-increment: schritt;
  border-top: 1px solid var(--linie);
  padding: 1.4rem 0 .4rem 3.4rem; position: relative;
}
.schritte > li::before {
  content: counter(schritt);
  position: absolute; left: 0; top: 1.35rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--akzent-flach); color: var(--primaer);
  font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums;
}
.schritte h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.schritte p:last-child { margin-bottom: .8rem; }

/* ---------- Hinweiskasten ---------- */

.kasten {
  border: 1px solid var(--linie);
  border-left: 4px solid var(--akzent);
  background: var(--akzent-flach);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.3rem; margin: 2rem 0;
}
.kasten p:last-child { margin-bottom: 0; }
.kasten__titel {
  font-size: .78rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--primaer); margin-bottom: .4rem;
}

/* ---------- Tabellen ---------- */

.tabellenrahmen { overflow-x: auto; margin: 1.6rem 0 2rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 34rem; }
caption {
  text-align: left; margin-bottom: .6rem; font-size: .78rem;
  letter-spacing: .09em; text-transform: uppercase; font-weight: 800;
  color: var(--text-leise);
}
th, td { text-align: left; padding: .68rem .8rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { border-bottom-width: 2px; font-size: .85rem; letter-spacing: .01em; }
tbody tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--linie);
  padding: .35rem 0;
}
.faq summary {
  cursor: pointer; padding: .85rem 0; font-weight: 700;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--akzent); font-weight: 800; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--text-leise); }

/* ---------- Weiterlesen ---------- */

.weiter {
  margin: 3rem 0 0; padding: 1.3rem 1.4rem;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
}
.weiter__titel {
  font-size: .78rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-leise); margin-bottom: .5rem;
}
.weiter ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

/* ---------- Stand-Datum ---------- */

.stand { color: var(--text-leise); font-size: .85rem; margin-top: 2.5rem; }

/* ---------- Fuss ---------- */

.fuss {
  border-top: 1px solid var(--linie);
  background: var(--flaeche-warm);
  padding: 2.8rem 1.25rem 1.5rem;
  font-size: .95rem;
}
.fuss__innen {
  max-width: var(--breite); margin: 0 auto;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.fuss__marke { font-weight: 800; letter-spacing: -.03em; font-size: 1.1rem; margin-bottom: .5rem; }
.fuss__marke strong { color: var(--primaer); }
.fuss__text { color: var(--text-leise); max-width: 24rem; }
.fuss__titel {
  font-size: .78rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-leise); margin-bottom: .6rem;
}
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .4rem; }
.fuss a { color: var(--text); text-decoration-color: var(--linie); }
.fuss a:hover { color: var(--primaer); }
.fuss__unten {
  max-width: var(--breite); margin: 2.2rem auto 0; padding-top: 1.2rem;
  border-top: 1px solid var(--linie); color: var(--text-leise); font-size: .85rem;
}
.fuss__unten p { margin: 0; }

/* ---------- 404 ---------- */

.mitte { text-align: center; max-width: 34rem; margin-inline: auto; }
.mitte .knopfreihe { justify-content: center; }
