/* ===== GENERAL STYLES ===== */
:root {
  /* Skaliert den gesamten Fließtext (inkl. <p> und <li>) fließend von 14px auf 16px */
  --bs-body-font-size: clamp(0.875rem, 1vw + 0.6875rem, 1rem);
  /* --bs-body-line-height: 1.4; wenn Abstand geringer sein soll */
}
/* Einleitungstexte (.lead) mobil auf 16px verkleinern, Desktop bleibt bei 20px */
.lead {
  font-size: clamp(1rem, 1.5vw + 0.65rem, 1.25rem);
}
/* Abstand für die fixierte Navbar */
body {
    padding-top: 70px; 
}
html {
  scroll-padding-top: 56px; /* Oder etwas mehr, z. B. 70px, für etwas Luft */
}
.text-hyphens {
    -webkit-hyphens: auto; /* Für Safari / iOS */
    hyphens: auto;
    overflow-wrap: break-word; /* Fallback für extrem lange Wörter */
}
h1.h1 {
    color: #000;
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    font-weight:700;
    text-align: center;
}
h1 {
color: #000;
    font-size: clamp(1rem, 4vw, 1.8rem);
    font-weight:700;
    text-align: center;

}
h2 {
    color: #000;
    font-size: clamp(1.2rem, 4vw, 1.3rem);
    font-weight:700;
}

h3 {
    color: #111;
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    font-weight:600;
}
#testimonialCarousel {
  touch-action: pan-y;
}

/* --- NAVBAR --- */

.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
/* Navbar Link-Farben */
.navbar-nav .nav-link {
    color: #000000;
}
.navbar-nav .nav-link:hover {
    color: #0d6efd;
}
.navbar-nav .nav-link.active {
    color: #0d6efd;
  font-weight: 700;
}

/* --- Dropdown Hover --- */
/* Desktop-Hover ab 992px */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown > .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 0;
    
    /* Startzustand: unsichtbar & leicht nach oben versetzt */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    
    /* Schließen: 150ms Animation + 200ms Verzögerung (delay-hide) */
    transition: opacity 0.15s ease 0.2s, 
                transform 0.15s ease 0.2s, 
                visibility 0s linear 0.35s;
  }

  /* Hover-Zustand auf dem gesamten <li> ("Verein" + Untermenü) */
  .navbar .nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    
    /* Öffnen: 150ms Animation + 100ms Verzögerung (delay-show) */
    transition: opacity 0.15s ease 0.1s, 
                transform 0.15s ease 0.1s, 
                visibility 0s linear 0.1s;
  }
}

/* --- Grundstyling für das Submenu --- */
.custom-submenu {
  display: none;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.175);
  border-radius: 0.375rem;
  min-width: 12rem;
  z-index: 1050;
}

/* Sichtbar machen per Klick/Touch */
.custom-submenu.open {
  display: block !important;
}

/* Desktop (ab 992px): Links neben "Internes" & Hover */
@media (min-width: 992px) {
  .dropdown-menu > li {
    position: relative;
  }
  .custom-submenu {
    position: absolute;
    right: 100%;
    left: auto;
    top: -0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
  .dropdown-menu > li:hover > .custom-submenu {
    display: block;
  }
}

/* Mobil (unter 992px): Sauber eingerückt nach unten */
@media (max-width: 991.98px) {
  .custom-submenu {
    position: static;
    border: none;
    border-left: 2px solid #dee2e6;
    border-radius: 0;
    margin: 0.25rem 1rem;
    padding: 0.25rem 0 0.25rem 0.5rem;
    box-shadow: none;
  }
  .dropstart .dropdown-toggle::before {
    transform: rotate(-90deg);
  }
}

/* --- HERO --- */

.hero-section {
    height: 50vh;
    min-height: 400px;
}
.hero-text-shadow {
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9), 0px 0px 5px rgba(0, 0, 0, 0.5);
}
.hero-title {
    font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
    line-height: 1.2;
}

/* --- LIGHTBOX --- */

/* --- Lightbox Hintergrund etwas transparenter machen --- */
.modal-backdrop.show {
    opacity: 0.65; /* Standard in Bootstrap ist 0.5, durch bg-dark wirkte es vorher komplett schwarz */
}

/* --- Moderne, dezente Lightbox-Pfeile --- */
.lightbox-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lightbox-nav-btn:hover {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

/* --- GALERIE --- */

/* --- Galerie Hover-Overlay mit Lupe --- */
.gallery-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.375rem; /* Entspricht Bootstrap rounded */
}

.gallery-card img {
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.03);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(13, 110, 253, 0.65); /* Passend zumm Footer-Blau */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* --- SLIDER LAGE CAROUSEL --- */

/* Slider-Pfeile dunkel  */
#lageGalerieCarousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://w3.org' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
  filter: none !important;
}

#lageGalerieCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://w3.org' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  filter: none !important;
}

/* Pfeile etwas deckender machen */
#lageGalerieCarousel .carousel-control-prev,
#lageGalerieCarousel .carousel-control-next {
  opacity: 0.85;
}

#lageGalerieCarousel .carousel-control-prev:hover,
#lageGalerieCarousel .carousel-control-next:hover {
  opacity: 1;
}


