body {
    overflow-x: hidden;
    background-color: #f8f9fa;
    /* Hide scrollbar but allow scrolling */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

@media (min-width: 1200px) {
    .h2, h2 {
        font-size: 3rem;
    }
}
@media (max-width: 767.98px) {
    .h2, h2 {
        font-size: 1.85rem;
    }
    .lead {
        font-size: 1.1rem;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

.pb-8 {
    padding-bottom: 5rem;
}

.pt-8 {
    padding-top: 5rem;
}

.pl-5 {
    padding-left: 3rem;
}

.pr-5 {
    padding-right: 3rem;
}

.navbar-custom {
    background-color: transparent;
    height: 80px;
    display: flex;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease-in-out;
}
.navbar-custom.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
}
.navbar-custom.scrolled .header-title {
    color: #A60029;
}
.navbar-custom.scrolled .hamburger-btn {
    color: #A60029;
}
.navbar-custom.scrolled .hamburger-btn svg path {
    stroke: #A60029;
}
.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
    line-height: 1.1;
    font-size: 1.3rem;
}
.header-title:hover {
    color: white;
}
.navbar-custom.scrolled .header-title:hover {
    color: #A60029;
}
#side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background-color: #A60029; /* Bootstrap red */
    color: white;
    transition: all 0.3s ease-in-out;
    z-index: 1040;
    padding-top: 80px;
    padding-bottom: 20px;
    display: flex !important;
    flex-direction: column;
}
#side-menu.show {
    left: 0;
}
.submenu {
    position: fixed;
    top: 0;
    left: -280px; /* Hidden behind main menu or off-screen */
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background-color: #A60029; /* Darker red */
    color: white;
    transition: all 0.3s ease-in-out;
    z-index: 1039;
    padding-top: 80px;
}
#side-menu.show ~ .submenu.show {
    left: min(280px, 85%);
}
.menu-link {
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
    font-weight: 300;
    font-size: 1.3rem;
    position: relative;
}
.menu-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 0;
    border-bottom: 1px solid white;
    transition: all 0.3s ease-in-out;
}
.menu-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    box-shadow: 0 0 10px #fff, 0 0 20px #fff;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}
@keyframes move-glow {
    0% {
        left: 25px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: calc(100% - 60px);
        opacity: 0;
    }
}
.submenu .menu-link::after, .submenu .menu-link::before {
    display: none;
}
.menu-link:hover {
    color: white;
}
.menu-link:hover::before {
    animation: move-glow 0.8s 1 linear;
}
.menu-link:hover::after {
    border-bottom: 1px solid white;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1035;
}
.overlay.show {
    display: block;
}
#side-menu.admin-side-menu {
    padding-top: 40px;
    padding-bottom: 10px;
}
#side-menu.admin-side-menu .menu-link {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 1rem;
}
#side-menu.admin-side-menu hr {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
}
#side-menu.admin-side-menu .small,
#side-menu.admin-side-menu a.small,
#side-menu.admin-side-menu div.small {
    font-size: 0.75rem !important;
}
#side-menu.admin-side-menu img {
    max-width: 80px !important;
}
.submenu.admin-submenu {
    padding-top: 40px;
}
.submenu.admin-submenu .menu-link {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 1rem;
}
.hamburger-btn {
    background: none;
    border: none;
    padding: 0px 15px 10px 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1050;
    color: white;
}
.hamburger-btn svg path {
    stroke: white;
}
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.slide.active {
    opacity: 1;
}
.slide video, .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.hero-content, .login-hero-overlay {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background: rgba(0,0,0,0.1); /* Etwas dunkler für besseren Fokus */
}
.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
}
.login-card .form-control {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px 15px;
}
.login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    color: white;
}
.login-card .input-group-text {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
.login-card .btn-danger {
    background-color: #A60029;
    border: none;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}
.login-card .btn-danger:hover {
    background-color: #d10034;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 0, 41, 0.4);
}
.login-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    line-height: 0.9;
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}
.hero-btns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
}
.btn {
    border-radius: 8px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
.text-bold {
    font-weight: 700 !important;
}
.hero-btns .btn {
    margin: 0;
    padding: 8px 30px !important;
    font-size: 1.1rem;
    border-radius: 8px;
    white-space: nowrap;
}
.about-us-section {
    background-color: #f8f9fa; /* Bootstrap's light gray */
    color: #333;
    position: relative;
    z-index: 10;
}
p {
    font-size: 1.2rem;
    line-height: 1.7;
}
.text-muted, .form-text {
    font-size: 1.15rem !important;
}
.lead, .lead-text {
    font-size: 1.7rem;
    line-height: 1.6;
    color: #555;
}

.label {
    font-size: 1rem;
}

.full-width-image-section {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    position: relative;
    z-index: 10;
}
.full-width-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 1250px;
}

.upcoming-events-section {
    background-color: #f8f9fa;
    position: relative;
    z-index: 10;
}

.upcoming-events-section h2 {
    font-size: clamp(1.85rem, 4vw, 3rem);
}

.event-card {
    background-color: transparent;
    border-radius: 15px;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1.2rem);
    font-weight: 500;
    color: #A60029;
}

.event-date {
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    color: #000;
}

.event-time, .event-title {
    font-size: clamp(1.1rem, 2.5vw, 2.0rem);
    font-weight: 300;
    color: #333;
}

.event-location {
    font-size: clamp(0.9rem, 1.5vw, 1.0rem);
    font-weight: 300;
    color: #333;
}

.vertical-divider {
    width: 1px;
    height: 300px;
    background-color: #dee2e6;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .upcoming-events-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .upcoming-events-section h2 {
        margin-bottom: 1.5rem !important;
    }
    .event-card {
        padding: 0.5rem 0.25rem !important;
    }
    .event-card .event-date {
        margin-bottom: 0.25rem !important;
    }
    .event-card .event-location {
        margin-bottom: 0.75rem !important;
    }
    .event-card .event-time {
        margin-bottom: 0.15rem !important;
    }
    .event-card .event-title-wrapper {
        margin-bottom: 0.75rem !important;
    }
    .event-card .event-more-link {
        font-size: 0.95rem;
    }
    .event-mobile-divider {
        width: 60%;
        height: 1px;
        background-color: #e5e5e5;
        margin: 1.25rem auto;
    }
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    border-radius: 8px !important;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    box-shadow: 0 0 10px #fff, 0 0 20px #fff;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.btn-secondary:hover::before {
    animation: move-glow-btn 0.8s 1 linear;
}

@keyframes move-glow-btn {
    0% {
        left: 20px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: calc(100% - 80px);
        opacity: 0;
    }
}


.event-card h3 {
    margin: 0;
}

.event-more-link {
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    background-image: linear-gradient(to right, #A60029 50%, #000 50%);
    background-size: 200% 100%;
    background-position: 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease-in-out;
}

.event-more-link:hover {
    background-position: 0;
}

.btn-outline-danger {
    color: #A60029;
    border-color: #A60029;
}

.btn-outline-danger:hover {
    background-color: #A60029;
    border-color: #A60029;
}

@media (max-width: 576px) {
    .hero-btns {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hero-btns .btn {
        padding: 6px 20px !important;
        font-size: 0.9rem;
    }
}
@media (max-width: 576px) {
    #side-menu, .submenu {
        width: 50% !important;
        max-width: 50% !important;
    }
    #side-menu.show ~ .submenu.show {
        left: 50% !important;
    }
}
.submenu-header {
    padding: 15px 25px;
    font-weight: 700;
    background-color: rgba(0,0,0,0.1);
    position: relative;
}
.submenu-header::after {
    display: none;
}

/* News Section */
.news-section h2 {
    font-size: 3rem;
}

.news-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.news-scroll-container .row {
    flex-wrap: nowrap;
}

.news-scroll-container .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
}

@media (max-width: 992px) {
    .news-scroll-container .col-md-3 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .news-scroll-container .col-md-3 {
        width: 100%;
    }
}

.news-scroll-container::-webkit-scrollbar {
    display: none;
}

.news-nav-buttons {
    display: flex;
    gap: 15px;
    margin-right: 12px;
}

.news-nav-btn {
    background: none;
    color: #000;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    font-size: 1.8rem;
    font-weight: 500;
    background-image: linear-gradient(to right, #A60029 50%, #000 50%);
    background-size: 200% 100%;
    background-position: 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.news-nav-btn:hover {
    background-position: 0;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
}

.news-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
}

.news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease-in-out;
    z-index: 0;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    z-index: 1;
}

.news-content {
    position: relative;
    z-index: 2;
    padding: 20px 20px 40px 20px;
    color: white;
}

.news-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.news-more {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    background-image: linear-gradient(to right, #A60029 50%, #fff 50%);
    background-size: 200% 100%;
    background-position: 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease-in-out;
}

.news-card-link:hover .news-more {
    background-position: 0;
}

.news-card.no-image .news-more,
.news-card-link:hover .news-card.no-image .news-more {
    background-image: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    transition: none;
}

.news-card-link:hover .news-image {
    transform: scale(1.1);
}

.container-custom {
    width: 100%;
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container-custom {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .container-custom {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .container-custom {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    .container-custom, .container {
        max-width: 1400px;
    }
}
@media (min-width: 1400px) {
    .container-custom, .container {
        max-width: 1200px;
    }
}

/* Make it wider on larger screens */
@media (min-width: 1600px) {
    .container-custom, .container {
        max-width: 1400px;
    }
}
@media (min-width: 1800px) {
    .container-custom, .container {
        max-width: 1600px;
    }
}

/* Info Slide Section */
.info-slide-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    height: auto;
    overflow: hidden;
}

.info-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.info-slide-block {
    position: absolute;
    top: 0;
    right: -50%;
    width: 50%;
    height: auto;
    background-color: #A60029;
    color: white;
    z-index: 5;
    transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px;
}

.info-slide-block.open {
    right: 0;
}


.info-slide-toggle {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), left 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.info-slide-toggle.open {
    transform: translateX(-50%);
}

.info-slide-toggle.open .arrow-circle svg {
    opacity: 0;
}

.info-slide-toggle.open .arrow-circle::before,
.info-slide-toggle.open .arrow-circle::after {
    opacity: 1;
}

.info-slide-toggle.open .arrow-circle::before {
    transform: rotate(45deg);
}

.info-slide-toggle.open .arrow-circle::after {
    transform: rotate(-45deg);
}

/* Arrow Circle */
.arrow-circle {
    width: 76px;
    height: 76px;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    position: relative;
}

.info-slide-toggle:hover .arrow-circle {
    background-color: rgba(255, 255, 255, 0.15);
}

.arrow-circle svg {
    width: 42px;
    height: 42px;
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.arrow-circle::before,
.arrow-circle::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: white;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* More precise X transformation */
.info-slide-toggle .arrow-circle svg path {
    transition: d 0.6s ease;
}

/* Optional: if you want a perfect X, we can switch paths or just use the rotation */
/* For now, rotation of the button and SVG should make it look like a close icon if we use a plus/arrow */

@media (max-width: 992px) {
    .info-slide-block {
        width: 80%;
        right: -80%;
    }
    .info-slide-toggle.open {
    }
}

@media (max-width: 768px) {
    .info-slide-section {
        height: 600px;
    }
    .info-slide-block {
        width: 100%;
        right: -100%;
        padding: 30px;
    }
    .info-slide-toggle.open {
        bottom: 20px;
        transform: translateX(-50%);
    }
}

/* Functions Section */
.functions-section {
    background-color: #A60029;
    color: #ffffff;
    position: relative;
    z-index: 10;
}
.functions-section h2,
.functions-section h3,
.functions-section .lead,
.functions-section .functions-list {
    color: #ffffff;
}

/* Image Grid Section */
.image-grid-section img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center center;
}

/* Downloads Section */
.downloads-section {
    position: relative;
    z-index: 10;
}
.downloads-section .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    padding: 20px 36px;
    font-size: 1.25rem;
    background-color: #A60029;
    border-color: #A60029;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}
.downloads-section .download-btn:hover {
    background-color: #850021;
    border-color: #850021;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(166, 0, 41, 0.25) !important;
}

/* Three and Four Column Responsive Sizing */
.three-column-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}
.three-column-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
}
.four-column-title {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}
.four-column-text {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .downloads-section .download-btn {
        padding: 14px 24px;
        font-size: 1.05rem;
    }
    .hero-subtitle {
        font-size: 1.05rem !important;
    }
}
