/* =========================================================
   Atipchai Thai Food — Stylesheet
   Inhalt:
   1. Grundlagen & Variablen
   2. Reset & Basistypografie
   3. Layout-Hilfsklassen
   4. Header & Navigation
   5. Hero
   6. Über uns
   7. Bestseller-Karussell
   8. Öffnungszeiten & Anfahrt
   9. Footer (inkl. Cookie-Banner & Rechtsseiten)
   10. Scroll-Reveal-Animationen
   11. Responsive Anpassungen
   ========================================================= */

/* ---------- 1. Grundlagen & Variablen ---------- */
:root {
  /* Thailand-Farbschema: warmes Sandgold, sattes Naturgrün, Anthrazit */
  --color-gold: #e8cbab;
  --color-gold-deep: #cfab7c;
  --color-green: #2f4f3c;
  --color-green-dark: #1f342a;
  --color-green-light: #4a6b55;
  --color-dark: #1c1a17;
  --color-cream: #faf5ee;
  --color-cream-alt: #f3e9d9;

  --color-text: #23201d;
  --color-text-light: #5c554d;
  --color-text-invert: #f6ecdd;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Prompt", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 1180px;
  --radius: 14px;
  --transition: 0.35s ease;
  --shadow-soft: 0 12px 30px rgba(28, 20, 10, 0.14);
}

/* ---------- 2. Reset & Basistypografie ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green-dark);
  line-height: 1.2;
}

/* Für Sprungmarken: Inhalt nicht hinter dem fixen Header verstecken */
section[id] {
  scroll-margin-top: 84px;
}

/* Dezentes Blatt-Icon als Thai-Naturakzent in Eyebrows/Überschriften */
.icon-leaf {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

/* ---------- 3. Layout-Hilfsklassen ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-green);
  margin-bottom: 10px;
}

.eyebrow.center {
  justify-content: center;
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}

.section-title.center {
  text-align: center;
}

/* Kurzer, dezenter Einleitungssatz unter einer Section-Überschrift */
.section-subtitle {
  max-width: 520px;
  margin: 0 auto 44px;
  color: var(--color-text-light);
  font-size: 1.02rem;
}

.section-subtitle.center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-green-dark);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-gold-deep);
}

.btn-ghost {
  border-color: var(--color-text-invert);
  color: var(--color-text-invert);
}

.btn-ghost:hover {
  background: rgba(246, 236, 221, 0.12);
}

.btn-outline {
  border-color: var(--color-gold);
  color: var(--color-gold);
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-green-dark);
}

/* Gold umrandeter Button in voller Button-Größe (z.B. "Jetzt anrufen" neben
   dem gefüllten "Jetzt bestellen"-Button) — gleiche Maße wie .btn-primary/.btn-ghost.
   Zusätzlich zum Rahmen ein dezent gefüllter Hintergrund, damit der Button auch vor
   hellen Bildbereichen im Hero-Foto klar als Button und nicht als freistehender Text wirkt. */
.btn-outline-gold {
  background: rgba(232, 203, 171, 0.14);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-green-dark);
}

/* ---------- 4. Header & Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Höher als .cookie-banner (z-index 200): .site-header ist selbst ein
     Stacking-Context (position: fixed + z-index), daher wird auch das
     mobile Menü (.main-nav), das als Kind von .site-header per position:
     fixed aus dem Fluss genommen wird, ausschließlich innerhalb DIESES
     Contexts einsortiert — sein eigener z-index-Wert zählt also nur
     relativ zu Geschwistern im Header, nicht global. Ohne diesen hohen
     Wert würde der Cookie-Banner das geöffnete Menü überdecken. */
  z-index: 300;
  padding-block: 18px;
  background: transparent;
  transition: padding var(--transition);
}

/* Verhindert Hintergrund-Scroll, während das mobile Menü offen ist
   (script.js setzt/entfernt diese Klasse am <body>). */
body.nav-open {
  overflow: hidden;
}

/* Der halbtransparente Blur-Hintergrund beim Scrollen sitzt bewusst auf
   einem ::before-Pseudoelement statt direkt auf .site-header: ein
   backdrop-filter (oder transform/filter/perspective) auf .site-header
   selbst würde einen neuen Containing Block für ALLE fixed-positionierten
   Nachfahren erzeugen — inklusive des mobilen Menüs (.main-nav, ebenfalls
   position: fixed). Dadurch würde sich das geöffnete Menü nicht mehr am
   Viewport, sondern an der wenige Pixel hohen Header-Leiste ausrichten und
   nur noch als schmaler Streifen erscheinen, statt den Bildschirm zu
   füllen — genau der gemeldete Bug, der nur nach dem Scrollen auftrat
   (weil .is-scrolled erst dann greift). Das Pseudoelement ist kein
   Vorfahre von .main-nav und beeinflusst dessen Containing Block daher
   nicht.
*/
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition);
  pointer-events: none;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding-block: 10px;
}

.site-header.is-scrolled::before {
  background: rgba(31, 52, 42, 0.94);
  backdrop-filter: blur(6px);
}

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

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

/* Logo-Rahmen ohne jede sichtbare Umrandung: das Logo-Bild (logo.jpeg) hat
   selbst etwas Leerraum um das eigentliche runde Emblem. .logo-frame schneidet
   per overflow:hidden hart auf einen Kreis zu; das Bild wird per transform:scale
   so weit hineingezoomt, dass dieser Leerraum komplett aus dem sichtbaren
   Ausschnitt verschwindet — kein Rahmen, kein Ring, nur das Emblem selbst. */
.logo-frame {
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}

.logo-frame--brand {
  width: 44px;
  height: 44px;
}

.logo-frame--hero {
  width: 96px;
  height: 96px;
  margin-inline: auto;
  margin-bottom: 24px;
}

.logo-frame--footer {
  width: 36px;
  height: 36px;
}

.brand-logo,
.hero-logo,
.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  animation: logoFadeIn 0.6s ease;
}

/* Sanftes, hochwertig wirkendes Einblenden des Logos beim ersten Laden */
@keyframes logoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-invert);
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  color: var(--color-gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Telefonnummer im Header deutlicher hervorheben: dezent gefüllter
   Hintergrund statt reinem Outline, etwas kräftigere Schrift, sanftes
   Glühen beim Hover statt eines reinen Farbwechsels. */
.nav-call {
  background: rgba(232, 203, 171, 0.14);
  font-weight: 600;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.nav-call:hover {
  background: var(--color-gold);
  color: var(--color-green-dark);
  box-shadow: 0 0 0 5px rgba(232, 203, 171, 0.2);
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

/* "Speisekarte" soll nur im mobilen Hamburger-Menü erscheinen — auf dem
   Desktop verlinkt stattdessen der Button unter der Bestseller-Sektion
   dorthin. Standardmäßig (Desktop) ausgeblendet, in der Mobile-Media-Query
   weiter unten wieder eingeblendet. */
.nav-mobile-only {
  display: none;
}

.main-nav a {
  color: var(--color-text-invert);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
}

.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.main-nav ul a:hover {
  color: var(--color-gold);
}

.main-nav ul a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-invert);
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Dunkles Grün-Overlay auf dem Hero-Foto, damit der helle Text lesbar bleibt */
  background: linear-gradient(180deg, rgba(47, 79, 60, 0.55) 0%, rgba(47, 79, 60, 0.75) 55%, rgba(20, 29, 24, 0.88) 100%);
}

.hero-content {
  text-align: center;
  color: var(--color-text-invert);
  padding-block: 120px 80px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.3px;
  color: var(--color-text-invert);
}

.hero h1 span {
  color: var(--color-gold);
}

/* Slogan bewusst im Kontrast zur fetten, aufrechten Headline gesetzt:
   kursive Serif-Schrift, ruhiger und heller, für eine klare Hierarchie
   Headline (dominant) → Slogan (elegante Unterzeile). */
.hero-slogan {
  max-width: 460px;
  margin: 26px auto 40px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: 0.4px;
  line-height: 1.5;
  color: var(--color-gold);
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-hint span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid var(--color-gold);
  border-radius: 20px;
  position: relative;
}

.scroll-hint span::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* ---------- 6. Über uns ---------- */
.about {
  padding-block: 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Vertikaler Fokus etwas oberhalb der Mitte: hält Gesicht UND das
     präsentierte Gericht im sichtbaren Bildausschnitt (siehe Mobile-Anpassung). */
  object-position: center 20%;
  border-radius: var(--radius);
  border: 1px solid var(--color-gold);
  box-shadow: var(--shadow-soft);
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ---------- 7. Bestseller-Karussell ---------- */
.bestsellers {
  padding-block: 110px;
  background: var(--color-cream-alt);
}

.carousel {
  position: relative;
}

.dish-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  /* Kein CSS scroll-snap hier: es würde die kontinuierliche Autoplay-Bewegung
     (per JS scrollLeft) bei jedem Frame zurück zum nächsten Snap-Punkt ziehen.
     Die Pfeil-Buttons scrollen stattdessen präzise um eine Kartenbreite. */
  scroll-padding-inline: 24px;
  padding: 8px 24px 10px;
  cursor: grab;
  scroll-behavior: auto; /* Autoplay steuert scrollLeft selbst weich per rAF */
  /* Scrollbar unsichtbar machen, Scroll-Funktion bleibt erhalten */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.dish-track:active {
  cursor: grabbing;
}

.dish-card {
  flex: 0 0 clamp(230px, 26vw, 290px);
  background: #fff;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.dish-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(28, 20, 10, 0.2);
}

.dish-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.dish-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* --focus-y wird pro Karte inline auf .dish-image gesetzt (siehe index.html),
     damit sich der Bildausschnitt je Gericht einzeln nachjustieren lässt. */
  object-position: center var(--focus-y, 50%);
  transition: transform 0.5s ease;
}

.dish-card:hover .dish-image img {
  transform: scale(1.06);
}

.dish-body {
  padding: 18px 20px 20px;
}

.dish-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-green-dark);
  overflow-wrap: break-word;
  hyphens: none;
}

.dish-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  min-height: 4.4em;
  overflow-wrap: break-word;
  hyphens: none;
}

/* Dezente, halbtransparente Pfeil-Buttons im Farbschema */
.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  background: rgba(47, 79, 60, 0.55);
  color: var(--color-gold);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0.7;
  transition: opacity var(--transition), background var(--transition), color var(--transition);
}

.carousel-arrow:hover {
  opacity: 1;
  background: var(--color-green);
  color: var(--color-gold);
}

.carousel-arrow--prev {
  left: 10px;
}

.carousel-arrow--next {
  right: 10px;
}

/* Eigenständiger CTA-Block unterhalb des Karussells: verlinkt zur
   vollständigen Speisekarte, ausreichend Abstand nach oben (zum Karussell)
   und nach unten (zusätzlich zum ohnehin großzügigen Section-Padding von
   .bestsellers), damit der Button klar als eigenes, prominentes Element
   wirkt statt unterzugehen. */
.bestseller-cta {
  margin-top: 64px;
  margin-bottom: 16px;
  text-align: center;
}

/* Ganz normaler, kompakter Button (kein Kreis!) — Größe bewusst identisch
   zu den anderen Buttons auf der Seite (.btn: padding 14px 32px), hier nur
   minimal höheres Padding, damit er als eigenständiger CTA etwas mehr
   Gewicht bekommt. Icon und Text stehen in EINER Zeile nebeneinander. */
.bestseller-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  line-height: 1;
}

.icon-menu-book {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 8. Öffnungszeiten & Anfahrt ---------- */
.hours {
  padding-block: 100px;
  background: var(--color-dark);
  color: var(--color-text-invert);
}

.hours .eyebrow {
  color: var(--color-gold);
}

.hours .section-title--compact {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--color-text-invert);
  margin-bottom: 10px;
}

.hours-tagline {
  max-width: 520px;
  margin: 0 auto 56px;
  text-align: center;
}

/* Zeile 1: dominante Haupt-Headline in der Serif-Schrift */
.hours-tagline-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: 0.2px;
  color: var(--color-gold);
}

/* Zeile 2: ruhige, elegante Unterzeile — kursiv und deutlich abgesetzt */
.hours-tagline-sub {
  display: block;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.5;
  color: var(--color-cream-alt);
  opacity: 0.85;
}

.hours-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* Linke Spalte als eigenständige Karte, damit sie der Karte rechts (Google Maps)
   visuell die Waage hält statt lose auf dem dunklen Hintergrund zu stehen. */
.hours-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--color-green-dark);
  border: 1px solid rgba(232, 203, 171, 0.18);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.hours-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-small {
  padding: 12px 26px;
  font-size: 0.85rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
}

.contact-list li + li {
  margin-top: 10px;
}

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

.contact-icon {
  font-size: 1.1rem;
}

/* Kompakte, tabellarische Öffnungszeiten: Tag links, Uhrzeit rechts */
.hours-table {
  border-top: 1px solid rgba(232, 203, 171, 0.2);
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid rgba(232, 203, 171, 0.2);
  border-radius: 6px;
  transition: background var(--transition);
}

.hours-row.is-today {
  background: rgba(232, 203, 171, 0.1);
  padding-inline: 10px;
  margin-inline: -10px;
}

.hours-day {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-gold);
}

.hours-row .hours-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.85rem;
  text-align: right;
}

.hours-row .hours-time em {
  font-style: normal;
  font-size: 0.75rem;
  opacity: 0.7;
}

.hours-row--closed .hours-day,
.hours-row--closed .hours-time {
  color: rgba(246, 236, 221, 0.6);
}

.hours-status {
  font-weight: 500;
  font-size: 0.95rem;
}

.hours-status.is-open {
  color: #8fd6a4;
}

.hours-status.is-closed {
  color: #e2a2a2;
}

.hours-map {
  min-height: 320px;
}

.hours-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- 9. Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-cream-alt);
  padding-block: 48px 28px;
  border-top: 3px solid var(--color-gold);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
}


.footer-contact {
  font-size: 0.9rem;
}

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

/* Social-Media-Block: Hinweiszeile + Icons mit Handle-Platzhaltern */
.footer-social-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-cream-alt);
  transition: color var(--transition);
}

.social-link:hover {
  color: var(--color-gold);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.social-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.social-link:hover .social-icon {
  background: var(--color-gold);
  color: var(--color-green-dark);
  transform: translateY(-3px);
}

.social-handle {
  font-size: 0.78rem;
}

.footer-legal {
  font-size: 0.82rem;
}

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

.footer-copy {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 6px;
}

/* ---------- 9b. Cookie-Consent-Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--color-dark);
  border-top: 2px solid var(--color-gold);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-banner-inner p {
  color: var(--color-cream-alt);
  font-size: 0.88rem;
  max-width: 640px;
  margin: 0;
}

.cookie-banner-inner a {
  color: var(--color-gold);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  padding: 12px 24px;
  font-size: 0.85rem;
}

/* ---------- 9c. Rechtsseiten (Impressum & Datenschutz) ---------- */
.legal-hero {
  background: var(--color-green-dark);
  color: var(--color-text-invert);
  padding: 150px 24px 56px;
  text-align: center;
}

.legal-hero h1 {
  color: var(--color-text-invert);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-hero p {
  color: var(--color-cream-alt);
  margin-top: 10px;
}

.legal-content {
  padding-block: 70px;
}

.legal-content .container {
  max-width: 820px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--color-green-dark);
}

.legal-content section:first-of-type h2 {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--color-green);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-light);
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-content a {
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--color-gold-deep);
}

.legal-content strong {
  color: var(--color-text);
}

/* ---------- 9d. Speisekarte ---------- */
.menu-content {
  padding-block: 64px 80px;
}

.menu-container {
  max-width: 860px;
}

/* Kategorien deutlich sichtbar getrennt, damit die Seite auf einen Blick
   gegliedert wirkt statt als durchgehende Textwand. */
.menu-category {
  margin-bottom: 52px;
}

.menu-category:last-of-type {
  margin-bottom: 0;
}

/* Hauptkategorien (Vorspeisen, Suppen, Hauptgerichte): größer & prominenter.
   Unterkategorien (Salate, Currys, Spezialitäten, Fisch, Nachtisch, Extras):
   bewusst kleiner gesetzt — so entsteht eine klare, gestaffelte Hierarchie
   statt eines gleichförmigen Blocks aus lauter gleich großen Überschriften. */
.menu-category-title {
  display: inline-block;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  color: var(--color-green-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 10px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--color-gold);
}

.menu-category-title--sub {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  letter-spacing: 1.1px;
  color: var(--color-green);
  border-bottom-width: 1px;
  border-bottom-color: rgba(232, 203, 171, 0.6);
  margin-bottom: 18px;
}

.menu-category-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-light);
  margin: -6px 0 18px;
  max-width: 560px;
}

.menu-list {
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px dashed rgba(47, 79, 60, 0.18);
}

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

.menu-item-number {
  flex-shrink: 0;
  min-width: 26px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-gold-deep);
}

.menu-item-text {
  flex: 1;
  min-width: 0;
}

.menu-item-name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1.05rem;
}

.menu-item-desc {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.menu-item-price {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-green-dark);
  white-space: nowrap;
}

.menu-item--noNumber .menu-item-text {
  padding-left: 40px;
}

/* Dezentes "Beliebt"-Abzeichen für die meistbestellten Gerichte */
.menu-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-green-dark);
  background: var(--color-gold);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Gold-Outline-Button-Variante für helle Hintergründe (z.B. die
   Speisekarten-Seite): .btn-outline-gold ist für dunkle Flächen (Hero,
   Hours-Karte) gedacht und hätte auf hellem Creme-Hintergrund zu wenig
   Kontrast — hier daher stattdessen ein Grün-Outline. */
.btn-outline-green {
  border-color: var(--color-green);
  color: var(--color-green);
}

.btn-outline-green:hover {
  background: var(--color-green);
  color: var(--color-text-invert);
}

.menu-order-cta {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid rgba(47, 79, 60, 0.15);
  text-align: center;
}

.menu-order-text {
  margin-bottom: 22px;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.menu-order-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Sachlicher, klar strukturierter LMIV-Pflichtabschnitt am Seitenende:
   ausreichend Abstand zu den Gerichten darüber (margin-top) und zum
   Footer darunter (via .menu-content-Padding, siehe unten). */
.menu-allergens {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(47, 79, 60, 0.15);
}

.menu-allergens-title {
  margin: 0;
}

/* Grüner Button über die volle Breite (Klick-Trigger). Der <h2> drumherum
   sorgt weiterhin für korrekte Dokumentstruktur/Screenreader-Gliederung,
   während der Button selbst die komplette Klickfläche stellt — auch auf
   Mobile gut antippbar. */
.menu-allergens-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: var(--color-green-dark);
  border: 1px solid var(--color-green-dark);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text-invert);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.menu-allergens-toggle:hover {
  background: var(--color-green);
}

.menu-allergens-toggle[aria-expanded="true"] {
  border-color: var(--color-gold-deep);
}

.icon-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s ease;
}

.menu-allergens-toggle[aria-expanded="true"] .icon-chevron {
  transform: rotate(180deg);
}

/* Auf-/Zuklappen per max-height-Transition — bewusst kein grid-template-
   rows-Trick (die Fr-Unit-Animation für Grid-Rows ist in manchen Browsern
   unzuverlässig/fehlerhaft). max-height mit großzügigem, festem Zielwert
   ist eine alte, aber extrem robuste und überall unterstützte Technik.
   Standardzustand ist geschlossen (keine .is-open-Klasse); script.js
   togglet ausschließlich diese eine Klasse. */
.menu-allergens-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.menu-allergens-panel.is-open {
  max-height: 3000px;
}

.menu-allergens-intro {
  margin-top: 24px;
  max-width: 700px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Zwei saubere Tabellen nebeneinander auf Desktop, untereinander auf
   Mobile (Umschaltung in der 780px-Media-Query weiter unten). */
.menu-allergen-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 28px;
}

.menu-allergen-table {
  width: 100%;
  border-collapse: collapse;
}

.menu-allergen-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-green);
  margin-bottom: 10px;
}

.menu-allergen-table tr {
  border-bottom: 1px dashed rgba(47, 79, 60, 0.18);
}

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

.menu-allergen-table th,
.menu-allergen-table td {
  padding: 7px 0;
  text-align: left;
  font-size: 0.87rem;
  font-weight: 400;
}

.menu-allergen-table th {
  width: 34px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-gold-deep);
}

.menu-allergen-table td {
  color: var(--color-text-light);
}

.menu-allergens-note {
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(232, 203, 171, 0.14);
  font-size: 0.88rem;
  color: var(--color-text-light);
  max-width: 700px;
}

.menu-allergens-note strong {
  color: var(--color-text);
}

.menu-allergens-note a {
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.menu-allergens-note a:hover {
  color: var(--color-gold-deep);
}

/* ---------- 10. Scroll-Reveal-Animationen ---------- */
/* Inhalte sind standardmäßig sichtbar (ohne JavaScript / bei Crawlern).
   Erst die per script.js früh gesetzte Klasse "js" auf <html> aktiviert
   die Ausgangs-Unsichtbarkeit, damit die Reveal-Animation greifen kann. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Nutzer mit reduzierten Animationswünschen respektieren */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .brand-logo,
  .hero-logo,
  .footer-logo {
    animation: none;
  }
  .menu-allergens-panel,
  .icon-chevron {
    transition: none;
  }
}

/* ---------- 11. Responsive Anpassungen ---------- */

/* Tablet (~768px): Zweispaltige Layouts stapeln */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    /* Nahe am natürlichen Hochformat des Fotos, damit auf schmalen
       Bildschirmen sowohl Gesicht als auch das Gericht sichtbar bleiben
       (ein breiteres Seitenverhältnis würde hier zu viel wegschneiden). */
    aspect-ratio: 3 / 4;
  }

  .hours-layout {
    grid-template-columns: 1fr;
  }

  .hours-map {
    order: -1;
    min-height: 280px;
  }
}

/* Ab hier: Hamburger-Navigation, Karussell-Feinschliff, kompaktere Abstände */
@media (max-width: 780px) {
  .site-header {
    padding-block: 14px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 26%;
    top: 0;
    z-index: 10;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 48px 32px;
    background: rgba(31, 52, 42, 0.98);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 22px;
  }

  .main-nav ul a {
    font-size: 1.1rem;
    white-space: normal;
    display: inline-block;
    padding-block: 4px; /* größere Tippfläche */
  }

  /* Im mobilen Menü wieder einblenden (siehe Basis-Regel weiter oben) */
  .nav-mobile-only {
    display: list-item;
  }

  .nav-call {
    padding: 12px 24px;
  }

  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    /* .main-nav deckt als Overlay-Drawer (inset: 0 0 0 26%) auch den oberen,
       rechten Bereich ab, in dem der Hamburger-Button selbst sitzt. Ohne
       eigenen Stacking-Kontext + höheren z-index als .main-nav (10) würde
       das geöffnete Menü den Button verdecken — er wäre dann nicht mehr
       klickbar und das Menü ließe sich nicht mehr schließen. */
    position: relative;
    z-index: 20;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Section-Abstände auf Mobile verringern */
  .about,
  .bestsellers,
  .hours {
    padding-block: 72px;
  }

  /* "Über uns"-Bild auf Mobile: sauber gerahmt statt randlos zugeschnitten —
     dezenter Gold-Rahmen, abgerundete Ecken, Schatten, mittig mit Weißraum
     zum Text. Etwas hochformatiger als auf dem Desktop, damit sowohl Gesicht
     als auch das Gericht in Naams Händen gut sichtbar bleiben. */
  .about-image img {
    aspect-ratio: 3 / 4;
    border-width: 3px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .section-subtitle {
    font-size: 0.95rem;
    padding-inline: 8px;
    margin-bottom: 36px;
  }

  .hours-tagline {
    margin-bottom: 32px;
  }

  /* Karussell: Karte nimmt ca. 80% der Breite ein, nächste Karte schaut leicht an */
  .dish-track {
    gap: 16px;
    padding-inline: 20px;
  }

  .dish-card {
    flex-basis: 80vw;
  }

  .dish-body p {
    min-height: 0;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .carousel-arrow--prev {
    left: 4px;
  }

  .carousel-arrow--next {
    right: 4px;
  }

  /* Öffnungszeiten-Karte: etwas kompakteres Padding, mehr Zeilenabstand
     statt gequetschter Tabelle */
  .hours-info {
    padding: 24px;
    gap: 20px;
  }

  .hours-row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .hours-row .hours-time {
    align-items: flex-start;
    text-align: left;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }

  /* Cookie-Banner: Text und Buttons untereinander */
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  /* Speisekarte: Zeile umbricht, Preis rutscht rechtsbündig unter den Text
     statt die Karte in die Breite zu quetschen; sauberer Einspaltenfluss. */
  .menu-category {
    margin-bottom: 40px;
  }

  .menu-item {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .menu-item-price {
    flex: 0 0 calc(100% - 40px);
    margin-left: 40px;
    padding-left: 0;
    text-align: right;
  }

  .menu-item--noNumber .menu-item-price {
    flex-basis: 100%;
    margin-left: 0;
  }

  .menu-order-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-order-actions .btn {
    text-align: center;
  }

  /* Die zwei Allergen-/Zusatzstoff-Tabellen stapeln sich auf Mobile
     untereinander statt nebeneinander zu quetschen. */
  .menu-allergen-tables {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cookie-banner-actions {
    justify-content: center;
  }
}

/* Kleine Smartphones (~375–414px) */
@media (max-width: 480px) {
  .hero-content {
    padding-block: 110px 64px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-slogan {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .dish-card {
    flex-basis: 82vw;
  }

  .hours-info {
    padding: 20px;
    gap: 14px;
  }

  .hours-row .hours-time {
    font-size: 0.82rem;
  }

  .footer-social {
    gap: 20px;
  }
}
