.germany-page {
    width: min(1220px, calc(100% - 34px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.germany-header {
    align-items: flex-end;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
}

.germany-header-main {
    align-items: center;
    display: flex;
    gap: 24px;
    min-width: 0;
}

.germany-header img {
    display: block;
    width: 118px;
}

.germany-powered-badge {
    align-items: flex-end;
    color: #01579b;
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 5px;
    justify-content: flex-start;
    padding: 2px 0 0;
    text-decoration: none;
    white-space: nowrap;
}

.germany-powered-badge:hover {
    text-decoration: none;
}

.germany-powered-badge span {
    color: #667783;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: lowercase;
    white-space: nowrap;
}

.germany-powered-badge strong {
    color: black;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.1;
}

.germany-header h1 {
    color: black;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 6px;
}

.germany-header p {
    color: #555;
    font-size: 12pt;
    font-weight: 300;
    margin: 0;
}

.germany-section {
    margin: 36px 0 54px;
}

.germany-section-title {
    align-items: end;
    border-bottom: 1px solid #e3e3e3;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.germany-section-title h2 {
    color: black;
    font-size: 31px;
    font-weight: 400;
    line-height: 1.15;
    margin: 0;
}

.germany-section-title p {
    color: #666;
    font-size: 11pt;
    font-weight: 300;
    margin: 0;
}

.germany-card-grid {
    display: grid;
    gap: 17px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.germany-state-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.germany-card {
    content-visibility: auto;
    contain-intrinsic-size: 310px 280px;
    background: white;
    border: 1px solid #dedede;
    border-radius: 18px;
    color: black;
    overflow: hidden;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.germany-card:hover {
    border-color: #b8c9d6;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.germany-card-main {
    color: inherit;
    display: block;
    text-decoration: none;
}

.germany-card-main:hover {
    color: inherit;
    text-decoration: none;
}

.germany-card-image {
    aspect-ratio: 1.72 / 1;
    background: #f4f4f4;
    border-bottom: 1px solid #e4e4e4;
    overflow: hidden;
}

.germany-card-image img,
.germany-hero img,
.germany-snapshot-card img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.germany-card-body {
    padding: 14px 15px 8px;
}

.germany-card-kicker,
.germany-eyebrow {
    color: #6b6b6b;
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 5px;
    text-transform: uppercase;
}

.germany-card h3 {
    color: black;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.18;
    margin: 0 0 7px;
}

.germany-card-meta {
    padding: 0 15px 16px;
}

.germany-card-meta p {
    color: #444;
    font-size: 10.5pt;
    font-weight: 300;
    line-height: 1.35;
    margin: 0 0 4px;
}

.germany-card-meta a {
    color: #01579b;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.germany-card-meta a:hover {
    text-decoration: underline;
}

.germany-hero {
    background: white;
    border: 1px solid #dedede;
    border-radius: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    min-height: 420px;
    overflow: hidden;
}

.germany-hero-copy {
    align-self: center;
    padding: 34px;
}

.germany-hero-copy h2 {
    color: black;
    font-size: 46px;
    font-weight: 650;
    line-height: 1.06;
    margin: 0 0 14px;
}

.germany-hero-copy p {
    color: #333;
    font-size: 13pt;
    font-weight: 300;
    line-height: 1.65;
    margin: 0 0 18px;
}

.germany-hero-link {
    align-items: center;
    color: #01579b;
    display: inline-flex;
    gap: 5px;
    overflow-wrap: anywhere;
}

.germany-hero-link i {
    font-size: 17px;
}

.germany-snapshot-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.germany-snapshot-card {
    background: white;
    border: 1px solid #dedede;
    border-radius: 18px;
    overflow: hidden;
}

.germany-snapshot-card button {
    aspect-ratio: 1.72 / 1;
    background: #f4f4f4;
    border: 0;
    cursor: pointer;
    display: block;
    padding: 0;
    width: 100%;
}

.germany-snapshot-card div {
    padding: 15px 16px 17px;
}

.germany-snapshot-card h3 {
    color: black;
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 7px;
}

.germany-snapshot-card p {
    color: #01579b;
    font-size: 10.5pt;
    font-weight: 300;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.germany-two-col {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.germany-info-card {
    background: white;
    border: 1px solid #dedede;
    border-radius: 18px;
    padding: 20px;
}

.germany-info-card h2 {
    color: black;
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 10px;
}

.germany-info-card p,
.germany-info-card a {
    font-size: 11pt;
    font-weight: 300;
    line-height: 1.55;
}

.germany-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.germany-related-list a {
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    color: #01579b;
    padding: 6px 11px;
}

.germany-modal[hidden] {
    display: none;
}

.germany-modal {
    inset: 0;
    position: fixed;
    z-index: 1000;
}

.germany-modal-backdrop {
    background: rgba(18, 23, 28, 0.56);
    border: 0;
    inset: 0;
    position: absolute;
}

.germany-modal-panel {
    background: white;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    left: 50%;
    max-height: calc(100vh - 34px);
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(980px, calc(100vw - 34px));
}

.germany-modal-header {
    align-items: flex-start;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 18px 20px 16px;
}

.germany-modal-header h2 {
    color: black;
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 5px;
}

.germany-modal-close {
    align-items: center;
    background: white;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    color: #01579b;
    cursor: pointer;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.germany-modal iframe {
    aspect-ratio: 1.91 / 1;
    border: 0;
    display: block;
    max-height: calc(100vh - 180px);
    min-height: 280px;
    width: 100%;
}

.germany-detail-page {
    min-height: 100vh;
    background: #f3f3f3;
    color: #1f2933;
    font-family: Poppins, Arial, sans-serif;
}

.germany-portal-header {
    background: white;
    border-bottom: 1px solid #dedede;
}

.germany-portal-nav {
    align-items: center;
    background: transparent;
    box-shadow: none;
    display: flex;
    gap: 24px;
    height: auto;
    justify-content: space-between;
    line-height: normal;
    margin: 0 auto;
    min-height: 76px;
    padding: 9px 0;
    width: min(1160px, calc(100% - 32px));
}

.germany-portal-brand img {
    display: block;
    height: auto;
    max-width: 42vw;
    width: 116px;
}

.germany-portal-nav-links {
    align-items: center;
    display: flex;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
}

.germany-portal-nav-links a {
    color: #1f2933;
    text-decoration: none;
}

.germany-portal-hero {
    display: grid;
    min-height: 390px;
    overflow: hidden;
    place-items: center;
    position: relative;
}

.germany-portal-hero > img {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    position: absolute;
    width: 100%;
}

.germany-portal-hero-shade {
    background: linear-gradient(rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.58));
    inset: 0;
    position: absolute;
}

.germany-photo-credit {
    bottom: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 9px;
    font-weight: 300;
    left: 10px;
    position: absolute;
    right: 10px;
    text-align: right;
    z-index: 2;
}

.germany-photo-credit a {
    color: rgba(255, 255, 255, 0.88);
}

.germany-portal-hero-content {
    color: white;
    margin: 0 auto;
    padding: 74px 0 68px;
    position: relative;
    text-align: center;
    width: min(930px, calc(100% - 32px));
    z-index: 1;
}

.germany-portal-eyebrow {
    color: var(--portal-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.germany-portal-hero-content h1,
.germany-section-heading h2,
.germany-portal-actions h2,
.germany-directory-group h3,
.germany-info-card h2 {
    color: inherit;
    font-family: Poppins, Arial, sans-serif;
    letter-spacing: 0;
    margin: 0;
}

.germany-portal-hero-content h1 {
    font-size: 44px;
    font-weight: 650;
    line-height: 1.12;
}

.germany-portal-hero-content > p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    margin: 18px auto 0;
    max-width: 780px;
}

.germany-portal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.germany-detail-page .button {
    align-items: center;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    text-decoration: none;
}

.germany-detail-page .button.primary {
    background: var(--portal-accent);
    color: white;
}

.germany-detail-page .button.secondary {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--portal-accent);
}

.germany-portal-intro,
.germany-portal-actions,
.germany-highlight-swipe,
.germany-portal-timeline,
.germany-portal-directory,
.germany-detail-page .germany-two-col,
.germany-related-portals {
    margin: 48px auto;
    width: min(1160px, calc(100% - 32px));
}

.germany-portal-intro {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    margin-top: 50px;
    padding: 20px 32px;
    position: relative;
}

.germany-portal-intro::before {
    background: var(--portal-accent);
    content: "";
    height: 3px;
    left: 50%;
    position: absolute;
    top: -27px;
    transform: translateX(-50%);
    width: 200px;
}

.germany-portal-intro p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

.germany-portal-actions {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.germany-portal-action-card {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    color: inherit;
    display: block;
    text-decoration: none;
}

.germany-portal-action-card:hover {
    color: inherit;
    text-decoration: none;
}

.germany-portal-action-card img {
    aspect-ratio: 16 / 5.8;
    display: block;
    filter: saturate(0.95);
    object-fit: cover;
    object-position: top center;
    width: 100%;
}

.germany-portal-action-card > div {
    border-left: 3px solid var(--portal-accent);
    padding: 18px 18px 20px;
}

.germany-portal-actions h2 {
    color: #1f2933;
    font-size: 25px;
    font-weight: 600;
}

.germany-portal-actions p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0 14px;
}

.germany-portal-actions span,
.germany-directory-actions a,
.germany-directory-actions button {
    color: var(--portal-accent);
}

.germany-highlight-swipe {
    --post-swipe-accent: var(--portal-accent);
}

.germany-section-heading {
    margin-bottom: 22px;
    max-width: 760px;
}

.germany-section-heading h2 {
    color: #1f2933;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}

.germany-section-heading p:not(.germany-portal-eyebrow) {
    color: #52606d;
    line-height: 1.65;
}

.germany-portal-timeline {
    background: #1f2933;
    color: white;
    padding: 34px;
}

.germany-portal-timeline .germany-section-heading h2 {
    color: white;
}

.germany-portal-timeline .germany-section-heading p:not(.germany-portal-eyebrow) {
    color: rgba(255, 255, 255, 0.78);
}

.germany-year-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.germany-year-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-family: Poppins, Arial, sans-serif;
    font-size: 14px;
    min-width: 78px;
    padding: 10px 14px;
    text-align: center;
}

.germany-year-button:hover,
.germany-year-button.is-active {
    background: white;
    color: var(--portal-accent);
    text-decoration: none;
}

.germany-timeline-preview {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: grid;
    grid-template-columns: minmax(240px, 420px) 1fr;
    overflow: hidden;
}

.germany-timeline-image {
    background: rgba(255, 255, 255, 0.10);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    min-height: 230px;
    text-decoration: none;
}

.germany-timeline-image img {
    display: block;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    object-position: top center;
    width: 100%;
}

.germany-timeline-body {
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: space-between;
    padding: 24px;
}

.germany-timeline-body h3 {
    color: white;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.germany-timeline-body p {
    color: #d7e2ea;
    line-height: 1.55;
    margin: 8px 0 0;
}

.germany-timeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.germany-directory-group {
    margin: 34px 0;
}

.germany-directory-group h3 {
    border-bottom: 1px solid #d7dfe8;
    color: #1f2933;
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 9px;
}

.germany-directory-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.germany-directory-item {
    background: white;
    border-left: 3px solid var(--portal-accent);
    box-shadow: 0 8px 20px rgba(31, 41, 51, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.germany-directory-item.is-unavailable {
    filter: grayscale(0.86);
    opacity: 0.58;
}

.germany-directory-shot {
    aspect-ratio: 1.72 / 1;
    background: #f5f5f5 url("/static/images/screenshot_dummy.png") center top / cover no-repeat;
    border-bottom: 1px solid #e4e4e4;
    overflow: hidden;
    text-decoration: none;
}

.germany-directory-shot img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    width: 100%;
}

.germany-directory-body {
    padding: 16px 18px 0;
}

.germany-directory-item h4 {
    color: #1f2933;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 8px;
}

.germany-directory-item p {
    color: #52606d;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.germany-directory-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding: 0 18px 18px;
}

.germany-directory-actions button,
.germany-directory-actions a,
.post-swipe-actions button {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

.germany-directory-actions button:disabled {
    color: #8f99a3;
    cursor: default;
    text-decoration: none;
}

.germany-detail-page .germany-info-card {
    border-top: 4px solid var(--portal-accent);
    border-radius: 0;
}

.germany-powered-line {
    color: #52606d;
    font-size: 13px;
    margin-top: 14px;
}

.germany-powered-line a,
.germany-powered-band a {
    color: #01579b;
}

.germany-powered-band {
    align-items: center;
    background: white;
    border: 1px solid #dedede;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 18px auto 54px;
    padding: 16px 18px;
    width: min(1160px, calc(100% - 32px));
}

.germany-powered-band p {
    color: #52606d;
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}

.germany-powered-band > a {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

@media (max-width: 760px) {
    .germany-highlight-swipe {
        margin-bottom: 34px;
        min-width: 0;
        width: min(100% - 28px, 560px);
    }

    .germany-highlight-swipe .post-swipe-stage {
        aspect-ratio: 1.92 / 1;
        min-height: 0;
        min-width: 0;
        width: 100%;
    }

    .germany-highlight-swipe .post-swipe-card {
        border-radius: 14px;
        left: 8%;
        width: 84%;
    }

    .germany-highlight-swipe .post-swipe-overlay {
        padding: 44px 14px 13px;
    }

    .germany-highlight-swipe .post-swipe-overlay span {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .germany-highlight-swipe .post-swipe-overlay h2 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 18px;
        line-height: 1.16;
        overflow: hidden;
        padding-right: 34px;
    }

}

@media (max-width: 900px) {
    .germany-portal-nav {
        min-height: 72px;
    }

    .germany-portal-nav-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .germany-portal-actions,
    .germany-directory-grid,
    .germany-timeline-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .germany-portal-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .germany-portal-brand img {
        max-width: 58vw;
        width: 104px;
    }

    .germany-portal-hero-content h1 {
        font-size: 34px;
    }

    .germany-powered-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .germany-powered-band > a {
        text-align: left;
    }

    .germany-portal-actions,
    .germany-directory-grid,
    .germany-timeline-preview {
        grid-template-columns: 1fr;
    }

    .germany-portal-timeline {
        padding: 22px;
    }

    .germany-timeline-image {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }
}

@media (max-width: 980px) {
    .germany-card-grid,
    .germany-state-grid,
    .germany-snapshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .germany-hero {
        grid-template-columns: 1fr;
    }

    .germany-hero img {
        aspect-ratio: 1.72 / 1;
    }
}

@media (max-width: 640px) {
    .germany-page {
        width: min(100% - 24px, 940px);
        padding-top: 26px;
    }

    .germany-header {
        align-items: center;
        flex-direction: column;
        gap: 15px;
    }

    .germany-powered-badge {
        align-items: baseline;
        align-self: center;
        flex-direction: row;
        gap: 6px;
        padding-top: 0;
    }

    .germany-header-main img {
        width: 78px;
    }

    .germany-header h1 {
        font-size: 32px;
    }

    .germany-section-title,
    .germany-two-col {
        display: block;
    }

    .germany-card-grid,
    .germany-state-grid,
    .germany-snapshot-grid {
        grid-template-columns: 1fr;
    }

    .germany-hero-copy {
        padding: 24px;
    }

    .germany-hero-copy h2 {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .germany-header-main {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        width: 100%;
    }

    .germany-header-main img {
        width: 70px;
    }

    .germany-header h1 {
        margin-bottom: 7px;
    }

    .germany-header p {
        font-size: clamp(10px, 3.2vw, 13px);
        white-space: nowrap;
    }

    .germany-powered-badge strong {
        font-size: 15px;
    }
}
