/* ==========================================================================
   PG Seefeld/Wörthsee – gemeinsames Stylesheet aller Domains
   Farbschema je Domain über <body data-theme="…"> (Meta-Info cat_pg_theme)
   ========================================================================== */

/* Schrift Figtree (SIL Open Font License), selbst gehostet unter /assets/pg/fonts/ */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/figtree-400.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/figtree-600.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/figtree-700.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/figtree-800.woff2') format('woff2'); }

:root {
    --accent: #1D5FA8;
    --accent-tint: #EAF1FA;
    --accent-deep: #143F72;

    --text: #1B2330;
    --text-soft: #3A4352;
    --text-muted: #5B6576;
    --ground: #F5F7FA;
    --surface: #FFFFFF;
    --border: #E3E7ED;
    --border-strong: #D5DBE3;
    --footer-bg: #1B2330;
    --footer-text: #D8DEE7;

    --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1200px;
    --container-text: 840px;
    --gutter: 24px;
}

[data-theme="kinderhaus"] {
    --accent: #B84A16;
    --accent-tint: #FDF0E7;
    --accent-deep: #7A2F0C;
}

[data-theme="buecherei"] {
    --accent: #2E7D4F;
    --accent-tint: #E9F5EE;
    --accent-deep: #1D5234;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--ground);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { line-height: 1.2; font-weight: 800; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 28px); }
h3 { font-size: 21px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.pg-ext { margin-left: .2em; font-size: .85em; text-decoration: none; display: inline-block; }
.pg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pg-skiplink {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--surface); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.pg-skiplink:focus { top: 12px; }

.pg-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.pg-container--text { max-width: var(--container-text); }

.pg-main { padding-bottom: 64px; }
.pg-section { padding-top: 48px; }
.pg-section--tight { padding-top: 24px; }

.pg-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; min-height: inherit;
    background: var(--accent-tint); color: var(--accent-deep); font-weight: 700;
}

.pg-link-arrow { font-weight: 700; text-decoration: none; }

/* ---------- Kopfleiste und Header ---------- */
.pg-topbar { background: var(--accent-deep); color: #FFFFFF; font-size: 14px; }
.pg-topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.pg-topbar__service { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.pg-topbar__service a { font-weight: 700; }
.pg-topbar__service a.is-active { text-decoration: underline; text-underline-offset: 4px; }
.pg-topbar__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; margin-left: auto; }
.pg-topbar__reach { display: inline-flex; align-items: center; gap: 6px; }
.pg-topbar__reach svg { flex-shrink: 0; }
.pg-topbar__short { display: none; }
@media (max-width: 600px) {
    .pg-topbar__meta { margin-left: 0; }
    .pg-topbar__long:has(+ .pg-topbar__short) { display: none; }
    .pg-topbar__short { display: inline; }
}
.pg-topbar a { color: #FFFFFF; font-weight: 600; text-decoration: none; }
.pg-topbar a:hover { text-decoration: underline; }

/* Service-Links im Mobilmenü, am Desktop stehen sie in der Kopfleiste */
.pg-nav__service { display: none; }

.pg-header { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 10; }
.pg-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 10px; padding-bottom: 10px; }

.pg-brand { display: flex; align-items: center; text-decoration: none; color: var(--text); }
/* Logo im Format 4:3 mit Schrift: groß genug, dass die Schrift lesbar bleibt */
.pg-brand__logo { height: 104px; width: auto; }
.pg-brand__name { font-size: 21px; font-weight: 800; line-height: 1.15; }

.pg-navtoggle {
    display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
    align-items: center; justify-content: center; cursor: pointer;
}

.pg-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.pg-nav__item { position: relative; }
.pg-nav__link {
    display: block; padding: 10px 14px; border-radius: 999px;
    color: var(--text); font-weight: 600; text-decoration: none;
}
.pg-nav__link:hover, .pg-nav__link.is-active { background: var(--accent-tint); color: var(--accent-deep); }

.pg-nav__sub {
    list-style: none; margin: 0; padding: 8px;
    position: absolute; left: 0; top: 100%; min-width: 240px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(27, 35, 48, .08);
    display: none;
}
.pg-nav__item:hover > .pg-nav__sub,
.pg-nav__item:focus-within > .pg-nav__sub { display: block; }
/* mit Escape geschlossen (pg.js), bis Maus oder Fokus den Menüpunkt verlassen */
.pg-nav__item.is-dismissed > .pg-nav__sub { display: none; }
.pg-nav__sub a {
    display: block; padding: 9px 12px; border-radius: var(--radius-sm);
    color: var(--text); text-decoration: none; font-weight: 500;
}
.pg-nav__sub a:hover, .pg-nav__sub a.is-active { background: var(--accent-tint); color: var(--accent-deep); }

@media (max-width: 960px) {
    .pg-navtoggle { display: inline-flex; }
    .pg-brand__logo { height: 80px; }
    .pg-nav { display: none; flex-basis: 100%; }
    .pg-nav.is-open { display: block; }
    .pg-header__inner { flex-wrap: wrap; }
    .pg-nav__list { flex-direction: column; gap: 2px; padding-bottom: 8px; }
    .pg-nav__link { border-radius: var(--radius-sm); }
    .pg-nav__sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 4px 16px; min-width: 0; }

    .pg-topbar__service { display: none; }
    .pg-nav__service {
        list-style: none; margin: 0 0 8px; padding: 0 0 8px;
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
        border-bottom: 1px solid var(--border);
    }
    .pg-nav__service a {
        display: block; padding: 10px 12px; border-radius: var(--radius-sm);
        background: var(--accent-tint); color: var(--accent-deep); font-weight: 700; text-decoration: none;
    }
}

/* ---------- Seitenkopf auf Unterseiten ---------- */
.pg-pagehead { padding-top: 32px; }
.pg-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.pg-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.pg-breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.pg-pagetitle { margin-bottom: 0; }
.is-page .pg-pagehead + .pg-section { padding-top: 24px; }

/* ---------- Modul: Begrüßung ---------- */
.pg-welcome { padding-top: 40px; }
.pg-welcome__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .pg-welcome__grid { grid-template-columns: 1fr 1.3fr; } }

.pg-welcome__text {
    background: var(--accent-tint); border-radius: var(--radius-lg);
    padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.pg-welcome__title { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin: 0; }
.pg-welcome__sub { margin: 0; color: var(--text-soft); }

.pg-welcome__image { position: relative; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; }
.pg-welcome__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-welcome__badge {
    position: absolute; left: 16px; bottom: 16px;
    background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600;
    padding: 6px 14px; border-radius: 16px; margin: 0; max-width: calc(100% - 32px);
    display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px;
}
.pg-welcome__badge-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); }
.pg-welcome__badge a { font-weight: 600; }

/* Schmale Fenster: Bild im Format 4:3 über dem Text, Beschriftung wie auf dem Desktop im Bild */
@media (max-width: 899px) {
    .pg-welcome__image { order: -1; min-height: 0; }
    .pg-welcome__image:has(.pg-placeholder) { display: none; }
    .pg-welcome__image img { position: static; display: block; height: auto; aspect-ratio: 4 / 3; }
    .pg-welcome__badge { left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 12px; font-size: 13px; }
}

@media (max-width: 600px) {
    .pg-welcome { padding-top: 16px; }
    .pg-welcome__grid { gap: 14px; }
    .pg-welcome__text { padding: 22px 20px; }
}

/* ---------- Modul: Quicklinks ---------- */
.pg-quicklinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pg-quicklink {
    display: flex; gap: 14px; align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 18px 20px; text-decoration: none; color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pg-quicklink:hover { color: var(--text); border-color: var(--accent); box-shadow: 0 4px 16px rgba(27, 35, 48, .06); }
.pg-quicklink__icon {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    background: var(--accent-tint); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.pg-quicklink__text { display: flex; flex-direction: column; }
.pg-quicklink__title { font-weight: 700; font-size: 17px; }
.pg-quicklink__sub { font-size: 14px; color: var(--text-muted); line-height: 1.4; }

@media (max-width: 600px) {
    .pg-section--tight { padding-top: 12px; }
    .pg-quicklinks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pg-quicklink { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
    .pg-quicklink__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); }
    .pg-quicklink__sub { font-size: 13px; }
}

/* ---------- Modul: Text und Bild ---------- */
.pg-textblock::after { content: ''; display: block; clear: both; }
.pg-textblock__figure { margin: 0 0 20px; }
.pg-textblock__figure img { border-radius: var(--radius-md); width: 100%; }
.pg-textblock__figure figcaption { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

@media (min-width: 700px) {
    .pg-textblock--img-rechts .pg-textblock__figure { float: right; width: 45%; margin: 4px 0 16px 28px; }
    .pg-textblock--img-links .pg-textblock__figure { float: left; width: 45%; margin: 4px 28px 16px 0; }
}

.pg-richtext > :first-child { margin-top: 0; }
.pg-richtext > :last-child { margin-bottom: 0; }
.pg-richtext p, .pg-richtext ul, .pg-richtext ol { margin: 0 0 1em; }
.pg-richtext li { margin-bottom: .3em; }
.pg-richtext h2, .pg-richtext h3 { margin-top: 1.4em; }
.pg-richtext table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 16px; }
.pg-richtext th, .pg-richtext td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.pg-richtext th { background: var(--accent-tint); color: var(--accent-deep); font-weight: 700; }
.pg-richtext td:not(:first-child), .pg-richtext th:not(:first-child) { text-align: right; white-space: nowrap; }
@media (max-width: 600px) {
    .pg-richtext table { display: block; overflow-x: auto; }
}

/* ---------- Karten, Buttons, Filter ---------- */
.pg-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.pg-card__head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pg-card__head h2 { margin: 0; }
.pg-empty { color: var(--text-muted); margin: 16px 0 0; }

.pg-btn {
    display: inline-block; padding: 11px 18px; border-radius: 999px;
    background: var(--accent); color: #FFFFFF; font-weight: 700; font-size: 15px; text-decoration: none;
    border: 1px solid var(--accent);
}
.pg-btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #FFFFFF; }
.pg-btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.pg-btn--ghost:hover { background: var(--accent-tint); color: var(--accent-deep); border-color: var(--accent-tint); }

.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.pg-chip {
    padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none;
    border: 1px solid var(--border-strong); color: var(--text); background: var(--surface);
}
.pg-chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.pg-chip.is-active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* ---------- Gottesdienste ---------- */
.pg-gd-day { margin-top: 20px; }
.pg-gd-day__head { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 2px solid var(--accent-tint); }
.pg-gd-day__date { font-weight: 800; font-size: 18px; }
.pg-gd-day__feast { color: var(--accent); font-weight: 600; font-size: 15px; }
.pg-gd-day__kollekte { display: inline-block; margin: 8px 0 0; padding: 4px 10px; border-radius: 10px; background: #FFF7E3; color: #7A5A12; font-size: 14px; }
.pg-gd-row { display: grid; grid-template-columns: 64px 140px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #EEF1F5; }
.pg-gd-row__time { font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-gd-row__place { font-weight: 600; color: var(--accent-deep); font-size: 15px; }
.pg-gd-row__what { color: var(--text-soft); }
.pg-gd-row__intention { display: block; font-size: 14px; color: var(--text-muted); font-style: italic; }

@media (max-width: 600px) {
    .pg-card { padding: 20px; }
    .pg-gd-row { grid-template-columns: 52px minmax(0, 1fr); }
    .pg-gd-row__place { grid-column: 2; }
    .pg-gd-row__what { grid-column: 2; }
}

/* ---------- Termine ---------- */
.pg-events { list-style: none; margin: 0; padding: 0; }
.pg-events__month { margin: 28px 0 4px; font-size: 19px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-tint); }
.pg-event { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #EEF1F5; }
.pg-events--compact { margin-top: 12px; }
.pg-events--compact .pg-event { padding: 10px 0; }
.pg-event__badge {
    flex-shrink: 0; width: 54px; padding: 6px 0; border-radius: var(--radius-sm);
    background: var(--accent-tint); color: var(--accent-deep); text-align: center; line-height: 1.1;
}
.pg-event__day { display: block; font-size: 21px; font-weight: 800; }
.pg-event__month { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.pg-event__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pg-event__title { font-weight: 700; }
.pg-event__topic { color: var(--text-soft); }
.pg-event__meta { font-size: 15px; color: var(--text-muted); }
.pg-event__text { margin-top: 6px; color: var(--text-soft); font-size: 16px; overflow-wrap: anywhere; }
.pg-event__image { flex-shrink: 0; width: 120px; border-radius: var(--radius-sm); }

/* Startseite: Gottesdienste und Termine nebeneinander */
.pg-dates { display: grid; gap: 24px; }
@media (min-width: 900px) { .pg-dates { grid-template-columns: 1fr 1fr; align-items: start; } }

@media (max-width: 600px) {
    .pg-event__image { display: none; }
}

/* ---------- Kacheln für Unterseiten ---------- */
.pg-tiles { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.pg-tile {
    display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    transition: transform .15s ease, box-shadow .15s ease;
}
.pg-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27, 35, 48, .10); }
.pg-tile__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--accent-tint); }
.pg-tile__image--empty { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.pg-tile__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.pg-tile__title { font-weight: 800; font-size: 18px; color: var(--accent-deep); }
.pg-tile__sub { font-size: 15px; color: var(--text-muted); }

/* ---------- Kontakte ---------- */
.pg-lead { font-size: 19px; color: var(--text-soft); max-width: var(--container-text); margin: 0 0 8px; }
.pg-contacts__group { margin: 32px 0 16px; }
.pg-contacts__group:first-child { margin-top: 0; }
.pg-contacts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pg-contact {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px;
}
.pg-contact--office { border-top: 4px solid var(--accent); }
.pg-contact__photo { flex-shrink: 0; width: 88px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); }
.pg-contact--wide { flex-direction: column; align-items: stretch; padding-top: 0; overflow: hidden; }
.pg-contact__photo--wide { width: calc(100% + 40px); max-width: none; height: auto; aspect-ratio: 3 / 2; margin: 0 -20px; border-radius: 0; }
.pg-contact__body { flex: 1 1 auto; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.pg-contact__function { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent); }
.pg-contact__name { margin: 0 0 6px; font-size: 19px; }
.pg-contact__address, .pg-contact__channels { margin: 6px 0 0; color: var(--text-soft); }
.pg-contact__channels a { font-weight: 600; }
.pg-contact__hours { margin-top: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--accent-tint); font-size: 15px; }
.pg-contact__label { display: block; font-weight: 700; color: var(--accent-deep); }
.pg-contact__members { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--border); }
.pg-contact__members li { padding: 10px 0 0; }
.pg-contact__member-name { font-weight: 700; }
.pg-contact__member-function { color: var(--text-muted); font-size: 14px; }
.pg-contact__members .pg-contact__channels { margin-top: 2px; }
.pg-place__info { margin: 10px 0 0; font-size: 15px; color: var(--text-soft); }

/* ---------- Pfarrbrief ---------- */
.pg-pb-box {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
    background: var(--surface); border-radius: var(--radius-md); padding: 18px 20px; margin-top: 8px;
}
.pg-section .pg-pb-box { border: 1px solid var(--border); }
.pg-welcome .pg-pb-box { border: 0; }
.pg-pb-box__icon {
    width: 52px; height: 68px; border-radius: 8px; flex-shrink: 0;
    background: var(--accent-deep); color: #FFFFFF; font-weight: 800; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.pg-pb-box__cover { flex-shrink: 0; display: block; line-height: 0; }
.pg-pb-box__cover img {
    width: 90px; height: auto; border-radius: 4px; background: #FFFFFF;
    border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(27, 35, 48, .12);
    transition: transform .15s ease;
}
.pg-pb-box__cover:hover img { transform: translateY(-2px); }
.pg-pb-box__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 150px; min-width: 0; }
.pg-pb-box__kicker { font-size: 13px; font-weight: 700; color: var(--accent); }
.pg-pb-box__title { font-size: 19px; font-weight: 800; }
.pg-pb-box__meta { font-size: 14px; color: var(--text-muted); }
.pg-pb-box__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-pb-box__atts {
    flex-basis: 100%; list-style: none; margin: 0; padding: 12px 0 0;
    border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px 20px;
}
.pg-pb-box__atts a { font-weight: 600; font-size: 15px; text-decoration: none; }
.pg-pb-box__atts a:hover { text-decoration: underline; }

.pg-pb-archive__title { margin-top: 32px; font-size: 19px; }
.pg-pb-archive { list-style: none; margin: 0; padding: 0; }
.pg-pb-archive li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.pg-pb-archive a { font-weight: 600; }
.pg-pb-archive__att { font-size: 15px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.pg-footer { background: var(--footer-bg); color: var(--footer-text); font-size: 15px; }
.pg-footer__inner { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 48px; padding-bottom: 40px; }
.pg-footer__col { display: flex; flex-direction: column; gap: 8px; flex: 1 1 200px; }
.pg-footer__col--wide { flex-basis: 280px; }
.pg-footer__title { color: #FFFFFF; font-size: 18px; font-weight: 800; }
.pg-footer__heading { color: #FFFFFF; font-size: 16px; font-weight: 700; }
.pg-footer a { color: var(--footer-text); }
.pg-footer a:hover { color: #FFFFFF; }

/* Orte: Schaltfläche in der Gottesdienstliste und Popup */
.pg-place-btn {
    font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
    text-decoration: none;
}
.pg-place-btn:hover, .pg-place-btn:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pg-place-pop {
    position: fixed; width: min(360px, calc(100vw - 32px)); padding: 0; overflow: hidden; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: 0 18px 48px rgba(27, 35, 48, .22);
}
.pg-place-pop::backdrop { background: rgba(27, 35, 48, .35); }
.pg-place-pop__image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pg-place-pop__body { position: relative; padding: 16px 20px 20px; }
.pg-place-pop__close {
    position: absolute; z-index: 1; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(27, 35, 48, .18); color: var(--accent-deep); font-size: 22px; line-height: 1; cursor: pointer;
}
.pg-place-pop__title { display: block; padding-right: 40px; font-size: 19px; color: var(--accent-deep); }
.pg-place-pop__address { margin: 6px 0 0; color: var(--text-soft); }
.pg-place-pop__links { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; font-weight: 600; }
.pg-place-pop__info { margin: 8px 0 0; font-size: 15px; color: var(--text-soft); }

/* ---------- Aktuelles ---------- */
.pg-news-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-top: 16px; }
.pg-news-card__link {
    display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    transition: transform .15s ease, box-shadow .15s ease;
}
.pg-news-card__link:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27, 35, 48, .10); }
.pg-news-card__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--accent-tint); }
.pg-news-card__image--empty { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.pg-news-card__image--logo img { width: 55%; max-height: 70%; object-fit: contain; opacity: .85; }
.pg-news-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; }
.pg-news-card__title { font-weight: 800; font-size: 19px; line-height: 1.3; color: var(--accent-deep); }
.pg-news-card__teaser { color: var(--text-soft); font-size: 16px; }
.pg-news-meta { font-size: 14px; color: var(--text-muted); }
.pg-news-pin { font-weight: 700; color: var(--accent); }
.pg-news-site { font-weight: 600; }
.pg-news-rows { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--border); }
.pg-news-row a { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.pg-news-row .pg-news-meta { flex: 0 0 170px; }
.pg-news-row__title { flex: 1 1 260px; font-weight: 700; color: var(--accent-deep); }
.pg-news-row a:hover .pg-news-row__title { text-decoration: underline; }
.pg-news-list { display: grid; gap: 20px; }
@media (min-width: 700px) {
    .pg-news-list .pg-news-card__link { flex-direction: row; }
    .pg-news-list .pg-news-card__image { width: 240px; height: 180px; flex-shrink: 0; aspect-ratio: auto; }
}
.pg-news-date { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; }
.pg-pager { display: flex; gap: 20px; justify-content: center; align-items: center; margin-top: 28px; font-weight: 600; }

/* Hinweise ohne eigene Seite (über den Meldungen) */
.pg-notices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 16px 0 20px; }
.pg-notice {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-sm);
    background: var(--accent-tint); border-left: 4px solid var(--accent); color: var(--text);
}
.pg-notice__icon { flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.pg-notice__body { min-width: 0; font-size: 16px; }
.pg-notice__title { display: block; color: var(--accent-deep); font-size: 17px; }
.pg-notice__body p { margin: 4px 0 0; color: var(--text-soft); }
.pg-news-list + .pg-notices, .pg-notices + .pg-news-list { margin-top: 20px; }

/* Bildergalerie: quadratische Vorschaubilder, Großansicht im Dialog */
.pg-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pg-gallery__figure { margin: 0; }
.pg-gallery__link { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--accent-tint); }
.pg-gallery__link img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .2s; }
.pg-gallery__link:hover img { transform: scale(1.04); }
.pg-gallery__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pg-gallery__figure figcaption { font-size: 14px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }
.pg-gallery__credit { display: block; font-size: 13px; }
@media (max-width: 480px) { .pg-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

.pg-lightbox { border: 0; padding: 0; margin: auto; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: transparent; color: #FFFFFF; }
.pg-lightbox::backdrop { background: rgba(10, 14, 20, .92); }
.pg-lightbox__inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 72px 24px; box-sizing: border-box; }
.pg-lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 4px; touch-action: pan-y; user-select: none; }
.pg-lightbox__caption { margin-top: 12px; text-align: center; font-size: 15px; line-height: 1.45; max-width: 60em; }
.pg-lightbox__caption small { display: block; opacity: .75; font-size: 13px; }
.pg-lightbox__counter { position: absolute; top: 18px; left: 24px; font-size: 14px; opacity: .8; }
.pg-lightbox__btn {
    position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .14); color: #FFFFFF; font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.pg-lightbox__btn:hover, .pg-lightbox__btn:focus-visible { background: rgba(255, 255, 255, .3); outline: none; }
.pg-lightbox__btn:focus-visible { box-shadow: 0 0 0 3px #FFFFFF; }
.pg-lightbox__close { top: 10px; right: 14px; }
.pg-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.pg-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.pg-lightbox--single .pg-lightbox__prev, .pg-lightbox--single .pg-lightbox__next, .pg-lightbox--single .pg-lightbox__counter { display: none; }
@media (max-width: 640px) {
    .pg-lightbox__inner { padding: 56px 8px 16px; }
    .pg-lightbox__prev, .pg-lightbox__next { top: auto; bottom: 14px; transform: none; }
    .pg-lightbox__img { max-height: calc(100vh - 190px); }
    .pg-lightbox__caption { margin-bottom: 56px; }
}
