/* Shared layout boundary: contain plugin floats before the site footer. */
.app-shell > main { display: flow-root; min-width: 0; }
.app-shell > .footer { clear: both; width: 100%; min-width: 0; }
.app-shell > .footer > div { flex: 1 1 280px; }
.app-shell > .footer nav { flex: 0 1 560px; }
.app-shell > .footer span { font-size: .8125rem; line-height: 1.6; }
.app-shell > .footer { padding: 28px 24px; }
.app-shell > .footer nav { display: grid; grid-template-columns: repeat(4,max-content); align-content: start; gap: 14px 22px; }
.site-header .masthead { width: calc(100% - 64px); max-width: 1368px; padding-inline: 0; }
.masthead .global-search { flex-basis: 220px; }
.masthead .global-search input { padding-left: 12px; }

/* Forum: the toolbar and rows share a real inset on every edge. */
.discussion-list { border: 1px solid var(--bd-line); border-radius: 12px; overflow: clip; }
.discussion-toolbar { padding: 18px 24px; gap: 20px; }
.discussion-toolbar .tab { text-decoration: none; padding: 10px 0; }
.discussion-toolbar .tab:hover { color: var(--bd-blue); }
.discussion-row { padding: 24px; }
.community-sidebar .guide-link { display: inline-block; border: 0; padding: 0; min-height: 0; margin-top: 10px; text-decoration: underline; text-underline-offset: 4px; }
.community-sidebar .side-block { padding-bottom: 22px; margin-bottom: 22px; }

/* Reading width inside the same stable page shell. */
body.directory.activity .community-content,
body.directory.groups .community-content { max-width: none; margin-inline: 0; }
body.directory .page-heading { margin-bottom: 24px; }
body.directory .page-heading h1 { font-size: 2rem; line-height: 1.25; }
body.directory .page-heading p { font-size: 1rem; margin-top: 8px; }

/* Keep BuddyPress behaviour, replace percentage floats and fragmented tools. */
#buddypress.buddypress-wrap .subnav-filters:not(.bp-messages-filters) {
 display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap;
 gap: 12px 20px; margin: 0 0 22px; padding: 0; min-width: 0;
}
#buddypress.buddypress-wrap .subnav-filters::before,
#buddypress.buddypress-wrap .subnav-filters::after { display: none; }
#buddypress.buddypress-wrap .subnav-filters > .subnav-search { display: flex; align-items: center; gap: 12px; flex: 1 1 330px; float: none; margin: 0; min-width: 0; }
#buddypress.buddypress-wrap .subnav-filters .dir-search { float: none; width: 100%; max-width: none; margin: 0; }
#buddypress.buddypress-wrap .subnav-filters .dir-search form { width: 100%; max-width: none; border-radius: 8px; }
#buddypress.buddypress-wrap .subnav-filters .dir-search input[type=search] { font-size: .9375rem; padding: 10px 14px; }
#buddypress.buddypress-wrap .subnav-filters .dir-search button[type=submit] { background: #fff; color: var(--bd-ink); border-left: 1px solid var(--bd-line); min-width: 80px; font-size: .875rem; }
#buddypress.buddypress-wrap .subnav-filters .dir-search button[type=submit]:hover { background: var(--bd-bg); color: var(--bd-blue); }
#buddypress.buddypress-wrap .subnav-filters .component-filters { float: none; width: auto; margin: 0; flex: 0 1 250px; }
#buddypress.buddypress-wrap .subnav-filters .select-wrap { border: 0; background: transparent; padding: 0; margin: 0; }
#buddypress.buddypress-wrap .subnav-filters .select-wrap span.select-arrow { display: none; }
#buddypress.buddypress-wrap .subnav-filters select { appearance: auto; width: 100%; height: 46px; min-height: 44px; padding: 8px 30px 8px 12px; border: 1px solid var(--bd-line); background: #fff; border-radius: 8px; color: var(--bd-ink); font-size: .9375rem; }
#buddypress.buddypress-wrap .subnav-filters #activity-rss-feed { display: none; }
#buddypress.buddypress-wrap .bp-navs.dir-navs { border: 0; margin: 0 0 18px; background: transparent; }
#buddypress.buddypress-wrap .bp-navs.dir-navs ul { display: flex; flex-wrap: wrap; gap: 20px; padding: 0; margin: 0; border-bottom: 1px solid var(--bd-line); }
#buddypress.buddypress-wrap .bp-navs.dir-navs li { float: none; background: transparent; border: 0; }
#buddypress.buddypress-wrap .bp-navs.dir-navs li a { padding: 10px 0; background: transparent; color: var(--bd-muted); font-size: .9375rem; }
#buddypress.buddypress-wrap .bp-navs.dir-navs li.selected a { border-bottom: 2px solid var(--bd-blue); color: var(--bd-blue); font-weight: 600; }
body.directory.activity:not(.logged-in) #buddypress .activity-nav { display: none; }
#buddypress.buddypress-wrap .activity-list { border: 1px solid var(--bd-line); border-radius: 12px; background: #fff; overflow: clip; padding: 0; margin: 0; }
#buddypress.buddypress-wrap .activity-list .activity-item {
 display: grid; grid-template-columns: 44px minmax(0,1fr); column-gap: 16px;
 width: 100%; margin: 0; padding: 26px; border: 0; border-bottom: 1px solid var(--bd-line);
 border-radius: 0; background: #fff; box-shadow: none;
}
#buddypress.buddypress-wrap .activity-list .activity-item:last-child { border-bottom: 0; }
#buddypress.buddypress-wrap .activity-list .activity-item::before,
#buddypress.buddypress-wrap .activity-list .activity-item::after { display: none; }
#buddypress.buddypress-wrap .activity-list .activity-avatar { float: none; width: 44px; margin: 0; grid-column: 1; grid-row: 1; }
#buddypress.buddypress-wrap .activity-list .activity-avatar img { display: block; width: 44px; height: 44px; border-radius: 50%; }
#buddypress.buddypress-wrap .activity-list .activity-content { float: none; width: auto; min-width: 0; margin: 0!important; grid-column: 2; grid-row: 1; }
#buddypress.buddypress-wrap .activity-list .activity-header { margin: 0; padding: 0; width: auto; color: var(--bd-muted); }
#buddypress.buddypress-wrap .activity-list .activity-header p { margin: 0; padding: 0; font-size: .875rem; line-height: 1.6; }
#buddypress.buddypress-wrap .activity-list .bd-activity-title { margin: 8px 0 0; font-size: 1.1875rem; line-height: 1.4; font-weight: 650; letter-spacing: -.015em; }
#buddypress.buddypress-wrap .activity-list .bd-activity-title a { color: var(--bd-ink); text-decoration: none; }
#buddypress.buddypress-wrap .activity-list .bd-activity-title a:hover { color: var(--bd-blue); text-decoration: underline; text-underline-offset: 3px; }
#buddypress.buddypress-wrap .bd-activity-byline { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; color: var(--bd-muted); font-size: .8125rem; line-height: 1.6; }
#buddypress.buddypress-wrap .bd-activity-byline a { color: inherit; text-decoration: none; }
#buddypress.buddypress-wrap .bd-activity-byline a:hover { text-decoration: underline; }
#buddypress.buddypress-wrap .activity-list .activity-content .activity-inner { margin: 12px 0 0; padding: 0; max-width: 75ch; font-size: 1rem; line-height: 1.65; }
#buddypress.buddypress-wrap .activity-inner p { margin: 0 0 10px; font-size: 1rem; line-height: 1.65; }
#buddypress.buddypress-wrap .activity-inner p:last-child { margin-bottom: 0; }
#buddypress.buddypress-wrap .activity-list .activity-meta { border: 0; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
#buddypress.buddypress-wrap .activity-meta.action .button,
#buddypress.buddypress-wrap .activity-meta.action a.button { border: 0; border-radius: 0; box-shadow: none; background: transparent; color: var(--bd-muted); padding: 6px 0; min-height: 32px; font-size: .8125rem; }
#buddypress.buddypress-wrap .activity-meta.action a.button:hover { color: var(--bd-blue); text-decoration: underline; }
#buddypress.buddypress-wrap .activity-comments { grid-column: 2; min-width: 0; margin: 14px 0 0; }
#buddypress.buddypress-wrap .bp-pagination { float: none; clear: both; width: 100%; margin: 14px 0; }
#buddypress.buddypress-wrap .bp-pagination::after { content: ''; display: block; clear: both; }

/* Groups: title, description and metadata form a single readable unit. */
#buddypress.buddypress-wrap #groups-list { padding: 0; margin: 16px 0; border: 1px solid var(--bd-line); border-radius: 12px; background: white; overflow: clip; }
#buddypress.buddypress-wrap #groups-list > li { padding: 26px; width: 100%; float: none; min-height: 0; border-radius: 0; }
#buddypress.buddypress-wrap #groups-list > li:last-child { border-bottom: 0; }
#buddypress.buddypress-wrap #groups-list .list-wrap { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 18px; }
#buddypress.buddypress-wrap #groups-list .list-wrap::before,
#buddypress.buddypress-wrap #groups-list .list-wrap::after { display: none; }
#buddypress.buddypress-wrap #groups-list .item-avatar { float: none; width: 44px; margin: 2px 0 0; }
#buddypress.buddypress-wrap #groups-list .item { float: none; width: auto; min-width: 0; margin: 0; padding: 0; }
#buddypress.buddypress-wrap #groups-list .item-block { float: none; width: 100%; margin: 0; padding: 0; }
#buddypress.buddypress-wrap #groups-list .list-title { font-size: 1.25rem; line-height: 1.4; font-weight: 650; margin: 0 0 8px; }
#buddypress.buddypress-wrap #groups-list .list-title a { color: var(--bd-ink); text-decoration: none; }
#buddypress.buddypress-wrap #groups-list .list-title a:hover { color: var(--bd-blue); text-decoration: underline; }
#buddypress.buddypress-wrap #groups-list .item-meta { display: inline-block; margin: 0 16px 0 0; color: var(--bd-muted); font-size: .8125rem; line-height: 1.6; }
#buddypress.buddypress-wrap #groups-list .group-desc { float: none; width: 100%; max-width: 75ch; margin: 12px 0 0; padding: 0; }
#buddypress.buddypress-wrap #groups-list .group-desc p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--bd-ink); }

/* Replies and sign-in follow the reading measure, never full-width fields. */
body.single-topic .community-content { max-width: 1000px; margin-inline: auto; }
#bbpress-forums .bbp-login-form { max-width: 460px; margin-top: 20px; }
#bbpress-forums .bbp-login-form fieldset.bbp-form { padding: 24px; margin: 0; }
#bbpress-forums .bbp-login-form .bbp-username,
#bbpress-forums .bbp-login-form .bbp-password { margin: 0 0 18px; }
#bbpress-forums .bbp-login-form label { display: block; float: none; width: auto; margin: 0 0 7px; font-size: .9375rem; }
#bbpress-forums .bbp-login-form input[type=text],
#bbpress-forums .bbp-login-form input[type=password] { display: block; width: 100%; height: 46px; }
#bbpress-forums .bbp-login-form .bbp-remember-me { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
#bbpress-forums .bbp-login-form .bbp-remember-me input { margin: 0; flex: none; }
#bbpress-forums .bbp-login-form .bbp-remember-me label { margin: 0; }
#bbpress-forums .bbp-login-form .bbp-submit-wrapper { float: none; margin: 0; text-align: left; }
#bbpress-forums ul.bbp-replies > li.bbp-footer { display: none; }
#bbpress-forums .bbp-reply-content { max-width: 78ch; }
#bbpress-forums .bbp-template-notice { margin: 18px 0; }
.bd-report-link { font-size: .875rem; margin-top: 22px; }

@media(max-width:1100px){ .masthead .global-search { flex-grow: 1; } }
@media(max-width:760px){
 .site-header .masthead { width: calc(100% - 40px); }
 .discussion-toolbar { padding: 16px; gap: 12px; }
 .discussion-row { padding: 20px 16px; }
 body.directory .page-heading h1 { font-size: 1.75rem; }
 #buddypress.buddypress-wrap .subnav-filters:not(.bp-messages-filters) { gap: 12px; }
 #buddypress.buddypress-wrap .subnav-filters > .subnav-search { flex-basis: 100%; }
 #buddypress.buddypress-wrap .subnav-filters .component-filters { flex-basis: 100%; }
 #buddypress.buddypress-wrap .activity-list .activity-item { padding: 20px 16px; grid-template-columns: 32px minmax(0,1fr); gap: 12px; }
 #buddypress.buddypress-wrap .activity-list .activity-avatar,
 #buddypress.buddypress-wrap .activity-list .activity-avatar img { width: 32px; height: 32px; }
 #buddypress.buddypress-wrap .activity-list .bd-activity-title { font-size: 1.0625rem; }
 #buddypress.buddypress-wrap #groups-list > li { padding: 22px 16px; }
 #buddypress.buddypress-wrap #groups-list .list-wrap { grid-template-columns: 32px minmax(0,1fr); gap: 12px; }
 #buddypress.buddypress-wrap #groups-list .item-avatar,
 #buddypress.buddypress-wrap #groups-list .item-avatar img { width: 32px; height: 32px; }
 #buddypress.buddypress-wrap #groups-list .list-title { font-size: 1.125rem; }
 .app-shell > .footer { margin-top: 32px; gap: 22px; }
 .app-shell > .footer { padding-inline: 0; }
 .app-shell > .footer nav { grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
}

/* Shared work area: own templates and local organisation tools. */
#bd-helpers { max-width: none; margin-inline: 0; }
#bd-helpers .helper-heading { display: block; margin: 0 0 26px; }
#bd-helpers .helper-heading h1 { margin: 0 0 10px; font-size: 2rem; line-height: 1.2; }
#bd-helpers .helper-heading p { margin: 0; color: var(--bd-muted); font-size: 1rem; max-width: 70ch; }
#bd-helpers .helper-tabs { gap: 28px; margin-bottom: 24px; flex-wrap: wrap; }
#bd-helpers .helper-tabs .tab { padding: 12px 0; }
#bd-helpers .helper-workspace { padding: 0; background: transparent; border: 0; }
#bd-helpers h2 { font-size: 1.375rem; margin: 0 0 8px; }
#bd-helpers .template-intro p { color: var(--bd-muted); font-size: 1rem; margin: 0; max-width: 72ch; }
.template-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.template-filters button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--bd-line); border-radius: 8px; background: transparent; color: var(--bd-muted); font: inherit; font-size: .9375rem; cursor: pointer; }
.template-filters button[aria-pressed=true] { background: #e8edff; border-color: #b7c5f5; color: #2447b8; font-weight: 600; }
.template-filters button:hover { background: #e8edff; color: #2447b8; }
.template-list { border: 1px solid var(--bd-line); border-radius: 12px; background: #fff; overflow: clip; }
.template-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; padding: 24px; border-bottom: 1px solid var(--bd-line); align-items: start; }
.template-row:last-child { border-bottom: 0; }
#bd-helpers .template-row h3 { margin: 0 0 6px; font-size: 1.125rem; line-height: 1.35; }
#bd-helpers .template-row p { margin: 0 0 8px; font-size: 1rem; color: var(--bd-muted); max-width: 68ch; }
.template-meta { color: var(--bd-muted); font-size: .8125rem; }
.template-row details { margin-top: 10px; }
.template-row summary { cursor: pointer; color: #345393; font-size: .875rem; padding-block: 5px; }
#bd-helpers .template-row details p { margin: 10px 0 0; font-size: .9375rem; }
.template-download { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #b7c5e6; border-radius: 8px; padding: 10px 14px; min-height: 44px; color: #2447b8; font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.template-download svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.template-download:hover { background: #eff3ff; border-color: #7893d8; }
.template-usage { margin-top: 30px; max-width: 78ch; }
#bd-helpers .template-usage h3 { font-size: 1.0625rem; margin: 0 0 12px; }
#bd-helpers .template-usage ol { padding-left: 22px; margin: 0 0 16px; font-size: .9375rem; }
.template-usage li { margin-bottom: 7px; }
#bd-helpers .template-usage p { font-size: .875rem; color: var(--bd-muted); margin: 0; }
.helper-privacy { border-top: 1px solid var(--bd-line); padding: 20px 0 0; margin-top: 28px; color: var(--bd-muted); font-size: .875rem; }
.helper-privacy summary { cursor: pointer; font-weight: 600; }
#bd-helpers .helper-privacy p { margin: 12px 0; max-width: 78ch; }
#bd-helpers .helper-task-list { padding: 0; margin: 0; list-style: none; }
.task-actions { display: flex; gap: 18px; flex: none; }
.note-picker { max-width: 460px; }
#bd-helpers .helper-task-form { grid-template-columns: minmax(0,1fr) 180px auto; }
#bd-helpers .helper-task-form > .text-button { grid-column: 1/-1; justify-self: start; }
#bd-helpers .helper-checklist, #bd-helpers .helper-task-form, #bd-helpers #helper-notes-form { max-width: 850px; }
#bd-helpers :focus-visible { outline: 3px solid #2954dc; outline-offset: 3px; }
@media(max-width:760px) {
 #bd-helpers .helper-heading h1 { font-size: 1.75rem; }
 #bd-helpers .helper-tabs { gap: 8px 20px; }
 .template-row { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 20px; }
 .template-download { justify-self: start; }
 #bd-helpers .helper-task-form { grid-template-columns: minmax(0,1fr); }
 #bd-helpers .task-actions { margin-left: 34px; gap: 18px; }
 #bd-helpers .task-actions .text-button { margin-left: 0; }
}

/* Topic navigation keeps the forum's shell and columns in place. */
body.single-topic .community-content { max-width: none; margin: 0; }
body.single-topic .page-heading h1 { max-width: none; font-size: clamp(1.7rem,2.7vw,2.4rem); }
body.single-topic .page-heading { margin-bottom: 28px; }
body.single-topic .community-body { min-width: 0; }
body.single-topic #bbpress-forums { margin: 0; }
body.single-topic #bbpress-forums .bbp-breadcrumb { float: none; margin: 0 0 12px; }
body.single-topic #bbpress-forums .bbp-breadcrumb p { font-size: .8125rem; line-height: 1.6; }
body.single-topic #bbpress-forums .bbp-breadcrumb-current,
body.single-topic #bbpress-forums .bbp-breadcrumb-sep:last-of-type { display: none; }
body.single-topic #bbpress-forums .bd-topic-summary { font-size: .875rem; color: var(--bd-muted); margin: 0 0 16px; }
body.single-topic #bbpress-forums .bbp-pagination:has(.bbp-pagination-links:empty) { display: none; }
body.single-topic #bbpress-forums .bbp-replies > .bbp-header { display: none; }
body.single-topic #bbpress-forums .bbp-reply-header { padding: 14px 24px; }
body.single-topic #bbpress-forums .bbp-reply-header .bbp-meta { line-height: 1.6; font-size: .8125rem; }
body.single-topic #bbpress-forums .bbp-body > .topic,
body.single-topic #bbpress-forums .bbp-body > .reply { padding: 24px; }
body.single-topic #bbpress-forums div.bbp-reply-author { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; float: none; width: auto; text-align: left; margin: 0 0 18px; padding: 0; }
body.single-topic #bbpress-forums div.bbp-reply-author .bbp-author-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
body.single-topic #bbpress-forums div.bbp-reply-author .bbp-author-avatar { display: inline-flex; margin: 0; padding: 0; }
body.single-topic #bbpress-forums div.bbp-reply-author .bbp-author-avatar img { width: 36px; height: 36px; display: block; margin: 0; }
body.single-topic #bbpress-forums div.bbp-reply-author .bbp-author-name { margin: 0; padding: 0; overflow-wrap: normal; font-weight: 600; }
body.single-topic #bbpress-forums div.bbp-reply-author .bbp-author-role { font-size: .75rem; color: var(--bd-muted); font-style: normal; }
body.single-topic #bbpress-forums div.bbp-reply-content { padding: 0; margin: 0; width: auto; max-width: 75ch; clear: both; }
body.single-topic #bbpress-forums div.bbp-reply-content p:last-child { margin-bottom: 0; }
body.single-topic #bbpress-forums .bbp-login-form fieldset input[type=text],
body.single-topic #bbpress-forums .bbp-login-form fieldset input[type=password] { min-height: 46px!important; height: 46px!important; padding: 10px 12px; font-size: 1rem; }
@media(max-width:760px) {
 body.single-topic #bbpress-forums .bbp-body > .topic,
 body.single-topic #bbpress-forums .bbp-body > .reply { padding: 20px 16px; }
 body.single-topic #bbpress-forums .bbp-reply-header { padding: 12px 16px; }
 body.single-topic #bbpress-forums .bbp-login-form { max-width: none; }
}

#buddypress.buddypress-wrap .activity-list .activity-inner { border: 0; padding: 0; }
#buddypress.buddypress-wrap .activity-list .activity-avatar img,
#buddypress.buddypress-wrap #groups-list .item-avatar img { max-width: none; object-fit: contain; }
#buddypress.buddypress-wrap .subnav-filters .component-filters .filter { float: none; width: 100%; margin: 0; }
#buddypress.buddypress-wrap .subnav-filters .dir-search form { margin: 0; }

#buddypress.buddypress-wrap #groups-list .list-title { text-align: left; }

/* Gemeinsamer Seitenrahmen: identische Kanten und Kopfzeile auf allen Routen. */
.app-shell .article,.app-shell .community-content{width:100%;max-width:none;margin-inline:0;min-width:0}
.app-shell .article-body{max-width:none;min-width:0}
.article-body>p,.article-body>ul,.article-body>ol{max-width:75ch}
.app-shell>.footer{padding-inline:0}
.site-header .masthead{gap:20px;min-height:92px;padding-block:20px}
.site-header .masthead .brand{font-size:1.4rem;flex-shrink:0}
.site-header .masthead #side-nav{gap:16px}
.site-header .masthead .nav-link{font-weight:600;white-space:nowrap}
.header-search-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;flex-shrink:0;text-decoration:none;font-size:.875rem;color:var(--bd-ink)}
.header-search-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.header-search-link:hover{color:var(--bd-blue)}
.page-heading h1{font-size:clamp(1.75rem,2.5vw,2.4rem);line-height:1.2}
@media(min-width:1101px){.site-header .masthead .primary-navigation{margin-left:auto}.site-header .masthead .account-links{margin-left:0}}
@media(min-width:761px) and (max-width:1100px){.site-header .masthead .header-search-link{margin-left:auto}.site-header .masthead .account-links{margin-left:0}}
@media(max-width:760px){
 .site-header .masthead{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:0 8px;min-height:76px;padding-block:16px}
 .site-header .masthead .brand{font-size:1.35rem;grid-column:1}
 .header-search-link{grid-column:2;grid-row:1;width:44px}.header-search-link span{display:none}
 .site-header .masthead .mobile-menu{grid-column:3;grid-row:1;width:44px;min-width:44px}
 .site-header .masthead .primary-navigation{grid-column:1/-1;grid-row:2;margin:0;padding:12px 0 4px}
 .site-header .masthead #side-nav{gap:4px 20px}
 .site-header .masthead .account-links{display:none;grid-column:1/-1;grid-row:3;margin:0;padding:8px 0;gap:24px}
 .site-header .masthead:has(.primary-navigation.open) .account-links{display:flex}
 .site-header .masthead .account-links .register-link{display:block}
 .page-heading{margin-bottom:24px}
}
@media(max-width:359px){.site-header .masthead .brand{font-size:1.15rem}.site-header .brand-symbol svg{width:27px}}

.app-shell>.footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 48px}
.app-shell>.footer nav{width:100%;justify-content:start}
@media(max-width:760px){.app-shell>.footer{grid-template-columns:minmax(0,1fr);gap:24px}}

#buddypress .register-page{max-width:1100px;margin-inline:0}

/* BuddyPress lädt diese Zeilen nach: alte Floats dürfen das Raster nicht aufheben. */
#buddypress .groups-list .item{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.5fr);gap:28px;align-items:start}
#buddypress .groups-list .item-block{display:flow-root;min-width:0}
#buddypress .groups-list .item-block .list-title,#buddypress .groups-list .item-block p{float:none;clear:none;width:auto}
#buddypress .groups-list .group-desc{margin:0;max-width:68ch;min-width:0}
#buddypress .groups-list .group-desc p:empty{display:none}
@media(max-width:760px){#buddypress .groups-list .item{grid-template-columns:minmax(0,1fr);gap:12px}}

/* Ohne hochgeladenes Titelbild bleibt der Profil- und Gruppenkopf kompakt. */
body.bd-no-cover #buddypress #header-cover-image{display:none}
body.bd-no-cover #buddypress #cover-image-container{min-height:0;margin:0;padding:0}
body.bd-no-cover #buddypress #item-header-cover-image{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:24px;align-items:center;min-height:0;position:static;margin:0;padding:24px;border:1px solid var(--bd-line);border-radius:12px;background:#fff}
body.bd-no-cover #buddypress #item-header-cover-image::after{display:none}
body.bd-no-cover #buddypress #item-header-cover-image #item-header-avatar{float:none;position:static;width:72px;margin:0;padding:0}
body.bd-no-cover #buddypress #item-header-cover-image #item-header-avatar img{width:72px;height:72px;object-fit:cover;border:0;margin:0;border-radius:50%}
body.bd-no-cover #buddypress #item-header-content{float:none;position:static;width:auto;margin:0;padding:0;min-width:0}
body.bd-no-cover #buddypress #item-header-content p{float:none;display:block;margin:4px 0}
body.bd-no-cover #buddypress #item-header-cover-image #item-actions{float:none;position:static;width:auto;margin:0;text-align:left}
body.bd-no-cover #buddypress #item-header .desc-wrap,body.bd-no-cover #buddypress #item-header .group-description{background:transparent;border:0;box-shadow:none;padding:0}
body.bd-no-cover #buddypress #item-header .desc-wrap{margin:18px 0 24px;max-width:75ch}
#buddypress form[id$="-search-form"]{display:flex;align-items:center;background:#fff;border:1px solid var(--bd-line);border-radius:8px;min-height:44px;max-width:100%}
#buddypress form[id$="-search-form"] input[type=search]{min-width:0;flex:1;width:auto;background:transparent;color:var(--bd-ink);padding:10px 12px;font:inherit}
#buddypress form[id$="-search-form"] button[type=submit]{min-width:72px;min-height:44px;flex:none;background:transparent;color:var(--bd-ink);border:0;border-left:1px solid var(--bd-line);font:inherit;padding:8px 12px}
@media(max-width:760px){body.bd-no-cover #buddypress #item-header-cover-image{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:18px}body.bd-no-cover #buddypress #item-header-cover-image #item-header-avatar,body.bd-no-cover #buddypress #item-header-cover-image #item-header-avatar img{width:48px;height:48px}body.bd-no-cover #buddypress #item-header-cover-image #item-actions{grid-column:2}}

body.bd-no-cover #buddypress #item-header-cover-image #item-actions{padding:0}
body.bd-no-cover #buddypress #item-actions dl,body.bd-no-cover #buddypress #item-actions dd{margin:0}

#buddypress.buddypress-wrap .subnav-filters>ul{display:flex;align-items:center;gap:12px;flex:1 1 330px;min-width:0;max-width:100%;padding:0;margin:0;list-style:none}
#buddypress.buddypress-wrap .subnav-filters .group-act-search{flex:1;min-width:0;max-width:100%}
#buddypress.buddypress-wrap .subnav-filters .activity-search{width:100%;max-width:100%;min-width:0}
#buddypress.buddypress-wrap .subnav-filters .activity-search form{width:100%;max-width:100%}

/* Gemeinsamer Seitenbeginn und lesbare Arbeitsbreite. */
:root{--bd-work-width:1040px;--bd-page-title:2.25rem;--bd-page-start:32px;--bd-title-gap:12px}
.app-shell{padding-top:var(--bd-page-start)}
body .app-shell .page-heading,body .app-shell .forum-heading{margin:0 0 var(--bd-title-gap)}
body .app-shell .page-heading h1,body .app-shell .forum-heading h1,.app-shell #bd-helpers .helper-heading h1{
 font-size:var(--bd-page-title);line-height:1.2;letter-spacing:-.025em;font-weight:650;max-width:none;margin:0;text-wrap:balance
}
body .app-shell .page-heading p,body .app-shell .forum-heading p{margin:var(--bd-title-gap) 0 0}
body .app-shell .forum-heading:has(p),body .app-shell .page-heading:has(p){margin-bottom:28px}
.app-shell .article>.page-heading,.app-shell .article-body{width:100%;max-width:var(--bd-work-width)}
.app-shell .article-body>p,.app-shell .article-body>ul,.app-shell .article-body>ol{max-width:75ch}
.app-shell #bd-helpers .helper-heading{margin-bottom:28px}
@media(max-width:760px){:root{--bd-page-title:1.75rem;--bd-page-start:24px}}
