/* ============================
   UIkit Utilities für Flowbite Farben
   Schema: uk-text-<color>-<intensity>
           uk-background-<color>-<intensity>
   ============================ */
.uk-text-white,
.uk-background-white {
    color: #ffffff !important;
}

/* ---------- GRAY (coolGray) ---------- */
.uk-text-gray-50 {
    color: #F9FAFB !important;
}

.uk-text-gray-100 {
    color: #F3F4F6 !important;
}

.uk-text-gray-200 {
    color: #E5E7EB !important;
}

.uk-text-gray-300 {
    color: #D1D5DB !important;
}

.uk-text-gray-400 {
    color: #9CA3AF !important;
}

.uk-text-gray-500 {
    color: #6B7280 !important;
}

.uk-text-gray-600 {
    color: #4B5563 !important;
}

.uk-text-gray-700 {
    color: #374151 !important;
}

.uk-text-gray-800 {
    color: #1F2937 !important;
}

.uk-text-gray-900 {
    color: #111827 !important;
}

.uk-background-gray-50 {
    background-color: #F9FAFB !important;
}

.uk-background-gray-100 {
    background-color: #F3F4F6 !important;
}

.uk-background-gray-200 {
    background-color: #E5E7EB !important;
}

.uk-background-gray-300 {
    background-color: #D1D5DB !important;
}

.uk-background-gray-400 {
    background-color: #9CA3AF !important;
}

.uk-background-gray-500 {
    background-color: #6B7280 !important;
}

.uk-background-gray-600 {
    background-color: #4B5563 !important;
}

.uk-background-gray-700 {
    background-color: #374151 !important;
}

.uk-background-gray-800 {
    background-color: #1F2937 !important;
}

.uk-background-gray-900 {
    background-color: #111827 !important;
}

/* ---------- RED ---------- */
.uk-text-red-50 {
    color: #FDF2F2 !important;
}

.uk-text-red-100 {
    color: #FDE8E8 !important;
}

.uk-text-red-200 {
    color: #FBD5D5 !important;
}

.uk-text-red-300 {
    color: #F8B4B4 !important;
}

.uk-text-red-400 {
    color: #F98080 !important;
}

.uk-text-red-500 {
    color: #F05252 !important;
}

.uk-text-red-600 {
    color: #E02424 !important;
}

.uk-text-red-700 {
    color: #C81E1E !important;
}

.uk-text-red-800 {
    color: #9B1C1C !important;
}

.uk-text-red-900 {
    color: #771D1D !important;
}

.uk-background-red-50 {
    background-color: #FDF2F2 !important;
}

.uk-background-red-100 {
    background-color: #FDE8E8 !important;
}

.uk-background-red-200 {
    background-color: #FBD5D5 !important;
}

.uk-background-red-300 {
    background-color: #F8B4B4 !important;
}

.uk-background-red-400 {
    background-color: #F98080 !important;
}

.uk-background-red-500 {
    background-color: #F05252 !important;
}

.uk-background-red-600 {
    background-color: #E02424 !important;
}

.uk-background-red-700 {
    background-color: #C81E1E !important;
}

.uk-background-red-800 {
    background-color: #9B1C1C !important;
}

.uk-background-red-900 {
    background-color: #771D1D !important;
}

/* ---------- AMBER (yellow) ---------- */
.uk-text-amber-50 {
    color: #FDFDEA !important;
}

.uk-text-amber-100 {
    color: #FDF6B2 !important;
}

.uk-text-amber-200 {
    color: #FCE96A !important;
}

.uk-text-amber-300 {
    color: #FACA15 !important;
}

.uk-text-amber-400 {
    color: #E3A008 !important;
}

.uk-text-amber-500 {
    color: #C27803 !important;
}

.uk-text-amber-600 {
    color: #9F580A !important;
}

.uk-text-amber-700 {
    color: #8E4B10 !important;
}

.uk-text-amber-800 {
    color: #723B13 !important;
}

.uk-text-amber-900 {
    color: #633112 !important;
}

.uk-background-amber-50 {
    background-color: #FDFDEA !important;
}

.uk-background-amber-100 {
    background-color: #FDF6B2 !important;
}

.uk-background-amber-200 {
    background-color: #FCE96A !important;
}

.uk-background-amber-300 {
    background-color: #FACA15 !important;
}

.uk-background-amber-400 {
    background-color: #E3A008 !important;
}

.uk-background-amber-500 {
    background-color: #C27803 !important;
}

.uk-background-amber-600 {
    background-color: #9F580A !important;
}

.uk-background-amber-700 {
    background-color: #8E4B10 !important;
}

.uk-background-amber-800 {
    background-color: #723B13 !important;
}

.uk-background-amber-900 {
    background-color: #633112 !important;
}

/* ---------- EMERALD (green) ---------- */
.uk-text-emerald-50 {
    color: #F3FAF7 !important;
}

.uk-text-emerald-100 {
    color: #DEF7EC !important;
}

.uk-text-emerald-200 {
    color: #BCF0DA !important;
}

.uk-text-emerald-300 {
    color: #84E1BC !important;
}

.uk-text-emerald-400 {
    color: #31C48D !important;
}

.uk-text-emerald-500 {
    color: #0E9F6E !important;
}

.uk-text-emerald-600 {
    color: #057A55 !important;
}

.uk-text-emerald-700 {
    color: #046C4E !important;
}

.uk-text-emerald-800 {
    color: #03543F !important;
}

.uk-text-emerald-900 {
    color: #014737 !important;
}

.uk-background-emerald-50 {
    background-color: #F3FAF7 !important;
}

.uk-background-emerald-100 {
    background-color: #DEF7EC !important;
}

.uk-background-emerald-200 {
    background-color: #BCF0DA !important;
}

.uk-background-emerald-300 {
    background-color: #84E1BC !important;
}

.uk-background-emerald-400 {
    background-color: #31C48D !important;
}

.uk-background-emerald-500 {
    background-color: #0E9F6E !important;
}

.uk-background-emerald-600 {
    background-color: #057A55 !important;
}

.uk-background-emerald-700 {
    background-color: #046C4E !important;
}

.uk-background-emerald-800 {
    background-color: #03543F !important;
}

.uk-background-emerald-900 {
    background-color: #014737 !important;
}

/* ---------- BLUE ---------- */
.uk-text-blue-50 {
    color: #EBF5FF !important;
}

.uk-text-blue-100 {
    color: #E1EFFE !important;
}

.uk-text-blue-200 {
    color: #C3DDFD !important;
}

.uk-text-blue-300 {
    color: #A4CAFE !important;
}

.uk-text-blue-400 {
    color: #76A9FA !important;
}

.uk-text-blue-500 {
    color: #3F83F8 !important;
}

.uk-text-blue-600 {
    color: #1C64F2 !important;
}

.uk-text-blue-700 {
    color: #1A56DB !important;
}

.uk-text-blue-800 {
    color: #1E429F !important;
}

.uk-text-blue-900 {
    color: #233876 !important;
}

.uk-background-blue-50 {
    background-color: #EBF5FF !important;
}

.uk-background-blue-100 {
    background-color: #E1EFFE !important;
}

.uk-background-blue-200 {
    background-color: #C3DDFD !important;
}

.uk-background-blue-300 {
    background-color: #A4CAFE !important;
}

.uk-background-blue-400 {
    background-color: #76A9FA !important;
}

.uk-background-blue-500 {
    background-color: #3F83F8 !important;
}

.uk-background-blue-600 {
    background-color: #1C64F2 !important;
}

.uk-background-blue-700 {
    background-color: #1A56DB !important;
}

.uk-background-blue-800 {
    background-color: #1E429F !important;
}

.uk-background-blue-900 {
    background-color: #233876 !important;
}

.container-wide {
    max-width: 1600px;
    margin-inline: auto;
}

p:not(footer *, span *),
a:not(span *),
li:not(span *),
button {
    font-size: 1.25rem !important;
}

h1,
h2,
h3 {
    margin-bottom: 1.5rem;
}

.align_left {
    float: left;
    margin: 0 20px 15px 0;
}

.align_right {
    float: right;
    margin: 0 0 15px 20px;
}

.align_center {
    display: block;
    margin: 0 auto 15px auto;
    text-align: center;
}

p:has(> img.align_left),
p:has(> img.align_right) {
    margin: 0;
}

div>p>img {
    max-width: 100%;
}

.nav-link.active {
    font-weight: bolder;
}

.accordion-body {
    padding-bottom: 30px;
    background-color: ghostwhite
}

/* ---------- Basis ---------- */
.navbar-nav .nav-link {
    color: #333;
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
}

li:has(.nav-link.active) {
    color: black;
    border-bottom: 1px solid gray;
}

.nav-link i {
    margin-right: .35rem;
}

.has-mega {
    position: relative;
}

/* Trigger-Button: sieht aus wie ein Link, ist aber semantisch ein Button */
.mega-trigger {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    gap: .4rem;
}

.mega-caret {
    font-size: .7rem;
    transition: transform .15s ease;
}

.has-mega.open .mega-caret {
    transform: rotate(180deg);
}

/* Fokus deutlich sichtbar für Tastaturnutzer */
.mega-trigger:focus-visible,
.mega-item:focus-visible,
a.mega-col-heading:focus-visible {
    outline: 2px solid black;
    outline-offset: 2px;
    border-bottom: 1px solid gray;
}

.mega-trigger>span {
    display: flex;
    align-items: center;
    gap: .35rem;
}

/* ---------- Mega-Panel ---------- */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 6px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .14);
    z-index: 1000;
    width: max-content;
    min-width: 220px;
    max-width: min(700px, calc(100vw - 2rem));
    overflow-x: visible;
    /* Sicherheitsnetz, falls Inhalt trotz max-width breiter wäre */
}

.mega-menu[hidden] {
    display: none;
}

.has-mega.align-right .mega-menu {
    left: auto;
    right: 0;
}

.mega-menu-columns {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    padding: 1.5rem;
}

.mega-col {
    flex: 0 0 auto;
    min-width: 180px;
    white-space: nowrap;
}

.mega-col-heading {
    color: #888;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 .75rem;
}

a.mega-col-heading.mega-item-link {
    display: block;
    color: #222;
    text-transform: none;
    font-size: 1rem;
    text-decoration: none;
}

a.mega-col-heading.mega-item-link:hover {
    color: #e8735c;
}

a.mega-col-heading.mega-item-link i {
    margin-right: .4rem;
    color: #e8735c;
}

.mega-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 0;
    text-decoration: none;
    color: #222;
}

a.mega-item:hover,
a.mega-item.active {
    color: #e8735c;
}

/* Kein Ziel: als span gerendert, optisch als nicht klickbar erkennbar */
span.mega-item {
    color: #aaa;
    cursor: default;
}

.mega-item-icon {
    flex: 0 0 auto;
    width: 1.75rem;
    text-align: center;
    color: #e8735c;
}

.mega-item-text {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* ---------- Touch: größere Tapflächen ---------- */
@media (hover: none) {

    .mega-trigger,
    .mega-item,
    a.mega-col-heading.mega-item-link {
        min-height: 44px;
    }
}

/* ---------- Icons über Text ab <1200px (betrifft Tablets) ---------- */
@media (max-width: 1199.98px) {

    .navbar-nav .nav-link:not(.mega-trigger),
    .mega-trigger>span {
        flex-direction: column;
        gap: .15rem;
        text-align: center;
    }

    .nav-link i {
        margin-right: 0;
    }
}

/* ---------- Mobile: Panel wird Teil des Collapse-Flows ---------- */
@media (max-width: 991.98px) {
    .mega-menu {
        position: static;
        width: auto;
        max-width: none;
        min-width: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-top: 0;
        overflow-x: visible;
    }

    .navbar-nav .nav-link:not(.mega-trigger),
    .mega-trigger>span {
        flex-direction: unset;
    }

    .has-mega.align-right .mega-menu {
        left: 0;
        right: auto;
    }

    .mega-menu-columns {
        display: block;
        flex-wrap: unset;
        padding: .5rem 0 .5rem 1rem;
    }

    .mega-col {
        margin-bottom: 1.25rem;
        white-space: normal;
        min-width: 0;
    }
}

@media (orientation: landscape) and (max-height: 500px) {

    #viewerTitle,
    #viewerCaption,
    .btn-close {
        display: none;
    }

    #imageViewer .modal-body {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    #viewerImage,
    #viewerVideo {
        max-height: 100dvh;
        max-width: 100%;
    }
}