/* ================================
   Global Styles
================================== */
body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden; /* horizontales Scrollen verhindern */
}
h2 {
    white-space: normal; /* Text darf umbrechen */
    overflow-wrap: break-word; /* lange Wörter umbrechen */
    word-break: break-word; /* Fallback */
}

/* ================================
   Navbar Allgemein
================================ */
.navbar {
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: none;
    z-index: 1051;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
}

/* ================================
   Overlay für Mobile-Menü
================================ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================================
   Desktop: Dropdown bei Hover
================================ */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease-in-out;
    }

    .dropdown-menu {
        background-color: #111;
        border: none;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        margin-top: 8px;
        border-radius: 6px;
        min-width: 200px;
    }

    .dropdown-menu .dropdown-item {
        color: #fff;
        padding: 10px 16px;
        font-weight: 500;
        transition: background-color 0.2s;
    }

    .dropdown-menu .dropdown-item:hover {
        background-color: #0C297A;
        color: #fff;
    }
}

/* ================================
   Mobile Optimierung
================================ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #111;
        border-radius: 0.5rem;
        padding: 1rem;
        z-index: 1051;
    }

    /* Mobile Akkordeon Dropdown (ersetzt klassisches Dropdown) */
    .dual-dropdown .dropdown-menu {
        position: relative;
        float: none;
        background-color: #222;
        box-shadow: none;
        display: none;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
    }

    .dual-dropdown .dropdown-menu.show {
        display: block;
    }

    .dual-dropdown .dropdown-item {
        color: #fff;
        padding: 0.75rem 1.25rem;
    }

    .dual-dropdown .dropdown-item:hover {
        background-color: #0C297A;
    }

    .nav-link.dropdown-toggle::after {
        content: " ▼";
        font-size: 0.6rem;
    }
}

/* ================================
   Animation (optional)
================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ================================
   Hero Section
================================== */
.hero-section {
    height: 100vh;
    background: url('https://muaythai-bund-nrw.de/wp-content/uploads/2023/06/AdobeStock_159259974-scaled.jpeg') center center / cover no-repeat fixed;
    position: relative;
    padding: 0 15px;
}

.hero-section .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.9));
    z-index: 1;
}

.hero-logo {
    max-width: 220px;
    animation: pulse 3.5s infinite;
}

.scroll-indicator .mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
    animation: bounce 2s infinite;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    animation: scrollWheel 1.2s infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    50% { top: 16px; opacity: 0.5; }
    100% { top: 8px; opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}


.section-divider {
    height: 80px;
    background: linear-gradient(to bottom right, #232323 50%, transparent 50%);
    transform: rotate(180deg);
    margin-top: -40px;
}

.hero-section .overlay-gradient::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 100%);
    z-index: 2;
}

.hero-section .overlay-gradient {
    background: rgba(0, 0, 0, 0.6); /* dunkler Layer über dem Bild */
    z-index: 1;
}


/* ================================
   Subhero Section
================================== */

.sub-hero {
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(0, 0, 0, 0.9); /* Fallback */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85));
    z-index: 1;
}

.sub-hero > .container {
    position: relative;
    z-index: 2;
}

.sub-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
}

.sub-hero p.lead {
    font-size: 1rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}


/* ================================
   Next Section
================================== */
#next-section {
    padding: 80px 20px;
    background-color: #232323;
    /*text-align: center;*/
}

#next-section h2 {
    font-weight: 700;
}

/* ================================
   Animations
================================== */
@keyframes fadeInDown {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideWords {
    0%   { top: 0; }
    25%  { top: 0; }
    35%  { top: -1.2em; }
    60%  { top: -1.2em; }
    70%  { top: 0; }
    100% { top: 0; }
}

/* ================================
   Event Panel
================================== */
.event-panel {
    position: relative;
    margin-top: -90px;
    z-index: 10;
}

@media (max-width: 768px) {
    .event-panel {
        margin-top: -60px;
    }
}

.event-box {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ================================
   Benefits Section
================================== */
.benefits-section {
    position: relative;
    background: url('https://muaythai-bund-nrw.de/wp-content/uploads/2023/06/AdobeStock_527133039-scaled.jpeg') center center / cover no-repeat;
    padding: 100px 0;
    z-index: 1;
    overflow: hidden;
}

.benefits-section .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.benefits-section .container {
    z-index: 2;
    position: relative;
}

.benefits-section .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 3px solid #0C297A;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.benefits-section ul li {
    margin-bottom: 12px;
    font-weight: 500;
    padding-left: 1.2em;
    position: relative;
}

.benefits-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0C297A;
    font-weight: bold;
}

@media (max-width: 767.98px) {
    .benefits-section .section-title {
        font-size: 1.8rem;
    }

    .benefits-section ul {
        padding-left: 0;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.headline-bg-text {
    display: block;
    font-size: 1.8rem;
    color: #0C297A;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.headline-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0C297A, #174ea6);
    border-radius: 2px;
    margin-top: 10px;
    animation: underlineGrow 1.2s ease-out;
}

@keyframes underlineGrow {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80px;
        opacity: 1;
    }
}


/* ================================
   Vereine Section
================================== */
.vereine-section {
    padding: 80px 20px;
    background-color: #232323;
    text-align: center;
}
#vereine-map .leaflet-control-zoom {
    right: 10px;
    bottom: 40px;
}
.vereine-map-header {
    padding-top: 40px;
    padding-bottom: 20px;
    color: #fff;
}
.vereine-map-header::before {
    content: "";
    background: url('/assets/img/nrw-schatten.svg') center no-repeat;
    background-size: 160px;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.05;
    width: 160px;
    height: 160px;
    z-index: 0;
}
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.vereine-map-header h2 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.headline-bg-text {
    display: block;
    font-size: 1.8rem;
    color: #0C297A;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.headline-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0C297A, #174ea6);
    border-radius: 2px;
    margin-top: 10px;
    animation: underlineGrow 1.2s ease-out;
}

@keyframes underlineGrow {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80px;
        opacity: 1;
    }
}

.vereine-map-header p {
    margin-top: 10px;
    color: #ccc;
}


/* ================================
   Scroll to Top Button (Eckig)
================================== */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: none;
    padding: 0.6rem 0.9rem;
    font-size: 1.2rem;
    background-color: #0C297A; /* Deine Primärfarbe */
    color: #fff;
    border-radius: 0.375rem; /* Bootstrap rounded-md */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    border: none;
}

.btn-scroll-top i {
    margin-right: 4px;
    font-size: 1.1rem;
}

.btn-scroll-top:hover {
    background-color: #0a2163;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ================================
   Partner Section
================================== */
.footer-partner-box {
    background: #f8f9fa;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.partner-logo-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Slider für mobile Ansicht */
.partner-slider-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.partner-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.partner-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    min-width: max-content;
}

/* ================================
   Slide-Wort Animation
================================== */
.slide-container {
    display: inline-block;
    overflow: hidden;
    height: 1em;
    vertical-align: bottom;
    width: auto;
    position: relative;
}

#slide-word {
    display: inline-block;
    position: relative;
    animation: slideWords 6s infinite;
    white-space: nowrap;
}

/* ================================
   Content Container Shadow
================================== */

/* Partner Card */
.card-verein a.btn {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-verein {
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 100%;
    background: #f9f9f9;
    overflow: visible;
    position: relative;
}

.card-verein:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.verein-logo-wrapper {
    z-index: 10;
    width: 110px;
    height: 110px;
    background: #ffffffee;
    border-radius: 50%;
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    border: 4px solid #fff;
}

.verein-logo-wrapper img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
}

.headline-underline {
    width: 80px;
    height: 4px;
    background-color: #DA251C;
    margin-top: 12px;
    border-radius: 2px;
}

/* Über uns */
section img {
    transition: transform 0.3s ease;
}
section img:hover {
    transform: scale(1.02);
}
.link-info {
    color: #00bfff;
    text-decoration: none;
}
.link-info:hover {
    text-decoration: underline;
}
.fixed-image {
    height: 280px;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
.image-box {
    height: 400px;
    background-color: #111;
}

.img-hover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease-in-out;
}

.image-box:hover .img-hover {
    transform: scale(1.05);
}
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}
.lightbox-overlay.d-none {
    display: none;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    margin: 0 20px;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 2000;
}
.lightbox-prev,
.lightbox-next {
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    z-index: 1100;
}

.hero-video-section {
    min-height: 20vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(40%);
    z-index: 0;
}

.hero-video-overlay {
    background-color: rgba(0, 0, 0, 0.65); /* stärkeres dunkles Overlay */
    z-index: 1;
}

.hero-fallback-image {
    background-image: url('/assets/img/ueberuns/thailand-fallback.jpg');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.icon-circle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff10;
    border: 1px solid #ffffff30;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none !important; /* verhindert Underline */
}

.icon-circle:hover {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    text-decoration: none !important; /* verhindert Underline */
}


.partner-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    height: 130px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.partner-logo {
    filter: grayscale(0%); /* Standard bunt */
    transition: all 0.3s ease-in-out;
    max-height: 60px;
    object-fit: contain;
    opacity: 1;
}

.partner-card:hover .partner-logo {
    filter: grayscale(100%); /* Hover: Schwarz-Weiß */
    opacity: 0.8;
}