/* Eigene CSS-Anpassungen
   BRK KV Neustadt/Aisch - Bad Windsheim
*/

.header {
  width: 60rem;
}

.textmedia__text {
  width: 60rem;
}

/* =========================================================
   Mega-Menü / Subnavigation
   ========================================================= */

.sub-navi-wrapper {
    padding: 30px 0 34px;
}

.sub-navi-wrapper > .level-2 {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 42px;
    align-items: start;
}

/* Keine vertikalen Trennlinien */
.sub-navi-wrapper > .level-2 > .nav-item.parent {
    padding: 0;
    border: 0;
}

/* Spaltenüberschrift */
.sub-navi-wrapper > .level-2 > .nav-item.parent > span {
    display: inline-block;
    position: relative;
    margin-bottom: 14px;
    padding-bottom: 7px;

    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    color: #222;
}

/* Rote Akzentlinie */
.sub-navi-wrapper > .level-2 > .nav-item.parent > span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    background: #e30613;
}

/* Untermenü */
.sub-navi-wrapper .level-3-or-deeper {
    margin: 0;
    padding: 0;
}

/* Links */
.sub-navi-wrapper .level-3-or-deeper .nav-link {
    display: block;
    position: relative;

    padding: 5px 8px 5px 0;
    line-height: 1.35;

    transition:
        color .15s ease,
        transform .15s ease;
}

/* Kleiner roter Marker beim Hover */
.sub-navi-wrapper .level-3-or-deeper .nav-link::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 50%;

    width: 5px;
    height: 5px;
    border-radius: 0;
    background: #e30613;

    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .15s ease;
}

.sub-navi-wrapper .level-3-or-deeper .nav-link:hover,
.sub-navi-wrapper .level-3-or-deeper .nav-link:focus {
    color: #e30613;
    transform: translateX(4px);
    text-decoration: none;
}

.sub-navi-wrapper .level-3-or-deeper .nav-link:hover::before,
.sub-navi-wrapper .level-3-or-deeper .nav-link:focus::before {
    opacity: 1;
}

/* Aktiver Menüpunkt */
.sub-navi-wrapper .level-3-or-deeper .nav-item.active > .nav-link,
.sub-navi-wrapper .level-3-or-deeper .nav-link.active {
    color: #e30613;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1100px) {
    .sub-navi-wrapper > .level-2 {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 750px) {
    .sub-navi-wrapper > .level-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* =========================================================
   Mega-Menü KURSE – eigene 3-Spalten-Darstellung
   ========================================================= */

#subnavi-3 > .level-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 55px;
}

/* Jeder Kursbereich */
#subnavi-3 > .level-2 > .nav-item.parent {
    padding: 0 0 18px;
}

/* Überschrift etwas ruhiger */
#subnavi-3 > .level-2 > .nav-item.parent > span {
    display: block;
    min-height: 48px;
    margin-bottom: 10px;
    padding-bottom: 9px;
    font-size: 1rem;
    line-height: 1.25;
}

/* Rote Linie etwas länger */
#subnavi-3 > .level-2 > .nav-item.parent > span::after {
    width: 42px;
    height: 3px;
}

/* Links etwas kompakter */
#subnavi-3 .level-3-or-deeper .nav-link {
    padding-top: 3px;
    padding-bottom: 3px;
}

/* Tablet */
@media (max-width: 1050px) {
    #subnavi-3 > .level-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 45px;
    }
}

/* Mobil */
@media (max-width: 700px) {
    #subnavi-3 > .level-2 {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #subnavi-3 > .level-2 > .nav-item.parent > span {
        min-height: 0;
    }
}

/* =========================================================
   Aktiver Untermenüpunkt
   ========================================================= */

/* "Sie sind hier:" visuell ausblenden */
.dti-flyout .flyout-navi .nav-item-current-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* Aktueller Menüpunkt */
.dti-flyout .flyout-navi .sub-navi.level-2 .nav-item-current-title {
    color: #e30613 !important;
    font-weight: 600;
}

/* > durch kleines rotes Quadrat ersetzen */
.dti-flyout .flyout-navi .sub-navi.level-2 .nav-item-current-title::before {
    content: "" !important;
    display: inline-block !important;
    width: 5px !important;
    height: 5px !important;
    background: #e30613 !important;
    margin-right: 8px !important;
    vertical-align: 2px !important;
}