/* ==========================================================================
   Gasthaus Kupferkessel — Zenilio-Vorlage "Restaurant"
   Self-hosted: DM Serif Display (Display) + Manrope (Fließtext)
   Bewusst dunkles Farbschema für stilistische Bandbreite gegenüber den
   anderen Vorlagen (Friseur/Blumenladen/Café sind hell).
   ========================================================================== */
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/restaurant/DMSerifDisplay-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/restaurant/DMSerifDisplay-400italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/restaurant/Manrope-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

:root {
  --bg: #12160F;
  --surface: #1A1F16;
  --ink: #F1EAD9;
  --ink-soft: #B3AC98;
  --accent: #C9A86A;
  --accent-soft: #7A4A4E;
  --line: rgba(241,234,217,0.12);
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --container: 1140px;
  --header-h: 72px;
  --shadow-soft: 0 24px 60px -25px rgba(0,0,0,0.6);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 12px 28px -18px rgba(0,0,0,0.5);
}

body { font-family: var(--font-body); background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; font-weight: 400; letter-spacing: -0.005em; }
em { font-style: italic; color: var(--accent); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--accent); color: #12160F; padding: 12px 18px; border-radius: 8px; font-weight: 700; z-index: 1000; transition: top .2s ease; }
.skip-link:focus { top: 16px; outline: 2px solid var(--ink); outline-offset: 2px; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }

.section { padding-block: clamp(60px, 9vw, 110px); }
.section-head { max-width: 600px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

/* the one light moment on the page — reserved for the closing conversion CTA */
.section--light { background: #F5EDE1; color: #241512; }
.section--light .eyebrow { color: #7D5A1C; }
.section--light .eyebrow::before { background: #C9A86A; }
.section--light h2 { color: #241512; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 6px; font-weight: 700; font-size: .96rem; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #12160F; }
.btn-primary:hover { background: #DCC08C; box-shadow: var(--shadow-soft); }
.btn-outline { background: transparent; border-color: rgba(241,234,217,.3); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.section--light .btn-outline { border-color: rgba(36,21,18,.25); color: #241512; }
.section--light .btn-outline:hover { border-color: #241512; }
.btn-sm { padding: 10px 20px; font-size: .88rem; }

/* Demo disclosure bar */
.demo-bar { background: #120C0A; color: rgba(241,234,217,.85); font-size: .84rem; }
.demo-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.demo-bar a { font-weight: 700; color: var(--accent); }
.demo-bar a:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; background: rgba(18,22,15,.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(18,22,15,.96); }
.nav-inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); display: flex; align-items: center; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; }
.nav-wordmark { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: .94rem; font-weight: 600; color: var(--ink-soft); position: relative; padding-block: 4px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); align-items: center; justify-content: center; flex: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .25s, opacity .25s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-sm { display: none; }
  .mobile-panel { position: fixed; top: var(--panel-top, var(--header-h)); left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 90; padding: 26px clamp(20px,6vw,40px) 40px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; overflow-y: auto; }
  .mobile-panel.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .mobile-panel a { font-family: var(--font-display); font-size: 1.5rem; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-panel .btn { margin-top: 18px; align-self: flex-start; }
}
@media (min-width: 881px) { .mobile-panel { display: none; } }

/* Hero — full-bleed: die Illustration liegt als gedimmter Hintergrund
   hinter dem Text statt daneben, für eine dramatischere, dunklere
   Bühnenwirkung passend zum Abend-Restaurant-Thema. Der abdunkelnde
   Scrim (hero-art::after) ist bewusst vom pulsierenden Glow getrennt,
   damit die Textlesbarkeit nicht mit-pulsiert. */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; padding-block: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -10% -10% auto -10%; height: 560px; background: radial-gradient(55% 55% at 80% 10%, rgba(201,138,62,.16), transparent 70%); pointer-events: none; z-index: -1; animation: reGlowPulse 7s ease-in-out infinite; }
@keyframes reGlowPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.hero-grid > div:first-child { max-width: 600px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); }
.hero-sub { margin-top: 18px; font-size: 1.12rem; color: var(--ink-soft); max-width: 480px; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
/* z-index:-1 (nicht 0!) ist entscheidend: nur negative Werte lassen
   positionierte Elemente hinter normalen, nicht-positionierten
   Inhalten wie dem Hero-Text einsortieren. */
.hero-art { position: absolute; inset: 0; z-index: -1; opacity: .55; border-radius: 0; box-shadow: none; }
.hero-art::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, var(--bg) 0%, rgba(18,22,15,.75) 45%, transparent 85%); pointer-events: none; }

/* Story */
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px,5vw,60px); align-items: center; }
@media (max-width: 880px) { .story-grid { grid-template-columns: 1fr; } }
.story-art { border-radius: 10px; overflow: hidden; }
.story p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 14px; }

/* Speisekarte — Degustationsmenü-Anmutung: jede Gruppe wird per
   CSS-Counter als Gang gezählt (roemische Ziffer als kleine Vorzeile
   über der Ueberschrift), statt einer schlichten Liste. */
#speisekarte .container { counter-reset: course; }
.menu-group { margin-bottom: 44px; counter-increment: course; }
.menu-group:last-child { margin-bottom: 0; }
.menu-group h3 {
  font-size: 1.3rem; color: var(--ink); margin-bottom: 18px; font-weight: 400;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.menu-group h3::before {
  content: "Gang " counter(course, upper-roman);
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.menu-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.menu-row .name { font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; }
.menu-row .desc { display: block; color: var(--ink-soft); font-size: .9rem; margin-top: 3px; font-family: var(--font-body); }
.menu-row .price { font-weight: 700; color: var(--ink); white-space: nowrap; font-family: var(--font-body); }

/* Gallery / Eindrücke — horizontaler Filmstreifen zum Durchscrollen
   statt starrem Raster, responsiv von sich aus (kein extra Breakpoint
   nötig). */
/* Auto-rotating Filmstreifen: main.js schiebt die Karten per Transform
   weiter und hängt die jeweils erste hinten an (siehe main.js). Ohne
   JS bzw. bei reduzierter Bewegung bleibt es ein normal scrollbarer
   Streifen (overflow-x bleibt als Fallback bedienbar). */
/* Continuous auto-scrolling filmstrip — same technique as the
   Branchen-Streifen marquee on the main site: the track is duplicated
   once (8 cards = the 4 real ones twice) and animated with a plain CSS
   translateX(-50%) loop, instead of a JS-driven discrete step/reorder.
   A native, GPU-composited animation like this can't stutter the way
   JS-timed transforms/reflows can, and needs no timers at all. */
.gallery-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, white 32px, white calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, white 32px, white calc(100% - 32px), transparent 100%);
}
.gallery-grid { display: flex; gap: 18px; width: max-content; animation: galleryScroll 26s linear infinite; }
.gallery-viewport:hover .gallery-grid { animation-play-state: paused; }
.gallery-card { flex: 0 0 clamp(220px, 34vw, 320px); border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-card); }

@keyframes galleryScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-grid { animation: none; width: 100%; flex-wrap: wrap; }
  .gallery-card:nth-child(n+5) { display: none; }
}

/* Hours + Contact */
.info-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 50px); }
@media (max-width: 880px) { .info-grid { grid-template-columns: 1fr; } }
.hours-list { display: flex; flex-direction: column; gap: 10px; }
.hours-row { display: flex; justify-content: space-between; font-size: 1rem; padding-block: 8px; border-bottom: 1px solid var(--line); }
.hours-row .day { color: var(--ink-soft); }
.hours-row .time { font-weight: 700; }

.cta-card { background: transparent; }
.cta-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-card p { color: #5C4A41; margin-bottom: 22px; }
.address-block { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(36,21,18,.15); color: #5C4A41; font-size: .95rem; }
.address-block strong { display: block; color: #241512; margin-bottom: 4px; }
.address-block em { color: #5C4A41; font-size: .88rem; font-style: normal; }

/* Buchungsassistent (Plus-Tarif) — rein statische Illustration, siehe
   Disclaimer im Markup. Angepasst an die eigenen Farb-Variablen dieser
   Seite statt der --color-*-Namen aus der Referenzvorlage; im
   Unterschied zu Café gibt es hier kein --paper/--accent-deep, daher
   --surface als Kartenfläche und der literale Hover-Ton aus
   .btn-primary:hover statt einer erfundenen "-dark"-Variable. */
.reservation-showcase { margin-top: 40px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 4vw, 40px); }
.plus-badge { display: inline-flex; align-items: center; background: var(--accent); color: #12160F; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.plus-badge:hover { background: #DCC08C; }
.reservation-showcase h3 { font-size: 1.6rem; margin-bottom: 10px; }
.reservation-intro { color: var(--ink-soft); margin-bottom: 22px; }
.reservation-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reservation-form .field.full { grid-column: 1 / -1; }
.reservation-form label { display: block; font-size: .84rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.reservation-form input, .reservation-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: inherit; color: var(--ink); }
.time-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.time-slot { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-soft); background: var(--bg); }
.time-slot.is-selected { background: var(--accent); border-color: var(--accent); color: #12160F; }
.time-slot.time-slot-past { color: var(--ink-soft); opacity: .5; text-decoration: line-through; border-style: dashed; }
.reservation-form .form-foot { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.reservation-form .form-note { font-size: .84rem; color: var(--ink-soft); font-style: italic; }
@media (max-width: 600px) { .reservation-form .form-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #120C0A; color: rgba(241,234,217,.5); padding-block: 30px; font-size: .84rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-inner a { font-weight: 600; color: rgba(241,234,217,.8); }
.footer-inner a:hover { color: var(--accent); }
