/* Layout for Foerdermitgliedschaft overview and article pages */
:root {
    --fm-brand: #144c7a;
    --fm-brand-dark: #0e3a5f;
    --fm-ink: #1a1b1f;
    --fm-text: #32343a;
    --fm-muted: #6b6f76;
    --fm-border: #e7e9ee;
    --fm-surface: #fff;
    --fm-shadow: 0 2px 10px rgba(20, 30, 50, 0.05);
    --fm-shadow-hover: 0 10px 24px rgba(20, 30, 50, 0.1);
}

.fm-page {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 36px;
    text-align: left;
    box-sizing: border-box;
}

.default-section.fm-page {
    margin-top: 64px;
    padding-bottom: 0;
}

.page-shell.no-sidebar+.impressum-div {
    margin-top: 84px;
}

.page-shell:not(.no-sidebar)+.impressum-div {
    margin-top: 72px;
}

.page-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 8px;
}

.page-shell.no-sidebar {
    display: block;
}

.page-shell.no-sidebar .main-column {
    max-width: 1180px;
    margin: 0 auto;
}

.main-column {
    min-width: 0;
}

.sidebar-column {
    min-width: 0;
}

.breadcrumb {
    font-size: 13px;
    color: var(--fm-muted);
    margin-bottom: 22px;
    letter-spacing: 0.01em;
}

.breadcrumb a {
    color: var(--fm-brand);
    text-decoration: none;
    display: inline;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-intro {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.page-title {
    font-size: clamp(1.85rem, 3.3vw, 2.7rem);
    line-height: 1.2;
    margin: 0;
    color: var(--fm-ink);
    font-weight: 550;
    letter-spacing: -0.01em;
}

.page-lead {
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.42;
    color: var(--fm-text);
    margin: 0;
}

.annual-goal {
    max-width: 980px;
    margin: 0 auto 54px;
    padding: 22px 0 0;
    border-top: 1px solid var(--fm-border);
}

.annual-goal-header {
    margin-bottom: 18px;
}

.annual-goal h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: var(--fm-ink);
    font-weight: 600;
}

.annual-goal-header p {
    margin: 5px 0 0;
    color: var(--fm-muted);
    font-size: 14px;
    line-height: 1.4;
}

.annual-goal-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 14px;
}

.annual-goal-values div {
    border-top: 1px solid var(--fm-border);
    padding-top: 12px;
}

.annual-goal-values div:last-child {
    text-align: right;
}

.annual-goal-values span {
    display: block;
    margin-bottom: 4px;
    color: var(--fm-muted);
    font-size: 13px;
    line-height: 1.35;
}

.annual-goal-values strong {
    display: block;
    color: var(--fm-ink);
    font-size: 26px;
    line-height: 1.15;
    font-weight: 600;
}

.annual-goal-bar {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf2;
}

.annual-goal-progress {
    width: 64.3%;
    height: 100%;
    border-radius: inherit;
    background: var(--fm-brand);
}

.annual-goal-caption {
    margin: 10px auto 0;
    max-width: none;
    color: var(--fm-muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--fm-surface);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--fm-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fm-shadow-hover);
    border-color: #d5dce6;
}

.post-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #eef1f5;
}

.post-card-content {
    padding: 18px 20px 22px;
}

.post-card-title {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.32;
    color: var(--fm-ink);
    transition: color 0.2s ease;
}

.post-card:hover .post-card-title {
    color: var(--fm-brand);
}

.wp-article {
    border: 1px solid var(--fm-border);
    border-radius: 16px;
    background: var(--fm-surface);
    box-shadow: var(--fm-shadow);
    overflow: hidden;
}

.wp-article .hero-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.wp-article .hero-image-contain {
    height: 380px;
    object-fit: contain;
    background: #fff;
}

.wp-article-content {
    padding: 36px 40px 40px;
}

.wp-meta {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fm-brand);
    background: #eaf1f8;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.wp-article h1 {
    font-size: 38px;
    margin: 0 0 20px;
    line-height: 1.22;
    color: var(--fm-ink);
    font-weight: 600;
    max-width: 760px;
}

.wp-article h2 {
    font-size: 24px;
    margin: 34px 0 12px;
    line-height: 1.3;
    color: var(--fm-ink);
    font-weight: 600;
    padding-left: 14px;
    border-left: 4px solid var(--fm-brand);
    max-width: 720px;
}

.wp-article p,
.wp-article li {
    font-size: 17px;
    line-height: 1.75;
    color: var(--fm-text);
    max-width: 720px;
}

.wp-article p a {
    display: inline;
}

.wp-article p>a:only-child {
    display: inline-block;
}

.wp-article ul {
    margin: 10px 0 0;
    padding-left: 22px;
}

.wp-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--fm-border);
}

.wp-nav a {
    color: var(--fm-brand);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #eaf1f8;
    transition: background 0.2s ease, color 0.2s ease;
}

.wp-nav a:hover {
    background: var(--fm-brand);
    color: #fff;
}

.sidebar-widget {
    border: 2px solid var(--fm-border);
    border-radius: 16px;
    background: var(--fm-surface);
    box-shadow: var(--fm-shadow);
    padding: 22px;
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 600;
    color: var(--fm-ink);
}

.search-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.search-form input[type="search"],
.search-form button {
    box-sizing: border-box;
    height: 42px;
    font-family: inherit;
    line-height: 1.2;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 1px solid #d5d9e0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    margin: 0;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--fm-brand);
    box-shadow: 0 0 0 3px rgba(20, 76, 122, 0.15);
}

.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fm-brand);
    border-radius: 8px;
    background: var(--fm-brand);
    color: #fff;
    padding: 0 18px;
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.search-form button:hover {
    background: var(--fm-brand-dark);
    border-color: var(--fm-brand-dark);
}

.sidebar-cards {
    display: grid;
    gap: 12px;
}

.sidebar-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    border: 2px solid #d9e1ea;
    border-radius: 12px;
    padding: 10px;
    background: var(--fm-surface);
    box-shadow: 0 3px 10px rgba(20, 30, 50, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 30, 50, 0.1);
    border-color: #c5d1df;
}

.sidebar-card img {
    width: 94px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--fm-ink);
}

.sidebar-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
}

.sidebar-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fm-brand);
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list a {
    color: var(--fm-brand);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-list a:hover {
    text-decoration: underline;
}

@media screen and (min-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 992px) {
    .page-shell {
        grid-template-columns: minmax(0, 2.5fr) minmax(300px, 1fr);
        align-items: start;
    }

    .sidebar-column {
        position: sticky;
        top: 110px;
    }
}

@media screen and (min-width: 1200px) {
    .article-grid {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .fm-page {
        padding: 0 16px;
    }

    .page-title,
    .wp-article h1 {
        font-size: 28px;
    }

    .page-lead,
    .wp-article p,
    .wp-article li {
        font-size: 16px;
    }

    .annual-goal-values {
        display: block;
    }

    .annual-goal h2 {
        font-size: 17px;
    }

    .annual-goal-caption {
        margin-top: 6px;
        text-align: center;
        max-width: none;
    }

    .annual-goal-values div {
        margin-top: 14px;
    }

    .annual-goal-values div:last-child {
        text-align: left;
    }

    .annual-goal-values strong {
        font-size: 23px;
    }

    .wp-article-content {
        padding: 24px 22px 28px;
    }

    .wp-nav {
        flex-direction: column;
    }

    .wp-nav a {
        text-align: center;
    }
}