/* ── Self-hosted Fonts ──────────────────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/CormorantGaramond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/CormorantGaramond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-600.woff2') format('woff2');
}

/* ── Tokens ─────────────────────────────────────── */
:root {
  --bg:         #f5f2ee;
  --surface:    #ffffff;
  --primary:    #63625b;
  --secondary:  #c2d1cc;
  --accent:     #0b4205;
  --accent-mid: #1a6b0a;
  --text:       #2a2925;
  --text-muted: #7a7870;
  --border:     #ddd9d3;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Typography ─────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}
h2 { font-size: 1.75rem; color: var(--primary); margin-bottom: 1.25rem; }
h3 { font-size: 1.1rem; }

/* ── Header ─────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.header-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.header-today {
  font-size: 0.75rem;
  color: var(--secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-reserve {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-reserve:hover { background: var(--accent-mid); }

/* ── Hero ───────────────────────────────────────── */
#hero {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-ornament {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
  letter-spacing: 1rem;
}

#hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.hero-geo {
  font-size: 1rem;
  color: var(--secondary);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

.hero-sub {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

/* ── Slideshow ──────────────────────────────────── */
.hero-slideshow {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 220px;
  user-select: none;
  touch-action: pan-y;
}

.slides-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  -webkit-user-drag: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.35);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
}
.slide-arrow:hover { background: rgba(0,0,0,0.6); }
.slide-arrow.prev { left: 10px; }
.slide-arrow.next { right: 10px; }

.slide-dots { display: none; }

/* ── Sections ───────────────────────────────────── */
section {
  padding: 2rem 1.25rem;
}
section:nth-child(even) {
  background: var(--surface);
}

/* ── Speisekarte ────────────────────────────────── */
#speisekarte {
  position: relative;
  overflow: hidden;
}



.menu-inner {
  max-width: 680px;
  margin: 0 auto;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.menu-list {
  display: none;
  flex-direction: column;
}
.menu-list.visible {
  display: flex;
  animation: page-in 0.25s ease forwards;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px) rotate(-0.3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

/* Papier-Blatt */
.menu-paper {
  background: #f7f3ec;
  /* Unregelmäßige Ecken – kein Zirkel-Radius */
  border-radius: 2px 5px 3px 4px / 4px 2px 5px 3px;
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.07),
    0 6px 16px rgba(0,0,0,0.09),
    0 12px 32px rgba(0,0,0,0.04),
    inset 0 0 0 1px rgba(139,110,60,0.08);
  /* Pergament-Farbverlauf */
  background-image:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.4) 0%,
      transparent 50%,
      rgba(0,0,0,0.02) 100%
    );
}

/* Borjgali aufs Blatt – als ::after */
.menu-paper::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 260px;
  height: 260px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%230b4205' stroke-width='1.5' opacity='0.06'%3E%3Ccircle cx='100' cy='100' r='90'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='30'/%3E%3Cpath d='M100 10 Q130 40 100 70 Q70 40 100 10'/%3E%3Cpath d='M100 10 Q130 40 100 70 Q70 40 100 10' transform='rotate(60 100 100)'/%3E%3Cpath d='M100 10 Q130 40 100 70 Q70 40 100 10' transform='rotate(120 100 100)'/%3E%3Cpath d='M100 10 Q130 40 100 70 Q70 40 100 10' transform='rotate(180 100 100)'/%3E%3Cpath d='M100 10 Q130 40 100 70 Q70 40 100 10' transform='rotate(240 100 100)'/%3E%3Cpath d='M100 10 Q130 40 100 70 Q70 40 100 10' transform='rotate(300 100 100)'/%3E%3Ccircle cx='100' cy='22' r='6'/%3E%3Ccircle cx='100' cy='22' r='6' transform='rotate(60 100 100)'/%3E%3Ccircle cx='100' cy='22' r='6' transform='rotate(120 100 100)'/%3E%3Ccircle cx='100' cy='22' r='6' transform='rotate(180 100 100)'/%3E%3Ccircle cx='100' cy='22' r='6' transform='rotate(240 100 100)'/%3E%3Ccircle cx='100' cy='22' r='6' transform='rotate(300 100 100)'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

/* Linke Kante als Buchbindung */
.menu-paper::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(
    to right,
    rgba(139,110,60,0.12),
    transparent
  );
  border-radius: 2px 0 0 4px;
  z-index: 1;
}

/* Alles im Paper über dem SVG */
.menu-paper > * { position: relative; z-index: 1; }

/* Kategorie-Label oben auf dem Blatt */
.menu-paper-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(139,110,60,0.15);
}

.menu-item {
  background: transparent;
  border: none;
  border-bottom: 1px dotted rgba(0,0,0,0.15);
  border-radius: 0;
  padding: 0.85rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: none;
  transition: background 0.15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: rgba(11,66,5,0.03); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: 4px; }

.menu-item-info { flex: 1; }

.menu-item-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.menu-item-info h3 { font-size: 1rem; color: var(--text); }
.menu-item-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.menu-item-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* Diät-Badges – Standardisierte Kreis-Symbole */
.diet-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 0.55rem;
  font-weight: 800;
  font-family: var(--font-body);
  line-height: 1;
  width: 16px;
  height: 16px;
  letter-spacing: -0.02em;
}
.diet-badge.vegan {
  color: #2d7a2d;
}
.diet-badge.veggie {
  color: #7a5200;
}

/* Allergen */
.allergen-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
  flex-shrink: 0;
}
.allergen-btn:hover,
.allergen-btn.active { opacity: 1; color: var(--accent); }

/* Allergen-Zeile (ausklappbar) */
.allergen-row {
  margin-top: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: rgba(11,66,5,0.04);
  border-radius: var(--radius);
  border-left: 2px solid rgba(11,66,5,0.2);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.allergen-row .allergen-code {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.72rem;
}
.allergen-row .allergen-name {
  color: var(--text-muted);
}
.allergen-row .allergen-none {
  font-style: italic;
  color: var(--text-muted);
}

/* Allergen Infokasten oben */
.allergen-infobox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.allergen-code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Öffnungszeiten ─────────────────────────────── */
#oeffnungszeiten {}

.hours-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table tr {
  border-bottom: 1px solid var(--border);
}
.hours-table tr:last-child { border-bottom: none; }
.hours-table td {
  padding: 0.6rem 0.5rem;
  font-size: 0.95rem;
}
.hours-table td:last-child {
  text-align: right;
  color: var(--text-muted);
}
.hours-table tr.today {
  background: rgba(11, 66, 5, 0.06);
  border-radius: var(--radius);
}
.hours-table tr.today td {
  color: var(--accent);
  font-weight: 600;
}
.hours-table tr.today td:first-child::after {
  content: "";
}

/* ── Anfahrt ────────────────────────────────────── */
#anfahrt {}

.anfahrt-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.anfahrt-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.address-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.address-block p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}
.address-block a:not(.btn-maps) {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.maps-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 200px;
  position: relative;
}
.maps-embed iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
}

.btn-maps {
  display: inline-block;
  background: var(--secondary);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-maps:hover { background: #b0c2bc; }

/* ── Footer ─────────────────────────────────────── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.8rem;
}
footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer a:hover { color: #fff; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ── Responsive ─────────────────────────────────── */
@media (min-width: 600px) {
  #hero h1 { font-size: 3rem; }
  section { padding: 2.5rem 2rem; }
  .hero-slideshow { height: 300px; }
}

@media (min-width: 768px) {
  .menu-inner {
    max-width: 640px;
  }
  .allergen-infobox {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
  .tab-nav {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
  #speisekarte h2 {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
  .allergen-popup {
    right: 0;
    left: auto;
  }
  .hours-wrapper {
    max-width: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ── Papier-Ornamente ───────────────────────────── */

/* Eckornamente via SVG data-uri */
.menu-paper-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.15;
}
.menu-paper-corner.tl { top: 8px; left: 10px; }

/* Weinreben-Trennlinie */
.menu-paper-divider {
  width: 100%;
  height: 20px;
  margin-bottom: 1rem;
  opacity: 0.25;
}

/* Seitenzahl unten */
.menu-paper-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(139,110,60,0.12);
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-style: italic;
}

/* ── Tab-Nav Auto-Scroll ────────────────────────── */
.tab-nav {
  scroll-behavior: smooth;
}
.tab-btn {
  scroll-snap-align: center;
}

/* ── WhatsApp Float Button ──────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  text-decoration: none;
  font-size: 1.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  color: #fff;
}

/* ── Maps Consent ── */
.maps-consent-wrap { position: relative; }
.maps-consent-overlay {
  position: absolute; inset: 0;
  background: #1a2f35;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem; z-index: 10;
  border-radius: inherit;
}
.maps-consent-overlay p {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  text-align: center; max-width: 240px; line-height: 1.5;
}
.maps-consent-btn {
  background: #2a9d8f; color: #fff;
  border: none; border-radius: 99px;
  padding: 0.5rem 1.25rem; font-size: 0.82rem;
  font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background 0.15s;
}
.maps-consent-btn:hover { background: #21867a; }

.footer-reset {
  display: block;
  font-size: 0.72rem;
  opacity: 0.45;
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  transition: opacity 0.15s;
  text-decoration: underline;
}
.footer-reset:hover { opacity: 0.7; }