/* ==========================================================================
   Kartoffel-Lord — Design System
   Moderner Kirmes-Charme: Creme, Rot, Gold
   ========================================================================== */

:root {
  --red: #b01e24;
  --red-dark: #8e181d;
  --red-deep: #6f1216;
  --gold: #c9973b;
  --gold-text: #96691c;
  --cream: #f9f1e3;
  --cream-soft: #fdf8ee;
  --ink: #2a1b12;
  --ink-soft: #5c4a3d;
  --dark: #171010;
  --dark-card: #221818;
  --dark-border: #3a2a26;
  --cream-on-dark: #f3e7d3;
  --muted-on-dark: #bfa98e;

  --font-display: "Mundial", "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Mundial", "Manrope", "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(42, 27, 18, 0.08);
  --shadow-md: 0 10px 30px rgba(42, 27, 18, 0.14);
  --shadow-lg: 0 22px 50px rgba(42, 27, 18, 0.2);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--red);
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-6);
}

/* Kicker + headings ------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-2);
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  max-width: 22ch;
}

.section-intro {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(176, 30, 36, 0.32);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(176, 30, 36, 0.4);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(249, 241, 227, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.site-header.is-scrolled {
  border-color: rgba(42, 27, 18, 0.08);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.8rem;
  transition: padding 0.3s var(--ease);
}

.site-header.is-scrolled .nav {
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 46px;
  width: auto;
  transition: height 0.3s var(--ease);
}

.site-header.is-scrolled .brand img {
  height: 38px;
}

.brand-wordmark {
  height: 28px;
  width: auto;
  transition: height 0.3s var(--ease);
}

.site-header.is-scrolled .brand-wordmark {
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).is-active::after {
  transform: scaleX(1);
}

.nav-links .btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(7rem, 14vh, 9.5rem);
  padding-bottom: 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid rgba(42, 27, 18, 0.1);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
}

.hero-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 151, 59, 0.2);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  margin-bottom: var(--space-3);
}

.hero h1 .accent {
  color: var(--red);
  font-style: italic;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-figure {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-figure::before {
  content: "";
  position: absolute;
  width: min(420px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 151, 59, 0.28), rgba(201, 151, 59, 0) 68%);
}

.hero-figure img {
  width: min(320px, 70%);
  position: relative;
  filter: drop-shadow(0 24px 30px rgba(42, 27, 18, 0.25));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

/* Lichterkette (festoon divider) ------------------------------------------ */
.festoon {
  display: block;
  width: 100%;
  height: 56px;
}

.festoon .bulb {
  fill: var(--gold);
  opacity: 0.9;
}

.festoon .bulb:nth-child(odd) {
  animation: twinkle 2.6s ease-in-out infinite;
}

.festoon .bulb:nth-child(even) {
  animation: twinkle 2.6s ease-in-out 1.3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.35; }
}

/* Über uns ---------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.about-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: zoom-in;
}

.about-photo:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.about-photo:hover {
  transform: rotate(0deg) scale(1.015);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.about-photo figcaption {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  background: rgba(23, 16, 16, 0.78);
  color: var(--cream-on-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.stat {
  background: #fff;
  border: 1px solid rgba(42, 27, 18, 0.08);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--red);
}

.stat span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Angebot (dark section) --------------------------------------------------- */
.menu-section {
  background: var(--dark);
  color: var(--cream-on-dark);
}

.menu-section .kicker {
  color: var(--gold);
}

.menu-section .section-intro {
  color: var(--muted-on-dark);
}

.menu-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.menu-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--dark-border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.menu-note svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.menu-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s;
}

.menu-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.menu-card .thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: #000;
  display: grid;
  place-items: center;
}

.menu-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.menu-card:hover .thumb img {
  transform: scale(1.06);
}

.menu-card .thumb svg {
  width: 44%;
  height: auto;
  color: var(--gold);
  opacity: 0.85;
  transition: transform 0.5s var(--ease);
}

.menu-card:hover .thumb svg {
  transform: scale(1.1) rotate(-3deg);
}

.menu-card .body {
  padding: 1rem 1.1rem 1.2rem;
}

.menu-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
  color: var(--cream-on-dark);
}

.menu-card .tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.menu-allergen {
  margin: var(--space-4) 0 0;
  text-align: center;
}

.menu-allergen a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--dark-border);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}

.menu-allergen a:hover {
  border-color: var(--gold);
  background: rgba(201, 151, 59, 0.1);
  transform: translateY(-2px);
}

.menu-allergen svg {
  width: 1.0625rem;
  height: 1.0625rem;
  flex: none;
}

/* Tourenplan --------------------------------------------------------------- */
.tour-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  border-top: 1px solid rgba(42, 27, 18, 0.12);
}

.tour-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: 1.15rem 0.8rem;
  border-bottom: 1px solid rgba(42, 27, 18, 0.12);
  transition: background-color 0.25s, transform 0.25s var(--ease);
}

.tour-item:hover {
  background: var(--cream-soft);
  transform: translateX(6px);
}

.tour-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--red);
  white-space: nowrap;
}

.tour-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.tour-place {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.tour-status {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tour-item.is-past {
  opacity: 0.45;
}

.tour-item.is-past .tour-status {
  background: rgba(42, 27, 18, 0.08);
  color: var(--ink-soft);
}

.tour-item.is-next .tour-status {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(176, 30, 36, 0.35);
}

.tour-item.is-live .tour-status {
  background: var(--gold);
  color: var(--ink);
}

.tour-item.is-upcoming .tour-status {
  background: rgba(201, 151, 59, 0.18);
  color: var(--gold-text);
}

/* Kontakt ------------------------------------------------------------------ */
.contact-section {
  background: var(--red);
  color: #fff;
}

.contact-section .kicker {
  color: var(--cream);
}

.contact-section .kicker::before {
  background: var(--gold);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}

.contact-section .section-intro {
  color: rgba(255, 255, 255, 0.85);
}

.contact-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
}

.contact-card h3 {
  font-size: 1.4rem;
}

.contact-brand {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: var(--space-3);
}

.contact-brand span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-brand img {
  width: min(260px, 100%);
  height: auto;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  flex: none;
  margin-top: 0.15rem;
}

.contact-list a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(176, 30, 36, 0.25);
  transition: border-color 0.2s, color 0.2s;
}

.contact-list a:hover {
  color: var(--red);
  border-color: var(--red);
}

.socials {
  display: flex;
  gap: 0.8rem;
  margin-top: var(--space-3);
}

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background-color 0.25s, transform 0.25s var(--ease);
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

.socials svg {
  width: 21px;
  height: 21px;
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--muted-on-dark);
  padding-block: var(--space-4);
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  height: 52px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--cream-on-dark);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Unterseiten (Impressum / Datenschutz) ------------------------------------ */
.legal-main {
  padding-top: clamp(7rem, 14vh, 9rem);
  padding-bottom: var(--space-6);
}

.legal-main h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.legal-main h2 {
  font-size: 1.5rem;
  margin-top: var(--space-4);
}

.legal-main .container {
  max-width: 760px;
}

/* Allergene & Zusatzstoffe -------------------------------------------------- */
.allergen-main .container {
  max-width: none;
  width: min(1560px, 96%);
}

.allergen-main .section-intro {
  max-width: 70ch;
}

.allergen-figure {
  display: block;
  margin-top: var(--space-3);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.allergen-figure:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.allergen-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.allergen-note {
  margin-top: var(--space-3);
  color: var(--ink-soft);
}

/* Lightbox ------------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background: rgba(23, 16, 16, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

/* Scroll-Reveal ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-figure img,
  .festoon .bulb {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: -1;
  }

  .hero-figure img {
    width: min(220px, 55%);
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Wagen-Foto auf dem Handy randlos in voller Breite */
  .about-photo {
    transform: none;
    border-radius: 0;
    margin-inline: calc(50% - 50vw);
  }

  .about-photo:hover {
    transform: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream-soft);
    border-bottom: 1px solid rgba(42, 27, 18, 0.1);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 4%;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(42, 27, 18, 0.07);
  }

  .nav-links li:last-child {
    border-bottom: 0;
    padding-block: 0.8rem;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
  }

  .tour-item {
    grid-template-columns: 1fr auto;
  }

  .tour-date {
    grid-column: 1 / -1;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .menu-card .body {
    padding: 0.8rem 0.85rem 0.95rem;
  }

  .menu-card h3 {
    font-size: 0.95rem;
  }
}
