@import url("./fa4/style.css");

div {
  white-space: normal !important;
}

video {
  width: 100%;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: hsla(0, 0%, 100%, 0.2);
  border-radius: 50px;
}

::-webkit-scrollbar-thumb {
  cursor: pointer;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.7);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 1);
  opacity: 1;
}

.infospot,
.infobox {
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  width: clamp(140px, 80vw, 640px) !important;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  overflow: hidden;
  max-height: clamp(120px, 80vh, 600px) !important;
  padding: 24px;
}

.infobox .OpenClose {
  position: absolute;
  right: 10px;
  top: 10px;
}

.infobox-content,
#dynamic_infoboxes .infobox .infobox-content {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.infospot .header {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Style infospot close button to match infobox buttons */
.infospot .header .close,
.infospot .header .closeButtonBox {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 20px !important;
  text-align: center !important;
  padding: 6px !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  text-decoration: none !important;
}

.infospot .header .close:hover,
.infospot .header .closeButtonBox:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.infospot .header .close i,
.infospot .header .closeButtonBox i {
  font-size: 18px !important;
  line-height: 20px !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.infospot .middle {
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
  height: 100%;
  overflow: hidden;
}

.infospot .header h1 {
  display: none;
}

.infospot__content {
  overflow: visible;
}

.infospot__main {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 18px;
  /* Enable touch scrolling on mobile */
  -webkit-overflow-scrolling: touch;
  /* Prevent text selection while scrolling */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Ensure proper text wrapping */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
  .infospot__main {
    /* Re-enable text selection on mobile for better UX */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    /* Ensure content flows properly */
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .infospot,
  .infobox {
    /* Ensure adequate width on mobile */
    width: clamp(280px, 90vw, 640px) !important;
    max-height: clamp(200px, 85vh, 600px) !important;
  }

  .infospot__main p,
  .infospot__main div,
  .infospot__main span {
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .infospot__main img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 10px 0 !important;
  }
}

/* Mobile landscape orientation - limit height more aggressively */
@media (max-width: 768px) and (orientation: landscape) {
  .infospot,
  .infobox {
    max-height: clamp(150px, 60vh, 400px) !important;
  }

  .infospot__main {
    max-height: calc(60vh - 80px); /* Account for header and padding */
    overflow-y: auto !important;
  }
}

.infospot__main img {
  width: 100%;
  margin: 15px 0;
}

.infospot__header h1 {
  margin: 0 !important;
  font-size: 24px !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-right: 46px;
}

.infospot__subheader {
  opacity: 0.8;
  font-size: 14px;
  font-weight: 500;
}

.infospot__header {
  margin-bottom: 24px;
}

/* Add pointer cursor for scrollable areas */
.infospot__main:hover {
  cursor: default;
}

/* Style for when content is scrollable */
.infospot__main.scrollable {
  cursor: grab;
}

.infospot__main.scrollable:active {
  cursor: grabbing;
}

/* Modern close button design for infobox */
#dynamic_infoboxes .infobox .OpenClose .closeButtonBox,
#dynamic_infoboxes .infobox .OpenClose .openButtonBox {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

#dynamic_infoboxes .infobox .OpenClose .closeButtonBox:hover,
#dynamic_infoboxes .infobox .OpenClose .openButtonBox:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Hide maximize button when infobox is open (not hideBox), show close button instead */
#dynamic_infoboxes .infobox:not(.hideBox) .OpenClose .openButtonBox {
  display: none !important;
}

/* Hide close button when infobox is minimized (has hideBox class) */
#dynamic_infoboxes .infobox.hideBox .OpenClose .closeButtonBox {
  display: none !important;
}

/* Make buttons larger and use text-align for centering */
#dynamic_infoboxes .infobox .OpenClose .closeButtonBox,
#dynamic_infoboxes .infobox .OpenClose .openButtonBox {
  width: 32px !important;
  height: 32px !important;
  padding: 0px !important;
  line-height: 20px !important;
  text-align: center !important;
}

/* Add extra padding around the infobox when minimized */
#dynamic_infoboxes .infobox.hideBox {
  padding: 26px !important;
}

/* Icon styling - let it be inline */
#dynamic_infoboxes .infobox .OpenClose .closeButtonBox i,
#dynamic_infoboxes .infobox .OpenClose .openButtonBox i {
  font-size: 18px !important;
  line-height: 20px !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.infobox-content {
  padding: 0 !important;
}

/* Modern glassmorphic sidebar styling with darker background like infoboxes */
.sidebarNavigation {
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.6), -2px 0 8px rgba(0, 0, 0, 0.4) !important;
  font-weight: 500 !important;
  pointer-events: auto !important;
  z-index: 100000 !important;
}

/* Modern sidebar toggle button - looks like part of sidebar */
.toggleNavigation {
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: none !important;
  border-radius: 6px 0 0 6px !important;
  width: 45px !important;
  height: 45px !important;
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.6), -2px 0 8px rgba(0, 0, 0, 0.4) !important;
  -webkit-transition: all 0.5s ease-in-out !important;
  -moz-transition: all 0.5s ease-in-out !important;
  -o-transition: all 0.5s ease-in-out !important;
  -ms-transition: all 0.5s ease-in-out !important;
  transition: all 0.5s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.toggleNavigation:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.7), -2px 0 8px rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
}

.toggleNavigation i {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

/* Style sidebar quicklinks buttons to match infobox buttons */
.sidebarNavigation .quicklinks-container i {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease !important;
  text-shadow: none !important;
}

.sidebarNavigation .quicklinks-container i:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
}

/* Modern language selector buttons with 3:2 ratio */
.sidebarNavigation .languages-container {
  text-align: center !important;
}

.sidebarNavigation .languages-container ul {
  display: inline-block !important;
}

.sidebarNavigation .languages-container ul li {
  float: left !important;
  margin-right: 8px !important;
  margin-bottom: 5px !important;
  border: none !important;
  opacity: 0.5 !important;
  transition: opacity 0.2s ease !important;
}

.sidebarNavigation .languages-container ul li:last-child {
  margin-right: 0 !important;
}

.sidebarNavigation .languages-container ul li:hover,
.sidebarNavigation .languages-container ul li.active {
  opacity: 1 !important;
}

.sidebarNavigation .languages-container ul li a {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease !important;
  width: 48px !important;
  height: 32px !important;
  display: block !important;
  overflow: hidden !important;
  position: relative !important;
  text-indent: -9999px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  line-height: 32px !important;
}

.sidebarNavigation .languages-container ul li:hover a,
.sidebarNavigation .languages-container ul li.active a {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Position meta container (Impressum/Datenschutz) at bottom */
.sidebarNavigation .meta-container {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 15px 10px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Style meta container links (Impressum/Datenschutz) */
.meta-container a,
.meta-container a:link,
.meta-container a:visited,
.meta-container a:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

.meta-container a:hover {
  opacity: 0.8 !important;
  text-decoration: underline !important;
}

/* Add spacing between meta container items */
.meta-container .imprint {
  margin-right: 15px !important;
}

/* DC-Fotografie link styling - centered on new line with spacing */
.meta-container .dc_fotografie {
  display: block !important;
  text-align: center !important;
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Keep sidebar menu open by default */
.navigation-container ul ul {
  display: block !important;
}

/* Remove borders between menu items */
.navigation-container li {
  border-top: none !important;
  border-bottom: none !important;
}

.navigation-container li:last-child {
  border-bottom: none !important;
}

/* Hide toggle arrows */
.navigation-container li.hasSub > a:after {
  display: none !important;
}

/* Disable click functionality on parent items (Oberdeck, Hauptdeck) */
.navigation-container li.hasSub > a {
  pointer-events: none !important;
  cursor: default !important;
}

/* Re-enable click on child menu items */
.navigation-container li.hasSub .sub-menu a {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Modern navigation colors - remove blue, use subtle highlights */
.navigation-container a:link,
.navigation-container a:visited {
  text-shadow: none !important;
  color: #ffffff !important;
  padding: 8px 10px !important;
  margin: 2px 0 !important;
  display: block !important;
  font-weight: 500 !important;
}

.navigation-container li {
  font-weight: 500 !important;
}

.navigation-container a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  text-decoration: none !important;
}

.navigation-container a:active,
.navigation-container a.active,
.navigation-container li.active > a {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Override any blue color styles */
.navigation-container * {
  color: #ffffff !important;
}

/* Modern frosted-glass tab navigation */
.infospot__tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
  padding-top: 3px;
}

/* Style the buttons that are used to open the tab content */
.infospot__tabs button {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-bottom: none !important;
  border-radius: 6px 6px 0 0 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  position: relative;
  bottom: -1px;
}

/* Change background color of buttons on hover */
.infospot__tabs button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  bottom: 0px;
}

/* Create an active/current tablink class */
.infospot__tabs button.active {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  border-bottom-color: transparent !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Style the tab content */
.infospot__tabcontent {
  display: none;
  padding: 12px 0 0 0 !important;
  animation: fadeIn 0.3s ease-in;
}

/* Tab content headings */
.infospot__tabcontent h3 {
  font-size: 18px !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  font-weight: 600 !important;
}

/* Fade in animation for tab content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style for infospot button links (e.g., "Mehr erfahren") */
.infospot__button {
  display: inline-block !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
  margin: 15px 0 10px 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  /* Re-enable user selection for this element */
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
}

.infospot__button:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  text-decoration: none !important;
}

.infospot__button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile responsive button */
@media (max-width: 768px) {
  .infospot__button {
    display: block !important;
    width: 100% !important;
    padding: 12px 20px !important;
  }
}

/* Improved tooltip styling for hotspot hover texts */
.tooltip_window {
  font-size: 14px !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  line-height: 1.4 !important;
  height: auto !important;
  min-height: 32px !important;
  padding: 8px 14px !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  max-width: 300px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Arrow for tooltip pointing to the hotspot */
.tooltip_window:after {
  border-left-color: rgba(0, 0, 0, 0.85) !important;
  border-width: 8px !important;
  margin-top: -8px !important;
  filter: drop-shadow(-2px 0 4px rgba(0, 0, 0, 0.3)) !important;
}

.tooltip_window.left:after {
  border-left-color: transparent !important;
  border-right-color: rgba(0, 0, 0, 0.85) !important;
  filter: drop-shadow(2px 0 4px rgba(0, 0, 0, 0.3)) !important;
}

/* Mobile tooltip adjustments */
@media (max-width: 768px) {
  .tooltip_window {
    font-size: 13px !important;
    padding: 6px 12px !important;
    max-width: 250px !important;
  }
}
