/**
 * Songtastisch Menu Icon Widget
 * 
 * @package Songtastisch
 * @version 1.0.0
 * @author Sven Schöning
 * @copyright 2024 Songtastisch
 */

.st-menu-icon * { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

.st-menu-icon-holder {
    position: relative;
}

.st-menu-icon {
    background-color: #2c3e50;
    padding: 0;
    border-radius: 0;
    text-align: center;
    height: 70px;
    width: 70px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
}

.st-hamburger {
    display: inline-block;
    transform: scale(1);
    position: relative;
    width: 100%;
}

.st-hamburger .st-line {
    width: 70%;
    height: 5px;
    background-color: #ecf0f1;
    display: block;
    margin: 8px auto;
    transition: all 0.3s ease-in-out;
}

.st-hamburger:hover {
    cursor: pointer;
}

/* X Animation - Dynamisch an Linien-Abstand angepasst */
.st-hamburger.is-active .st-line:nth-child(2) {
    opacity: 0;
}

.st-hamburger.is-active .st-line:nth-child(1) {
    transform: translateY(calc(var(--line-height, 5px) + var(--line-spacing, 8px))) rotate(45deg);
}

.st-hamburger.is-active .st-line:nth-child(3) {
    transform: translateY(calc(-1 * (var(--line-height, 5px) + var(--line-spacing, 8px)))) rotate(-45deg);
}
