/*
 * Wasserverband Nord — responsive refinement
 * Version 1.2.4
 *
 * No dedicated mobile XD artboard was supplied. These rules therefore keep
 * the desktop design language while making the existing start page robust on
 * phones and small tablets. Loaded after project.css so the original desktop
 * implementation remains untouched.
 */

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    body {
        overflow-x: hidden;
    }
}

.wvn-site button,
.wvn-site a {
    -webkit-tap-highlight-color: rgba(3, 73, 145, .12);
}

/* Off-canvas navigation also has to behave correctly with mobile browser UI. */
.wvn-menu,
.wvn-menu__panel {
    min-height: 100vh;
    min-height: 100dvh;
}

.wvn-menu__panel {
    overscroll-behavior: contain;
}

/* Small tablet / large phone portrait. */
@media (max-width: 820px) {
    .wvn-offer__grid {
        grid-template-columns: 1fr;
        gap: 82px;
    }

    .wvn-offer-card p {
        min-height: 0;
    }

    /* The desktop career composition is highly absolute-positioned. On narrow
       screens it becomes a normal document flow so text can never collide. */
    .wvn-career {
        min-height: 0;
        padding-bottom: 72px;
    }

    .wvn-career__image {
        position: relative;
        inset: auto;
        width: 100%;
        height: 430px;
        background-position: center 40%;
    }

    .wvn-career__wave {
        display: none;
    }

    .wvn-career h2 {
        position: relative;
        top: auto;
        left: auto;
        width: min(calc(100% - 64px), 650px);
        margin: -72px 32px 36px;
        font-size: clamp(54px, 10vw, 76px);
        line-height: 1.04;
        text-align: left;
    }

    .wvn-career__copy {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: auto;
        margin: 0 32px;
    }

    .wvn-career p {
        max-width: 620px;
        margin-bottom: 34px;
    }
}

@media (max-width: 767px) {
    :root {
        --wvn-page-padding: 20px;
        --site-scroll-offset: 96px;
    }

    body {
        font-size: 16px;
        line-height: 1.4;
    }

    .wvn-shell {
        width: calc(100% - 40px);
    }

    .wvn-eyebrow {
        margin-bottom: 10px;
        font-size: 15px;
        letter-spacing: .06em;
    }

    .wvn-section-title {
        font-size: clamp(42px, 11vw, 54px);
        letter-spacing: .07em;
        line-height: 1.06;
    }

    .wvn-button {
        min-height: 48px;
        max-width: 100%;
        padding: 11px 20px;
        font-size: 15px;
        letter-spacing: .07em;
        white-space: normal;
        text-align: center;
    }

    /* Header */
    .wvn-header__inner {
        min-height: 100px;
        gap: 12px;
    }

    .wvn-header__brand {
        width: min(48vw, 184px);
        min-width: 150px;
    }

    .wvn-menu-toggle {
        width: 58px;
        min-width: 58px;
        height: 58px;
        min-height: 58px;
    }

    .wvn-menu-toggle img {
        width: 28px;
    }

    .wvn-menu__panel {
        width: 100%;
        padding:
            max(22px, env(safe-area-inset-top))
            max(20px, env(safe-area-inset-right))
            max(36px, env(safe-area-inset-bottom))
            max(20px, env(safe-area-inset-left));
    }

    .wvn-menu__top {
        margin-bottom: 24px;
        font-size: 24px;
    }

    .wvn-menu__close {
        min-width: 48px;
        min-height: 48px;
        font-size: 42px;
    }

    .wvn-menu__list > li > a {
        padding: 13px 0;
        font-size: clamp(21px, 6.5vw, 27px);
        line-height: 1.12;
    }

    .wvn-menu__list ul {
        padding: 0 0 14px 14px;
    }

    .wvn-menu__list ul a {
        padding: 7px 0;
        font-size: 16px;
        line-height: 1.25;
    }

    .wvn-menu__portal {
        width: 100%;
        margin-top: 24px;
    }

    /* Hero */
    .wvn-hero {
        min-height: 620px;
        background-position: 60% top;
    }

    .wvn-hero::after {
        height: 150px;
    }

    .wvn-hero__content {
        padding-top: 150px;
    }

    .wvn-hero h1 {
        width: 100%;
        font-size: clamp(44px, 13.6vw, 58px);
        letter-spacing: .075em;
        line-height: 1.02;
    }

    .wvn-hero p {
        width: 100%;
        margin-top: 24px;
        font-size: clamp(21px, 6.8vw, 28px);
        letter-spacing: .07em;
        line-height: 1.15;
    }

    .wvn-hero__utility {
        display: none;
    }

    /* Customer portal */
    .wvn-portal-section {
        min-height: 0;
        padding: 46px 0 128px;
    }

    .wvn-portal-section::after {
        height: 118px;
    }

    .wvn-portal-section__grid {
        width: calc(100% - 40px);
        gap: 48px;
    }

    .wvn-portal-section__intro {
        padding-top: 0;
    }

    .wvn-portal-section h2 {
        margin-bottom: 26px;
        font-size: clamp(43px, 12vw, 55px);
        letter-spacing: .075em;
        line-height: 1.03;
    }

    .wvn-portal-section p {
        width: 100%;
        margin-bottom: 30px;
        font-size: 17px;
        line-height: 1.45;
    }

    .wvn-portal-login {
        width: 100%;
        min-height: 72px;
        gap: 12px;
        padding: 9px 14px;
        border-width: 3px;
        border-radius: 22px;
    }

    .wvn-portal-login img {
        width: auto;
        height: 46px;
        flex: 0 0 auto;
    }

    .wvn-portal-login small {
        font-size: 13px;
        line-height: 1.15;
    }

    .wvn-portal-login strong {
        font-size: 17px;
        letter-spacing: .07em;
        line-height: 1.05;
    }

    .wvn-service-grid {
        gap: 20px;
    }

    .wvn-service-card {
        min-height: 178px;
        gap: 20px;
        padding: 24px 16px;
        border-radius: 12px;
    }

    .wvn-service-card img {
        width: auto;
        height: 88px;
        max-width: 102px;
    }

    .wvn-service-card span {
        font-size: 17px;
        letter-spacing: .07em;
        line-height: 1.12;
    }

    /* Offer */
    .wvn-offer {
        min-height: 0;
        padding: 66px 0 94px;
        background-position: center 100px;
        background-size: 920px auto;
    }

    .wvn-offer .wvn-section-title {
        margin-bottom: 62px;
    }

    .wvn-offer__grid {
        gap: 72px;
    }

    .wvn-offer-card__icon {
        width: min(230px, 72vw);
        margin-bottom: 6px;
    }

    .wvn-offer-card .wvn-eyebrow {
        font-size: 15px;
    }

    .wvn-offer-card h3 {
        margin-bottom: 24px;
        font-size: clamp(44px, 12vw, 52px);
        letter-spacing: .07em;
    }

    .wvn-offer-card p {
        min-height: 0;
        margin-bottom: 30px;
        font-size: 17px;
        line-height: 1.45;
    }

    /* Career */
    .wvn-career {
        padding-bottom: 58px;
    }

    .wvn-career__image {
        height: 350px;
        background-position: center 42%;
    }

    .wvn-career h2 {
        width: calc(100% - 40px);
        margin: -55px 20px 30px;
        font-size: clamp(44px, 13vw, 58px);
        letter-spacing: .045em;
    }

    .wvn-career__copy {
        margin: 0 20px;
    }

    .wvn-career p {
        margin-bottom: 30px;
        font-size: 17px;
        letter-spacing: .07em;
        line-height: 1.35;
    }

    /* News */
    .wvn-news {
        min-height: 0;
        padding: 72px 0 88px;
    }

    .wvn-news .wvn-section-title {
        font-size: clamp(42px, 11vw, 52px);
    }

    .wvn-news__controls {
        display: none;
    }

    .wvn-news__track {
        margin-top: 34px;
        padding-left: 0;
        grid-auto-columns: min(82vw, 320px);
        gap: 20px;
        scroll-padding-inline: 20px;
    }

    .wvn-news-card img {
        width: 100%;
        height: auto;
        margin-bottom: 24px;
        aspect-ratio: 397 / 317;
    }

    .wvn-news-card h3 {
        min-height: 0;
        margin-bottom: 14px;
        font-size: 20px;
        letter-spacing: .07em;
        line-height: 1.24;
    }

    .wvn-news-card p {
        min-height: 0;
        font-size: 16px;
        line-height: 1.4;
    }

    .wvn-news-card > a {
        margin-top: 18px;
        padding-top: 12px;
        font-size: 16px;
        letter-spacing: .07em;
    }

    .wvn-news__more {
        position: static;
        margin-top: 42px;
    }

    /* Future */
    .wvn-future {
        min-height: 0;
        padding-top: 72px;
    }

    .wvn-future::before {
        height: 105px;
    }

    .wvn-future__copy {
        min-height: 0;
        padding: 64px 20px 72px;
    }

    .wvn-future h2 {
        width: 100%;
        margin-bottom: 28px;
        font-size: clamp(44px, 12vw, 54px);
        letter-spacing: .07em;
        line-height: 1.04;
    }

    .wvn-future p {
        width: 100%;
        margin-bottom: 32px;
        font-size: 17px;
        line-height: 1.45;
    }

    .wvn-future__image {
        min-height: 380px;
        height: 380px;
        background-position: center 42%;
    }

    /* Infrastructure / quality */
    .wvn-feature-card > img {
        min-height: 340px;
        height: 340px;
    }

    .wvn-feature-card__copy {
        min-height: 0;
        padding: 56px 20px 72px;
    }

    .wvn-feature-card .wvn-eyebrow {
        margin-bottom: 18px;
        font-size: 15px;
        letter-spacing: .06em;
    }

    .wvn-feature-card h2 {
        width: 100%;
        margin-bottom: 28px;
        font-size: clamp(43px, 11.5vw, 52px);
        letter-spacing: .07em;
        line-height: 1.04;
    }

    .wvn-feature-card p {
        width: 100%;
        margin-bottom: 32px;
        font-size: 17px;
        line-height: 1.45;
    }

    /* About */
    .wvn-about__image {
        min-height: 360px;
        height: 360px;
        background-position: center 44%;
    }

    .wvn-about__image::before {
        height: 100px;
    }

    .wvn-about__image::after {
        height: 88px;
    }

    .wvn-about__body {
        min-height: 0;
        padding: 38px 0 72px;
    }

    .wvn-about__grid {
        gap: 48px;
    }

    .wvn-about__intro h2 {
        margin-bottom: 26px;
        font-size: clamp(43px, 11.5vw, 52px);
        letter-spacing: .07em;
        line-height: 1.04;
    }

    .wvn-about__intro p {
        width: 100%;
        font-size: 17px;
        line-height: 1.45;
    }

    .wvn-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 16px;
    }

    .wvn-values a {
        gap: 16px;
    }

    .wvn-values img {
        width: auto;
        height: 94px;
        max-width: 112px;
    }

    .wvn-values span {
        font-size: 14px;
        letter-spacing: .05em;
        line-height: 1.1;
    }

    .wvn-about__button {
        margin-top: 48px;
    }

    /* Social */
    .wvn-social {
        min-height: 0;
        padding: 68px 0 72px;
    }

    .wvn-social h2 {
        margin-bottom: 34px;
        font-size: 25px;
        letter-spacing: .07em;
        line-height: 1.25;
    }

    .wvn-social__gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .wvn-social__links {
        gap: 36px;
        margin-top: 38px;
    }

    .wvn-social__links a {
        display: inline-grid;
        min-width: 48px;
        min-height: 48px;
        place-items: center;
    }

    .wvn-social__links img {
        width: auto;
        height: 44px;
        max-width: 48px;
    }

    /* Contact */
    .wvn-contact-cta {
        min-height: 0;
        padding: 58px 0 64px;
    }

    .wvn-contact-cta__grid {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: center;
    }

    .wvn-contact-cta__grid > img {
        width: min(310px, 86vw);
        justify-self: center;
    }

    .wvn-contact-cta h2 {
        margin-bottom: 28px;
        font-size: clamp(42px, 11.5vw, 52px);
        letter-spacing: .07em;
        line-height: 1.04;
    }

    /* Footer */
    .wvn-footer {
        min-height: 0;
        padding: 68px 0 92px;
    }

    .wvn-footer__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .wvn-footer__brand {
        width: min(220px, 70vw);
    }

    .wvn-footer-login {
        width: min(100%, 330px);
        margin-top: 34px;
    }

    .wvn-footer__account-note {
        margin-top: 28px !important;
    }

    .wvn-footer__social {
        margin-top: 30px;
    }

    .wvn-footer__navigation ul {
        margin-bottom: 30px;
    }

    .wvn-footer__navigation li + li {
        margin-top: 14px;
    }

    .wvn-footer h2 {
        margin-bottom: 14px;
        font-size: 18px;
    }

    .wvn-footer p,
    .wvn-footer li,
    .wvn-footer a {
        font-size: 16px;
        line-height: 1.4;
    }

    .wvn-footer__meta a,
    .wvn-footer__meta span,
    .wvn-footer__cookie {
        font-size: 15px;
    }

    .wvn-emergency-link {
        width: min(100%, 330px);
        padding: 11px 24px;
        border-width: 3px;
    }

    .wvn-emergency-link strong {
        font-size: 18px;
    }

    .wvn-footer__cookie {
        margin-top: 24px;
    }

    .wvn-footer__deco {
        width: 118px;
        opacity: .72;
    }

    .wvn-default-page {
        padding-top: 130px;
        padding-bottom: 60px;
    }

    .wvn-startpage__additional {
        padding-block: 48px;
    }
}

/* Compact phones (e.g. 320–390 px CSS viewport). */
@media (max-width: 420px) {
    :root {
        --wvn-page-padding: 16px;
    }

    .wvn-shell {
        width: calc(100% - 32px);
    }

    .wvn-header__inner {
        min-height: 92px;
    }

    .wvn-header__brand {
        width: min(50vw, 168px);
        min-width: 142px;
    }

    .wvn-menu-toggle {
        width: 54px;
        min-width: 54px;
        height: 54px;
        min-height: 54px;
    }

    .wvn-hero {
        min-height: 580px;
        background-position: 62% top;
    }

    .wvn-hero::after {
        height: 132px;
    }

    .wvn-hero__content {
        padding-top: 138px;
    }

    .wvn-hero h1 {
        font-size: clamp(40px, 12.5vw, 50px);
    }

    .wvn-hero p {
        font-size: clamp(19px, 6.3vw, 25px);
    }

    .wvn-portal-section__grid {
        width: calc(100% - 32px);
    }

    .wvn-portal-section h2,
    .wvn-future h2,
    .wvn-feature-card h2,
    .wvn-about__intro h2,
    .wvn-contact-cta h2 {
        font-size: clamp(38px, 11vw, 46px);
    }

    .wvn-service-card {
        min-height: 164px;
    }

    .wvn-service-card img {
        height: 80px;
        max-width: 94px;
    }

    .wvn-career__image {
        height: 320px;
    }

    .wvn-career h2 {
        width: calc(100% - 32px);
        margin: -48px 16px 26px;
        font-size: clamp(40px, 12vw, 50px);
    }

    .wvn-career__copy {
        margin-inline: 16px;
    }

    .wvn-news__track {
        grid-auto-columns: 86vw;
    }

    .wvn-future__copy,
    .wvn-feature-card__copy {
        padding-right: 16px;
        padding-left: 16px;
    }

    .wvn-values img {
        height: 84px;
        max-width: 98px;
    }

    .wvn-contact-cta__grid > img {
        width: min(280px, 86vw);
    }

    .wvn-footer__deco {
        width: 96px;
        opacity: .5;
    }
}

/* Landscape phones: keep the menu and hero usable despite the low viewport. */
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
    .wvn-header__inner {
        min-height: 78px;
    }

    .wvn-header__brand {
        width: 150px;
    }

    .wvn-menu-toggle {
        width: 52px;
        min-width: 52px;
        height: 52px;
        min-height: 52px;
    }

    .wvn-hero {
        min-height: 520px;
    }

    .wvn-hero__content {
        padding-top: 118px;
    }

    .wvn-hero h1 {
        font-size: 44px;
    }

    .wvn-hero p {
        margin-top: 18px;
        font-size: 23px;
    }
}
