/*
Theme Name: Von Innen Frei
Theme URI: https://www.metallhuhn.de/voninnen/
Author: metallhuhn
Description: Inhaltsunabhängiges Block-Child-Theme für Twenty Twenty-Five mit optionalen Seiten- und Abschnittsvorlagen.
Template: twentytwentyfive
Version: 1.2
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: metallhuhn-voninnen
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Global colors, type and spacing live in theme.json. This file contains
   layout details and component styles shared by front end and editor. */
.wp-site-blocks {
    padding-block: 0;
}

.mh-shell {
    box-sizing: border-box;
    position: relative;
    max-width: none;
    min-height: 100vh;
    background-color: var(--wp--preset--color--base);
    box-shadow: 0 12px 48px rgb(0 0 0 / 7%);
}

/* Decoration is a CSS background: no content blocks, no screen-reader noise
   and no overflow clipping that could cut off focus rings or the mobile menu. */
.is-style-mh-floral {
    position: relative;
    background-color: var(--wp--preset--color--base);
}

.is-style-mh-floral::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url("assets/images/floral.svg"), url("assets/images/floral.svg");
    background-position: left top, right bottom;
    background-repeat: no-repeat;
    background-size: clamp(90px, 15vw, 180px) auto;
    opacity: .13;
    pointer-events: none;
}

/* Keep the header subtle and give the footer the original stronger colors. */
.mh-shell.is-style-mh-floral {
    background-image: url("assets/images/floral-footer.svg");
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: clamp(90px, 15vw, 180px) auto;
}

.mh-shell.is-style-mh-floral::before {
    background-image: url("assets/images/floral.svg");
    background-position: left top;
}

.mh-content {
    position: relative;
    padding-block: var(--wp--preset--spacing--60);
    margin-block-start: 0;
    overflow-wrap: anywhere;
}

.mh-site-header,
.mh-site-footer {
    position: relative;
    padding-inline: var(--wp--custom--layout--gutter);
}

.mh-site-header {
    z-index: 20;
    padding-block: var(--wp--preset--spacing--40);
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--brown) 20%, transparent);
}

.mh-header-row {
    gap: var(--wp--preset--spacing--40);
}

.mh-header-row > .wp-block-site-title {
    flex: 1 1 auto;
}

.mh-header-row .wp-block-site-logo {
    flex: 0 0 auto;
}

.mh-site-footer {
    padding-block: var(--wp--preset--spacing--50);
    border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--brown) 20%, transparent);
    font-size: var(--wp--preset--font-size--small);
    text-align: center;
}

.mh-site-nav .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    padding: var(--wp--preset--spacing--50);
}

.mh-site-nav .wp-block-navigation__responsive-container-open,
.mh-site-nav .wp-block-navigation__responsive-container-close {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.mh-footer-nav .wp-block-navigation-item__content,
.mh-site-nav .wp-block-navigation-item__content {
    padding-block: .5rem;
}

.mh-section {
    margin-block: var(--wp--preset--spacing--60);
}

.mh-section:first-child {
    margin-block-start: 0;
}

.mh-section:last-child {
    margin-block-end: 0;
}

.mh-page-pattern > .mh-section + .mh-section {
    margin-block-start: var(--wp--preset--spacing--70);
}

.is-style-mh-card,
.is-style-mh-soft,
.mh-section.is-style-mh-floral {
    box-sizing: border-box;
    padding: var(--wp--preset--spacing--50);
    border-radius: 1rem;
}

.is-style-mh-card {
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--brown) 30%, transparent);
    background-color: var(--wp--preset--color--base);
}

.is-style-mh-soft {
    background-color: var(--wp--preset--color--sand);
}

.mh-center {
    text-align: center;
}

.mh-link-list .wp-block-buttons {
    justify-content: center;
}

.mh-link-list .wp-block-button {
    width: min(100%, 28rem);
}

.mh-link-list .wp-block-button__link {
    box-sizing: border-box;
    width: 100%;
}

.wp-block-button__link {
    white-space: normal;
    overflow-wrap: anywhere;
}

a {
    text-underline-offset: .18em;
    text-decoration-thickness: .08em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 3px solid var(--wp--preset--color--green-dark);
    outline-offset: 4px;
}

.wp-block-details {
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--brown) 25%, transparent);
    padding-block: var(--wp--preset--spacing--30);
}

.wp-block-details summary {
    padding-block: .4rem;
    cursor: pointer;
    font-weight: 600;
}

.wp-block-table {
    overflow-x: auto;
}

.wp-block-table th,
.wp-block-table td {
    padding: .75rem;
    text-align: start;
}

.wp-block-search__inside-wrapper {
    gap: .5rem;
    flex-wrap: wrap;
}

.wp-block-search__input {
    min-width: 0;
    flex: 1 1 10rem;
}

.mh-content :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea, select) {
    box-sizing: border-box;
    max-width: 100%;
    padding: .7rem;
    border: 1px solid var(--wp--preset--color--brown-dark);
    border-radius: .35rem;
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    font: inherit;
}

/* Empty core image blocks remain editable upload placeholders in Gutenberg.
   Until a real image is selected they must not show a broken image on the site. */
.wp-block-image img:not([src]),
.wp-block-image img[src=""] {
    display: none;
}

.wp-block-post-template > li + li {
    margin-block-start: var(--wp--preset--spacing--40);
}

.wp-block-post-template.is-layout-grid > li + li {
    margin-block-start: 0;
}

@media (max-width: 600px) {
    .mh-header-row {
        gap: var(--wp--preset--spacing--30);
    }

    .mh-header-row > .wp-block-site-title {
        flex-basis: 50%;
        overflow-wrap: anywhere;
    }

    .wp-block-post-template.is-layout-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .is-style-mh-card,
    .is-style-mh-soft,
    .mh-section.is-style-mh-floral {
        padding: var(--wp--preset--spacing--40);
    }
}

@media print {
    .is-style-mh-floral::before {
        display: none;
    }

    .mh-shell {
        box-shadow: none;
    }
}
