@media (max-width: 860px), (max-device-width: 860px) {
  body {
    font-size: 13px;
  }

  .page-images {
    display: flex !important;
    order: 2 !important;
    width: 100% !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 16px !important;
  }
}
/* ==========================================================================
   Koeln Fuehrungen - Originalgetreue Modernisierung
   Reproduziert das originale Xara-Layout mit modernem HTML/CSS (Flexbox)
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --red: #C52D28;
  --dark-red: #BF0000;
  --gray-bg: #E5E5E5;
  --text: #333333;
  --white: #FFFFFF;
  --black: #000000;
  --font: 'Trebuchet MS', Tahoma, sans-serif;
  --container-width: 1020px;
  --sidebar-width: 172px;
  --images-width: 260px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--gray-bg);
}

/* JS-Fallback: erzwingt Mobile-Layout, falls Firefox Media Queries falsch auswertet */
body.js-mobile .page-container {
  padding: 8px 2vw !important;
}

body.js-mobile .content-wrapper {
  flex-direction: column !important;
  padding: 8px 10px 30px !important;
}

body.js-mobile .main-content {
  width: 100% !important;
}

body.js-mobile .main-content {
  order: 1 !important;
}

body.js-mobile .page-images {
  display: flex !important;
  order: 2 !important;
  width: 100% !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

body.js-mobile .page-container > .subtitle-bar,
body.js-mobile .page-container > .content-wrapper > .sidebar-nav {
  display: none !important;
}

body.js-mobile .mobile-header-content {
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s !important;
}

body.js-mobile .mobile-header-content.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s !important;
}

body.mobile-menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #030303;
}

body.ui-theme-light {
  background-color: #ffffff;
  color: #000000;
}

body.ui-theme-dark {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.ui-theme-dark .page-container,
body.ui-theme-dark .site-header,
body.ui-theme-dark .main-content,
body.ui-theme-dark .site-footer {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.ui-theme-dark .nav-bg {
  background-color: #202020 !important;
  color: #ffffff !important;
}

body.ui-theme-dark .main-content,
body.ui-theme-dark .main-content p,
body.ui-theme-dark .main-content li,
body.ui-theme-dark .main-content dd,
body.ui-theme-dark .main-content h2,
body.ui-theme-dark .main-content h3,
body.ui-theme-dark .events-table,
body.ui-theme-dark .events-table td,
body.ui-theme-dark .site-footer a,
body.ui-theme-dark .main-content a {
  color: #ffffff !important;
}

/* Rote Texte aus dem Hellmodus auch im Dunkelmodus rot halten. */
body.ui-theme-dark .main-content h2,
body.ui-theme-dark .main-content .info-block .label {
  color: var(--dark-red) !important;
}

body.ui-theme-dark .main-content [style*="color:#bf0000"],
body.ui-theme-dark .main-content [style*="color: #bf0000"],
body.ui-theme-dark .main-content [style*="color:#c52d28"],
body.ui-theme-dark .main-content [style*="color: #c52d28"],
body.ui-theme-dark .main-content [style*="color:#e03e2d"],
body.ui-theme-dark .main-content [style*="color: #e03e2d"],
body.ui-theme-dark .main-content [style*="color:#ff0000"],
body.ui-theme-dark .main-content [style*="color: #ff0000"],
body.ui-theme-dark .main-content [style*="color:red"],
body.ui-theme-dark .main-content [style*="color: red"] {
  color: #bf0000 !important;
}

body.ui-theme-dark .events-table {
  background-color: #0b0b0b !important;
  border-color: #242424 !important;
}

body.ui-theme-dark .events-table td {
  border-color: #242424 !important;
}

body.ui-theme-dark .events-table tr.event-action-row td {
  background-color: #0b0b0b !important;
  border-color: #242424 !important;
}

body.ui-theme-dark .events-table tr.event-action-row,
body.ui-theme-dark .events-table tr.event-action-row td,
body.ui-theme-dark .events-table td.event-actions-cell,
body.ui-theme-dark .events-table td.event-action-cell,
body.ui-theme-dark .events-table td.event-action-cell-single {
  border: 1px solid #000000 !important;
}

body.ui-theme-dark .events-table tbody tr:nth-child(odd) {
  background-color: #101010 !important;
}

body.ui-theme-dark .events-table tbody tr:nth-child(even) {
  background-color: #202020 !important;
}

body.ui-theme-dark .events-table tbody tr:hover {
  background-color: #2a2a2a !important;
}

body.ui-theme-dark .event-go-category {
  border-color: #202020 !important;
}

body.ui-theme-dark .event-book-btn,
body.ui-theme-dark .event-booking-toggle {
  border-top-color: #202020 !important;
}

/* ---------- Desktop Theme Toggle ---------- */
.desktop-theme-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 6px 10px 2px;
}

.theme-toggle-label {
  color: #4a4a4a;
  font-family: var(--font);
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

body.ui-theme-dark .theme-toggle-label {
  color: #d6d6d6;
}

.desktop-theme-toggle {
  width: 27px;
  height: 27px;
  border: 2px solid #e5e5e5;
  border-radius: 50%;
  background: linear-gradient(to bottom, #000 50%, #fff 50%);
  padding: 0;
  cursor: pointer;
  flex: 0 0 27px;
}

.desktop-theme-toggle[data-theme="dark"] {
  background: linear-gradient(to bottom, #fff 50%, #000 50%);
}

.desktop-theme-toggle[data-theme="light"] {
  background: linear-gradient(to bottom, #000 50%, #fff 50%);
}

.desktop-theme-toggle:hover,
.desktop-theme-toggle:focus-visible {
  opacity: 0.82;
  outline: none;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 0 0 4px 4px;
  font-size: 13px;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Page Container ---------- */
.page-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  background: var(--white);
  box-shadow: 5px 5px 6px rgba(0, 0, 0, 0.25);
  position: relative;
}

.page-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 24, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  z-index: 20;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  height: auto;
  overflow: hidden;
  background-color: var(--red);
  box-shadow: 5px 5px 6px rgba(0, 0, 0, 0.25);
}

.header-panorama {
  position: relative;
  width: 100%;
  height: auto;
  transition: opacity 0.15s linear;
}

.header-panorama-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #c52d28;
}

.header-accent {
  position: absolute;
  right: 0;
  top: 0;
  width: 167px;
  height: 290px;
  background-color: var(--red);
}

.mobile-header-content {
  display: none;
}

.mobile-subtitle-bar {
  display: none;
}

/* ---------- Subtitle Bar ---------- */
.subtitle-bar {
  padding: 12px 0 8px;
  text-align: right;
}

.subtitle-bar img {
  display: inline-block;
  width: 500px;
  height: 72px;
}


/* ---------- Content Wrapper (3-Spalten) ---------- */
.content-wrapper {
  display: flex;
  align-items: flex-start;
  padding: 0 15px;
  gap: 0;
  margin-top:0px
  
}

/* ---------- Sidebar Navigation ---------- */
.sidebar-nav {
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding: 0;
  position: relative;
}

.nav-bg {
  width: 100%;
  background-color: #ededed;
  border-radius: 16px;
  margin-top: 0px;
  padding: 15px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-row-top {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.nav-row-top .nav-link[data-category="start"] {
  flex: 1;
  min-width: 0;
  order: 0;
}

.nav-row-top .nav-link[data-category="kontakt"] {
  flex: 0 0 auto;
  order: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  min-height: 54px;
  padding: 8px 10px;
  background-color: var(--red);
  border-radius: 5px;
  color: var(--white);
  font-family: var(--font);
  font-weight: bold;
  font-style: italic;
  font-size: 14px;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color 0.2s;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.nav-link-label {
  flex: 1;
  min-width: 0;
}

.nav-link-with-action {
  gap: 0;
  padding-right: 10px;
}

.nav-link-action {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--white);
  color: rgb(168, 34, 32);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-link-with-action .nav-link-action,
.nav-link-with-action:hover .nav-link-action,
.nav-link-with-action:focus-within .nav-link-action,
.nav-link-with-action[aria-current="page"] .nav-link-action,
.nav-link-with-action .nav-link-action:hover,
.nav-link-with-action .nav-link-action:focus-visible,
.nav-link-with-action .nav-link-action:active {
  color: rgb(168, 34, 32);
}

.nav-link-action svg {
  width: 21px;
  height: 21px;
  display: block;
}

.nav-link-action img {
  width: 17px;
  height: 11.9px;
  display: block;
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: var(--dark-red);
  color: var(--white);
}

.nav-link[aria-current="page"] {
  background-color: #a82220;
  color: var(--white);
  position: relative;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #a82220;
  box-shadow: 0 0 2px rgba(0,0,0,0.15);
  z-index: 1;
}

/* ---------- Main Content ---------- */
.main-content {
  flex: 1;
  width: 80%;
  min-width: 0;
  padding: 0 20px;
  font-size: 12pt;
  font-family: var(--font);
  color: var(--text);
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  margin: 0 0 20px 0;
}

/* Einheitliche Schriftgroesse fuer Inhalte aus main.tpl (ohne h1-h3). */
.main-content #main > *:not(h1):not(h2):not(h3):not(#termine),
.main-content #main > *:not(h1):not(h2):not(h3):not(#termine) *:not(h1):not(h2):not(h3) {
  font-size: 12pt !important;
}

.main-content h2 {
  font-family: var(--font);
  font-weight: bold;
  font-size: 14pt;
  color: var(--dark-red);
  margin-bottom: 12px;
}

.main-content h3 {
  font-family: var(--font);
  font-weight: bold;
  font-size: 16px;
  color: var(--dark-red);
  margin-top: 12px;
  margin-bottom: 8px;
}

.main-content ul {
  margin-left: 25px;
}

.main-content li {
  padding-left: 0;
}

.main-content b {
  font-family: var(--font);
  font-size: 14px;
  color: #000000;
}

.main-content p {
  text-align: justify;
  margin-bottom: 10px;
}

.main-content li,
.main-content dd {
  text-align: justify;
}

.main-content a {
  color: #FFFFFF;
  text-decoration: none;
}

.main-content a:hover {
  color: #030303;
}

/* Info-Block (Treffpunkt, Preis etc.) */
.info-block {
  margin-top: 14px;
  margin-bottom: 14px;
}

.info-block p {
  margin-bottom: 4px;
}

.info-block .label {
  font-weight: bold;
  color: #FF0000;
}

/* Signatur */
.signature {
  font-style: italic;
  margin-top: 14px;
}

/* ---------- Page Images (rechte Spalte) ---------- */
.page-images {
  width: var(--images-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-right: -5px;
}

.page-images img {
  width: 100%;
  height: auto;
}

.site-images img,
.page-images img,
.gallery-img-wrap .gallery-img {
  box-shadow: none;
}

.page-images > img:nth-child(n+5) {
  display: none !important;
}

.page-images > .gallery-img-wrap:nth-child(n+5) {
  display: none !important;
}

.page-images-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 12px;
  font-style: italic;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.page-images-more-btn:hover,
.page-images-more-btn:focus-visible {
  color: var(--dark-red);
  outline: none;
}

.page-images-camera-icon {
  position: static;
  top: auto;
  right: auto;
  width: 22px;
  height: 22px;
  margin: 0;
  background-color: #C52D28;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  flex-shrink: 0;
}

.gallery-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  overflow: hidden;
}

.gallery-img-wrap .gallery-img {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.gallery-zoom-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background-color: #C52D28;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  z-index: 1;
}

.gallery-zoom-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  display: block;
}

.page-images-camera-icon .page-images-camera-svg {
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: #fff !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gslide-description.description-bottom {
  display: none !important;
}

/* ---------- Detail-Liste (Kneipentour) ---------- */
.detail-list {
  margin: 12px 0;
  font-size: 11px;
}

.detail-list dt {
  font-weight: bold;
  color: var(--dark-red);
  margin-top: 8px;
}

.detail-list dd {
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 2px;
}

/* ---------- Kontakt ---------- */
.contact-info {
  margin-bottom: 14px;
}

.contact-info p {
  margin-bottom: 4px;
}

.contact-info a {
  color: #0000FF;
  text-decoration: underline;
}

.contact-heading {
  font-size: 16px;
}

.contact-intro {
  font-size: 13px;
}

.contact-booking-intro {
  margin: 8px 0 14px;
}

.contact-booking-intro.is-hidden,
.contact-intro-default.is-hidden {
  display: none;
}

.contact-booking-mail-text {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.contact-no-wrap {
  white-space: nowrap;
}

.contact-booking-mail-link {
  color: #000;
  text-decoration: underline;
}

.contact-booking-mail-link:hover,
.contact-booking-mail-link:focus-visible {
  text-decoration: underline;
}

.contact-booking-mail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 2px 8px;
  border: 1px solid #c52d28;
  border-radius: 5px;
  background: #c52d28;
  white-space: nowrap;
}

.contact-booking-mail-link-chip,
.contact-booking-mail-link-chip:link,
.contact-booking-mail-link-chip:visited,
.contact-booking-mail-link-chip:hover,
.contact-booking-mail-link-chip:focus,
.contact-booking-mail-link-chip:focus-visible {
  color: #ffffff !important;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.contact-booking-summary {
  position: relative;
  border: 2px solid #c52d28;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
  color: #8f1a17;
  font-weight: 700;
  white-space: pre-line;
}

.contact-booking-summary-content {
  white-space: pre-line;
}

.contact-booking-copy-btn {
  display: inline-block;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0 3px;
  padding: 2px 7px;
  border: 1px solid #c52d28;
  border-radius: 5px;
  background: #c52d28;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: lowercase;
  vertical-align: baseline;
}

.contact-booking-copy-btn:hover,
.contact-booking-copy-btn:focus-visible {
  background: #a61f1b;
  border-color: #a61f1b;
  color: #ffffff;
  outline: none;
}

.contact-copy-feedback-tooltip {
  position: fixed;
  z-index: 2600;
  transform: translate(-50%, -100%);
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffffff;
  color: #8f1a17;
  border: 1px solid #c52d28;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.contact-general-note {
  margin: 0 0 12px;
}

.contact-general-note p {
  margin: 0 0 6px;
  text-align: left;
}

.contact-general-mail-link,
.contact-general-mail-link:link,
.contact-general-mail-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border: 1px solid #c52d28;
  border-radius: 5px;
  background: #c52d28;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
}

.contact-general-mail-link:hover,
.contact-general-mail-link:focus-visible {
  background: #8f1a17 !important;
  border-color: #8f1a17 !important;
  color: #ffffff !important;
  text-decoration: none;
}

.main-content .start-mail-link,
.main-content .start-mail-link:link,
.main-content .start-mail-link:visited,
.main-content .start-mail-link:hover,
.main-content .start-mail-link:focus,
.main-content .start-mail-link:focus-visible,
body.ui-theme-dark .main-content .start-mail-link,
body.ui-theme-dark .main-content .start-mail-link:link,
body.ui-theme-dark .main-content .start-mail-link:visited,
body.ui-theme-dark .main-content .start-mail-link:hover,
body.ui-theme-dark .main-content .start-mail-link:focus,
body.ui-theme-dark .main-content .start-mail-link:focus-visible {
  color: #f00 !important;
}

.contact-form-alt-heading {
  margin: 0 0 10px;
  font-size: 20px;
  color: #222;
}

.contact-final-thanks {
  margin: 20px 0;
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.contact-form {
  margin-top: 20px;
  margin-bottom: 30px;
  max-width: 400px;
  font-size: 13px;
}

.contact-form label {
  display: block;
  font-weight: bold;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 3px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: var(--font);
  font-size: 13px;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 34px;
  border-color: #b8b8b8;
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, transparent 50%, #777 50%),
    linear-gradient(135deg, #777 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form select:hover {
  border-color: #9d9d9d;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(197, 45, 40, 0.15);
}

.contact-form .btn {
  margin-top: 12px;
  font-size: 15px;
}

.contact-submit-btn:disabled {
  background: #b8b8b8 !important;
  border-color: #b8b8b8 !important;
  color: #ffffff !important;
  cursor: not-allowed;
}

.contact-form.is-booking-email-only label[for="tour"],
.contact-form.is-booking-email-only #tour,
.contact-form.is-booking-email-only label[for="tourPlaetze"],
.contact-form.is-booking-email-only #tourPlaetze,
.contact-form.is-booking-email-only label[for="message"],
.contact-form.is-booking-email-only #message,
.contact-form.is-booking-email-only .contact-booking-hint {
  display: none;
}

.contact-booking-hint {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.contact-policy-note {
  margin-bottom: 14px;
}

.contact-submit-btn {
  margin-top: 10px;
}

.contact-submit-btn.is-hidden {
  display: none;
}

.contact-choice-list {
  display: grid;
  gap: 14px;
  margin-bottom:30px;
}

.contact-choice-item {
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
}

.contact-choice-item h3 {
  font-size: 15px;
  color: var(--dark-red);
  margin-bottom: 6px;
}

.contact-choice-item p {
  margin-bottom: 6px;
}

.main-content .contact-privacy-link {
  color: #000000;
  text-decoration: underline;
}

body.ui-theme-dark .main-content .contact-privacy-link {
  color: #000000 !important;
}

body.ui-theme-dark .main-content .contact-privacy-link:hover,
body.ui-theme-dark .main-content .contact-privacy-link:focus-visible {
  color: #000000 !important;
}

body.ui-theme-dark .main-content .contact-choice-list,
body.ui-theme-dark .main-content .contact-choice-list p,
body.ui-theme-dark .main-content .contact-choice-list h3,
body.ui-theme-dark .main-content .contact-choice-list label,
body.ui-theme-dark .main-content .contact-choice-list a {
  color: #333333 !important;
}

body.ui-theme-dark .main-content .contact-choice-item {
  border-color: #d4d4d4 !important;
  background: #fafafa !important;
}

body.ui-theme-dark .main-content .contact-choice-item h3 {
  color: var(--dark-red) !important;
}

body.ui-theme-dark .main-content .contact-booking-mail-link {
  color: #f00 !important;
}

body.ui-theme-dark .main-content .contact-booking-mail-link-chip,
body.ui-theme-dark .main-content .contact-booking-mail-link-chip:hover,
body.ui-theme-dark .main-content .contact-booking-mail-link-chip:focus-visible {
  color: #ffffff !important;
}

body.ui-theme-dark .main-content .contact-booking-mail-link:hover,
body.ui-theme-dark .main-content .contact-booking-mail-link:focus-visible {
  color: #f00 !important;
  text-decoration: underline !important;
}

.contact-consent-label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 6px;
  cursor: pointer;
}

.contact-consent-label input {
  width: auto;
  margin-top: 2px;
}

.contact-form-slot {
  margin-top: 12px;
}

.contact-ajax-response {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 280px;
  max-width: min(90vw, 560px);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #8ac497;
  background: #f0fff4;
  color: #1f5e2b;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  z-index: 2500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

body.contact-overlay-open {
  overflow: hidden;
}

body.contact-overlay-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2400;
}

.contact-ajax-response h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: bold;
}

.contact-ajax-response.is-visible {
  display: block;
}

.contact-ajax-response.is-error {
  border-color: #d77a7a;
  background: #fff3f3;
  color: #7a1f1f;
}

/* Button */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 28px;
  font-family: var(--font);
  font-weight: bold;
  font-style: italic;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--dark-red);
  color: var(--white);
}

/* ---------- Signatur-Zeile ---------- */
.signature-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 14px;
  padding-right: 20px;
}

.signature-row .signature {
  margin-top: 0;
  padding-top: 20px;
  font-style: normal;
  flex-shrink: 0;
}

.signature-row img {
  width: 314px;
  height: 209px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 2px solid var(--red);
  padding: 8px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-size: 11px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--red);
}

/* ---------- Impressum ---------- */
.impressum-content h3 {
  font-weight: bold;
  font-size: 11px;
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 6px;
}

.impressum-content p {
  margin-bottom: 6px;
}

.impressum-content a[href^="mailto:"],
.impressum-content a[href^="mailto:"]:visited,
.impressum-content a[href^="mailto:"]:focus,
.impressum-content a[href^="mailto:"]:focus-visible {
  color: inherit;
  text-decoration: none;
}

.impressum-content a[href^="mailto:"]:hover,
.impressum-content a[href^="mailto:"]:focus-visible {
  color: var(--red);
  text-decoration: underline;
}

.bildnachweise h3 {
  font-weight: bold;
  font-size: 12px;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
}

.bildnachweise h4 {
  font-weight: bold;
  font-size: 11px;
  color: #FF0000;
  margin-top: 12px;
  margin-bottom: 4px;
}

.bildnachweise p {
  margin-bottom: 2px;
  font-size: 11px;
}

.bildnachweise a {
  color: #0000FF;
  text-decoration: underline;
}

.bildnachweise .credit {
  font-style: italic;
}

.bildnachweise-collection {
  margin-top: 16px;
}

.bildnachweise-collection-note {
  margin: 4px 0 10px;
  font-size: 11px;
  color: #666;
  font-style: italic;
}

.bildnachweise-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.bildnachweis-item {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.bildnachweis-thumb {
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.bildnachweis-thumb:hover,
.bildnachweis-thumb:focus-visible {
  border-color: #c52d28;
  box-shadow: 0 0 0 2px rgba(197, 45, 40, 0.2);
  outline: none;
}

.bildnachweis-thumb img {
  width: 100%;
  max-width: 180px;
  height: auto;
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  margin: 0 auto;
}

.bildnachweis-thumb-label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #444;
  word-break: break-all;
}

.bildnachweis-inline-meta {
  margin-top: 8px;
  padding: 6px 8px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 6px;
}

.bildnachweis-inline-meta-row {
  font-size: 11px;
  margin: 3px 0;
  word-break: break-word;
}

.bildnachweis-inline-meta-row a {
  color: #0049b5;
  text-decoration: underline;
}

.bildnachweise-empty,
.bildnachweise-loading {
  color: #6a6a6a;
  margin-top: 8px;
}

.bildnachweis-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
}

.bildnachweis-overlay.is-open {
  display: block;
}

.bildnachweis-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.bildnachweis-overlay-dialog {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  overflow: auto;
  margin: 16px auto;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
}

.bildnachweis-overlay-close {
  position: absolute;
  top: 8px;
  right: 10px !important;
  left: auto !important;
  inset-inline-end: 10px !important;
  inset-inline-start: auto !important;
  border: 0;
  background: transparent;
  color: #2f2f2f;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  body {
    font-size: 13px;
  }

  #bildnachweisOverlay .bildnachweis-overlay-close {
    right: 10px !important;
    left: auto !important;
    inset-inline-end: 10px !important;
    inset-inline-start: auto !important;
  }
}

.bildnachweis-overlay-title {
  margin: 0 28px 12px 0;
  font-size: 22px;
  color: #c52d28;
}

.bildnachweis-overlay-image-wrap {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.bildnachweis-overlay-image {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  background: #f8f8f8;
}

.bildnachweis-overlay-meta {
  margin-top: 12px;
}

.bildnachweis-overlay-meta-row {
  font-size: 12px;
  margin: 4px 0;
}

.bildnachweis-overlay-meta .meta-kategorien {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  background: #f8f8f8;
  color: #333;
}

.bildnachweis-overlay-meta-row .meta-link {
  color: #0049b5;
  text-decoration: underline;
  word-break: break-all;
}

body.ui-theme-dark .bildnachweise-grid > *:not(img),
body.ui-theme-dark .bildnachweise-grid > *:not(img) *:not(img) {
  background-color: #101010 !important;
  color: #f1f1f1 !important;
  border-color: #2a2a2a !important;
}

body.ui-theme-dark .bildnachweise-grid .bildnachweis-thumb:hover,
body.ui-theme-dark .bildnachweise-grid .bildnachweis-thumb:focus-visible {
  border-color: #d34c47 !important;
  box-shadow: 0 0 0 2px rgba(211, 76, 71, 0.32) !important;
}

body.ui-theme-dark .bildnachweise-grid .bildnachweis-inline-meta-row a,
body.ui-theme-dark .bildnachweis-overlay-meta-row .meta-link {
  color: #8fb7ff !important;
}

body.ui-theme-dark .bildnachweis-overlay-dialog,
body.ui-theme-dark .bildnachweis-overlay-dialog *:not(img) {
  background-color: #101010 !important;
  color: #f1f1f1 !important;
  border-color: #2a2a2a !important;
}

body.ui-theme-dark .bildnachweis-overlay-close {
  background: transparent !important;
  color: #f1f1f1 !important;
}

body.ui-theme-dark .bildnachweis-overlay-image {
  background: #101010 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1041px) {

  body {
    font-size: 13px;
  }

  .header-panorama-wrap {
    width: 100%;
    height: auto;
  }

  .header-accent {
    display: none;
  }

}

@media (min-width: 861px) {
  body {
    font-size: 14px;
  }

  .subtitle-bar {
    text-align: right;
    padding: 12px 20px 8px 0;
  }

  .sidebar-nav {
    margin-left: -5px;
    margin-top: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 25;
  }

  #main {
    border: 5px solid #e5e5e5;
    margin: 0 10px 5px 17px;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 13px;
    box-sizing: border-box;
  }

  .subtitle-bar img {
    width: 500px;
    height: 72px;
  }
}

@media (max-width: 860px), (max-device-width: 860px) {
  body {
    font-size: 13px;
  }

  .content-wrapper {
    flex-direction: column;
    padding: 8px 10px 30px;
  }

  .main-content {
    width: 100%;
  }

  .sidebar-nav {
    width: 100%;
    margin-bottom: 16px;
  }

  .nav-bg {
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 8px;
    gap: 4px;
    justify-content: center;
  }

  .nav-row-top {
    width: 100%;
    flex-basis: 100%;
  }

  .nav-link {
    min-height: 40px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    flex: 0 1 auto;
  }


  .page-images {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }

  .page-images img {
    flex: 1 1 200px;
    max-width: 100%;
  }

  .site-header {
    height: auto;
    aspect-ratio: 1020 / 294;
  }
}

@media (max-width: 860px), (max-device-width: 860px) {
  body {
    font-size: 13px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .site-header {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    background-color: var(--white);
    margin-bottom: 12px;
    overflow: hidden;
  }
  .mobile-header-content,
  #mobile-floating-subtitle,
  #mobile-fixed-red-bar,
  #mobile-floating-kreis,
  .page-container,
  .content-wrapper,
  .main-content,
  .mobile-images {
    touch-action: auto;
  }
  body.mobile-menu-open {
    touch-action: none;
  }
  .page-container > * {
    transition: filter 0.2s ease, opacity 0.2s ease;
  }
  body.mobile-menu-open .page-container > * {
    filter: blur(6px);
    opacity: 0.72;
  }
  body.mobile-menu-open .site-header,
  body.mobile-menu-open .mobile-header-content,
  body.mobile-menu-open .mobile-sidebar-nav .nav-bg,
  body.mobile-menu-open #mobile-fixed-red-bar,
  body.mobile-menu-open #mobile-floating-subtitle,
  body.mobile-menu-open #mobile-floating-kreis {
    filter: none;
    opacity: 1;
  }
  body.mobile-menu-open .page-container::after {
    opacity: 1;
    background: rgba(22, 22, 22, 0.22);
  }
  .site-footer,
  .mobile-subtitle-bar,
  .mobile-subtitle-bar img,
  .mobile-sidebar-nav,
  .mobile-sidebar-nav .nav-bg {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .header-panorama-wrap {
    display: block !important;
    width: 100%;
    max-width: 100%;
    height: auto;
    position: relative;
    box-sizing: border-box;
  }
  .header-panorama {
    position: relative;
    left: auto;
    top: auto;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    z-index: 2;
  }
  .mobile-subtitle-bar {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 63%;
    max-width: 315px;
    padding: 0;
    text-align: center;
    transform: translateX(-50%);
    z-index: 130;
  }
  #mobile-floating-subtitle {
    display: none;
    position: fixed;
    left: 50%;
    width: 63%;
    max-width: 315px;
    height: auto;
    transform: translateX(-50%);
    z-index: 3;
    --subtitle-fade-progress: 0;
  }
  #mobile-floating-subtitle {
    overflow: hidden;
  }
  #mobile-floating-subtitle img {
    display: block;
    width: 100%;
    height: auto;
  }
  .mobile-floating-subtitle-default {
    opacity: calc(1 - var(--subtitle-fade-progress));
    filter: drop-shadow(0 0 0.8px rgba(255, 255, 255, 1))
      drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 4.5px rgba(255, 255, 255, 0.8));
  }
  .mobile-floating-subtitle-white {
    position: absolute;
    top: 0;
    left: 0;
    opacity: var(--subtitle-fade-progress);
    filter: none;
  }
  #mobile-fixed-red-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background-color: var(--dark-red);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.15s linear;
  }
  #mobile-floating-kreis {
    display: none;
    position: fixed;
    top: 0;
    width: 43px;
    height: auto;
    z-index: 51;
  }
  #mobile-floating-kreis {
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 5px;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    opacity: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    cursor: pointer;
  }
  #mobile-floating-kreis img {
    display: block;
    width: 26.6px;
    height: 26.6px;
  }
  .mobile-subtitle-bar img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .sidebar-nav {
    display: block !important;
    width: 100%;
    margin-bottom: 12px;
  }
  .nav-bg {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 0;
    padding: 6px;
    border-radius: 0;
    background-color: transparent;
  }

  .nav-row-top {
    width: 100%;
    flex-basis: 100%;
  }

  .nav-link {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 10px;
    line-height: 1.05;
    border-radius: 14px;
    flex: 0 1 auto;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.35);
  }
  .nav-link[data-category="start"] {
    order: 1;
  }
  .nav-link[data-category="kontakt"] {
    order: 2;
  }
  .nav-link[data-category="1"] {
    order: 3;
  }
  .nav-link[data-category="2"] {
    order: 4;
  }
  .nav-link[data-category="3"] {
    order: 5;
  }
  .nav-link[data-category="4"] {
    order: 6;
  }
  .nav-link[aria-current="page"]::after {
    display: none;
  }
  .page-images {
    display: flex !important;
    order: 2;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 0 0;
  }
  .mobile-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 0 0;
  }
  .mobile-images img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: none;
  }
  .mobile-header-content {
    display: block;
    padding: 0 10px;
    background: transparent;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .mobile-header-content.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
  }

  body.mobile-resize-stabilize .mobile-header-content,
  body.mobile-resize-stabilize #mobile-floating-subtitle,
  body.mobile-resize-stabilize #mobile-fixed-red-bar,
  body.mobile-resize-stabilize #mobile-floating-kreis,
  body.mobile-resize-stabilize .page-container > * {
    transition: none !important;
    animation: none !important;
  }

  .mobile-menu-controls {
    display: none;
  }
  .mobile-sidebar-nav {
    position: relative;
    z-index: 41;
  }
  .mobile-sidebar-nav .nav-bg {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    padding: 12px;
    border-radius: 12px;
    background-color: rgba(235, 235, 235, 0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 42;
  }

  .mobile-sidebar-nav .nav-row-top {
    width: 100%;
    flex-basis: 100%;
  }

  .mobile-sidebar-nav .nav-link {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 10px;
    flex: none;
  }
  .mobile-sidebar-nav .nav-link[data-category="start"],
  .mobile-sidebar-nav .nav-link-termine,
  .mobile-sidebar-nav .nav-link[data-category="kontakt"] {
    width: calc((100% - 16px) / 3);
  }
  .mobile-sidebar-nav .nav-link-termine {
    gap: 8px;
    padding-left: 10px;
    padding-right: 8px;
  }
  .mobile-sidebar-nav .nav-link-termine-action {
    display: inline-flex;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #ffffff;
    color: #a82220;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .mobile-sidebar-nav .nav-link-termine-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-sidebar-nav .nav-link-with-action {
    gap: 8px;
    padding-right: 8px;
  }
  .mobile-sidebar-nav .nav-link-action {
    display: inline-flex;
    flex-basis: 29px;
    width: 29px;
    height: 29px;
  }
  .mobile-sidebar-nav .nav-link-action svg {
    width: 20px;
    height: 20px;
  }
  .mobile-sidebar-nav .nav-link-action img {
    width: 16px;
    height: 11.2px;
  }
  .mobile-sidebar-nav .mobile-menu-controls {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 2px 2px 0;
  }
  .mobile-sidebar-nav .mobile-theme-control {
    display: flex;
    align-items: center;
    gap: 11px;
  }
  .mobile-sidebar-nav .mobile-theme-toggle {
    width: 27px;
    height: 27px;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    background: linear-gradient(to bottom, #000 50%, #fff 50%);
    padding: 0;
    cursor: pointer;
    flex: 0 0 27px;
  }
  .mobile-sidebar-nav .mobile-theme-toggle[data-theme="dark"] {
    background: linear-gradient(to bottom, #fff 50%, #000 50%);
  }
  .mobile-sidebar-nav .mobile-theme-toggle[data-theme="light"] {
    background: linear-gradient(to bottom, #000 50%, #fff 50%);
  }
  .mobile-sidebar-nav .mobile-menu-close {
    background: transparent;
    border: 0;
    color: #bf0000;
    font-family: var(--font);
    font-size: 12px;
    font-style: italic;
    font-weight: bold;
    text-transform: lowercase;
    cursor: pointer;
    padding: 0;
  }
  .mobile-sidebar-nav .mobile-menu-close:hover,
  .mobile-sidebar-nav .mobile-menu-close:focus-visible,
  .mobile-sidebar-nav .mobile-theme-toggle:hover,
  .mobile-sidebar-nav .mobile-theme-toggle:focus-visible {
    opacity: 0.82;
    outline: none;
  }
  .signature-row {
    padding-right: 0;
  }
  .signature-row .footer-pic {
    width: min(282.6px, 100%);
    height: auto;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 1;
  }
}

/* Hide termine div on kontakt page */
[data-category="kontakt"] #termine {
  display: none !important;
}

@media (max-width: 860px), (max-device-width: 860px) {
  body {
    font-size: 13px;
  }

  .page-container > .subtitle-bar,
  .page-container > .content-wrapper > .sidebar-nav {
    display: none !important;
  }
  .admin-wrapper,
  .page-container {
    padding: 8px 2vw;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  h1 {
    font-size: 1.2em;
  }
  .btn,
  button {
    width: 100%;
    font-size: 1em;
    margin-bottom: 8px;
    box-sizing: border-box;
  }

  #bildnachweisOverlay .bildnachweis-overlay-close,
  .glightbox-container .gclose {
    width: 35px !important;
    height: 35px !important;
    margin: 0 !important;
    right: 10px !important;
    left: auto !important;
    inset-inline-end: 10px !important;
    inset-inline-start: auto !important;
  }
}

@media (min-width: 861px) {
  body {
    font-size: 14px;
  }

  #mobile-floating-subtitle,
  #mobile-fixed-red-bar,
  #mobile-floating-kreis,
  .mobile-header-content {
    display: none !important;
  }

  .nav-row-top {
    display: contents;
  }

  .nav-link[data-category="kontakt"] {
    order: 10;
  }

  .desktop-theme-toggle-wrap {
    order: 11;
  }

  .header-panorama {
    width: 100%;
    height: auto;
  }

}

/* ---------- Termine Tabellen ---------- */
.events-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  background-color: #ffffff;
  border: 0;
  font-size: 12px;
}

.events-contact-note {
  margin: 12px 0 10px;
  font-size: 12pt;
}

.events-contact-mail,
.events-contact-mail:link,
.events-contact-mail:visited {
  color: #c52d28 !important;
  text-decoration: none;
}

.events-contact-mail:hover,
.events-contact-mail:focus,
.events-contact-mail:focus-visible {
  color: #c52d28 !important;
  text-decoration: underline;
}

body.ui-theme-dark .events-contact-note,
body.ui-theme-dark .events-contact-note b {
  color: #ffffff !important;
}

.events-table tr {
  border: 1px solid #ddd;
}

.events-table thead {
  background-color: #c52d28;
  color: #ffffff;
}

.events-table th,
.events-table td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #ddd;
}

.events-table th {
  font-weight: bold;
  white-space: nowrap;
}

.events-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.events-table tbody tr:hover {
  background-color: #f0f0f0;
}

.events-table tr.event-action-row td {
  padding: 0 0 7px;
  background: #fff;
}

.events-table tr.event-action-row,
.events-table tr.event-action-row td,
.events-table td.event-actions-cell,
.events-table td.event-action-cell-single {
  border: 0;
  overflow: visible;
}

.events-table tr.event-action-row:hover {
  background: transparent;
}

.event-actions {
  display: flex;
  width: 100%;
}

.event-go-category,
.event-book-btn {
  flex: 1 1 0;
  width: auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-top: 1px solid #e2e2e2;
  background: #c52d28;
  color: #fff;
  cursor: pointer;
}

.event-go-category,
.event-go-category:link,
.event-go-category:visited,
.event-go-category:hover,
.event-go-category:focus,
.event-go-category:focus-visible {
  color: #fff;
  text-decoration: none;
}

.event-go-category:hover,
.event-go-category:focus,
.event-go-category:focus-visible {
  background: #a61f1b !important;
  color: #fff !important;
  text-decoration: none !important;
}

.event-go-category:active {
  background: #a61f1b !important;
  color: #fff !important;
  text-decoration: none !important;
}

.event-booking-toggle:hover,
.event-booking-toggle:focus,
.event-booking-toggle:focus-visible {
  background: #a61f1b !important;
  color: #fff !important;
}

.event-booking-toggle:active {
  background: #a61f1b !important;
  color: #fff !important;
}

.event-go-category {
  border-right: 1px solid #e2e2e2;
  border-radius: 0;
  border-bottom-left-radius: 10px;
}

.event-actions.single .event-book-btn {
  width: 100%;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.event-booking-wrapper {
  flex: 1 1 0;
  width: auto;
  position: relative;
  overflow: visible;
}

.event-booking-toggle {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-top: 1px solid #e2e2e2;
  background: #c52d28;
  color: #fff;
  cursor: pointer;
}

.event-actions .event-booking-toggle {
  border-radius: 0;
  border-bottom-right-radius: 10px;
}

.event-actions.single .event-booking-toggle {
  width: 100%;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.event-booking-select {
  width: 100%;
  min-height: 0;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d4d4d4;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  color: #2f2f2f;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 6px;
  text-align: left;
  overflow-y: auto;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 200;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 240px;
}

.event-booking-select[multiple],
.event-booking-select[size] {
  min-height: 0;
  padding: 6px;
}

.event-booking-select option {
  background: #fff !important;
  color: #333 !important;
  padding: 8px 10px;
  border-radius: 8px;
}

.event-booking-select option:hover,
.event-booking-select option:focus,
.event-booking-select option:checked {
  background: #f6c5c5 !important;
  color: #6f1313 !important;
}

.event-booking-select option[value="close"],
.event-booking-select option[value="close"]:checked {
  background: #2f66d0 !important;
  color: #ffffff !important;
}

.event-booking-select option[value="close"]:hover,
.event-booking-select option[value="close"]:focus {
  background: #1f4fa8 !important;
  color: #ffffff !important;
}

.event-actions .event-booking-select {
  border-radius: 12px;
}

.event-actions .event-booking-select[size] {
  border-bottom: 1px solid #d4d4d4;
}

.event-booking-mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 220;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-booking-mobile-option {
  width: 100%;
  min-height: 24px;
  height: 24px;
  padding: 0 8px;
  line-height: 1;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  color: #2f2f2f;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.event-booking-mobile-option-close {
  color: #ffffff;
  background: #2f66d0;
  border-color: #1f4fa8;
}

.event-booking-mobile-option-close:hover,
.event-booking-mobile-option-close:focus-visible {
  background: #1f4fa8;
}

.event-actions.single .event-booking-select {
  width: 100%;
}

.event-actions.single .event-booking-select[size] {
  border-radius: 12px;
}

.event-book-btn {
  border-radius: 0;
  border-bottom-right-radius: 10px;
}

.event-book-btn:hover,
.event-book-btn:focus-visible {
  background: #a61f1b;
  color: #fff;
  text-decoration: none;
}

.events-year-block {
  margin-top: 16px;
}

.events-year-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 10px;
}

.events-year-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #c52d28 !important;
  white-space: nowrap;
}

.events-ornament {
  display: none;
  flex: 1;
  min-width: 90px;
  max-width: 220px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50' fill='none'%3E%3Cpath d='M10 25 C 30 10, 70 10, 90 25 S 130 40, 150 25 S 170 10, 190 25' stroke='%23c52d28' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

.events-year-title-wrap .events-ornament:first-child {
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  .events-table {
    font-size: 11px;
  }

  .events-year-title {
    font-size: 16px;
  }

  .events-table th,
  .events-table td {
    padding: 8px 6px;
  }

  .event-go-category,
  .event-booking-wrapper,
  .event-booking-wrapper .event-booking-toggle {
    min-height: 30px;
    height: 30px;
  }

  .event-go-category {
    white-space: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 860px) {
  body {
    font-size: 13px;
  }

  .event-go-category,
  .event-book-btn,
  .event-booking-wrapper,
  .event-booking-wrapper .event-booking-toggle {
    min-height: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .events-table {
    font-size: 10px;
  }

  .events-table th,
  .events-table td {
    padding: 6px 4px;
  }

  .event-go-category,
  .event-book-btn {
    min-height: 30px;
    height: 30px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 13px;
  }

  .event-go-category,
  .event-book-btn {
    font-size: 11px;
    padding-left: 6px;
    padding-right: 6px;
  }
}
