/* BZ-Projekte-Plugin: große Bilder, lesbarer Titel, kompakte Karten */
.bzp-featured{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;align-items:stretch!important;margin:32px 0 65px!important}
.bzp-featured .bzp-card{display:flex!important;flex-direction:column!important;min-width:0!important;height:100%!important;box-sizing:border-box!important;text-decoration:none!important;overflow:hidden!important}
.bzp-featured .bzp-cover{display:block!important;width:100%!important;aspect-ratio:4/3!important;height:auto!important;margin:0 0 16px!important;overflow:hidden!important}
.bzp-featured .bzp-cover img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;max-width:none!important}
.bzp-featured .bzp-card h3{font-size:clamp(22px,2.1vw,31px)!important;line-height:1.1!important;letter-spacing:-.025em!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:manual!important;margin:7px 0 14px!important}
.bzp-featured .bzp-card small{font-size:13px!important;line-height:1.35!important}
/* Startseiten-Query-Loop mit Projektbeiträgen (wie auf dem Screenshot) */
body.home .wp-block-post-template:has(> .type-bz_project),
body.home .wp-block-post-template:has(> .bz_project),
body.home .wp-block-post-template:has(> .bz-project){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;align-items:stretch!important}
body.home .wp-block-post-template:has(> .type-bz_project)>li,
body.home .wp-block-post-template:has(> .bz_project)>li,
body.home .wp-block-post-template:has(> .bz-project)>li{min-width:0!important;width:100%!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;margin:0!important;padding:20px!important}
body.home .wp-block-post-template:has(> .type-bz_project) .wp-block-post-featured-image,
body.home .wp-block-post-template:has(> .bz_project) .wp-block-post-featured-image,
body.home .wp-block-post-template:has(> .bz-project) .wp-block-post-featured-image{width:100%!important;margin:0 0 20px!important}
body.home .wp-block-post-template:has(> .type-bz_project) .wp-block-post-featured-image img,
body.home .wp-block-post-template:has(> .bz_project) .wp-block-post-featured-image img,
body.home .wp-block-post-template:has(> .bz-project) .wp-block-post-featured-image img{width:100%!important;max-width:none!important;aspect-ratio:4/3!important;object-fit:cover!important;height:auto!important;display:block!important}
body.home .wp-block-post-template:has(> .type-bz_project) .wp-block-post-title,
body.home .wp-block-post-template:has(> .bz_project) .wp-block-post-title,
body.home .wp-block-post-template:has(> .bz-project) .wp-block-post-title{font-size:clamp(24px,2.3vw,34px)!important;line-height:1.08!important;letter-spacing:-.025em!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:manual!important;margin:0 0 16px!important}
body.home .wp-block-post-template:has(> .type-bz_project) .wp-block-post-title a,
body.home .wp-block-post-template:has(> .bz_project) .wp-block-post-title a,
body.home .wp-block-post-template:has(> .bz-project) .wp-block-post-title a{overflow-wrap:normal!important;word-break:normal!important;hyphens:manual!important}
body.home .wp-block-post-template:has(> .type-bz_project) .wp-block-post-excerpt__excerpt,
body.home .wp-block-post-template:has(> .bz_project) .wp-block-post-excerpt__excerpt,
body.home .wp-block-post-template:has(> .bz-project) .wp-block-post-excerpt__excerpt{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important;line-height:1.42!important;font-size:16px!important;margin:0 0 20px!important}
body.home .wp-block-post-template:has(> .type-bz_project) .wp-block-post-excerpt__more-text,
body.home .wp-block-post-template:has(> .bz_project) .wp-block-post-excerpt__more-text,
body.home .wp-block-post-template:has(> .bz-project) .wp-block-post-excerpt__more-text{margin-top:auto!important;padding-top:14px!important}
@media(max-width:950px){.bzp-featured,body.home .wp-block-post-template:has(> .type-bz_project),body.home .wp-block-post-template:has(> .bz_project),body.home .wp-block-post-template:has(> .bz-project){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.bzp-featured,body.home .wp-block-post-template:has(> .type-bz_project),body.home .wp-block-post-template:has(> .bz_project),body.home .wp-block-post-template:has(> .bz-project){grid-template-columns:1fr!important}}

/* v1.2: avoid the title overflow visible on the actual homepage screenshot.
   Covers query-loop cards even when their post-type class is omitted by the theme. */
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/projekte/"]),
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/bz_project/"]),
body.home .wp-block-post-template > :is(.type-bz_project,.bz_project){
 min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
 overflow:hidden!important;padding:15px!important;
 display:flex!important;flex-direction:column!important;
}
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/projekte/"]) .wp-block-post-title,
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/bz_project/"]) .wp-block-post-title,
body.home .wp-block-post-template > :is(.type-bz_project,.bz_project) .wp-block-post-title{
 font-size:clamp(20px,2vw,27px)!important;line-height:1.12!important;
 letter-spacing:-.035em!important;font-weight:800!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 overflow-wrap:anywhere!important;word-break:normal!important;hyphens:auto!important;
 margin:0 0 14px!important;
}
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/projekte/"]) .wp-block-post-title a,
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/bz_project/"]) .wp-block-post-title a,
body.home .wp-block-post-template > :is(.type-bz_project,.bz_project) .wp-block-post-title a{
 font-size:inherit!important;line-height:inherit!important;
 overflow-wrap:anywhere!important;word-break:normal!important;hyphens:auto!important;
 max-width:100%!important;display:block!important;
}
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/projekte/"]) .wp-block-post-featured-image,
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/bz_project/"]) .wp-block-post-featured-image,
body.home .wp-block-post-template > :is(.type-bz_project,.bz_project) .wp-block-post-featured-image{
 width:100%!important;max-width:none!important;margin:0 0 18px!important;
}
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/projekte/"]) .wp-block-post-featured-image a,
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/bz_project/"]) .wp-block-post-featured-image a,
body.home .wp-block-post-template > :is(.type-bz_project,.bz_project) .wp-block-post-featured-image a{
 display:block!important;width:100%!important;
}
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/projekte/"]) .wp-block-post-featured-image img,
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/bz_project/"]) .wp-block-post-featured-image img,
body.home .wp-block-post-template > :is(.type-bz_project,.bz_project) .wp-block-post-featured-image img{
 display:block!important;width:100%!important;max-width:100%!important;
 height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important;
}
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/projekte/"]) .wp-block-post-excerpt,
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/bz_project/"]) .wp-block-post-excerpt,
body.home .wp-block-post-template > :is(.type-bz_project,.bz_project) .wp-block-post-excerpt{
 font-size:15px!important;line-height:1.4!important;max-width:100%!important;min-width:0!important;
}
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/projekte/"]) .wp-block-post-excerpt__excerpt,
body.home :is(li.wp-block-post,article.wp-block-post):has(.wp-block-post-title a[href*="/bz_project/"]) .wp-block-post-excerpt__excerpt,
body.home .wp-block-post-template > :is(.type-bz_project,.bz_project) .wp-block-post-excerpt__excerpt{
 font-size:15px!important;line-height:1.4!important;
 display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:3!important;overflow:hidden!important;
}
/* Also constrain the featured cards generated by the BZ projects plugin. */
.bzp-featured .bzp-card h3,.bzp-featured .bzp-card h3 a{
 font-size:clamp(20px,2vw,27px)!important;max-width:100%!important;
 overflow-wrap:anywhere!important;hyphens:auto!important;word-break:normal!important;
}
.bzp-featured .bzp-card{padding:14px!important}
@media(max-width:620px){body.home .wp-block-post-template>li.wp-block-post:has(.wp-block-post-title a[href*="/projekte/"]) .wp-block-post-title{font-size:24px!important}}
