/* ============================================================
   Ristorante Perla — Stylesheet
   ============================================================
   Alle Farben kommen aus den CSS-Variablen am Anfang.
   Wollen Sie die Hauptfarbe ändern, passen Sie --primary an
   (oder noch einfacher: in cms/settings.js -> primary_color).
============================================================ */

/* ---------- Farben / Design-Tokens ---------- */
:root {
  --primary: #b53024;           /* Italienisch-Rot */
  --primary-dark: #921e16;
  --secondary: #2f7a3e;         /* Italienisch-Grün */
  --background: #fbf7ee;        /* warmes Creme */
  --foreground: #2b1d15;        /* dunkles Braun */
  --muted: #f1ead9;
  --muted-foreground: #6d5a4d;
  --card: #ffffff;
  --border: #e4dccb;
  --accent: #f4e9c9;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.18);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--primary); margin: 0; font-weight: 700; }
.font-serif { font-family: var(--serif); }
.italic { font-style: italic; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.muted { color: var(--muted-foreground); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); border:0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,247,238,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
}
.site-header__logo img { height: 48px; width: auto; }
@media (min-width: 768px) { .site-header__logo img { height: 56px; } }

.site-nav { display: none; gap: 1.75rem; align-items: center; }
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav a {
  font-size: .92rem; font-weight: 500; color: var(--foreground);
  text-decoration: none; transition: color .15s;
}
.site-nav a:hover { color: var(--primary); }
.site-nav a.is-active { color: var(--primary); font-weight: 600; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: transparent; border: 0;
  cursor: pointer; color: var(--foreground);
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 24px; height: 24px; }

.site-nav-mobile {
  display: none; border-top: 1px solid var(--border); background: var(--background);
}
.site-nav-mobile.open { display: block; }
.site-nav-mobile a {
  display: block; padding: .75rem 1rem;
  font-size: 1rem; font-weight: 500;
  color: var(--foreground); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.site-nav-mobile a.is-active { color: var(--primary); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .75rem 1.4rem;
  border-radius: 999px; font-weight: 600; font-size: .92rem;
  text-decoration: none; transition: all .15s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-light { background: rgba(255,255,255,.95); color: var(--foreground); }
.btn-light:hover { background: #fff; text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); text-decoration: none; }

.btn-facebook {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #1877F2; color: #fff;
  border-radius: 999px; padding: .65rem 1.35rem;
  font-weight: 600; font-size: .92rem;
  text-decoration: none; transition: all .15s;
  box-shadow: 0 4px 14px rgba(24,119,242,.35);
}
.btn-facebook:hover {
  background: #166fe5; text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(24,119,242,.45);
}
.btn-facebook svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.4) 50%, rgba(0,0,0,.7));
}
.hero__content {
  position: relative; max-width: 1100px; margin: 0 auto;
  padding: 6rem 1rem; text-align: center;
}
@media (min-width: 768px) { .hero__content { padding: 9rem 1rem; } }
.hero__logo-box {
  display: inline-block; background: rgba(255,255,255,.95);
  border-radius: 14px; padding: .5rem 1rem; box-shadow: var(--shadow-lg);
}
.hero__logo-box img { height: 96px; width: auto; }
@media (min-width: 768px) { .hero__logo-box img { height: 128px; } }
.hero__subtitle {
  margin-top: 2rem;
  font-family: var(--serif); font-style: italic;
  color: #fff; font-size: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
@media (min-width: 768px) { .hero__subtitle { font-size: 1.5rem; } }
.hero__actions {
  margin-top: 2rem; display: flex; flex-wrap: wrap;
  justify-content: center; gap: .75rem;
}

/* ---------- Sections ---------- */
section { padding-left: 0; padding-right: 0; }
.section { padding: 4rem 0; }
.section-lg { padding: 5rem 0; }
@media (min-width: 768px) { .section-lg { padding: 6rem 0; } }
.section-title { font-size: 1.875rem; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-text { margin-top: 1.25rem; font-size: 1.05rem; line-height: 1.7; color: rgba(43,29,21,.85); }

/* ---------- Karten / Teaser ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card); border-radius: 18px;
  box-shadow: var(--shadow-md); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: block; color: inherit; text-decoration: none;
}
.card:hover { box-shadow: var(--shadow-lg); text-decoration: none; }
.card__image { aspect-ratio: 4/3; overflow: hidden; background: var(--muted); }
.card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.card:hover .card__image img { transform: scale(1.05); }
.card__body { padding: 1.25rem; }
.card__title { font-size: 1.2rem; }
.card__text { margin-top: .35rem; color: var(--muted-foreground); font-size: .92rem; }

/* ---------- Reviews ---------- */
.review {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.review__head { display: flex; gap: 1rem; align-items: center; }
.review__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(181,48,36,.12); color: var(--primary);
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.review__name { font-weight: 600; }
.review__meta { font-size: .72rem; color: var(--muted-foreground); }
.review__stars { color: #f5b400; font-size: .9rem; margin-top: .15rem; }
.review__text {
  margin: 1.1rem 0 .5rem; font-style: italic;
  color: rgba(43,29,21,.85); line-height: 1.6;
}
.review__source { font-size: .72rem; color: var(--muted-foreground); }

/* ---------- Öffnungszeiten / Highlight-Section ---------- */
.section-bar {
  background: rgba(244,233,201,.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.opening-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.opening-list li { margin: .35rem 0; color: rgba(43,29,21,.85); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem; border-top: 1px solid var(--border);
  background: var(--card);
}
.site-footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding: 2.5rem 1rem;
  max-width: 1100px; margin: 0 auto;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h3 { font-family: var(--serif); color: var(--primary); font-size: 1.1rem; margin-bottom: .5rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { padding: .25rem 0; }
.site-footer__links a, .site-footer__links button {
  background: transparent; border: 0; cursor: pointer;
  font: inherit; color: var(--foreground); padding: 0;
}
.site-footer__links a:hover, .site-footer__links button:hover { color: var(--primary); }
.site-footer__legal {
  border-top: 1px solid var(--border);
  text-align: center; padding: 1rem; font-size: .78rem; color: var(--muted-foreground);
}

/* ---------- Speisekarte-Unterseiten ---------- */
.breadcrumb { font-size: .9rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted-foreground); }
.breadcrumb a:hover { color: var(--primary); }
.menu-images { display: flex; flex-direction: column; align-items: center; gap: 2rem; margin-top: 2.5rem; }
.menu-images button {
  border: 0; background: var(--card); padding: 0;
  border-radius: 18px; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-md);
  width: 100%; max-width: 900px;
}
.menu-images img { width: 100%; height: auto; display: block; background: #fff; }

/* Ambiente-Galerie */
.gallery { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery button {
  border: 0; padding: 0; cursor: pointer; background: var(--card);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md);
}
.gallery img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.05); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox__img { max-width: 95vw; max-height: 90vh; object-fit: contain; }
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: 0; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox__btn:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  padding: 1rem;
}
.cookie-banner__inner {
  max-width: 760px; margin: 0 auto;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 1.5rem;
  animation: fadeInUp .5s ease-out;
}
.cookie-banner h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.cookie-banner p { margin: 0; font-size: .92rem; line-height: 1.55; }
.cookie-banner__actions {
  margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end;
}
.cookie-banner__actions .btn { padding: .55rem 1rem; font-size: .85rem; }

.cookie-modal {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.cookie-modal__box {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg);
  max-width: 520px; width: 100%; padding: 1.5rem;
}
.cookie-modal__row {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--background); padding: 1rem; margin-top: .75rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
}
.cookie-modal__row h3 { color: var(--foreground); font-family: var(--sans); font-size: 1rem; margin: 0; }
.cookie-modal__row p { font-size: .78rem; color: var(--muted-foreground); margin: .25rem 0 0; }
.cookie-modal__actions {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: 1.25rem;
}

/* ---------- Maps Platzhalter ---------- */
.map-placeholder {
  background: var(--muted); padding: 3rem 1.5rem; text-align: center;
  min-height: 400px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
.map-placeholder p { max-width: 420px; margin: 0; font-size: .92rem; }
.map-frame { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Hinweis-Box ---------- */
.notice {
  border-left: 4px solid var(--primary);
  background: var(--accent); border-radius: 14px;
  padding: 1.1rem 1.25rem; font-size: .92rem; line-height: 1.55;
  margin-top: 1.5rem;
}

/* ---------- Reservierungs-Box ---------- */
.reservation-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.25rem; margin-top: 2rem;
  box-shadow: var(--shadow-md);
}
.reservation-box h2 { text-align: center; }
.reservation-iframe-wrap {
  margin-top: 1rem; aspect-ratio: 3/4;
  background: var(--muted); border-radius: 12px; overflow: hidden;
}
.reservation-iframe-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Kontakt-Karten ---------- */
.info-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.info-card h2 { font-family: var(--serif); color: var(--primary); font-size: 1.25rem; margin-bottom: .75rem; }

/* ---------- Allergene / Listen ---------- */
.list-grid { display: grid; gap: .5rem; grid-template-columns: 1fr; margin-top: 1rem; padding: 0; list-style: none; }
@media (min-width: 640px) { .list-grid { grid-template-columns: repeat(2, 1fr); } }
.list-grid li {
  display: flex; gap: .75rem; align-items: flex-start;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 10px; padding: .65rem 1rem;
}
.list-grid li b { color: var(--primary); min-width: 2rem; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p { margin: .75rem 0; color: rgba(43,29,21,.85); line-height: 1.7; }
.prose address { font-style: normal; line-height: 1.7; }

/* ---------- Animationen ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
