/*
Theme Name: Leckerbacken Backstube
Author: Lecker-backen
Description: Individuelles, helles Backstuben-Design für Lecker-backen. Erste Version für die Testwebsite.
Version: 1.2.19
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leckerbacken-backstube
*/
:root{--page-bg:#f9fbfd;--card:#fff;--navy:#103c60;--focus-blue:#2673ad;--line:#afc9e0;--soft-blue:#e6f1ff;--accent:#cedff1;--accent-hover:#afc9e0;--font:'Nunito Sans','Nunito','Avenir Next',Avenir,ui-rounded,system-ui,-apple-system,'Segoe UI',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--page-bg);color:var(--navy);font:400 18px/1.7 var(--font)}a{color:inherit;text-underline-offset:4px}a:hover{color:#245881}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--focus-blue);outline-offset:4px}img{max-width:100%;height:auto}h1,h2,h3{line-height:1.22;font-weight:600;letter-spacing:-.025em;margin:0 0 .7em}h1{font-size:clamp(30px,3.5vw,46px)}h2{font-size:clamp(25px,2.8vw,34px)}h3{font-size:23px;font-weight:500}p{margin:0 0 1.1em}.wrap{width:min(1140px,calc(100% - 64px));margin-inline:auto}.site-header{display:flex;align-items:center;gap:24px;padding:22px 0;border-bottom:1px solid var(--line)}.brand{margin-right:auto}.wordmark{font-size:30px;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap}.wordmark span{display:block;font-size:15px;font-weight:400;letter-spacing:.015em;margin-top:4px}.custom-logo{display:block;width:auto;max-width:240px;max-height:90px;object-fit:contain}.menu{list-style:none;display:flex;flex-wrap:wrap;gap:12px 24px;padding:0;margin:0}.menu a{text-decoration:none}.menu-item{position:relative}.sub-menu{list-style:none;padding:8px 12px;background:var(--card);border:1px solid var(--line)}.search-link{font-size:34px;text-decoration:none;line-height:1}.hero{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center;padding-block:54px}.eyebrow{font-size:13px;font-weight:500;letter-spacing:.07em;text-transform:uppercase;color:#245881}.hero h1{max-width:600px}.hero-intro{font-size:22px;line-height:1.6;max-width:580px}.button,button,input[type=submit]{display:inline-block;border:1px solid var(--navy);border-radius:8px;background:var(--navy);color:white;padding:12px 22px;font:500 17px/1.4 var(--font);text-decoration:none;cursor:pointer}.button:hover,button:hover{color:white;background:#24466a}.secondary{background:transparent;color:var(--navy)}.hero-photo{background:white;min-height:235px;border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;align-items:center;justify-content:center}.hero-photo img{width:auto;max-width:min(100%,300px);max-height:260px;object-fit:contain}.discovery{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0}.recipe-search{display:flex;gap:8px;margin:0 0 20px}.recipe-search input{flex:1;min-width:0;background:white;border:1px solid var(--line);border-radius:8px;padding:13px 18px;color:var(--navy);font:400 18px var(--font)}.category-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 0}.category-nav a{padding:0 24px;border-right:1px solid var(--line);text-decoration:none}.category-nav a:last-child{border-right:0}.recipes{padding-block:38px}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.recipe-card{min-width:0;overflow:hidden;background:var(--card);border:1px solid var(--line);border-radius:12px;margin:0}.card-photo{display:flex;background:white;height:235px;align-items:center;justify-content:center;padding:14px}.card-photo img{display:block;width:auto;max-width:min(100%,300px);max-height:207px;object-fit:contain}.card-body{padding:16px 20px 20px}.card-body h3{margin:5px 0 12px;overflow-wrap:anywhere}.card-body h3 a{text-decoration:none}.recipe-link{font-size:16px}.all-recipes{text-align:center;margin:30px 0 0}.community{background:var(--soft-blue);padding:32px 0;margin-top:14px}.community-inner{display:flex;align-items:center;gap:32px;justify-content:space-between}.community h2{font-size:29px}.community p{margin:0}.community-links{display:flex;flex-direction:column;gap:10px;white-space:nowrap}.site-footer{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;padding:28px 0;border-top:1px solid var(--line);font-size:15px;margin-top:28px}.entry{max-width:820px;margin:48px auto;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:clamp(22px,4vw,48px)}.entry-heading{margin-bottom:28px}.entry-content{overflow-wrap:anywhere}.entry-content:after{content:'';display:table;clear:both}.entry-content img{width:auto!important;height:auto!important;max-width:min(100%,420px)!important;object-fit:contain;background:white}.entry-content figure{max-width:100%;margin-inline:0}.entry-content .wp-block-image img{max-width:min(100%,420px)!important}.entry-content h2{font-size:27px;margin-top:1.3em}.entry-content h3{font-size:23px;margin-top:1.2em}.entry-content a{overflow-wrap:anywhere}.entry-content table{width:100%;border-collapse:collapse}.entry-content td,.entry-content th{border:1px solid var(--line);padding:8px}.entry-actions{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin:30px 0}.entry-footer{font-size:14px;border-top:1px solid var(--line);padding-top:20px}.archive-content{padding-block:42px}.archive-content>.recipe-search{margin:25px 0}.pagination,.post-navigation,.comments-area{max-width:820px;margin:32px auto}.nav-links{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between}.page-numbers{padding:5px 10px}.comments-area{padding:24px}.comment-list{padding-left:24px}.comment-body{margin-bottom:24px}.comment-form input:not([type=checkbox]),.comment-form textarea{max-width:100%;border:1px solid var(--line);border-radius:6px;padding:10px;font:inherit}.comment-form label{display:block}.no-photo{color:#536978;font-size:18px}.screen-reader-text,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;top:10px;left:10px;background:white;z-index:99999;padding:12px}.wprm-recipe-container{max-width:100%}
@media(max-width:900px){.site-header{flex-wrap:wrap}.site-header nav{order:3;width:100%}.hero{gap:24px}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.community-inner{align-items:flex-start;flex-direction:column}.hero-intro{font-size:19px}}
@media(max-width:580px){body{font-size:17px}.wrap{width:calc(100% - 32px)}.site-header{padding:18px 0}.menu{gap:8px 18px;font-size:16px}.wordmark{font-size:27px}.hero{grid-template-columns:1fr;padding-block:30px}.hero-photo{min-height:220px}.hero-photo img{max-height:220px}.recipe-grid{grid-template-columns:1fr;gap:20px}.card-photo{height:235px}.category-nav{justify-content:flex-start}.category-nav a{padding:0 12px}.recipe-search{flex-wrap:wrap}.recipe-search input{width:100%}.entry{margin:26px auto;padding:22px 18px}.entry-content img.alignleft,.entry-content img.alignright{float:none;margin:12px auto;display:block}.entry-content .alignleft,.entry-content .alignright{float:none;max-width:100%}.site-footer .menu{font-size:14px}.community h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{body{background:white;color:black;font:12pt/1.5 sans-serif}.site-header,.site-footer,.entry-actions,.entry-footer,.post-navigation,.comments-area,#wpadminbar,.skip-link{display:none!important}.wrap,.entry{width:100%;max-width:none;margin:0;padding:0;border:0;background:white}.entry-content img{max-width:220px!important}a{color:black;text-decoration:none}}

.recipe-categories{margin:24px 0;padding:18px;border:1px solid var(--line);border-radius:10px}.recipe-categories summary{cursor:pointer;font-weight:500}.category-chips{display:flex;flex-wrap:wrap;gap:10px;padding-top:18px}.category-chips a,.alphabet a{display:inline-block;border:1px solid var(--line);border-radius:7px;padding:6px 12px;text-decoration:none;background:var(--page-bg)}.alphabet{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0}.alphabet a:hover,.category-chips a:hover{background:var(--soft-blue)}.alphabet-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 36px}.letter-group{min-width:0;scroll-margin-top:60px}.letter-group h2{border-bottom:1px solid var(--line);padding-bottom:10px}.letter-group ul{list-style:none;padding:0;margin:0}.letter-group li{padding:6px 0;break-inside:avoid}.letter-group a{overflow-wrap:anywhere}.card-body{display:flex;flex-direction:column;flex:1}.recipe-card{display:flex;flex-direction:column}.recipe-link{margin-top:auto}.card-photo{flex-shrink:0}@media(max-width:580px){.alphabet-groups{grid-template-columns:1fr}.alphabet a{padding:5px 10px}}

/* Expandable categories work with mouse, touch and keyboard. */
.category-groups{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;text-align:left;margin:24px 0}.category-group{min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--page-bg);align-self:start}.category-group summary{padding:12px;cursor:pointer;font-size:17px;font-weight:500;overflow-wrap:anywhere}.category-group ul{list-style:none;margin:0;padding:0 12px 12px;font-size:16px;line-height:1.5}.category-group li{margin:0}.category-group li a{display:block;padding:7px 0;text-decoration:none;border-top:1px solid var(--line)}.category-group li a:hover,.category-group a[aria-current="page"]{text-decoration:underline}.category-tips{display:block;padding:12px;border:1px solid var(--line);border-radius:9px;font-size:17px;align-self:start;text-align:center;text-decoration:none}.recipe-categories .category-groups{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:0}.archive-content>.category-groups{margin-bottom:28px}.tips-intro{margin:30px 0;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--page-bg)}.letter-top{display:inline-block;font-size:15px;margin-top:14px}.back-to-top{position:fixed;right:22px;bottom:22px;z-index:50;background:var(--navy,#103c60);color:#fff!important;border:1px solid #fff;border-radius:8px;padding:11px 17px;font-size:16px;box-shadow:0 3px 12px #0002;text-decoration:none}.back-to-top:hover{background:#1b426c}.alphabet{scroll-margin-top:56px}.empty-category{grid-column:1/-1}#inhalt{scroll-margin-top:50px}@media(max-width:1000px){.category-groups{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:580px){.category-groups,.recipe-categories .category-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.category-group summary,.category-tips{font-size:16px}.back-to-top{bottom:14px;right:14px;font-size:14px;padding:9px 12px}}@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

.lb-rating-summary{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;padding:16px 0;margin:5px 0 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:16px}.lb-rating-summary a{font-size:15px}.lb-summary-stars,.lb-comment-rating{color:#805300;font-size:24px;letter-spacing:2px}.lb-rating-field{border:1px solid var(--line);padding:16px;border-radius:10px;margin:18px 0 10px}.lb-rating-field legend{font-size:18px;font-weight:500;padding:0 7px}.lb-rating-options{display:flex;gap:3px;width:max-content;max-width:100%}.lb-rating-choice{display:block!important;position:relative;cursor:pointer;margin:0!important;padding:0 3px;border-radius:4px;line-height:1.2}.lb-rating-choice input{position:absolute;width:1px!important;height:1px!important;opacity:0;margin:0!important;padding:0!important}.lb-rating-choice span{font-size:39px;color:#777;display:block}.lb-rating-choice:has(input:checked) span,.lb-rating-choice:has(~ .lb-rating-choice input:checked) span{color:#805300}.lb-rating-choice:focus-within{outline:2px solid var(--navy,#103c60);outline-offset:2px}.lb-rating-clear{font-size:15px;display:block;margin-top:12px}.lb-rating-clear input{width:auto!important;margin-right:6px}.lb-rating-privacy{font-size:15px;line-height:1.6;margin:10px 0 20px}.lb-comment-rating{margin:8px 0;font-size:22px}@media(max-width:580px){.lb-rating-summary{font-size:15px}.lb-rating-choice span{font-size:36px}}

/* Yellow rating stars and persistent recipe navigation. */
.lb-summary-stars,.lb-comment-rating{color:#ffcc21;-webkit-text-stroke:.7px #806000}.lb-rating-choice:has(input:checked) span,.lb-rating-choice:has(~ .lb-rating-choice input:checked) span,.lb-rating-choice:hover span{color:#ffcc21;-webkit-text-stroke:.7px #806000}.single-recipe-navigation{position:sticky;top:0;z-index:90;background:var(--soft-blue,#e6f1ff);padding:10px 0 12px;margin:0 0 26px;border-bottom:1px solid var(--line);box-shadow:0 5px 8px #00000009}.admin-bar .single-recipe-navigation{top:32px}.single-nav-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin-bottom:8px;font-size:15px}.single-nav-shortcuts strong{font-weight:500}.single-recipe-navigation .category-groups{margin:0;gap:9px}.single-recipe-navigation .category-group{position:relative;background:var(--soft-blue,#e6f1ff)}.single-recipe-navigation .category-group summary,.single-recipe-navigation .category-tips{font-size:16px;padding:10px}.single-recipe-navigation .category-group ul{position:absolute;top:calc(100% - 1px);left:-1px;min-width:225px;width:max-content;max-width:310px;max-height:50vh;overflow-y:auto;overscroll-behavior:contain;padding:6px 14px 12px;background:var(--page-bg,#f9fbfd);border:1px solid var(--line);border-radius:0 8px 8px 8px;box-shadow:0 8px 18px #0002;z-index:95}.single-recipe-navigation .category-group:nth-child(5) ul{left:auto;right:-1px}@media(max-width:1000px){.single-recipe-navigation .category-groups{grid-template-columns:repeat(3,minmax(0,1fr))}.single-recipe-navigation .category-group:nth-child(3) ul{left:auto;right:-1px}.single-recipe-navigation .category-group:nth-child(5) ul{left:-1px;right:auto}}@media(max-width:782px){.admin-bar .single-recipe-navigation{top:46px}}@media(max-width:600px){.admin-bar .single-recipe-navigation{top:0}.single-recipe-navigation .category-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.single-recipe-navigation{padding:8px 0;margin-bottom:18px}.single-nav-shortcuts{font-size:13px;gap:6px 14px}.single-recipe-navigation .category-group summary,.single-recipe-navigation .category-tips{font-size:15px;padding:8px}.single-recipe-navigation .category-group ul{width:235px;min-width:0;max-width:calc(100vw - 42px);max-height:45vh}.single-recipe-navigation .category-group:nth-child(odd) ul{left:-1px;right:auto}.single-recipe-navigation .category-group:nth-child(even) ul{left:auto;right:-1px}}@media print{.single-recipe-navigation{display:none!important}}

.single #respond,.single #rezeptbewertung,.single .comment[id]{scroll-margin-top:155px}@media(max-width:1000px){.single #respond,.single #rezeptbewertung,.single .comment[id]{scroll-margin-top:210px}}@media(max-width:600px){.single #respond,.single #rezeptbewertung,.single .comment[id]{scroll-margin-top:215px}}

.custom-logo.lb-header-logo {
    max-width: min(260px, 70vw);
    height: auto;
}

/* Blue accents on browsing controls and recipe cards. */
.discovery {
    background: var(--soft-blue);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding-inline: clamp(12px, 3vw, 28px);
}

.category-group,
.category-tips,
.alphabet a,
.category-chips a {
    background: var(--soft-blue);
}

.category-group[open] > summary,
.category-tips:hover,
.alphabet a:hover,
.category-chips a:hover {
    background: var(--accent);
    border-radius: 8px;
}

.card-body {
    background: #f4f8fc;
}

.hero .button,
.recipe-search button,
.recipe-search input[type="submit"] {
    background: var(--accent);
    border-color: #557c9f;
    color: var(--navy);
}

.hero .button:hover,
.recipe-search button:hover,
.recipe-search input[type="submit"]:hover {
    background: var(--accent-hover);
    color: var(--navy);
}

/* Frame the whole site without affecting the sticky recipe menu. */
@media screen {
    html {
        background: #cedff1;
    }

    body {
        max-width: 1280px;
        min-height: calc(100vh - 32px);
        margin: clamp(8px, 2vw, 16px) auto;
        width: calc(100% - clamp(16px, 5vw, 72px));
        border: 2px solid #7998b3;
        border-radius: 16px;
        box-shadow: 0 4px 20px #103c6022;
    }
}

@media screen and (max-width: 580px) {
    body {
        border-width: 1px;
        border-radius: 10px;
    }
}

/* Leave room for the longest label in the homepage category row. */
@media (min-width: 1101px) {
    .discovery .category-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(11.5rem, 1fr) repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 581px) and (max-width: 1100px) {
    .discovery .category-groups {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions .secondary {
    background: transparent;
}

.community-home {
    margin: 0 auto 28px;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 14px;
    scroll-margin-top: 40px;
}

.community-home .community-links {
    flex-shrink: 0;
    white-space: normal;
    text-align: center;
}

.daily-recipe {
    background: #fff0e4;
    border: 1px solid #d8ad87;
    border-radius: 16px;
    padding: clamp(16px, 3vw, 28px);
}

.daily-recipe h2 {
    margin: 16px 0 0;
}

.seasonal-recipes {
    margin-block: 28px;
    padding: clamp(16px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #eaf3fb;
}

.season-link {
    margin: 20px 0 0;
}

@media (min-width: 1000px) {
    .popular-recipes .recipe-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Unequal panels give the welcome, community and companion blog their own space. */
.welcome-panel {
    min-width: 0;
    padding: clamp(20px, 3vw, 34px);
    background: #f0f6fc;
    border: 1px solid var(--line);
    border-radius: 20px 20px 48px 20px;
}

.team-signature {
    font-weight: 600;
}

.season-intro {
    max-width: 760px;
    margin-bottom: 28px;
}

.season-intro h3 {
    color: #245881;
}

.home-stories {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
    margin-block: 28px;
}

.home-stories .community-home {
    width: 100%;
    margin: 0;
    border-radius: 20px;
}

.home-stories .community-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.home-stories .community-links {
    text-align: left;
}

.germanbee-panel {
    min-width: 0;
    margin-top: 0;
    padding: clamp(20px, 3vw, 32px);
    background: #fff7e4;
    border: 1px solid #d9bf7d;
    border-radius: 20px 20px 20px 40px;
}

.germanbee-panel h2 {
    font-size: clamp(24px, 2.5vw, 30px);
}

.germanbee-panel .button {
    white-space: normal;
}

@media (max-width: 800px) {
    .home-stories {
        grid-template-columns: 1fr;
    }

    .germanbee-panel {
        margin-top: 0;
    }
}


.home-stories .community-home,
.germanbee-panel {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.5vw, 28px);
    border-radius: 18px;
}

.home-stories p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.65;
}

.home-stories h2 {
    font-size: clamp(24px, 2.5vw, 29px);
}

.home-stories .community-inner {
    flex: 1;
    gap: 18px;
}

.home-stories .community-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.germanbee-panel > .button {
    align-self: flex-start;
    margin-top: auto;
}

.christmas-recipes {
    position: relative;
    background: #edf4ee url('assets/christmas-branches.svg') no-repeat right 18px top 18px;
    background-size: 170px 135px;
    border: 1px solid #8ca68d;
    border-top: 5px solid #28533e;
    border-radius: 20px;
    box-shadow: 0 5px 18px #28533e12;
}

.christmas-recipes > .eyebrow {
    color: #71551b;
    padding-right: 170px;
}

.christmas-recipes > h2 {
    color: #244b36;
    padding-right: 170px;
}

.christmas-recipes .season-intro h3 {
    color: #87502e;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: clamp(25px, 3vw, 32px);
}

.christmas-recipes .season-intro {
    padding-right: 100px;
}

.christmas-recipes .recipe-card {
    border-color: #b4c5b4;
}

.christmas-recipes .card-body {
    background: #fffaf0;
}

.christmas-recipes .season-link a {
    display: inline-block;
    padding: 10px 18px;
    background: #28533e;
    border: 1px solid #28533e;
    border-radius: 8px;
    color: white;
    text-decoration: none;
}

.christmas-recipes .season-link a:hover {
    background: #1c3c2c;
}

@media (max-width: 580px) {
    .christmas-recipes {
        background-size: 95px 76px;
    }

    .christmas-recipes > h2,
    .christmas-recipes > .eyebrow,
    .christmas-recipes .season-intro {
        padding-right: 0;
    }

    .christmas-recipes > .eyebrow {
        padding-top: 64px;
    }

    .home-stories .community-links {
        flex-direction: column;
        align-items: flex-start;
    }
}


.photo-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
}

.photo-recipe-grid .recipe-card {
    width: 100%;
    max-width: 360px;
}

.photo-recipe-grid .card-photo {
    height: 245px;
    padding: 12px;
}

.photo-recipe-grid .card-photo img {
    max-width: min(100%, 260px);
    max-height: 220px;
}

.photo-recipe-grid .card-body h3 {
    font-size: 20px;
}

.photo-letter {
    margin-block: 36px;
}


.daily-recipe > .eyebrow {
    color: #805027;
}

.daily-recipe .hero-photo {
    border-color: #d8ad87;
}

.collection-intro {
    max-width: 780px;
    margin-bottom: 28px;
}
