/* Rezepte-Magazin (26.10.2026) — Ergänzung zu styles.css und rezepte.css, ersetzt nichts.
   Alle Farben, Radien und Schriften kommen aus dem Designsystem „Blau“ (styles.css :root):
   Königsblau, Nachtblau, Himmel, Signal-Gelb nur als Fläche mit dunkler Schrift, IBM Plex Sans.
   Geladen auf der Rezepte-Startseite, allen Entdecker-Seiten und den Datenbank-Rezeptseiten (DE und EN).
   Erzeugt werden die Seiten von rezepte-bauen.mjs / rezepte-magazin.mjs — Klassen dort mitändern. */

/* ---------- Karten: das GANZE Foto zeigen (4:5, nichts abgeschnitten) ---------- */
.rz-karte img { aspect-ratio: 4 / 5; height: auto; }

/* Kennzeichnung der Datenbank-Rezepte: Dotter-Fläche mit dunkler Schrift (10,5 : 1), auf jeder Karte und Seite. */
.rz-marke {
  display: inline-block; align-self: flex-start; margin: 0 14px 14px; padding: 3px 10px;
  border-radius: 10px; background: var(--mt-signal); color: var(--mt-signal-ink);
  font-size: 12px; line-height: 16px; font-weight: 600;
}
.rz-karte-text + .rz-marke { margin-top: -6px; }
.rz-marke--gross { margin: 0 0 14px; font-size: 14px; line-height: 20px; padding: 4px 12px; }
.rz-hinweis { margin: 4px 0 26px; }

/* Platzhalter (Rezepte ohne Foto): neutrale Blaufläche mit Linien-Symbol der Kategorie — kein Food-Bild. */
.rz-platzhalter { display: flex; align-items: center; justify-content: center; background: var(--grad-band); color: #fff; }
.rz-platzhalter svg { width: 56px; height: 56px; opacity: 0.92; }
.rz-platzhalter--karte { aspect-ratio: 4 / 5; width: 100%; }
.rz-platzhalter--rund { width: 100%; height: 100%; }
.rz-platzhalter--gross { flex-direction: column; gap: 18px; padding: 28px; text-align: center; aspect-ratio: 4 / 5; border-radius: var(--r-tile); }
.rz-platzhalter--gross svg { width: 72px; height: 72px; }
.rz-platzhalter-titel { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 3vw, 26px); line-height: 1.2; max-width: 16ch; text-wrap: balance; }

/* Rezeptseite: das ganze Foto statt eines Ausschnitts (Querformat-Beschnitt aus rezepte.css entfällt hier). */
.rz-foto--ganz img, .rz-foto--ganz .rz-platzhalter { width: 100%; max-width: 520px; aspect-ratio: 4 / 5; max-height: none; height: auto; }
.rz-foto--ganz img { object-fit: cover; border-radius: var(--r-tile); }

/* ---------- Startseite ---------- */
.rz-magazin[hidden] { display: none; }
.rz-start-kopf .rz-suche--gross { max-width: 760px; margin-top: 24px; }
.rz-suche--gross > span { font-weight: 600; color: #fff; }
.rz-suche--gross input {
  min-height: 56px; font-size: 18px; padding: 14px 20px 14px 52px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005bd4' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 16px center / 24px;
}

.rz-sec { padding: clamp(26px, 4vw, 44px) 0; }
.rz-sec-kopf { margin-bottom: 20px; }
.rz-sec-kopf h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0; }
.rz-sec-kopf p { margin-top: 6px; }
.rz-hero { padding-top: clamp(24px, 3vw, 36px); }

.rz-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rz-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .rz-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Handy: drei Tagesvorschläge als wischbare Reihe statt dreier Karten untereinander. */
@media (max-width: 700px) {
  .rz-grid--3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; }
  .rz-grid--3 > .rz-karte { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ---------- Karussell: ohne Skript eine scrollbare Reihe ---------- */
.rz-kar { position: relative; }
.rz-kar-spur {
  list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) { .rz-kar-spur { scroll-behavior: auto; } }
.rz-kar-spur:focus-visible { outline: 2px solid var(--mt-blau); outline-offset: 4px; }
.rz-kar-item { flex: 0 0 auto; scroll-snap-align: start; min-width: 0; }
.rz-kar--hero .rz-kar-item { flex-basis: 100%; }
.rz-kar--karten .rz-kar-item { flex-basis: calc((100% - 32px) / 3); display: flex; }
.rz-kar--karten .rz-kar-item > .rz-karte { width: 100%; }
@media (max-width: 900px) { .rz-kar--karten .rz-kar-item { flex-basis: calc((100% - 16px) / 2.2); } }
@media (max-width: 560px) { .rz-kar--karten .rz-kar-item { flex-basis: 72%; } }
.rz-kar-steuer { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.rz-kar-steuer[hidden] { display: none; }
.rz-kar-knopf {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--mt-blau); background: var(--surface); color: var(--mt-blau);
}
.rz-kar-knopf:hover:not(:disabled) { background: var(--mt-himmel); }
.rz-kar-knopf:disabled { opacity: 0.35; cursor: default; }
.rz-kar-punkte { display: flex; gap: 2px; }
.rz-kar-punkte:empty { display: none; }
.rz-kar-punkt { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.rz-kar-punkt::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--mt-himmel-2); border: 1px solid var(--mt-blau); }
.rz-kar-punkt[aria-current='true']::before { background: var(--mt-blau); }

/* Aufmacher-Folie (Feinschliff 26.10.): das Foto füllt die ganze Folie wie ein Titelbild, der Text liegt links unten
   auf einem abgedunkelten Nachtblau-Verlauf. Querformat 3:2; der Ausschnitt (Mitte, leicht nach oben) zeigt das Gericht
   ganz — wo ein Foto anders komponiert ist, steht der Ausschnitt in HERO_FOKUS (rezepte-magazin.mjs). */
.rz-slide { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-tile); background: var(--mt-nacht); color: #fff; }
.rz-slide-bild { position: absolute; inset: 0; margin: 0; }
.rz-slide-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; background: var(--mt-nacht); }
.rz-slide-bild::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 75% at 0% 100%, rgba(10, 31, 110, 0.9) 0%, rgba(10, 31, 110, 0.62) 38%, rgba(10, 31, 110, 0) 72%); }
.rz-slide-bild figcaption { position: absolute; right: 14px; top: 14px; z-index: 1; padding: 2px 9px; border-radius: 10px; background: rgba(10, 31, 110, 0.78); font-size: 12px; line-height: 18px; color: #fff; }
.rz-slide-text { position: absolute; left: 0; bottom: 0; z-index: 1; max-width: min(640px, 100%); padding: clamp(22px, 4vw, 48px); }
.rz-slide-text h2 { font-size: clamp(30px, 4.4vw, 52px); margin: 8px 0 12px; color: #fff; }
.rz-slide-p { max-width: 46ch; margin: 0 0 20px; color: #fff; font-size: 18px; line-height: 28px; }
/* Handy: Foto oben in voller Breite (ganz, 4:5), Text darunter auf dem Blauband. */
@media (max-width: 760px) {
  .rz-slide { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--grad-band); }
  .rz-slide-bild { position: relative; inset: auto; aspect-ratio: 4 / 5; }
  .rz-slide-bild::after { background: linear-gradient(0deg, rgba(10, 31, 110, 0.35) 0%, rgba(10, 31, 110, 0) 30%); }
  .rz-slide-text { position: static; max-width: none; padding: 20px 20px 24px; }
  .rz-slide-p { font-size: 16px; line-height: 24px; }
}

/* ---------- Schnelleinstieg: runde Symbole ---------- */
.rz-rund-reihe { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(14px, 3vw, 40px); }
.rz-rund { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 132px; text-align: center; font-weight: 600; font-size: 14px; line-height: 18px; }
.rz-rund-kreis { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--mt-himmel); color: var(--mt-blau); border: 1px solid var(--mt-himmel-2); }
.rz-rund:hover .rz-rund-kreis { background: var(--mt-blau); color: #fff; border-color: var(--mt-blau); }
@media (max-width: 700px) {
  .rz-rund-reihe { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
  .rz-rund-reihe > li { flex: 0 0 100px; scroll-snap-align: start; }
  .rz-rund { width: 100px; }
}

/* ---------- Themenwelten: runde Fotos ---------- */
.rz-themen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px clamp(16px, 3vw, 36px); }
.rz-thema { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 136px; text-align: center; }
.rz-thema-bild { display: block; width: 128px; height: 128px; border-radius: 50%; overflow: hidden; background: var(--mt-himmel); border: 1px solid var(--line); }
.rz-thema-bild img { width: 100%; height: 100%; object-fit: cover; }
.rz-thema-titel { font-weight: 600; line-height: 20px; }
.rz-thema:hover .rz-thema-titel { color: var(--mt-blau); }
.rz-thema .rz-karte-text { margin: 0; display: block; font-size: 13px; }

/* ---------- Saison-Trends: Foto-Kacheln mit dunklem Verlauf (CEO 26.10.2026, Variante B) ----------
   16:9, das Foto füllt die Kachel, unten Verlauf von durchsichtig zu Nachtblau, Wort weiß groß, Zahl darunter.
   Zeigt der Lauf zu einem Wort kein Foto, bleibt die Kachel ein Blauband (.rz-trend--ohne), nie ein fremdes Bild. */
.rz-trends { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .rz-trends { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.rz-trend { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-tile); background: var(--mt-nacht); color: #fff; }
.rz-trend img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.rz-trend--ohne { background: var(--grad-band); }
.rz-trend-text {
  position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 28px 16px 12px;
  background: linear-gradient(rgba(10, 31, 110, 0), rgba(10, 31, 110, 0.9));
  background: linear-gradient(transparent, color-mix(in srgb, var(--mt-nacht) 90%, transparent));
}
.rz-trend-wort { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.rz-trend-n { font-size: 13px; line-height: 18px; color: #fff; opacity: 0.92; }
/* KI-Etikett am Bild (KI-VO Art. 50): gleiches kleines Etikett auf Saison- und Mosaik-Kacheln */
.rz-trend-ki, .rz-bento-ki { position: absolute; right: 8px; top: 8px; padding: 1px 8px; border-radius: 10px; background: rgba(10, 31, 110, 0.72); font-size: 11px; line-height: 16px; color: #fff; }
.rz-trend:hover { box-shadow: 0 0 0 3px var(--mt-blau-hell); }
.rz-trend:focus-visible { outline: 3px solid var(--mt-blau); outline-offset: 3px; }
@media (max-width: 700px) { .rz-trend-text { padding: 22px 12px 10px; } .rz-trend-wort { font-size: 18px; } .rz-trend-ki, .rz-bento-ki { font-size: 10px; line-height: 15px; padding: 0 6px; right: 6px; top: 6px; } }

/* ---------- Inspiration: Mosaik (CEO 26.10.2026, Variante B) ----------
   4 Spalten, erste Kategorie groß (2 × 2), die übrigen klein; Titel und Zahl weiß auf Nachtblau-Verlauf.
   rezepte-magazin.mjs baut die Kacheln so, dass die letzte Zeile voll ist (4 + 8 = 12 Felder bei neun Kategorien). */
.rz-bento-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 12px; }
.rz-bento { position: relative; display: block; overflow: hidden; border-radius: var(--r-tile); background: var(--mt-nacht); color: #fff; }
.rz-bento--gross { grid-column: span 2; grid-row: span 2; }
.rz-bento img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.rz-bento-text {
  position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 1px; padding: 26px 14px 12px;
  background: linear-gradient(rgba(10, 31, 110, 0), rgba(10, 31, 110, 0.88));
  background: linear-gradient(transparent, color-mix(in srgb, var(--mt-nacht) 88%, transparent));
}
.rz-bento-text b { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 20px; color: #fff; overflow-wrap: anywhere; }
.rz-bento--gross .rz-bento-text b { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; }
.rz-bento-text span { font-size: 13px; line-height: 18px; color: #fff; opacity: 0.92; }
.rz-bento:hover { box-shadow: 0 0 0 3px var(--mt-blau-hell); }
.rz-bento:focus-visible { outline: 3px solid var(--mt-blau); outline-offset: 3px; }
@media (max-width: 700px) {
  .rz-bento-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; gap: 10px; }
  .rz-bento-text { padding: 22px 10px 10px; }
  .rz-bento-text b { font-size: 15px; line-height: 19px; }
  .rz-bento--gross .rz-bento-text b { font-size: 22px; }
}

/* ---------- Kochbuch-Band (vorhandener .cta-Stil) und Katalog ---------- */
.rz-cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); }
.rz-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.rz-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--mt-blau); border-radius: var(--r-pill); background: var(--surface); color: var(--mt-blau); font-weight: 600; font-size: 15px; }
.rz-chips a:hover { background: var(--mt-himmel); }
.rz-chips .muted { font-weight: 400; }
#rz-alle[hidden] { display: none; }

/* Handy: Themenwelten dreispaltig, kleinere Kreise */
@media (max-width: 560px) {
  .rz-themen { gap: 18px 10px; }
  .rz-thema { width: calc((100% - 20px) / 3); }
  .rz-thema-bild { width: 92px; height: 92px; }
  .rz-thema-titel { font-size: 14px; line-height: 18px; }
  .rz-platzhalter--rund svg { width: 40px; height: 40px; }
}

/* Kategorien ohne Foto: kleine Links unter dem Raster */
.rz-chips--klein { margin: 18px 0 0; align-items: center; }
.rz-chips--klein a { min-height: 40px; padding: 6px 14px; font-size: 14px; }
