/*
Theme Name: Kettelgerdes Brandschutz Theme 2025
Theme URI: 
Author: GUTWERKER
Author URI: https://gutwerker.de
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kettelgerdes-brandschutz-theme-2025
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/* Styles intended only for the frontend.*/
html {
	scroll-behavior: smooth;
}

body {
  text-underline-offset: .2em;
  width: 100vw;
  overflow-x: clip;
  max-width: 100%;

  --admin-bar-height: 0px;
}

body.admin-bar {
  --admin-bar-height: 32px;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

a {
    text-decoration: none;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

button {
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

a:hover {
    text-decoration: none;
}

.wp-block-button a:hover, nav a:hover {
    text-decoration: none;
}


/* basics */
* {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}


/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}


h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

@media (max-width: 480px) {
    h1, h2, h3, h4, h5, h6 {
        -webkit-hyphens: auto;
            -ms-hyphens: auto;
                hyphens: auto;
    }
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}


.ff_btn_style:hover,
.ff_btn_style:focus{
    background-color: var(--wp--preset--color--accent-2) !important;
    opacity: 1 !important;
    border-color: var(--wp--preset--color--accent-2) !important;
    color: var(--wp--preset--color--base) !important;
}


footer {
    margin-top: 0 !important;
}

.overflow-x-clip {
    overflow-x: clip !important; /* Ab CSS Level 4 – kein Fallback auf Scroll */
}



/* mobile text breaks */
@media (max-width: 768px) {
    .has-xx-large-font-size {
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphenate-limit-chars: 15;
    }
}


@media (max-width: 999px) {
    .reverse-mobile-order-row {
        -webkit-box-orient: horizontal !important;
        -webkit-box-direction: reverse !important;
            -ms-flex-direction: row-reverse !important;
                flex-direction: row-reverse !important;
                

        &.is-content-justification-right {
            -webkit-box-pack: start;
                -ms-flex-pack: start;
                    justify-content: flex-start;
        }
    }

    .mobile-dont-grow {
        -webkit-box-flex: 0 !important;
            -ms-flex-positive: 0 !important;
                flex-grow: 0 !important;
    }
}