/* =====================================================================
   Döner & Pizza Land – Hauptstylesheet
   Wird von index.html und wartung.html geladen.
   ===================================================================== */

@font-face { font-family: 'Lato'; src: url('../fonts/lato-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('../fonts/lato-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('../fonts/lato-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

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

:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-warm: #ffedd5;
  --text: #1f1f1f;
  --muted: #6b625a;
  --line: rgba(31,31,31,0.11);
  --red: #df2e1b;
  --red-dark: #b42316;
  --orange: #f97316;
  --green: #15803d;
  --dark: #171717;
  --shadow: 0 18px 45px rgba(42, 28, 16, 0.10);
  --radius: 24px;
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
#oeffnungszeiten { scroll-margin-top: 92px; }

body {
  font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 0;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,247,237,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(223,46,27,0.25);
}
.brand small { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }

.desktop-links { display: flex; align-items: center; gap: 6px; }
.desktop-links a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
}
.desktop-links a:hover, .desktop-links a:focus-visible { background: var(--surface-warm); color: var(--text); outline: none; }

.nav-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 900;
}
.nav-call:hover { background: var(--red); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span { width: 20px; height: 2px; border-radius: 99px; background: var(--text); transition: transform .2s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 76px 16px auto 16px;
  z-index: 110;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 12px;
}
.mobile-menu.open { display: block; }
.mobile-menu a, .mobile-menu button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 0 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.mobile-menu a:hover, .mobile-menu button:hover { background: var(--surface-warm); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(249,115,22,0.18), transparent 28%),
    linear-gradient(135deg, #fff7ed 0%, #fff 42%, #ffedd5 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  right: -160px;
  bottom: -160px;
  background: rgba(223,46,27,0.10);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 80px;
  padding: 56px 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(223,46,27,0.22);
  background: rgba(255,255,255,0.72);
  color: var(--red-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(3rem, 7.5vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  max-width: 780px;
}
.hero-lead {
  margin-top: 22px;
  max-width: 630px;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(223,46,27,0.22);
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); transform: translateY(-1px); outline: none; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.secondary:hover, .btn.secondary:focus-visible { background: var(--surface-warm); }
.btn.dark { background: var(--dark); color: #fff; box-shadow: none; }
.btn.dark:hover { background: var(--red); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  max-width: 720px;
}
.fact {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
}
.fact span { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.fact strong { font-size: 0.98rem; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 14px;
  transform: translate(75px, -90px) rotate(1deg);
}
.hero-image {
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1f1f1f, #df2e1b);
}
.hero-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.hero-image.failed img { display: none; }
.hero-image.failed .image-fallback { display: grid; }
.image-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 28px;
}
.image-fallback strong { display: block; font-size: 2.2rem; line-height: 1.05; letter-spacing: -0.05em; margin-bottom: 10px; }

.open-pill {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255,255,255,0.93);
  color: var(--text);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 16px 30px rgba(0,0,0,0.16);
}
.open-pill span { color: var(--green); font-weight: 900; }
.open-pill small { color: var(--muted); font-weight: 700; }

/* ---------- Sections ---------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 24px;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.55fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.section-kicker {
  color: var(--red);
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.06em; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.intro-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.intro-card .icon { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-warm); margin-bottom: 16px; }
.intro-card h3 { font-size: 1.2rem; letter-spacing: -0.03em; margin-bottom: 6px; }
.intro-card p { color: var(--muted); }

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 14px;
}
.photo {
  min-height: 260px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: #ead9c4;
}
.photo:first-child { grid-row: span 2; min-height: 534px; }
.photo img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.photo.failed img { display: none; }
.photo.failed .photo-fallback { display: grid; }
.photo-fallback { display: none; position: absolute; inset: 0; place-items: center; color: #8b6f52; font-weight: 900; text-align: center; padding: 20px; background: repeating-linear-gradient(45deg,#f3e6d3,#f3e6d3 12px,#ead9c4 12px,#ead9c4 24px); }

/* ---------- Speisekarte ---------- */
.menu-sticky {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  position: sticky;
  top: 76px;
  z-index: 20;
  padding: 14px 0;
  background: linear-gradient(to bottom, var(--bg) 78%, rgba(255,247,237,0));
}
.menu-sticky a {
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 13px;
}
.menu-sticky a:hover { background: var(--dark); color: #fff; }

.menu-category {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.menu-category-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}
.menu-category-head span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}
.menu-category h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.04em; }

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.menu-item h4 { font-size: 1rem; letter-spacing: -0.02em; }
.menu-item p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.menu-item strong { color: var(--red); white-space: nowrap; font-size: 1.04rem; }

.menu-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- Kontakt ---------- */
.contact-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 24px;
}
.contact-shell {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 18px;
}
.contact-card {
  background: var(--dark);
  color: #fff;
  border-radius: 34px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.contact-card h2 { color: #fff; margin-bottom: 14px; }
.contact-card p { color: #d6d6d6; }
.contact-card a { color: inherit; }

.phone-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.phone-list a { color: #fff; text-decoration: none; font-weight: 900; border-bottom: 2px solid var(--orange); padding-bottom: 3px; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-actions .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.contact-actions .btn.secondary:hover { background: rgba(255,255,255,0.12); }

.hours-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.hours-card h3 { font-size: 1.6rem; letter-spacing: -0.04em; margin-bottom: 18px; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table tr:last-child { border-bottom: 0; }
.hours-table td { padding: 12px 0; }
.hours-table td:last-child { text-align: right; font-weight: 900; }
.hours-table tr.heute td { color: var(--red); font-weight: 900; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { border: 1px solid var(--line); background: #fffaf4; border-radius: 999px; padding: 8px 11px; color: var(--muted); font-size: 0.88rem; font-weight: 800; }

.reviews { text-align: center; margin-top: 22px; color: var(--muted); }
.reviews a { color: var(--red); font-weight: 900; text-decoration: none; }

/* ---------- Route-Modal ---------- */
.route-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.62);
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.route-modal.open { display: flex; }
.route-box {
  width: min(100%, 420px);
  background: var(--surface);
  color: var(--text);
  border-radius: 28px;
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
}
.route-box h3 { font-size: 1.55rem; letter-spacing: -0.04em; margin-bottom: 6px; }
.route-box p { color: var(--muted); margin-bottom: 14px; }
.route-box a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-top: 10px;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  padding: 0 16px;
}
.route-box a:hover { background: var(--red); }
.route-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--surface-warm);
  border-radius: 14px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Footer ---------- */
footer {
  background: var(--dark);
  color: #9f9f9f;
  text-align: center;
  padding: 28px 16px;
  font-size: 0.88rem;
}
footer span { color: #fff; font-weight: 900; }
footer a { color: #d8d8d8; text-decoration: none; margin: 0 10px; }
footer a:hover { color: #fff; }
.footer-links { margin-top: 8px; }

.mobile-cta-bar { display: none; }

/* ---------- Wartungsseite ---------- */
.soon { width: min(100%, 760px); background: var(--surface); border: 1px solid var(--line); border-radius: 34px; box-shadow: var(--shadow); padding: clamp(28px, 5vw, 56px); text-align: center; }
.soon .brand-mark { margin: 0 auto 18px; }
.soon h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
.soon p { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }
.soon-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.footer-simple { position: fixed; left: 0; right: 0; bottom: 0; background: transparent; color: var(--muted); }
.footer-simple a { color: var(--muted); }

body.maintenance { display: grid; min-height: 100svh; place-items: center; padding: 24px; }
body.maintenance, html.maintenance { min-height: 100%; }

/* ---------- Media Queries ---------- */
@media (max-width: 920px) {
  .desktop-links, .nav-call { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 48px; }
  .hero-card { transform: none; }
  .hero-image, .hero-image img { min-height: 320px; }
  .section-head, .contact-shell { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .photo:first-child { grid-column: 1 / -1; min-height: 330px; }
  .intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  #oeffnungszeiten { scroll-margin-top: 86px; }
  body { padding-bottom: 72px; }
  .nav { min-height: 68px; padding: 0 16px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand small { display: none; }
  .mobile-menu { inset: 68px 12px auto 12px; }
  .hero-inner, .section, .contact-wrap { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding-top: 34px; padding-bottom: 46px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .section { padding-top: 62px; padding-bottom: 62px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .photo, .photo:first-child { min-height: 230px; }
  .menu-sticky { overflow-x: auto; flex-wrap: nowrap; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .menu-sticky a { white-space: nowrap; }
  .menu-category { padding: 16px; border-radius: 24px; }
  .menu-list { grid-template-columns: 1fr; }
  .menu-item { padding: 14px; }
  .contact-card, .hours-card { padding: 22px; border-radius: 28px; }
  .hours-table td { font-size: 0.92rem; }
  .hours-table td:last-child { white-space: nowrap; }
  .mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,247,237,0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }
  .mobile-cta-bar a, .mobile-cta-bar button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .mobile-cta-call { background: var(--red); color: #fff; }
  .mobile-cta-route { background: var(--dark); color: #fff; }
}
