/*
Theme Name: Genuss am Dorfplatz
Theme URI: https://genussamdorfplatz.de/
Author: Ralf Heumann
Description: Restaurant-Theme für Genuss am Dorfplatz — Heddesheim. ACF-Pro-basierte Flexible-Content-Komponenten.
Version: 1.0.0
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: gad
*/

/* Genuss am Dorfplatz — base styles (ported 1:1 from design handoff) */
:root {
  --bg: #f6f1ea;
  --bg-elevated: #fbf7f1;
  --ink: #231f20;
  --ink-soft: #544d49;
  --ink-mute: #918880;
  --line: #e3d9cc;
  --line-strong: #c9bba8;
  --accent: #a81916;
  --accent-deep: #7c1210;
  --accent-soft: #f6e6e4;
  --serif: "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --sans: "Satoshi", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1680px;
  --pad: clamp(24px, 4vw, 72px);
  --radius: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Anchor navigation: smooth scroll with offset for the sticky nav.
   scroll-padding-top is refined to the real nav height in app.js. */
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-cream { background: #f0e7d8; border-color: #f0e7d8; color: var(--ink); }
.btn-cream:hover { background: #e6d9c2; border-color: #e6d9c2; }
.btn-on-dark { border-color: rgba(255,255,255,0.3); color: #f6f1ea; }
.btn-on-dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-on-accent { background: #fff; color: var(--accent); border-color: #fff; }
.btn-on-accent:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px; transition: color .2s, border-color .2s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* ── Unified inline link ─────────────────────────────── */
.lnk {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--accent);
  text-decoration: none; cursor: pointer; background: none; border: none;
  padding: 4px 0; line-height: 1.2;
  transition: gap .2s ease, color .2s ease;
}
.lnk .lnk-text {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%;
  background-size: 100% 1.5px; padding-bottom: 3px;
  transition: background-size .25s ease;
}
.lnk:hover .lnk-text { background-size: 0% 1.5px; }
.lnk svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform .25s ease; }
.lnk:hover { gap: 13px; color: var(--accent-deep); }
.lnk:hover svg { transform: translateX(3px); }
.lnk-light { color: #fff; }
.lnk-light:hover { color: #fff; }
.lnk-light .lnk-text { color: #fff; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 1001;
  background: rgba(246, 241, 234, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.nav-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 0 18px;
}
.nav-bottom {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 2.4vw, 40px);
  padding: 8px 0 14px; border-top: 1px solid var(--line); position: relative;
}
.nav-socials { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.nav-links {
  display: flex; gap: clamp(20px, 2.4vw, 40px);
  align-items: center; flex-wrap: wrap; justify-content: center;
}
.nav-links a {
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-soft);
  transition: color .2s; position: relative; padding: 10px 2px; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active, .nav-links a.current-menu-item { color: var(--accent); }
.nav-links a.active::after,
.nav-links a.current-menu-item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 1px; background: var(--accent);
}
.nav-right { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.nav-phone {
  font-size: 15px; letter-spacing: 0.08em; color: var(--ink-soft);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.nav-phone:hover { color: var(--accent); }

.brand-logo { display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; text-decoration: none; }
.brand-logo img { height: 68px; width: auto; display: block; }
.brand-logo.small img { height: 48px; }
.brand-logo.footer-brand img { height: 80px; }

.socials { display: flex; align-items: center; gap: 14px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--ink-soft);
  transition: color .2s, border-color .2s, background .2s;
}
.socials a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.footer-socials { margin-top: 24px; }
.drawer-socials { margin-top: 20px; }

@media (max-width: 1100px) { .nav-phone { display: none; } }
@media (max-width: 880px) {
  .nav-bottom { display: none; }
  .nav-right { display: none; }
  .nav-top { padding: 18px 0; }
  .menu-btn { display: block; }
  .brand-logo img { height: 54px; }
}

/* hamburger */
.menu-btn { display: none; background: transparent; border: none; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 1px; background: var(--ink); margin: 6px 0; }
.menu-btn.is-close span:nth-child(1) { transform: rotate(45deg); transform-origin: 12px 0; }
.menu-btn.is-close span:nth-child(2) { transform: rotate(-45deg); transform-origin: 12px 0; margin-top: -1px; }
.menu-btn.is-close span:nth-child(3) { display: none; }

@media (max-width: 880px) {
  .nav-links, .nav-right { display: none; }
  .nav-inner { justify-content: space-between; }
  .menu-btn { display: block; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 100; padding: 28px var(--pad);
  display: flex; flex-direction: column; overflow: hidden;
  visibility: hidden; pointer-events: none; opacity: 0;
  transform: translateY(-100%);
  transition: transform .3s ease, opacity .25s ease, visibility 0s linear .3s;
}
.drawer.open {
  transform: translateY(0); visibility: visible; pointer-events: auto; opacity: 1;
  transition: transform .3s ease, opacity .25s ease, visibility 0s;
}
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-links { margin-top: 60px; display: flex; flex-direction: column; gap: 28px; }
.drawer-links a { font-family: var(--serif); font-size: 36px; color: var(--ink); }
.drawer-links a:hover { color: var(--accent); }
.drawer-foot { margin-top: auto; padding-top: 32px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }

/* hero */
.hero { position: relative; padding: clamp(60px, 10vw, 120px) 0 clamp(80px, 12vw, 140px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero h1 {
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-lede { font-size: 22px; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; margin: 28px 0 36px; }
.hero-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  aspect-ratio: 3/4; background: var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.hero-image-card {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: var(--bg); padding: 18px 22px; font-size: 13px;
  border-left: 2px solid var(--accent);
}
.hero-image-card .label { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); margin-bottom: 4px; }

.hero-centered { text-align: center; padding-top: clamp(80px, 12vw, 160px); }
.hero-centered h1 { font-size: clamp(56px, 9vw, 140px); line-height: 0.94; }
.hero-centered .hero-lede { margin: 32px auto 36px; }
.hero-centered .hero-meta { justify-content: center; }
.hero-centered .hero-slider-wrap { margin-top: 80px; height: 480px; position: relative; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 4/5; max-height: 60vh; }
}

/* placeholder image */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(110, 22, 34, 0.04) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #d9c9b3, #b8a48a);
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label); position: absolute; bottom: 12px; left: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: rgba(28, 23, 20, 0.55); text-transform: uppercase;
}

/* hero slider */
.hero-slider { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-slider-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slider-slide.is-active { opacity: 1; }
.hero-slider-dots {
  position: absolute; bottom: 16px; left: 16px;
  display: flex; gap: 6px; z-index: 2;
}
.hero-slider-dot {
  width: 8px; height: 8px; border-radius: 4px; border: none;
  background: rgba(255,255,255,0.5); transition: all .3s ease; cursor: pointer; padding: 0;
}
.hero-slider-dot.is-active { width: 24px; background: #fff; }

/* section */
.section { padding: clamp(60px, 9vw, 120px) 0; }
/* Section spacing modifiers ("Abstand oben / unten" — top & bottom independently) */
.section--pt-none { padding-top: 0; }
.section--pt-sm   { padding-top: clamp(32px, 5vw, 64px); }
.section--pt-lg   { padding-top: clamp(90px, 13vw, 180px); }
.section--pb-none { padding-bottom: 0; }
.section--pb-sm   { padding-bottom: clamp(32px, 5vw, 64px); }
.section--pb-lg   { padding-bottom: clamp(90px, 13vw, 180px); }
/* process keeps its tighter head spacing (was an inline style) */
.process-section .section-head { margin-bottom: 40px; }
.section-head {
  display: grid; grid-template-columns: auto 1fr;
  gap: 28px; align-items: end;
  margin-bottom: 56px; padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.section-head .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); }
.section-head h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head .right { justify-self: end; max-width: 38ch; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .right { justify-self: start; }
}

/* ── Text / Copytext block ─────────────────────────────
   Rich-text section (the "Text" flexible-content layout). All rules are
   scoped to .copy so editor content gets readable, on-brand typography
   without leaking into other blocks. Three measures via "Textbreite". */
.copy { font-size: 19px; line-height: 1.75; color: var(--ink); }
.copy--standard { max-width: none; }
.copy--inset    { max-width: 1040px; margin-inline: auto; }
.copy--narrow   { max-width: 730px; margin-inline: auto; text-align: center; }
/* trim the outer rhythm so the block aligns to the section padding */
.copy > :first-child { margin-top: 0; }
.copy > :last-child  { margin-bottom: 0; }

.copy h1, .copy h2, .copy h3, .copy h4 {
  font-family: var(--serif); font-weight: 500;
  letter-spacing: -0.005em; color: var(--ink); margin: 1.6em 0 0.45em;
}
/* Sizes mirror the site's headings so copy matches every other component:
   h1 = .cat-hero h1 · h2 = .section-head h2 · h3 = .pkg h3 · h4 = .process-step h4.
   (h3/h4 are fixed px elsewhere — clamped here so all four scale.) */
.copy h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.95; }
.copy h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.copy h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.copy h4 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.15; }
.copy h5, .copy h6 {
  font-family: var(--sans); font-weight: 600; color: var(--ink);
  margin: 1.8em 0 0.5em; line-height: 1.3;
}
.copy h5 { font-size: 17px; letter-spacing: 0.01em; }
.copy h6 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.copy h1 em, .copy h2 em, .copy h3 em, .copy h4 em { font-style: italic; color: var(--accent); }

.copy p { margin: 0 0 1.15em; }
.copy > p:first-of-type.lead, .copy .lead { font-size: 1.18em; color: var(--ink-soft); line-height: 1.6; }

.copy a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  transition: color .2s ease, text-decoration-color .2s ease;
}
.copy a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }

.copy ul, .copy ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.copy li { margin: 0 0 0.4em; padding-left: 0.2em; }
.copy li::marker { color: var(--accent); }
.copy ul ul, .copy ul ol, .copy ol ul, .copy ol ol { margin: 0.4em 0 0.2em; }
/* centered measure: keep list text left-aligned for readability */
.copy--narrow ul, .copy--narrow ol { display: inline-block; text-align: left; }

.copy blockquote {
  margin: 1.6em 0; padding: 0.1em 0 0.1em 1.1em;
  border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 1.3em; font-style: italic;
  line-height: 1.4; color: var(--ink-soft);
}
.copy blockquote p:last-child { margin-bottom: 0; }
.copy blockquote cite { display: block; margin-top: 0.6em; font: 500 14px/1.4 var(--sans); font-style: normal; color: var(--ink-mute); }
.copy--narrow blockquote { border-left: 0; padding-left: 0; }

.copy strong, .copy b { font-weight: 700; }
.copy em, .copy i { font-style: italic; }
.copy hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.copy small { font-size: 0.8em; color: var(--ink-mute); }
.copy sub, .copy sup { font-size: 0.7em; }

.copy img { border-radius: var(--radius); margin: 1.6em 0; }
.copy figure { margin: 1.6em 0; }
.copy figure img { margin: 0; }
.copy figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-mute); }
.copy--narrow figcaption { text-align: center; }

.copy code, .copy kbd {
  font-family: var(--mono); font-size: 0.82em;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.1em 0.4em;
}
.copy pre {
  font-family: var(--mono); font-size: 14px; line-height: 1.6;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; overflow-x: auto;
  margin: 1.4em 0; text-align: left;
}
.copy pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.copy table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; text-align: left; }
.copy th, .copy td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.copy th { font-family: var(--sans); font-weight: 600; color: var(--ink); }
.copy tbody tr:last-child td { border-bottom: 0; }

/* menu */
.menu-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.menu-tab {
  background: none; border: none; padding: 16px 22px;
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.menu-tab.active { color: var(--accent); border-color: var(--accent); }
.menu-tab:hover { color: var(--ink); }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 64px; }
.menu-with-image { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.menu-with-image .menu-sticky { position: sticky; top: 110px; }
.menu-with-image .menu-grid { grid-template-columns: 1fr; }
.menu-active-label { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.menu-panel { display: none; }
.menu-panel.active { display: block; }

@media (max-width: 880px) {
  .menu-with-image { grid-template-columns: 1fr; }
  .menu-with-image .menu-sticky { position: static; }
}
@media (max-width: 720px) { .menu-grid { grid-template-columns: 1fr; } }

.dish {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.dish-name { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.dish-desc { font-size: 17px; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }
.dish-price { font-family: var(--serif); font-size: 26px; color: var(--accent); white-space: nowrap; }
.dish-tag {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute);
  margin-right: 8px; padding: 2px 6px; border: 1px solid var(--line-strong);
}

/* karte PDF cards */
.karte-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.karte-card {
  display: flex; flex-direction: column;
  background: var(--bg-elevated); border: 1px solid var(--line);
  text-decoration: none; color: inherit; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.karte-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(35,31,32,0.4);
}
.karte-card-img { aspect-ratio: 4/3; overflow: hidden; }
.karte-card-img > div { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .5s ease; }
.karte-card:hover .karte-card-img > div { transform: scale(1.05); }
.karte-card-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.karte-card-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.karte-card h3 { font-size: 30px; margin: 14px 0 10px; }
.karte-card p { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 24px; flex: 1; }
.karte-card-cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; letter-spacing: 0.04em; font-weight: 700; color: var(--accent);
  transition: color .2s, gap .2s;
}
.karte-card-cta .lnk-text {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%;
  background-size: 100% 1.5px; padding-bottom: 3px;
  transition: background-size .25s ease;
}
.karte-card:hover .karte-card-cta { color: var(--accent-deep); gap: 13px; }
.karte-card:hover .karte-card-cta .lnk-text { background-size: 0% 1.5px; }
.karte-card-cta svg { transition: transform .25s ease; }
.karte-card:hover .karte-card-cta svg { transform: translateY(2px); }
@media (max-width: 880px) { .karte-cards { grid-template-columns: 1fr; } }

/* wine */
.wine-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.wine-image { aspect-ratio: 4/5; }
.wine-list { display: flex; flex-direction: column; }
.wine-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; padding: 22px 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.wine-row .year { font-family: var(--mono); font-size: 14px; color: var(--ink-mute); letter-spacing: 0.05em; }
.wine-row .name { font-family: var(--serif); font-size: 26px; }
.wine-row .region { display: block; font-size: 15px; color: var(--ink-soft); margin-top: 6px; font-family: var(--sans); }
.wine-row .price { font-family: var(--serif); font-size: 24px; color: var(--accent); }
@media (max-width: 880px) { .wine-wrap { grid-template-columns: 1fr; } }

/* events — variant-driven via CSS vars */
.events {
  --ev-bg: #231f20;
  --ev-card: #231f20;
  --ev-card-hover: #2e2829;
  --ev-em: #ece1cd;
  --ev-label: #c9bba8;
  --ev-divider: rgba(255,255,255,0.12);
  background: var(--ev-bg); color: #f7f3ec;
}
.events.ev-redpanel {
  --ev-bg: #8a1512; --ev-card: #8a1512; --ev-card-hover: #761210;
  --ev-em: #ffffff; --ev-label: #f0cfc9; --ev-divider: rgba(255,255,255,0.18);
}
.events.ev-redword  { --ev-em: #ef5a4d; --ev-label: #ef5a4d; }
.events.ev-cream    { --ev-em: #ece1cd; --ev-label: #c9bba8; }
.events.ev-stone    { --ev-em: #cbb9a2; --ev-label: #a89683; }
.events :where(h2, .eyebrow) { color: inherit; }
.events h2 em, .events .ev-em { font-style: italic; color: var(--ev-em); }
.events .section-head { border-color: var(--ev-divider); }
.events .section-head .num { color: var(--ev-label); }
.events .section-head .right { color: rgba(247,243,236,0.7); }
.events-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--ev-divider); border: 1px solid var(--ev-divider);
}
.event-card {
  background: var(--ev-card); padding: 36px 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px; transition: background .2s;
}
.event-card:hover { background: var(--ev-card-hover); }
.event-card .num { font-family: var(--mono); font-size: 11px; color: var(--ev-label); letter-spacing: 0.18em; }
.event-card h3 { font-size: 32px; color: #f7f3ec; }
.event-card p { font-size: 17px; color: rgba(247,243,236,0.78); line-height: 1.65; flex: 1; }
.events-ctas { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 880px) { .events-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .events-grid { grid-template-columns: 1fr; } }

/* hours */
.hours-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table td { padding: 20px 0; font-size: 18px; }
.hours-table td:first-child { font-family: var(--serif); font-size: 24px; }
.hours-table td:last-child { text-align: right; font-family: var(--mono); font-size: 16px; color: var(--ink-soft); }
.hours-table .closed { color: var(--accent); font-style: italic; }
.hours-address { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.hours-map { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--bg-elevated); }
/* Leaflet OSM map */
.hours-map.leaflet-container { font: inherit; background: var(--bg-elevated); }
.hours-map .leaflet-control-attribution { font-size: 10px; background: rgba(246,241,234,0.8); }
.hours-map .leaflet-bar a { color: var(--ink); border-color: var(--line); }
/* Accent teardrop pin (CSS divIcon — no marker image needed).
   rotate(-45deg) points the sharp corner straight down. */
.gad-pin span {
  display: block; width: 26px; height: 26px;
  background: var(--accent); border: 3px solid #fff;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 3px 10px rgba(15,11,9,0.35);
}
/* Privacy "click to load" overlay */
.map-consent {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
  background: var(--bg-elevated);
}
.map-consent-pin { color: var(--accent); }
.map-consent-note { margin: 0; max-width: 32ch; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.map-consent.is-error .map-consent-note { color: var(--accent); }
.map-consent-remember {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-mute); cursor: pointer;
}
.map-consent-remember input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
@media (max-width: 720px) { .hours-wrap { grid-template-columns: 1fr; } }

/* impressions */
.impressions-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 8px; grid-auto-flow: dense; }
.imp { border-radius: var(--radius); overflow: hidden; border: none; padding: 0; cursor: zoom-in; position: relative; background: var(--line); }
.imp-photo { width: 100%; height: 100%; background-size: cover; background-position: center; }
.imp-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.imp-label {
  position: absolute; bottom: 12px; left: 14px;
  color: #fff; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.imp:hover .imp-overlay, .imp:hover .imp-label { opacity: 1; }
.imp-1 { grid-column: span 5; grid-row: span 3; }
.imp-2 { grid-column: span 4; grid-row: span 2; }
.imp-3 { grid-column: span 3; grid-row: span 2; }
.imp-4 { grid-column: span 4; grid-row: span 2; }
.imp-5 { grid-column: span 3; grid-row: span 3; }
.imp-6 { grid-column: span 7; grid-row: span 2; }
/* Positions 7–10 extend the mosaic below the original six. Each pair forms a
   full 12-col band (7+5 / 5+7) so 8 and 10 images tile flush; 7 and 9 end on a
   natural staggered edge. grid-auto-flow:dense keeps gaps tight at any count. */
.imp-7 { grid-column: span 5; grid-row: span 3; }
.imp-8 { grid-column: span 3; grid-row: span 3; grid-row-start: 8; grid-row-end: 11; }
.imp-9 { grid-column: span 4; grid-row: span 2; }
.imp-10 { grid-column: span 6; grid-row: span 2; }
@media (max-width: 880px) {
  .impressions-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 100px; }
  .imp-1 { grid-column: span 6; grid-row: span 2; }
  .imp-2, .imp-3, .imp-4, .imp-5 { grid-column: span 3; grid-row: span 2; }
  .imp-6 { grid-column: span 6; grid-row: span 2; }
  .imp-7, .imp-10 { grid-column: span 6; grid-row: span 2; }
  .imp-8, .imp-9 { grid-column: span 3; grid-row: span 2; }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,11,9,0.94);
  z-index: 200; display: none; align-items: center; justify-content: center;
  padding: 60px 80px;
}
.lightbox.is-open { display: flex; animation: lbFade .25s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; border-radius: 50%; font-size: 22px; cursor: pointer;
}
.lightbox-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-caption {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,0.7); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
}

/* footer */
.footer { background: var(--bg-elevated); border-top: 1px solid var(--line); padding: 80px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer h4 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 500; margin-bottom: 16px;
}
.footer p, .footer li, .footer-hours th, .footer-hours td { font-size: 17px; color: var(--ink-soft); line-height: 1.75; }
.footer ul { list-style: none; padding: 0; margin: 0; }
/* Opening hours as a two-column table so every day's times start on the
   same line. The time cell never breaks mid-hours; multiple service
   windows (split on "·"/newline in the field) stack within the cell. */
.footer-hours { border-collapse: collapse; }
.footer-hours th,
.footer-hours td { text-align: left; font-weight: inherit; vertical-align: baseline; padding: 0; }
.footer-hours th { padding-right: 18px; white-space: nowrap; }
.footer-hours td { white-space: nowrap; }
.footer a:hover { color: var(--accent); }
/* Keep the header's social hover (white icon on red) — .footer a:hover would
   otherwise turn the icon red on the red background. */
.footer .socials a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.footer-blurb { margin-top: 18px; max-width: 32ch; }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: 12px;
  color: var(--ink-mute); flex-wrap: wrap; gap: 16px;
}
.footer-bottom a { text-decoration: none; }
/* Legal links: inline, separated by " · " (matches the original markup). */
.footer-legal a + a::before { content: "·"; margin: 0 8px; color: var(--ink-mute); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* catering page */
.cat-hero { padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px); }
.cat-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cat-hero h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.95; }
.cat-hero h1 em { font-style: italic; color: var(--accent); }
.cat-hero p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 24px 0 32px; }
.cat-hero-image { aspect-ratio: 4/5; }
.cat-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 880px) { .cat-hero-grid { grid-template-columns: 1fr; } }

.stats-band-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stats-band .n { font-family: var(--serif); font-size: 40px; color: var(--accent); line-height: 1; }
.stats-band .l { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-top: 8px; }
@media (max-width: 720px) { .stats-band { grid-template-columns: 1fr 1fr; } }

.photo-strip-section { border-bottom: 1px solid var(--line); }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.photo-strip > div { aspect-ratio: 4/3; }
@media (max-width: 720px) { .photo-strip { grid-template-columns: 1fr 1fr; } }

.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pkg {
  background: var(--bg-elevated); border: 1px solid var(--line);
  padding: 36px 32px; display: flex; flex-direction: column;
  position: relative; transition: border-color .2s, transform .2s;
}
.pkg:hover { border-color: var(--accent); transform: translateY(-2px); }
.pkg.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pkg.featured h3, .pkg.featured .pkg-num { color: #fff; }
.pkg.featured .pkg-desc, .pkg.featured .pkg-features li { color: rgba(247,243,236,0.78); }
.pkg.featured .pkg-features li::before { background: rgba(247,243,236,0.5); }
.pkg-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 24px; }
.pkg h3 { font-size: 32px; margin-bottom: 10px; }
.pkg-from { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-mute); margin-bottom: 22px; }
.pkg.featured .pkg-from { color: rgba(246,241,234,0.6); }
.pkg-desc { font-size: 17px; color: var(--ink-soft); margin-bottom: 26px; line-height: 1.65; }
.pkg-features { list-style: none; padding: 0; margin: 0 0 32px 0; flex: 1; }
.pkg-features li { font-size: 16.5px; color: var(--ink-soft); padding: 12px 0 12px 22px; position: relative; border-bottom: 1px solid var(--line); }
.pkg.featured .pkg-features li { border-color: rgba(255,255,255,0.1); }
.pkg-features li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--accent); }
@media (max-width: 880px) { .packages-grid { grid-template-columns: 1fr; } }

.process-section { background: var(--bg-elevated); padding-top: 80px; padding-bottom: 80px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process-step { background: var(--bg); padding: 32px 28px; min-height: 200px; }
.process-step .step-num { font-family: var(--serif); font-size: 56px; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.process-step h4 { font-family: var(--serif); font-size: 26px; margin-bottom: 10px; }
.process-step p { font-size: 16.5px; color: var(--ink-soft); margin: 0; line-height: 1.65; }
@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

.anlasse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.anlasse-grid > div { background: var(--bg); padding: 28px 24px; min-height: 160px; }
.anlasse-grid h3 { font-size: 22px; margin-bottom: 8px; }
.anlasse-grid p { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
@media (max-width: 880px) { .anlasse-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .anlasse-grid { grid-template-columns: 1fr; } }

.cta-band { background: var(--accent); color: #fff; padding: 80px 0; }
.cta-band .container { display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band h2 { font-size: clamp(32px, 5vw, 56px); color: #fff; }
.cta-band h2 em { font-style: italic; color: #fff; }
.cta-band p { margin-top: 16px; opacity: 0.85; max-width: 50ch; }
.cta-band .ctas { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 720px) { .cta-band .container { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin-bottom: 24px; }
.contact-info h2 em { font-style: italic; color: var(--accent); }
.contact-info .lede { font-size: 17px; color: var(--ink-soft); line-height: 1.6; }
.contact-block { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-block h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; font-weight: 500; }
.contact-block p { font-size: 18px; margin: 0; }
.contact-block a:hover { color: var(--accent); }
.contact-block .hours-small { font-size: 14px; color: var(--ink-soft); }

.form { background: var(--bg-elevated); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row.full { grid-template-columns: 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 18px;
  padding: 16px 18px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); border-radius: var(--radius);
  transition: border-color .2s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }

.type-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.type-pill {
  padding: 12px 20px; border: 1px solid var(--line-strong);
  background: var(--bg); font-size: 14px; letter-spacing: 0.06em;
  color: var(--ink-soft); border-radius: 999px; transition: all .2s;
}
.type-pill.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.type-pill:hover:not(.active) { border-color: var(--ink); color: var(--ink); }

.form-conditional { display: none; }
.form-conditional.active { display: block; }
.form-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; flex-wrap: wrap; gap: 16px;
}
.form-foot .note { font-size: 12px; color: var(--ink-mute); }

.success { padding: 32px; border: 1px solid #2f8f4e; background: #e8f5ec; text-align: center; }
.success h3 { font-size: 28px; margin-bottom: 8px; color: #1f6b39; }
.success p { color: var(--ink-soft); margin: 0; }

/* Required-field marker + submission error banner */
.req { color: var(--accent); font-weight: 600; }
.form-error {
  padding: 14px 18px; margin-bottom: 20px;
  border: 1px solid var(--accent); border-left-width: 4px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 15px; border-radius: 4px;
}

/* Inline field hint + validation message (reservation date / Ruhetage).
   Negative top margin pulls them up against the field they belong to,
   whose .field already carries a 20px bottom margin. */
.field-note {
  font-size: 13px; line-height: 1.5; color: var(--ink-mute);
  margin: -8px 0 20px;
}
.field-error {
  font-size: 14px; line-height: 1.5;
  padding: 10px 14px; margin: -8px 0 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 4px;
}
.field-error[hidden] { display: none; }

/* Datenschutz consent checkbox */
.field-consent { margin-top: 4px; }
.field-consent .consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.5; color: var(--ink-soft); cursor: pointer;
  /* Override the uppercase .field label styling — this is running text. */
  text-transform: none; letter-spacing: normal; font-weight: 400;
}
.field-consent .consent input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.field-consent .consent a { text-decoration: underline; }

/* hCaptcha (loads only after consent) */
.h-captcha-wrap { margin-top: 4px; }
.h-captcha-wrap .captcha-note { margin-top: 6px; font-size: 12px; color: var(--ink-mute); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
}

/* quote band */
.quote { padding: clamp(80px, 12vw, 140px) 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.2;
  margin: 0 auto; max-width: 22ch; color: var(--ink);
}
.quote blockquote em { color: var(--accent); font-style: italic; }
.quote cite { display: block; margin-top: 24px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); font-style: normal; }
/* quote band — dark variant (matches .events) */
.quote--dark { background: #231f20; border-color: rgba(255,255,255,0.12); }
.quote--dark blockquote { color: #f7f3ec; }
.quote--dark blockquote em { color: #ef5a4d; }
.quote--dark cite { color: rgba(247,243,236,0.7); }

/* utility */
.spacer-sm { height: 40px; }
.spacer-md { height: 80px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* page transition */
.page { animation: pageIn .4s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
