/*
Theme Name: Urlaubsagenten
Theme URI: https://urlaubsagenten.de
Description: Ultra-leichtgewichtiges Custom Theme mit jQuery UI Support für Quicksearch, Adobe Fonts Integration, kompletter H1-H6 Typografie-Kontrolle und konfigurierbarer Top-Bar
Author: Urlaubsagenten Team
Author URI: https://urlaubsagenten.de
Version: 3.3.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: urlaubsagenten
Tags: custom, lightweight, performance, travel
*/

/* ============================================================
   CSS VARIABLES - Zentrale Farbdefinitionen
   ============================================================ */
:root {
  /* Brand Colors */
  --ua-dark: #2f4449;
  --ua-blue: #2f4449;
  --ua-light: #fabe0c;
  --ua-yellow: #fabe0c;
  
  /* Text Colors */
  --ua-text-on-blue: #ffffff;
  --ua-text-dark: #111111;
  --ua-text-gray: #555555;
  
  /* Spacing & Layout */
  --ua-radius-card: 20px;
  --ua-radius-btn: 14px;
  --ua-radius-full: 999px;
  --ua-gap: 24px;
  
  /* Shadows */
  --ua-shadow-sm: 0 4px 12px rgba(0, 0, 0, .08);
  --ua-shadow-md: 0 12px 28px rgba(0, 0, 0, .12);
  --ua-shadow-lg: 0 18px 36px rgba(0, 0, 0, .18);
  --ua-shadow-xl: 0 20px 40px rgba(0, 0, 0, .25);
  
  /* Typography */
  --ua-font: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  
  /* Transitions */
  --ua-transition: 0.25s ease;
}

/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--ua-font);
  background: #fff;
  color: var(--ua-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ua-main {
  margin-bottom: 0;
}

/* ============================================================
   TYPOGRAPHY - Responsive Heading Sizes
   ============================================================ */
h1, .h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

h2, .h2 {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.3;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

h3, .h3 {
  font-size: clamp(20px, 3.5vw, 32px);
  line-height: 1.3;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h4, .h4 {
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.4;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h5, .h5 {
  font-size: clamp(16px, 2.5vw, 22px);
  line-height: 1.4;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h6, .h6 {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.5;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h1:first-child, h2:first-child, h3:first-child,
h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0;
}

h1:last-child, h2:last-child, h3:last-child,
h4:last-child, h5:last-child, h6:last-child {
  margin-bottom: 0;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.ua-topbar {
  background: #1a2f33;
  color: var(--ua-text-on-blue);
  font-size: 14px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 40px;
  display: flex;
  align-items: center;
}

.topBar.bt-clear {
  background-color: var(--ua-blue);
  background-image:
    linear-gradient(to right, rgba(47, 68, 73, 0.12), rgba(47, 68, 73, 0.18)),
    linear-gradient(to right, var(--ua-yellow) 0%, var(--ua-blue) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: var(--ua-text-on-blue);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  border-bottom: none;
  box-shadow: none;
}

.topBar.bt-clear a,
.topBar.bt-clear .icon,
.topBar.bt-clear .btn,
.topBar.bt-clear .nav-item {
  color: var(--ua-text-on-blue);
  text-decoration: none;
}

.topBar.bt-clear a:hover,
.topBar.bt-clear .btn:hover,
.topBar.bt-clear .nav-item:hover {
  opacity: 0.92;
  text-decoration: underline;
}

.ua-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.ua-topbar-left,
.ua-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.ua-topbar-phone,
.ua-topbar-custom-link {
  color: var(--ua-text-on-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: color var(--ua-transition);
  line-height: 1;
  height: 100%;
}

.ua-topbar-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ua-topbar-phone:hover,
.ua-topbar-custom-link:hover {
  color: var(--ua-light);
}

.ua-topbar-social {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 100%;
}

.ua-topbar-social a {
  color: var(--ua-text-on-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all var(--ua-transition);
}

.ua-topbar-social a:hover {
  background: var(--ua-light);
  color: var(--ua-dark);
  transform: translateY(-2px);
}

.ua-topbar-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Top-Bar Menu */
.ua-topbar-menu {
  margin-left: 20px;
  height: 100%;
  display: flex;
  align-items: center;
}

.ua-topbar-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
  align-items: center;
  height: 100%;
}

.ua-topbar-menu-list li {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.ua-topbar-menu-list a {
  color: var(--ua-text-on-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--ua-transition);
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.ua-topbar-menu-list a:hover {
  color: var(--ua-light);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.ua-header {
  background: var(--ua-dark);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.ua-header-inner {
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  width: 100%;
  position: relative;
}

.ua-logo {
  display: flex;
  align-items: center;
  margin-right: 40px;
  flex-shrink: 0;
  z-index: 500;
}

.ua-logo a {
  display: block;
  line-height: 0;
}

.ua-logo img,
.custom-logo {
  height: 80px;
  width: auto;
  transition: height 0.3s;
}

.ua-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.ua-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 1;
}

.ua-menu li {
  position: relative;
  z-index: 100;
}

.ua-menu a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 6px;
  transition: all var(--ua-transition);
  white-space: nowrap;
  position: relative;
}

/* Gradient Underline */
.ua-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--ua-dark), var(--ua-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  z-index: -1;
  border-radius: 2px;
}

.ua-menu a:hover::after,
.ua-menu .current-menu-item > a::after {
  transform: scaleX(1);
}

.ua-menu a:hover,
.ua-menu .current-menu-item > a {
  color: #fff;
}

/* Submenu */
.ua-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ua-light);
  min-width: 220px;
  padding: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all var(--ua-transition);
  list-style: none;
  margin: 0;
  z-index: 10000;
}

.ua-menu li.menu-item-has-children:hover > a {
  border-radius: 6px 6px 0 0;
}

.ua-menu li.menu-item-has-children:hover > a::after {
  display: none;
}

.ua-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ua-menu .sub-menu li {
  border-bottom: 1px solid rgba(47, 68, 73, 0.1);
}

.ua-menu .sub-menu li:last-child {
  border-bottom: none;
}

.ua-menu .sub-menu a {
  padding: 12px 20px;
  border-radius: 0;
  font-size: 13px;
  color: var(--ua-dark);
  background: transparent;
  position: relative;
}

.ua-menu .sub-menu a:hover {
  background: transparent;
  color: var(--ua-dark);
}

.ua-menu .sub-menu li:last-child a {
  border-radius: 0 0 6px 6px;
}

/* Mobile Menu Button */
.ua-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10000;
  margin-left: auto;
  position: relative;
}

.ua-burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.ua-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.ua-burger.active span:nth-child(2) {
  opacity: 0;
}

.ua-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.ua-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ua-dark);
  padding: 100px 24px 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.3s;
  z-index: 9999;
}

.ua-mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.ua-mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ua-mobile-menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ua-mobile-menu-list a {
  display: block;
  padding: 16px 0;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: none;
}

.ua-mobile-menu-list a:active {
  opacity: 0.7;
}

.ua-mobile-menu-list .sub-menu {
  list-style: none;
  padding-left: 20px;
}

.ua-mobile-menu-list .sub-menu a {
  font-size: 16px;
  padding: 12px 0;
}

.ua-mobile-menu-list .sub-menu a:active {
  opacity: 0.7;
}

/* ============================================================
   FOOTER MAIN
   ============================================================ */
.ua-footer-main {
  background: var(--ua-dark);
  color: #fff;
  padding: 0;
  margin-top: 0;
  width: 100%;
}

.ua-footer-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4,
.footer-col .widget-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ua-light);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.25s ease;
  cursor: pointer;
}

.footer-col a:hover {
  color: var(--ua-light) !important;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.ua-footer-main.cols-1 .ua-footer-inner { grid-template-columns: 1fr; }
.ua-footer-main.cols-2 .ua-footer-inner { grid-template-columns: repeat(2, 1fr); }
.ua-footer-main.cols-3 .ua-footer-inner { grid-template-columns: repeat(3, 1fr); }

/* Footer Page Content Mode */
.ua-footer-main.using-page .ua-footer-inner {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
  display: block;
}

.ua-footer-page-content {
  width: 100%;
}

.ua-footer-page-content,
.ua-footer-page-content p,
.ua-footer-page-content h1,
.ua-footer-page-content h2,
.ua-footer-page-content h3,
.ua-footer-page-content h4,
.ua-footer-page-content h5,
.ua-footer-page-content h6,
.ua-footer-page-content span,
.ua-footer-page-content div {
  color: inherit;
}

.ua-footer-page-content a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.ua-footer-page-content a:hover {
  color: var(--ua-light) !important;
}

.ua-footer-main a,
footer.ua-footer-main a {
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: color 0.25s ease !important;
}

.ua-footer-main a:hover,
footer.ua-footer-main a:hover {
  color: var(--ua-light) !important;
}

.ua-footer-page-content h4,
.ua-footer-page-content h5 {
  color: var(--ua-light);
  margin-bottom: 16px;
  font-weight: 700;
}

.ua-footer-page-content ul,
.ua-footer-page-content ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ua-footer-page-content li {
  display: block;
  margin: 0;
  padding: 0;
}

.ua-footer-page-content li a {
  display: block;
  padding: 4px 0;
}

/* Bold Builder Spalten im Footer */
.ua-footer-page-content .bb-row,
.ua-footer-page-content .bt-row,
.ua-footer-page-content [class*="bt_bb_row"] {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 20px;
}

.ua-footer-page-content .bb-column,
.ua-footer-page-content .bt-column,
.ua-footer-page-content [class*="bt_bb_column"] {
  flex: 1 1 200px;
  min-width: 200px;
}

/* Bold Builder Column Content - VERTIKAL */
.ua-footer-main .ua-footer-page-content .bt_bb_column_content,
.ua-footer-main .ua-footer-page-content [class*="bt_bb_column_content"],
.ua-footer-main .bt_bb_column_content,
.ua-footer-page-content .bt_bb_column_content {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

/* Bold Builder Icon Elemente - VERTIKAL */
.ua-footer-main .bt_bb_icon,
.ua-footer-main [class*="bt_bb_icon"],
.ua-footer-page-content .bt_bb_icon,
.ua-footer-page-content [class*="bt_bb_icon"] {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
}

.ua-footer-main .bt_bb_icon_holder,
.ua-footer-main [class*="bt_bb_icon_holder"],
.ua-footer-page-content .bt_bb_icon_holder,
.ua-footer-page-content [class*="bt_bb_icon_holder"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

.ua-footer-main .bt_bb_icon a,
.ua-footer-main .bt_bb_icon span,
.ua-footer-main [class*="bt_bb_icon"] a,
.ua-footer-main [class*="bt_bb_icon"] span,
.ua-footer-page-content .bt_bb_icon a,
.ua-footer-page-content .bt_bb_icon span {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.5 !important;
}

.ua-footer-main .bt_bb_icon a:hover,
.ua-footer-main [class*="bt_bb_icon"] a:hover,
.ua-footer-main [class*="bt_bb_icon_holder"] a:hover,
.ua-footer-main .bt_bb_icon_holder a:hover,
.ua-footer-page-content .bt_bb_icon a:hover,
.ua-footer-page-content [class*="bt_bb_icon"] a:hover,
.ua-footer-page-content a:hover {
  color: var(--ua-light) !important;
  text-decoration: none !important;
}

/* Separator im Footer */
.ua-footer-main .bt_bb_separator,
.ua-footer-main [class*="bt_bb_separator"],
.ua-footer-page-content .bt_bb_separator,
.ua-footer-page-content [class*="bt_bb_separator"] {
  display: block !important;
  width: 100% !important;
  margin: 12px 0 !important;
  clear: both !important;
}

/* Headline im Footer */
.ua-footer-main .bt_bb_headline,
.ua-footer-main [class*="bt_bb_headline"],
.ua-footer-page-content .bt_bb_headline,
.ua-footer-page-content [class*="bt_bb_headline"] {
  display: block !important;
  width: 100% !important;
  margin-bottom: 16px !important;
  clear: both !important;
}

.ua-footer-main .bt_bb_headline h1,
.ua-footer-main .bt_bb_headline h2,
.ua-footer-main .bt_bb_headline h3,
.ua-footer-main .bt_bb_headline h4,
.ua-footer-main .bt_bb_headline h5,
.ua-footer-main [class*="bt_bb_headline"] h1,
.ua-footer-main [class*="bt_bb_headline"] h2,
.ua-footer-main [class*="bt_bb_headline"] h3,
.ua-footer-main [class*="bt_bb_headline"] h4,
.ua-footer-main [class*="bt_bb_headline"] h5,
.ua-footer-page-content [class*="bt_bb_headline"] h1,
.ua-footer-page-content [class*="bt_bb_headline"] h2,
.ua-footer-page-content [class*="bt_bb_headline"] h3,
.ua-footer-page-content [class*="bt_bb_headline"] h4,
.ua-footer-page-content [class*="bt_bb_headline"] h5 {
  font-size: 16px !important;
  color: var(--ua-light) !important;
  margin: 0 0 8px 0 !important;
  font-weight: 700 !important;
}

.ua-footer-page-content .textwidget ul,
.ua-footer-page-content .widget_text ul {
  display: flex;
  flex-direction: column;
}

.ua-footer-page-content p a {
  display: block;
  margin-bottom: 8px;
}

.ua-footer-page-content .wp-block-group,
.ua-footer-page-content .wp-block-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ua-footer-page-content .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 20px;
}

.ua-footer-page-content .wp-block-column {
  flex: 1 1 200px;
  min-width: 200px;
}

.ua-footer-page-content .wp-block-navigation__container,
.ua-footer-page-content .wp-block-navigation-item {
  display: flex;
  flex-direction: column;
}

.ua-footer-page-content .wp-block-navigation-item__content {
  display: block;
  padding: 4px 0;
}

/* ============================================================
   FOOTER - Bold Builder (BoldThemes) Fix
   ============================================================ */
footer.btSiteFooter .bt_bb_row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

footer.btSiteFooter .bt_bb_column {
  flex: 1 1 220px;
  min-width: 220px;
}

@media (min-width: 1200px) {
  footer.btSiteFooter .bt_bb_column {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

footer.btSiteFooter .bt_bb_column_content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer.btSiteFooter .bt_bb_icon {
  display: block;
  width: 100%;
  margin: 0;
}

footer.btSiteFooter .bt_bb_icon a,
footer.btSiteFooter a {
  display: block;
  width: 100%;
  white-space: normal;
  text-decoration: none;
}

footer.btSiteFooter .bt_bb_icon_holder {
  display: none;
}

/* ============================================================
   LOWER FOOTER
   ============================================================ */
.ua-lower-footer {
  background: #1a2f33;
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  width: 100%;
}

.ua-lower-footer-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.ua-footer-copyright {
  font-size: 14px;
}

.ua-footer-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.ua-footer-menu-list a {
  text-decoration: none;
  font-size: 14px;
  transition: color var(--ua-transition);
}

.ua-footer-menu-list a:hover {
  color: var(--ua-light);
}

/* ============================================================
   UTILITY COMPONENTS
   ============================================================ */

/* Gradient Underline */
.ua-grad-underline {
  --ua-gl-h: 0.35em;
  --ua-gl-off: 0.15em;
  --ua-gl-grad: linear-gradient(to right, #2f4449, #fabe0c);
  position: relative;
  display: inline-block;
  font-weight: 800;
}

.ua-grad-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: var(--ua-gl-off);
  width: 100%;
  height: var(--ua-gl-h);
  background: var(--ua-gl-grad);
  z-index: -1;
  border-radius: 0;
}

/* ============================================================
   PANEL HEADER - Legacy (für bestehende Implementierungen)
   ============================================================ */
.ua-panel-header {
  margin: 0 auto clamp(16px, 3vw, 24px) auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 95%;
  padding: clamp(8px, 1.2vw, 12px) clamp(16px, 8vw, 80px) clamp(12px, 2vw, 16px) clamp(32px, 6vw, 64px);
  position: relative;
  background:
    repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, 0.05) 0 8px,
      transparent 8px 16px),
    var(--ua-dark);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - clamp(12px, 2vw, 20px)),
    calc(100% - clamp(12px, 2vw, 20px)) 100%,
    0 100%
  );
  margin-right: clamp(8px, 2vw, 16px);
  border-radius: 4px;
  box-shadow: 0 clamp(4px, 1vw, 8px) clamp(10px, 2vw, 20px) rgba(0, 0, 0, 0.25);
}

.ua-panel-header::before {
  content: "";
  position: absolute;
  left: clamp(12px, 2.5vw, 28px);
  top: clamp(8px, 1.2vw, 12px);
  bottom: clamp(12px, 2vw, 16px);
  width: clamp(4px, 0.6vw, 6px);
  border-radius: 3px;
  background-color: var(--ua-light);
}

/* Panel Header Überschriften - Umbruch nur an Leerzeichen */
.ua-panel-header.ua-panel-header h1,
.ua-panel-header.ua-panel-header h2,
.ua-panel-header.ua-panel-header h3 {
  font-size: clamp(16px, 2.5vw, 28px);
  line-height: 1.3;
  margin: 0;
  padding: 0;
  position: relative;
  top: -0.05em;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  color: #fff;
}

/* Panel Header LONG - Umbruch ab 680px */
@media (max-width: 680px) {
  .ua-panel-header.long h1,
  .ua-panel-header.long h2,
  .ua-panel-header.long h3 {
    white-space: normal !important;
    word-break: break-word !important;
    font-size: 20px !important;
  }
}

@media (max-width: 480px) {
  .ua-panel-header.long h1,
  .ua-panel-header.long h2,
  .ua-panel-header.long h3 {
    font-size: 17px !important;
  }
}

@media (max-width: 360px) {
  .ua-panel-header.long h1,
  .ua-panel-header.long h2,
  .ua-panel-header.long h3 {
    font-size: 15px !important;
  }
}

body.wf-active .ua-panel-header h1,
body.wf-active .ua-panel-header h2,
body.wf-active .ua-panel-header h3 {
  font-size: clamp(16px, 2.5vw, 28px);
}

/* ============================================================
   SECTION HEADER - Empfohlen für Bold Builder
   ============================================================ */
.ua-section-header {
  margin: 0 auto clamp(16px, 3vw, 24px) auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: none;
  padding: clamp(8px, 1.2vw, 12px) clamp(16px, 8vw, 80px) clamp(12px, 2vw, 16px) clamp(32px, 6vw, 64px);
  position: relative;
  background:
    repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, 0.05) 0 8px,
      transparent 8px 16px),
    var(--ua-dark);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - clamp(12px, 2vw, 20px)),
    calc(100% - clamp(12px, 2vw, 20px)) 100%,
    0 100%
  );
  margin-right: clamp(8px, 2vw, 16px);
  border-radius: 4px;
  box-shadow: 0 clamp(4px, 1vw, 8px) clamp(10px, 2vw, 20px) rgba(0, 0, 0, 0.25);
}

.ua-section-header::before {
  content: "";
  position: absolute;
  left: clamp(12px, 2.5vw, 28px);
  top: clamp(8px, 1.2vw, 12px);
  bottom: clamp(12px, 2vw, 16px);
  width: clamp(4px, 0.6vw, 6px);
  border-radius: 3px;
  background-color: var(--ua-light);
}

/* Section Header - IMMER einzeilig */
.ua-section-header h1,
.ua-section-header h2,
.ua-section-header h3 {
  font-size: 24px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  top: -0.05em;
  color: #fff !important;
  word-break: normal !important;
  hyphens: none !important;
}

/* Section Header LONG - Umbruch ab 680px */
@media (max-width: 680px) {
  .ua-section-header.long {
    max-width: 95%;
  }
  
  .ua-section-header.long h1,
  .ua-section-header.long h2,
  .ua-section-header.long h3 {
    white-space: normal !important;
    word-break: break-word !important;
    font-size: 20px !important;
  }
}

@media (max-width: 480px) {
  .ua-section-header.long {
    max-width: 96%;
  }
  
  .ua-section-header.long h1,
  .ua-section-header.long h2,
  .ua-section-header.long h3 {
    font-size: 18px !important;
  }
}

@media (max-width: 360px) {
  .ua-section-header.long {
    max-width: 98%;
  }
  
  .ua-section-header.long h1,
  .ua-section-header.long h2,
  .ua-section-header.long h3 {
    font-size: 16px !important;
  }
}

/* Search Background with Hatching */
.ua-search-bg {
  position: relative;
  background: var(--ua-dark);
  overflow: hidden;
}

.ua-search-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.10) 0px,
      rgba(255, 255, 255, 0.10) 6px,
      rgba(255, 255, 255, 0.00) 6px,
      rgba(255, 255, 255, 0.00) 14px
    );
  z-index: 1;
}

/* Content Boxes */
.content-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 50px;
  box-shadow: 
    0 12px 48px 0 rgba(0, 0, 0, 0.4),
    0 4px 16px 0 rgba(0, 0, 0, 0.25);
}

.glass-dark {
  background: rgba(47, 68, 73, 0.3);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 35px 45px;
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ua-btn-primary,
.ua-btn-lastminute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: var(--ua-radius-full);
  background-color: var(--ua-yellow);
  color: var(--ua-blue);
  font-family: var(--ua-font);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  width: auto;
  max-width: fit-content;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ua-btn-primary:hover,
.ua-btn-lastminute:hover {
  background-color: #ffd350;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   CONTACT FORM (CF7)
   ============================================================ */
.ua-form {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}

@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .ua-form {
    background: rgba(255, 255, 255, 0.95);
  }
}

.wpcf7 form {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  border-radius: 0;
}

.cf7-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.cf7-row.cf7-2col .cf7-col {
  flex: 1 1 0;
  min-width: 260px;
}

.cf7-row .wpcf7-form-control {
  width: 100%;
}

.cf7-row br {
  display: none;
}

.wpcf7-form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--ua-radius-btn);
  border: 1px solid rgba(47, 68, 73, 0.25);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  font: 16px/1.4 var(--ua-font);
  color: var(--ua-dark);
  transition: all var(--ua-transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-top: 15px;
}

.wpcf7-form-control::placeholder {
  color: rgba(47, 68, 73, 0.55);
}

.wpcf7-form-control:focus {
  outline: none;
  border-color: var(--ua-light);
  box-shadow: 0 0 0 4px rgba(250, 190, 12, 0.25);
  background: #fff;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #ffb900;
  background: #f1f1f1;
}

textarea.wpcf7-form-control {
  min-height: 130px;
  resize: vertical;
}

input[type="date"] {
  padding-right: 38px;
}

/* CF7 Submit Button */
input[type="submit"],
.wpcf7-form-control.wpcf7-submit {
  display: inline-block;
  width: 100%;
  border: 2px solid var(--ua-dark);
  padding: 16px 32px;
  border-radius: var(--ua-radius-btn);
  background: linear-gradient(135deg, var(--ua-dark) 0%, #1a2f33 100%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(47, 68, 73, 0.3);
  transition: all 0.3s ease;
}

input[type="submit"]:hover,
.wpcf7-form-control.wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 68, 73, 0.4);
  border-color: var(--ua-light);
}

/* ============================================================
   QUICKSEARCH & IBE
   ============================================================ */
.ua-qs-modal,
.ua-qs-modal-overlay {
  z-index: 10000;
}

.ui-autocomplete,
.ua-qs-dropdown {
  z-index: 10001;
}

.ua-qs-modal-trigger {
  position: relative;
  z-index: 1;
}

.ua-qs-modal-trigger,
.ua-qs-search-bar,
.ua-qs-search-field {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.ua-qs-search-field:hover {
  background-color: rgba(250, 190, 12, 0.1);
}

.ua-qs-tabs,
.ua-qs-tab {
  pointer-events: auto;
  cursor: pointer;
}

.ua-qs-tab:not(.disabled):hover {
  opacity: 0.8;
}

.ua-qs-modal-overlay {
  z-index: 99999;
}

.ua-qs-modal-content {
  z-index: 100000;
}

.c-modal__headline {
  color: #ffffff !important;
}

.ua-quicksearch-ibe-wrapper[data-instance-id="qs_1763034126_3132"] .ua-quicksearch-ibe-form {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

/* ============================================================
   ADOBE FONTS FIX
   ============================================================ */
.wf-active h1, .wf-active h2, .wf-active h3,
.wf-active h4, .wf-active h5, .wf-active h6,
.wf-loading h1, .wf-loading h2, .wf-loading h3 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.wf-active h1:first-child, .wf-active h2:first-child,
.wf-active h3:first-child, .wf-active h4:first-child,
.wf-active h5:first-child, .wf-active h6:first-child {
  margin-top: 0;
}

body.wf-active *:first-child > h1,
body.wf-active *:first-child > h2,
body.wf-active *:first-child > h3,
body.wf-active *:first-child > h4,
body.wf-active *:first-child > h5,
body.wf-active *:first-child > h6 {
  margin-top: 0;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Desktop Large (1400px+) */
@media (max-width: 1400px) {
  .ua-menu {
    gap: 3px;
  }
  
  .ua-menu a {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Desktop (1200px) */
@media (max-width: 1200px) {
  .ua-menu {
    gap: 2px;
  }
  
  .ua-menu a {
    padding: 10px 10px;
    font-size: 13px;
  }
}

/* Tablet (1024px) */
@media (max-width: 1024px) {
  .ua-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ua-footer-page-content .bb-row,
  .ua-footer-page-content .bt-row,
  .ua-footer-page-content .wp-block-columns {
    gap: 30px;
    padding: 50px 20px 35px;
  }
  
  .ua-footer-page-content .bb-column,
  .ua-footer-page-content .bt-column,
  .ua-footer-page-content [class*="bt_bb_column"],
  .ua-footer-page-content .wp-block-column {
    flex: 1 1 calc(50% - 15px);
    min-width: calc(50% - 15px);
  }
}

/* Tablet & Mobile (768px) */
@media (max-width: 768px) {
  /* Horizontales Scrollen durch Schatten verhindern */
  html, body {
    overflow-x: hidden;
  }
  
  .ua-topbar {
    font-size: 13px;
    height: 36px;
  }
  
  .ua-topbar-inner {
    padding: 0 16px;
    gap: 12px;
  }
  
  .ua-topbar-left,
  .ua-topbar-right {
    gap: 12px;
  }
  
  .ua-topbar-phone {
    font-size: 13px;
  }
  
  .ua-topbar-icon {
    width: 14px;
    height: 14px;
  }
  
  .ua-topbar-social a {
    width: 28px;
    height: 28px;
  }
  
  .ua-topbar-social svg {
    width: 16px;
    height: 16px;
  }
  
  .ua-topbar-menu {
    margin-left: 12px;
  }
  
  .ua-topbar-menu-list {
    gap: 10px;
  }
  
  .ua-topbar-menu-list a {
    font-size: 12px;
  }
  
  .ua-header-inner {
    padding: 0 20px;
    min-height: 70px;
  }
  
  .ua-logo img,
  .custom-logo {
    height: 60px;
  }
  
  .ua-footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px 30px;
  }
  
  .ua-lower-footer-inner {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
  }
  
  .ua-footer-menu-list {
    flex-direction: column;
    gap: 12px;
  }
  
  .ua-footer-page-content .bb-row,
  .ua-footer-page-content .bt-row,
  .ua-footer-page-content .wp-block-columns {
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px 30px;
  }
  
  .ua-footer-page-content .bb-column,
  .ua-footer-page-content .bt-column,
  .ua-footer-page-content [class*="bt_bb_column"],
  .ua-footer-page-content .wp-block-column {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .ua-footer-page-content {
    text-align: left;
  }
  
  .ua-footer-page-content ul,
  .ua-footer-page-content ol {
    align-items: flex-start;
  }
  
  .content-box {
    padding: 25px 30px;
  }
  
  .cf7-row {
    gap: 10px;
  }
  
  .wpcf7-form-control {
    font-size: 15px;
  }
  
  input[type="submit"],
  .wpcf7-form-control.wpcf7-submit {
    width: 100%;
    text-align: center;
  }
  
  .topBar.bt-clear {
    background-image:
      linear-gradient(to right, rgba(47, 68, 73, 0.08), rgba(47, 68, 73, 0.12)),
      linear-gradient(to right, var(--ua-yellow) 0%, var(--ua-blue) 100%);
  }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
  .ua-header-inner {
    padding: 0 16px;
  }
  
  .ua-footer {
    padding: 40px 0 0;
    margin-top: 60px;
  }
  
  .ua-footer-inner {
    padding: 0 16px 30px;
  }
  
  .ua-topbar {
    height: auto;
    min-height: 60px;
  }
  
  .ua-topbar-inner {
    flex-direction: column;
    gap: 10px;
    padding: 10px 16px;
    justify-content: center;
  }
  
  .ua-topbar-left,
  .ua-topbar-right {
    width: 100%;
    justify-content: center;
  }
  
  .ua-topbar-menu {
    display: none;
  }
  
  .ua-mobile-menu-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px 0;
  }
  
  .ua-mobile-topbar-menu li {
    opacity: 0.8;
  }
  
  .ua-mobile-topbar-menu a {
    font-size: 16px;
  }
  
  /* Panel Header Legacy - Mobile */
  .ua-panel-header {
    padding: 10px 16px 12px 32px;
    max-width: 96%;
  }
  
  .ua-panel-header::before {
    top: 10px;
    bottom: 12px;
  }
}

/* Mobile Extra Small (360px) */
@media (max-width: 360px) {
  .ua-panel-header {
    padding: 10px 14px 12px 28px;
    max-width: 98%;
  }
  
  .ua-panel-header::before {
    top: 10px;
    bottom: 12px;
  }
}
