/* ============================================================
   Marko`s Pizza Prinz Pritzwalk - geruest.css (Phase 1, v4.1)
   Farbwelt: Original-Lime #afca05 als Akzent, dunkles Grün als Primär
   ============================================================ */
:root {
  --primary: #4a6b0a;
  --dark: #2e4505;
  --accent: #afca05;
  --bg-color: #f7f9f2;
  --text-color: #22281c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; display: flex; justify-content: flex-end;
  gap: 24px; padding: 6px 18px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(74, 107, 10, 0.15);
}
.topbar-item { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--primary); }

/* ---------- Header + Nav ---------- */
.site-header {
  position: fixed; top: 32px; left: 0; right: 0; z-index: 999;
  background: linear-gradient(90deg, var(--primary), var(--dark));
}
.nav-list {
  list-style: none; display: flex; justify-content: center;
  gap: 6px; padding: 10px 8px; overflow-x: auto;
}
.nav-list a {
  color: #fff; text-decoration: none; padding: 8px 16px;
  border-radius: 6px; white-space: nowrap; font-weight: 500;
}
.nav-list a:hover { background: rgba(255,255,255,0.18); }
.hamburger { display: none; }

/* ---------- Logo-Box ---------- */
.logo-box {
  position: fixed; top: 4px; left: 50%; transform: translateX(-50%);
  z-index: 1002; background: #fff; border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  border: 1px solid rgba(74,107,10,0.15); padding: 4px;
  cursor: pointer;
}
.logo-box img { display: block; max-height: 60px; }

/* ---------- Layout ---------- */
.page { padding-top: 110px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 18px; }
section { padding: 40px 0; }
h2 { color: var(--dark); text-align: center; font-size: 1.8em; margin-bottom: 24px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--dark) 70%, var(--dark));
  color: #fff; text-align: center; padding: 70px 18px;
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.4em; margin-bottom: 10px; }
.hero-sub { font-size: 1.2em; opacity: 0.92; margin-bottom: 18px; }
.hero-info { margin-bottom: 26px; line-height: 1.8; }
.cta {
  display: inline-block; background: var(--accent); color: #22281c;
  padding: 12px 28px; border-radius: 8px; text-decoration: none;
  font-weight: 700; min-height: 44px; min-width: 120px;
}
.cta:hover { filter: brightness(1.08); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto; padding: 0 18px;
}
.contact-boxes { display: grid; gap: 14px; align-content: start; }
.contact-card {
  background: #fff; border-radius: 10px; padding: 18px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(74,107,10,0.12);
}
.contact-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.05em; }
.contact-route {
  background: #fff; border-radius: 10px; padding: 22px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08); text-align: center;
  align-self: start; border: 1px solid rgba(74,107,10,0.12);
}
.contact-route h3 { color: var(--dark); margin-bottom: 10px; }
.route-cta { margin-top: 14px; }

/* ---------- Speisekarte ---------- */
.menu-section { background: #fff; }
.menu-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 0 26px;
}
.menu-nav a {
  text-decoration: none; background: var(--bg-color);
  border: 1px solid rgba(74,107,10,0.25); padding: 8px 18px;
  border-radius: 20px; font-weight: 600; color: var(--primary);
}
.menu-nav a:hover { background: var(--accent); color: #22281c; }
.menu-section .table-responsive-sm { overflow-x: auto; }
.menu-section table {
  margin: 0 auto 20px; border-collapse: collapse; min-width: 640px; width: 100%;
  max-width: 980px;
}
.menu-section td { padding: 4px 10px; font-size: 15px; }
.menu-section .head td {
  background: var(--primary); color: #fff; font-size: 1.15em;
  padding: 10px 14px; border-radius: 4px 4px 0 0;
}
.menu-note {
  text-align: center; font-style: italic; color: #55603f;
  max-width: 720px; margin: 18px auto 0; font-size: 14px;
}

/* Tooltips (Nachbau des Joomla-Features) */
.tip { position: relative; cursor: help; color: var(--primary); font-weight: 700; }
.tip::after {
  content: attr(data-tip);
  position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
  background: #22281c; color: #fff; padding: 8px 12px; border-radius: 6px;
  font-size: 12.5px; font-weight: 400; white-space: normal; width: 260px;
  opacity: 0; visibility: hidden; transition: opacity 0.15s; z-index: 50;
  line-height: 1.45; text-align: left;
}
.tip::before {
  content: ""; position: absolute; bottom: 118%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: #22281c;
  opacity: 0; visibility: hidden; transition: opacity 0.15s; z-index: 50;
}
.tip:hover::after, .tip:hover::before { opacity: 1; visibility: visible; }

/* ---------- Galerie ---------- */
.gallery-section { background: var(--bg-color); }
.gallery-slider { position: relative; max-width: 1100px; margin: 0 auto; overflow: hidden; padding: 0 18px; }
.gallery-track {
  display: flex; gap: 14px; transition: transform 0.35s ease;
}
.gallery-track img {
  flex: 0 0 calc((100% - 28px) / 3); height: 220px; object-fit: cover;
  border-radius: 10px; cursor: zoom-in; box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.gal-prev, .gal-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--primary); color: #fff; border: none; border-radius: 50%;
  width: 42px; height: 42px; font-size: 18px; cursor: pointer; z-index: 5;
}
.gal-prev { left: 22px; } .gal-next { right: 22px; }
.gallery-note { text-align: center; font-size: 14px; color: #55603f; margin-top: 12px; }

/* ---------- Legal ---------- */
.legal-section { background: #fff; }
.legal-content {
  max-width: 860px; margin: 0 auto; padding: 18px;
  background: var(--bg-color); border-radius: 10px;
}

/* ---------- Footer (IMMER 3 Spalten) ---------- */
.footer { background: #10181e; color: #d7dde2; padding: 40px 18px 26px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; max-width: 1100px; margin: 0 auto;
}
.footer h3 { color: #fff; margin-bottom: 10px; font-size: 1.05em; }
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.copyright { margin-top: 14px; font-size: 13px; color: #8a949c; }

/* ---------- Side-Contact ---------- */
.side-contact {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 1002; display: flex; flex-direction: column; gap: 10px;
}
.side-btn {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-size: 22px; text-decoration: none;
  border-radius: 10px 0 0 10px; transition: width 0.2s; overflow: hidden; white-space: nowrap;
}
.side-btn:hover { width: 180px; background: var(--accent); color: #22281c; }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1003;
  background: #10181e; color: #e7ecf0; padding: 16px 18px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.3);
}
.cookie-banner p { max-width: 720px; font-size: 13.5px; margin: 0; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-buttons button {
  padding: 9px 20px; border-radius: 6px; border: none; cursor: pointer;
  font-weight: 600; min-height: 44px;
}
.cookie-buttons button:first-child { background: var(--accent); }
.cookie-buttons button:nth-child(2) { background: #3a444c; color: #fff; }
.cookie-buttons a { color: var(--accent); font-size: 13.5px; }
.cookie-status { width: 100%; text-align: center; font-size: 12.5px; color: #9aa4ac; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hamburger {
    display: flex; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 10px 14px;
  }
  .hamburger span { width: 22px; height: 2.5px; background: #fff; }
  .nav-list {
    display: none; flex-direction: row; overflow-x: auto;
    padding: 4px 10px 10px; gap: 4px;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 8px 12px; font-size: 14px; }
  .logo-box img { max-height: 44px; }
  .page { padding-top: 96px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .gallery-track img { flex-basis: calc(100% - 14px); height: 200px; }
  .gal-prev, .gal-next { width: 36px; height: 36px; }
}
