/* ==========================================================================
   Alt Hameln – gemeinsames Stylesheet für index.html, impressum.html
   und datenschutz.html.

   Aufbau: Mobile First. Die Basis-Werte gelten für Smartphones,
   Media Queries vergrößern erst ab Tablet/Desktop.

   Bewusst KEINE externen Schriftarten, KEINE Web-Fonts von Drittanbietern,
   KEINE Tracking- oder Analyse-Skripte. Alle Bilder liegen lokal im
   Projektordner. Der einzige externe Inhalt ist die Google-Maps-Karte –
   sie wird ausschließlich nach ausdrücklicher Einwilligung geladen
   (Einwilligungs-Banner + Klick auf „Karte laden“, siehe script.js).
   ========================================================================== */

:root {
  --color-primary: #7a1620;
  --color-primary-dark: #4c0f17;
  --color-dark: #1b1613;
  --color-dark-alt: #262019;
  --color-cream: #faf6ef;
  --color-cream-alt: #f1e7d7;
  --color-text: #2a2019;
  --color-text-light: #6f6153;
  --color-gold: #b3924f;
  --color-white: #ffffff;
  --color-border: rgba(42, 32, 25, 0.1);

  --radius-sm: 3px;
  --radius: 16px;
  --max-width: 1120px;

  --shadow-sm: 0 2px 10px rgba(27, 22, 19, 0.07);
  --shadow: 0 14px 36px -14px rgba(27, 22, 19, 0.3);
  --shadow-lift: 0 14px 26px -12px rgba(122, 22, 32, 0.4);

  --sticky-bar-height: 4.5rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Nur system-eigene Schriftarten -> keine externen Anfragen nötig */
  --font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

/* Sprungziele der Anker-Links (z. B. „Zur Speisekarte“) dürfen nicht
   unter dem mitlaufenden Header verschwinden – dieser Abstand hält sie
   frei. Die Werte entsprechen der Header-Höhe im zusammengeklappten
   Zustand (48 px bzw. 74 px) plus etwas Luft. script.js sorgt dafür,
   dass der Header schon vor dem Sprung zusammenklappt. */
section[id],
.dark-card[id] { scroll-margin-top: 70px; }

@media (min-width: 992px) {
  section[id],
  .dark-card[id] { scroll-margin-top: 96px; }
}

body {
  font-family: var(--font-base);
  background-color: var(--color-cream);
  color: var(--color-text);
  font-size: 0.97rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Platz für die fixierte Mobile-Bar, damit sie keinen Inhalt verdeckt */
  padding-bottom: var(--sticky-bar-height);
  /* Lange deutsche Wörter (z. B. "Datenschutzerklärung") sollen auf
     schmalen Bildschirmen sauber trennen statt überzulaufen */
  overflow-wrap: break-word;
  hyphens: auto;
}

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

a { color: inherit; }

svg { flex-shrink: 0; display: block; }

/* Einheitlicher, dezenter Fokus-Zustand statt Browser-Standard */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typografie (Mobile First: bewusst zurückhaltend) ---------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.6rem;
  color: var(--color-primary-dark);
  letter-spacing: -0.005em;
  font-weight: 400;
}

h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Kleine, ruhige Trennlinie unter Überschriften – ein wiederkehrendes,
   bewusst gesetztes Gestaltungselement statt Dekoration von der Stange */
.divider {
  display: block;
  width: 38px;
  height: 1.5px;
  margin: 1.3rem auto 1.7rem;
  background: var(--color-gold);
}
/* Steht die Linie am Ende eines Blocks, trägt der Block selbst den Abstand */
.divider:last-child { margin-bottom: 0; }

@media (min-width: 640px) {
  body { font-size: 1rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.2rem; }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; }
  .divider { width: 46px; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 3.75rem 0; }

.section-alt { background-color: var(--color-cream-alt); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.25rem;
}
.section-head p { color: var(--color-text-light); }
.section-head p:last-child { margin-bottom: 0; }

@media (min-width: 640px) {
  section { padding: 5.5rem 0; }
  .section-head { margin-bottom: 3rem; }
}

/* ---------- Skip-Link für Barrierefreiheit ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Header ---------- */
/*
  Das Logo ist das Herzstück der Marke und steht deshalb exakt mittig.
  Technisch liegt es per position:absolute außerhalb des Textflusses –
  dadurch bleibt es unabhängig davon zentriert, wie breit Navigation
  (links) und Telefonnummer (rechts) sind.

  Die Höhe steuert die Variable --logo-h. Auf dem Smartphone ist der
  Header bewusst sehr flach gehalten (rund 55 px) – das Querformat-Logo
  bleibt dabei gut lesbar, verdeckt aber nichts. Beim Scrollen setzt
  script.js die Klasse .is-scrolled und der Header wird noch flacher.
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  /*
    Deckende Fläche in exakt der Hintergrundfarbe von logoentwurfende.png
    (#f9f2ec, gemessen). Die Logodatei ist NICHT freigestellt, sie bringt
    ihre eigene cremefarbene Fläche mit. Nur wenn beide Farben identisch
    sind, verschwindet der Rand der Grafik vollständig.
    Deshalb hier bewusst kein durchscheinender Hintergrund: Sobald Inhalt
    darunter durchscheint, würde sich das Logo-Rechteck wieder abzeichnen.
  */
  background-color: #f9f2ec;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s var(--ease);
  --logo-h: 42px;
  --logo-max-w: 62vw;
}
.site-header.is-scrolled {
  --logo-h: 34px;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
  /* Das Logo ist absolut positioniert und kann die Höhe daher nicht
     selbst aufspannen – deshalb hier als Mindesthöhe hinterlegt. */
  min-height: calc(var(--logo-h) + 0.85rem);
  transition: min-height 0.3s var(--ease);
}

/* Logo-Grafik (logoentwurfende.png, Querformat 2078 x 757).
   Fehlt die Datei, setzt script.js automatisch logo.png ein. */
.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  height: var(--logo-h);
  width: auto;
  /* Sicherheitsnetz: Ein sehr breites Logo darf die Navigation nicht
     überlaufen. object-fit verhindert dabei jedes Verzerren. */
  max-width: var(--logo-max-w);
  object-fit: contain;
  transition: height 0.3s var(--ease);
}

/* Rechte Header-Gruppe: zweite Navigations-Hälfte + Telefonnummer */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.main-nav { display: none; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  padding-bottom: 0.3rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: right 0.25s var(--ease);
}
.main-nav a:hover { color: var(--color-primary-dark); }
.main-nav a:hover::after { right: 0; }

/*
  Telefonnummer im Header: auf Smartphone und Tablet bewusst AUSGEBLENDET.
  Dort übernimmt allein die fixierte Sticky-Bar am unteren Rand das
  Anrufen – so gibt es keine doppelten Handlungsaufforderungen.
  Ab 992px (dort verschwindet die Sticky-Bar) wird sie eingeblendet.
*/
.header-phone {
  display: none;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.header-phone:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

@media (min-width: 640px) {
  .site-header { --logo-h: 56px; --logo-max-w: 45vw; }
  .site-header.is-scrolled { --logo-h: 44px; }
  .header-inner { padding: 0.5rem 1.5rem; }
}

/* Ab 992px entfällt die Sticky-Bar: Navigation und Telefonnummer
   rücken links und rechts neben das mittige Logo. Hier darf das Logo
   deutlich größer werden – Platz ist genug vorhanden. */
@media (min-width: 992px) {
  .site-header { --logo-h: 78px; --logo-max-w: 260px; }
  .site-header.is-scrolled { --logo-h: 56px; }
  .header-inner { padding: 0.6rem 1.5rem; min-height: calc(var(--logo-h) + 1.1rem); }
  .main-nav { display: block; }
  .header-phone { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn svg { width: 15px; height: 15px; }

@media (min-width: 640px) {
  .btn { font-size: 0.8rem; padding: 0.95rem 1.85rem; letter-spacing: 0.1em; }
  .btn svg { width: 16px; height: 16px; }
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-light {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(250, 246, 239, 0.5);
}
.btn-outline-light:hover {
  border-color: var(--color-cream);
  background: rgba(250, 246, 239, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
/*
  Foto als CSS-Hintergrund (background-size: cover), darüber ein dunkles
  Overlay. Bewusst OHNE roten Farbanteil.

  DATENSCHUTZ – bitte beachten: Die Bild-URL zeigt auf images.unsplash.com.
  Dadurch baut der Browser jedes Gastes eine Verbindung zu Unsplash auf
  (dabei wird u. a. die IP-Adresse übertragen). Beschrieben ist das in
  der Datenschutzerklärung, Abschnitt 4a.

  Ohne diese externe Verbindung geht es so: Foto einmalig herunterladen,
  als hero.jpg in diesen Ordner legen und die Zeile darunter ersetzen durch
      background-image: url("hero.jpg");
  Dann ist auch Abschnitt 4a der Datenschutzerklärung hinfällig.

  Alternatives Motiv (Gasträume statt Tisch):
  https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1920&q=80
*/
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 62vh;
  background-color: #17110f;
  background-image: url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dunkles Overlay – liegt über dem Foto, aber unter der Schrift.
   Oben und unten kräftiger, in der Mitte durchsichtiger, damit das
   Motiv sichtbar bleibt und der Text trotzdem kontrastreich steht. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(17, 12, 10, 0.74) 0%, rgba(17, 12, 10, 0.54) 45%, rgba(17, 12, 10, 0.86) 100%),
    linear-gradient(90deg, rgba(17, 12, 10, 0.62) 0%, rgba(17, 12, 10, 0) 68%);
}

/* Nur oben/unten setzen – der seitliche Abstand kommt von .container
   und darf nicht von einer padding-Kurzschreibweise überschrieben werden */
.hero-inner {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  width: 100%;
}

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

.hero h1 {
  font-size: 2rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  /* Feiner Schattensaum – hilft dem Text auf hellen Bildstellen */
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  color: rgba(250, 246, 239, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  max-width: 34ch;
  font-size: 0.97rem;
  margin-bottom: 1.85rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.hero-actions .btn { width: 100%; }

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
}

@media (min-width: 640px) {
  .hero { min-height: 66vh; max-height: 720px; }
  .hero-inner { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .hero h1 { font-size: 3.2rem; }
  .hero-lead { font-size: 1.08rem; max-width: 44ch; margin-bottom: 2.25rem; }
}


/* ---------- Seiten-Hero (Impressum / Datenschutz) ---------- */
.page-hero {
  background-color: var(--color-dark);
  background-image:
    radial-gradient(ellipse at 25% 20%, rgba(122, 22, 32, 0.5), transparent 60%),
    linear-gradient(160deg, #241c18 0%, var(--color-dark) 100%);
  color: var(--color-cream);
  padding: 2.75rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 0.5rem; }
.page-hero p {
  color: rgba(250, 246, 239, 0.72);
  margin: 0;
  font-size: 0.88rem;
}

@media (min-width: 640px) {
  .page-hero { padding: 4rem 0; }
  .page-hero p { font-size: 1rem; }
}

/* ---------- Foto (foto.jpg, direkt unter den Öffnungszeiten) ---------- */
.photo-frame {
  margin: 1.25rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--color-cream-alt);
}
.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.photo-frame figcaption {
  padding: 0.9rem 1.25rem;
  background: var(--color-white);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-light);
  text-align: center;
}

@media (min-width: 640px) {
  .photo-frame { margin-top: 1.5rem; }
  .photo-frame img { aspect-ratio: 21 / 9; }
  .photo-frame figcaption { font-size: 0.76rem; }
}

/* ---------- Duo-Karten (Speisekarte / Öffnungszeiten) ---------- */
.duo-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .duo-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.dark-card {
  border-radius: var(--radius);
  padding: 2rem 1.65rem;
  color: var(--color-cream);
}
.dark-card h3 {
  color: var(--color-white);
  margin-bottom: 0.9rem;
}
.dark-card p {
  color: rgba(250, 246, 239, 0.78);
  font-size: 0.93rem;
}

@media (min-width: 640px) {
  .dark-card { padding: 2.75rem 2.25rem; }
}

.dark-card--maroon { background: linear-gradient(165deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); }
.dark-card--black { background: linear-gradient(165deg, var(--color-dark-alt) 0%, var(--color-dark) 100%); }

.dark-card .btn-outline-light { margin-top: 0.6rem; }

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(250, 246, 239, 0.12);
  font-size: 0.88rem;
}
.hours-row:last-of-type { border-bottom: none; }
.hours-row span:first-child { font-weight: 600; color: var(--color-white); }
.hours-row span:last-child { color: rgba(250, 246, 239, 0.78); text-align: right; }

/* ---------- Google-Bewertungen Ticker ---------- */
.ticker-outer {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* Die Dauer ist auf die Anzahl der Karten abgestimmt: Mehr Bewertungen
   bedeuten eine längere Spur und brauchen mehr Zeit, damit die
   Lauf­geschwindigkeit gleich angenehm bleibt (rund 36 px pro Sekunde). */
.ticker-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  padding: 0.25rem 0.25rem 1rem;
  animation: ticker-scroll 96s linear infinite;
}

/* Maus-Hover pausiert sofort (reines CSS) */
.ticker-outer:hover .ticker-track,
.ticker-outer:focus-within .ticker-track,
/* Touch-Pause wird von script.js per Klasse gesetzt */
.ticker-outer.is-paused .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.review-card {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 265px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem 1.35rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

/* Feine goldene Kante oben – verbindet die Karten mit dem übrigen Design */
.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), rgba(179, 146, 79, 0.15));
}

/* Dezentes Anführungszeichen als Hintergrund-Ornament */
.review-card::after {
  content: "\201C";
  position: absolute;
  top: 0.55rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(122, 22, 32, 0.09);
  pointer-events: none;
}

.review-stars {
  color: var(--color-gold);
  letter-spacing: 0.18em;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
}
/* Nicht vergebener Stern – für Bewertungen unter fünf Sternen.
   Die Zahl der Sterne wird so ehrlich dargestellt. */
.review-star-off { color: rgba(179, 146, 79, 0.28); }

.review-quote {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  color: var(--color-text);
  /* Schiebt die Fußzeile der Karte immer nach unten – dadurch stehen
     die Namen aller Karten auf einer Linie, egal wie lang der Text ist. */
  flex: 1 1 auto;
}

.review-name {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
}
.review-city {
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

@media (min-width: 640px) {
  .review-card { width: 300px; padding: 1.65rem 1.6rem 1.45rem; }
  .review-quote { font-size: 1rem; }
}

/* ---------- Standort / Google Maps ---------- */
.standort-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 760px) {
  .standort-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; }
}

.standort-info address {
  font-style: normal;
  color: var(--color-text-light);
  line-height: 1.85;
}
.standort-info address strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 0.15rem;
}

.standort-info .label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin: 1.5rem 0 0.3rem;
}
.standort-info .value {
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.standort-info .value:hover { border-color: var(--color-primary-dark); }

/* Karten-Feld: zeigt zunächst einen ruhigen Platzhalter. Erst nach Klick
   auf "Karte laden" wird per script.js ein iframe eingefügt -> keine
   Verbindung zu Google-Servern beim bloßen Aufruf der Seite. */
.map-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-dark);
}
@media (min-width: 640px) {
  .map-embed { aspect-ratio: 16 / 10; }
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-embed__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem;
  color: var(--color-cream);
}
.map-embed__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(179, 146, 79, 0.16), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(179, 146, 79, 0.12), transparent 45%);
}
.map-embed__placeholder > * { position: relative; }

.map-embed__placeholder svg {
  width: 30px;
  height: 30px;
  color: var(--color-gold);
  margin: 0 auto 1.1rem;
}

.map-embed__placeholder p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(250, 246, 239, 0.6);
  max-width: 30ch;
  margin: 1.1rem auto 0;
}

.map-embed.is-loaded .map-embed__placeholder { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(168deg, var(--color-dark-alt) 0%, var(--color-dark) 100%);
  color: var(--color-cream);
  padding: 3.25rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
  text-align: center;
  margin-bottom: 2.25rem;
}
@media (min-width: 640px) {
  .site-footer { padding: 4.5rem 0 1.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; gap: 3rem; }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-white);
  margin-bottom: 0.85rem;
}

.footer-col address {
  font-style: normal;
  color: rgba(250, 246, 239, 0.72);
  line-height: 1.8;
  font-size: 0.92rem;
}

.footer-col p {
  color: rgba(250, 246, 239, 0.72);
  font-size: 0.92rem;
}

.footer-label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.45);
  margin: 1rem 0 0.2rem;
}

.footer-value {
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(250, 246, 239, 0.22);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-value:hover { color: var(--color-gold); border-color: var(--color-gold); }

.footer-grid h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.1rem;
  margin: 0 0 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  padding: 1.75rem 0 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid rgba(250, 246, 239, 0.12);
}
.footer-links a {
  color: rgba(250, 246, 239, 0.75);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { color: var(--color-gold); border-color: var(--color-gold); }

.footer-copy {
  text-align: center;
  color: rgba(250, 246, 239, 0.42);
  font-size: 0.76rem;
  margin: 0;
}

/* ---------- Sticky-Bottom-Bar (nur Mobile) ---------- */
.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(27, 22, 19, 0.1);
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
}

.sticky-actions .btn {
  flex: 1;
  padding: 0.82rem 0.5rem;
  font-size: 0.71rem;
  letter-spacing: 0.09em;
}

.sticky-actions .btn-reserve {
  background-color: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}
.sticky-actions .btn-reserve:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (min-width: 992px) {
  .sticky-actions { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h2 { font-size: 1.2rem; margin-top: 2.5rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1rem; margin-top: 1.4rem; }
.legal-content address { font-style: normal; }
.legal-content ul { padding-left: 1.2rem; margin: 0 0 1.15rem; }
.legal-content li { margin-bottom: 0.45rem; }
.legal-content p,
.legal-content li,
.legal-content address { font-size: 0.93rem; }

@media (min-width: 640px) {
  .legal-content h2 { font-size: 1.4rem; }
  .legal-content p,
  .legal-content li,
  .legal-content address { font-size: 0.98rem; }
}

.legal-notice {
  background: var(--color-cream-alt);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.35rem;
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}
.legal-notice strong { color: var(--color-text); }

.platzhalter {
  background: rgba(179, 146, 79, 0.16);
  border-radius: 3px;
  padding: 0 0.3em;
  font-style: normal;
}

/* ==========================================================================
   RESERVIERUNG – Formular im Overlay (Modal)
   Markup: siehe index.html, Steuerung: siehe script.js
   ========================================================================== */

/* Nur für Screenreader sichtbar */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.btn-block { width: 100%; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  /* Mobile: Das Formular fährt als Blatt von unten herein – das ist auf
     dem Smartphone deutlich angenehmer als ein mittiges Fenster. */
  align-items: flex-end;
  justify-content: center;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 9, 0.62);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-cream);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.9rem 1.35rem calc(1.6rem + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 44px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .modal { align-items: center; padding: 2rem 1.5rem; }
  .modal__dialog {
    border-radius: var(--radius);
    padding: 2.5rem 2.25rem;
    box-shadow: 0 26px 60px -20px rgba(0, 0, 0, 0.55);
  }
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-light);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.modal__close svg { width: 16px; height: 16px; }
.modal__close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.modal__head { text-align: center; margin-bottom: 1.5rem; }
.modal__head h2 { margin-bottom: 0.35rem; }
.modal__head p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Formularfelder ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
}

.form-field { margin-bottom: 0.85rem; }
.form-row .form-field { margin-bottom: 0; }

.form-field > label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  /* 1rem = 16px verhindert das automatische Hineinzoomen auf iPhones */
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid rgba(42, 32, 25, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.9rem;
  min-height: 3rem;
  -webkit-appearance: none;
          appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field textarea { min-height: 5.5rem; resize: vertical; }

/* Eigener Pfeil für Auswahlfelder – als lokales data:-SVG, damit keine
   externe Datei nachgeladen werden muss. */
.form-field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6153' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(122, 22, 32, 0.13);
}

/* Fehlermarkierung erst, nachdem der Gast das Feld verlassen hat –
   nicht schon beim Öffnen des leeren Formulars. */
.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid {
  border-color: #b4232f;
  box-shadow: 0 0 0 3px rgba(180, 35, 47, 0.12);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin: -0.35rem 0 1rem;
}

/* Einwilligung Datenschutz */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text-light);
  margin: 0.35rem 0 1.35rem;
  cursor: pointer;
}
.form-check input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.form-check a { color: var(--color-primary-dark); font-weight: 600; }

/* Alternative direkt unter dem großen Button: Telefonnummer */
.form-alt {
  text-align: center;
  margin: 1.15rem 0 0;
  font-size: 0.88rem;
  color: var(--color-text-light);
}
.form-phone {
  display: inline-block;
  margin-top: 0.3rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-primary-dark);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(122, 22, 32, 0.28);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.form-phone:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* ---------- Kontaktformular auf der Impressum-Seite ----------
   Nutzt dieselben Feld-Bausteine wie das Reservierungsformular
   (.form-field, .form-check, .form-alt) und braucht deshalb nur
   die Breite und die Bestätigungsansicht. */
.kontakt-block {
  max-width: 620px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid rgba(42, 32, 25, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.35rem;
}

@media (min-width: 640px) {
  .kontakt-block { padding: 2.25rem 2.25rem 2rem; }
}

.kontakt-erfolg { text-align: center; }
.kontakt-erfolg h3 { margin-bottom: 0.5rem; }
.kontakt-erfolg p {
  color: var(--color-text-light);
  font-size: 0.93rem;
}
.kontakt-erfolg__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(122, 22, 32, 0.09);
  color: var(--color-primary);
}
.kontakt-erfolg__icon svg { width: 24px; height: 24px; }

/* Bestätigungsansicht nach dem Absenden */
.modal__success { text-align: center; }
.modal__success-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(122, 22, 32, 0.09);
  color: var(--color-primary);
}
.modal__success-icon svg { width: 24px; height: 24px; }
.modal__success p { color: var(--color-text-light); font-size: 0.93rem; }

/* ==========================================================================
   EINWILLIGUNGS-BANNER (Cookies & externe Inhalte)
   Wird von script.js erzeugt, damit er auf allen Seiten identisch ist.
   ========================================================================== */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  /* Auf dem Smartphone sitzt unten bereits die Sticky-Bar – der Banner
     legt sich sauber darüber statt sie zu verdecken. */
  bottom: calc(var(--sticky-bar-height) + env(safe-area-inset-bottom));
  z-index: 150;
  display: flex;
  justify-content: center;
  padding: 0 0.75rem 0.75rem;
  pointer-events: none;
}

.consent__inner {
  pointer-events: auto;
  width: 100%;
  max-width: 680px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  opacity: 0;
  transform: translateY(130%);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
}
.consent.is-visible .consent__inner { opacity: 1; transform: none; }

.consent__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  margin: 0 0 0.4rem;
}
.consent__text {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0 0 1rem;
}
.consent__text a { color: var(--color-primary-dark); font-weight: 600; }

/* Beide Schaltflächen bewusst gleich groß und gleich prominent –
   so verlangt es die Rechtsprechung zur Einwilligung. */
.consent__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
@media (min-width: 520px) {
  .consent__actions { grid-template-columns: 1fr 1fr; }
}
.consent__actions .btn { width: 100%; padding: 0.85rem 1rem; }

@media (min-width: 992px) {
  .consent { bottom: 0; padding: 0 1.5rem 1.5rem; }
  .consent__inner { padding: 1.4rem 1.6rem; }
}

/* Fußzeilen-Schaltfläche „Einwilligung ändern“: sieht aus wie die
   übrigen Footer-Links, ist technisch aber ein Button. */
.footer-links button {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  color: rgba(250, 246, 239, 0.75);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.footer-links button:hover { color: var(--color-gold); border-color: var(--color-gold); }

/* ---------- Rücksicht auf reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo img,
  .header-inner,
  .modal__dialog,
  .modal__backdrop,
  .consent__inner { transition: none; }
  .btn:hover { transform: none; }
}
