/* style triflexentwicklung Hamburger-Menu*/

/* hover and timer controlled by javascript */

/* Allgemeines Styling */

#menuwrap{
    
    height: 100%;
    display: flex;
    align-items: center;
    font-size: clamp(0.7rem, 0.9vw, 1.1rem);
    font-weight: 500;
    pointer-events: all;
    margin-right:50px;
}
/* Hamburger-Button (bereits formatiert) */
.dropbtn {
    background-color:transparent;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background-image: url(../img/menubtn.png);
    background-size: contain;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Add transition effect */
}

/* Dropdown-Inhalt (unsichtbar, bis aktiviert) */
.dropdown-content {
    display: none;
    position: absolute;
    right:0;
    margin-left:0px;
    width:640px;
    min-width: 250px;
    z-index: 1;
    top: 70px;
    padding-top: 17px;
    transition: opacity 0.3s;
    opacity: 0;
    z-index:999;
    overflow-y: visible; /* Ermöglicht Wachstum des Containers */ /* Scrollbar bei Bedarf */
}

/* Dropdown sichtbar machen beim Hover oder Klick */
.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
    animation: einblenden 0.5s;
    opacity: 1;
}


/* Dropdown-Block: Styling */
.dropdownblock {
    border-bottom: 1px solid;
    border-color: #9e9e9e;
    overflow: auto; /* Automatische Anpassung der Höhe */
    display: flex;
    justify-content: space-between;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}



/* Kategorie-Titel */
.dropdowncat {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    background-color: #F1f1f1;
    width: 50%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdowncat p {
    margin: 0;
    padding: 0;
}

/* Liste von Menüelementen */
.dropdownlist {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 50%;
    text-align: right;
}

.listItem {
    margin: 15px 0; /* Mehr Abstand zwischen Items */
}

.listItem a {
    text-decoration: none;
    
    font-size: 18px; /* Größere Schrift */
    display: block;
    text-align: left;
}




/* NEW */




/* Links inside the dropdown */
.dropdown-content a {
  padding-left: 10px;
  text-decoration: none;
  display: block;
  color: #006633;
  font-size:18px;
  border-bottom: 0px solid #006633;
  background-color:transparent;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: transparent;/* grau */
    color:#202020;/* triflex blau */
    text-decoration: none;
    padding-left: 15px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    
}
.dropdown-content p {
  text-decoration: none;
  display: block;
  font-size:18px;
  color:#585858;
  
}
.dropdown_selected{

    background-color: #dbd9d9;/* grau */
    color:#006633;/* triflex blau */

}


/* Show the dropdown menu on hover */
.dropdown.active .dropdown-content {
  display: block;
}

.dropdown .dropbtn:hover,
.dropdown.active .dropbtn {
    transform: scale(1.2);
    opacity: 0.5;
    background-image: url(../img/menubtn_close.png);
}
.dropdown.active .dropdown-content {

    animation: einblenden 0.5s;
    -moz-animation: einblenden 0.5s; /* Für Firefox */
    -webkit-animation: einblenden 0.5s; /* Für Safari und Chrome */
    -o-animation: einblenden 0.5s; /* Für Opera */
}

@keyframes einblenden {
    from { opacity:0.1; }
    to { opacity:1; }
}

@-moz-keyframes einblenden { /* Für Firefox */
    from { opacity:0.1; }
    to { opacity:1; }
}

@-webkit-keyframes einblenden { /* Für Safari und Chrome */
    from { opacity:0.1; }
    to { opacity:1; }
}

@-o-keyframes einblenden { /* Für Opera */
    from { opacity:0.1; }
    to { opacity:1; }
}


@media (max-width: 740px) { 
        #menuwrap {

        margin-right: 0px;
    }
    .dropdown-content {
        width: 100%;
		padding-top: 18px; 
		 
    }
	.dropdown-content p,
	.dropdown_cat p{
	margin: 4px 0 !important;   /* war vermutlich zu groß */
	line-height: 1.15;          /* enger */
	padding: 0 !important;
	}
	.dropdowncat {
		padding-top: 20px;
		padding-bottom: 20px;
	}
}





.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
  outline: none;
  margin-top:0;
  /* Option: leichter Schatten beim Hover */
}

.hamburger:hover, .hamburger:focus-visible {
  background: #f7f7fa;
  box-shadow: 0 4px 18px 0 #ffce0022;
}

.hamburger svg {
  display: block;
}

.bar {
  fill: #232323;
  transition: 
    transform 0.33s cubic-bezier(.62,.02,.23,1.01),
    fill 0.18s,
    height 0.33s cubic-bezier(.62,.02,.23,1.01);
}

/* Hover Animation */
.hamburger:hover .bar1,
.hamburger:focus-visible .bar1,
.dropdown.active .hamburger .bar1 {
  transform: translateY(-2px) scaleX(1.10);
  fill: #006633;
  height: 4px;
}

.hamburger:hover .bar2,
.hamburger:focus-visible .bar2,
.dropdown.active .hamburger .bar2 {
  transform: scaleX(1.13) scaleY(1.23);
  fill: #006633;
  height: 5px;
}

.hamburger:hover .bar3,
.hamburger:focus-visible .bar3,
.dropdown.active .hamburger .bar3 {
  transform: translateY(2px) scaleX(1.10);
  fill: #006633;
  height: 4px;
}

.hamburger:hover,
.hamburger:focus-visible,
.dropdown.active .hamburger {
  background: #f7f7fa;
  box-shadow: 0 4px 18px 0 #ffce0022;
}