#wpadminbar {display: block !important; visibility: visible !important;}
#wpadminbar .ab-top-menu > li > .ab-item .dashicons,
#wpadminbar .ab-sub-wrapper .dashicons {
    font-family: dashicons;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
    padding-right: 4px;
}
.custom-modal, .custom-mega-menu {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 32px; /* Höhe der Admin-Bar */
    width: 100%;
    height: calc(100% - 32px);
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.custom-modal-content, .custom-mega-menu-content {
    background-color: #f1f1f1;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}
.custom-mega-menu-content {
    width: 750px;
    max-width: 800px;;
    height: 100%;
}
.custom-modal-content.full, .custom-mega-menu-content.full {
    width: 95%;
    max-width: none;
}
.custom-modal-content.wide, .custom-mega-menu-content.wide {
    width: 1180px;
    max-width: 1200px;
}
.custom-modal-close, .custom-mega-menu-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.custom-modal-close:hover, .custom-modal-close:focus,
.custom-mega-menu-close:hover, .custom-mega-menu-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.custom-modal iframe, .custom-mega-menu iframe {
    width: 100%;
    height: 80vh;
    border: none;
}
.custom-mega-menu form {
    display: grid;
    gap: 1rem;
}
.custom-mega-menu form label {
    font-weight: bold;
}
.custom-mega-menu form input[type="text"],
.custom-mega-menu form select,
.custom-mega-menu form textarea {
    width: 100%;
    padding: 0.5rem;
    /*border: 1px solid #ddd;*/
    border-radius: 4px;
}
.custom-mega-menu form input[type="submit"] {
    /* background-color: #0073aa;
     color: white;*/
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.custom-mega-menu form input[type="submit"]:hover {
    /*background-color: #005177;*/
}
@media screen and (max-width: 782px) {
    #wp-toolbar > ul > li.custom {
        display: block;
    }
    #wp-toolbar > ul > li.custom span.ab-label{
        display: none;
    }
    #wp-toolbar > ul > li.custom span.dashicons{
        height: 40px;
        width: 40px;
    }
    #wp-toolbar > ul > li.custom span.dashicons::before {
        font-size: 35px;
        color: #72aee6;
    }
    .custom-modal, .custom-mega-menu {
        top: 46px;
    }
}
