/* PG Friedberg – statische Landingpage; keine externen Webfonts */
:root {
    --blue: #006AB3;
    --green: #547E2C;
    --wine: #922224;
    --orange: #EC7404;
    --coral: #E77155;
    --gray: #8B8F95;
    --ink: #272B30;
    --muted: #656B72;
    --edge: #DFE2E6;
    --bg: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg)
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

a {
    color: inherit
}

a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px
}

.page {
    max-width: 1480px;
    margin: auto;
    padding: clamp(24px, 4vw, 60px)
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1.27fr) minmax(0, 1fr);
    column-gap: clamp(20px, 3vw, 46px);
    align-items: center;
    min-height: 560px
}

.community {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
    padding: 18px 0
}

.main-logo {
    display: block;
    width: min(100%, 280px);
    height: auto;
    margin: 0 auto 18px
}

.community h1 {
    font-size: clamp(37px, 3.5vw, 61px);
    line-height: 1.07;
    margin: 0;
    font-weight: 760;
    letter-spacing: -.04em
}

.community h1 span {
    display: block;
    font-size: .52em;
    font-weight: 400;
    letter-spacing: -.02em;
    margin-bottom: 10px
}

.claim {
    font-size: clamp(17px, 1.5vw, 22px);
    font-style: italic;
    white-space: nowrap;
    color: #44484e;
    margin: 26px 0 0
}

.parishes {
    grid-column: 1/-1;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1.27fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(110px, 1fr));
    gap: 24px clamp(20px, 3vw, 46px);
    pointer-events: none
}

.parish {
    pointer-events: auto;
    text-decoration: none;
    background: white;
    border: 1px solid var(--edge);
    border-left: 8px solid var(--accent);
    border-radius: 15px;
    padding: 22px 19px 22px 24px;
    box-shadow: 0 4px 16px rgba(25, 31, 39, .055);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: clamp(18px, 1.6vw, 25px);
    font-weight: 700;
    line-height: 1.23;
    transition: box-shadow .18s, transform .18s, border-color .18s;
    min-height: 110px
}

.parish small {
    display: block;
    font-size: inherit;
    font-weight: 450
}

.parish:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(25, 31, 39, .11);
    border-color: var(--accent)
}

.arrow {
    font-size: 38px;
    font-weight: 350;
    line-height: 1
}

.staetzling {
    --accent: var(--blue);
    grid-column: 1;
    grid-row: 1
}

.derching {
    --accent: var(--green);
    grid-column: 3;
    grid-row: 1
}

.wulfertshausen {
    --accent: var(--wine);
    grid-column: 1;
    grid-row: 2
}

.haberskirch {
    --accent: var(--orange);
    grid-column: 3;
    grid-row: 2
}

.jakob {
    --accent: var(--coral);
    grid-column: 1;
    grid-row: 3
}

.herrgottsruh {
    --accent: var(--gray);
    grid-column: 3;
    grid-row: 3
}

.offices {
    margin-top: 55px;
    padding-top: 32px;
    border-top: 1px solid #D5D9DD
}

.offices h2 {
    font-size: clamp(24px, 2.5vw, 34px);
    text-align: center;
    margin: 0 0 32px;
    letter-spacing: -.02em
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px
}

.infos {
    border: 1px solid var(--edge);
    border-top: 5px solid var(--accent);
    border-radius: 12px;
    padding: 22px 26px;
    box-shadow: 0 3px 12px rgba(25, 31, 39, .04);
    overflow-wrap: anywhere
}

.office {
    border: 1px solid var(--edge);
    border-top: 5px solid var(--accent);
    border-radius: 12px;
    padding: 22px 26px;
    box-shadow: 0 3px 12px rgba(25, 31, 39, .04);
    overflow-wrap: anywhere
}

.office h3 {
    margin: 0 0 7px;
    font-size: 19px
}

.office p {
    margin: 8px 0 0;
    line-height: 1.55
}

.office p:first-of-type {
    color: var(--muted)
}

.office a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px
}

.office-main {
    --accent: var(--coral)
}

.office-staetzling {
    --accent: var(--blue)
}

.office-derching {
    --accent: var(--green)
}

.office-wulfertshausen {
    --accent: var(--wine)
}

.notice {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 20px 0
}

footer {
    border-top: 1px solid var(--edge);
    padding-top: 20px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px
}

@media(max-width:950px) {
    .intro {
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 30px
    }

    .community {
        order: 0;
        padding-top: 12px
    }

    .main-logo {
        width: 205px
    }

    .parishes {
        order: 1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 12px;
        width: 100%;
        pointer-events: auto
    }

    .parish {
        grid-column: auto !important;
        grid-row: auto !important;
        font-size: 17px;
        min-height: 95px;
        padding: 16px 12px 16px 16px;
        border-left-width: 6px
    }

    .arrow {
        font-size: 30px
    }

    .claim {
        white-space: normal
    }

    .offices {
        margin-top: 42px
    }
}

@media(max-width:580px) {
    .page {
        padding: 20px 18px
    }

    .intro {
        gap: 24px
    }

    .main-logo {
        width: 160px;
        margin-bottom: 16px
    }

    .community h1 {
        font-size: 43px
    }

    .community h1 span {
        font-size: .48em
    }

    .claim {
        font-size: 17px;
        margin-top: 18px
    }

    .parishes {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .parish {
        min-height: 73px;
        font-size: 19px;
        padding: 13px 14px 13px 18px
    }

    .parish small {
        display: inline;
        font-weight: 440
    }

    .parish small:after {
        content: ' · '
    }

    .office-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .office {
        padding: 19px
    }

    .offices {
        margin-top: 36px
    }

    .offices h2 {
        margin-bottom: 20px
    }

    .office h3 {
        font-size: 18px
    }
}

@media(prefers-reduced-motion:reduce) {
    .parish {
        transition: none
    }

    .parish:hover {
        transform: none
    }
}