/*
 Theme Name:   ATW Mannheim
 Theme URI:    https://dotsunited.de/
 Description:  ATW Mannheim Theme
 Author:       Dots United
 Author URI:   https://dotsunited.de/
 Template:     generatepress
 Version:      0.1
*/

a:hover {
    cursor: pointer!important;
}

ul.wp-block-page-list {
    margin: 0!important;
}

.entry-content img {
    margin: 0 0 1.5rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    hyphens: auto;
}

.featured-image img {
    min-width: 100%;
    margin-bottom: 0;
}

.site-footer a {
    color: var(--highlight)!important;
}
.site-footer a:hover {
    color: var(--global-color-11)!important;
}

input.gform_button.button {
    background: var(--highlight)!important;
    font-weight: 700!important;
}
input.gform_button.button:hover {
    background: var(--global-color-11)!important;
}

/* Remove header nav padding */
.nav-below-header .main-navigation .inside-navigation.grid-container {
    padding-left: 0;
    padding-right: 0;
}

/* Widget H2s */
.widget h2 {
    color: var(--highlight);
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 20px;
    line-height: 1.5;
    text-transform: none;
}

/* Right sidebar categories */
.inside-right-sidebar .wp-block-categories-list {
    margin-left: 0!important;
}
.inside-right-sidebar .wp-block-categories-list a {
    color: var(--highlight) !important;
}
.inside-right-sidebar .wp-block-categories-list a:hover {
    color: var(--global-color-11) !important;
}

/* Right sidebar recent posts */
.inside-right-sidebar .recent-posts a {
    color: var(--highlight) !important;
}
.inside-right-sidebar .recent-posts a:hover {
    color: var(--global-color-11) !important;
}

/* WP file block */
.wp-block-file .wp-block-file__button {
    background: var(--highlight) !important;
    color: #fff !important;
}
.wp-block-file .wp-block-file__button:hover {
    background: var(--global-color-11) !important;
    color: #fff !important;
}

/* 404 styles */
.error404 .site-content .gb-inside-container {
    border-right: 2px solid rgba(0, 0, 0, 0.07);
    border-bottom: 2px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}
.error404 .site-content .gb-inside-container a {
    color: var(--highlight) !important;
}
.error404 .site-content .gb-inside-container a:hover {
    color: var(--global-color-11) !important;
}

/* Post single styles */
.single .byline {
    display: none;
}

/* RESPONSIVE STYLING */

@media (min-width: 768px) {
    /* only show search icon on tablet & mobile devices */
    .menu-bar-items {
        display: none!important;
    }
}

@media (max-width: 1300px) {
    /* set header paddings for content with */
    .logo-header .gb-inside-container, .nav-below-header .main-navigation .inside-navigation.grid-container {
        padding-left: 50px!important;
        padding-right: 50px!important;
    }
}

@media (max-width: 768px) {
    /* set header paddings for mobile with */
    .logo-header .gb-inside-container, .nav-below-header .main-navigation .inside-navigation.grid-container {
        padding-left: 30px!important;
        padding-right: 30px!important;
    }

    /* hide header search on mobile devices */
    form.wp-block-search {
        display: none!important;
    }
}

.sidebar-nav-container {

    ul.sidebar-menu {
        li a {
            display: inline-block;
            width: 100%;
            color: black;
            padding-left: 26px;
            padding-right: 12px;
            padding-block: 4px;
        }

        > li > a:hover {
            background-color: var(--global-color-11);
            color: white;
        }

        > li:hover::after {
            border-left: 6px solid white;
        }

        .current-menu-parent > a, .current-menu-ancestor > a {
            background-color: var(--global-color-11);
            color: white;
        }

        .current-menu-item {
            position: relative;

            > .sub-menu {
                display: block;
            }
            
            > a {
                background-color: var(--global-color-11);
                color: white;
            }
        }

        .current-menu-item.menu-item-has-children .current-menu-item a, .current-menu-parent .current-menu-item a {
            color: var(--global-color-11);
            background-color: var(--global-color-12);
        }

        .current-menu-item.menu-item-has-children li a, .current-menu-parent li a {
            color: var(--global-color-11);
        }

        .current-menu-item.menu-item-has-children li a:hover, .current-menu-parent li a:hover {
            background-color: var(--global-color-12);
        }

        .current-menu-ancestor.menu-item-has-children::after,
        .current-menu-parent.menu-item-has-children::after, 
        .current-menu-item.menu-item-has-children::after {
            border-top: 6px solid white;
            border-left: 6px solid transparent;
            margin-left: 0px;
            top: 15px;
            left: 8px;
        }

        .menu-item-has-children::after {
            position: absolute;
            content: "";
            width: 0px;
            height: 0px;
            border-top: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 6px solid transparent;
            border-left: 6px solid var(--highlight);
            left: 12px;
            top: 12px;
            transform-origin: center;
            pointer-events: none;
        }

        .sub-menu {
            display: none;
        }
        .sub-menu:has(.current-menu-item) {
            display: block;
        }
    }

}
