/* Shared mobile refinement for Flutlicht, Vereinsheim and Olympia. */
@media (max-width: 900px) {
    .owm-site {
        overflow-x: hidden;
    }

    .owm-main-links {
        display: none;
    }

    .owm-home-about {
        grid-template-columns: minmax(0, 1fr);
    }

    .owm-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .owm-section-heading > p {
        max-width: 680px;
    }
}

@media (max-width: 700px) {
    .owm-public-nav {
        min-height: 68px;
        padding: 10px 18px;
    }

    .owm-brand {
        min-width: 0;
    }

    .owm-brand > span:last-child {
        min-width: 0;
    }

    .owm-brand strong,
    .owm-brand span {
        overflow-wrap: anywhere;
    }

    .owm-home-link {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .owm-home-hero {
        min-height: auto;
    }

    .owm-home-hero-inner {
        width: 100%;
        padding: 52px 22px;
    }

    .owm-home-hero h1 {
        font-size: 38px;
        line-height: 1.02;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .owm-home-hero p {
        margin-top: 20px;
        font-size: 17px;
        line-height: 1.55;
    }

    .owm-home-actions {
        gap: 10px;
        margin-top: 26px;
    }

    .owm-home-actions a,
    .owm-home-cta a {
        width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: center;
    }

    .owm-home-about,
    .owm-home-section,
    .owm-membership-section,
    .owm-people-sections {
        padding: 52px 20px;
    }

    .owm-home-about {
        gap: 30px;
    }

    .owm-about-heading h2,
    .owm-section-heading h2,
    .owm-membership-heading h2,
    .owm-people-group-heading h2 {
        max-width: 100%;
        font-size: 34px;
        line-height: 1.06;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
    }

    .owm-about-copy,
    .owm-article-content {
        font-size: 17px;
    }

    .owm-about-image {
        margin-top: 22px;
    }

    .owm-about-contact {
        align-items: flex-start;
        padding: 16px;
    }

    .owm-about-contact-avatar {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .owm-news-grid,
    .owm-event-grid,
    .owm-home-team-grid,
    .owm-sponsor-grid,
    .owm-contact-grid,
    .owm-people-grid,
    .owm-membership-fees,
    .owm-membership-steps,
    .owm-event-info {
        grid-template-columns: minmax(0, 1fr);
    }

    .owm-news-card:first-child {
        grid-column: auto;
        grid-row: auto;
    }

    .owm-news-card:first-child .owm-news-image,
    .owm-news-image {
        min-height: 0;
        height: 210px;
    }

    .owm-news-body,
    .owm-home-team-body {
        padding: 22px;
    }

    /* Keep news images in their own frame even when theme image rules set auto height. */
    .owm-site .owm-news-card {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .owm-site .owm-news-card .owm-news-image {
        position: relative;
        display: grid;
        place-items: center;
        flex: 0 0 210px;
        width: 100%;
        height: 210px;
        min-height: 0;
        overflow: hidden;
    }

    .owm-site .owm-news-card .owm-news-image img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100% !important;
        max-height: none;
        object-fit: cover;
    }

    .owm-site .owm-news-card .owm-news-body {
        position: relative;
        z-index: 1;
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
        padding: 22px;
        background: #fff;
    }

    .owm-team-card-top {
        min-height: 125px;
        padding: 18px;
    }

    .owm-contact-card,
    .owm-event-card,
    .owm-people-card {
        min-width: 0;
        padding: 18px;
    }

    .owm-event-card {
        align-items: flex-start;
        gap: 14px;
    }

    .owm-event-card-date {
        width: 64px;
        height: 70px;
    }

    .owm-event-card > div:last-child,
    .owm-contact-card > div,
    .owm-people-card > div {
        min-width: 0;
    }

    .owm-event-card h3,
    .owm-contact-card h3,
    .owm-people-card h3,
    .owm-home-team-body h3 {
        overflow-wrap: anywhere;
    }

    .owm-home-cta {
        align-items: stretch;
        flex-direction: column;
        margin: 34px 18px;
        padding: 30px 22px;
    }

    .owm-home-cta h2 {
        font-size: 29px;
        line-height: 1.12;
    }

    .owm-team-hero-inner,
    .owm-article-hero-inner,
    .owm-event-hero-inner {
        padding: 46px 20px;
    }

    .owm-team-hero h1,
    .owm-article-hero h1,
    .owm-event-hero h1 {
        font-size: 36px;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .owm-team-main,
    .owm-article-main,
    .owm-event-main {
        padding: 34px 18px 52px;
    }

    .owm-team-card {
        min-width: 0;
        padding: 20px;
    }

    .owm-team-facts,
    .owm-public-staff-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .owm-contact-page,
    .owm-sponsor-page,
    .owm-legal-page {
        padding: 38px 18px 52px;
    }

    .owm-contact-profile,
    .owm-sponsor-profile {
        grid-template-columns: minmax(0, 1fr);
    }

    .owm-contact-portrait,
    .owm-sponsor-profile-logo {
        min-height: 240px;
    }

    .owm-contact-details,
    .owm-sponsor-details,
    .owm-legal-content {
        min-width: 0;
        padding: 26px 22px;
    }

    .owm-contact-details h1,
    .owm-sponsor-details h1,
    .owm-legal-content h1 {
        font-size: 34px;
        overflow-wrap: anywhere;
    }

    .owm-membership-hero,
    .owm-people-hero {
        padding: 58px 20px;
    }

    .owm-membership-hero h1,
    .owm-people-hero h1 {
        font-size: 38px;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .owm-membership-hero > div,
    .owm-people-hero p {
        font-size: 17px;
        line-height: 1.6;
    }

    .owm-membership-fees article {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 20px;
    }

    .owm-membership-fees strong {
        text-align: left;
    }

    .owm-membership-steps article {
        padding: 22px;
    }

    .owm-people-group + .owm-people-group {
        margin-top: 48px;
    }

    .owm-people-avatar {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
    }

    .owm-public-footer {
        align-items: center;
        flex-direction: column;
        gap: 12px;
        padding: 25px 20px;
    }
}

@media (max-width: 420px) {
    .owm-brand > span:last-child > span {
        display: none;
    }

    .owm-brand strong {
        font-size: 14px;
    }

    .owm-home-hero h1,
    .owm-membership-hero h1,
    .owm-people-hero h1 {
        font-size: 33px;
    }

    .owm-team-hero h1,
    .owm-article-hero h1,
    .owm-event-hero h1,
    .owm-contact-details h1,
    .owm-sponsor-details h1,
    .owm-legal-content h1 {
        font-size: 31px;
    }

    .owm-about-heading h2,
    .owm-section-heading h2,
    .owm-membership-heading h2,
    .owm-people-group-heading h2 {
        font-size: 30px;
    }

    .owm-contact-card,
    .owm-people-card,
    .owm-about-contact {
        flex-direction: column;
    }
}
