/* =========================================================
   Pizzabuben Daxlanden – Stylesheet
   Farbwelt abgeleitet aus dem Logo
   ========================================================= */

:root {
  /* Markenfarben aus dem Logo */
  --rot:        #B11E26;   /* Tomatenrot (Mittelkreis) */
  --rot-dark:   #8E1820;   /* Hover/dunkler */
  --gelb:       #F4A91F;   /* Käse-/Schild-Gelb (Buchstabe J) */
  --gelb-hell:  #FBC04A;
  --gold:       #E1B25A;   /* Krusten-Gold */
  --braun:      #4A2B16;   /* Dunkelbraun (Rand, Text) */
  --braun-hell: #6B3A1A;
  --creme:      #FBF4E3;   /* Hintergrund */
  --creme-2:    #F5E9CE;   /* Karten / abgesetzte Flächen */
  --weiss:      #FFFDF8;

  --schatten:   0 8px 24px rgba(74, 43, 22, 0.12);
  --schatten-s: 0 4px 12px rgba(74, 43, 22, 0.10);
  --radius:     16px;
  --radius-s:   10px;

  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --maxw: 1100px;
}

/* ---- Reset / Basis ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  color: var(--braun);
  background: var(--creme);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rot); text-decoration: none; }
a:hover { color: var(--rot-dark); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---- Typografie ---- */
h1, h2, h3 { line-height: 1.15; color: var(--braun); }

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.6em;
}

h3 { font-size: 1.2rem; font-weight: 700; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rot);
  background: var(--creme-2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-lead {
  max-width: 640px;
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: var(--braun-hell);
}

.hint {
  margin-top: 18px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--braun-hell);
  opacity: 0.8;
}

code {
  background: var(--creme-2);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--rot);
  color: var(--weiss);
  box-shadow: var(--schatten-s);
}
.btn-primary:hover { background: var(--rot-dark); color: var(--weiss); }

.btn-ghost {
  background: transparent;
  color: var(--braun);
  border-color: var(--gold);
}
.btn-ghost:hover { background: var(--gelb); color: var(--braun); border-color: var(--gelb); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--creme);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--schatten-s);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--braun); }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; }
.brand-name { font-weight: 800; font-size: 1.1rem; line-height: 1; text-transform: uppercase; letter-spacing: 1px; }
.brand-name small { font-size: 0.7rem; color: var(--rot); letter-spacing: 2px; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: var(--braun);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover { background: var(--creme-2); color: var(--rot); }
.main-nav a.nav-cta { background: var(--rot); color: var(--weiss); }
.main-nav a.nav-cta:hover { background: var(--rot-dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--braun);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  text-align: center;
  background:
    radial-gradient(circle at 50% -10%, rgba(244,169,31,0.18), transparent 55%),
    var(--creme);
  padding: 60px 0 70px;
  border-bottom: 3px solid var(--gold);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  width: clamp(150px, 30vw, 230px);
  height: auto;
  border-radius: 50%;
  box-shadow: var(--schatten);
  margin-bottom: 24px;
}
.hero-claim {
  max-width: 600px;
  font-size: 1.2rem;
  color: var(--braun-hell);
  margin: 18px 0 30px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* =========================================================
   Sektionen
   ========================================================= */
.section { padding: 70px 0; }
.section-alt { background: var(--creme-2); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 10px;
}
.two-col.reverse .img-placeholder { order: -1; }
.text-block p { margin-bottom: 1em; font-size: 1.05rem; }

/* Bild-Platzhalter */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg, var(--creme-2), var(--creme-2) 14px, #efe0bf 14px, #efe0bf 28px);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--braun-hell);
  font-weight: 600;
}
.section-alt .img-placeholder {
  background:
    repeating-linear-gradient(45deg, var(--creme), var(--creme) 14px, #f3e7c8 14px, #f3e7c8 28px);
}
.img-placeholder.tall { min-height: 340px; }
.img-placeholder.square { min-height: 0; aspect-ratio: 1 / 1; }

/* Inhaltsbild (z. B. in der Pizza-Sektion) */
.content-bild {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

/* =========================================================
   Lightbox (Bild per Klick groß anzeigen)
   ========================================================= */
.zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(40, 22, 8, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius);
  border: 4px solid var(--gold);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: var(--weiss);
  background: var(--rot);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--schatten-s);
  transition: background .2s ease, transform .15s ease;
}
.lightbox-close:hover { background: var(--rot-dark); transform: scale(1.08); }

/* Karten */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.card {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--schatten-s);
  border-top: 4px solid var(--gelb);
}
.card-icon { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; }

.feature-list { list-style: none; margin: 18px 0; }
.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.feature-list li::before {
  content: "🍕";
  position: absolute;
  left: 0;
}

/* =========================================================
   Termine
   ========================================================= */
.termine-list { display: flex; flex-direction: column; gap: 16px; }
.termin {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--schatten-s);
  border-left: 6px solid var(--rot);
}
.termin-date {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 14px;
  background: var(--rot);
  color: var(--weiss);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.termin-date .day { font-size: 1.7rem; font-weight: 800; }
.termin-date .month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.termin-info h3 { margin-bottom: 2px; }
.termin-info p { color: var(--braun-hell); }

/* =========================================================
   Galerie
   ========================================================= */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* Polaroid-Karte wie im Gruppenbild: Foto + Bildunterschrift */
.galerie-item {
  background: var(--weiss);
  padding: 12px 12px 6px;
  border-radius: var(--radius-s);
  box-shadow: var(--schatten-s);
  border: 1px solid rgba(74, 43, 22, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.galerie-item:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--schatten); }
.galerie-bild {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-s);
  border-bottom: 4px solid var(--gold);
  cursor: pointer;
}
.galerie-item figcaption {
  text-align: center;
  font-style: italic;
  color: var(--braun);
  padding: 10px 4px 6px;
  font-size: .95rem;
  line-height: 1.3;
}

/* =========================================================
   Kontakt
   ========================================================= */
.kontakt-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.kontakt-card {
  flex: 1 1 280px;
  max-width: 360px;
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--schatten-s);
  color: var(--braun);
  border-bottom: 4px solid var(--gelb);
  transition: transform .15s ease, box-shadow .2s ease;
}
.kontakt-card:hover { transform: translateY(-4px); box-shadow: var(--schatten); color: var(--braun); }
.kontakt-card h3 { margin-bottom: 6px; }
.kontakt-card p { color: var(--braun-hell); word-break: break-word; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--braun); color: var(--creme); margin-top: 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { width: 64px; height: 64px; border-radius: 50%; }
.footer-brand p { font-weight: 700; }
.footer-brand small { font-weight: 400; opacity: 0.8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--creme); font-weight: 600; }
.footer-nav a:hover { color: var(--gelb); }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 14px 0;
  font-size: 0.85rem;
}
.footer-bottom .container { text-align: center; opacity: 0.85; }

/* =========================================================
   Rechtsseiten (Impressum / Datenschutz)
   ========================================================= */
.legal { padding: 50px 0 70px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.legal p, .legal address { margin-bottom: 14px; font-style: normal; max-width: 760px; }
.legal .back-link { display: inline-block; margin-bottom: 30px; font-weight: 600; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--creme);
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--schatten);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav a { padding: 14px 20px; border-radius: 0; border-top: 1px solid var(--creme-2); }
  .main-nav a.nav-cta { text-align: center; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .two-col.reverse .img-placeholder { order: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .section { padding: 50px 0; }
  .brand-name { font-size: 0.95rem; }
  .termin { flex-direction: row; gap: 16px; padding: 14px 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Bewegungsreduzierung respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .kontakt-card { transition: none; }
}
