/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Deuta, GeneratePress Child Theme
 Author:       RietschDesign, Claudia Rietsch
 Author URI:   https://www.rietsch-design.de
 Template:     generatepress
 Version:      0.1
*/


/*************************************************/
/***************** BASE **************************/
/*************************************************/

body {
        overflow-x: hidden;
}

/* Listen */
.wp-block-list ul, .wp-block-list ol {
        padding-left: 0;
}

ol, ul {
        margin: 0 0 1.5em 1.5em;
}


/*************************************************/
/***************** BUTTONS ***********************/
/*************************************************/

.wp-block-button__link {
        background-color: var(--base-3);
        transition: background-color 0.2s ease;
}

.wp-block-button__link:hover {
        background-color: var(--accent-zwei);
}


/*************************************************/
/***************** TOP BAR ***********************/
/*************************************************/

.top-bar {
        border-bottom: 1px solid #e5e5e5;
}

.topbar-details {
        display: flex;
        gap: 30px;
        align-items: baseline;
}

.topbar-details div {
        white-space: nowrap;
}

@media (max-width: 768px) {

        .topbar-details {
                flex-direction: column;
                gap: 5px;
        }

        .topbar-phone,
        .topbar-mail {
                display: none;
        }


        .top-bar {
                display: none;
                }


}


/*************************************************/
/***************** HEADER ************************/
/*************************************************/

/* Logo & Site Description */
.site-branding-container {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
}

.site-description {
        margin-right: 20px;
}

/* Headline Underline */
.headline-underline {
        position: relative;
        padding-bottom: 15px;
}

.headline-underline::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background-color: #004F7C;
}

.headline-underline-center::after {
        left: 50%;
        transform: translateX(-50%);
}

.headline-underline-right::after {
        left: auto;
        right: 0;
}


/*************************************************/
/***************** NAVIGATION ********************/
/*************************************************/

/* Mobile Menu */
.main-navigation .menu-toggle,
.menu-toggle:before {
        font-size: 30px;
}

.dropdown-menu-toggle {
        font-weight: 700;
}

.has-inline-mobile-toggle .mobile-menu-control-wrapper {
        flex-direction: row-reverse;
        flex: 1;
        justify-content: center;
        margin-top: 20px;
}

/* Submenu 2nd Level */
.main-navigation ul ul {
        width: 320px;
        background-color: var(--accent);
}

/* Submenu 3rd Level below instead of right */
.main-navigation:not(.toggled) ul ul li {
        position: relative;
}

.main-navigation:not(.toggled) ul ul li:hover > ul {
        left: 0;
        top: 100%;
}

.main-navigation:not(.toggled) ul ul ul {
        position: absolute;
        left: 0 !important;
        top: 100% !important;
        width: 100%;
        background-color: color-mix(in srgb, var(--accent) 85%, white);
}

.main-navigation .main-nav ul ul ul li a {
        padding: 15px 20px;
        font-size: 0.9rem;
}


/* Off-Canvas Mobile Menü Breite */
body .main-navigation.offside {
    width: 90%;
}

/*************************************************/
/***************** BLOG Aktuelles ***************/
/*************************************************/

/* Content spacing */
.archive .site-content,
.category .site-content,
.single .site-content {
        padding-top: 60px !important;
}

/* Blog H1 */
.archive h1,
.category h1,
.single h1 {
        font-weight: 600;
        font-size: 2rem;
        line-height: 1.6;
}

/* Blog H2 links underline */
.archive .entry-title a,
.category .entry-title a,
.blog .entry-title a {
        text-decoration: underline;
}


/*************************************************/
/***************** GUTENBERG *********************/
/*************************************************/

/* Details / FAQ Block */
.wp-block-details {
        transition: all 0.5s ease-in-out;
        margin-bottom: 15px;
}

.wp-block-details summary {
        transition: all 0.5s ease-in-out;
        box-sizing: border-box;
        padding: 1rem;
}

.wp-block-details > :where(:not(summary)) {
        margin-left: 2rem;
        margin-right: 2rem;
}

.wp-block-details[open] {
        padding-bottom: 1rem;
}

.wp-block-details summary::marker {
        content: "+ ";
}

.wp-block-details[open] summary::marker {
        content: "- ";
}


/*************************************************/
/***************** KADENCE BLOCKS ****************/
/*************************************************/

/* Full Width Rows */
.alignfull > .kt-row-layout-inner > .kt-row-column-wrap,
.alignfull > .kt-row-column-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
}

/* Kadence Info Box */
.kt-blocks-info-box-link-wrap {
        display: block;
        background: var(--base-3, #ffffff);
        padding: var(--global-kb-spacing-xs, 1rem);
        border-color: var(--global-palette7, #eeeeee);
}

.kt-blocks-info-box-text {
        color: var(--contrast, #222222);
}


/*************************************************/
/***************** PLUGINS ***********************/
/*************************************************/

/* /* GTranslate */
/* .gtranslate_wrapper {
        display: flex;
        flex-direction: row;
        gap: 10px;
}  */


/* Topbar Polylang Language Switcher nebeneinander */
.topbar-translate {
    display: flex !important;
    align-items: center;
    gap: 8px; /* Abstand zwischen Flaggen */
}

.topbar-translate li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.topbar-translate img {
    display: block;
}


/* Polylang neue Flaggen Größe festlegen - ist wichtig! */
.lang-item img {
    width: 20px !important;
    height: 15px !important;
    object-fit: auto;
}

/*************************************************/
/********* ANIMATION MOBILE DEAKTIVIEREN *********/
/*************************************************/

@media only screen and (max-width : 768px) {
    .animated {
        transition-property: none !important;
        transform: none !important;
        animation: none !important;
    }
}


/*************************************************/
/***************** ENDE *******************/
/*************************************************/



