/* =========================================================================
   Gasthof Pannebäcker — Static-Track
   styles.css · Teil A (Design-Tokens + Hero + Live-Banner)
   ========================================================================= */

:root {
  /* Farben (aus CLAUDE.md — nicht ohne Ansage ändern) */
  --orange: #e2753a;
  --orange-hover: #c7622d;
  --teal: #5d9996;
  --dark-teal: #487d7b;
  --beige: #f8f4f0;
  --anthrazit: #2a2a2a;
  --weiss: #ffffff;
  --status-green: #6fa86b; /* einzige erlaubte funktionale Ausnahme (Live-Banner) */

  /* Typografie */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --radius: 4px;
  --content-max: 1140px;
  --section-pad: 90px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--anthrazit);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons (flach, kein Schatten, Radius 4px, Lato 700) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;          /* Lato hat kein 600 → 700 */
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--weiss);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }

.btn-secondary {
  background: transparent;
  color: var(--weiss);
  border-color: var(--weiss);
}
.btn-secondary:hover { background: var(--weiss); color: var(--anthrazit); }

/* =========================================================================
   Hero (#hero) — full-bleed Bild, 0 Radius, heller Text auf dunklem Grund
   ========================================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--weiss);
}

/* Bild + Abdunklung für Lesbarkeit */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* dunkler links (Textseite), transparenter rechts */
  background: linear-gradient(
    90deg,
    rgba(20, 16, 12, .78) 0%,
    rgba(20, 16, 12, .62) 42%,
    rgba(20, 16, 12, .28) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.hero__content { max-width: 640px; }

.hero__eyebrow {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--weiss);
  margin: 0 0 18px;
}

.hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  margin: 0 0 18px;
}

.hero__subline {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255, 255, 255, .92);
  margin: 0 0 32px;
  max-width: 34em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Live-Öffnungs-Banner ---- */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--weiss);
  margin: 0 0 22px;
}
.open-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55); /* gedämpft (Default / geschlossen) */
  flex: 0 0 auto;
}
.open-status.is-open .open-status__dot {
  background: var(--status-green);
}
/* solange JS nicht gelaufen ist, Banner nicht anzeigen */
.open-status:empty { display: none; }

/* ---- Mobile (Hero) ---- */
@media (max-width: 640px) {
  :root { --section-pad: 64px; }
  .hero { min-height: 82vh; }
  .hero__media::after {
    /* auf Schmal-Displays gleichmäßiger abdunkeln */
    background: linear-gradient(
      180deg,
      rgba(20, 16, 12, .55) 0%,
      rgba(20, 16, 12, .72) 100%
    );
  }
  .hero__cta .btn { width: 100%; }
}

/* Weiterer Button: Outline auf hellem Grund */
.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--weiss); }

/* Anker nicht unter den Sticky-Header rutschen */
[id] { scroll-margin-top: 84px; }

/* =========================================================================
   HEADER / NAVIGATION (flach, kein Schatten)
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid #e7ded4;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--anthrazit);
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.primary-nav > a {
  text-decoration: none;
  color: var(--anthrazit);
  font-weight: 400;
  padding: 8px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.primary-nav > a:hover { color: var(--orange); }
.primary-nav__link-speisekarte { font-weight: 700; }
.primary-nav__cta { color: var(--weiss); padding: 10px 18px; }
.primary-nav__cta:hover { color: var(--weiss); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid #e7ded4;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--anthrazit);
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--weiss);
    border-bottom: 1px solid #e7ded4;
    padding: 8px 24px 18px;
    display: none;
  }
  .site-header { position: sticky; }
  .site-header__inner { position: relative; }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a { padding: 12px 4px; border-bottom: 1px solid #f0e9df; }
  .primary-nav__cta { text-align: center; margin-top: 10px; border-bottom: none; }
}

/* =========================================================================
   SEKTIONEN — Grundlayout, alternierend Beige/Weiß
   ========================================================================= */
.section { padding: var(--section-pad) 0; }
.section--beige { background: var(--beige); }
.section--weiss { background: var(--weiss); }

.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 12px; }
.section__lead { font-size: 1.1rem; color: #5b544b; margin: 0; }
.section__actions { text-align: center; margin-top: 40px; }

/* =========================================================================
   TEAL-TRENNBÄNDER (USP, finaler CTA) — heller Text auf dunklem Grund
   ========================================================================= */
.band-teal {
  background: var(--dark-teal);
  color: var(--weiss);
  padding: var(--section-pad) 0;
}
.band-teal .usp__title,
.band-teal .cta__title { color: var(--weiss); }

.usp__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.usp__item { text-align: center; }
.usp__title { font-size: 1.25rem; margin: 0 0 8px; }
.usp__item p { margin: 0; color: rgba(255, 255, 255, .9); }

/* =========================================================================
   CARDS (Highlights)
   ========================================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--weiss);
  border: 1px solid #ece4d8;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.section--weiss .card { background: var(--beige); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efe7db;
  color: #a89b88;
  font-size: .95rem;
  letter-spacing: .02em;
}
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 1.25rem; }
.card__desc { margin: 0; color: #5b544b; font-size: .98rem; }
.card__price { margin: 8px 0 0; font-weight: 700; color: var(--orange); font-size: 1.1rem; }

/* =========================================================================
   GALERIE (Ambiente)
   ========================================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   BEWERTUNGEN
   ========================================================================= */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.review {
  margin: 0;
  background: var(--weiss);
  border: 1px solid #ece4d8;
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review__stars { margin: 0; color: var(--orange); letter-spacing: 2px; }
.review__text { margin: 0; }
.review__author { font-weight: 700; color: var(--anthrazit); }
.review__text--placeholder { color: #a89b88; }

/* =========================================================================
   ÜBER UNS (kreisförmiges Porträt)
   ========================================================================= */
.ueber {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
}
.ueber__portrait {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
}
.ueber__portrait img { width: 100%; height: 100%; object-fit: cover; }
.ueber__portrait--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efe7db;
  color: #a89b88;
  text-align: center;
  font-size: .95rem;
  padding: 12px;
}
.ueber__text .section__title { text-align: left; }
.ueber__text p { margin: 0 0 14px; font-size: 1.08rem; }
.ueber__motto { font-family: var(--font-head); font-style: italic; color: var(--dark-teal); font-size: 1.3rem; }

/* =========================================================================
   ÖFFNUNGSZEITEN
   ========================================================================= */
.hours {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-collapse: collapse;
}
.hours th, .hours td { padding: 13px 8px; text-align: left; border-bottom: 1px solid #e7ded4; }
.hours th { font-weight: 700; width: 40%; }
.hours td { text-align: right; }
.hours__closed { color: #9a9186; }
.hours__note { text-align: center; margin: 22px auto 0; color: #5b544b; font-weight: 700; }

/* =========================================================================
   ANFAHRT
   ========================================================================= */
.anfahrt {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
}
.anfahrt__address { font-style: normal; font-size: 1.15rem; line-height: 1.7; }
.anfahrt__address a { color: var(--orange); text-decoration: none; }
.anfahrt__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.anfahrt__pay { text-align: center; margin: 28px auto 0; color: #5b544b; }

/* =========================================================================
   FINALER CTA
   ========================================================================= */
.cta__inner { text-align: center; }
.cta__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 10px; }
.cta__text { margin: 0 0 28px; color: rgba(255, 255, 255, .9); }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--anthrazit); color: rgba(255, 255, 255, .82); padding: 54px 0; }
.site-footer__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--weiss); text-decoration: none; }
.site-footer__brand { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--weiss); }
.site-footer__motto { font-family: var(--font-head); font-style: italic; color: var(--weiss); }
.site-footer__copy { color: rgba(255, 255, 255, .55); font-size: .9rem; }

/* =========================================================================
   MOBILE / RESPONSIVE (Segmente)
   ========================================================================= */
@media (max-width: 860px) {
  .usp__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .usp__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .ueber { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .ueber__text .section__title { text-align: center; }
  .anfahrt { flex-direction: column; text-align: center; }
  .anfahrt__actions { width: 100%; }
  .anfahrt__actions .btn { flex: 1; }
  .hours td { text-align: right; }
  .site-footer__inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .section__actions .btn { width: 100%; }
  .cta__actions .btn { width: 100%; }
}

/* =========================================================================
   SPEISEKARTE (menu.html)
   ========================================================================= */
.menu-head { padding-bottom: 24px; text-align: center; }
.menu-head .section__title { margin-bottom: 10px; }

.menu-block__head { text-align: center; margin-bottom: 36px; }
.menu-block__time {
  margin: 6px 0 0;
  color: var(--dark-teal);
  font-weight: 700;
  letter-spacing: .04em;
}

.menu-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
}
.menu-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #e7ded4;
}
.menu-item:last-child { border-bottom: none; }
.menu-item__info { flex: 1; }
.menu-item__name { font-size: 1.2rem; margin: 0 0 4px; }
.menu-item__desc { margin: 0; color: #5b544b; }
.menu-item__variant { margin: 6px 0 0; color: #7a7268; font-size: .95rem; }
.menu-item__price {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--orange);
  font-size: 1.1rem;
  white-space: nowrap;
}

/* Hinweise + Akkordeon */
.menu-notes { max-width: 820px; margin: 0 auto; }
.menu-notes__list { margin: 0 0 28px; padding-left: 20px; color: #5b544b; }
.menu-notes__list li { margin: 0 0 6px; }

.accordion { border: 1px solid #e7ded4; border-radius: var(--radius); background: var(--weiss); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--anthrazit);
  text-align: left;
}
.accordion__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--orange);
}
.accordion__icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.accordion__icon::after { top: 0; left: 6px; width: 2px; height: 14px; transition: transform .2s ease; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(90deg); }
.accordion__panel { padding: 0 20px 20px; color: #5b544b; }
.accordion__panel a { color: var(--orange); }

@media (max-width: 640px) {
  .menu-item { gap: 12px; }
  .menu-item__price { font-size: 1.05rem; }
}

/* =========================================================================
   SCROLL-REVEAL + Smooth-Scrolling
   Basis-Verstecken greift NUR, wenn JS die Klasse .reveal an <html> setzt
   (Inline-Script im <head>). Ohne JS bleibt alles sichtbar.
   ========================================================================= */
html { scroll-behavior: smooth; }

html.reveal .section__head,
html.reveal .usp__item,
html.reveal .card,
html.reveal .gallery__item,
html.reveal .review:not(.review--more),
html.reveal .ueber__media,
html.reveal .ueber__text,
html.reveal .hours,
html.reveal .hours__note,
html.reveal .anfahrt,
html.reveal .anfahrt__pay,
html.reveal .cta__inner,
html.reveal .menu-block__head,
html.reveal .menu-item,
html.reveal .menu-notes__list,
html.reveal .accordion {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease-out, transform .55s ease-out;
  will-change: opacity, transform;
}

/* eingeblendeter Zustand (später in der Datei => gewinnt bei gleicher Spezifität) */
html.reveal .is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal .section__head,
  html.reveal .usp__item,
  html.reveal .card,
  html.reveal .gallery__item,
  html.reveal .review:not(.review--more),
  html.reveal .ueber__media,
  html.reveal .ueber__text,
  html.reveal .hours,
  html.reveal .hours__note,
  html.reveal .anfahrt,
  html.reveal .anfahrt__pay,
  html.reveal .cta__inner,
  html.reveal .menu-block__head,
  html.reveal .menu-item,
  html.reveal .menu-notes__list,
  html.reveal .accordion {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
