/*
Theme Name: Katzkow Theme
Theme URI: https://www.katzkow-partner.at
Author: .kloos digital GmbH
Description: Custom theme for the Katzkow & Partner website, built with Von Block
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: katzkow-theme

Requires Plugin: Von Block Builder
*/

/*
 * What is site-wide. Layout, spacing, type and colour are Von Block's (classes, typography styles,
 * the settings); a part of the site with CSS or JavaScript of its own is a component (components/).
 */

/* Phones: nothing wider than the screen scrolls the page sideways */
@media (max-width: 767px) {
    html,
    body,
    .wp-site-blocks {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
}

/* Two navy sections in a row: no hairline seam between them */
.mcg-background-color-surface-dark + .mcg-background-color-surface-dark {
    margin-top: -1px;
    box-shadow: 0 -1px 0 var(--mcg-color-primary);
}

/* Phones and small tablets: a list's bullets sit at the content's edge, wrapped lines under the text */
@container (max-width: 768px) {
    .wp-block-post-content :is(ul, ol).wp-block-list {
        margin-left: 0;
        margin-inline-start: 0;
        padding-left: 1.15em;
        padding-inline-start: 1.15em;
        list-style-position: outside;
    }

    .wp-block-post-content :is(ul, ol).wp-block-list > li {
        margin-left: 0;
        margin-inline-start: 0;
        padding-left: 0;
        padding-inline-start: 0;
    }

    .wp-block-post-content ul.wp-block-list > li::marker {
        font-size: 0.8em;
    }
}

/* In-page links scroll smoothly, unless the visitor asked for less motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/*
 * The cookie settings icon only on the home page. Borlabs puts display: block !important on it
 * inline, so it is hidden by visibility.
 */
body:not(.home) #BorlabsCookieWidget {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
