/* Self-hosted Pacifico (Subsets latin + latin-ext) */
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pacifico-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pacifico-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #fff8e7;
  --color-surface: #ffffff;
  --color-text: #2a2a2a;
  --color-muted: #6b6b6b;
  --color-accent: #f5a623;
  --color-accent-soft: #fff3d6;
  --color-primary: #c8102e;
  --color-primary-dark: #8c0017;
  --color-border: #ead9b3;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --radius: 10px;
  --maxw: 1200px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Pacifico", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: linear-gradient(135deg, #f5a623 0%, #e07a00 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  /* Über Leaflet-Panes (max. 1000 für leaflet-top/bottom) */
  z-index: 1100;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 72px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .brand img { height: 96px; }
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
}
.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.site-footer {
  margin-top: 48px;
  background: #2a2a2a;
  color: #f0f0f0;
  padding: 32px 0;
}
.site-footer .container {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.site-footer h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
}
.site-footer a { color: #ffd28a; }
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 14px;
  color: #bdbdbd;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.85) 0%, rgba(140, 0, 23, 0.9) 100%),
    radial-gradient(circle at 20% 20%, #f5a623, transparent 60%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  margin: 0 0 32px;
  line-height: 1.1;
}
.hero p.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: 680px;
  margin: 0 auto 24px;
  opacity: 0.95;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--color-accent);
  color: #2a2a2a;
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffb83d;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover, .btn-outline:focus {
  background: rgba(255, 255, 255, 0.15);
}
.btn-download {
  background: var(--color-primary);
  color: #fff;
}
.btn-download:hover, .btn-download:focus {
  background: var(--color-primary-dark);
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding: 48px 0;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-primary);
  margin: 0 0 8px;
  text-align: center;
}
.section .section-sub {
  text-align: center;
  color: var(--color-muted);
  margin: 0 auto 32px;
  max-width: 720px;
}

/* ---------- Cards / Grid ---------- */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card .card-tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  letter-spacing: 1px;
  width: fit-content;
}
.card h3 {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.3;
}
.card .price {
  margin-top: auto;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
}

/* ---------- Contact / Hours ---------- */
.info-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}
.info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.info-box h3 {
  margin-top: 0;
  color: var(--color-primary);
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.contact-list .label {
  font-weight: 700;
  min-width: 110px;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table td {
  padding: 8px 4px;
  border-bottom: 1px dashed var(--color-border);
}
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; font-weight: 600; }

.callout {
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 16px 0;
}

/* ---------- Speisekarte ---------- */
.menu-anchor-nav {
  position: sticky;
  top: 64px;
  background: var(--color-bg);
  z-index: 10;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}
.menu-anchor-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.menu-anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
}
.menu-anchor-nav a:hover, .menu-anchor-nav a:focus {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  text-decoration: none;
}

.menu-section {
  margin-bottom: 40px;
  scroll-margin-top: 130px;
}
.menu-section h2 {
  text-align: left;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 6px;
  display: inline-block;
}

.menu-grid {
  display: grid;
  gap: 8px 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .menu-grid.three-col { grid-template-columns: repeat(3, 1fr); }
}

.menu-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px dashed var(--color-border);
  align-items: baseline;
}
.menu-item .nr {
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.menu-item .name {
  font-weight: 600;
}
.menu-item .desc {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 2px;
}
.menu-item .price {
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu-item sup {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 11px;
}

.allergen-legend {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 32px;
}
.allergen-legend summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 17px;
}
.allergen-legend .legend-grid {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
@media (min-width: 600px) {
  .allergen-legend .legend-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .allergen-legend .legend-grid { grid-template-columns: repeat(3, 1fr); }
}
.legend-grid dt { font-weight: 700; display: inline; color: var(--color-primary); }
.legend-grid dd { display: inline; margin-left: 6px; }
.legend-grid div { padding: 4px 0; border-bottom: 1px dashed var(--color-border); }

.download-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.download-bar p { margin: 0; }

/* ---------- Anfahrt / FindMe ---------- */
.findme-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  min-height: 460px;
}
find-me {
  display: block;
  width: 100%;
}
.findme-status {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 16px;
  display: none;
}
.findme-status.is-error {
  background: #ffe1e1;
  border-left-color: var(--color-primary);
  display: block;
}
.findme-status.is-info {
  display: block;
}

.directions-static {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .directions-static { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Impressum ---------- */
.legal article {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.legal h2 {
  text-align: left;
  margin-top: 24px;
  font-size: 22px;
  color: var(--color-primary);
}
.legal h2:first-child { margin-top: 0; }
.legal address {
  font-style: normal;
  margin: 8px 0 16px;
}

.notice {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 14px 18px;
  border-radius: 6px;
  margin: 16px 0;
}
.notice strong { display: block; margin-bottom: 4px; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: static;
  display: inline-block;
  padding: 8px 12px;
  background: #000;
  color: #fff;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .menu-anchor-nav, .download-bar, .hero-cta, .findme-wrapper {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .section { padding: 0; }
  .menu-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .menu-item { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
