/*
Theme Name: Schlemmerkino
Theme URI: https://schlemmerkino.de/
Author: Webhaus LLC
Description: Direction A "Kino" (owner's choice of 2026-11-01): a velvet marquee header with a gold rule, Bebas Neue small caps, Fraunces titles, Inter text; the recipe card as a ticket, the film as a marquee card in a dark box. Light page, dark follows the system with a toggle. Built for the HTML tools/publish.py writes (the "Kurz gesagt" box, the recipe section, FAQ details, Quellen) and the post meta the publisher sends (film, film_year, film_hub, prep_time, cook_time, total_time, servings, reviewed, legacy_id).
Version: 0.1.1
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: schlemmerkino
*/

/* ---------- fonts (files in the theme; Latin subsets of the Google Fonts builds, SIL OFL: assets/fonts/OFL-*.txt). No Google Fonts request leaves the site (LG München, 2022). ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/inter.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/fraunces.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(assets/fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/bebas-neue.woff2) format("woff2"); }

/* ---------- tokens. Dark mode: the system setting unless the toggle (assets/theme.js) set data-theme on <html>. ---------- */
:root {
  --bg: #f6f1e8; --paper: #fffdf8; --ink: #1b1410; --muted: #6b5f55; --line: #e3d9c8;
  --velvet: #2a0f14; --velvet-2: #4a1a22; --gold: #e8b84a; --gold-ink: #1b1410; --accent: #b7222e; --accent-ink: #fff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bebas Neue", "Inter", system-ui, sans-serif;
  --r: 14px; --wide: 70rem; --col: 47.5rem;
}
:root[data-theme="dark"] { --bg: #140c0e; --paper: #1f1316; --ink: #f3eadf; --muted: #b8a899; --line: #3a2328; --velvet: #0d0608; --velvet-2: #2a0f14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #140c0e; --paper: #1f1316; --ink: #f3eadf; --muted: #b8a899; --line: #3a2328; --velvet: #0d0608; --velvet-2: #2a0f14; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 1.4em 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-top: .5em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kicker { font-family: var(--display); letter-spacing: .12em; font-size: .95rem; color: var(--accent); text-transform: uppercase; margin: 0 0 .4em; }
.crumbs { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }
.crumbs a { color: var(--muted); }
.byline { color: var(--muted); font-size: .92rem; margin: -.4em 0 1em; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 999px; }
.lead, .deck { color: var(--muted); max-width: 60ch; }

/* ---------- header: the marquee ---------- */
.site-head { background: linear-gradient(180deg, var(--velvet), var(--velvet-2)); color: #fff; border-bottom: 4px solid var(--gold); }
.site-head .wide { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { font-family: var(--display); font-size: 2.2rem; line-height: 1; background: var(--gold); color: var(--gold-ink); padding: 2px 10px; border-radius: 6px; align-self: center; }
.brand-name { font-family: var(--display); font-size: 2rem; letter-spacing: .06em; }
.brand-tag { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: .95rem; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current] { background: rgba(255, 255, 255, .12); }
.search { display: flex; margin: 0; }
.search input { font: inherit; font-size: .95rem; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px 0 0 999px; background: rgba(255, 255, 255, .08); color: #fff; width: 190px; }
.search input::placeholder { color: rgba(255, 255, 255, .6); }
.search button { font: inherit; font-weight: 600; border: 0; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 0 999px 999px 0; cursor: pointer; }
.is-listing .search, .is-article .search { }
.wrap .search input, .lost .search input { border-color: var(--line); background: var(--paper); color: var(--ink); }
.wrap .search input::placeholder, .lost .search input::placeholder { color: var(--muted); }
.toggle { background: none; border: 1px solid rgba(255, 255, 255, .3); color: #fff; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; display: inline-grid; place-items: center; }
.toggle svg { width: 18px; height: 18px; }
.toggle .moon { display: none; }
:root[data-theme="dark"] .toggle .sun { display: none; }
:root[data-theme="dark"] .toggle .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toggle .sun { display: none; } :root:not([data-theme="light"]) .toggle .moon { display: block; } }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; margin: 28px auto 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hero-photo { min-height: 360px; background: radial-gradient(circle at 30% 30%, #d9b28a, #8a4b3a 70%); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; }
.hero-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.hero-text { padding: 28px 28px 28px 0; }
.hero-text h1 { margin-top: .2em; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.row { margin: 40px auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card-photo { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #c89f74, #7a3b2e); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.card-kicker { font-family: var(--display); letter-spacing: .1em; font-size: .85rem; color: var(--accent); text-transform: uppercase; }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
.card-meta { color: var(--muted); font-size: .9rem; }
.marquee { background: var(--velvet); color: #fff; padding: 18px; border: 3px solid var(--gold); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; min-height: 120px; justify-content: center; text-align: center; box-shadow: inset 0 0 0 6px var(--velvet), inset 0 0 0 7px rgba(232, 184, 74, .5); }
.marquee-kicker { font-family: var(--display); letter-spacing: .2em; color: var(--gold); font-size: .85rem; }
.marquee-title { font-family: var(--display); font-size: 1.7rem; line-height: 1.05; letter-spacing: .03em; }
.marquee-year { color: var(--gold); font-family: var(--serif); font-style: italic; }
.card-hub { padding: 10px; background: transparent; border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 1em; list-style: none; }
.chip { text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.chip:hover, .chip[aria-current] { border-color: var(--gold); }
.about p { max-width: 70ch; }

/* ---------- article ---------- */
.entry { max-width: var(--col); margin: 0 auto; padding: 0 16px 20px; }
.article-photo { margin: 0 0 1.5em; border-radius: var(--r); overflow: hidden; position: relative; background: linear-gradient(135deg, #c89f74, #7a3b2e); aspect-ratio: 16 / 9; }
.article-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-photo figcaption { position: absolute; right: 10px; bottom: 8px; font-size: .8rem; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: 999px; }
.key-facts { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--r); padding: 16px 20px; margin: 0 0 1.5em; }
.key-facts-label { font-family: var(--display); letter-spacing: .15em; color: var(--accent); margin: 0 0 .4em; font-size: .95rem; }
.key-facts p { margin: .3em 0; }
.key-facts ul { margin: .4em 0 0; padding-left: 1.2em; }
.cite { font-size: .7em; }
.cite a { text-decoration: none; color: var(--muted); }
.scene { margin: 0 0 1em; padding: 14px 20px; border-left: 5px solid var(--accent); background: var(--paper); font-family: var(--serif); font-size: 1.08rem; }
.scene p { margin: 0; }
.entry-text blockquote:not(.scene) { margin: 0 0 1em; padding: 0 0 0 20px; border-left: 3px solid var(--line); color: var(--muted); }
.recipe-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 24px 20px; margin: 1.5em 0; position: relative;
  background-image: radial-gradient(circle at 0 50%, var(--bg) 10px, transparent 11px), radial-gradient(circle at 100% 50%, var(--bg) 10px, transparent 11px); }
.recipe-card > h2 { font-family: var(--display); letter-spacing: .06em; font-weight: 400; font-size: 2rem; margin: .4em 0 .2em; color: var(--accent); }
.recipe-meta { color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.recipe-cols { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; }
.recipe-ingredients ul { padding-left: 1.1em; }
.recipe-ingredients li { margin: .2em 0; }
.recipe-steps ol { padding-left: 1.3em; }
.recipe-steps li { margin: .5em 0; }
.recipe-card h3 { font-family: var(--display); letter-spacing: .08em; font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.film-box { background: var(--velvet); color: #fff; border-radius: var(--r); padding: 18px 20px; margin: 2em 0; display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: start; }
.film-box-label { grid-column: 1 / -1; font-family: var(--display); letter-spacing: .15em; color: var(--gold); margin: 0; }
.cover { width: 130px; }
.cover img { width: 100%; display: block; border-radius: 6px; }
.cover .marquee { min-height: 195px; }
.film-box-text { margin: 0; }
.film-box a { color: var(--gold); }
.film-box .button { background: var(--gold); color: var(--gold-ink); margin-top: 8px; }
.werbung { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; margin-left: 6px; opacity: .8; vertical-align: middle; }
.disclosure { font-size: .85rem; color: var(--muted); margin: 0; }
.film-box .disclosure { color: #cdbfb3; grid-column: 1 / -1; }
.faq-item { border-top: 1px solid var(--line); padding: 8px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-family: var(--serif); }
.faq-answer { color: var(--muted); }
.related-articles { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px 8px; margin: 1.5em 0; }
.related-articles h2 { font-size: 1.2rem; margin: .8em 0 .4em; }
.related-articles ul { padding-left: 1.2em; }
.sources { font-size: .9rem; color: var(--muted); word-break: break-word; }
.sources ol { padding-left: 1.2em; }
.link-pending { color: var(--muted); border-bottom: 1px dotted var(--muted); }
.reviewed { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2em; }
.ad { margin: 1.5em 0; text-align: center; }
.ad-label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hub-recipes { margin: 2em 0; }
.hub-recipes .grid { grid-template-columns: repeat(2, 1fr); }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); }
.entry-text img { border-radius: 10px; }
.entry-text table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0 0 1em; }
.entry-text th, .entry-text td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }

/* ---------- listings ---------- */
.listing-head { margin: 28px auto 20px; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pagination .current { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.empty { color: var(--muted); }
.lost { padding: 40px 16px; }
.az { columns: 3; column-gap: 24px; padding: 0; list-style: none; }
.az li { break-inside: avoid; margin: 0 0 .4em; }
.az a { text-decoration: none; color: var(--ink); }
.az a:hover { color: var(--accent); }
.az small { color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { margin-top: 60px; background: var(--velvet); color: #e8dccf; padding: 28px 0; font-size: .92rem; }
.site-foot a { color: var(--gold); }
.site-foot nav { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 12px; }
.site-foot .disclosure { color: #cdbfb3; }
.site-foot .brand-name { font-size: 1.5rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 0 20px 20px; }
  .hero-photo, .hero-photo img { min-height: 240px; }
  .grid, .hub-recipes .grid { grid-template-columns: 1fr 1fr; }
  .recipe-cols { grid-template-columns: 1fr; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .search input { width: 140px; }
  .az { columns: 2; }
}
@media (max-width: 560px) {
  .grid, .hub-recipes .grid { grid-template-columns: 1fr; }
  .film-box { grid-template-columns: 1fr; }
  .cover { width: 110px; }
  .az { columns: 1; }
  .brand-tag { display: none; }
}
@media print { .site-head, .site-foot, .film-box, .ad, .related-articles, .toggle { display: none; } body { background: #fff; color: #000; } .recipe-card { border: 1px solid #000; } }
