/*
 * Theme Name:   Gästehaus Reckahn
 * Description:  Bricks Child Theme
 * Author:       Klark
 * Template:     bricks
 * Version:      1.0
 * Text Domain:  otten
 */

/* ==========================================================================
   VARIABLES
   ========================================================================== */

/* Responsive Variables
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --container-padding-x: 15px !important;
    }
}

@view-transition {
    navigation: auto
}

/* ==========================================================================
   HELPER CLASSES
   ========================================================================== */

/* Responsive Display Classes */
@media (min-width: 769px) {
    :root body.brx-body .display-only-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    :root body.brx-body .display-only-desktop {
        display: none;
    }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

/* Text Wrapping */
body {
    hyphens: auto;
}

p, 
span {
    word-wrap: break-word;
    hyphens: manual;
}

/* Headings & Pseudo-Headings */
h1, h2, h3, h4, h5,
.style-h1, .style-h2, .style-h3, .style-h4, .style-h5 {
    display: block;
    text-wrap: balance;
    hyphens: none;
}
@media (max-width: 768px) {
	h1, h2, h3, h4, h5 {
		hyphens: auto;
	}
}

/* ==========================================================================
   LAYOUT & STRUCTURE
   ========================================================================== */

/* Anchor Link Scroll Padding */
html {
    scroll-padding-top: calc(var(--header-height-full) + 20px);
}

/* Remove Focus Outlines 
body.bricks-is-frontend :focus-visible {
    outline: none;
}
*/

/* Disable SVG Minimum Sizes 
svg:not([height]) {
    min-height: unset;
}

svg:not([width]) {
    min-width: unset;
}
*/

/* Standard Spacing, Padding, Margins */
:is(.brxe-text, .brxe-text-basic) > :not(a):first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

:is(.brxe-text, .brxe-text-basic) :not(:is(a, li)):last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

figcaption.bricks-image-caption {
    position: relative !important;
}

/* ==========================================================================
   LINKS & BUTTONS
   ========================================================================== */

/* Menu Item Links */
.bricks-nav-menu a:hover, 
nav .current-menu-item > a, 
nav .current-menu-item > div > a {
    /*font-weight: bold;*/
}

/* Regular Links - Hover */
main a:not(.brxe-button):hover {
    text-decoration: underline;
}

/* Buttons - Hover */
body a.bricks-button:hover, 
body li.bricks-button a:hover {
    /*font-weight: initial;*/
    text-decoration: none;
}

/* Empty Links - Hover */
a[href="#"]:hover {
    cursor: default;
}

/* Links in Shortcode Elements */
:where(.brxe-shortcode) a {
    font-weight: 400 !important;
}



/* Hide Submenu when Bricks Mega Menu is used */
.bricks-menu-item.brx-has-megamenu ul.sub-menu {
    display: none;
}

.bricks-nav-menu.brx-has-megamenu > li > a > span {
    display: none;
}





/* Mobile Menu Styles */
.bricks-mobile-menu {
    padding-top: 50px;
}

/* Make submenu toggle take full width of parent */
.bricks-mobile-menu div.brx-submenu-toggle.icon-right {
    position: relative;
}

.bricks-mobile-menu div.brx-submenu-toggle.icon-right button {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    justify-content: end;
}

/* Mobile Submenu Animation */
.brxe-nav-menu .bricks-mobile-menu-wrapper .sub-menu {
    display: block;
    max-height: 0;
    transition: 0.1s linear;
    overflow: hidden;
}

.brxe-nav-menu .bricks-mobile-menu-wrapper li.open > .sub-menu {
    max-height: 500px;
}

/* Rotate submenu indicator when open */
nav.bricks-mobile-menu-wrapper li.menu-item-has-children .open {
    transition: rotate 50ms linear;
}

nav.bricks-mobile-menu-wrapper li.menu-item-has-children [aria-expanded="true"] .open {
    display: initial;
/*     transform: rotate(180deg); */
}

/* Remove button styling from mobile menu buttons 
@media (max-width: 768px) {
    :root .menu-item.bricks-button[class*="primary"]:not(.outline) {
        background-color: unset;
        border: unset;
        color: unset;
        font-size: unset !important;
        padding: unset !important;
        border-radius: unset;
        transition: unset;
        display: unset;
        justify-content: unset !important;
        letter-spacing: unset;
        padding: unset;
        text-align: unset;
    }
}
*/
