/* Hexenhof: Korrekturen am Webflow-Stand (ab 24.11.2026). Der Webflow-Export selbst bleibt unverändert. */

/* ---- Startseite: Pop-up „Aktuelles“ ---- */
/* Passt jetzt immer ins Fenster (vorher auf Laptops und im Querformat oben und unten abgeschnitten,
   der Ticket-Link war dann nicht erreichbar) und blendet weich ein. */
.section-5 { box-sizing: border-box; height: 100vh; height: 100dvh; padding: 16px; }
.div-block-79 {
  box-sizing: border-box; max-width: 100%; max-height: 100%; margin-top: 0; overflow-y: auto;
  justify-content: flex-start; box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  animation: hx-popup .5s cubic-bezier(.2, .8, .2, 1) both;
}
/* Breite fest (durch max-width der Klasse begrenzt), so steht der Platz vor dem Laden fest */
.div-block-79 .image-22 { width: 100%; height: auto; max-height: max(240px, calc(100dvh - 300px)); object-fit: contain; }
.div-block-80 { animation: hx-popup .5s .1s cubic-bezier(.2, .8, .2, 1) both; }
.section-4 { transition: filter .4s ease; }
@keyframes hx-popup { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .div-block-79, .div-block-80 { animation: none; } }
@media (max-height: 620px) {
  .div-block-79 { padding-top: 12px; padding-bottom: 12px; }
  .div-block-79 .text-center { margin-bottom: 12px; padding-bottom: 8px; }
  .div-block-79 .subtitle { margin-bottom: 4px; font-size: 14px; }
  .div-block-79 .heading-3 { margin: 0; font-size: 26px; }
}

/* ---- Startseite: Aufteilung ---- */
.grid-2 { height: 100dvh; }
/* Handy quer und sehr niedrige Fenster: beide Felder nebeneinander statt gestaucht übereinander
   (vorher lag das Logo der Kopfleiste über „Zu den Events“). */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 560px) {
  .grid-2 { grid-template-rows: auto; grid-template-columns: 1fr 1fr; min-height: 340px; }
  .div-block-4 { margin-top: 6px; }
  .image-4 { height: 56px; }
  .image-5 { width: 64px; }
  .heading-5 { font-size: 26px; }
}
@media (max-width: 359px) { .dropdown-2 { padding-left: 8px; padding-right: 8px; } }

/* ---- Reservierungen: Formular am Handy einspaltig (Feldnamen waren abgeschnitten) ---- */
@media (max-width: 479px) {
  .grid-2-columns.form > * { grid-area: auto / 1 / auto / -1 !important; }
  .grid-2-columns.form .select-field { width: 100%; height: 46px; }
}

/* ---- Tablet: Texte klebten am linken Rand ---- */
@media (min-width: 480px) and (max-width: 991px) {
  .container-default { box-sizing: border-box; padding-left: 24px; padding-right: 24px; }
}

/* ---- Schaltflächen nebeneinander: Abstand statt Berührung, gleiche Höhe ---- */
.buttons-row { gap: 16px; }
.buttons-row .dropdown-2 { margin-top: 0; }

/* ---- Events: Überschrift saß direkt auf dem Logo ---- */
.f-title-wrapper-center .image-6 { margin-bottom: 14px; }

/* ---- Fußbereich bis Tablet: eine ruhige, mittige Spalte statt verstreuter Blöcke ---- */
@media (max-width: 991px) {
  .footer-top { padding-top: 56px; padding-bottom: 48px; }
  .grid-footer-4-columns { display: flex; flex-direction: column; align-items: center; gap: 44px; text-align: center; }
  .grid-footer-4-columns > * { width: 100%; max-width: 520px; margin: 0; }
  .grid-footer-4-columns .footer-logo-wrapper { display: block; margin: 0 auto; }
  .grid-footer-4-columns .footer-logo-wrapper img { width: 150px; }
  .grid-footer-4-columns .inner-container p:empty { display: none; }
  .grid-footer-4-columns .footer-location { text-align: left; }
  .heading-8 { margin: 0; padding: 0; font-size: 28px; }
  .grid-footer-4-columns .w-layout-grid.grid { grid-template-columns: repeat(4, 1fr); gap: 22px 18px; margin-top: -24px; align-items: center; }
  .grid-footer-4-columns .w-layout-grid.grid img { width: 100%; height: auto; }
  .div-block-5 { display: flex; flex-direction: column; align-items: center; margin-top: 0; }
  .footer-list-wrapper { text-align: center; }
  .footer-list-item { margin-bottom: 4px; }
  .footer-link { display: inline-block; padding: 9px 12px; }
  .footer-bottom { flex-direction: row; justify-content: center; gap: 28px; }
  .footer-bottom a { padding: 8px 4px; }
}
@media (min-width: 480px) and (max-width: 991px) {
  .grid-footer-4-columns .w-layout-grid.grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 991px) { .grid-footer-4-columns .inner-container._312px p { display: none; } .grid-footer-4-columns .footer-logo-wrapper { margin-bottom: 0; } }

/* Laden (24.11.2026): Bilder tragen ihr Seitenverhältnis im HTML (werkzeuge/laden.py). Es gilt nur,
   bis das Bild geladen ist, so springt nichts und das fertige Layout bleibt unverändert. */
img[data-hx-l] { aspect-ratio: var(--hx-ar); }
/* Startseite: dunkler Grund, bis das Hintergrundfoto geladen ist (statt weiß) */
.container-2 { background-color: #3a2a26; }
/* Restaurant: Bildreihe oben von Anfang an in voller Breite (vorher erst, wenn die Bilder geladen waren) */
.grid-3-columns.hero-3-images-full-width { align-self: stretch; }
/* Einblendung im ersten Bildschirm ohne Warten auf webflow.js (werkzeuge/laden.py setzt data-hx-rein) */
[data-hx-rein] { animation: hx-rein .6s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes hx-rein { from { opacity: 0; transform: translateY(10%); } }
@media (prefers-reduced-motion: reduce) { [data-hx-rein] { animation: none; } }

/* ---- Runde 25.11.: Dropdown, Galerie, Über uns ---- */
/* Speisekarten-Dropdown: Liste klappt über dem Inhalt auf, statt den Knopf größer zu machen und Text zu verschieben */
.dropdown-2 { position: relative; }
.buttons-row { position: relative; z-index: 5; }  /* aufgeklappte Liste liegt über den Bildern darunter */
.dropdown-2 .dropdown-list, .dropdown-2 .dropdown-list.w--open {
  position: absolute !important; top: 100%; left: 50%; right: auto; transform: translateX(-50%);
  min-width: 100%; margin: 8px 0 0; border-radius: 10px; overflow: hidden; z-index: 900;
  background-color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.dropdown-2 .dropdown-list.w--open { animation: hx-klapp .18s ease-out both; }
.dropdown-2 .dropdown-list .w-dropdown-link { display: block; padding: 12px 22px; text-align: center; white-space: nowrap; }
@keyframes hx-klapp { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } }

/* Galerie „Unsere Highlights“ (Restaurant): seitlich wischbare Reihe, endet am letzten Foto */
.hx-galerie { position: relative; width: 100%; min-width: 0; }
.hx-galerie .w-slider-mask {
  display: flex; width: auto !important; max-width: none; height: auto; margin: 0 calc(50% - 50vw);
  padding: 0 0 0 calc(50vw - 50%) !important;  /* Reihe reicht links und rechts bis zum Fensterrand, erstes Foto startet an der Inhaltskante */
  overflow-x: auto !important; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; white-space: normal;
}
.hx-galerie .w-slider-mask::-webkit-scrollbar { display: none; }
.hx-galerie .w-slide { flex: 0 0 auto; width: 500px; height: 500px; margin: 0 40px 0 0; scroll-snap-align: start; }
.hx-galerie .w-slide:last-child { margin-right: calc(50vw - 50%); }
.hx-galerie .div-block-75 { width: 100%; height: 100%; }
.hx-galerie .slider-arrow { transition: opacity .2s; }
.hx-galerie .slider-arrow.hx-aus { opacity: .3; pointer-events: none; }
@media (max-width: 767px) {
  .hx-galerie .w-slide { width: min(78vw, 420px); height: min(78vw, 420px); margin-right: 16px; }
  .hx-galerie .slider-arrow.left---top-left { left: calc(50% - 58px); right: auto; }
  .hx-galerie .slider-arrow.right---top-left { left: calc(50% + 8px); right: auto; }
}

/* Event, „Über uns“: Bildgruppe wuchs mit der Fensterbreite und ragte auf breiten Bildschirmen in die Trennlinie */
@media (min-width: 992px) {
  ._3-images-right---grid { max-width: min(44%, 634px); right: max(0px, calc(50vw - 740px)); }
}
@media (min-width: 1920px) { .section.top.position-relative---z-index-1 { padding-bottom: 60px; } }
/* Abschnitt mit Galerie: seitlich weiter beschneiden, nach unten aber offen, damit die Dropdown-Liste nicht abgeschnitten wird */
.section.overflow-hidden:has(.hx-galerie) { overflow: visible; overflow-x: clip; }
.grid-2-columns:has(.dropdown-2) { overflow: visible !important; overflow-x: clip !important; }
