/*
Theme Name: Pizza Family Test
Theme URI: https://test.pizzafamily.site
Author: gofonia
Description: Pizza Family — Layout nach gofonia.de-Vorbild: abgesetzte Menüleiste (ohne Logo), 1 Hero-Banner, Seite. Barrierefrei (WCAG 2.1/2.2).
Version: 2.0.0
Requires at least: 6.0
License: GPL-2.0-or-later
*/

:root {
  --cream: #F7F1E8;
  --ink: #1A1A1A;
  --accent: #B00018;          /* PizzaFamily-Rot (6.5:1 auf Creme) */
  --accent-strong: #7C0011;
  --dark: #221A12;            /* dunkler Header (wie Banner-Optik) */
  --dark-2: #2E241A;
  --focus: #005AB8;
  --maxw: 1100px;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Verdana, Arial, sans-serif;
  line-height: 1.7;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: underline; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; }

/* Skip-Link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: #000; color: #fff; padding: 12px 20px; font-weight: bold;
}
.skip-link:focus { left: 0; top: 0; }

/* ── Header: nur abgesetzte Menüleiste (dunkel, KEIN Logo) ── */
.site-header {
  background: var(--dark);
  border-bottom: 4px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 900;
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  min-height: 60px;
  gap: 12px;
}
.nav-toggle {
  display: none;
  align-items: center; gap: 8px;
  min-width: 44px; min-height: 44px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6em;
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle-label { font-size: 0.75em; font-weight: bold; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 2px; align-items: center;
}
.site-nav li { margin: 0; }
.site-nav li a {
  display: flex; align-items: center; min-height: 60px;
  padding: 0 14px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 16.5px;
  letter-spacing: .2px;
}
.site-nav li a:hover,
.site-nav li a:focus-visible {
  background: var(--dark-2);
  color: #FFD8DC;
  text-decoration: none;
}
.site-nav li.current_page_item > a,
.site-nav li.current-menu-item > a,
.site-nav li.current-menu-parent > a {
  background: var(--dark-2);
  box-shadow: inset 0 -4px 0 var(--accent);
}
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 8px;
  margin: 10px 0 10px 8px;
  min-height: 40px;
}
.nav-cta:hover { background: var(--accent-strong) !important; }

/* ── Hero-Banner: 1 Bild, Full-Bleed, exakte Original-Proportionen (1744:608) ── */
/* Box selbst auf volle Viewport-Breite ziehen; Bild füllt die Box proportional. */
.hero-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Content ── */
.site-main { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 72px; }
.site-main h1 { font-size: 2.3em; line-height: 1.15; }
.site-main h2 { line-height: 1.25; margin-top: 2em; }
.site-main h2:first-child { margin-top: 0; }
h2.section-title {
  font-size: 1.9em;
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 8px;
  margin-top: 2.2em;
}
.entry-content > p:first-child { margin-top: 0; }
.subtitle { font-style: italic; color: #5A5147; }

/* Karten / Listen */
.wp-block-group.menu-item,
.wp-block-group.recipe-card,
.lexicon-entry,
.hours-list {
  background: #fff;
  border: 1px solid #E4DACB;
  border-radius: var(--radius);
  padding: 12px 18px;
  margin: 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.wp-block-group.menu-item p { margin: 0; }
.recipe-card small, .menu-item small { color: #6B6257; }
.hours-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 24px; padding: 14px 18px; }
.hours-list li { margin: 0; }
.lexicon-entry { margin: 6px 0; }

/* Galerie: Grid statt untereinander */
.wp-block-columns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.about-img { margin: 0; }
.about-img img {
  width: 100%;
  height: 260px;
  max-width: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
@media (max-width: 899px) {
  .about-img img { max-width: 100%; height: 200px; }
}
.galerie-img { margin: 0; }
.galerie-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Buttons */
.wp-block-button__link {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 14px 24px; border-radius: 8px;
  text-decoration: none; font-weight: bold;
  border: 0;
}
.wp-block-button__link:hover { background: var(--accent-strong); color: #fff; }

/* QR + Bewertung */
.qr-box, .review-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  text-align: center;
  height: 100%;
}
.qr-box figure { margin: 0 auto 12px; max-width: 200px; }
.qr-box img { border-radius: 12px; }
.review-title { margin-top: 0 !important; color: var(--accent); }

/* Map */
.map-embed iframe { border-radius: var(--radius); }

/* Widget-Frame (GoBookMe) — neben Reservierungstext */
.widget-col { background: #fff; border: 1px solid #E4DACB; border-radius: var(--radius); padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.widget-frame iframe { width: 100%; min-height: 520px; border: none; border-radius: var(--radius); }
@media (max-width: 899px) {
  .widget-col { padding: 8px; }
}

/* Bilder im Content */
.entry-content .wp-block-image img {
  max-width: 100%; height: auto; border-radius: var(--radius);
}

/* Bremerhaven: Sehenswürdigkeiten-Karten */
.sight-card {
  background: #fff;
  border: 1px solid #E4DACB;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 12px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.sight-card h3 { margin: 0 0 6px; color: var(--accent); }
.sight-dist { font-weight: bold; }
.sight-tag small {
  display: inline-block;
  background: var(--cream);
  border: 1px solid #E4DACB;
  border-radius: 20px;
  padding: 3px 12px;
  margin-top: 6px;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  padding: 36px 24px;
  text-align: center;
  font-size: 14px;
}
.site-footer a { color: #fff; }
.site-footer .footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.site-footer .footer-links a { color: rgba(255,255,255,.75); }
.site-footer .footer-links a:hover { color: #FFD8DC; }

/* ── Mobil ── */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(255,255,255,.12);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .site-nav ul.open { display: flex; }
  .site-nav li a { min-height: 48px; padding: 10px 24px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .site-nav li.current_page_item > a { background: var(--dark-2); box-shadow: inset 4px 0 0 var(--accent); }
  .nav-cta { margin: 12px 24px 0; justify-content: center; }
  .hero-banner img { height: auto; }
  .galerie-img img { height: 170px; }
  .site-main { padding: 28px 16px 56px; }
  .wp-block-columns { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
