/* Shared table-booking/menu actions, based on the original location button. */
:root {
  --lgf-action-brand: #b34e40;
  --lgf-action-hover: #913f33;
  --lgf-action-pressed: #793429;
  --lgf-action-focus: #5a281f;
}

/* Beat the existing Elementor widget rules, only for these action controls. */
body :is(.elementor .elementor-element.elementor-widget .elementor-nav-menu, .elementor .elementor-widget, .lgf-menu, .lgf-reservation, .elementor-shortcode .rtb-booking-form .rtb-form-submit) :is(a.lgf-action, .rtb-booking-form button[type="submit"]) {
  --sb-font: "Roboto", Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 55px;
  max-width: 100%;
  padding: 17px var(--lgf-action-padding-inline, 29px);
  border: 1px solid var(--lgf-action-border, var(--lgf-action-brand));
  border-radius: 3px;
  background: var(--lgf-action-background, var(--lgf-action-brand));
  color: var(--lgf-action-color, #fff);
  font: 400 19px/19px "Roboto", Arial, sans-serif !important; /* Native header typography has a deeply nested selector. */
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  overflow-wrap: normal;
  cursor: pointer;
  opacity: 1;
  transform: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.lgf-action--menu {
  --lgf-action-background: #fff;
  --lgf-action-color: var(--lgf-action-brand);
}

/* The mega-menu paints its label separately from its link. */
body .elementor .elementor-widget .lgf-action .e-n-menu-title-text {
  font: inherit !important;
  color: inherit !important;
  padding: 0;
  transition: none;
}

body .elementor .elementor-widget .e-n-menu-title:has(> .lgf-action) {
  padding: 0;
  background: transparent;
}

body .elementor .elementor-widget .e-n-menu-heading:has(.lgf-action) {
  gap: 12px;
}

@media (max-width: 1024px) {
  body .elementor .elementor-widget .e-n-menu-heading:has(.lgf-action) {
    padding: 16px;
  }
  body .elementor .elementor-widget .e-n-menu-item:has(.lgf-action),
  body .elementor .elementor-widget .e-n-menu-title:has(> .lgf-action),
  body .elementor .elementor-widget .e-n-menu-heading a.lgf-action {
    width: 100%;
  }
}

body .elementor .elementor-widget a.lgf-action.elementor-item {
  width: fit-content;
}

@media (max-width: 767px) {
  /* The original footer keeps half-width columns even when stacked. Give the
     action column its available width so neither label breaks mid-word. */
  .elementor.elementor-location-footer .e-con:has(> .elementor-widget-nav-menu .lgf-action) {
    --width: 100%;
    width: 100%;
  }
}

/* Remove the old menu pointer/underline decoration from the two actions. */
.elementor a.lgf-action::before,
.elementor a.lgf-action::after {
  display: none;
}

/* Elementor's footer sets its own :focus colors, including pointer focus. */
body :is(.elementor .elementor-element.elementor-widget .elementor-nav-menu, .elementor .elementor-widget, .lgf-menu, .lgf-reservation, .elementor-shortcode .rtb-booking-form .rtb-form-submit) :is(a.lgf-action, .rtb-booking-form button[type="submit"]):focus {
  background: var(--lgf-action-background, var(--lgf-action-brand));
  border-color: var(--lgf-action-border, var(--lgf-action-brand));
  color: var(--lgf-action-color, #fff);
}

@media (hover: hover) and (pointer: fine) {
  body :is(.elementor .elementor-element.elementor-widget .elementor-nav-menu, .elementor .elementor-widget, .lgf-menu, .lgf-reservation, .elementor-shortcode .rtb-booking-form .rtb-form-submit) :is(a.lgf-action, .rtb-booking-form button[type="submit"]):hover {
    background: var(--lgf-action-hover-background, var(--lgf-action-hover));
    border-color: var(--lgf-action-hover);
    color: var(--lgf-action-hover-color, #fff);
    opacity: 1;
  }
  .lgf-action--menu {
    --lgf-action-hover-background: #fff1eb;
    --lgf-action-hover-color: var(--lgf-action-hover);
  }
}

body :is(.elementor .elementor-element.elementor-widget .elementor-nav-menu, .elementor .elementor-widget, .lgf-menu, .lgf-reservation, .elementor-shortcode .rtb-booking-form .rtb-form-submit) :is(a.lgf-action, .rtb-booking-form button[type="submit"]):focus-visible {
  outline: 3px solid var(--lgf-action-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}

body :is(.elementor .elementor-element.elementor-widget .elementor-nav-menu, .elementor .elementor-widget, .lgf-menu, .lgf-reservation, .elementor-shortcode .rtb-booking-form .rtb-form-submit) :is(a.lgf-action, .rtb-booking-form button[type="submit"]):active {
  background: var(--lgf-action-pressed);
  border-color: var(--lgf-action-pressed);
  color: #fff;
  opacity: 1;
  transform: none;
}

body :is(.elementor .elementor-element.elementor-widget .elementor-nav-menu, .elementor .elementor-widget, .lgf-menu, .lgf-reservation, .elementor-shortcode .rtb-booking-form .rtb-form-submit) :is(a.lgf-action, .rtb-booking-form button[type="submit"]):disabled {
  background: #e5d5d0 !important; /* Booking plugin's :is() includes an unrelated ID selector. */
  border-color: #e5d5d0;
  color: #714e47;
  cursor: not-allowed;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  body :is(.elementor .elementor-element.elementor-widget .elementor-nav-menu, .elementor .elementor-widget, .lgf-menu, .lgf-reservation, .elementor-shortcode .rtb-booking-form .rtb-form-submit) :is(a.lgf-action, .rtb-booking-form button[type="submit"]) {
    transition: none;
  }
}

/* A scrolling logo over the hero; only navigation and booking float. */
html:has(.lgf-site-bar) {
  /* Immediate native anchors also let rapid navigation interrupt prior jumps. */
  scroll-behavior: auto;
  --lgf-bar-space: calc(72px + env(safe-area-inset-top, 0px));
  --lgf-booking-space: calc(95px + env(safe-area-inset-bottom, 0px));
  scroll-padding-block-start: calc(var(--lgf-bar-space) + 12px);
  scroll-padding-block-end: var(--lgf-booking-space);
}
body:has(> .lgf-site-bar) {
  padding-block-start: var(--lgf-bar-space);
  padding-block-end: var(--lgf-booking-space);
}
/* Replace only the old Elementor header's presentation; its native data remains
   available for the exact deployment rollback. The original logo is reused. */
body:has(> .lgf-site-bar--home) { padding-block-start: 0; }
body:has(> .lgf-site-bar) .elementor-location-header {
  display: none !important;
}
.lgf-site-bar {
  position: absolute;
  z-index: 1000;
  inset-block-start: 0;
  inset-inline: 0;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
.lgf-site-bar__inner {
  padding: calc(16px + env(safe-area-inset-top, 0px)) calc(24px + env(safe-area-inset-right, 0px)) 0 calc(24px + env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}
.lgf-site-bar__brand { display: block; width: fit-content; line-height: 0; pointer-events: auto; }
.lgf-site-bar__brand img { display: block; width: 108px; height: auto; }
.lgf-site-bar nav {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  display: flex;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
}
[dir="rtl"] .lgf-site-bar nav { right: auto; left: calc(24px + env(safe-area-inset-left, 0px)); }
body .lgf-site-bar a.lgf-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  box-sizing: border-box;
  border: 1px solid #e5d5d0;
  border-radius: 3px;
  color: #3f3f3f;
  background: #fff;
  box-shadow: 0 3px 12px rgb(50 24 18 / 12%);
  font: 400 18px/22px Roboto, Arial, sans-serif;
  text-decoration: none;
  text-underline-offset: 6px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
body .lgf-site-bar a[aria-current="page"] {
  color: #913f33;
  background: #fff1eb;
  border-color: #e5d5d0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
@media (hover: hover) and (pointer: fine) {
  body .lgf-site-bar a.lgf-nav-link:hover { color: #913f33; background: #fff1eb; }
}
body .lgf-site-bar a.lgf-nav-link:active { color: #fff; background: #793429; }
body .lgf-site-bar a:focus-visible {
  outline: 3px solid #5a281f;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
@media (max-width: 800px) {
  .lgf-site-bar__inner {
    padding-inline: 16px;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }
  .lgf-site-bar__brand img { width: 88px; }
  .lgf-site-bar nav { gap: 8px; right: calc(16px + env(safe-area-inset-right, 0px)); }
  [dir="rtl"] .lgf-site-bar nav { right: auto; left: calc(16px + env(safe-area-inset-left, 0px)); }
  body .lgf-site-bar a.lgf-nav-link { font-size: 16px; padding-inline: 12px; }
}
.lgf-reservation {
  position: fixed;
  z-index: 999; /* The date/time picker remains above both persistent controls. */
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.lgf-reservation.is-docked-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}
#reservieren {
  scroll-margin-block-start: calc(var(--lgf-bar-space, 72px) + 16px);
}
@media (max-width: 600px) {
  .lgf-reservation {
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  }
  body .lgf-reservation a.lgf-action {
    min-height: 46px;
    padding: 12px 18px;
    font-size: 16px !important;
    line-height: 18px !important;
  }
}
/* Reflow & 200% CSS-Zoom safety (WCAG 1.4.10 / 2.4.11): dock top nav inline on short viewports. */
@media (max-height: 500px) {
  html:has(.lgf-site-bar) {
    --lgf-bar-space: 0px;
    --lgf-booking-space: calc(68px + env(safe-area-inset-bottom, 0px));
  }
  .lgf-site-bar {
    position: relative;
    background: #fff9ef;
    border-bottom: 1px solid #e5d5d0;
    pointer-events: auto;
  }
  .lgf-site-bar--home {
    position: absolute;
    background: transparent;
    border-bottom: 0;
    pointer-events: none;
  }
  .lgf-site-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-bottom: 10px;
  }
  .lgf-site-bar nav {
    position: static;
    margin-inline-start: auto;
    gap: 8px;
  }
  body .lgf-site-bar a.lgf-nav-link {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 15px;
  }
  .lgf-reservation {
    right: calc(10px + env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  body .lgf-reservation a.lgf-action {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 15px !important;
    line-height: 17px !important;
  }
}
/* Static warm glow: a clear call to action without continuous motion. */
body .lgf-reservation a.lgf-action {
  box-shadow: 0 0 0 4px rgb(179 78 64 / 9%), 0 0 24px rgb(179 78 64 / 25%), 0 5px 16px rgb(50 24 18 / 15%);
}
body #lgf-reservation a.lgf-action:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 22px rgb(179 78 64 / 25%);
}
/* Keep the menu's own sticky category list below the global bar. */
body:has(.lgf-site-bar) .lgf-menu__sidebar {
  top: calc(var(--lgf-bar-space) + 24px);
  max-height: calc(100dvh - var(--lgf-bar-space) - var(--lgf-booking-space) - 48px);
}
@media (max-width: 767px) {
  body:has(.lgf-site-bar) .lgf-menu__sidebar { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  body .lgf-site-bar a.lgf-nav-link,
  .lgf-reservation { transition: none; }
}
@media print {
  .lgf-site-bar, .lgf-reservation { display: none; }
  body:has(> .lgf-site-bar) { padding-block: 0; }
}

/* Evidence-backed visitor copy; original section hierarchy remains intact. */
.lgf-seo-copy { font-family: Roboto, sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.65; max-width: 70ch; margin: 1rem auto; color: #333; }
.elementor-widget-heading .lgf-seo-copy { text-align: center; }
.lgf-seo-copy a { color: #963e32; text-decoration: underline; text-underline-offset: .18em; }
.lgf-seo-copy a:hover { color: #6b2c23; }
.lgf-seo-copy a:focus-visible { outline: 3px solid #963e32; outline-offset: 4px; border-radius: 2px; }
.lgf-menu__editorial { margin-block: 1.5rem; }
.lgf-menu__editorial .lgf-seo-copy, .lgf-menu__contact .lgf-seo-copy { margin-inline: 0; }

/* Visitor facts and menu comparisons: native text/table semantics, no JS. */
.lgf-answers { margin-block: 2rem; color: #292521; text-align: left; }
.lgf-answers h2 { font-size: clamp(1.4rem, 2.7vw, 2rem); line-height: 1.25; margin: 0 0 1rem; }
.lgf-answers .lgf-answer { font: 400 1rem/1.65 Roboto, sans-serif; max-width: 75ch; margin: 0 0 1.25rem; }
.lgf-answer-table { overflow-x: auto; margin-block: 1.25rem; border: 1px solid #e4d8d1; border-radius: 3px; }
.lgf-answer-table table { width: 100%; border-collapse: collapse; margin: 0; font: 400 1rem/1.5 Roboto, sans-serif; }
.lgf-answer-table caption { text-align: left; font-weight: 600; padding: .85rem; background: #faf6f2; color: #292521; }
.lgf-answer-table th, .lgf-answer-table td { text-align: left; vertical-align: top; padding: .8rem; border: 0; border-top: 1px solid #e4d8d1; overflow-wrap: anywhere; }
.lgf-answer-table thead th { background: #f6e9e3; font-weight: 600; }
.lgf-answer-table tbody th { font-weight: 500; }
.lgf-answer-table tbody td:last-child { min-width: 5rem; }
.lgf-answers a { color: #963e32; text-decoration: underline; text-underline-offset: .16em; }
.lgf-answers a:hover { color: #6b2c23; }
.lgf-answers a:focus-visible, .lgf-answer-table:focus-visible { outline: 3px solid #963e32; outline-offset: 3px; }
.lgf-answer-facts { padding-left: 1.2rem; margin: 1rem 0; font: 400 1rem/1.65 Roboto, sans-serif; }
.lgf-answer-facts li { margin: .35rem 0; }
.lgf-faq { border-top: 1px solid #e4d8d1; padding-top: 1.25rem; margin-top: 1.25rem; }
.lgf-faq h3 { font: 600 1.125rem/1.4 Roboto, sans-serif; margin: 0 0 .65rem; }
@media (max-width: 420px) { .lgf-answer-table table { font-size: .9rem; } .lgf-answer-table th, .lgf-answer-table td { padding: .6rem .45rem; } }
@media print { .lgf-answer-table { overflow: visible; } .lgf-answer-table table { table-layout: fixed; } .lgf-answer-table tr { break-inside: avoid; } }

.lgf-home-answers { background: #fff9ef; padding: clamp(20px, 4vw, 48px); }
.lgf-home-answers__inner { max-width: 1200px; margin-inline: auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: start; }
.lgf-home-answers .lgf-answers { min-width: 0; margin-block: 0; }
.lgf-menu .lgf-answer-table table { table-layout: fixed; }
.lgf-menu .lgf-answer-table th:first-child { width: 25%; overflow-wrap: normal; }
.lgf-menu .lgf-answer-table th:last-child { width: 18%; }
@media (max-width: 767px) { .lgf-home-answers__inner { grid-template-columns: minmax(0,1fr); gap: 32px; } }
@media (max-width: 600px) { .lgf-menu .lgf-answer-table th:first-child { width: 32%; } .lgf-menu .lgf-answer-table th:last-child { width: 22%; } }

/* 2-click Google Maps consent card (§ 165 TKG 2021 / DSGVO) */
.lgf-map-consent { width: 100%; min-height: 320px; display: flex; }
.lgf-map-consent__card {
  width: 100%;
  box-sizing: border-box;
  padding: clamp(20px, 3.5vw, 32px);
  border: 1px solid #e4d8d1;
  border-radius: 3px;
  background: #faf6f2;
  color: #292521;
  font-family: Roboto, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-align: left;
}
.lgf-map-consent__title { margin: 0; font-size: 1.125rem; line-height: 1.4; color: #292521; }
.lgf-map-consent__meta { margin: 0; font-size: 1rem; line-height: 1.5; color: #3f3f3f; }
.lgf-map-consent__privacy { margin: 4px 0 8px; font-size: 0.9rem; line-height: 1.55; color: #4f4844; max-width: 64ch; }
.lgf-map-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lgf-map-consent__btn,
.lgf-map-consent__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 1px solid var(--lgf-action-brand);
  border-radius: 3px;
  font: 500 16px/1.2 Roboto, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.lgf-map-consent__btn { background: var(--lgf-action-brand); color: #fff; }
.lgf-map-consent__link { background: #fff; color: var(--lgf-action-brand); }
.lgf-map-consent__btn:hover { background: var(--lgf-action-hover); border-color: var(--lgf-action-hover); color: #fff; }
.lgf-map-consent__link:hover { background: #fff1eb; border-color: var(--lgf-action-hover); color: var(--lgf-action-hover); }
.lgf-map-consent__btn:focus-visible,
.lgf-map-consent__link:focus-visible { outline: 3px solid var(--lgf-action-focus); outline-offset: 2px; }
.lgf-map-consent__iframe { width: 100%; min-height: 360px; border: 0; border-radius: 3px; display: block; }
