/* ==========================================================================
   Gilbert's Goldener Adler — Wirtshaus, Heidelberg-Handschuhsheim
   Redesign 09/2026 „editorial": Typografie statt Kästen (Referenz: HQI-Map).
   Hierarchie über Schriftgrößen, Kursive und Weißraum; nur feine Linien.
   Genau zwei Farbflächen: das grüne Geschichte-Band (--wirt) und das braune
   Partner-Band (--rebe-deep) — sonst alles auf Papier. Schwester-Site:
   alt-hendesse (eigenes, kastenbasiertes Layout — bewusst abweichend).
   Mobile-first, Desktop ab 780px.
   ========================================================================== */

:root {
  --paper: #f0ecdf;      /* Seitenhintergrund: warmes Papier */
  --card: #fcf9ef;       /* Restbestand für Unterseiten (Platzhalter-Box) */
  --ink: #232418;        /* Fließtext, fast schwarzes Grün */
  --ink-soft: #4d5138;   /* gedämpfter Fließtext */
  --muted: #7e8158;      /* Labels, Captions, Kleingedrucktes */
  --line: #d3d0af;       /* Haarlinien auf hellem Grund */

  --wirt: #2e4a34;       /* Markenfarbe: dunkles Grün (Geschichte-Band, Buttons) */
  --wirt-2: #223826;     /* noch dunkler: Footer */
  --wirt-ink: #ecefdb;   /* Text auf Grün */
  --wirt-muted: #a7b78e; /* gedämpfter Text auf Grün */

  --rebe: #6b4a2c;       /* Akzent: Nussbraun (Links, Schwung) */
  --rebe-deep: #4d3920;  /* Partner-Band trägt das Braun der Schwester */
  --rebe-ink: #f2ead4;   /* Text auf Braun */

  --serif: "Fraunces", Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--rebe); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--wirt);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h1 em, h2 em { font-style: italic; font-weight: 400; }

/* Typo-Bausteine (bewusst KEINE Eyebrow-Labels — Kundenwunsch) */
.lede { font-size: 18px; color: var(--ink-soft); }
.lede-serif {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
}

main section[id] { scroll-margin-top: 96px; }

/* ---------- Buttons (sparsam: Hero + Bänder) ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
/* Alle Buttons bewusst OHNE Umrandung (Kundenwunsch) — Fläche erst bei Hover. */
.btn-primary {
  background: var(--wirt);
  color: var(--wirt-ink);
  border: 0;
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(46, 74, 52, .3); }
.btn-ghost {
  border: 0;
  color: var(--ink);
  background: rgba(35, 36, 24, .07);
}
.btn-ghost:hover { background: rgba(35, 36, 24, .13); }
/* Button auf den Farbbändern */
.btn-band {
  display: inline-block;
  margin-top: 22px;
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  background: rgba(255, 255, 255, .13);
}
.btn-band:hover { background: rgba(255, 255, 255, .22); text-decoration: none; }

/* Pfeile in Buttons/Links schieben bei Hover ein Stück nach vorn. */
.pfeil { display: inline-block; transition: transform .2s ease; }
a:hover .pfeil, a:focus-visible .pfeil { transform: translateX(4px); }

/* Telefon-Icon neigt sich und wächst beim Drücken. */
.btn-tel svg { transition: transform .18s ease; }
.btn-tel:active svg { transform: rotate(-16deg) scale(1.3); }

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  transition: background .25s ease, box-shadow .25s ease;
}
body.scrolled .site-header {
  background: rgba(240, 236, 223, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 84px; width: auto; }
.nav-links { display: none; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15.5px; }
.nav-links a:hover { color: var(--rebe); text-decoration: none; }
.nav-links .nav-karte {
  border-radius: 10px;
  padding: 7px 16px;
  font-weight: 700;
  background: rgba(35, 36, 24, .07);
}
.nav-links .nav-karte:hover { background: rgba(35, 36, 24, .13); color: var(--ink); }
.nav-links .nav-partner { color: var(--rebe); font-weight: 700; font-size: 14.5px; }
/* Sprachschalter (wie auf hqi.cuttingweb.de): aktive Sprache dunkel, andere als Link. */
.lang-switch { display: inline-flex; gap: 3px; align-items: baseline; font-size: 14px; font-weight: 700; color: var(--muted); }
.lang-switch strong { color: var(--ink); }
.lang-switch a { color: var(--rebe); }
/* Im offenen Mobil-Menü sitzt der Sprachschalter oben rechts — rechtsbündig
   auf der Flucht der Trennlinien (Drawer-Seitenpolster 34px). Das X wird
   dafür ausgeblendet; geschlossen wird über den Zurück-Pfeil links. */
.nav-drawer .lang-switch {
  position: absolute;
  top: calc(34px + env(safe-area-inset-top));
  right: 34px;
  font-size: 16px;
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-drawer .lang-switch strong { color: var(--wirt-ink); }
.nav-drawer .lang-switch a { color: var(--wirt-muted); padding: 8px 0; }
.nav-drawer .lang-switch span[aria-hidden] { color: var(--wirt-muted); }
body.drawer-open .nav-drawer .lang-switch { opacity: 1; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 60; /* bleibt über dem Vollbild-Menü klickbar */
  transition: opacity .2s ease;
}
/* Bei offenem Menü verschwindet das X — Platz für den Sprachschalter;
   geschlossen wird über den Zurück-Pfeil. */
body.drawer-open .nav-toggle { opacity: 0; pointer-events: none; }
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
body.drawer-open .nav-toggle span { background: var(--wirt-ink); }
body.drawer-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.drawer-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.drawer-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(35, 36, 24, .4); }
/* Mobiles Menü: dunkelgrünes Vollbild-Overlay. Deckt auch die Safe-Areas ab,
   damit iOS Safari seine Leisten dunkel statt beige färbt. */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--wirt-2);
  padding: calc(110px + env(safe-area-inset-top)) 34px calc(30px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
body.drawer-open .nav-drawer {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease;
}
/* Hintergrund nicht mitscrollen, solange das Menü offen ist (iOS Safari). */
body.drawer-open { overflow: hidden; }
.nav-drawer a {
  font-family: var(--serif);
  font-size: 27px;
  color: var(--wirt-ink);
  padding: 14px 0;
  border-bottom: 1px solid rgba(236, 239, 219, .15);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .3s ease, transform .3s ease;
}
/* Reiter tauchen nacheinander von unten auf. */
body.drawer-open .nav-drawer a { opacity: 1; transform: none; }
body.drawer-open .nav-drawer a:nth-child(1) { transition-delay: .05s; }
body.drawer-open .nav-drawer a:nth-child(2) { transition-delay: .11s; }
body.drawer-open .nav-drawer a:nth-child(3) { transition-delay: .17s; }
body.drawer-open .nav-drawer a:nth-child(4) { transition-delay: .23s; }
body.drawer-open .nav-drawer a:nth-child(5) { transition-delay: .29s; }
body.drawer-open .nav-drawer a:nth-child(6) { transition-delay: .35s; }
.nav-drawer a:hover { text-decoration: none; color: var(--wirt-muted); }
.nav-drawer .drawer-partner {
  color: var(--wirt-muted);
  font-size: 18px;
  font-family: var(--sans);
  font-weight: 700;
  border-bottom: 0;
  margin-top: 12px;
}
.drawer-foot { margin-top: auto; font-size: 14.5px; color: var(--wirt-muted); }
/* Zurück-Pfeil oben links im offenen Menü (schließt es). */
.drawer-zurueck {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top));
  left: 18px;
  background: none;
  border: 0;
  padding: 8px 12px;
  color: var(--wirt-ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease;
}
body.drawer-open .drawer-zurueck { opacity: 1; }

/* ---------- Hero ---------- */
.hero { padding: 156px 0 28px; }
.hero-inner { display: grid; gap: 30px; align-items: center; }
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(37px, 7.5vw, 60px); letter-spacing: -.01em; }
.hero-text {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: 18px;
  color: var(--ink-soft);
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
/* Hero-Buttons bewusst schlicht (Umriss wie .btn-band), Icon/Pfeil inline. */
.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.hero-actions .btn svg { flex: 0 0 auto; }
/* Gleiches Format wie die Hof-Bilder (3:2). */
.hero-media img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hero-note {
  margin-top: 14px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- Grünes Band: Wirtshaus mit Geschichte ---------- */
.wirt-section {
  background: var(--wirt);
  color: var(--wirt-ink);
  padding: 72px 0;
  margin-top: 24px;
}
.wirt-section h2 { font-size: clamp(32px, 5.5vw, 48px); }
.wirt-section .lede-serif { color: var(--wirt-ink); opacity: .95; font-size: 21px; margin-top: 18px; }
.wirt-section p { color: var(--wirt-ink); }
.wirt-copy { max-width: 720px; margin: 0 auto; text-align: center; }
.wirt-copy p + p { margin-top: 14px; }
.wirt-section .btn-band { color: var(--wirt-ink); }

/* ---------- Hof & Stube ---------- */
.hof { padding: 64px 0 12px; }
.hof-head { max-width: 680px; }
.hof-head h2 { font-size: clamp(32px, 5.5vw, 46px); margin-top: 8px; }
.hof-head .lede-serif { margin-top: 14px; }
/* Symmetrisches Raster: 16:9 volle Breite → drei Quadrate → 16:9 volle
   Breite. Mobil (gestapelt) laufen die Quadrate einheitlich in 3:2,
   die vollen Reihen in 16:9. */
.hof-reihe { display: grid; gap: 20px; margin-top: 20px; }
.hof-head + .hof-reihe { margin-top: 36px; }
.hof-reihe figure { margin: 0; }
.hof-reihe img { border-radius: 10px; width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; }
.hof-reihe--voll img { aspect-ratio: 16 / 9; }
.hof-reihe figcaption {
  margin-top: 9px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Öffnungszeiten & Reservieren: reine Typografie ---------- */
/* Alle drei Spalten teilen sich EINE Serif-Größe (.z-zeile) und EINE
   Kleingedruckt-Größe (.klein) — bewusst keine weiteren Typo-Stufen. */
.zeiten { padding: 64px 0 84px; }
.zeiten-rule { border: 0; border-top: 1px solid var(--line); margin-bottom: 56px; }
.zeiten-grid { display: grid; gap: 36px; }
/* Mobil (gestapelt): dünne Trennlinien zwischen den drei Blöcken. */
.zeiten-grid > div + div { border-top: 1px solid var(--line); padding-top: 32px; }
.z-zeile {
  font-family: var(--serif);
  font-size: clamp(21px, 3.2vw, 25px);
  margin-top: 18px;
  line-height: 1.4;
}
.z-zeile:first-child { margin-top: 0; }
.z-adresse { font-style: normal; }
/* Live-Status (per JS, Berlin-Zeit): geöffnet = grün. */
.z-status { color: var(--ink-soft); }
.z-status.offen { color: var(--wirt); }
.z-tel {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--rebe);
}
.z-tel:hover { color: var(--rebe); text-decoration: none; }
.klein { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.route { font-weight: 600; }
.route:hover { text-decoration: none; color: var(--wirt); }

/* ---------- Braunes Band: Partnerwirtschaft ---------- */
/* Papier-Abstand nach unten, damit Braun nicht direkt auf den grünen
   Footer stößt. */
.partner {
  background: var(--rebe-deep);
  color: var(--rebe-ink);
  padding: 64px 0;
  margin-bottom: 56px;
}
.partner h2 { font-size: clamp(30px, 5vw, 42px); }
.partner .lede-serif { color: var(--rebe-ink); opacity: .95; margin-top: 12px; font-size: 19px; }
.partner p { margin-top: 14px; opacity: .95; max-width: 620px; }
.partner-grid { display: grid; gap: 30px; align-items: center; }
.partner .btn-band { color: var(--rebe-ink); }
/* Quadratische Plakette, Logo füllt sie großzügig (mobil kleiner). */
.partner-logo {
  background: var(--paper);
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  max-width: 230px;
  margin: 0 auto;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img { width: 100%; height: auto; }

/* ---------- Abschiedsgruß zwischen Partner-Band und Footer:
   warme Zeile + großer Gruß + die Logo-Signatur als Unterschrift. ---------- */
.abschied { text-align: center; padding: 6px 22px 64px; }
.abschied-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2.8vw, 21px);
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.abschied-zeile {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 4.5vw, 34px);
  color: var(--wirt);
}
.abschied-sig {
  height: 82px;
  width: auto;
  margin: 20px auto 0;
  display: block;
}

/* ---------- Footer ---------- */
/* Schlanker Footer ohne Trennlinie — auf allen Seiten identisch.
   Safe-Area unten: Footer-Grün zieht sich bis unter die iOS-Leiste. */
.site-footer {
  background: var(--wirt-2);
  color: var(--wirt-muted);
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  text-align: center;
}
.footer-bottom {
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}
.footer-copy { margin-top: 10px; font-size: 13.5px; }
.footer-bottom a { color: var(--wirt-muted); text-decoration: underline; }
.footer-bottom .credit { text-decoration: none; font-weight: 700; color: var(--wirt-ink); }

/* ---------- Unterseiten (Speisekarte, Geschichte, Impressum, Datenschutz) ---------- */
main.page-main { padding: 140px 22px 70px; max-width: 760px; margin: 0 auto; }
.page-main h1 { font-size: clamp(34px, 6vw, 50px); margin-bottom: 18px; }
.page-main h2 { font-size: 24px; margin: 30px 0 10px; }
.page-main p + p { margin-top: 12px; }
.page-main p { color: var(--ink-soft); }
.page-main ul { margin: 10px 0 10px 22px; color: var(--ink-soft); }
.zurueck { display: inline-block; margin-bottom: 26px; font-weight: 700; color: var(--rebe); }
.platzhalter {
  border: 1.5px dashed var(--muted);
  border-radius: 12px;
  background: var(--card);
  padding: 16px 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 14px 0;
}
.platzhalter strong { color: var(--ink); }

/* Speisekarte: volle Karte ohne Preise (Vorlage: gedruckte Karte). */
.karte-teller {
  display: block;
  width: min(330px, 72%);
  margin: 0 auto 26px;
  filter: drop-shadow(0 22px 28px rgba(35, 36, 24, .22));
}
.karte-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--rebe);
}
.karte-sektion { margin-top: 34px; }
.karte-sektion > h2 {
  font-size: 27px;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 8px;
}
.karte-sektion > h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--rebe);
  margin: 24px 0 2px;
}
.gericht { padding: 13px 0; border-bottom: 1px dotted var(--line); }
.gericht:last-child { border-bottom: 0; }
.gericht .g-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
}
.gericht .g-desc { font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
.gericht ul { list-style: none; margin: 6px 0 0; padding: 0; }
.gericht ul li {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 2px 0 2px 18px;
  position: relative;
}
.gericht ul li::before { content: "–"; position: absolute; left: 0; color: var(--rebe); }
.karte-hinweis {
  margin-top: 30px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1.5px solid var(--line);
  padding-top: 14px;
}

/* Geschichte-Seite: Erzähltext mit Jahresmarken */
.geschichte-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.page-main h2 { margin-top: 36px; }
.geschichte-bild { margin: 36px 0; }
.geschichte-bild img { border-radius: 10px; width: 100%; }
.geschichte-bild figcaption {
  margin-top: 9px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}
.quellen {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Reveal beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pfeil, .btn-tel svg { transition: none; }
  .nav-drawer, .nav-drawer a { transition: none; transform: none; }
}

/* ---------- Desktop ≥ 780px ---------- */
@media (min-width: 780px) {
  body { font-size: 17.5px; }
  .nav { padding: 10px 40px; }
  .brand img { height: 102px; }
  .nav-links { display: flex; }
  .nav-toggle, .nav-drawer, .nav-scrim { display: none; }
  .wrap { padding: 0 40px; }

  .hero { padding: 190px 0 68px; }
  .hero-inner { grid-template-columns: 1.02fr .98fr; gap: 52px; }
  .hero-copy { text-align: left; }
  .hero-text { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-note { text-align: left; }

  .wirt-section { padding: 96px 0; margin-top: 48px; }

  .hof { padding: 84px 0 20px; }
  .hof-reihe--trio { grid-template-columns: repeat(3, 1fr); }
  .hof-reihe--trio img { aspect-ratio: 1 / 1; }
  .hof-reihe--duo { grid-template-columns: 1fr 1fr; }
  .hof-reihe--duo img { aspect-ratio: 16 / 9; }

  .zeiten { padding: 84px 0 104px; }
  .zeiten-grid { grid-template-columns: 1fr 1.15fr 1fr; gap: 52px; }
  .zeiten-grid > div + div { border-top: 0; padding-top: 0; }

  .partner { padding: 84px 0; margin-bottom: 72px; }
  .partner-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; }
  .partner-logo { max-width: 340px; padding: 34px; }
}
