/* Core wrappers keep the approved static layout. */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > *, .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }
.wp-block-image { margin: 0; }
.wp-block-image img { vertical-align: middle; }
.wp-block-image .wp-element-caption { margin: .45rem 0 0; color: #747a75; font-size: .75rem; line-height: 1.35; }
.pkf-carousel__track > .wp-block-group { flex-shrink: 0; }
body.admin-bar .pkf-header { --pkf-header-top: 32px; top: var(--pkf-header-top); }
@media(max-width:782px){body.admin-bar .pkf-header{--pkf-header-top:46px}}

/* Core image styles use height:auto; editorial frames need their defined ratio. */
.wp-block-image.pkf-magazine__cover img,
.wp-block-image.pkf-story__image img,
.wp-block-image.pkf-trust__image img { width:100%; height:100%; object-fit:cover; }
.wp-block-image.pkf-pagehero-wide__photo img { width:100%; height:100%; object-fit:cover; }

/* Kurze Seiten: Footer bis zur unteren Viewportkante. */
.wp-site-blocks { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); }
.wp-site-blocks > main { flex: 1 0 auto; min-width: 0; }

/* Contact Form 7 übernimmt die Feldgestaltung der statischen Vorlage. */
.entry-content > .wpcf7 { width: calc(100% - 2 * var(--gutter)); max-width: 72rem; margin: var(--space-6) auto; }
.wpcf7 { min-width: 0; }
.wpcf7 form { display: grid; gap: var(--space-4); }
.wpcf7 form p { margin: 0; }
.wpcf7 label, .wpcf7-form-control-wrap { display: block; }
.wpcf7 label { font-weight: 700; }
.wpcf7-acceptance label { font-weight: 400; }
.wpcf7 label > br, .wpcf7-form-control-wrap + br { display: none; }
.wpcf7-form-control-wrap { margin-top: .5rem; }
.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea) {
 box-sizing: border-box; width: 100%; max-width: 100%; min-height: 3.5rem; padding: 1rem;
 border: 1px solid #767676; border-radius: 0; background: var(--pkf-weiss); color: var(--pkf-schwarz); font: inherit;
}
.wpcf7 textarea { height: 10rem; min-height: 10rem; resize: vertical; }
.wpcf7 input[type="submit"] { border: 0; border-radius: 0; padding: 1rem 2rem; min-height: 3.5rem; background: var(--pkf-signalgruen); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.pkf-on-green .wpcf7 input[type="submit"] { background: white; color: var(--pkf-signalgruen); }
.wpcf7 input[type="submit"]:hover { background: var(--pkf-impulsgruen); color: black; }
.wpcf7 :is(input,select,textarea):focus-visible { outline: 3px solid var(--pkf-signalgruen); outline-offset: 3px; }
.pkf-on-green .wpcf7 :is(input,select,textarea):focus-visible { outline-color: var(--pkf-impulsgruen); }
.wpcf7 input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance label { display: flex; align-items: start; gap: .75rem; }
.wpcf7-acceptance input { flex: none; margin-top: .35em; width: 1.2rem; height: 1.2rem; }
.wpcf7 .wpcf7-response-output { margin: 0; padding: 1rem; }
.wpcf7 .wpcf7-not-valid-tip { color: #a51c30; }
.pkf-on-green .wpcf7-not-valid-tip { color: white; font-weight: 700; }
.wpcf7 .pkf-form-row { display: grid; gap: var(--space-4); }
/* CF7 kann mehrere Labels in einen automatischen Absatz einschließen. */
.wpcf7 .pkf-form-row > p { display: contents; }
@media (min-width: 760px) { .wpcf7 .pkf-form-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 759px) { .wpcf7 form > div[style*="display: flex"] { display: grid !important; grid-template-columns: 1fr; } }

/* Angemeldete Redaktion: Adminleiste darf den Hero-Scrollhinweis nicht verdecken. */
body.admin-bar .pkf-hero { min-height: calc(100svh - 32px); }
@media(max-width:782px) { body.admin-bar .pkf-hero { min-height: calc(100svh - 46px); } }

/* Redaktionell ergänzte Vorstandsbiografie. */
.pkf-block-bio summary { cursor: pointer; color: var(--action); font-weight: 700; text-decoration: underline; margin-top: 1rem; }
.pkf-block-bio summary::marker { content: '+  '; }
.pkf-block-bio[open] summary::marker { content: '−  '; }
