/* ===========================================
   SOMETHINGBLUE THEME - EXTENDED STYLES
   Navigation & Templates Fix
   =========================================== */

/* Top Navigation (horizontal) */
.top-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.top-nav .top-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.top-nav .top-menu li {
  margin: 0;
}

.top-nav .top-menu a {
  display: block;
  text-decoration: none;
  color: #999;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid transparent;
}

.top-nav .top-menu a:hover,
.top-nav .top-menu .current-menu-item > a,
.top-nav .top-menu .current_page_item > a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Fullwidth Template Styles */
.fullwidth-section {
  padding: 120px 40px 180px;
}

.fullwidth-content {
  max-width: 1200px;
  margin: 0 auto;
}

.fullwidth-section .entry-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  text-align: center;
}

.fullwidth-section .entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.fullwidth-section .featured-image {
  margin-bottom: 3rem;
  border-radius: 8px;
  overflow: hidden;
}

.fullwidth-section .featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Page Template Adjustments */
.page .section {
  padding-top: 120px;
}

.page .main-content {
  max-width: 100%;
}

.page .entry-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page .entry-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.page .entry-content ul,
.page .entry-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.page .entry-content li {
  margin-bottom: 0.5rem;
}

/* Footer Fixes */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 29, 35, 0.98);
  border-top: 1px solid rgba(203, 191, 156, 0.2);
  padding: 0rem 0rem;
  height: 0;
  z-index: 900;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0.1rem;
  width: 100%;
}

.footer-logo {
  flex: 0 0 200px;
}

.footer-logo img {
  width: 200px;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  display: none;
}

.footer-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column h4 {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
}

.footer-column a {
  color: #999;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-menu li {
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .top-nav {
    top: 10px;
    right: 10px;
  }
  
  .top-nav .top-menu {
    gap: 1rem;
  }
  
  .top-nav .top-menu a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .footer-content {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .footer-column {
    flex: 1 1 200px;
  }
}

@media (max-width: 768px) {
  .top-nav .top-menu {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    flex: 1 1 100%;
  }
}

/* ===========================================
   TEXT-ONLY SLIDE TEMPLATE
   2-Spalten-Layout ohne Bilder
   =========================================== */

.section-text-only .content-container-text-only {
  display: flex;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  gap: 80px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.section-text-only .left-nav {
  flex: 0 0 210px;
  width: 210px;
}

.section-text-only .main-content-wide {
  flex: 1;
  max-width: 900px;
  padding-left: 0;
}

/* Responsive Anpassungen fÃ¼r Text-Only */
@media (max-width: 1024px) {
  .section-text-only .content-container-text-only {
    padding: 0 40px;
    gap: 40px;
  }
  
  .section-text-only .main-content-wide {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .section-text-only .content-container-text-only {
    flex-direction: column;
    padding: 100px 20px 60px;
    gap: 20px;
  }
  
  .section-text-only .left-nav {
    width: 100%;
    flex: none;
  }
  
  .section-text-only .main-content-wide {
    width: 100%;
  }
}

/* ===========================================
   SINGLE SLIDE VIEW
   Einzelne Slide mit Navigation
   =========================================== */

.single-slide .deck {
  /* Kein horizontaler Scroll bei Einzelansicht */
  width: 100vw;
  transform: none !important;
}

.single-slide .section {
  /* Einzelne Slide nimmt vollen Viewport */
  width: 100vw;
  min-width: 100vw;
}

/* Navigation Controls fÃ¼r Single Slide */
body.single-slide .nav-controls {
  display: flex;
}

body.single-slide .slide-counter {
  display: block;
}

/* Keyboard Navigation Support */
body.single-slide {
  /* Pfeiltasten-Navigation wird via JS hinzugefÃ¼gt */
}

/* ===========================================
   SINGLE SLIDE VIEW - HIDE NAVIGATION
   Keine Pfeile/Counter auf einzelnen Slides
   =========================================== */

.single-slide-view .nav-controls,
.single-slide-view .slide-counter {
  display: none !important;
}

/* Navigation nur auf Startseite (front-page) */
body.home .nav-controls,
body.home .slide-counter {
  display: flex;
}

/* ===========================================
   LOGO POSITION - FIXED TOP RIGHT
   =========================================== */

.site-header .custom-logo-link,
.site-header .site-logo {
  position: fixed;
  top: 50px;
  right: 20px;
  z-index: 1000;
  width: 200px;
}

.site-header .custom-logo-link img,
.site-header .site-logo img {
  width: 200px;
  height: auto;
}

/* ===========================================
   LEFT NAVIGATION - BULLET POINT STYLE
   Ãœberschreibt main.css mit !important
   =========================================== */

.left-nav {
  background: transparent !important;
}

.left-nav ul,
.left-nav .menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Haupt-Link-Styling mit Bullet Points */
.left-nav a {
  color: #ffffff !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  line-height: 1.6 !important;
  letter-spacing: 0.15em !important;
  text-decoration: none !important;
  display: block !important;
  padding: 12px 15px 12px 25px !important;
  transition: opacity 0.3s ease !important;
  position: relative !important;
  border-left: none !important;
  border-left-color: transparent !important;
  background: #57513E !important;
}

/* Bullet Point (|) vor jedem Hauptmenüpunkt */
.left-nav a::before {
  content: '|' !important;
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1rem !important;
  color: #ffffff !important;
  font-weight: 300 !important;
}

/* Hover-Effekt */
.left-nav a:hover {
  opacity: 0.7 !important;
  color: #ffffff !important;
  border-left: none !important;
  border-left-color: transparent !important;
}

/* Active/Current State */
.left-nav a.active,
.left-nav .current-menu-item > a,
.left-nav .current_page_item > a {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 400 !important;
  border-left: none !important;
  border-left-color: transparent !important;
}

/* Listen-Items AbstÃ¤nde - 10px Abstand zwischen den Rechtecken */
.left-nav > .left-nav-content > ul > li,
.left-nav .menu > li {
  margin-bottom: 10px !important;
  position: relative !important;
  background: #57513E !important;
}

/* Letztes Element ohne Abstand nach unten */
.left-nav > .left-nav-content > ul > li:last-child,
.left-nav .menu > li:last-child {
  margin-bottom: 0 !important;
}

/* Sub-Menu Styling - Pfeil statt Strich */
.sub-nav,
.left-nav .sub-menu {
  margin-left: 0 !important;
  padding-left: 0 !important;
  margin-top: 5px !important;
}

.sub-nav li,
.left-nav .sub-menu li {
  margin-bottom: 5px !important;
  background: #4a4536 !important;
}

.sub-nav a,
.left-nav .sub-menu a {
  padding-left: 30px !important;
  font-size: 12px !important;
  background: #4a4536 !important;
}

.sub-nav a::before,
.left-nav .sub-menu a::before {
  content: '→' !important;
  left: 12px !important;
  font-size: 0.85rem !important;
}

/* ===========================================
   BUTTON / CTA STYLING
   Transparent mit Gold-Rahmen
   =========================================== */

.cta,
button.cta,
a.cta,
input[type="submit"],
.wp-block-button__link {
  display: inline-block !important;
  width: auto !important;
  max-width: fit-content !important;
  background: transparent !important;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0.8rem 1.5rem !important;
  border: 1px solid #cbbf9c !important;
  border-radius: 0 !important;
  font-weight: 400 !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  cursor: pointer !important;
}

.cta:hover,
button.cta:hover,
a.cta:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: rgba(203, 191, 156, 0.1) !important;
  color: #cbbf9c !important;
  border-color: #cbbf9c !important;
  transform: none !important;
}

/* ===========================================
   IMAGE / SLIDESHOW STYLING
   HÃ¶he auf 90%
   =========================================== */

.middle-images {
  flex: 0 0 520px !important;
  width: 520px !important;
  max-width: 520px !important;
  height: 90% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.image-slideshow {
  position: relative !important;
  width: 100% !important;
  height: 700px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
}

/* Content Ã¼ber dem Overlay */
.leistungen-hero-content,
.leistungen-hero-image {
  position: relative !important;
  z-index: 2 !important;
}

/* ===========================================
   ICON BOX HORIZONTAL
   Icon links mit Kreis, Text rechts
   =========================================== */

.icon-box-horizontal {
  gap: 1.5rem !important;
}

.icon-box-icon-circle {
  flex-shrink: 0 !important;
}

.icon-box-icon-circle img {
  border: 2px solid #cbbf9c !important;
  border-radius: 50% !important;
  padding: 12px !important;
  width: 70px !important;
  height: 70px !important;
  object-fit: contain !important;
}