/* ── Hero ─────────────────────────────────────────────────── */
.ex-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-image: url('../img/restaurant-hermes-night.webp');
  background-size: cover;
  background-position: center;
}

.ex-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.ex-hero__content {
  position: relative;
  z-index: 1;
  color: #FAF6EE;
  max-width: 700px;
  padding: 5rem 0;
}

.ex-hero__content h1 { color: #FFFFFF; margin-bottom: 1rem; }

.ex-hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 2rem;
  color: #F1E8D8;
}

.ex-hero__since {
  font-family: 'Marcellus', serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #E8DCC8;
  margin-bottom: 1rem;
  display: block;
}

/* ── Buttons ──────────────────────────────────────────────── */
.ex-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 1.9rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

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

.ex-btn--ghost {
  background: transparent;
  color: var(--link);
  border: 1.5px solid currentColor;
}

.ex-hero__promise {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: #E8DCC8;
}

/* ── Welcome ──────────────────────────────────────────────── */
.ex-welcome__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.ex-welcome__lead {
  font-family: 'Marcellus', serif;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink-strong);
  margin-bottom: 1.5rem;
}

.ex-welcome__text p { margin-bottom: 1.1rem; }

.ex-welcome__sign {
  font-family: 'Marcellus', serif;
  font-size: 1.15rem;
  color: var(--ink-strong);
  margin-top: 1.5rem;
}

.ex-welcome__img {
  border-radius: 12px;
  overflow: hidden;
}

.ex-welcome__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* Platzhalter solange kein Kundenfoto */
.ex-welcome__img--placeholder {
  background: var(--surface-deep);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Dish Cards ───────────────────────────────────────────── */
.ex-dishes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.ex-dish {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.ex-section--alt .ex-dish { background: var(--bg); }

.ex-dish__name { margin-bottom: 0.4rem; }

.ex-dish__desc { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }

.ex-dish__tag {
  align-self: flex-start;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}

.ex-menu-cta { text-align: center; }
.ex-menu-cta p { color: var(--ink-soft); margin-bottom: 1.25rem; }

/* ── Gallery ──────────────────────────────────────────────── */
.ex-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.ex-gallery__item {
  border-radius: 12px;
  overflow: hidden;
}

.ex-gallery__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ex-gallery__item:hover img { transform: scale(1.04); }

/* ── Contact & Map ────────────────────────────────────────── */
.ex-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.ex-hours {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.ex-hours td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.ex-hours td:last-child { text-align: right; }

.ex-hours__closed td {
  font-weight: 600;
  color: var(--ink-strong);
}

.ex-contact__phone {
  font-family: 'Marcellus', serif;
  font-size: 1.6rem;
  color: var(--ink-strong);
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem 0 0.25rem;
}

.ex-contact__hint { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.5rem; }

.ex-map {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-deep);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ex-map__consent { text-align: center; padding: 2rem; }
.ex-map__consent p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.25rem; max-width: 380px; }

.ex-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Theme Switch (Prototyp) ──────────────────────────────── */
.ex-theme-switch {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem;
}

.ex-theme-switch__btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.ex-theme-switch__btn--active {
  background: var(--brand);
  color: var(--on-brand);
}

/* ── Language Switch ──────────────────────────────────────── */
.ex-lang-switch {
  display: flex;
  gap: 0.1rem;
  align-items: center;
  margin-left: 0.25rem;
}
.ex-lang-switch__btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--on-brand-soft);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  line-height: 1;
}
.ex-lang-switch__btn--active {
  color: var(--on-brand);
  border-color: var(--on-brand-soft);
}
.ex-lang-switch__btn:hover { color: var(--on-brand); }

.ex-section--photo-food {
  background-image: url('../img/hermes-duesseldorf-grischischer-kueche.webp');
}

/* ── Speisekarte ──────────────────────────────────────────── */
.ex-pagehead { background: var(--brand); color: var(--on-brand); padding: 3rem 0 2.5rem; }
.ex-pagehead h1 { color: var(--on-brand); margin-bottom: 0.4rem; }
.ex-pagehead p { color: var(--on-brand-soft); max-width: 620px; }
.ex-pagehead--light { background: var(--surface); }
.ex-pagehead--light h1 { color: var(--ink-strong); }
.ex-pagehead--light p { color: var(--ink-soft); }

.ex-menu { max-width: 820px; margin: 0 auto; }

.ex-menu__section { padding: 2.5rem 0 0.5rem; }
.ex-menu__title {
  text-align: center;
  margin-bottom: 1.75rem;
  position: relative;
}
.ex-menu__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--accent);
  margin: 0.6rem auto 0;
}

.ex-mi {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.4rem 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.ex-mi:last-child { border-bottom: none; }
.ex-mi__nr { color: var(--ink-soft); font-size: 0.9rem; text-align: right; }
.ex-mi__name { font-size: 1.05rem; font-weight: 600; font-family: 'Source Sans 3', system-ui, sans-serif; color: var(--ink-strong); }
.ex-mi__alg { font-size: 0.7rem; color: var(--ink-soft); vertical-align: super; margin-left: 0.3rem; font-weight: 400; }
.ex-mi__desc { grid-column: 2; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin: 0; }
.ex-mi__price { font-weight: 600; color: var(--ink-strong); white-space: nowrap; text-align: right; }
.ex-mi__price small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.ex-mi__size { color: var(--ink-soft); font-size: 0.9rem; margin-right: 0.75rem; font-weight: 400; }

.ex-menu__note {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 1.25rem 0 0;
}

.ex-menu__global {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 2.5rem auto 0;
}

.ex-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.ex-legend h3 { margin-bottom: 0.6rem; }
.ex-legend ul { list-style: none; font-size: 0.9rem; color: var(--ink-soft); }
.ex-legend li { padding: 0.15rem 0; }
.ex-legend li b { color: var(--ink); display: inline-block; min-width: 1.6rem; font-weight: 600; }

.ex-menu-dl { text-align: center; margin: 1.5rem 0 0; }
.ex-menu-dl a { font-size: 0.95rem; }

/* ── Impressum / Datenschutz ──────────────────────────────── */
.ex-legal { max-width: 760px; margin: 0 auto; }
.ex-legal h2 { margin: 2.25rem 0 0.75rem; font-size: 1.45rem; }
.ex-legal h3 { margin: 1.5rem 0 0.5rem; }
.ex-legal p, .ex-legal ul { margin-bottom: 1rem; }
.ex-legal ul { padding-left: 1.25rem; }
.ex-legal__todo { background: var(--surface); border-left: 3px solid var(--accent); padding: 0.7rem 1rem; font-size: 0.92rem; color: var(--ink-soft); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .ex-welcome__grid, .ex-contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .ex-welcome__img { order: -1; }
  .ex-welcome__img img { aspect-ratio: 16/10; }
}

@media (max-width: 560px) {
  .ex-mi { grid-template-columns: 2.4rem 1fr auto; }
}

/* ── Print / PDF ──────────────────────────────────────────── */
@media print {
  @page {
    size: A4;
    margin: 2cm 2.2cm;
  }

  /* Nicht drucken */
  .ex-header, .ex-footer, .ex-theme-switch, .ex-menu-dl { display: none !important; }

  /* Basis */
  html, body {
    background: #fff !important;
    color: #1a1006 !important;
    font-size: 10pt;
    overflow-x: visible;
  }

  h1, h2, h3 { color: #1a1006 !important; }

  /* Seitenkopf: Restaurantname */
  .ex-pagehead {
    background: none !important;
    border-bottom: 2px solid #7B5B43;
    padding: 0 0 0.6cm !important;
    margin-bottom: 0.4cm;
  }
  .ex-pagehead h1 {
    color: #1a1006 !important;
    font-size: 18pt;
    margin-bottom: 0.15cm;
  }
  .ex-pagehead p { color: #5a4535 !important; font-size: 10pt; }

  /* Menü-Container */
  .ex-menu { max-width: 100%; margin: 0; }

  /* Sektions-Titel */
  .ex-menu__title { font-size: 13pt; margin-bottom: 0.4cm; }
  .ex-menu__title::after { background: #7B5B43; }

  /* Menü-Items */
  .ex-mi {
    padding: 0.18cm 0;
    break-inside: avoid;
  }
  .ex-mi__name { font-size: 10pt; }
  .ex-mi__desc { font-size: 9pt; color: #5a4535 !important; }
  .ex-mi__price { font-size: 10pt; }
  .ex-mi__alg { color: #7a6050 !important; }

  /* Titel + erstes Item als untrennbare Einheit */
  .ex-menu__titlegroup { break-inside: avoid; }
  .ex-mi { break-inside: avoid; }

  /* Kategorien die immer auf einer neuen Seite starten */
  .ex-menu__section--newpage { break-before: page; }

  /* Hinweis + Legende */
  .ex-menu__global { font-size: 8.5pt; color: #5a4535 !important; margin-top: 0.5cm; }
  .ex-menu__note { border-left-color: #7B5B43; background: #f5f0e8 !important; }
  .ex-legend { margin-top: 0.8cm; }
  .ex-legend h3 { font-size: 10pt; }
  .ex-legend ul { font-size: 8.5pt; color: #5a4535 !important; }

  /* Links nicht unterstrichen im Druck */
  a { text-decoration: none; color: inherit !important; }
}
