/* Eierflip – CI Beinhauer IT (Archivo, Nachtblau, CI-Grün als Fläche, Papier, scharfe Kanten),
   Eigelb als warmer Schmuckakzent */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --papier: #f4f1ea;
  --papier-2: #ebe6db;
  --karte: #fbfaf6;
  --tinte: #0d1c28;
  --nacht: #071b2a;
  --leise: #4f5c66;
  --linie: #cfc8b9;
  --gruen: #88bd24;        /* CI-Grün, nur Fläche */
  --gruen-schrift: #13220a;
  --gruen-text: #3f6a07;   /* Grün als Text auf hell */
  --gruen-hell: #e9f0d8;
  --eigelb: #f2b705;       /* Schmuckfarbe, nur Fläche */
  --eigelb-hell: #fdf1c7;
  --blau: #0a3c5f;
  --breite: 1100px;
  --rand: 16px;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; }
body { margin: 0; color: var(--tinte); background: var(--papier); font: 400 1rem/1.6 "Archivo", "Helvetica Neue", Arial, sans-serif; overflow-wrap: break-word; }
h1, h2, h3 { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 118%; letter-spacing: -.025em; line-height: 1.08; color: var(--nacht); margin: 0 0 .4em; hyphens: auto; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--blau); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--nacht); outline-offset: 3px; box-shadow: 0 0 0 6px var(--eigelb); }
.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.marker { background: linear-gradient(transparent 58%, var(--eigelb) 58% 92%, transparent 92%); padding: 0 .08em; }
.springen { position: absolute; left: -9999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 10; }
.springen:focus { left: var(--rand); top: .5rem; }

/* Kopf */
.kopf { background: #fff; border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; padding-block: .75rem; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--nacht); font: 800 1.3rem/1 "Archivo", sans-serif; font-stretch: 118%; letter-spacing: -.025em; }
.logo svg { width: 2.2rem; height: 2.2rem; flex: none; transition: transform .2s ease; transform-origin: 50% 90%; }
.logo:hover svg { transform: rotate(-8deg); }
.logo em { font-style: normal; font-weight: 400; color: var(--gruen-text); }
.nav { display: flex; gap: .4rem 1.3rem; flex-wrap: wrap; }
.nav a { color: var(--nacht); font-weight: 700; text-decoration: none; padding-block: .2rem; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--eigelb); }

/* Einstieg */
.einstieg { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.einstieg .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.lead { font-size: 1.15rem; color: var(--leise); max-width: 32em; }
.bild { max-width: 360px; width: 100%; justify-self: center; }
.bild svg { display: block; width: 100%; height: auto; }

/* Rezeptkarte */
.karte { position: relative; background: var(--karte); border: 1px solid var(--linie); border-top: 6px solid var(--nacht); padding: 1.3rem 1.5rem 1.2rem; }
.karte h3 { font-size: 1.3rem; }
.karte .zusatz { font-size: .9rem; color: var(--leise); margin: 0; }
.karte-gelb { border-top-color: var(--eigelb); }
.karte-gruen { border-top-color: var(--gruen); }
.etikett { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .25rem .55rem; margin-bottom: .7rem; background: var(--papier-2); color: var(--nacht); }
.etikett-gruen { background: var(--gruen); color: var(--gruen-schrift); }
.zutaten { list-style: none; padding: 0; }
.zutaten li { display: grid; grid-template-columns: 4.4em 1fr; gap: .7rem; padding: .35rem 0; border-bottom: 1px dashed var(--linie); }
.zutaten strong { white-space: nowrap; }
.schritte { padding-left: 1.3rem; }
.schritte li { margin-bottom: .4rem; }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stapel { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; list-style: none; padding: 0; margin: 0; }

/* Abschnitte */
section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.band { background: var(--papier-2); }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.abschnitt-kopf p { color: var(--leise); margin: 0; }

/* Hinweise */
.hinweis { border-left: 6px solid var(--eigelb); background: var(--eigelb-hell); padding: .9rem 1.1rem; margin: 0 0 1rem; }
.hinweis p:last-child { margin: 0; }
.hinweis-gruen { border-left-color: var(--gruen); background: var(--gruen-hell); }

/* Rechner */
.rechner { background: #fff; border: 1px solid var(--linie); border-top: 6px solid var(--gruen); padding: 1.3rem 1.5rem; }
.rechner-felder { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-end; margin-bottom: 1rem; }
.rechner label { display: block; font-weight: 700; margin-bottom: .3rem; }
.rechner input, .rechner select { font: inherit; padding: .55rem .7rem; border: 2px solid #857c6c; border-radius: 0; background: #fff; color: var(--tinte); min-height: 50px; }
.rechner input { width: 6.5rem; }
.rechner-felder > div { min-width: 0; max-width: 100%; }
.rechner select { width: 100%; }
.zaehler { display: flex; }
.zaehler button { min-width: 50px; min-height: 50px; font: 800 1.3rem/1 "Archivo", sans-serif; background: var(--papier-2); color: var(--nacht); border: 2px solid #857c6c; border-radius: 0; cursor: pointer; }
.zaehler button:hover { background: var(--eigelb-hell); }
.zaehler input { border-inline: 0; text-align: center; -moz-appearance: textfield; }
.zaehler input::-webkit-inner-spin-button, .zaehler input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ergebnis { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .6rem; }
.ergebnis li { background: var(--papier); border: 1px solid var(--linie); padding: .7rem .9rem; }
.ergebnis b { display: block; font-size: 1.35rem; font-stretch: 112%; color: var(--nacht); }

/* Text- und Rechtsseiten */
.text { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.text .blatt { background: #fff; border: 1px solid var(--linie); border-top: 6px solid var(--nacht); padding: clamp(1.2rem, 4vw, 2.5rem); max-width: 46rem; }
.text h2 { font-size: 1.25rem; margin-top: 1.6em; }
.zeitleiste { list-style: none; padding: 0; margin: 0; border-left: 4px solid var(--eigelb); }
.zeitleiste li { position: relative; padding: 0 0 1.3rem 1.4rem; }
.zeitleiste li::before { content: ""; position: absolute; left: -11px; top: .35rem; width: 14px; height: 14px; background: var(--nacht); border: 2px solid var(--eigelb); }
.zeitleiste .jahr { display: block; font-weight: 800; font-stretch: 118%; color: var(--nacht); }
.quellen { font-size: .9rem; }
.quellen li { margin-bottom: .35rem; }
.fussnote { font-size: .78em; vertical-align: super; line-height: 0; text-decoration: none; padding-left: .1em; }

/* Fuß */
.fuss { background: var(--nacht); color: #c5d0d8; padding: 2rem 0; font-size: .9rem; margin-top: 2rem; }
.fuss a { color: #fff; }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.fuss p { margin: 0 0 .3em; }
.fuss :focus-visible { outline-color: #fff; }

@media (max-width: 800px) {
  .einstieg .wrap, .paar { grid-template-columns: 1fr; }
  .bild { max-width: 240px; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
