.home-page {
    --legacy-blue: #0a58ca;
    --legacy-button: #3498db;
    color: #2c3e50;
    background: #fff;
}

.home-page .legacy-email-stage, .home-page--email :where(.email-service, .legacy-overview) {
    content-visibility: auto;
    contain-intrinsic-size: auto 48rem;
}

.home-page--email .legacy-email-stage { content-visibility: visible; }

.legacy-overview {
    display: grid;
    height: max(0px, calc(100svh - var(--site-header-height, 5.25rem)));
    grid-template-rows: minmax(0, 1fr) auto;
    border-bottom: 1px solid rgba(44, 62, 80, .1);
    background: #fff;
}

.legacy-hero {
    display: grid;
    grid-template-columns: minmax(20rem, 1fr) minmax(20rem, 1fr);
    gap: clamp(1.5rem, 4.5vw, 4rem);
    align-items: center;
    justify-content: center;
    padding-block: clamp(.9rem, 3vh, 2rem);
    text-align: center;
}

.legacy-hero__picture {
    width: min(100%, 62svh, 34rem);
    aspect-ratio: 4 / 3;
    justify-self: center;
    overflow: hidden;
    border-radius: .45rem;
    background: #e7ebf0;
    box-shadow: 0 .2rem .65rem rgba(25, 43, 61, .12);
}

.legacy-hero__picture img { width: 100%; height: 100%; object-fit: cover; }

.legacy-hero__copy { max-width: 36rem; }
.legacy-hero h1, .legacy-hero h2 { margin: 0; color: #2c3e50; font: 700 clamp(2.35rem, 4.7vw, 4.4rem)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.035em; text-wrap: balance; }
.legacy-hero__copy p { margin: 1.15rem 0 0; color: #71808b; font: 400 clamp(1rem, 1.5vw, 1.25rem)/1.55 Georgia, "Times New Roman", serif; }

.legacy-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    justify-content: center;
    margin-top: 1.7rem;
}

.home-page .legacy-cta {
    display: inline-flex;
    min-height: 3.2rem;
    align-items: center;
    justify-content: center;
    padding: .85rem 2rem;
    border: 1px solid var(--legacy-button);
    border-radius: .7rem;
    color: #fff;
    background: var(--legacy-button);
    box-shadow: 0 .2rem .45rem rgba(0, 0, 0, .12);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.home-page .legacy-cta:hover { color: #fff; background: #2980b9; box-shadow: 0 .38rem .75rem rgba(0, 0, 0, .18); transform: translateY(-.16rem); }
.home-page .legacy-cta--secondary { border-color: #91c6e8; color: #175f91; background: #dceffc; box-shadow: none; }
.home-page .legacy-cta--secondary:hover { border-color: #6fb1dc; color: #104b72; background: #cce7f8; box-shadow: none; }

.legacy-features { display: flex; flex-wrap: wrap; gap: clamp(.7rem, 2vw, 1.5rem); padding-block: .65rem clamp(1rem, 2.5vh, 1.4rem); }

.legacy-feature {
    display: grid;
    flex: 1 1 17rem;
    min-height: 8.7rem;
    align-content: start;
    padding: 1.15rem;
    border: 1px solid rgba(44, 62, 80, .08);
    border-radius: .5rem;
    background: #f9f9f9;
    box-shadow: 0 .15rem .42rem rgba(0, 0, 0, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}

.legacy-feature:hover { box-shadow: 0 .35rem .75rem rgba(0, 0, 0, .14); transform: translateY(-.2rem); }
.legacy-feature img { width: 5.7rem; height: 2.85rem; object-fit: contain; object-position: left center; }
.legacy-feature h2 { margin: .5rem 0 .35rem; color: #34495e; font: 700 1.28rem/1.16 Georgia, "Times New Roman", serif; }
.legacy-feature p { margin: 0; color: #71808b; font: 400 .84rem/1.42 Georgia, "Times New Roman", serif; }

.legacy-email-stage {
    position: relative;
    display: grid;
    min-height: 100svh;
    overflow: hidden;
    place-items: center;
    color: #fff;
    background: #263746;
}

.home-page--email .legacy-email-stage { min-height: calc(100svh - var(--site-header-height, 5.25rem)); }
.legacy-email-stage__picture, .legacy-email-stage__picture img, .legacy-email-stage__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.legacy-email-stage__picture img { object-fit: cover; object-position: center; }
.legacy-email-stage__shade { background: rgba(0, 0, 0, .5); }

.legacy-email-stage__content { position: relative; z-index: 1; display: grid; justify-items: center; padding-block: 3rem; text-align: center; }
.legacy-email-stage h1, .legacy-email-stage h2 { width: 100%; max-width: 22ch; margin: 0; color: #fff; font: 700 clamp(2.2rem, 5vw, 3.8rem)/1.08 Georgia, "Times New Roman", serif; text-wrap: balance; }

.legacy-email-form { display: flex; width: min(75vw, 56.25rem); max-width: 100%; flex-wrap: wrap; gap: .65rem; justify-content: center; margin-top: 2rem; }

.legacy-email-address {
    display: flex;
    flex: 1 1 32rem;
    min-width: 0;
    min-height: 3.55rem;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid transparent;
    color: #111;
    background: #fff;
    box-shadow: 0 .25rem .7rem rgba(0, 0, 0, .16);
    cursor: text;
}

.legacy-email-address[data-invalid] { border-color: #e35c60; }

.legacy-email-address input {
    min-width: 0;
    padding: .8rem .3rem;
    border: 0;
    outline: 0;
    color: #111;
    background: transparent;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

/* One visual input: the caret identifies the focused address part. Override
   the site-wide focus outline so it cannot cut through the @ or .de. */
.ontubs-site-surface .legacy-email-address input:is(:hover, :focus, :focus-visible) { border: 0; outline: none; box-shadow: none; background: transparent; }

.legacy-email-address__local { flex: 3 1 17rem; padding-left: 1rem !important; text-align: right; }
.legacy-email-address__domain { flex: 1 1 9rem; }

.legacy-email-address__separator, .legacy-email-address__suffix {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    color: #34495e;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 650;
    user-select: none;
}

.legacy-email-address__separator { padding-inline: clamp(.75rem, 2.2vw, 1.65rem); }
.legacy-email-address__suffix { padding: 0 1rem 0 .12rem; }

.legacy-email-form button {
    flex: 0 0 auto;
    min-height: 3.55rem;
    padding: .8rem 1.9rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--legacy-button);
    box-shadow: 0 .2rem .45rem rgba(0, 0, 0, .18);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.legacy-email-form button:hover { background: #2980b9; box-shadow: 0 .38rem .8rem rgba(0, 0, 0, .24); transform: translateY(-.16rem); }
.legacy-email-stage__note { max-width: 40rem; margin: .8rem 0 0; color: rgba(255, 255, 255, .82); font-size: .72rem; line-height: 1.45; }
.legacy-email-saved-orders { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .75rem; max-width: 56rem; margin-top: .7rem; }
.legacy-email-saved-orders[hidden] { display: none; }
.legacy-email-saved-orders a { color: #fff; font-size: .82rem; text-decoration: underline; text-underline-offset: .16rem; }

.email-service { display: grid; grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.8fr); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4rem, 8vw, 7rem); }
.email-service__intro h2 { max-width: 15ch; margin: 0; color: #24384d; font: 700 clamp(2rem, 4vw, 3.3rem)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.email-service__intro > p:last-child { max-width: 31rem; margin: 1.2rem 0 0; color: #667887; line-height: 1.7; }
.email-service__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(44, 62, 80, .18); }
.email-service__facts article { min-height: 11.5rem; padding: 1.35rem 1.4rem 1.5rem 0; border-bottom: 1px solid rgba(44, 62, 80, .18); }
.email-service__facts article:nth-child(odd) { padding-right: 1.4rem; border-right: 1px solid rgba(44, 62, 80, .18); }
.email-service__facts article:nth-child(even) { padding-left: 1.4rem; }
.email-service__facts span { color: #0a58ca; font: 750 .68rem/1.2 ui-monospace, monospace; letter-spacing: .12em; }
.email-service__facts h3 { margin: .8rem 0 .55rem; color: #2c3e50; font-size: 1.08rem; }
.email-service__facts p { margin: 0; color: #667887; font-size: .9rem; line-height: 1.62; }
.email-service__price { background: #f1f7ff; }

@media (max-width: 54rem) {
    .legacy-overview { height: auto; min-height: calc(100svh - var(--site-header-height, 7.4rem)); grid-template-rows: auto auto; }
    .legacy-hero { grid-template-columns: minmax(0, 1fr); }
    .legacy-hero { padding-block: 2rem; }
    .legacy-hero__picture, .legacy-hero__copy { width: min(100%, 40rem); margin-inline: auto; }
    .legacy-hero__picture { height: auto; aspect-ratio: 4 / 3; }
    .legacy-features { padding-bottom: 2rem; }
    .legacy-email-stage, .home-page--email .legacy-email-stage { min-height: max(36rem, calc(100svh - 7.4rem)); }
}

@media (max-width: 48rem) {
    .legacy-hero { gap: 1.35rem; }
    .legacy-hero h1, .legacy-hero h2 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .legacy-hero__copy p { font-size: 1rem; }
    .legacy-feature { flex-basis: 100%; min-height: auto; }
    .legacy-email-stage__content { padding-block: 2rem; }
    .legacy-email-form { width: 100%; }
    .legacy-email-address, .legacy-email-form button { flex-basis: 100%; width: 100%; }
    .legacy-email-address__local { width: 0; flex: 2.2 1 0; padding-left: .65rem !important; }
    .legacy-email-address__domain { width: 0; flex: 1 1 0; }
    .legacy-email-address__separator { padding-inline: clamp(.35rem, 2.5vw, .8rem); }
    .legacy-email-address__suffix { padding-right: .65rem; }
    .email-service { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 28rem) {
    .legacy-hero { padding-block: 1.25rem; }
    .legacy-hero__picture { border-radius: .3rem; }
    .legacy-email-stage h1, .legacy-email-stage h2 { font-size: 2.05rem; }
    .legacy-hero__actions { display: grid; }
    .email-service__facts { grid-template-columns: minmax(0, 1fr); }
    .email-service__facts article, .email-service__facts article:nth-child(odd), .email-service__facts article:nth-child(even) { min-height: 0; padding: 1.2rem 0; border-right: 0; }
}

@media (min-width: 54.001rem) and (max-height: 47rem) {
    .legacy-overview { grid-template-rows: minmax(0, 1fr) auto; }
    .legacy-hero { padding-block: 1.1rem; }
    .legacy-hero__picture { width: min(100%, 58svh, 31rem); }
    .legacy-feature { min-height: 8rem; padding-block: .9rem; }
    .legacy-feature img { width: 4.8rem; height: 2.4rem; }
}
