/* =========================================================
   Landgasthaus Op de Heyde – Fallbeispiel (erfundener Betrieb)
   Stimmung: Waldgrün, Leinen, Kerzenlicht, dunkles Holz.
   ========================================================= */
@font-face { font-family: "Gloock"; src: url(../fonts/Gloock.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/SourceSans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/SourceSans-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --forest: #14211a;
  --forest-2: #1d3025;
  --linen: #e9e4da;
  --linen-dim: #b8b3a6;
  --candle: #e7b45a;
  --berry: #9c2a3c;
  --oak: #3a2618;
  --serif: "Gloock", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);   /* Emil: kräftiges ease-out */
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--forest); color: var(--linen); font: 400 19px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--candle); color: var(--forest); }
:focus-visible { outline: 3px solid var(--candle); outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--linen); color: var(--forest); padding: 10px 16px; }
.skip:focus { top: 12px; }
.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; background: url(../bilder/korn.png); opacity: .08; mix-blend-mode: overlay; animation: grain 1s steps(5) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-4%)} 75%{transform:translate(-4%,-1%)} 100%{transform:translate(0,0)} }

.title { font: 400 clamp(54px, 8.4vw, 150px)/.98 var(--serif); letter-spacing: -0.02em; max-width: 11ch; }
.h2 { font: 400 clamp(40px, 5vw, 84px)/1.02 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; max-width: 38ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--candle); color: var(--forest); font-weight: 700; text-decoration: none; cursor: pointer; transition: scale .12s var(--ease), background-color .2s ease; }
.btn:active { scale: .97; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #f2c675; } }

/* ---------- Kopf ---------- */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest); opacity: .82; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px var(--serif); }
.logo svg { width: 40px; height: 40px; overflow: visible; }
.lg-candle { fill: var(--linen); }
.lg-wick { stroke: var(--oak); stroke-width: 2; }
.lg-flame { fill: var(--candle); transform-origin: 32px 24px; }
.lg-base { stroke: var(--candle); stroke-width: 3; stroke-linecap: round; }
.top-cta { text-decoration: none; font-weight: 700; border-bottom: 2px solid var(--candle); padding-bottom: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 105svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; } .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,33,26,.95), rgba(20,33,26,.35) 50%, rgba(20,33,26,0) 75%); } /* taste-skill-ignore: Abdeckung unter Text auf Foto */
.hero-text { position: relative; padding: 0 var(--pad) clamp(48px, 9vh, 110px); display: grid; gap: 24px; justify-items: start; }

/* ---------- Tisch ---------- */
.table-pin { min-height: 100svh; display: grid; grid-template-columns: 1fr 1.1fr; gap: 4vw; align-items: center; padding: 90px var(--pad) 40px; }
.table-copy { display: grid; gap: 20px; }
.table-copy .lead { color: var(--candle); font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.2; min-height: 2.4em; }
.table-stage { max-width: 640px; width: 100%; justify-self: center; }
.setting { width: 100%; display: block; border-radius: 4px; }
.t-wood { fill: var(--oak); }
.t-cloth { fill: var(--linen); }
.t-plate-rim { fill: #f7f5f0; stroke: #d8d2c4; stroke-width: 3; }
.t-plate-in { fill: #fbfaf7; stroke: #e2ddd1; stroke-width: 2; }
.t-fork rect, .t-knife rect { fill: #a9adb2; }
.t-glass-rim { fill: rgba(255,255,255,.35); stroke: #cfd6d8; stroke-width: 3; }
.t-wine { fill: #5b1220; }
.t-napkin { fill: var(--berry); }
.t-candle-body { fill: #f4efe4; stroke: #d6cdbb; stroke-width: 2; }
.t-flame { fill: #ffcf7a; }

/* ---------- Karte ---------- */
.menu { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-areas: "head head" "photo list"; gap: 40px 4vw; padding: clamp(96px, 14vh, 160px) var(--pad); }
.menu-head { grid-area: head; display: grid; gap: 16px; }
.menu-photo { grid-area: photo; overflow: hidden; border-radius: 4px; } .menu-photo img { width: 100%; height: 100%; object-fit: cover; }
.dishes { grid-area: list; align-self: center; display: grid; }
.dishes li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(233,228,218,.18); }
.dishes span { font: 400 clamp(22px, 1.9vw, 28px)/1.25 var(--serif); }
.dishes b { color: var(--candle); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Reservieren ---------- */
.reserve { position: relative; min-height: 110svh; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; }
.reserve-media { position: absolute; inset: 0; } .reserve-media img { width: 100%; height: 100%; object-fit: cover; }
.reserve-card { position: relative; margin: 40px var(--pad); background: var(--forest); padding: 40px; display: grid; gap: 16px; width: min(440px, 100%); border-radius: 4px; }
.reserve-card .h2 { font-size: clamp(36px, 3.2vw, 54px); margin-bottom: 6px; }
.reserve-card label, .persons { display: grid; gap: 6px; }
.reserve-card label span, .persons > span { font-size: 15px; color: var(--linen-dim); }
.reserve-card input, .reserve-card select { min-height: 52px; padding: 0 14px; border-radius: 6px; border: 1.5px solid rgba(233,228,218,.25); background: var(--forest-2); color-scheme: dark; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(233,228,218,.3); background: transparent; cursor: pointer; font-size: 22px; transition: scale .12s var(--ease); }
.stepper button:active { scale: .9; }
.stepper output { font: 400 34px var(--serif); min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.form-error { background: var(--berry); padding: 10px 14px; border-radius: 6px; font-size: 15px; }
.small { font-size: 15px; color: var(--linen-dim); }

/* ---------- Fuß ---------- */
.foot { padding: 60px var(--pad) 40px; display: grid; gap: 18px; }
.foot-mark { font: 400 clamp(64px, 14vw, 240px)/.9 var(--serif); color: var(--candle); }
.foot-note { max-width: 70ch; color: var(--linen-dim); font-size: 15px; }
.foot-note strong { color: var(--linen); }

@media (max-width: 860px) {
  .table-pin { grid-template-columns: 1fr; padding-top: 80px; gap: 16px; align-content: center; }
  .table-stage { order: -1; max-width: 360px; }
  .menu { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "list"; }
  .menu-photo { aspect-ratio: 4 / 5; }
  .reserve { justify-content: center; }
  .reserve-card { margin: 40px 16px; padding: 28px; }
  .logo span { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------- Für alle Fallbeispiele (V12): Kopfzeile ein/aus und yourpage24-Hinweis ---------- */
.top { transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
.top.yp-weg { transform: translateY(-100%); }
.yp-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 45; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px; border-radius: 99px; text-decoration: none; font: 500 13px/1.2 system-ui, sans-serif;
  color: #e9fbff; background: rgba(3, 18, 26, 0.82); border: 1px solid rgba(34, 227, 214, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(12px) scale(0.97); pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.23, 1, 0.32, 1), transform 250ms cubic-bezier(0.23, 1, 0.32, 1), border-color 200ms ease;
}
.yp-pill.is-on { opacity: 1; transform: none; pointer-events: auto; }
.yp-pill i { width: 8px; height: 8px; border-radius: 50%; background: #22e3d6; box-shadow: 0 0 10px #22e3d6; flex: none; }
.yp-pill b { font-weight: 600; color: #22e3d6; }
.yp-pill:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .yp-pill:hover { border-color: #22e3d6; } }
@media (max-width: 520px) { .yp-pill span { display: none; } }
@media (prefers-reduced-motion: reduce) { .top, .yp-pill { transition-property: opacity; } .yp-pill { transform: none; } }
