/* brettljause.de — ein Stylesheet, lokal, keine externe Ressource. */

:root {
  color-scheme: light dark;

  --grund:        #fbf7f0;
  --grund-erhoben:#ffffff;
  --grund-sanft:  #f4ede1;
  --grund-holz:   #efe4d2;
  --linie:        #e5dac6;
  --text:         #2a2119;
  --text-leise:   #6b5d4c;

  /* Paprikarot, 7,1:1 auf --grund */
  --primaer:      #8c3a24;
  --primaer-hell: #a8492e;
  --primaer-flach:#f7e7e0;
  /* Olivgruen, 5,2:1 auf --grund */
  --akzent:       #5f6f2b;
  --akzent-flach: #edf0df;

  --radius:   14px;
  --radius-s: 9px;
  --breite:   72rem;
  --schatten: 0 1px 2px rgba(60, 40, 20, .05), 0 8px 24px -12px rgba(60, 40, 20, .22);

  --schrift:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serife:   Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:        #16120e;
    --grund-erhoben:#1e1813;
    --grund-sanft:  #251d16;
    --grund-holz:   #2b2118;
    --linie:        #3a2f24;
    --text:         #f0e8dd;
    --text-leise:   #b3a494;

    --primaer:      #f0a487;
    --primaer-hell: #f8bda6;
    --primaer-flach:#3a2119;
    --akzent:       #b6c775;
    --akzent-flach: #2a3016;
    --schatten: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -14px rgba(0, 0, 0, .7);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: clamp(1rem, .97rem + .18vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serife);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.95rem, 1.4rem + 2.3vw, 3.05rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.12rem, 1.04rem + .38vw, 1.32rem); margin-top: 1.8em; }
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; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

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

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--primaer); color: var(--grund);
  padding: .85rem 1.2rem; border-radius: 0 0 var(--radius-s) 0; text-decoration: none;
}
.skiplink:focus { left: 0; }

.innen, .kopf__innen, .krumen__innen, .fuss__innen, .fuss__unten {
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

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

.kopf {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap;
  min-height: 4.25rem;
  padding-block: .65rem;
}

.marke {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--primaer); text-decoration: none;
  font-family: var(--serife);
  font-size: 1.18rem; letter-spacing: -.01em;
  padding: .35rem 0;
}
.marke__zeichen { flex: none; }
.marke__text { font-weight: 400; }
.marke__text strong { font-weight: 700; }
.marke:hover { color: var(--akzent); }

.hauptnav { margin-left: auto; }
.hauptnav ul {
  display: flex; flex-wrap: wrap; gap: .15rem;
  list-style: none; margin: 0; padding: 0;
}
.hauptnav a {
  display: flex; align-items: center;
  padding: .6rem .75rem;
  border-radius: var(--radius-s);
  color: var(--text-leise);
  text-decoration: none;
  font-size: .94rem;
  min-height: 44px;
}
.hauptnav a:hover { background: var(--grund-sanft); color: var(--text); }
.hauptnav a[aria-current="page"] { background: var(--primaer-flach); color: var(--primaer); font-weight: 600; }

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

.krumen { border-bottom: 1px solid var(--linie); background: var(--grund-sanft); }
.krumen ol {
  display: flex; flex-wrap: wrap; gap: .45rem;
  list-style: none; margin: 0; padding: .7rem 0;
  font-size: .875rem; color: var(--text-leise);
}
.krumen li + li::before { content: "\203A"; margin-right: .45rem; color: var(--text-leise); }
.krumen a { color: var(--text-leise); }

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

.hero {
  background:
    radial-gradient(58rem 26rem at 80% -20%, var(--primaer-flach), transparent 62%),
    radial-gradient(42rem 24rem at 4% 4%, var(--akzent-flach), transparent 60%);
  border-bottom: 1px solid var(--linie);
}
.hero__innen {
  max-width: var(--breite); margin-inline: auto;
  padding: clamp(2.5rem, 6.5vw, 5rem) clamp(1.1rem, 4vw, 2.5rem);
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__innen { grid-template-columns: 1.02fr .98fr; }
}
.hero__vorspann {
  font-size: clamp(1.05rem, 1rem + .45vw, 1.25rem);
  color: var(--text-leise);
  max-width: 46ch;
}
.hero__bild { justify-self: center; width: 100%; max-width: 30rem; height: auto; }

.marke-klein {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--grund-erhoben); border: 1px solid var(--linie);
  border-radius: 999px; padding: .35rem .85rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text-leise); text-transform: uppercase;
  margin: 0 0 1.2rem;
}
.marke-klein::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--akzent);
}

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

.knopfreihe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.knopf {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background-color .12s ease;
}
.knopf--voll { background: var(--primaer); color: var(--grund); }
.knopf--voll:hover { background: var(--primaer-hell); color: var(--grund); transform: translateY(-1px); }
.knopf--leer { background: var(--grund-erhoben); border-color: var(--linie); color: var(--text); }
.knopf--leer:hover { border-color: var(--primaer); color: var(--primaer); transform: translateY(-1px); }

/* ---------- Inhaltsbereich ---------- */

.abschnitt { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.abschnitt--sanft { background: var(--grund-sanft); border-block: 1px solid var(--linie); }
.abschnitt--holz { background: var(--grund-holz); border-block: 1px solid var(--linie); }

.text { max-width: 42rem; }
.text > h2:first-child, .text > h3:first-child, .innen > h2:first-child { margin-top: 0; }
.text ul, .text ol { padding-left: 1.35rem; }
.text li { margin-bottom: .45rem; }
.text li::marker { color: var(--primaer); }

.vorspann {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem);
  color: var(--text-leise);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.stand { color: var(--text-leise); font-size: .85rem; margin-top: 2.5rem; }

caption {
  text-align: left; margin-bottom: .6rem;
  font-size: .8rem; letter-spacing: .07em; text-transform: uppercase;
  font-weight: 700; color: var(--text-leise);
}

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

.karten {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  list-style: none; margin: 0; padding: 0;
}
.karte {
  position: relative;
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--schatten);
  transition: transform .14s ease, border-color .14s ease;
}
.karte:hover { transform: translateY(-2px); border-color: var(--primaer); }
.karte h2, .karte h3 { margin: 0; font-size: 1.18rem; }
.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); }
.karte__nummer {
  font-family: var(--schrift);
  font-variant-numeric: tabular-nums;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  color: var(--akzent);
}
.karte__zeichen { color: var(--primaer); }

/* ---------- Bausteine (Symbolraster) ---------- */

.bausteine {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  list-style: none; margin: 2rem 0 0; padding: 0;
}
.baustein {
  display: grid; grid-template-columns: 3rem 1fr; gap: .95rem; align-items: start;
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.baustein__zeichen {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--primaer-flach); color: var(--primaer);
}
.baustein h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.baustein p { margin: 0; color: var(--text-leise); font-size: .93rem; }

/* ---------- Regeln und Schritte ---------- */

.regeln, .schritte {
  display: grid; gap: 1.1rem; list-style: none;
  margin: 2rem 0 0; padding: 0; counter-reset: regel;
}
.regel, .schritt {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
.regel::before, .schritt::before {
  counter-increment: regel; content: counter(regel);
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--primaer-flach); color: var(--primaer);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.regel h3, .schritt h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.regel p, .schritt p { margin: 0 0 .5rem; color: var(--text-leise); }
.regel div > :last-child, .schritt div > :last-child { margin-bottom: 0; }

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

.kasten {
  border: 1px solid var(--linie);
  border-left: 4px solid var(--akzent);
  background: var(--akzent-flach);
  border-radius: var(--radius-s);
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
}
.kasten > :last-child { margin-bottom: 0; }
.kasten__titel {
  font-family: var(--schrift);
  font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--akzent);
  margin: 0 0 .4rem;
}
.kasten ol, .kasten ul { margin: 0; padding-left: 1.35rem; }
.kasten li { margin-bottom: .35rem; }
.kasten li:last-child { margin-bottom: 0; }
.kasten--wort { border-left-color: var(--primaer); background: var(--primaer-flach); }
.kasten--wort .kasten__titel { color: var(--primaer); }

/* ---------- Tabelle ---------- */

.tabellenrahmen { overflow-x: auto; margin: 1.6rem 0; }
table {
  width: 100%; border-collapse: collapse;
  font-size: .95rem; min-width: 32rem;
}
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--grund-sanft); font-size: .85rem; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }
td.menge { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Rezept ---------- */

.rezept {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 56rem) {
  .rezept { grid-template-columns: 19rem 1fr; align-items: start; }
}
.rezept__zutaten {
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--schatten);
}
@media (min-width: 56rem) {
  .rezept__zutaten { position: sticky; top: 6rem; }
}
.rezept__zutaten h2 { margin: 0 0 .8rem; font-size: 1.2rem; }
.rezept__zutaten ul { list-style: none; margin: 0; padding: 0; }
.rezept__zutaten li {
  display: flex; gap: .8rem; justify-content: space-between;
  padding: .55rem 0; border-bottom: 1px dashed var(--linie);
  font-size: .95rem;
}
.rezept__zutaten li:last-child { border-bottom: 0; }
.rezept__zutaten .menge { color: var(--primaer); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rezept__anleitung > h2:first-child { margin-top: 0; }

.eckdaten {
  display: flex; flex-wrap: wrap; gap: .6rem;
  list-style: none; margin: 1.6rem 0 0; padding: 0;
}
.eckdaten li {
  background: var(--grund-erhoben); border: 1px solid var(--linie);
  border-radius: 999px; padding: .4rem .95rem; font-size: .9rem;
}
.eckdaten strong { color: var(--primaer); }

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

.faq { margin-top: 1.5rem; display: grid; gap: .7rem; }
.faq details {
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius-s);
  padding: .25rem 1.25rem;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: .95rem 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--primaer); font-size: 1.4rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--linie); }
.faq details > :not(summary) { margin-top: .9rem; }
.faq details > :last-child { margin-bottom: .95rem; }

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

.weiter { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--linie); }
.weiter__titel { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); font-weight: 700; }
.weiter ul { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.weiter a {
  display: inline-block; padding: .5rem .95rem;
  background: var(--grund-erhoben); border: 1px solid var(--linie);
  border-radius: 999px; font-size: .92rem; text-decoration: none; color: var(--text);
}
.weiter a:hover { border-color: var(--primaer); color: var(--primaer); }

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

.fuss { margin-top: clamp(3rem, 8vw, 5rem); background: var(--grund-sanft); border-top: 1px solid var(--linie); }
.fuss__innen {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}
.fuss__marke { font-family: var(--serife); font-size: 1.15rem; color: var(--primaer); margin: 0 0 .6rem; }
.fuss__text { color: var(--text-leise); font-size: .92rem; max-width: 36ch; margin: 0; }
.fuss__titel { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--text-leise); margin: 0 0 .7rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .1rem; }
.fuss li a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--text); text-decoration: none; font-size: .95rem;
}
.fuss li a:hover { color: var(--primaer); text-decoration: underline; }
.fuss__unten { border-top: 1px solid var(--linie); padding-block: 1.1rem; }
.fuss__unten p { margin: 0; font-size: .85rem; color: var(--text-leise); }

/* ---------- Rechtstexte ---------- */

.recht { max-width: 44rem; }
.recht h2 { font-size: 1.32rem; }
.recht dl { margin: 0 0 1.5rem; }
.recht dt { font-weight: 600; margin-top: .8rem; }
.recht dd { margin: 0 0 .2rem; color: var(--text-leise); }

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

.mitte { text-align: center; max-width: 40rem; margin-inline: auto; }
.mitte .knopfreihe { justify-content: center; }
.mitte .vorspann { margin-inline: auto; }
.mitte .karten { margin-top: 3rem; text-align: left; }

/* ---------- Illustration ---------- */
/* Nur das Holz reagiert auf den Dunkelmodus, die Speisen behalten ihre Farbe. */
.ill { --holz: #cba471; --holz-2: #b98f58; --holz-linie: #a87e47; }
@media (prefers-color-scheme: dark) {
  .ill { --holz: #7b5a37; --holz-2: #684a2c; --holz-linie: #56391f; filter: saturate(.92) brightness(.94); }
}
