html {
    scroll-padding-top: 80px; /* Höhe der fixen Kopfzeile */
    font-size: 1rem;
    letter-spacing: 2px;
}

body {
    font-family: 'Ubuntu', sans-serif!important;
    background-color: #fff;
    color: #003398;
}

header, .bg-color-main, .customClasses {
    background-color: #fff;
}

.display-4, h1, h2, h3, h4, h5, h6, .link-primary, a, .text-newsletter, .fs-5, .color-main {
    color: #003398!important;
}

.floatButtonsMobile {
    background-color: #ffeb00;
}

.fs-7 {
    font-size: 0.95rem;
}

.lh-15 {
    line-height: 1.5rem!important;
}

.lh-2 {
    line-height: 2rem!important;
}

.custom-stats-row {
    max-width: 1300px;
    margin: 0 auto;
}

.top-menu .position-relative {
    left: -5%;
}

.top-menu .nav-item {
    position: relative;
}

.top-menu .tooltip-text {
    display: none;
    position: absolute;
    top: 100%; /* Positioniert den Text unterhalb des Links */
    left: 50%;
    transform: translateX(-50%);
    color: #003398!important;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 10;
}

.top-menu .nav-item:hover .tooltip-text {
    display: block;
}


@media (min-width: 992px) { /* Large screens (lg) */
    .fs-lg-7 {
        font-size: 1.25rem;
    }
    .lh-lg-1 {
        line-height: 1rem!important;
    }

    .lh-lg-15 {
        line-height: 1.5rem!important;
    }

    .lh-lg-2 {
        line-height: 2rem!important;
    }
}

@media (min-width: 1200px) { /* Extra large screens (xl) */
    .fs-xl-7 {
        font-size: 1.25rem;
    }
}
.h7 {
    font-size: 0.8rem;
}

#brand-mobile {
    width: auto!important;
    height: 56px!important;
    transition: transform 0.3s ease, top 0.3s ease;
}

.page-header {
    position: relative;
    font-size: 1.6rem!important;
    padding-bottom: 10px;
    border-bottom: 0;
    overflow: hidden;
    color: #003398;
}

.page-header span {
    position: relative;
    padding: 0;
    border-bottom: 0;
    margin-bottom: -1px;
    display: inline-block;
    color: #003398;
}

.page-header span::after {
    position: absolute;
    content: "";
    left: -30px;
    bottom: -10px;
    height: 1px;
    width: calc(100% + 30px);
    z-index: 1;
    background: #003398;
}

.page-header::after {
    content: '';
    height: 1px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    border-top: 1px solid #003398;
}

footer h4, .display-6, .text-bg-primary, .navbar-primary .nav-link, .badge-primary, .flex-fill, .flex-fill h3 a, .flex-fill h4 a, .readmore a{
    color: #fff!important;
}

.bg-primary, .text-bg-primary, .badge-primary, button.btn-primary, .flex-fill {
    background-color: #003398!important; /* TuS Blau */
}

.text-bg-secondary {
    background-color: #ccc!important;
}

.bg-newsletter {
    background-color: rgba(255, 255, 255, 0.75);
}

.document_download .card-body .card-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 50px;
}

#jform_email {
    text-align: center;
}

.cursor-mouse {
    cursor: pointer;
}

/* Hover-Stile für die Hauptlinks in der Navbar */
.navbar-primary .nav-link:hover, footer .navbar-nav .nav-item a.nav-link:hover {
    color: #ccc!important;
}

.btn-primary {
    border-color:#003398!important;
    color: #fff!important;
    background-color: #003398!important;
}

.btn-default {
    border-color:#6c757d!important;
    color: #fff!important;
    background-color: #6c757d!important;
}

.btn-default:hover {
    border-color:#6c757d!important;
    color: #fff!important;
    background-color: #5c636a!important;
}


.container-search .btn-primary {
    border: none!important;
    margin-left: -5px!important;
    box-shadow: none!important;
}

.carousel-caption {
    background-color: rgb(33, 33, 33, 0.5) !important;
}

.controller-font-size {
    font-size: 1.5em;
}

.newsflash .mod-articlesnews__item {
    margin-bottom: 15px;
}

.pagination {
    background-color: transparent!important;
}

.pagination li a, .pagination li span {
    border: none;
}

.pagination li.active a {
    color: #fff!important;
    background-color: #003398!important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler i {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Initialzustand: Nur das Bars-Icon anzeigen */
.navbar-toggler[aria-expanded="false"] .fa-xmark {
    opacity: 0;
    transform: rotate(-90deg);
}

.navbar-toggler[aria-expanded="false"] .fa-bars {
    opacity: 1;
    transform: rotate(0deg);
}

/* Geöffnetes Menü: Nur das X-Icon anzeigen */
.navbar-toggler[aria-expanded="true"] .fa-bars {
    opacity: 0;
    transform: rotate(90deg);
}

.navbar-toggler[aria-expanded="true"] .fa-xmark {
    opacity: 1;
    transform: rotate(0deg);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-top-link {
    z-index: 10000;
    color: #003398!important;
    pointer-events: all;
    background-color: #ffeb00;
    border: 1px solid #112855;
    opacity: 0;
    inset-inline-end: 1rem;
    border-radius: .25rem;
    padding: .5em;
    transition: opacity .2s ease-in;
    position: fixed;
    bottom: 1rem;
}

.back-to-top-link.visible {
    opacity: 1;
}

.back-to-top-link:hover, .back-to-top-link:focus, .btn-secondary {
    color: #fff!important;
    background-color: #003398;
    border-color: #fff;
}

.newClasses-img {
    width: 240px !important;
    height: 240px !important;
    border-radius: 50% !important;
    transition: filter 0.3s ease;
}

.newClasses-img:hover {
    filter: grayscale(100%);
}

.customClasses-figure {
    position: relative;
    width: 100%;
    max-width: 1707px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.customClasses-figure:hover .customClasses-figcaption {
    opacity: 0;
}

.customClasses-img {
    display: block;
    width: 100%;
    height: 500px;
    transition: opacity 0.5s ease;
    border-radius: 10px;
}

.customClasses-figcaption .display-4, .customClasses-figcaption h3  {
    color: #fff!important;
}

.customClasses-figcaption  {
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.2em;
    line-height: 1.4;
    transition: opacity 1s ease;
    border-radius: 10px;
    margin: 0;
}

footer a {
    color: #fff!important;
}

.navbar-nav > li > a {
    text-transform: uppercase !important;
}

.dropdown-menu a {
    text-transform: none !important;
}

footer .navbar-nav a, .mobile-menu .navbar-nav a {
    display: inline-block!important;
}

.sticky-top {
    transition: all 0.3s ease-in-out;
}

.mobile-menu .navbar-nav i {
    color: #fff;
}

.mobile-menu .dropdown-menu {
    background-color: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 0;
    padding-top: 0;
    margin-left: 26px;
}

.mobile-menu .dropdown-menu a {
    color: #fff!important;
}

.mobile-menu .dropdown-menu a:focus, .mobile-menu .dropdown-menu a:hover, .mobile-menu .dropdown-menu li.current.active > a {
    text-decoration: underline;
    background-color: transparent!important;
}

.mobile-menu-small li {
    background-color: transparent!important;
    border: none;
}

.mobile-menu-small li a {
    color: #fff!important;
}

.blog figure img {

}

.abteilung-icon {
    width: 180px;
    height: 180px;
}

#bwp_reg_open {
    background: none;
    border: none;
    color: #fff; /* Die Link-Farbe */
    text-decoration: underline; /* Unterstreicht den Text wie einen Link */
    cursor: pointer;
    box-shadow: none;
    padding: 0;
    margin: 0;
    text-transform: none!important;
}

ul.mod-articlescategory {
    list-style-type: none; /* Entfernt die Punkte */
    padding: 0; /* Entfernt den Standard-Padding */
    margin: 0; /* Entfernt den Standard-Margin */
}

ul.mod-articlescategory li {
    padding: 8px 0; /* Entfernt den Standard-Padding */
}

table th {
    font-weight: bold!important;
    font-size: 1.2em!important;
    color: #fff;
}

table th:first-child {
    width: 80px; /* Setze die gewünschte Breite, z.B. 80px */
}

table th,
table td {
    text-align: center; /* Zentriert den Text in allen Zellen */
    vertical-align: middle; /* Zentriert den Text auch vertikal, falls erforderlich */
}

table thead, table tbody th {
    --bs-table-bg: #003398!important;
    --bs-table-color: #fff!important;
}

#tableSporthalle td, #tableSporthalle th {
    line-height: 1.0!important; /* Kleinere Zeilenhöhe */
}

/* Loader Overlay */
#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Halbtransparentes Schwarz */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Über anderen Inhalten anzeigen */
}

/* Spinner */
.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-left: 8px solid #3498db; /* Farbe des Spinners */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.article-img img {
    width: 840px!important;
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow);
}

.content-links-a a {
    color: #fff !important;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#google-map iframe {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.container-search-mobil .awesomplete {
    width: 100%!important;
}

/* Standardgröße für größere Bildschirme */
.site-logo img {
    width: 96px;
    height: auto; /* Erhält das Seitenverhältnis */
}

/* Carousel Größe anpassen */
.carousel {
    max-width: 1080px; /* Breite des gesamten Carousels */
    margin: 0 auto; /* Zentriert das Carousel */
}

.carousel-inner img {
    object-fit: cover; /* Sorgt dafür, dass die Bilder angepasst werden */
}

/* Zusätzliche Anpassungen für die Steuerungselemente */
.controller-font-size {
    font-size: 1.5rem; /* Größe der Icons */
}

/* Optional: Rundungen und Schatten für die Carousel-Items */
.carousel-item img {
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.divVideo {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.05);
}

.contact-img {
    height: 250px;
}

@keyframes bounceInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    60% {
        opacity: 1;
        transform: translateX(-15px);
    }
    80% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

.floating-buttons {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    z-index: 10000;
    opacity: 0;
}

.floating-buttons ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.floating-buttons ul li {
    margin-bottom: 10px; /* Abstand zwischen den Buttons */
    animation: bounceInFromRight 0.8s ease forwards;
    animation-delay: calc(0.1s * var(--i));
}

.floating-buttons ul li:last-child {
    margin-bottom: 0; /* Kein Abstand nach dem letzten Button */
}

.floating-buttons ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* Angepasste Breite für größere Icons */
    height: 60px; /* Angepasste Höhe für größere Icons */
    font-size: 24px; /* Größere Icon-Größe */
    line-height: 1; /* Verhindert das Dehnen der Icons */
    text-align: center;
}

.floating-buttons ul li a i {
    font-size: 24px; /* Größe des Icons */
    line-height: 1; /* Verhindert vertikales Dehnen */
}

.contact-img {
    position: relative;
    width: auto;
    height: 260px;
}

.image-container {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.5s ease;
}

.email-icon {
    top: 50%;
    left: -100px; /* Position außerhalb des Bildes */
    transform: translateY(-50%);
}

.info-icon {
    top: 50%;
    right: -100px; /* Position außerhalb des Bildes */
    transform: translateY(-50%);
}

.image-container:hover .overlay {
    opacity: 1;
}

.image-container:hover .email-icon {
    left: 30%; /* Position innerhalb des Bildes */
    opacity: 1;
}

.image-container:hover .info-icon {
    right: 30%; /* Position innerhalb des Bildes */
    opacity: 1;
}

.list-group-alphabetical {
    list-style-type: lower-alpha; /* Für Großbuchstaben (A, B, C, ...) */
    padding-left: 1.5rem; /* Etwas Platz für die Buchstaben */
}

#corner-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: #ffeb00;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: transform 0.3s, opacity 0.3s; /* Animation für Größe und Sichtbarkeit */
    cursor: pointer;
}

#corner-banner .party-text {
    transform: rotate(-45deg); /* Rotation angepasst für die linke obere Ecke */
    position: relative;
    bottom: 100px; /* Justierung des Textes */
    left: -28px; /* Verschiebung nach links */
}

#corner-banner:hover {
    background: #e64a19;
}

#corner-banner.hidden {
    opacity: 0; /* Banner ausblenden */
    pointer-events: none; /* Klicks verhindern, wenn es ausgeblendet ist */
}

#corner-banner.shrinking {
    transform: scale(0.5); /* Kleiner werden lassen */
}

#corner-banner.expanding {
    transform: scale(1); /* Wieder auf Originalgröße anwachsen */
    opacity: 1; /* Sichtbar machen */
}

.h-350 {
    height: 350px;
}

.logo-animation {
    transform: translateX(-100%);
    opacity: 0;
    animation: flyIn 1.5s ease-out forwards;
}

/* Keyframes für die Fly-in-Animation */
@keyframes flyIn {
    0% {
        transform: translateX(-300%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Nur Titel mit der Klasse text-anim animieren */
.text-anim h1 span {
    display: inline-block;
    transform: translateY(-100%);
    opacity: 0;
    animation: flyInText 1s ease-out forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s); /* Verzögerung pro Buchstabe */
}

/* Verzögerung für jeden Buchstaben */
.text-anim h1 span:nth-child(1) { --delay: 0; }
.text-anim h1 span:nth-child(2) { --delay: 1; }
.text-anim h1 span:nth-child(3) { --delay: 2; }
.text-anim h1 span:nth-child(4) { --delay: 3; }
.text-anim h1 span:nth-child(5) { --delay: 4; }
/* Füge weitere nth-child-Einträge hinzu, falls nötig */

@keyframes flyInText {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.display-4 span {
    font-weight: 600;  /* Gleiche Schriftstärke wie display-4 */
}

/* Optional: Sicherstellen, dass die Animation nicht den Zeilenfluss stört */
.text-anim h1 {
    white-space: nowrap; /* Verhindert Zeilenumbrüche innerhalb des Titels */
}

.tagline h2 {
    display: inline-block;
    transform: translateX(100%);
    opacity: 0;
    animation: flyInFromRight 1s ease-out forwards;
    animation-delay: 1s; /* Verzögerung für den Untertitel */
}

/* Keyframes für die Animation von rechts nach links */
@keyframes flyInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.ribbon{
    font-size:20px;
    position:relative;
    display:inline-block;
    margin:5em;
    text-align:center;
}
.text{
    display:inline-block;
    padding:0.5em 1em;
    min-width:20em;
    line-height:1.2em;
    background: #FFD72A;
    position:relative;
}
.ribbon:after,.ribbon:before,
.text:before,.text:after,
.bold:before{
    content:'';
    position:absolute;
    border-style:solid;
}
.ribbon:before{
    top:0.3em; left:0.2em;
    width:100%; height:100%;
    border:none;
    background:#EBECED;
    z-index:-2;
}
.text:before{
    bottom:100%; left:0;
    border-width: .5em .7em 0 0;
    border-color: transparent #FC9544 transparent transparent;
}
.text:after{
    top:100%; right:0;
    border-width: .5em 2em 0 0;
    border-color: #FC9544 transparent transparent transparent;
}
.ribbon:after, .bold:before{
    top:0.5em;right:-2em;
    border-width: 1.1em 1em 1.1em 3em;
    border-color: #FECC30 transparent #FECC30 #FECC30;
    z-index:-1;
}
.bold:before{
    border-color: #EBECED transparent #EBECED #EBECED;
    top:0.7em;
    right:-2.3em;
}

.fasching .card {
    transition: font-size 0.3s ease, background-color 0.6s ease, color 0.6s ease;
    background-color: #fff; /* Standard Hintergrundfarbe */
    color: #333;  /* Standard Textfarbe */
}

.fasching .card h5.card-title {
    transition: color 0.6s ease!important; /* Übergang für die Textfarbe des h5 */
}

.fasching .card:hover {
    font-size: 1.1rem;  /* Erhöht die Schriftgröße um 10% */
    background-color: #003398;  /* Setzt den Hintergrund auf Dunkelblau */
    color: #fff;  /* Setzt die Textfarbe auf Weiß */
}

.fasching .card:hover h5.card-title {
    color: #fff!important;
}
/* Größe für kleinere Bildschirme */
@media only screen and (max-width: 600px) {
    .site-logo img {
        width: 75px;
        height: auto; /* Erhält das Seitenverhältnis */
    }
}

/* Media Query für mobile Geräte */
@media (max-width: 768px) {
    .page-header {
        font-size: 1.4rem !important;
    }
}

.mobile-icon {
    color: #fff;
}

@media (min-width: 1660px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1580px!important;
    }
}

.logo-animation {
    transition: all 0.5s ease;
    position: relative;
    width: 200px; /* Beispielgröße im Header */
    height: auto;
    z-index: 1050;
}

/* Wenn gescrollt, Logo wird kleiner und "wandert" in die Navbar */
body.scrolled .logo-animation {
    position: fixed;
    top: 0; /* Abstand zum oberen Rand */
    width: auto; /* kleine Version */
    height: 52px;
    transition: all 0.5s ease;
    z-index: 1050; /* über der Navigation */
    pointer-events: auto;
}

.toast-transparent-success {
    background-color: rgba(40, 167, 69, 0.7); /* Bootstrap Success grün mit 70% Deckkraft */
    color: #fff;
}
.toast-transparent-error {
    background-color: rgba(220, 53, 69, 0.7); /* Bootstrap Danger rot mit 70% Deckkraft */
    color: #fff;
}
.toast-transparent-warning {
    background-color: rgba(255, 193, 7, 0.7); /* Bootstrap Warning gelb mit 70% Deckkraft */
    color: #000;
}
.toast-transparent-info {
    background-color: rgba(23, 162, 184, 0.7); /* Bootstrap Info cyan mit 70% Deckkraft */
    color: #fff;
}
.toast-header {
    background-color: transparent !important; /* Header transparent, sonst evtl zu dunkel */
    border-bottom: none !important;
}

@media (hover: hover) and (pointer: fine) {
    .navigation .navbar .navbar-nav .nav-item:hover a,
    .navigation .navbar .navbar-nav .nav-item:hover i {
        background-color: #fff !important;
        color: #003398 !important;
    }

    .navigation .navbar .navbar-nav .nav-item:hover {
        background-color: #fff !important;
    }
}

.blog-item .card-header-text, .card-footer-text, .card-footer-text a {
    color: #003398!important;
}

.blog-item .card-body .card-text a, .card-body .card-title a {
    color: #fff!important;
}

.card-body img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
