/* =============================================================
   La Table du Kirchberg — Stylesheet
   Palette: tiefes Grün / Creme / Messing · Fraunces + Inter
   Mobile-first, nur Transform/Opacity-Animationen
   ============================================================= */

:root {
  --green-950: #122620;
  --green-900: #16302a;
  --green-800: #1d3a2f;
  --green-700: #27503f;
  --cream: #f7f2e9;
  --cream-soft: #efe7d8;
  --ink: #22302b;
  --ink-soft: #55645d;
  --brass: #b08d57;
  --brass-light: #c9a86e;
  --bordeaux: #8a2d3b;
  --open: #3e9e5f;
  --closed: #c04949;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 8px rgba(18, 38, 32, 0.08);
  --shadow-md: 0 8px 30px rgba(18, 38, 32, 0.14);
  --shadow-lg: 0 18px 50px rgba(18, 38, 32, 0.22);

  --header-h: 68px;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--green-900);
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
a { color: var(--green-800); }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9em;
}

.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }

.section-head { max-width: 620px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-sub { color: var(--ink-soft); }

/* ---------- i18n cross-fade ---------- */
[data-i18n], .lang-fade-target {
  transition: opacity 220ms ease;
}
body.lang-switching [data-i18n] { opacity: 0; }

/* =================== Buttons =================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
              background-color 220ms ease, color 220ms ease, border-color 220ms ease;
  will-change: transform;
}
.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.02rem; }

.btn-primary {
  background: var(--brass);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brass-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0) scale(0.98); box-shadow: var(--shadow-sm); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 242, 233, 0.55);
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(247, 242, 233, 0.1); transform: translateY(-2px); }
.btn-ghost:active { transform: scale(0.98); }

/* Outline-Variante für helle Hintergründe */
.btn-outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-outline:hover { background: var(--green-800); color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline:active { transform: scale(0.98); }

/* dezenter Glow beim ersten Sichtbarwerden des Hero-CTAs */
@keyframes glowOnce {
  0%, 100% { box-shadow: 0 0 0 0 rgba(176, 141, 87, 0); }
  40% { box-shadow: 0 0 0 10px rgba(176, 141, 87, 0.25); }
}
.glow-once { animation: glowOnce 1.8s ease 1.2s 2; }

/* =================== Header =================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  box-sizing: border-box;
  transition: background-color 320ms ease, box-shadow 320ms ease, padding 320ms ease;
  /* Safe Area: oben Notch/Dynamic Island, seitlich Landscape-Rundungen */
  padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.65rem;
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
.site-header.scrolled {
  background: rgba(22, 48, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(18, 38, 32, 0.35);
  padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.35rem;
}

.header-inner {
  width: min(var(--container), 100% - 1.6rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--cream);
  margin-right: auto;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brass-light);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.1;
  white-space: nowrap;
}
.logo-text em { font-style: italic; color: var(--brass-light); }

.main-nav { display: none; gap: 1.6rem; }
.main-nav a {
  color: rgba(247, 242, 233, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.main-nav a:hover { color: var(--cream); }
.main-nav a.active { color: var(--brass-light); border-bottom-color: var(--brass); }

.header-actions { display: flex; align-items: center; gap: 0.7rem; }

.lang-switch {
  display: flex;
  border: 1px solid rgba(247, 242, 233, 0.3);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(247, 242, 233, 0.75);
  font: 600 0.74rem/1 var(--font-body);
  letter-spacing: 0.04em;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 44px; /* daumenfreundliches Tap-Ziel */
}
.lang-switch button:hover { color: var(--cream); }
.lang-switch button.active {
  background: var(--brass);
  color: #fff;
}

.btn-reserve { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn-reserve span { display: none; }

/* =================== Hero =================== */
.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* Header + Safe Area (Notch) freihalten, damit der Inhalt darunter beginnt */
  padding: calc(var(--header-h) + 2rem + env(safe-area-inset-top, 0px)) 0 4rem;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 22s var(--ease) both alternate infinite;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.08) translateY(-1.5%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(18, 38, 32, 0.68) 0%,
    rgba(18, 38, 32, 0.45) 45%,
    rgba(18, 38, 32, 0.78) 100%);
}

.hero-content {
  width: min(760px, 100% - 2.5rem);
  text-align: center;
  color: var(--cream);
}
.hero-content .eyebrow { color: var(--brass-light); }
.hero-content h1 { color: var(--cream); margin-bottom: 0.4em; }
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(247, 242, 233, 0.88);
  max-width: 560px;
  margin-inline: auto;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Hero-Eingangsanimation */
.hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 700ms var(--ease) forwards;
}
.hero-content > *:nth-child(2) { animation-delay: 120ms; }
.hero-content > *:nth-child(3) { animation-delay: 240ms; }
.hero-content > *:nth-child(4) { animation-delay: 360ms; }
@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* =================== Plat du jour =================== */
.plat-section {
  position: relative;
  z-index: 2;
  margin-top: -3.2rem;
  padding-bottom: 1rem;
}
.plat-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--brass);
  padding: 1.6rem 1.5rem 1.3rem;
  max-width: 720px;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms var(--ease), transform 550ms var(--ease);
}
.plat-card.shown { opacity: 1; transform: translateY(0); }

.plat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 0.7rem;
}
.plat-badge-star { color: var(--brass); }

.plat-dish {
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  margin-bottom: 0.25em;
}
.plat-desc { color: var(--ink-soft); margin-bottom: 0.9rem; }

.plat-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--cream-soft);
  padding-top: 0.85rem;
}
.plat-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--brass);
}
.plat-updated { font-size: 0.78rem; color: var(--ink-soft); }

/* =================== About =================== */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.about-media {
  margin: 0;
  position: relative;
}
.about-media img {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-media figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.7rem;
  font-style: italic;
}

/* =================== Menu =================== */
.menu {
  background: var(--green-900);
  color: var(--cream-soft);
}
.menu h2, .menu h3 { color: var(--cream); }
.menu .section-sub { color: rgba(239, 231, 216, 0.7); }

.menu-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.menu-tabs button {
  appearance: none;
  border: 1.5px solid rgba(239, 231, 216, 0.28);
  background: transparent;
  color: rgba(239, 231, 216, 0.8);
  font: 600 0.9rem/1 var(--font-body);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease,
              border-color 220ms ease, transform 220ms var(--ease);
}
.menu-tabs button:hover { border-color: var(--brass-light); color: var(--cream); transform: translateY(-2px); }
.menu-tabs button:active { transform: scale(0.97); }
.menu-tabs button.active {
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}

.menu-panels { position: relative; min-height: 320px; }
.menu-panel {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
  pointer-events: none;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
}
.menu-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.wine-unit {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.2rem;
}

.dish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}
.dish p { color: rgba(239, 231, 216, 0.72); font-size: 0.94rem; margin: 0.3rem 0 0; max-width: 60ch; }
.dish-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.dish-head h3 { margin: 0; font-size: 1.12rem; flex-shrink: 1; }
.dish-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(239, 231, 216, 0.35);
  transform: translateY(-4px);
  min-width: 1.5rem;
}
.dish-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brass-light);
  white-space: nowrap;
}

/* Gestaffeltes Einblenden der Gerichte beim Panelwechsel */
.menu-panel.active .dish {
  opacity: 0;
  transform: translateY(10px);
  animation: riseIn 450ms var(--ease) forwards;
}
.menu-panel.active .dish:nth-child(1) { animation-delay: 40ms; }
.menu-panel.active .dish:nth-child(2) { animation-delay: 110ms; }
.menu-panel.active .dish:nth-child(3) { animation-delay: 180ms; }
.menu-panel.active .dish:nth-child(4) { animation-delay: 250ms; }

/* =================== Hours =================== */
.hours { background: var(--cream); }
.hours-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0.4rem 0 1rem;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-soft);
  flex-shrink: 0;
}
.status-badge.is-open .status-dot {
  background: var(--open);
  box-shadow: 0 0 0 0 rgba(62, 158, 95, 0.5);
  animation: pulseDot 2.4s ease infinite;
}
.status-badge.is-closed .status-dot { background: var(--closed); }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(62, 158, 95, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(62, 158, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 158, 95, 0); }
}
.status-clock {
  color: var(--ink-soft);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--cream-soft);
  padding-left: 0.6rem;
}
.hours-note { color: var(--ink-soft); font-size: 0.92rem; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--cream-soft);
  font-size: 0.95rem;
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 600; color: var(--green-900); }
.hours-table td { color: var(--ink-soft); white-space: nowrap; }
.hours-table .sep { color: var(--brass); }
.hours-table .closed-row td { color: var(--bordeaux); white-space: normal; }
.hours-table tr.today {
  background: rgba(176, 141, 87, 0.1);
}
.hours-table tr.today th::after {
  content: "•";
  color: var(--brass);
  margin-left: 0.4rem;
}

/* =================== Contact =================== */
.contact { background: var(--cream-soft); }
.contact-grid {
  display: grid;
  gap: 2rem;
}
.contact-block { margin-bottom: 1.6rem; }
.contact-block h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.4rem;
}
address { font-style: normal; line-height: 1.7; }
.contact-phone {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-800);
  text-decoration: none;
}
.contact-phone:hover { color: var(--brass); }
.contact-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: block;
}

/* =================== Footer =================== */
.site-footer {
  background: var(--green-950);
  color: rgba(239, 231, 216, 0.75);
  padding: 3rem 0 2.2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 1.8rem;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.site-footer a { color: var(--brass-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-demo { font-size: 0.82rem; }
.footer-demo strong { color: var(--cream); }
.footer-fictional { opacity: 0.55; margin-top: 0.4rem; }

/* =================== Back to top =================== */
.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--green-800);
  color: var(--cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 320ms ease, transform 320ms var(--ease), background-color 200ms ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--brass); }
.back-to-top:active { transform: scale(0.94); }

/* =================== Scroll-Reveal =================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Ohne JS bleibt alles sichtbar */
.no-observer .reveal { opacity: 1; transform: none; }

/* =================== Responsive =================== */
/* Sehr schmale Screens: Header kompakt halten */
@media (max-width: 480px) {
  .logo-text { display: none; }
  .header-actions { gap: 0.4rem; }
  /* Der feststehende Anrufen-Button unten übernimmt hier den CTA */
  .btn-reserve { display: none; }
  .lang-switch button {
    min-width: 48px;
    min-height: 48px;
  }
}

@media (min-width: 640px) {
  .btn-reserve span { display: inline; }
  .about-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hours-grid { grid-template-columns: 1fr 1.2fr; }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
  .footer-links { justify-content: center; }
  .footer-demo { text-align: right; }
}

/* =================== Hero-Status =================== */
.hero-status {
  margin: 1.4rem auto 0;
}

/* =================== Kontakt-Aktionen =================== */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.contact-actions .btn { flex: 1 1 auto; }

/* =================== Karten-Fassade =================== */
.map-facade {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  display: block;
  position: relative;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--green-800);
}
.map-facade img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}
.map-facade:hover img { transform: scale(1.03); }
.map-facade-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(18, 38, 32, 0.28);
}
.map-facade-play svg { flex-shrink: 0; }
.map-facade:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.map-embed {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: block;
}

/* =================== Feststehende Mobile-Aktionsleiste =================== */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: flex;
  gap: 0.5rem;
  /* Home-Indicator unten + Landscape-Rundungen seitlich freihalten */
  padding-top: 0.5rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(0.7rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.7rem, env(safe-area-inset-right, 0px));
  background: rgba(247, 242, 233, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -4px 22px rgba(18, 38, 32, 0.18);
}
.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 120ms var(--ease);
}
.mobile-bar-btn:active { transform: scale(0.97); }
.mobile-bar-btn.call { background: var(--brass); color: #fff; }
.mobile-bar-btn.route { background: transparent; color: var(--green-800); border: 1.5px solid var(--green-800); }

/* Leiste nur auf Handy/Tablet; Platz freihalten, Back-to-top anheben */
@media (min-width: 900px) {
  .mobile-bar { display: none; }
}
@media (max-width: 899px) {
  body { padding-bottom: 74px; }
  .back-to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* =================== Reduced Motion =================== */
@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;
  }
  .hero-media img { animation: none; }
  .reveal, .hero-content > *, .plat-card { opacity: 1; transform: none; }
}
