:root {
  --banner-height: 0px; /* JS will update this */
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    text-align: left;
    padding-top: 200px;
}

p {
    text-align: left;
}

ul {
    text-align: left;
}

figure figcaption {
    background-color: unset;
    text-shadow: unset;
}

#t4-banner .banner {
  overflow: hidden;
  display: flex;
  justify-content: center;
}

#t4-banner .banner img {
  height: auto;
  width: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center top;
}
/*
#t4-main-menu {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-left: 5%;
}*/
#t4-main-menu {
    position: fixed;
    top: 2%;
    left: 5%;
    width: 95%;
    z-index: 1000;
    transition: transform 0.3s ease;
}
#t4-main-menu.header-hidden {
    transform: translateY(-80%);
}

#t4-main-menu .bg-overlay {
    opacity: 1.0;
}

#t4-main-menu .bg-overlay-image {
    background-size: auto 100%;
    margin-left: -15px;
    margin-right: -15px;
}

.t4-main-menu .header-block {
    height: 200px;
}

.navbar-brand.logo-text .site-name {
    display: none;
}

.t4-main-menu .header-wrap{
    margin-top: 1px; /*20px*/
}

/* Hide intro image in full article body — shown in banner instead */
.com-content-article.item-page figure.item-image {
    display: none;
}

#t4-banner{
    position: absolute; 
    width: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0) 75%, rgba(255,255,255,1) 100%);
    top:0;
    margin-bottom: 5em;
}

#t4-banner .t4-section-inner {
    /* Your styles go here */
    padding: 0; /* Example */
}

#t4-banner.mod-banners{
    width: 100%;
}

.navbar-toggler{
    margin-right: 1em;
    margin-top: 35px;
}

.banner-overlay{
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    width: 100%;
    height: 200px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.t4-megamenu .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.95); /* Off-white, mostly opaque */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Adds a subtle drop shadow to lift it off the image */
    border-radius: 4px; /* Optional: smooths the corners */
    padding: 10px;
	
}

@media (max-width: 991.98px) {
    .nav-breakpoint-lg .t4-megamenu{
        background-color: rgba(255, 255, 255, 0.9);
    }
}

.nav-link{
    height: 70px;
}

#t4-section-1 {
    margin-top: max(var(--banner-height), 0px);
}

.t4-navbar {
    margin-top: 15px;

}

.t4-header-r {
    z-index: 3;
}

.module-inner {
    padding: 20px;
}

 .fact-container {
            max-width: 800px;
            margin: auto;
        }

        .fact {
            padding: 30px 0;
            text-align: left;
            display: flex;
            flex-direction: column;
        }

        .fact-title {
            font-size: 2rem;
            font-weight: 700;
            color: #0a58ca; /* Highlight color */
            margin-bottom: 10px;
        }

        .fact-description {
            font-size: 1.1rem;
            font-weight: 300;
            color: #777; /* Soft gray text */
        }

        /* Alternating text alignment */
        .fact:nth-child(even) {
            text-align: right;
        }

        /* Responsive */
        @media (max-width: 600px) {
            .fact {
                text-align: center !important;
            }
        }



/* Initial state of the sticky bar */

.lsv-sticky-above {
    position: absolute; /* Takes it out of the layout flow (Fixes the gap) */
    top: 0;             /* Aligns it to the very top */
    left: 0;
    width: 100%;
    height: 1px;        /* 1px height is enough to be detected */
    pointer-events: none; /* Ensures it doesn't block clicks */
    visibility: hidden; /* visual trick, but observer still sees it */
    margin: 0;          /* Remove your old margins */
    margin-top: max(0px, var(--banner-height));
}


.lsv-sticky {
    position: sticky;
    width: 100%;
    height: 150px;
    top: 0;
    z-index: 1;
    background-color: transparent; /* Assuming you want it transparent initially */
    transition: all 0.3s ease-in-out;
}


.lsv-sticky.is-sticky-active {
    position: relative;
    width: 100%;
    height: 150px;
    top: 0;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.95); 
    
}
/* Right align right footer menu*/
.t4-footer-menu .navbar {
    justify-content: center;
}

/* Target the footer menu specifically */
.t4-footer-menu .nav {
    flex-direction: column; /* Vertical on mobile */
    gap: 15px; /* Space between links */
    text-align: center;
}

.full-width-form input[type="text"],
.full-width-form input[type="email"],
.full-width-form input[type="tel"],
.full-width-form input[type="number"],
.full-width-form select {
    width: 80% !important;
    max-width: 400px;
    margin-bottom: 1rem;
}

.field-calendar{
    max-width: 400px;
}

.field-calendar button {
    height: 40px;
}

/* On screens wider than 768px (Desktop/Tablet) */
@media (min-width: 768px) {
    .t4-footer-menu .nav {
        flex-direction: row; /* Switch to horizontal */
    }
}

/* Targets all links starting with http or https */
a[href^="http://"]::after,
a[href^="https://"]::after {
    content: "\F1C5"; /* Unicode for 'bi-box-arrow-up-right' */
    font-family: "bootstrap-icons";
    font-size: 0.8em;
    margin-left: 0.3rem;
    display: inline-block;
    vertical-align: middle;
}

/* Exception handler: Removes the icon if your own domain uses absolute URLs */
a[href*="yourdomain.com"]::after {
    content: none;
}

.flugprogramm {
    max-width: 1200px;
    margin: auto;
}

.flugprogramm h2 {
    text-align: center;
    margin-bottom: 50px;
}

.flug-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 60px 0;
    padding: 35px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.flug-item.reverse {
    flex-direction: row-reverse;
}

.flug-bild,
.flug-text {
    flex: 1;
}

.flug-bild img {
    width: 100%;
    border-radius: 15px;
    display: block;
}

.oldtimer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flug-text h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #003366;
}

.flug-text p {
    line-height: 1.8;
    font-size: 1.05rem;
}

.flug-item:hover {
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .flug-item,
    .flug-item.reverse {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }

    .flug-text h3 {
        font-size: 1.6rem;
    }
}

.sidebar-article {
    display: none !important;
}

.category-desc {
    border: none;
}

.footer-sponsoren {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.footer-sponsor {
  flex: 1 1 0;
  text-align: center;
}

.footer-sponsor img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 8px auto;
}

@media (max-width: 480px) {
  .footer-sponsoren {
    flex-direction: column;
    gap: 18px;
  }

  .footer-sponsor {
    width: 100%;
  }
}
