/* cookgenapp.de – Farben wie die App (Stein, Amber, Limette), Ueberschriften Playfair Display (OFL). */
@font-face { font-family: "Playfair Display"; src: url("/assets/PlayfairDisplay-Variable.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }

:root {
  --grund: #FAF7F2; --flaeche: #FFFFFF; --flaeche2: #F3EEE6; --text: #1C1917; --text2: #57534E; --linie: #E7E5E4;
  --akzent: #D97706; --akzent-dunkel: #B45309; --cta: #A3E635; --cta-text: #1A2E05; --schatten: 0 10px 30px rgba(28, 25, 23, .08);
  --radius: 18px; --breite: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #161412; --flaeche: #211E1B; --flaeche2: #2A2622; --text: #F5F5F4; --text2: #A8A29E; --linie: #3A3530;
    --akzent: #F59E0B; --akzent-dunkel: #FBBF24; --schatten: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --grund: #161412; --flaeche: #211E1B; --flaeche2: #2A2622; --text: #F5F5F4; --text2: #A8A29E; --linie: #3A3530;
  --akzent: #F59E0B; --akzent-dunkel: #FBBF24; --schatten: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--grund); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; margin-bottom: 1.2rem; }
h3 { font-size: 1.2rem; font-weight: 700; }
main { min-height: 60vh; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem max(16px, calc((100vw - var(--breite)) / 2)); background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.marke { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 1.5rem; text-decoration: none; }
.marke span { color: var(--akzent); }
.kopf-nav { display: flex; align-items: center; gap: 1.2rem; font-size: .95rem; }
.kopf-nav a { text-decoration: none; color: var(--text2); }
.kopf-nav a:hover { color: var(--text); }
@media (max-width: 760px) { .kopf-nav a:not(.knopf):not(.sprache) { display: none; } }

/* Knoepfe */
.knopf { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; background: var(--text); color: var(--grund); transition: transform .15s, box-shadow .15s; }
.knopf:hover { transform: translateY(-1px); box-shadow: var(--schatten); }
.knopf svg { width: 20px; height: 20px; fill: currentColor; }
.knopf.klein { padding: .45rem 1rem; font-size: .9rem; color: var(--grund) !important; }
.knopf.zweit { background: var(--flaeche2); color: var(--text); }

/* Hero */
.hero { position: relative; min-height: min(82vh, 760px); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; overflow: hidden; }
.hero > picture { display: contents; }
.hero-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 247, 242, .96) 0%, rgba(250, 247, 242, .85) 38%, rgba(250, 247, 242, 0) 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero::after { background: linear-gradient(90deg, rgba(22, 20, 18, .95) 0%, rgba(22, 20, 18, .8) 40%, rgba(22, 20, 18, .1) 75%); } }
.hero-innen { position: relative; z-index: 1; max-width: var(--breite); width: 100%; margin: 0 auto; padding: 4rem 16px; }
.hero-innen > * { max-width: 560px; }
.hero-innen p { font-size: 1.2rem; color: var(--text2); margin: 1rem 0 1.8rem; }
@media (max-width: 760px) {
  .hero { min-height: 0; align-items: end; }
  .hero-bild { position: relative; height: 46vh; }
  .hero::after { display: none; }
  .hero-innen { padding: 1.6rem 16px 2.4rem; background: var(--grund); }
}

/* Suche */
.suche { position: relative; display: flex; gap: .5rem; background: var(--flaeche); padding: .45rem; border-radius: 999px; box-shadow: var(--schatten); margin-bottom: 1.4rem; border: 1px solid var(--linie); }
.suche input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); padding: .5rem 1rem; outline: none; }
.suche button { border: 0; border-radius: 999px; padding: .6rem 1.3rem; font: inherit; font-weight: 700; background: var(--cta); color: var(--cta-text); cursor: pointer; }
.treffer { position: absolute; left: 0; right: 0; top: calc(100% + .4rem); background: var(--flaeche); border-radius: 14px; box-shadow: var(--schatten); border: 1px solid var(--linie); padding: .4rem; z-index: 5; }
.treffer a { display: block; padding: .55rem .8rem; border-radius: 10px; text-decoration: none; }
.treffer a:hover, .treffer a:focus { background: var(--flaeche2); }
.treffer p { padding: .55rem .8rem; color: var(--text2); }

/* Bloecke */
.block { max-width: var(--breite); margin: 0 auto; padding: 4rem 16px 1rem; }
.block-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.block-kopf a { color: var(--akzent-dunkel); font-weight: 700; text-decoration: none; }
.unter { color: var(--text2); font-size: 1.1rem; margin: .6rem 0 1.6rem; }

.kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .kacheln { grid-template-columns: repeat(2, 1fr); } }
.kachel { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; color: #fff; }
.kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.kachel:hover img { transform: scale(1.05); }
.kachel span { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); display: grid; }
.kachel strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; }
.kachel small { opacity: .9; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; }
@media (max-width: 520px) { .raster { grid-template-columns: repeat(2, 1fr); gap: .9rem; } }
.karte { display: grid; text-decoration: none; background: var(--flaeche); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); transition: transform .2s; }
.karte:hover { transform: translateY(-3px); }
.karte img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.karte-text { padding: .8rem 1rem 1rem; display: grid; gap: .2rem; }
.karte-text strong { font-size: 1rem; line-height: 1.3; }
.karte-text small { color: var(--text2); }

/* Reste */
.reste { max-width: var(--breite); margin: 4rem auto 0; padding: 0 16px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.reste img { border-radius: var(--radius); box-shadow: var(--schatten); }
.reste p { color: var(--text2); font-size: 1.1rem; margin-bottom: 1.2rem; }
@media (max-width: 800px) { .reste { grid-template-columns: 1fr; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.chips li { background: var(--flaeche2); padding: .35rem .9rem; border-radius: 999px; font-size: .95rem; }

/* App */
.app { text-align: left; }
.app-raster { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; margin-bottom: 1.6rem; }
@media (max-width: 800px) { .app-raster { grid-template-columns: 1fr; } }
.punkte { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 520px) { .punkte { grid-template-columns: 1fr; } }
.punkte div { background: var(--flaeche); padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--linie); }
.punkte p { color: var(--text2); font-size: .95rem; margin-top: .3rem; }
.screens { display: flex; gap: 1rem; justify-content: center; }
.screens img { width: 46%; max-width: 230px; border-radius: 22px; box-shadow: var(--schatten); border: 6px solid var(--text); }

/* FAQ */
.faq details { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .7rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { color: var(--text2); margin-top: .6rem; }

/* Pfad */
.pfad { max-width: var(--breite); margin: 0 auto; padding: 1.2rem 16px 0; color: var(--text2); font-size: .9rem; }
.pfad a { color: var(--text2); }

/* Rezept */
.rezept { max-width: var(--breite); margin: 0 auto; padding: 1.5rem 16px 2rem; }
.rezept-kopf { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .rezept-kopf { grid-template-columns: 1fr; gap: 1.4rem; } }
.rezept-kopf figure img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: var(--schatten); }
.rezept-kopf figcaption { font-size: .8rem; color: var(--text2); margin-top: .4rem; }
.fakten { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.fakten li { background: var(--flaeche); border: 1px solid var(--linie); padding: .45rem .9rem; border-radius: 999px; color: var(--text2); }
.fakten strong { color: var(--text); }
.makros { display: flex; gap: 1.5rem; margin: .4rem 0 1rem; }
.makros dt { font-size: .85rem; color: var(--text2); }
.makros dd { font-weight: 700; font-size: 1.2rem; }
.allergene { font-size: .95rem; color: var(--text2); }
.rezept-text { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; margin-top: 3rem; }
@media (max-width: 900px) { .rezept-text { grid-template-columns: 1fr; } }
.zutaten ul { list-style: none; background: var(--flaeche); border-radius: var(--radius); padding: .5rem 1.2rem; border: 1px solid var(--linie); }
.zutaten li { padding: .6rem 0; border-bottom: 1px dashed var(--linie); }
.zutaten li:last-child { border-bottom: 0; }
.klein { color: var(--text2); font-size: .9rem; margin-bottom: .6rem; }
.schritte ol { counter-reset: s; list-style: none; }
.schritte li { counter-increment: s; position: relative; padding: 0 0 1.4rem 3.2rem; }
.schritte li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--akzent); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Partner-Kasten */
.partner { margin-top: 1.6rem; background: var(--flaeche2); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .7rem; }
.marke-werbung { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: .8rem; font-weight: 700; background: var(--text); color: var(--grund); border-radius: 6px; padding: .1rem .45rem; vertical-align: middle; }
.geraet { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: center; background: var(--flaeche);
  border-radius: 14px; padding: .6rem; text-decoration: none; border: 1px solid var(--linie); }
.geraet img { grid-row: span 2; width: 96px; height: auto; border-radius: 10px; }
.geraet span { font-weight: 700; }
.geraet em { font-style: normal; color: var(--akzent-dunkel); font-size: .9rem; }
.geraet:not(:has(img)) { grid-template-columns: 1fr; }
.hinweis { font-size: .78rem; color: var(--text2); }

.app-cta { margin-top: 1.5rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.4rem; }
.app-cta p { color: var(--text2); margin: .4rem 0 1rem; }

/* Fuss */
.fuss { margin-top: 5rem; background: var(--flaeche2); border-top: 1px solid var(--linie); }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 2.5rem 16px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .fuss-innen { grid-template-columns: 1fr; } }
.fuss p { color: var(--text2); font-size: .9rem; margin-top: .6rem; }
.fuss nav { display: grid; gap: .4rem; align-content: start; }
.fuss nav a { color: var(--text2); text-decoration: none; }
.fuss nav a:hover { color: var(--text); }

/* Filterleiste */
.filter { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.6rem; display: grid; gap: .8rem; box-shadow: var(--schatten); }
.filter input[type="search"] { width: 100%; border: 1px solid var(--linie); background: var(--grund); color: var(--text); border-radius: 999px; padding: .7rem 1.1rem; font: inherit; }
.filter-zeile { display: flex; flex-wrap: wrap; gap: .7rem 1rem; }
.filter-zeile label { display: grid; gap: .2rem; font-size: .8rem; color: var(--text2); font-weight: 600; }
.filter select { font: inherit; font-size: .95rem; color: var(--text); background: var(--grund); border: 1px solid var(--linie); border-radius: 10px; padding: .45rem .6rem; min-width: 8.5rem; }
.ohne { border: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ohne legend { font-size: .8rem; color: var(--text2); font-weight: 600; margin-right: .4rem; float: left; padding-top: .35rem; }
.ohne label { display: inline-flex; align-items: center; gap: .35rem; background: var(--flaeche2); border-radius: 999px; padding: .3rem .75rem; font-size: .9rem; cursor: pointer; }
.ohne label:has(input:checked) { background: var(--text); color: var(--grund); }
.ohne input { accent-color: var(--akzent); }
.filter-info { font-size: .95rem; color: var(--text2); }
.filter-info button { border: 0; background: none; color: var(--akzent-dunkel); font: inherit; font-weight: 700; cursor: pointer; }
.filter .hinweis { margin-top: -.4rem; }
.keine { text-align: center; color: var(--text2); padding: 2rem 0; }
.karte[hidden] { display: none; }

/* Zusatzseiten: Einleitung, Generator, Tagesplaene, Fuss-Spalten */
.intro { font-size: 1.1rem; color: var(--text2); max-width: 760px; margin: 0 0 1.4rem; }
.mehr { margin: 1.2rem 0; }
.mehr a { color: var(--akzent-dunkel); font-weight: 700; }
.chips a { text-decoration: none; color: inherit; }
.chips li:has(a):hover { background: var(--linie); }
.generator .knopf { margin: .4rem 0 2rem; }
.schritt-karten { list-style: none; display: grid; gap: 1rem; }
.schritt-karten li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 4rem; position: relative; }
.schritt-karten span { position: absolute; left: 1.1rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--akzent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.schritt-karten p { color: var(--text2); margin-top: .3rem; }
.plan { grid-template-columns: repeat(4, 1fr); margin-bottom: 2rem; }
@media (max-width: 900px) { .plan { grid-template-columns: repeat(2, 1fr); } }
.plan-art { font-weight: 700; color: var(--akzent-dunkel); margin-bottom: .4rem; }
.fuss-innen { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
.fuss nav strong { font-size: .85rem; color: var(--text); margin-bottom: .2rem; }
@media (max-width: 1000px) { .fuss-innen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss-innen { grid-template-columns: 1fr; } }
