/* ==========================================================================
   1. LOCAL FONTS (DSGVO-konform vom eigenen Server geladen)
   ========================================================================== */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v16-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v16-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v16-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/jost-v15-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jost-v15-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jost-v15-latin-500.woff2') format('woff2');
}

/* ==========================================================================
   2. CORE RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #11201A; /* Lüfti Dunkelgrün */
  color: #ECE5D3;           /* Lüfti Creme */
  font-family: 'Jost', sans-serif;
  min-height: 100vh;
  display: block;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   3. MOBILE-FIRST LAYOUT (Standard für Smartphones)
   ========================================================================== */
.site-container {
  display: block;
  width: 100%;
  min-height: 100vh;
}

/* Visueller Markenbereich (Hero / Logo oben auf Mobile) */
.brand-side {
  background-color: #11201A;
  padding: 40px 24px;
  text-align: center;
  display: block;
}

.location-wrapper {
  width: 100%;
  max-width: 320px; /* Begrenzung für Smartphones */
  margin: 24px auto 0 auto;
}

.location-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  
  /* Weißer Rahmen mit Passepartout-Effekt */
  background-color: #ECE5D3; 
  padding: 6px;              
  border: 1px solid #ECE5D3; 
  
  border-radius: 16px;       /* Abgerundete Ecken im Stil der Website */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.logo-wrapper {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px auto;
}

.logo-wrapper svg,
.logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Sorgt dafür, dass das PNG nicht verzerrt wird */
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.brand-side h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.brand-side p {
  color: #9C9784;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Inhaltsbereich (Rechte Seite / Unten auf Mobile) */
.content-side {
  background-color: #163022; /* Leicht helleres Grün für Inhalt */
  padding: 40px 24px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  min-height: calc(100vh - 250px);
}

.content-block {
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: 48px;
}

/* Überschriften & Standard-Absätze */
.content-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 16px;
  border-left: 3px solid #7bbe31;
  padding-left: 12px;
}

.content-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  color: #7bbe31;
  margin: 24px 0 12px 0;
}

.content-block p {
  color: #9C9784;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* VARIANTE C: Automatische Formatierung für Kategorie-Einleitungstexte */
.content-section h3 + p {
  font-style: italic;
  margin-top: -4px;
  margin-bottom: 24px;
}

/* ==========================================================================
   4. SEKTIONS-ELEMENTE (News, Speisekarte, Slider)
   ========================================================================== */

/* News & Monatsangebot Boxen */
.promo-box {
  background-color: #11201A;
  border: 1px dashed #7bbe31;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.promo-box h3 {
  margin-top: 0;
  color: #ECE5D3;
  font-style: italic;
}

.promo-price {
  display: block;
  font-size: 20px;
  color: #7bbe31;
  font-weight: 600;
  margin-top: 8px;
}

/* Speise- und Getränkekarten Tabellen */
.menu-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.menu-table tr {
  border-bottom: 1px solid rgba(236, 229, 211, 0.08);
}

.menu-table tr:last-child {
  border-bottom: none;
}

.menu-table td {
  padding: 12px 0;
  vertical-align: top;
}

.menu-item-name {
  font-weight: 500;
  color: #ECE5D3;
  font-size: 15px;
}

.menu-item-desc {
  display: block;
  font-size: 13px;
  color: #9C9784;
  margin-top: 4px;
  font-weight: 300;
}

.menu-item-price {
  text-align: right;
  font-weight: 500;
  color: #7bbe31;
  font-size: 15px;
  white-space: nowrap;
  padding-left: 15px;
}

/* Styling für Allergen-Buchstaben beim Produktname */
.allergen-code {
  font-size: 11px;
  color: #9C9784;
  font-weight: 300;
  margin-left: 4px;
}

/* Kompakte Legende unter den Speisen */
.allergen-legend {
  margin-top: 20px;
  margin-bottom: 48px;
  padding: 12px 16px;
  background-color: rgba(17, 32, 26, 0.4);
  border-radius: 8px;
  font-size: 12px;
  color: #9C9784;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.legend-title {
  color: #ECE5D3;
  font-weight: 500;
}

.legend-item strong {
  color: #7bbe31;
}

.legend-note {
  width: 100%;
  font-size: 11px;
  font-style: italic;
  margin-top: 4px;
  opacity: 0.8;
}

/* Akkordeon / Dropdown-Menüstrukturen */
.menu-dropdown {
  background-color: #11201A;
  border: 1px solid rgba(236, 229, 211, 0.1);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dropdown-trigger {
  padding: 16px 20px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #ECE5D3;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.dropdown-trigger::-webkit-details-marker {
  display: none;
}

.dropdown-trigger::after {
  content: "→";
  font-family: 'Cormorant Garamond', serif;
  color: #7bbe31;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.menu-dropdown[open] {
  border-color: #7bbe31;
}

.menu-dropdown[open] .dropdown-trigger::after {
  transform: rotate(90deg);
  color: #ECE5D3;
}

.dropdown-content {
  padding: 0 20px 12px 20px;
  animation: fadeDropdown 0.4s ease;
}

@keyframes fadeDropdown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Container für die Ausrichtung von Literangabe und Preis */
.price-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Styling für die Literangaben (z.B. 1/8l oder 0,5l) */
.volume-label {
  font-size: 0.9em;
  opacity: 0.8;
  flex: 0 0 40px; /* Erzwingt exakt 40px, kein Schrumpfen */
  text-align: right;
}

/* Styling für den Preis-Betrag selbst */
.price-row span:not(.volume-label) {
  flex: 0 0 65px; /* Erzwingt exakt 65px, kein Schrumpfen */
  text-align: right;
}

/* Styling für Zusätze (z.B. Aufpreis Zitrone) */
.menu-item-extra {
  display: block;
  font-size: 11px; /* Konkrete Pixelangabe für verlässliche Größe */
  text-align: right;
  margin-top: 4px;
  opacity: 0.75;
}

/* Styling für die Kategorie-Überschriften (z.B. WEISSWEIN) */
.category-header {
  padding-top: 25px;
}

.category-header h3 {
  margin-bottom: 5px;
  border-bottom: 1px solid #444;
}

/* Endloser CSS-Logo-Ticker für Lieferanten */
.logo-ticker-container {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  background-color: #11201A;
  border-radius: 12px;
  position: relative;
}

.logo-ticker-container::before,
.logo-ticker-container::after {
  content: "";
  height: 100%;
  width: 50px;
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.logo-ticker-container::before {
  top: 0; left: 0;
  background: linear-gradient(to right, #163022, transparent);
}
.logo-ticker-container::after {
  top: 0; right: 0;
  background: linear-gradient(to left, #163022, transparent);
}

.logo-ticker-track {
  display: flex;
  width: calc(200px * 10);
  animation: scrollTicker 20s linear infinite;
}

.logo-ticker-track:hover {
  animation-play-state: paused;
}

.logo-slide {
  width: 200px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.logo-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.logo-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(60%);
  transition: filter 0.3s ease;
}

.logo-slide:hover img {
  filter: grayscale(0%) opacity(100%);
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 5)); }
}

/* Links & Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 12px;
  border: 1px solid rgba(236, 229, 211, 0.25);
  color: #ECE5D3;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin-top: 16px;
  background: transparent;
}

.btn:hover {
  background-color: #7bbe31;
  border-color: #7bbe31;
  color: #11201A; /* Dunkle Schrift auf hellem Grün für besseren Kontrast */
  transform: translateY(-2px);
}

/* Footer Navigation */
.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(236, 229, 211, 0.1);
  text-align: center;
}

.footer-nav a {
  color: #9C9784;
  text-decoration: none;
  font-size: 13px;
  margin: 0 12px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #7bbe31;
}

/* Styling für Listen in Sektionen (z.B. Datenschutz-Rechte) */
.content-block ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.content-block li {
  color: #9C9784;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ==========================================================================
   4.5 ERWEITERTER FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(236, 229, 211, 0.1);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  color: #7bbe31;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
  color: #9C9784;
}

.maps-link {
  display: inline-block;
  color: #ECE5D3;
  text-decoration: none;
  border-bottom: 1px dashed #7bbe31;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-top: 4px;
}

.maps-link:hover {
  color: #7bbe31;
  border-bottom-style: solid;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(236, 229, 211, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.copyright {
  font-size: 12px;
  color: #666152;
}

/* Desktop-Anpassung für den Footer ab 768px */
@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-col {
    flex: 1;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   5. COOKIE CONSENT BANNER (Sauberes Standard-Setup)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #11201A;
  border-top: 2px solid #7bbe31;
  padding: 20px 24px;
  z-index: 9999;
  display: none; /* Steuerung erfolgt rein über JavaScript block/none */
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.cookie-text {
  color: #9C9784;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.cookie-text a {
  color: #ECE5D3;
  text-decoration: underline;
}

.cookie-text a:hover {
  color: #7bbe31;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background-color: #7bbe31;
  border: 1px solid #7bbe31;
  color: #11201A; /* Dunkle Schrift für gute Lesbarkeit auf dem frischen Grün */
}

.cookie-btn-accept:hover {
  background-color: #6a9b2b; /* Leicht abgedunkeltes Grün für Hover */
  border-color: #6a9b2b;
  transform: translateY(-1px);
}

.cookie-btn-deny {
  background: transparent;
  border: 1px solid rgba(236, 229, 211, 0.2);
  color: #9C9784;
}

.cookie-btn-deny:hover {
  border-color: rgba(236, 229, 211, 0.5);
  color: #ECE5D3;
}

@media (min-width: 768px) {
  .cookie-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
  }
  .cookie-text {
    text-align: left;
  }
}

/* ==========================================================================
   6. DESKTOP-OPTIMIERUNG (Bildschirme ab 992px)
   ========================================================================== */
@media (min-width: 992px) {
  .site-container {
    display: table;
    table-layout: fixed;
  }

  .brand-side, .content-side {
    display: table-cell;
    vertical-align: middle;
    height: 100vh;
    width: 50%;
  }

  .brand-side {
    position: fixed;
    top: 0;
    left: 0;
    padding: 60px;
  }

  .content-side {
    float: right;
    padding: 80px 60px;
    border-radius: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
  }

  .logo-wrapper {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
  }

  .brand-side h1 {
    font-size: 48px;
  }

  .content-block h2 {
    font-size: 34px;
  }
}