/* Aus kontakt/index.php zentral ausgelagerte Gestaltung */
.oesbv-contact-page {
    --page-blue: var(--blue, #005691);
    --page-blue-dark: var(--blue-dark, #003f6b);
    --page-red: var(--red, #e30613);
    --page-text: var(--text, #1a2530);
    --page-muted: var(--muted, #4a5568);
    --page-light: var(--light, #f8fafc);
    --page-border: var(--border, #e2e8f0);
    --page-radius: 18px;
    --page-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --page-shadow-soft: 0 7px 20px rgba(15, 23, 42, 0.055);

    font-family: var(--font-body, 'Inter', Arial, sans-serif);
    color: var(--page-text);
    background:
        radial-gradient(circle at top left, rgba(0, 86, 145, 0.075), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.oesbv-contact-page-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: clamp(360px, 46vw, 510px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg,
            rgba(255,255,255,.97) 0%,
            rgba(255,255,255,.88) 30%,
            rgba(255,255,255,.42) 52%,
            rgba(255,255,255,.08) 76%),
        url('/bilder/css/header_hero_1200.webp') center center/cover no-repeat;
    border-bottom: 1px solid var(--page-border);
    margin-bottom: 42px;
}

.oesbv-contact-page-hero-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(54px, 7vw, 88px) 20px;
}

.oesbv-contact-page-hero h1 {
    font-family: var(--font-display, 'Oswald', Arial, sans-serif);
    color: var(--page-blue);
    font-size: clamp(2.4rem, 5.6vw, 4.8rem);
    text-transform: uppercase;
    margin: 0 0 18px;
}

.oesbv-contact-page-hero p {
    max-width: 680px;
    color: var(--page-blue-dark);
    line-height: 1.65;
    font-weight: 700;
}

.oesbv-contact-page-divider {
    width: 78px;
    height: 5px;
    background: var(--page-red);
    border-radius: 999px;
    margin: 0 0 20px;
}

.oesbv-contact-page-kicker {
    display: block;
    color: var(--page-red);
    font-family: var(--font-display, 'Oswald', Arial, sans-serif);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 12px;
}

.oesbv-contact-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 78px;
    box-sizing: border-box;
}

.oesbv-contact-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 54px;
}

.oesbv-office-card,
.oesbv-contact-note-card {
    background: #ffffff;
    border: 1px solid var(--page-border);
    border-radius: var(--page-radius);
    box-shadow: var(--page-shadow-soft);
    box-sizing: border-box;
    overflow: hidden;
}

.oesbv-office-card {
    padding: clamp(26px, 4vw, 36px);
    position: relative;
}

.oesbv-office-card::before,
.oesbv-person-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 7px;
    height: 100%;
    background: var(--page-red);
}

.oesbv-office-label {
    display: inline-flex;
    color: var(--page-red);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.oesbv-office-card h2,
.oesbv-person-content h2,
.oesbv-section-header h2 {
    font-family: var(--font-display, 'Oswald', Arial, sans-serif);
    color: var(--page-blue);
    text-transform: uppercase;
    font-weight: 900;
}

.oesbv-office-card h2 {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: 0.045em;
    margin: 0 0 22px;
}

.oesbv-contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    font-style: normal;
}

.oesbv-contact-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--page-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.oesbv-contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 86, 145, 0.08);
    color: var(--page-blue);
    line-height: 1;
}

.oesbv-contact-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.oesbv-contact-row strong {
    display: block;
    color: var(--page-blue-dark);
    font-weight: 900;
    margin-bottom: 2px;
}

.oesbv-contact-row span,
.oesbv-contact-row a {
    color: var(--page-text);
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.oesbv-contact-row a,
.oesbv-contact-btn,
.oesbv-partner-link,
.oesbv-page-btn,
.oesbv-person-contact a {
    font-weight: 900;
}

.oesbv-contact-row a:hover,
.oesbv-person-contact a:hover {
    color: var(--page-red) !important;
}

.oesbv-contact-actions,
.oesbv-person-contact,
.oesbv-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.oesbv-contact-actions {
    margin-top: 24px;
}

.oesbv-contact-btn,
.oesbv-page-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border-radius: 7px;
    font-family: var(--font-display, 'Oswald', Arial, sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.065em;
    font-size: 0.82rem;
    padding: 11px 17px;
    text-decoration: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.oesbv-contact-btn.primary,
.oesbv-page-btn.primary {
    background: var(--page-blue);
    color: #ffffff !important;
    border: 2px solid var(--page-blue);
}

.oesbv-contact-btn.secondary,
.oesbv-page-btn.secondary {
    background: #ffffff;
    color: var(--page-blue) !important;
    border: 2px solid var(--page-border);
}

.oesbv-contact-btn:hover,
.oesbv-contact-btn:focus-visible,
.oesbv-page-btn:hover,
.oesbv-page-btn:focus-visible,
.oesbv-person-contact a:hover,
.oesbv-person-contact a:focus-visible,
.oesbv-partner-card:hover,
.oesbv-partner-card:focus-visible {
    outline: 3px solid rgba(227, 6, 19, 0.24);
    outline-offset: 3px;
    transform: translateY(-1px);
}

.oesbv-contact-btn.primary:hover,
.oesbv-contact-btn.primary:focus-visible,
.oesbv-page-btn.primary:hover,
.oesbv-page-btn.primary:focus-visible {
    background: var(--page-blue-dark);
    border-color: var(--page-blue-dark);
}

.oesbv-contact-btn.secondary:hover,
.oesbv-contact-btn.secondary:focus-visible,
.oesbv-page-btn.secondary:hover,
.oesbv-page-btn.secondary:focus-visible {
    border-color: var(--page-blue);
    background: var(--page-light);
}

.oesbv-contact-note-card {
    padding: clamp(24px, 4vw, 32px);
    background: linear-gradient(145deg, rgba(0, 86, 145, 0.97), rgba(0, 63, 107, 0.98));
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.oesbv-contact-note-card h3 {
    font-family: var(--font-display, 'Oswald', Arial, sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.055em;
    font-size: 1.55rem;
    line-height: 1.12;
    margin: 0 0 14px;
    color: #ffffff;
}

.oesbv-contact-note-card p {
    color: rgba(255,255,255,0.86);
    line-height: 1.7;
    margin: 0 0 22px;
}

.oesbv-contact-note-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.oesbv-contact-note-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: rgba(255,255,255,0.92);
    line-height: 1.45;
    font-weight: 700;
}

.oesbv-contact-note-list li::before {
    content: "✓";
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    font-weight: 900;
}

.oesbv-contact-person {
    margin: 0 0 54px;
}

.oesbv-person-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--page-border);
    border-radius: var(--page-radius);
    box-shadow: var(--page-shadow-soft);
    padding: clamp(22px, 4vw, 32px);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.oesbv-person-photo-wrap {
    width: 190px;
    height: 190px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--page-light);
    border: 1px solid var(--page-border);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.oesbv-person-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oesbv-person-content h2 {
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    line-height: 1.08;
    letter-spacing: 0.045em;
    margin: 6px 0 12px;
}

.oesbv-person-content p {
    color: var(--page-muted);
    line-height: 1.7;
    margin: 0 0 18px;
    max-width: 720px;
}

.oesbv-person-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--page-light);
    border: 1px solid var(--page-border);
    color: var(--page-blue) !important;
    text-decoration: none !important;
}

.oesbv-section-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--page-border);
}

.oesbv-section-header h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.1;
    letter-spacing: 0.055em;
    margin: 0;
}

.oesbv-section-header p {
    color: var(--page-muted);
    margin: 7px 0 0;
    line-height: 1.6;
    max-width: 660px;
}

.oesbv-partner-count {
    flex: 0 0 auto;
    background: #ffffff;
    border: 1px solid var(--page-border);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 900;
    color: var(--page-blue);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.045);
}

.oesbv-partner-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.oesbv-partner-card {
    background: #ffffff;
    border: 1px solid var(--page-border);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none !important;
    color: var(--page-text) !important;
    box-shadow: var(--page-shadow-soft);
    min-height: 170px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.oesbv-partner-card:hover,
.oesbv-partner-card:focus-visible {
    box-shadow: var(--page-shadow);
    border-color: rgba(0, 86, 145, 0.25);
}

.oesbv-flag-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--page-light);
    border: 1px solid var(--page-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
}

.oesbv-flag-img {
    width: 34px;
    height: auto;
    border: 1px solid #d9e2ec;
    border-radius: 3px;
    display: block;
}

.oesbv-partner-name {
    font-weight: 900;
    font-size: 0.92rem;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--page-text);
}

.oesbv-partner-country {
    font-size: 0.72rem;
    color: var(--page-red);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.065em;
    margin-top: auto;
}

.oesbv-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.oesbv-page-actions {
    margin-top: 54px;
    padding-top: 28px;
    border-top: 1px solid var(--page-border);
    justify-content: center;
    gap: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .oesbv-contact-btn,
    .oesbv-page-btn,
    .oesbv-partner-card,
    .oesbv-person-contact a {
        transition: none !important;
    }

    .oesbv-contact-btn:hover,
    .oesbv-contact-btn:focus-visible,
    .oesbv-page-btn:hover,
    .oesbv-page-btn:focus-visible,
    .oesbv-person-contact a:hover,
    .oesbv-person-contact a:focus-visible,
    .oesbv-partner-card:hover,
    .oesbv-partner-card:focus-visible {
        transform: none !important;
    }
}

@media (max-width: 1050px) {
    .oesbv-partner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .oesbv-contact-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .oesbv-contact-page-hero {
        min-height: 330px;
        margin-bottom: 32px;
        background:
            linear-gradient(90deg,
                rgba(255,255,255,.97) 0%,
                rgba(255,255,255,.86) 55%,
                rgba(255,255,255,.22) 100%),
            url('/bilder/css/header_hero_960.webp') 62% center/cover no-repeat;
    }

    .oesbv-contact-page-hero-inner {
        padding: 50px 16px;
    }

    .oesbv-contact-wrapper {
        padding: 0 14px 64px;
    }

    .oesbv-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .oesbv-partner-count {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .oesbv-office-card {
        padding: 26px 20px;
    }

    .oesbv-office-card::before,
    .oesbv-person-card::before {
        width: 100%;
        height: 6px;
    }

    .oesbv-contact-row {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .oesbv-contact-actions,
    .oesbv-page-actions,
    .oesbv-person-contact {
        flex-direction: column;
    }

    .oesbv-contact-btn,
    .oesbv-page-btn,
    .oesbv-person-contact a {
        width: 100%;
        box-sizing: border-box;
    }

    .oesbv-person-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 28px 20px;
    }

    .oesbv-person-photo-wrap {
        width: 170px;
        height: 170px;
    }

    .oesbv-partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .oesbv-partner-card {
        min-height: 165px;
        padding: 18px 12px;
    }
}

@media (max-width: 460px) {
    .oesbv-contact-page-hero h1 {
        font-size: 2.35rem;
    }

    .oesbv-contact-wrapper {
        padding: 0 12px 58px;
    }

    .oesbv-partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .oesbv-partner-card {
        min-height: 158px;
        padding: 16px 10px;
    }

    .oesbv-partner-name {
        font-size: 0.84rem;
    }

    .oesbv-office-card h2 {
        font-size: 1.45rem;
    }
}

@media (max-width: 340px) {
    .oesbv-partner-grid {
        grid-template-columns: 1fr;
    }
}
