/* ljubi.de – Stylesheet (bewusst dunkel, wie das Original) */
:root {
  --bg: #0c0c0d;
  --surface: #17171a;
  --surface-2: #202024;
  --ink: #f4f1ea;
  --ink-soft: #aaa6a0;
  --line: #2b2b30;
  --accent: #ffd23f;
  --accent-2: #ff8a5b;
  --radius: 16px;
  --max: 1080px;
  color-scheme: dark;
}
*, *::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.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Logo im Stil der alten Startgrafik: Konturschrift */
.logo {
  font-family: "Arial Black", "Segoe UI Black", Impact, system-ui, sans-serif; font-weight: 900;
  color: transparent; -webkit-text-stroke: 2px var(--ink); letter-spacing: .02em; text-decoration: none;
  paint-order: stroke fill;
}
@supports not (-webkit-text-stroke: 1px black) { .logo { color: var(--ink); } }

.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(12,12,13,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header .inner { height: 64px; display: flex; align-items: center; gap: 20px; }
.site-header .logo { font-size: 26px; -webkit-text-stroke-width: 1.4px; }
.site-header .logo:hover { -webkit-text-stroke-color: var(--accent); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current] { color: #111; background: var(--accent); }
@media (max-width: 520px) { .site-header .logo { font-size: 22px; } .nav a { padding: 7px 10px; font-size: 14px; } .site-header .inner { gap: 10px; } }

/* Start */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 0 40px; }
.hero h1 { margin: 0; font-size: clamp(56px, 11vw, 132px); line-height: .95; -webkit-text-stroke-width: 3px; }
.hero p { color: var(--ink-soft); font-size: 19px; max-width: 34ch; margin: 22px 0 0; }
.portrait { border-radius: 50%; aspect-ratio: 1; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(255, 210, 63, .08); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.25); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-top: 36px; } .portrait { max-width: 320px; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 20px 0 48px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px;
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; background: var(--surface);
  border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.05) 60%); }
.tile .txt { position: relative; z-index: 1; padding: 18px 20px; }
.tile b { display: block; font-size: 21px; letter-spacing: -.01em; }
.tile small { color: #d8d4cc; font-size: 14px; }
.tile .glyph { position: absolute; top: 18px; left: 20px; z-index: 1; font-size: 44px; line-height: 1; }
.tile.plain { background: linear-gradient(140deg, #2a2312, #17171a 70%); }
.tile.plain.b { background: linear-gradient(140deg, #2b1a12, #17171a 70%); }
.tile.plain.c { background: linear-gradient(140deg, #12202b, #17171a 70%); }

.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin: 32px 0 0; }

/* Seiten */
.page-head { padding: 48px 0 12px; }
.page-head .eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.page-head h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin: 8px 0 10px; }
.page-head p { color: var(--ink-soft); font-size: 18px; margin: 0; max-width: 60ch; }
.prose { max-width: 720px; padding-bottom: 56px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -.01em; }
.prose p { margin: 0 0 14px; }

/* Rezept */
.recipe { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; padding: 24px 0 56px; }
@media (max-width: 820px) { .recipe { grid-template-columns: 1fr; gap: 28px; } }
.ingredients { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; position: sticky; top: 84px; }
@media (max-width: 820px) { .ingredients { position: static; } }
.ingredients h2 { margin: 0 0 4px; font-size: 18px; }
.ingredients h3 { margin: 18px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.ingredients h3:first-of-type { margin-top: 10px; }
.ingredients .hint { font-size: 13px; color: var(--ink-soft); margin: 0 0 4px; }
.ingredients ul { list-style: none; padding: 0; margin: 0; }
.ingredients li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); cursor: pointer; user-select: none; font-size: 15.5px; }
.ingredients li:last-child { border-bottom: 0; }
.ingredients li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 5px; border: 1.5px solid var(--ink-soft); }
.ingredients li.done { color: var(--ink-soft); text-decoration: line-through; }
.ingredients li.done::before { background: var(--accent); border-color: var(--accent); }
.ingredients li .qty { font-variant-numeric: tabular-nums; font-weight: 650; min-width: 4.6em; }
.ingredients li.done .qty { font-weight: 400; }

.method h2 { font-size: 24px; margin: 0 0 12px; letter-spacing: -.01em; }
.method h2:not(:first-child) { margin-top: 36px; }
.method ol { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.method ol > li { counter-increment: s; position: relative; padding: 0 0 0 48px; margin: 0 0 18px; }
.method ol > li::before {
  content: counter(s); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-weight: 800; font-size: 15px;
}
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--surface-2); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink); }
.facts li b { color: var(--accent); font-weight: 700; }
.tip { margin: 22px 0; padding: 14px 18px; border-left: 3px solid var(--accent-2); background: var(--surface); border-radius: 0 12px 12px 0; }
.tip p:last-child { margin-bottom: 0; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 28px; }
.photos figure { margin: 0; }
.photos a { display: block; border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .3s; }
.photos a:hover img { transform: scale(1.04); }
.photos figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 6px; text-align: center; }

.back { display: inline-block; margin-top: 8px; color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--accent); }

/* Dozen */
.dozen { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; counter-reset: d; }
.dozen li { counter-increment: d; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 62px; position: relative; font-weight: 600; min-height: 64px; display: flex; align-items: center; }
.dozen li::before { content: counter(d); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: "Arial Black", Impact, sans-serif; font-size: 26px; color: transparent; -webkit-text-stroke: 1.2px var(--accent); }

/* Promo + Footer */
.promo { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin: 0 0 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; max-width: 560px; }
.promo:hover { border-color: var(--accent); }
.promo .sun { flex: none; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #ffb347, #ff6a3d); display: grid; place-items: center; color: #fff; }
.promo small { display: block; color: var(--ink-soft); font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--ink-soft); font-size: 14px; }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--ink-soft); }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox .stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; }
.lightbox p { color: #ccc; margin: 12px 0 0; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .promo, .photos { display: none; } body { background: #fff; color: #000; } .ingredients { border-color: #999; background: #fff; } }
