/*
 * Grand Eventhalle – Ergaenzungen zum Original-Divi-CSS.
 * Ersetzt das, was frueher per JavaScript gesetzt wurde, plus Lightbox und Formular.
 */

body.custom-background { background-color: #752939; }

/* ---------- Ohne JavaScript / bei reduzierter Bewegung alles sofort zeigen ---------- */
.no-js .et_animated,
.no-js .et-waypoint { opacity: 1 !important; transform: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .et_animated, .et-waypoint { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ---------- Startseiten-Hero: Text mittig, gut lesbar, ohne Animation ---------- */
.et_pb_fullwidth_header.et_pb_fullscreen .et_pb_fullwidth_header_container {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 90%; max-width: 1080px; height: auto; padding: 60px 0;
  min-height: calc(100vh - var(--geh-header, 120px));
}
.et_pb_fullwidth_header.et_pb_fullscreen .header-content-container { width: 100%; }
.et_pb_fullwidth_header_0.et_pb_fullwidth_header .et_pb_fullwidth_header_container .header-content {
  max-width: 800px; width: 100%; margin: 0 auto; padding: 0; text-align: center;
}
.et_pb_fullwidth_header_0.et_pb_fullwidth_header .header-content h1 {
  text-align: center; text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}
.et_pb_fullwidth_header_0.et_pb_fullwidth_header .et_pb_header_content_wrapper {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6); line-height: 1.5;
}
.et_pb_fullwidth_header_0.et_pb_fullwidth_header .et_pb_fullwidth_header_overlay { background-color: rgba(29, 38, 51, .55); }
@media (max-width: 980px) {
  .et_pb_fullwidth_header.et_pb_fullscreen .et_pb_fullwidth_header_container { min-height: clamp(380px, 60vh, 560px); padding: 50px 0; }
  .et_pb_fullwidth_header_0 .et_parallax_bg { background-position: 65% center; }
}
@media (max-width: 767px) {
  .et_pb_fullwidth_header.et_pb_fullscreen .et_pb_fullwidth_header_container { min-height: clamp(320px, 52vh, 460px); padding: 40px 0; }
  .et_pb_fullwidth_header_0.et_pb_fullwidth_header .header-content h1 { font-size: 36px; line-height: 1.2; padding-bottom: 12px; }
  .et_pb_fullwidth_header_0.et_pb_fullwidth_header .et_pb_header_content_wrapper { font-size: 16px; }
}

/* ---------- Parallax ohne JS ---------- */
.et_parallax_bg.et_pb_parallax_css { background-attachment: fixed; }
@media (hover: none), (max-width: 980px) {
  .et_parallax_bg.et_pb_parallax_css { background-attachment: scroll; }
}

/* ---------- Mobile Optimierung (Smartphone) ---------- */
@media (max-width: 767px) {
  /* Kopfbereiche der Unterseiten Location / Events / Service */
  .page-id-321 .et_pb_section_0, .page-id-236 .et_pb_section_0, .page-id-258 .et_pb_section_0 {
    padding-top: 56px !important; padding-bottom: 56px !important;
  }
  .page-id-321 .et_pb_section_0 .et_pb_row, .page-id-236 .et_pb_section_0 .et_pb_row, .page-id-258 .et_pb_section_0 .et_pb_row {
    padding-top: 0 !important; padding-bottom: 0 !important;
  }
  /* Startseite: Abstaende */
  .home .et_pb_section_1 { padding-top: 40px !important; padding-bottom: 20px !important; }
  .home .et_pb_section_2 { padding-top: 40px !important; }
  .home .et_pb_section_3 .et_pb_row_5 { padding-top: 70px !important; padding-bottom: 80px !important; }
  /* Startseite: vier Einstiegs-Kacheln als 2x2-Raster */
  .home .et_pb_row_0 { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .home .et_pb_row_0 > .et_pb_column { width: 47% !important; margin: 0 0 30px !important; }
  .home .et_pb_row_0 .et_pb_blurb .et_pb_module_header { font-size: 17px; padding-bottom: 0; }
  .home .et_pb_row_0 .et_pb_main_blurb_image { margin-bottom: 14px; }
  /* Grosse Ueberschriften auf Handygroesse */
  .home .et_pb_text_0 h1, .page-id-225 .et_pb_text_0 h1 { font-size: 42px !important; }
  .home .et_pb_text_4 h1 { font-size: 34px !important; line-height: 1.2 !important; }
  .page-id-98 .et_pb_text_0 h1 { font-size: 34px !important; }
  /* Galerie zweispaltig */
  .et_pb_gallery_grid .et_pb_gallery_item.et_pb_grid_item {
    width: 47.5% !important; margin: 0 5% 5% 0 !important; clear: none !important;
  }
  .et_pb_gallery_grid .et_pb_gallery_item.et_pb_grid_item:nth-child(2n) { margin-right: 0 !important; }
  .et_pb_gallery_grid .et_pb_gallery_item.et_pb_grid_item:nth-child(2n+1) { clear: both !important; }
}

/* ---------- Galerie (frueher per JS eingeblendet) ---------- */
.et_pb_gallery_grid .et_pb_gallery_item { display: block; }

/* ---------- Mobiles Menue ---------- */
.mobile_nav .et_mobile_menu { display: none; }
.mobile_nav.opened .et_mobile_menu { display: block; }
.mobile_menu_bar_toggle:focus-visible { outline: 2px solid #752939; outline-offset: 4px; }

/* ---------- Kontaktformular ---------- */
.geh-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.et_pb_contact .et_pb_contact_field_checkbox { position: relative; }
.et_pb_contact p input[type=checkbox] {
  display: block; position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: 0; opacity: 0;
}
.et_pb_contact p input[type=checkbox]:focus-visible + label i { outline: 2px solid #752939; outline-offset: 2px; }
.et-pb-contact-message ul { margin: 0 0 1em 1.2em; list-style: disc; }
.et_pb_contact_submit[disabled] { opacity: .6; cursor: wait; }
.et_contact_bottom_container .et_pb_contact_submit { min-height: 53px; } /* Hoehe wie frueher neben dem Captcha-Feld */

/* ---------- Lightbox ---------- */
.geh-lightbox {
  position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center;
  background: rgba(11, 11, 11, .88); padding: 40px 60px;
}
.geh-lightbox.geh-lb-open { display: flex; }
.geh-lightbox figure { margin: 0; text-align: center; max-width: 100%; }
.geh-lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 110px); margin: 0 auto; box-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.geh-lightbox figcaption { color: #f3f3f3; font-size: 14px; padding-top: 10px; }
.geh-lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .65;
  font: 300 48px/1 'Open Sans', Arial, sans-serif; padding: 10px;
}
.geh-lightbox button:hover, .geh-lightbox button:focus-visible { opacity: 1; }
.geh-lb-close { top: 4px; right: 10px; font-size: 40px !important; }
.geh-lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.geh-lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.geh-lb-single .geh-lb-prev, .geh-lb-single .geh-lb-next { display: none; }
@media (max-width: 767px) {
  .geh-lightbox { padding: 50px 10px; }
  .geh-lb-prev, .geh-lb-next { top: auto; bottom: 0; transform: none; }
}

/* ---------- Footer: Links und Instagram in einer Zeile ---------- */
.geh-footer-row { display: flex; align-items: center; flex-wrap: wrap; }
.geh-footer-row .bottom-nav { padding: 15px 0; }
.geh-footer-row .et-social-icons { float: none; margin: 0; padding: 0; line-height: 1; }
.geh-footer-row .et-social-icons li { margin: 0; }
.geh-footer-row .et-social-icon a { color: #752939; font-size: 20px; }
@media (max-width: 980px) {
  .geh-footer-row { justify-content: center; }
}

/* ---------- Datenschutzerklaerung ---------- */
.page-id-274 .et_pb_blurb_description { max-width: 860px; }
.page-id-274 .et_pb_blurb_description h2 { font-size: 21px; font-weight: 600; color: #333; padding: 28px 0 10px; line-height: 1.3; }
.page-id-274 .et_pb_blurb_description ul { list-style: disc; padding: 0 0 1em 1.4em; line-height: 1.7; }
.page-id-274 .et_pb_blurb_description a { color: #752939; text-decoration: underline; overflow-wrap: anywhere; }

/* ---------- Einfache Textseiten (404 / Danke / Fehler) ---------- */
.geh-simple { padding: 80px 0 100px; min-height: 40vh; }
.geh-simple h1 { font-family: 'Oswald', Helvetica, Arial, Lucida, sans-serif; font-weight: 700; text-transform: uppercase; font-size: 40px; color: #1a1a1a; padding-bottom: 20px; }
