/* ************************* lck_ddmenu - Horizontal Multi-Level DropDown-Menu & JQuery Accordion-Menu - Responsive & Touch-friendly - 11/2017 ************************* */
.lck_nav_mobil {
    display: none;
}
.lck_nav {
    background-color: transparent;
    margin: 0;
    padding: 2rem 0 0;
    position: fixed;
    top: 0;
    -webkit-transition: padding-top 0.28s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    transition: padding-top 0.28s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    width: 100%;
    z-index: 998; /* !important for Backend, XH_adminmenu is 999 */
}
body.is-scrolled .lck_nav {
    background-color: #d9d9d9;
    -webkit-box-shadow: 0 1px 2px #212121;
    box-shadow: 0 1px 1px #616161;
    padding: 0;
}
/* offsetting an html anchor to adjust for fixed Menu or Header */
:target:before {
    content: "";
    display: block;
    height: 50px; /* same as your fixed header height */
    margin: -50px 0 0; /* negative fixed header height */
    visibility: hidden;
}

/* ************ Links - Allgemein */
.lck_nav a {
    cursor: pointer;
    font-family: inherit;
    line-height: 1rem;
    padding: 0 4px;
    text-decoration: none;
    vertical-align: middle;
}
.lck_nav a:link,
.lck_nav a:visited,
.lck_nav a:focus,
.lck_nav a:hover,
.lck_nav a:active {
    color: #424242;
}

/* ************ UL Menulevel 1 */
.lck_nav > ul {
    display: flex;
    justify-content: center; /* Verteilt den Leerraum exakt gleich zwischen und um die Menüpunkte */
    gap: 20px; /* Erzeugt einen exakt gleichen Abstand von 20px zwischen allen Punkten */
    width: auto;  /* Das Menü ist nur so breit wie sein Inhalt */
    max-width: 1450px; /* Optional: Setzt eine maximale Breite für sehr große Bildschirme */
    list-style: none;
    margin: 0 auto; /* Zentriert den Container selbst, falls er in einem breiteren Element liegt */
    padding: 0;
    text-align: center;
    z-index: 100;
}

/* ************ Listenpunkte - Alle */
.lck_nav li {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block; /* Wird von Flexbox in der 1. Ebene ignoriert, schadet aber für Untermenüs nicht */
    margin: 0;
    padding: 0;
    position: relative;
}

/* ************ Listenpunkte mit Klasse .doc + .sdoc */
.lck_nav li.doc,
.lck_nav li.sdoc {
    display: table;
}
.lck_nav li.doc a,
.lck_nav li.sdoc a {
    display: table-cell;
}
.lck_nav li.doc a:hover,
.lck_nav li.sdoc a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    -webkit-transition: background-color .5s ease; 
    transition: background-color .5s ease;
}

/* ************ Listenpunkte Menulevel 1 - Allgemein */
.lck_nav .menulevel1 > li {
    display: flex; /* Sorgt dafür, dass ddm_link und ddm_opener nebeneinander sind */
    align-items: center; /* Vertikale Zentrierung im Menü-Balken */
    font-size: 12px;
    font-weight: normal;
    height: 3rem;
    letter-spacing: 0.5px;
    line-height: normal; /* Line-height 0 aus dem alten Code entfernen */
    text-transform: uppercase;
    width: auto; /* Wichtig! Entfernt die festen 160px, das Element ist nun so breit wie sein Text */
    margin: 0; /* Entfernt die festen 10px, Abstände werden jetzt über 'gap' im UL gesteuert */
}

/* ************ OPTIONAL - Listenpunkte Menulevel 1 + 2 + 3 - gleiche Farbe f. Hintergrund */
.lck_nav .menulevel1 > li:nth-child(n),
.lck_nav .menulevel1 > li:nth-child(n) > ul li {
    background-color: transparent;
}
/* ************ OPTIONAL - Listenpunkte Menulevel 2 + 3 - gleiche Farbe f. Hintergrund */
.lck_nav .menulevel1 > li:nth-child(n) > ul li {
	/* background-color: #666; */
}
/* ************ OPTIONAL - Listenpunkte Menulevel 3 - andere Farbe f. Hintergrund */
.lck_nav .menulevel1 > li:nth-child(n) > ul ul li {
	/* background-color: #555; */
}
/* ************ OPTIONAL - Listenpunkte Menulevel 1 + 2 + 3 - gleiche Farbe bei FOCUS + HOVER */
.lck_nav li:focus:nth-child(n):focus,
.lck_nav li:hover:nth-child(n):hover {
	/* background-color: #61666E; */
	/* -webkit-transition: background-color .3s ease; */
	/* transition: background-color .3s ease; */									 
}

/* ************ UL Menulevel 2 + 3 */
.lck_nav ul ul {
    background-color: #c3c3c3;
    margin: 0;
    opacity: 0;
    padding: 0;
    position: absolute;
    top: 100%; /* = height of .menulevel1 > li */
    -webkit-transition: opacity .3s ease;
    transition: opacity .3s ease;
    visibility: hidden;
    z-index: 200;
}

/* ************ Listenpunkte Menulevel 2 - Allgemein */
.lck_nav .menulevel2 > li {
    background-color: #565D67;
    height: 3rem;
    line-height: 3rem;
    width: 180px;
}

/* ************ ddm_link + ddm_opener Menulevel2 + Listenpunkte Menulevel3 */
.lck_nav .menulevel2 li span:first-of-type,
.lck_nav ul ul li {
    font-size: 10px;
}

/* Flexbox für Listenpunkte der Untermenüs, um Link links und Opener rechts zu halten */
.lck_nav ul ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0px solid #fff; /* Optional */
}

.lck_nav .menulevel3 li:first-child {
    border-top: 0px solid #222; /* Optional */
}

/* ************************* ddm_link + ddm_opener - Allgemein */
.lck_nav .ddm_link {
    display: flex;         /* Flexbox statt Table */
    align-items: center;   /* Vertikal zentrieren */
    height: 100%;
    position: relative;
    width: auto;           /* Breite automatisch nach Inhalt */
    flex-grow: 1;          /* Nimmt den verfügbaren Platz ein */
    z-index: 110;
}

.lck_nav .ddm_opener {
    display: flex;         /* Flexbox statt Table */
    align-items: center;   /* Vertikal zentrieren */
    justify-content: center;
    height: 100%;
    width: auto;           /* Nimmt nur so viel Platz wie der Pfeil braucht */
    padding: 0 10px;       /* Abstand für besseren Klickbereich auf der rechten Seite */
    z-index: 120;
}

.lck_nav .ddm_link a,
.lck_nav .ddm_opener a {
    display: block;        /* Von table-cell auf block oder inline-block ändern */
    padding: 0 4px;
    line-height: 3rem;     /* Gleiche Höhe wie das Menü für gute Klickbarkeit */
}
.lck_nav .ddm_link a {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;      /* Zentriert für Untermenüs */
    width: 100%;           /* Klickbereich füllt die Zeile auf */
    padding-left: 10px;    /* Optionaler Einzug von links */
}
.lck_nav .ddm_opener a {
    background-color: rgba(0, 0, 0, 0.02);
}
.lck_nav .ddm_link a:hover,
.lck_nav .ddm_opener a:hover,
.lck_nav .menulevel3 li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    -webkit-transition: background-color .5s ease; 
    transition: background-color .5s ease;
}
.ddm_opener_icon:before {
    content: "\f107";
    font-family: FontAwesome;
    font-size: 12px;
    display: block;
}
ul ul .ddm_opener_icon:before {
    content: "\f105";
    font-family: FontAwesome;
    font-size: 12px;
    display: block;
}

/* ************************* Untermenü öffnen, nur bei hover über Hamburger-Symbol. Reihenfolge ist wichtig! */
.lck_nav li:hover > .ddm_opener ~ ul {
    opacity: 1;
    visibility: visible;
}
.lck_nav li > .ddm_link:hover ~ ul {
    visibility: hidden;
}
/* ************************* ab Menulevel 3 Standard Fold-out + Listenpunkt Allgemein */
.lck_nav ul ul ul {
    margin-left: 0;
    position: absolute;
    left: 180px;
    top: 0;
    width: 180px;
    z-index: 300;
}
.lck_nav ul ul ul li {
    background-color: #565D67;
    height: 3rem;
    line-height: 3rem;
    width: 180px;
}

/* ************************* Media Queries - RESPONSIVE STYLE ************************* */
/* ************************* Menulevel 3 Fold-out - rechts oder links von menulevel2 - abhängig vom Viewport */
/* Hinweis: Da wir nun Flexbox nutzen, ändern wir bei den Rand-Menüs die flex-direction statt floats zu verwenden */

@media only screen and (min-width: 1900px) {
.lck_nav > ul { max-width: 1450px; }
.lck_nav .menulevel1 > li:nth-child(8n+8) ul ul { left: -180px; }
.lck_nav .menulevel1 > li:nth-child(8n+8) ul li { flex-direction: row-reverse; } /* Vertauscht Link und Opener */
.lck_nav .menulevel1 > li:nth-child(8n+8) ul .ddm_link a { text-align: center; } /* Passt Textrichtung an den aufklappenden Pfeil an */
.lck_nav .menulevel1 > li:nth-child(8n+8) ul .ddm_opener_icon:before { content: "\f104"; }
}

@media only screen and (min-width: 1500px) and (max-width: 1899px) {
.lck_nav > ul { max-width: 1270px; }
.lck_nav .menulevel1 > li:nth-child(7n+7) ul ul { left: -180px; }
.lck_nav .menulevel1 > li:nth-child(7n+7) ul li { flex-direction: row-reverse; }
.lck_nav .menulevel1 > li:nth-child(7n+7) ul .ddm_link a { text-align: center; }
.lck_nav .menulevel1 > li:nth-child(7n+7) ul .ddm_opener_icon:before { content: "\f104"; }
}

@media only screen and (min-width: 1100px) and (max-width: 1499px) {
.lck_nav > ul { max-width: 1090px; }
.lck_nav .menulevel1 > li:nth-child(6n+6) ul ul { left: -180px; }
.lck_nav .menulevel1 > li:nth-child(6n+6) ul li { flex-direction: row-reverse; }
.lck_nav .menulevel1 > li:nth-child(6n+6) ul .ddm_link a { text-align: center; }
.lck_nav .menulevel1 > li:nth-child(6n+6) ul .ddm_opener_icon:before { content: "\f104"; }
}

@media only screen and (min-width: 920px) and (max-width: 1099px) {
.lck_nav > ul { max-width: 910px; }
.lck_nav .menulevel1 > li:nth-child(5n+5) ul ul { left: -180px; }
.lck_nav .menulevel1 > li:nth-child(5n+5) ul li { flex-direction: row-reverse; }
.lck_nav .menulevel1 > li:nth-child(5n+5) ul .ddm_link a { text-align: center; }
.lck_nav .menulevel1 > li:nth-child(5n+5) ul .ddm_opener_icon:before { content: "\f104"; }
}

@media only screen and (min-width: 801px) and (max-width: 919px) {
.lck_nav > ul { max-width: 730px; }
.lck_nav .menulevel1 > li:nth-child(4n+4) ul ul { left: -180px; }
.lck_nav .menulevel1 > li:nth-child(4n+4) ul li { flex-direction: row-reverse; }
.lck_nav .menulevel1 > li:nth-child(4n+4) ul .ddm_link a { text-align: center; }
.lck_nav .menulevel1 > li:nth-child(4n+4) ul .ddm_opener_icon:before { content: "\f104"; }
}

/* ************************* jQuery-Accordion-Menu f. kleine Viewports ************************* */
@media only screen and (max-width: 800px) {
.lck_nav {
    display: none;
}
.lck_nav_mobil {
    background-color: #e00064;
    display: block;
    margin: 0 auto;
    padding: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 996;
}
/* Reset - offsetting an html anchor to adjust for fixed Menu or Header */
:target:before {
    content: "";
    display: table;
    height: 0;
    margin: 0;
    visibility: initial;
}
.lck_nav_mobil ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lck_nav_mobil a {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-decoration: none;
}
.toggle-nav {
    border: 1px solid #DEDEDE;
    display: block;
    margin: 0 auto;
    padding: 6px 0;
    text-align: center;
    width: 100%;
}
a:link.toggle-nav {
    color: #fff;
    font-size: 2rem;
    position: relative;
    z-index: 998;
}
.toggle-nav.closed .fa-bars {
    color: inherit;
    transition: transform .3s;
}
.toggle-nav.open .fa-bars {
    color: inherit;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    transition: transform .3s;
}
.lck_nav_mobil nav a {
    background-color: #444;
    color: #fff !important;
    display: block;
    font-size: 1rem;
    padding: 6px 15px;
}
.lck_nav_mobil nav li {
    border-top: 1px solid #757575;
    line-height: 2rem;
}
.lck_nav_mobil nav li li a {
    background-color: #333;
    padding-left: 25px;
}
.lck_nav_mobil nav li li li a {
    background-color: #222;
    padding-left: 35px;
}
.lck_nav_mobil nav li li li li a {
    background-color: #111;
    padding-left: 45px;
}
.lck_nav_mobil nav .parent > .more {
    background-color: #333;
    float: right;
    width: 70px;
}
.lck_nav_mobil nav .parent.closed > .more:before,
.lck_nav_mobil nav .parent.open > .more:before {
    font-family: FontAwesome;
    font-size: 2em;
    display: block;
    text-align: center;
}
.lck_nav_mobil nav .parent.closed > .more:before {
    content: "\f107";
}
.lck_nav_mobil nav .parent.open > .more:before {
    content: "\f106";
}
/* nav, li can be closed */
.lck_nav_mobil .closed > ul {
    display: none;
}
}
