/* =================================
   Dropdown Navigation mit HOVER INTENT per CSS (left + transition-delay)
   Ggf. Steuerung per JS -> #ddnav bind click + lang chooser #lang-chooser, .lang-box (sup)
   ================================= */
#ddnav {
  width: 100%;
}

#ddnav ul, #ddnav li, #ddnav a {
  margin: 0px;
  padding: 0px;
  list-style-type: none;
  line-height: 4rem;
  color: #fff;
  text-decoration: none;
}

#ddnav > ul {
  display: flex;
}

#ddnav > ul > li {
  position: relative;
  flex: 1 1 auto;
  text-align: center;
  border-bottom: 5px solid #e50d0d;
}

#ddnav a {
  display: block;
  padding: 0px 15px 0px 15px;
}

/* =================================
   LVL 1
   ================================= */
#ddnav .lvl-1.active, #ddnav .lvl-1, #ddnav .lvl-1.inpath {
}

#ddnav > ul > li:last-child {
}

#ddnav .lvl-1 {
}

#ddnav .lvl-1.active {
}

#ddnav .lvl-1.inpath {
}

/* =================================
   LVL 2
   ================================= */
#ddnav ul ul li {
  background: #000;
  float: none;
  display: block;
  min-width: 180px;
}

#ddnav ul ul li:last-child {
  border-bottom: none;
}

#ddnav .lvl-2.active, #ddnav .lvl-2, #ddnav .lvl-2.inpath {
  text-align: left;
}

#ddnav .lvl-2 {

}

#ddnav .lvl-2.active {
  background: #000;
}

#ddnav .lvl-2.inpath {
}

/* =================================
   LVL 3
   ================================= */

#ddnav ul ul ul li {
  border-bottom: 1px solid #ccc;
  display: block;
  min-width: 180px;
}

#ddnav ul ul ul li:last-child {
  border-bottom: none;
}

#ddnav .lvl-3.active, #ddnav .lvl-3, #ddnav .lvl-3.inpath {
  padding: 0px 15px 0px 15px;
  margin: 0px 0px 0px 0px;
  float: none !important;
  display: block;
  text-decoration: none;
  font-weight: normal;
  background-image: none;
  line-height: 30px;
}

#ddnav .lvl-3 {
  color: #444;
}

#ddnav .lvl-3.active {
  color: #888;
  font-weight: bold;
}

#ddnav .lvl-3.inpath {
  color: #444;
  font-weight: bold;
}

/* =================================
   HOVER INTENT - KEEP AT LAST POS
   ================================= */
#ddnav > ul > li:hover {

  border-color: #ffea00;
}
#ddnav > ul > li.lvl-1.active {
  border-color: #ffea00;
}

#ddnav ul ul {
  position: absolute;
  left: -9999px;
  /*display:none;*/
  /*margin-top: 40px; !* line - height? *!*/
  z-index: 999;
  -webkit-transition: all 0s ease;
  transition: all 0s ease;

  -webkit-transition: opacity .25s ease;
  transition: opacity .25s ease;

  opacity: 0;
}

#ddnav ul ul ul {
  position: absolute;
  left: -9999px;
  /*display:none;*/
  margin-top: -30px;
  margin-left: 180px;
  z-index: 999;
  opacity: 0;
}

/* OPTIONAL: delay on hide event
#ddnav ul li > ul {
  transition: left 0s ease, opacity .25s ease ;
  transition-delay: .25s;
}
*/
#ddnav ul li:hover > ul {
  left: 0;
  /*display:block;*/
  -webkit-transition-delay: .25s;
  transition-delay: .25s;
  opacity: 1;
}

#ddnav ul ul li:hover ul {
  left: 0;
  /*display:block;*/
  -webkit-transition-delay: .25s;
  transition-delay: .25s;
  opacity: 1;
}


/* =================================
   HCO has children online
   ================================= */

.hco > a:after {
  content: "►";
  display: block;
  float: right;
  /*padding-left:10px;*/
}

.hco:hover > a:after {
  content: "▼";
}


/*
SKS

#lang-dd {
  position: relative;
  bottom: -3px;
  line-height: 1.5;
  cursor: pointer;
}

.curr-lang, .lang-box {
  padding: 0 15px 15px 15px;
  white-space: nowrap;
}

.curr-lang {
  border-bottom: 3px solid #e30813;
  padding-bottom: 7px
}

.lang-box {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  background: #000;

}

.lang-box a {
  display: block;
  padding-top: 10px;
  color: white !important;
}

#lang-dd:hover .lang-box {
  opacity: 1;
  pointer-events: auto;
}


{if sizeof($AUTOFORWARD_LANG_LANGUAGES) > 1 && !$IN_ERROR_FILE}
<div id="lang-dd">
<div class="curr-lang">{strtoupper($LANG)}</div>
<div class="lang-box">
{foreach $LANGUAGES as $lg}
 <a class="lang-{$lg}" href="{changeLangAdv($lg)}">{strtoupper($lg)}</a>
{/foreach}
</div>
</div>
<style> .lang-box .lang-{$LANG} { display:none; } </style>
{/if}



 */


/*


.lang-box {
  position: absolute;
  width:137px;
  background: #FFF;
  -webkit-box-shadow:  0px 2px 3px 1px rgba(0, 0, 0, 0.15);
  -moz-box-shadow:     0px 2px 3px 1px rgba(0, 0, 0, 0.15);
  box-shadow:          0px 2px 3px 1px rgba(0, 0, 0, 0.15);
  padding:20px 20px;
  margin-left:-20px;
  margin-top:6px;
  display: none;
  z-index: 150;
}

.curr-lang {
  background: url(/layout/dd_icon.png) no-repeat 58px center;
  display: inline-block;
  cursor: pointer;
  width:100%;

}
.lang-line {
  padding-left:34px;
  width:102px;
  display: inline-block;

}
.lang-line a:hover { color: #00afd8; }
.lang-en {
  background:url(/layout/en.png) no-repeat center left;
}

.lang-de {
  background:url(/layout/de.png) no-repeat center left;
}

.lang-nl {
  background:url(/layout/nl.png) no-repeat center left;
}
*/