/* Emsblog.de - Haupt-Stylesheet */
:root {
  color-scheme: light;

  /* Farbschema Hell */
  --bg: #f6f4f0;
  --header-bg: #ffffff;
  --card-bg: #ffffff;
  --surface-subtle: #f9f8f5;
  --surface-hover: #f0ece3;
  --bg-top: #ffffff;
  --slide-bg: #ede9e1;
  --bg-accent-soft: rgba(200, 62, 36, 0.07);

  /* Typografie & Kontraste (WCAG AAA) */
  --text: #171513;
  --text-body: #3c3732;
  --text-muted: #6b645c;

  /* Akzentfarben */
  --primary: #c83e24;
  --primary-hover: #ad331a;
  --primary-border: #942913;
  --primary-light: rgba(200, 62, 36, 0.07);

  --call-green: #1b7a42;
  --call-green-hover: #145e32;
  --call-green-border: #0f4826;

  --badge-gold: #a86208;
  --badge-gold-bg: #fef8ee;
  --badge-gold-border: #f3dfb8;

  /* Rahmen & Radien */
  --border: #e2ded5;
  --border-dark: #cec8bd;
  --radius-box: 8px;
  --radius-btn: 6px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Schatten */
  --shadow-sm: 0 1px 3px rgba(23, 21, 19, 0.04), 0 3px 8px rgba(23, 21, 19, 0.03);
  --shadow-md: 0 4px 14px rgba(23, 21, 19, 0.06), 0 1px 3px rgba(23, 21, 19, 0.03);
  --shadow-lg: 0 8px 24px rgba(23, 21, 19, 0.08), 0 2px 6px rgba(23, 21, 19, 0.04);
  --shadow-btn: 0 1px 2px rgba(23, 21, 19, 0.08);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.18s ease-in-out;

  /* Hintergrund-Muster Steuerung */
  --glow-left: rgba(200, 62, 36, 0.035);
  --glow-right: rgba(27, 122, 66, 0.035);
  --pattern-opacity: 0.95;
  --pattern-filter: none;

  /* Darkmode Slider Toggle Styling */
  --slider-bg: #ece8df;
  --slider-border: #d4cdc1;
  --slider-thumb: #ffffff;
  --slider-thumb-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  --slider-icon-sun: #d97706;
  --slider-icon-moon: #9c9489;
  --toggle-track: #ced4da;
}

[data-theme="dark"] {
  color-scheme: dark;

  /* Farbschema Dunkel */
  --bg: #201f1d;
  --header-bg: #272623;
  --card-bg: #2b2926;
  --surface-subtle: #34322e;
  --surface-hover: #3e3b36;
  --bg-top: #ffffff;
  --slide-bg: #252421;
  --bg-accent-soft: rgba(234, 90, 58, 0.14);

  /* Typografie & Kontraste (WCAG AAA) */
  --text: #faf9f6;
  --text-body: #e2ded6;
  --text-muted: #b2aba0;

  /* Akzentfarben */
  --primary: #ea5a3a;
  --primary-hover: #f26e50;
  --primary-border: #c83e24;
  --primary-light: rgba(234, 90, 58, 0.14);

  --call-green: #2bb263;
  --call-green-hover: #36c673;
  --call-green-border: #1e8f4c;

  --badge-gold: #f3b64c;
  --badge-gold-bg: rgba(243, 182, 76, 0.14);
  --badge-gold-border: rgba(243, 182, 76, 0.35);

  /* Rahmen & Radien */
  --border: #403d36;
  --border-dark: #555148;

  /* Schatten Dark Mode */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.14);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.26), 0 1px 3px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.36), 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.25);

  /* Hintergrund-Muster Steuerung */
  --glow-left: rgba(234, 88, 58, 0.08);
  --glow-right: rgba(43, 178, 99, 0.07);
  --pattern-opacity: 0.45;
  --pattern-filter: invert(1) brightness(1.7);

  /* Darkmode Slider Toggle Styling */
  --slider-bg: #34322e;
  --slider-border: #555148;
  --slider-thumb: #ffffff;
  --slider-thumb-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  --slider-icon-sun: #8a8377;
  --slider-icon-moon: #93c5fd;
  --toggle-track: #5a564e;
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(at 15% 0%, var(--glow-left) 0px, transparent 50%),
    radial-gradient(at 85% 0%, var(--glow-right) 0px, transparent 50%),
    url("../img/food-pattern.svg");
  background-size: 100% 100%, 100% 100%, 240px 240px;
  background-repeat: no-repeat, no-repeat, repeat;
  pointer-events: none;
  z-index: -1;
  opacity: var(--pattern-opacity);
  filter: var(--pattern-filter);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  max-height: 44px;
  width: auto;
  transition: filter 0.2s ease;
}

[data-theme="dark"] .site-logo {
  filter: brightness(0) invert(1);
}

.site-title-text {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* Header Actions & Darkmode Slider */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Admin-Schnellzugriff für eingeloggte Admins (Screenshot Style) */
.header-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}

.header-admin-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(235, 94, 40, 0.25);
}

.header-admin-link:active {
  transform: translateY(0);
}

[data-theme="dark"] .header-admin-link {
  background: #34322e;
  color: #eb5e28;
  border: 1px solid #403d36;
}

[data-theme="dark"] .header-admin-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(235, 94, 40, 0.35);
}

/* Wartungsmodus Hinweisleiste für eingeloggte Admins im Frontend */
.admin-maintenance-bar {
  background: #f59e0b;
  color: #1c1917;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 101;
}

.admin-maintenance-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-maintenance-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.15);
  color: #1c1917;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.admin-maintenance-link:hover {
  background: rgba(0, 0, 0, 0.25);
  color: #000000;
}

.theme-slider-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 58px;
  height: 30px;
  padding: 0 6px;
  background: var(--slider-bg);
  border: 1px solid var(--slider-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-slider-btn:hover {
  border-color: var(--primary);
}

.theme-slider-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  z-index: 1;
  pointer-events: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.theme-icon.icon-sun {
  color: var(--slider-icon-sun);
}

.theme-icon.icon-moon {
  color: var(--slider-icon-moon);
}

.theme-icon .icon {
  width: 14px;
  height: 14px;
}

.theme-slider-thumb {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: var(--slider-thumb);
  border-radius: 50%;
  box-shadow: var(--slider-thumb-shadow);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

[data-theme="dark"] .theme-slider-thumb {
  transform: translateX(26px);
}

/* Hero mit freundlichem Pizzamann Mascot */
.hero-section {
  padding: 32px 0 16px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-text {
  text-align: left;
  flex: 1;
}

.hero-title {
  font-size: clamp(1.75rem, 4.2vw, 2.45rem);
  font-weight: 850;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.2;
}

:root:not([data-theme="dark"]) .hero-title {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 10px 0 0;
  line-height: 1.55;
}

.hero-mascot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 8px;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-mascot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.mascot-pizza {
  width: 145px;
  height: 145px;
  display: block;
  overflow: visible;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* Hover-Effekt: Neugieriges Vorbeugen und schnelleres Winken */
.hero-mascot:hover .mascot-pizza {
  transform: scale(1.09) rotate(3deg);
}

.hero-mascot:hover .mascot-wave-arm {
  animation: mascotExcitedWave 0.55s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.hero-mascot:active .mascot-pizza {
  transform: scale(0.94);
}

/* Klick-/Tap-Reaktion: Fröhlicher Cartoon-Sprung */
.hero-mascot.is-jump .mascot-pizza {
  animation: mascotJoyJump 0.85s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
}

.hero-mascot.is-jump .mascot-wave-arm {
  animation: mascotCheerWave 0.85s ease-in-out forwards;
}

.hero-mascot.is-jump .mascot-shadow {
  animation: mascotJumpShadow 0.85s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
}

/* Sanfte, flüssige Idle-Animationen */
@keyframes mascotWave {
  0%, 100% {
    transform: rotate(0deg);
  }
  28% {
    transform: rotate(18deg);
  }
  58% {
    transform: rotate(-5deg);
  }
  85% {
    transform: rotate(13deg);
  }
}

@keyframes mascotExcitedWave {
  0%, 100% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(26deg);
  }
}

@keyframes mascotCheerWave {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(32deg) scale(1.1); }
  50% { transform: rotate(-8deg) scale(1.1); }
  75% { transform: rotate(28deg); }
  100% { transform: rotate(0deg); }
}

@keyframes mascotBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  35% {
    transform: translateY(-8px) rotate(1deg);
  }
  70% {
    transform: translateY(1px) rotate(-0.5deg);
  }
}

@keyframes mascotJoyJump {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  15% {
    transform: translateY(6px) scale(1.14, 0.86);
  }
  45% {
    transform: translateY(-28px) scale(0.9, 1.12) rotate(-8deg);
  }
  65% {
    transform: translateY(-30px) scale(0.94, 1.06) rotate(6deg);
  }
  82% {
    transform: translateY(-4px) scale(1.05, 0.95) rotate(-1deg);
  }
  92% {
    transform: translateY(2px) scale(0.98, 1.02);
  }
  100% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
}

@keyframes mascotShadow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.12;
  }
  35% {
    transform: scale(0.86);
    opacity: 0.06;
  }
  70% {
    transform: scale(1.02);
    opacity: 0.13;
  }
}

@keyframes mascotJumpShadow {
  0% { transform: scale(1); opacity: 0.12; }
  15% { transform: scale(1.18); opacity: 0.16; }
  55% { transform: scale(0.55); opacity: 0.03; }
  92% { transform: scale(1.1); opacity: 0.15; }
  100% { transform: scale(1); opacity: 0.12; }
}

.mascot-body-group {
  animation: mascotBounce 3.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  transform-origin: 160px 280px;
  will-change: transform;
}

.mascot-wave-arm {
  transform-origin: 232px 145px;
  animation: mascotWave 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform;
}

.mascot-shadow {
  transform-origin: 160px 305px;
  animation: mascotShadow 3.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform, opacity;
}

/* Gliedmaßen (Arme & Beine) - Anpassung für Dark Mode */
.mascot-arm,
.mascot-leg,
.pizza-arm,
.pizza-leg,
.mascot-left-arm > path:first-child,
.mascot-wave-arm > path:first-child,
.pizza-left-arm > path:first-child,
.pizza-right-arm > path:first-child {
  transition: stroke 0.25s ease;
}

[data-theme="dark"] .mascot-arm,
[data-theme="dark"] .mascot-leg,
[data-theme="dark"] .pizza-arm,
[data-theme="dark"] .pizza-leg,
[data-theme="dark"] .mascot-left-arm > path:first-child,
[data-theme="dark"] .mascot-wave-arm > path:first-child,
[data-theme="dark"] .pizza-left-arm > path:first-child,
[data-theme="dark"] .pizza-right-arm > path:first-child {
  stroke: #ffffff !important;
}

[data-theme="dark"] .mascot-shadow,
[data-theme="dark"] .pizza-shadow {
  fill: #000000;
  opacity: 0.35;
}

/* Interaktive Sprechblase & Partikel */
.mascot-speech-bubble {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.8);
  background: var(--card-bg);
  color: var(--text);
  border: 1.5px solid var(--primary);
  padding: 5px 13px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.mascot-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--card-bg) transparent transparent;
}

.mascot-speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 7px 0;
  border-style: solid;
  border-color: var(--primary) transparent transparent;
}

.hero-mascot:hover .mascot-speech-bubble,
.mascot-speech-bubble.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Fliegende Partikel beim Klick */
.mascot-particle {
  position: absolute;
  font-size: 1.25rem;
  pointer-events: none;
  z-index: 15;
  animation: mascotParticleFly 0.9s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes mascotParticleFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) - 15px)) scale(0.7) rotate(35deg);
  }
}

@media (max-width: 640px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .hero-text {
    text-align: center;
  }
  .hero-subtitle {
    margin: 10px auto 0;
  }
  .mascot-pizza {
    width: 115px;
    height: 115px;
  }
  .mascot-speech-bubble {
    top: -22px;
    font-size: 0.8rem;
    padding: 4px 11px;
  }
}

/* AdSense Banner */
.adsense-wrap {
  margin: 16px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  min-height: 50px;
}

/* Grid of Restaurants */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  margin: 24px 0 40px;
}

.restaurant-card {
  background: var(--card-bg);
  border-radius: var(--radius-box);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.restaurant-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(194, 65, 45, 0.45);
}

.card-top {
  height: 200px;
  background: var(--bg-top);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card-logo {
  max-height: 184px;
  max-width: 96%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.restaurant-card:hover .card-logo {
  transform: scale(1.05);
}

.card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-row {
  margin-bottom: 2px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.card-title a:hover {
  color: var(--primary);
}

.card-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Dezente, klickbare Telefonzeile auf Startseiten-Karten */
.card-phone-wrap {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.card-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.card-phone-link svg {
  color: var(--call-green);
}

.card-phone-link:hover {
  background: var(--call-green);
  color: #ffffff;
  border-color: var(--call-green);
}

.card-phone-link:hover svg {
  color: #ffffff;
}

/* Detail / Menu View */
.detail-view {
  padding-bottom: 0;
  margin-top: 24px;
}

.detail-header-card {
  background: var(--card-bg);
  border-radius: var(--radius-box);
  border: 1px solid var(--border);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  transition: var(--transition);
}

.detail-nav-back:hover {
  color: var(--primary);
}

.detail-headline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.detail-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 850;
  color: var(--text);
  letter-spacing: -0.02em;
}

.detail-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.detail-call-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Eleganter, dezenter Anruf-Button */
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-subtle);
  color: var(--text) !important;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid var(--border-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.18s ease-in-out;
  cursor: pointer;
}

.btn-call:hover {
  background: var(--call-green);
  color: #ffffff !important;
  border-color: var(--call-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 122, 66, 0.25);
}

.btn-call .icon,
.btn-call .icon-phone {
  width: 17px;
  height: 17px;
  fill: var(--call-green);
  transition: fill 0.18s ease-in-out;
  flex-shrink: 0;
}

.btn-call:hover .icon,
.btn-call:hover .icon-phone {
  fill: #ffffff;
}

.detail-headline-row .btn-call {
  padding: 9px 18px;
  font-size: 0.95rem;
}

.detail-stand-badge {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  background: var(--surface-subtle);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .detail-call-container {
    align-items: flex-start;
    width: 100%;
  }
}

.detail-info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.info-box {
  background: var(--surface-subtle);
  border-radius: var(--radius-btn);
  padding: 16px;
  border: 1px solid var(--border);
}

.info-box-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.info-box-title svg {
  color: var(--primary);
}

.info-box-content {
  font-size: 0.88rem;
  white-space: pre-line;
  color: var(--text-body);
  line-height: 1.35;
}

.card-badge {
  font-size: 0.78rem;
  padding: 4px 10px;
  background: var(--badge-gold-bg);
  color: var(--badge-gold);
  border: 1px solid var(--badge-gold-border);
  border-radius: var(--radius-btn);
  font-weight: 700;
}

.menu-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 16px;
}

.menu-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.menu-hint {
  font-size: 0.85rem;
  color: #c4b8ab;
}

/* ================= HORIZONTALES SPEISEKARTEN-KARUSSELL ================= */
.carousel-wrapper {
  position: relative;
  max-width: 1040px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  border-radius: var(--radius-box);
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: center;
  background: var(--card-bg);
  border-radius: var(--radius-box);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: grab;
  transition: var(--transition);
  user-select: none;
  -webkit-user-select: none;
}

.carousel-track.is-dragging .carousel-slide {
  cursor: grabbing !important;
}

.carousel-slide:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-dark);
}

.slide-info-bar {
  padding: 10px 16px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.slide-page-num {
  color: var(--text);
}

.slide-zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 0.8rem;
}

.slide-img-box {
  background: var(--slide-bg);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(78vh, 680px);
  overflow: hidden;
}

@media (min-width: 769px) {
  .slide-img-box {
    height: min(92vh, 960px);
    padding: 16px;
  }
}

.carousel-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.22));
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Karussell Pfeile */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition);
  color: var(--text);
}

.carousel-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-50%);
}

.carousel-nav-btn.prev {
  left: -22px;
}

.carousel-nav-btn.next {
  right: -22px;
}

@media (max-width: 860px) {
  .carousel-nav-btn.prev { left: 8px; }
  .carousel-nav-btn.next { right: 8px; }
}

/* Karussell Pagination Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 12px auto 22px;
  padding: 6px 0;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--border-dark);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, opacity 0.2s ease;
  position: relative;
}

/* Erhöhte Klickfläche für mobile Toucheingaben */
.dot-btn::before {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -6px;
  right: -6px;
}

.dot-btn:hover {
  background: var(--primary);
  opacity: 0.85;
}

.dot-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.dot-btn.active {
  width: 26px;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(194, 65, 45, 0.35);
}



/* Fullscreen Zoom Lightbox */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 12, 0.95);
  z-index: 1000;
  display: none;
  flex-direction: column;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(20, 20, 24, 0.85);
  color: #ffffff;
  z-index: 10;
}

.lightbox-page-counter {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.lightbox-btn.close {
  background: var(--primary);
}

.lightbox-btn.close:hover {
  background: var(--primary-hover);
}

.lightbox-content-area {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: grab;
}

.lightbox-content-area:active {
  cursor: grabbing;
}

.lightbox-image {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.08s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
}

.lightbox-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  border-radius: var(--radius-btn);
  transition: var(--transition);
}

.lightbox-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav-prev {
  left: 16px;
}

.lightbox-nav-next {
  right: 16px;
}

/* Footer */
.site-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 48px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-links a {
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 640px) {
  .site-title-text {
    font-size: 1.15rem;
  }
  .restaurant-grid {
    grid-template-columns: 1fr;
  }
  .card-actions {
    grid-template-columns: 1fr 1fr;
  }
  .lightbox-nav-arrow {
    width: 36px;
    height: 50px;
  }
  .slide-img-box {
    height: min(60vh, 520px);
    padding: 10px;
  }
}

/* ========================================================
   LEGAL / DATENSCHUTZ PAGE
   ======================================================== */
.legal-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-box);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.legal-title {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 850;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.legal-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.legal-callout {
  background: var(--bg-accent-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 30px;
}

.legal-section {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--bg-accent-soft);
  padding-bottom: 6px;
}

.legal-section h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 8px;
}

.legal-section p, .legal-section ul {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 24px;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.btn-cookie-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--primary-border);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-action:hover {
  background: var(--primary-hover);
}

/* ========================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================== */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

.cookie-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 40px);
  width: calc(100% - 32px);
  max-width: 680px;
  background: var(--card-bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease-in-out;
}

.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cookie-banner-inner {
  padding: 24px;
}

.cookie-banner-badge {
  display: inline-block;
  background: var(--bg-accent-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.cookie-banner-title {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cookie-banner-body p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 16px;
}

.cookie-banner-body a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Ausklappbare Cookie-Optionen */
.cookie-details-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.cookie-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option-row:last-child {
  border-bottom: none;
}

.cookie-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-option-info strong {
  font-size: 0.92rem;
  color: var(--text);
}

.cookie-option-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cookie-badge-fixed {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--toggle-track);
  transition: 0.2s;
  border-radius: 24px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(20px);
}

/* Banner Buttons */
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-cookie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 750;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-cookie-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-border);
  box-shadow: var(--shadow-btn);
}

.btn-cookie-primary:hover {
  background: var(--primary-hover);
}

.btn-cookie-secondary {
  background: var(--surface-subtle);
  color: var(--text);
  border-color: var(--border-dark);
}

.btn-cookie-secondary:hover {
  background: var(--surface-hover);
}

.btn-cookie-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  text-decoration: underline;
  padding: 10px 12px;
}

.btn-cookie-outline:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px 18px;
  }
  .cookie-banner {
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
  }
  .cookie-banner.visible {
    transform: translateY(0);
  }
  .cookie-banner-inner {
    padding: 20px 16px;
  }
  .cookie-banner-actions {
    flex-direction: column;
  }
  .btn-cookie {
    width: 100%;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

/* ========================================================
   404 ERROR PAGE & CARTOON PIZZA
   ======================================================== */
.error-page-wrap {
  padding: 30px 16px 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 220px);
}

.error-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 680px;
  width: 100%;
  padding: 44px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pizza-character-wrap {
  margin: 0 auto 16px;
  display: inline-block;
}

.pizza-character {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

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

@keyframes pizzaLeftHand {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-6deg) translateY(-2px);
  }
}

@keyframes pizzaRightHand {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(6deg) translateY(-2px);
  }
}

@keyframes shadowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.12;
  }
  50% {
    transform: scale(0.92);
    opacity: 0.07;
  }
}

.pizza-body-group {
  transform-origin: 180px 320px;
  animation: pizzaShrug 3.5s ease-in-out infinite;
}

.pizza-left-arm {
  transform-origin: 125px 175px;
  animation: pizzaLeftHand 3.5s ease-in-out infinite;
}

.pizza-right-arm {
  transform-origin: 235px 175px;
  animation: pizzaRightHand 3.5s ease-in-out infinite;
}

.pizza-shadow {
  transform-origin: 180px 340px;
  animation: shadowPulse 3.5s ease-in-out infinite;
}

.error-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.error-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 850;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
  line-height: 1.25;
}

.error-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-outline {
  background: var(--surface-subtle);
  color: var(--text);
  border: 1px solid var(--border-dark);
}

.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
  color: var(--text);
}

.error-suggestions-box {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 10px;
}

.error-suggestions-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.error-suggestions-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.suggestion-pill {
  display: inline-block;
  background: var(--surface-subtle);
  color: var(--text-body);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.suggestion-pill:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
