/* Beitragsansicht: gemeinsame Vereinsfarben, ruhige Lesespalte und Fotogalerie. */
.article-page .article-header {
    background: linear-gradient(135deg, var(--soft), var(--paper));
    border-bottom: 0;
    padding-bottom: 34px;
}
.article-page .article-header-inner,
.article-page .article-lead-image,
.article-page .article-layout { max-width: 1000px; }
.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: .9rem;
}
.article-breadcrumb a { color: var(--brand-dark); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-page .article-header h1 { max-width: 900px; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.article-page .article-meta { align-items: center; font-size: .9375rem; gap: 8px 20px; }
.article-meta a { color: var(--brand-dark); text-underline-offset: 4px; }
.article-page .article-lead-image { margin-block: 0; padding-top: 8px; }
.article-photo-open {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--soft);
    cursor: zoom-in;
}
.article-page .article-photo-open img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    background: transparent;
}
.article-photo-badge {
    position: absolute;
    bottom: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #ffffff70;
    border-radius: 8px;
    background: #191718e8;
    color: #fff;
    font-size: .9375rem;
    font-weight: 700;
    box-shadow: 0 2px 12px #0002;
}
.article-photo-badge svg { width: 20px; height: 20px; }
.article-page .article-layout { padding-top: 36px; }
.article-page .article-content { max-width: 760px; margin-inline: auto; }
/* Die App hinterlässt nach entfernten Fotos Umbrüche zwischen Textblöcken. */
.article-page .article-content > br { display: none; }
.article-page .article-content hr { margin-block: 22px; }
.article-page .article-gallery { margin-top: 48px; padding-top: 30px; }
.article-gallery-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.article-page .article-gallery h2 { margin: 4px 0 0; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.article-gallery-total {
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: 6px;
    background: var(--soft);
    color: var(--brand-dark);
    font-size: .9375rem;
    font-weight: 700;
}
.article-gallery-hint { display: none; margin: 12px 0 22px; color: var(--muted); }
.article-gallery-ready .article-gallery-hint { display: block; }
.article-page .article-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.article-page .article-gallery-grid a {
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: zoom-in;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.article-page .article-gallery-grid a:hover { border-color: var(--brand-dark); box-shadow: 0 4px 18px #19171815; }
.article-page .article-gallery-grid img { max-width: 100%; max-height: 100%; object-fit: contain; }
.article-gallery-photo { margin: 0; min-width: 0; }
.article-photo-credit {
    margin: 8px 2px 0;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.article-lead-image > .article-photo-credit { text-align: right; }
.article-page .article-footer-nav { gap: 12px; margin-top: 44px; }
.article-footer-nav p { flex-basis: 100%; margin: 0 0 4px; font-weight: 750; font-size: 1.125rem; }

html.article-lightbox-open,
html.article-lightbox-open body { overflow: hidden; overscroll-behavior: none; }
.article-lightbox {
    box-sizing: border-box;
    width: min(1440px, calc(100% - 32px));
    height: min(1000px, calc(100dvh - 32px));
    max-width: none;
    max-height: none;
    padding: 0;
    border: 1px solid #ffffff30;
    border-radius: 16px;
    background: #191718;
    color: #fff;
    box-shadow: 0 20px 80px #0005;
    overflow: hidden;
    color-scheme: dark;
}
.article-lightbox::backdrop { background: #080608e8; }
.article-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.article-lightbox-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 24px; border-bottom: 1px solid #ffffff25; }
.article-lightbox-title { flex: 1; min-width: 0; margin: 0; font-size: 1rem; line-height: 1.5; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.article-lightbox button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 48px;
    min-height: 48px;
    padding: 10px;
    border: 1px solid #ffffff50;
    border-radius: 8px;
    background: #ffffff10;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.article-lightbox button:hover { background: #ffffff30; }
.article-lightbox button:focus-visible { outline: 3px solid var(--yellow, #f5c544); outline-offset: -4px; }
.article-lightbox button svg { width: 24px; height: 24px; }
.article-lightbox-stage { display: grid; place-items: center; position: relative; min-height: 0; padding: 16px; touch-action: pan-y pinch-zoom; }
.article-lightbox-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.article-lightbox-stage img[hidden],
.article-lightbox [hidden] { display: none; }
.article-lightbox-status { margin: 24px; text-align: center; }
.article-lightbox-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 24px; padding: 12px 20px; border-top: 1px solid #ffffff25; }
.article-lightbox-controls { display: flex; align-items: center; gap: 16px; }
.article-lightbox-counter { min-width: 100px; text-align: center; font-size: 1rem; font-variant-numeric: tabular-nums; }
.article-lightbox-help { margin: 0; color: #e0dcdf; font-size: .875rem; }
.article-lightbox-credit { flex-basis: 100%; margin: 0; color: #e0dcdf; text-align: center; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .article-page .article-header { padding-top: 22px; padding-bottom: 24px; }
    .article-breadcrumb { margin-bottom: 22px; }
    .article-page .article-header h1 { font-size: clamp(1.75rem, 5vw, 2.2rem); }
    .article-page .article-photo-open img { max-height: 420px; }
    .article-photo-badge { bottom: 10px; right: 10px; padding: 8px 10px; font-size: .875rem; }
    .article-page .article-layout { padding-top: 28px; }
    .article-page .article-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .article-gallery-heading { align-items: flex-start; }
    .article-lightbox { width: calc(100% - 12px); height: calc(100dvh - 12px); border-radius: 10px; }
    .article-lightbox-head { padding: 8px 10px 8px 16px; gap: 8px; }
    .article-lightbox-stage { padding: 6px; }
    .article-lightbox-foot { padding: 10px 12px; gap: 8px; }
    .article-lightbox-help { flex-basis: 100%; text-align: center; }
    .article-lightbox-close-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .article-page .article-gallery-grid a { transition: none; }
}
html[data-contrast="true"] .article-page .article-header { background: #000; }
html[data-contrast="true"] .article-photo-badge,
html[data-contrast="true"] .article-gallery-total { background: #000; color: #fff; border: 1px solid #fff; }
