/*
 * Verbindlicher Neuseenland-Standard fuer alle Unterseiten.
 * Die Startseite bleibt bewusst ausgenommen.
 * Neue Standardseiten verwenden automatisch page-vorlage-unterseite.php.
 */

:root {
    --ni-subpage-hero-height: 415px;
    --ni-subpage-hero-padding: 40px;
    --ni-subpage-title-size: clamp(2.1rem, 4vw, 3.2rem);
    --ni-subpage-title-line-height: 1.15;
}

:is(
    .immo-archive-hero,
    .immo-detail-head,
    .immo-unavailable,
    .flex-page-hero,
    .tip-hero,
    .qs-hero,
    .revocation-hero,
    .legal-hero
) {
    align-items: center !important;
    box-sizing: border-box !important;
    display: grid !important;
    min-height: var(--ni-subpage-hero-height) !important;
    padding-block: var(--ni-subpage-hero-padding) !important;
}

:is(
    .immo-archive-hero h1,
    .immo-detail-head h1,
    .immo-unavailable h1,
    .flex-page-hero h1,
    .flex-page-hero--anja-thamm-immobilienmaklerin h1,
    .tip-hero h1,
    .qs-hero h1,
    .revocation-hero h1,
    .legal-hero h1
) {
    font-family: "Inter", Arial, sans-serif !important;
    font-size: var(--ni-subpage-title-size) !important;
    hyphens: none !important;
    letter-spacing: -.025em !important;
    line-height: var(--ni-subpage-title-line-height) !important;
    overflow-wrap: normal !important;
    text-wrap: balance;
    word-break: normal !important;
}

:is(
    .immo-archive-hero p:not(.immo-eyebrow),
    .flex-page-lead,
    .tip-hero-lead,
    .qs-lead,
    .revocation-lead
) {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
}

:is(
    .immo-eyebrow,
    .flex-page-eyebrow,
    .tip-hero .tip-eyebrow,
    .qs-hero .qs-eyebrow,
    .revocation-hero .revocation-eyebrow,
    .legal-hero p
) {
    font-size: .82rem !important;
    letter-spacing: .04em !important;
    margin-bottom: 12px !important;
}

:is(
    .flex-page-back,
    .tip-back,
    .qs-back,
    .revocation-back,
    .legal-back,
    .immo-back-link
) {
    display: none !important;
}

:is(
    .immo-archive-hero-inner,
    .flex-page-hero-grid,
    .tip-hero-grid,
    .qs-hero-grid,
    .revocation-hero-grid
) {
    align-items: center !important;
    column-gap: clamp(36px, 5vw, 64px) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
}

.flex-page-hero-grid {
    grid-template-areas:
        "meta contact"
        "title contact"
        "lead contact" !important;
    row-gap: 12px !important;
}

:is(.tip-hero-actions, .qs-hero-actions) {
    margin-top: 22px !important;
}

.tip-hero .tip-reward-card,
.qs-hero .qs-hero-card {
    padding: 24px 26px !important;
}

.tip-hero .tip-reward-card span,
.qs-hero .qs-hero-card > span {
    font-size: .82rem !important;
    margin-bottom: 8px !important;
}

.tip-hero .tip-reward-card strong {
    font-size: 1.75rem !important;
    line-height: 1.1 !important;
}

.tip-hero .tip-reward-card p {
    margin: 14px 0 8px !important;
    padding-top: 12px !important;
}

.tip-hero .tip-reward-card small {
    font-size: .78rem !important;
    line-height: 1.45 !important;
}

.qs-hero .qs-hero-card > strong {
    font-size: 1.65rem !important;
    line-height: 1.1 !important;
}

.qs-hero .qs-hero-card ul {
    gap: 6px !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
}

.qs-hero .qs-hero-card li {
    font-size: .86rem !important;
    line-height: 1.35 !important;
    padding-left: 22px !important;
}

.revocation-hero .revocation-steps {
    padding: 22px 24px !important;
}

.revocation-hero .revocation-steps ol {
    gap: 14px !important;
}

.revocation-hero .revocation-steps li {
    gap: 12px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
}

.revocation-hero .revocation-steps li + li {
    padding-top: 14px !important;
}

.revocation-hero .revocation-steps li > span {
    height: 34px !important;
    width: 34px !important;
}

.revocation-hero .revocation-steps strong {
    font-size: .9rem !important;
    margin-bottom: 2px !important;
}

.revocation-hero .revocation-steps p {
    font-size: .82rem !important;
    line-height: 1.4 !important;
}

@media (max-width: 900px) {
    :root {
        --ni-subpage-hero-height: 0px;
        --ni-subpage-hero-padding: 48px;
        --ni-subpage-title-size: clamp(2rem, 6vw, 2.75rem);
    }

    :is(
        .immo-archive-hero,
        .immo-detail-head,
        .immo-unavailable,
        .flex-page-hero,
        .tip-hero,
        .qs-hero,
        .revocation-hero,
        .legal-hero
    ) {
        min-height: auto !important;
    }

    :is(
        .immo-archive-hero-inner,
        .flex-page-hero-grid,
        .tip-hero-grid,
        .qs-hero-grid,
        .revocation-hero-grid
    ) {
        grid-template-columns: 1fr !important;
        row-gap: 28px !important;
    }

    .flex-page-hero-grid {
        grid-template-areas:
            "meta"
            "title"
            "lead"
            "contact" !important;
    }
}

@media (max-width: 620px) {
    :root {
        --ni-subpage-hero-padding: 36px;
        --ni-subpage-title-size: clamp(1.8rem, 9vw, 2.35rem);
        --ni-subpage-title-line-height: 1.12;
    }

    :is(
        .immo-archive-hero p:not(.immo-eyebrow),
        .flex-page-lead,
        .tip-hero-lead,
        .qs-lead,
        .revocation-lead
    ) {
        font-size: 1rem !important;
    }
}
