/*
Theme Name: Michl’s Welt
Description: Block-Theme für Rezepte, Familie und Geschichten aus dem Allgäu.
Version: 0.14.4
Requires at least: 6.6
Text Domain: michls-welt
*/
.site-masthead, .site-footer, .site-hero, .topic-section, .latest-posts, .article-shell {
    width: min(1200px, calc(100% - 2.5rem));
    margin-inline: auto;
    box-sizing: border-box;
}
html { scroll-padding-top: 9rem; }

.wp-site-blocks > header.wp-block-template-part {
    position: sticky;
    top: .625rem;
    z-index: 30;
    pointer-events: none;
}
@media (min-width: 601px) {
    .admin-bar .wp-site-blocks > header.wp-block-template-part {
        top: calc(var(--wp-admin--admin-bar--height, 32px) + .625rem);
    }
}
.site-masthead {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding: .5rem clamp(.875rem, 3vw, 2rem);
    pointer-events: auto;
}
.site-masthead::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid #d9cfc0;
    border-radius: 1rem;
    background: #F3EFE7;
    box-shadow: 0 .4rem 1.4rem rgba(47, 74, 58, .12);
    pointer-events: none;
    content: '';
}
.site-masthead .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: .18em;
    transition: text-decoration-color .18s ease, text-underline-offset .18s ease;
}
.site-masthead .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:is(:hover, :focus-visible, [aria-current="page"]) {
    text-decoration-color: #A76A43;
    text-underline-offset: .32em;
}
.site-masthead :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) {
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
}
@media (min-width: 601px) {
    .admin-bar .site-masthead .wp-block-navigation__responsive-container.is-menu-open {
        top: var(--wp-admin--admin-bar--height, 32px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-masthead .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content { transition: none; }
    .site-masthead .wp-block-navigation__responsive-container.is-menu-open { animation: none; }
}
.site-masthead > *, .site-footer > * { margin-block: 0; }
.wp-block-site-title a { font: 400 clamp(1.45rem, 3vw, 2.4rem) var(--wp--preset--font-family--serif, Georgia), serif; text-decoration: none; }
.site-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem clamp(1.25rem, 4vw, 3rem);
    padding-block: 2rem;
    border-top: 1px solid #d9cfc0;
}
.site-footer .brand-logo { margin: 0; }
.site-footer .brand-logo img { width: 2.5rem; }
.site-footer .brand-wordmark { font-size: 1.55rem; }
.site-footer .site-footer-nav { justify-self: end; min-width: 0; font-size: .88rem; }
.site-footer .site-footer-nav .wp-block-navigation__container { gap: .55rem 1.25rem; }
.site-footer .site-footer-nav a {
    overflow-wrap: anywhere;
    text-underline-offset: .22em;
}
.site-footer .site-footer-nav a:hover { text-decoration: underline; }
@supports (mask: url("") center / contain no-repeat) {
    .site-footer .site-footer-nav a[data-mw-social] {
        position: relative;
        display: inline-grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 8px;
        color: #2F4A3A;
    }
    .site-footer .site-footer-nav a[data-mw-social]:hover { background-color: #e4e7dd; }
    .site-footer .site-footer-nav a[data-mw-social]::before {
        content: "";
        width: 1.4rem;
        height: 1.4rem;
        background-color: currentColor;
        mask: var(--mw-social-icon) center / contain no-repeat;
    }
    .site-footer-nav [data-mw-social="instagram"] { --mw-social-icon: url("assets/social/instagram.svg"); }
    .site-footer-nav [data-mw-social="linkedin"] { --mw-social-icon: url("assets/social/linkedin.svg"); }
    .site-footer-nav [data-mw-social="facebook"] { --mw-social-icon: url("assets/social/facebook.svg"); }
    .site-footer .site-footer-nav a[data-mw-social] .wp-block-navigation-item__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}
.site-footer .site-footer-copyright {
    grid-column: 1 / -1;
    margin: 0;
    color: #69432d;
    font-size: .8rem;
}
@media (max-width: 700px) {
    .site-footer { grid-template-columns: minmax(0, 1fr); }
    .site-footer .site-footer-nav { justify-self: start; }
    .site-footer .site-footer-nav .wp-block-navigation__container { justify-content: flex-start; }
}
.site-hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
    background: #ebe2d5;
    margin-block: 1.5rem 3rem;
}
.site-hero > * { min-width: 0; margin: 0; }
.hero-copy { padding: clamp(1.5rem, 5vw, 4rem); align-self: center; }
.hero-copy > p:first-child { color: #77482e; font-weight: 650; }
.hero-copy h1 { font-size: clamp(2.7rem, 6.4vw, 6rem); margin-block: .55rem; }
.site-hero figure { min-height: 18rem; display: flex; }
.site-hero img { width: 100%; height: 100%; object-fit: cover; }
.topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.topic-grid > * { margin: 0; }
.topic-card { padding: 1.5rem; border-top: 3px solid #A76A43; }
.topic-card h3 { font-size: clamp(1.35rem,2.8vw,2rem); margin-top: 0; }
.theme-food { background: #ede0d2; }
.theme-family { background: #e4e7dd; }
.theme-travel { background: #e1e7e9; }
.latest-posts { margin-block: 3rem; }
.latest-posts .wp-block-post { overflow-wrap: anywhere; }
.article-shell { max-width: 960px; margin-block: 3rem; }
.article-shell > h1 { font-size: clamp(2.4rem,5vw,4.25rem); }
.article-shell > .wp-block-post-date { color: #69432d; }
.article-shell .article-image img { width: 100%; max-height: 36rem; object-fit: cover; }
a:focus-visible, button:focus-visible { outline: 3px solid #77482e; outline-offset: 4px; }
@media (max-width: 700px) {
    .site-hero, .topic-grid, .latest-posts .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; }
    .site-hero figure { min-height: 0; }
    .site-hero img { aspect-ratio: 3 / 2; }
}

.site-intro, .journal-feature {
    width: min(1200px, calc(100% - 2.5rem));
    margin: 1.5rem auto 2rem;
    box-sizing: border-box;
    padding: clamp(1.5rem, 5vw, 4.5rem);
}
.site-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    padding: 0;
}
.site-intro > .site-intro-copy {
    align-self: center;
    min-width: 0;
    margin: 0;
    padding: clamp(1.5rem, 5vw, 4.5rem);
}
.site-intro > .site-intro-image {
    align-self: center;
    justify-self: center;
    width: min(100% - 3rem, 20rem);
    margin: clamp(1.5rem, 3vw, 2rem) 0;
}
.site-intro-image img {
    display: block;
    width: 100%;
    height: auto;
}
@media (max-width: 740px) {
    .site-intro { grid-template-columns: minmax(0, 1fr); }
    .site-intro > .site-intro-copy { padding-bottom: 0; }
}
.site-intro h1 { font-size: clamp(2.8rem, 6vw, 5.25rem); margin: 0; }
.site-intro p { max-width: 44rem; margin-bottom: 0; font-size: clamp(1rem, 2vw, 1.25rem); }
.journal-feature { background: #e1e7df; }
.journal-feature h2, .journal-feature h3 { margin-top: 0; }
.journal-feature .wp-block-post-template { margin-block: 1.25rem; }
.topic-card figure { margin: 0 0 1rem; }
.topic-card figure > a, .journal-feature .wp-block-post-featured-image > a { display: block; }
.topic-card img { width: 100%; height: auto; }

.site-intro {
    background: #faf8f3;
    color: #2D2D2B;
    border-bottom: 1px solid #A76A43;
}
.journal-feature .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
    padding: 0;
    list-style: none;
}
.journal-feature .wp-block-post {
    margin: 0;
    padding: 1rem;
    background: #faf8f3;
    border: 1px solid #cdd4c9;
    border-radius: .3rem;
    overflow-wrap: anywhere;
}
.journal-feature .wp-block-post > * { margin-block: .55rem; }
.journal-feature .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    max-height: 12rem;
    object-fit: cover;
}
.journal-feature .wp-block-post-date { color: #69432d; font-size: .85rem; }
.journal-feature .wp-block-post-title { font-size: 1.55rem; }

.site-masthead .brand-logo { margin: 0; }
.brand-logo a {
    display: inline-flex;
    align-items: center;
    gap: clamp(.45rem, 1.4vw, .9rem);
    color: #2F4A3A;
    text-decoration: none;
}
.brand-logo img { display: block; width: clamp(3rem, 6vw, 4.75rem); height: auto; }
.brand-wordmark {
    font-family: var(--wp--preset--font-family--serif, Georgia), serif;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
@media (min-width: 600px) and (max-width: 860px) {
    .site-masthead .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
    .site-masthead .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
}
.topic-card figure img {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 8;
    object-fit: cover;
    border-radius: 8px;
}
.theme-food figure img { object-position: center 58%; }
.theme-family figure img { object-position: left center; }
.theme-travel figure img { object-position: 42% center; }
@media (prefers-reduced-motion: no-preference) {
    .mw-home-reveal-image.is-awaiting-reveal {
        opacity: .16;
        transform: translateY(28px);
    }
    .mw-home-reveal-image.is-revealed {
        animation: mw-home-image-arrive 760ms cubic-bezier(.22, .68, .28, 1) backwards;
    }
    @media (min-width: 701px) {
        .theme-family figure img.is-revealed { animation-delay: 110ms; }
        .theme-travel figure img.is-revealed { animation-delay: 220ms; }
    }
}
@keyframes mw-home-image-arrive {
    from { opacity: .16; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes topic-image-arrive {
    from { opacity: .72; transform: translateY(6px); border-radius: 3px; }
    to { opacity: 1; transform: translateY(0); border-radius: 8px; }
}

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
    align-items: start;
    gap: clamp(1.25rem, 4vw, 2.75rem);
    margin-bottom: 2rem;
}
.about-intro > * { margin-block: 0; }
.about-portrait img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.about-copy .wp-block-quote {
    margin: 1.75rem 0;
    padding: .3rem 0 .3rem 1.15rem;
    border-inline-start: 1px solid #A76A43;
    color: #2F4A3A;
    font: 500 clamp(1.6rem, 3vw, 2.3rem) / 1.15 var(--wp--preset--font-family--serif, Georgia), serif;
}
.about-copy .wp-block-quote p { margin: 0; }
@media (max-width: 620px) {
    .about-intro { grid-template-columns: minmax(0, 1fr); }
    .about-intro > .about-portrait { width: min(100%, 22rem); }
}

/* Beitragstypen */
.mw-article {
    max-width: 1104px;
    margin-block: clamp(2rem, 5vw, 4rem);
}
.mw-article .mw-article-heading { max-width: 720px; margin: 0 auto 1.8rem; text-align: center; }
.mw-article h1.wp-block-post-title {
    margin: .2em 0;
    font-size: clamp(2.7rem, 7vw, 5.3rem);
    letter-spacing: -.035em;
    text-wrap: balance;
}
.mw-post-kicker {
    margin: 0 0 .5rem;
    color: #79482e;
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .085em;
    text-transform: uppercase;
}
.mw-post-lead {
    max-width: 36rem;
    margin: .85rem auto 0;
    font-size: clamp(1rem, 2vw, 1.16rem);
    text-wrap: pretty;
}
.mw-article .article-image { margin-inline: auto; }
.mw-article .article-image img {
    display: block;
    aspect-ratio: 2.65;
    max-height: 28rem;
    border-radius: 8px;
    object-fit: cover;
}
.mw-article-copy {
    max-width: 40rem;
    margin: 2.8rem auto 0;
}
.mw-article-copy :is(.wp-block-image img, .wp-block-video video) { border-radius: 8px; }
.mw-article-familienzeit .article-image { max-width: 57rem; }
.mw-article-familienzeit .article-image img { aspect-ratio: 2; }
.mw-recipe-jump { display: none; margin-top: 1rem; font-size: .9rem; font-weight: 650; text-underline-offset: .24em; }
.mw-article-rezept:has(#rezeptkarte) .mw-recipe-jump { display: inline-block; }
.mw-recipe-card {
    margin: 2.5rem 0 0;
    padding: clamp(1.15rem, 4vw, 2.9rem);
    border: 1px solid #d9cfc0;
    border-radius: 8px;
    background: #faf7f0;
}
.mw-recipe-card h2 { margin: 0 0 .45em; font-size: clamp(2rem, 4vw, 3rem); }
.mw-recipe-instructions { display: grid; grid-template-columns: 1fr 1.65fr; gap: 1.5rem clamp(1.5rem, 4vw, 3rem); }
.mw-recipe-instructions > .wp-block-group { min-width: 0; margin: 0; }
.mw-recipe-instructions :is(ol, ul) { padding-inline-start: 1.3rem; }
.mw-recipe-instructions li::marker { color: #79482e; }
.mw-recipe-instructions .mw-optional-field {
    margin-top: 1.4rem;
    padding-left: .9rem;
    border-left: 2px solid #A76A43;
}
.mw-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem 1.2rem; }
.mw-facts .mw-optional-field { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.mw-facts .mw-optional-field h3 {
    margin: 0 0 .25rem;
    color: #2F4A3A;
    font: 600 .78rem/1.3 var(--wp--preset--font-family--sans, sans-serif);
}
.mw-facts .mw-optional-field p { margin: 0; font-size: .94rem; font-weight: 600; }
.mw-recipe-facts { padding: .35rem 0 1.25rem; margin: 0 0 1.5rem; border-bottom: 1px solid #d9cfc0; }
.mw-travel-facts { padding: 1rem 1.3rem; border-radius: 8px; background: #e9ede4; }
.mw-article-unterwegs .mw-article-head {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}
.mw-article-unterwegs .mw-article-head:not(:has(.article-image img)) { display: block; }
.mw-article-unterwegs :is(.mw-article-heading, .mw-post-lead) { margin-inline: 0; text-align: left; }
.mw-article-unterwegs .article-image { margin-block: 0; width: 100%; }
.mw-article-unterwegs .article-image img { aspect-ratio: 1.38; }
.mw-article-journal { max-width: 40rem; }
.mw-article-journal .mw-article-heading { margin: 0; text-align: left; }
.mw-article-journal .mw-post-lead { margin-inline: 0; }
.mw-article-journal h1 { max-width: 14ch; }
.mw-journal-meta { display: flex; gap: .55rem; flex-wrap: wrap; align-items: baseline; }
.mw-journal-meta :is(.mw-post-kicker, .wp-block-post-date) { margin: 0; font-size: .75rem; color: #79482e; }
.mw-journal-meta .wp-block-post-date::before { content: "·"; margin-right: .55rem; }
.mw-journal-rule { width: 2.7rem; margin: 1.6rem 0 0; border: 0; border-top: 2px solid #A76A43; }
.mw-article-journal .mw-article-copy { margin-top: 1.7rem; }
.mw-prep-gallery { margin-top: 2.65rem; border-top: 1px solid #d9cfc0; padding-top: 1.6rem; }
.mw-prep-gallery h2 { margin: 0 0 .55em; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.mw-article .mw-prep-media {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 58rem;
}
.mw-prep-media > :is(figure, .wp-block-gallery) { min-width: 0; margin: 0; }
.mw-prep-media > .wp-block-gallery { grid-column: 1 / -1; }
.mw-prep-media :is(img, video) {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 8;
    object-fit: cover;
    border-radius: 8px;
}
.mw-prep-media video { background: #2D2D2B; object-fit: contain; }
.mw-prep-media figcaption { margin-top: .45rem; color: #79482e; font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) {
    .mw-prep-media :is(img, video).is-revealed {
        animation: topic-image-arrive 440ms cubic-bezier(.2, .65, .3, 1) backwards;
    }
    @media (min-width: 701px) {
        .mw-prep-media > :nth-child(3n+2) .is-revealed { animation-delay: 65ms; }
        .mw-prep-media > :nth-child(3n) .is-revealed { animation-delay: 130ms; }
    }
}
@media (max-width: 650px) {
    .mw-article .article-image img { aspect-ratio: 1.5; }
    .mw-article-unterwegs .mw-article-head, .mw-recipe-instructions { grid-template-columns: minmax(0, 1fr); }
    .mw-article .mw-prep-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mw-article-copy { margin-top: 2rem; }
}
@media (max-width: 480px) {
    .mw-article .mw-prep-media, .mw-facts { grid-template-columns: minmax(0, 1fr); }
    .mw-prep-media :is(img, video) { aspect-ratio: 4 / 3; }
}
