/* =========================================================================
   lp_auskunftscockpit_entgelttransparenz — Seitenspezifische Styles
   Wird nach design-system/*.css geladen.
   ========================================================================= */

/* Viewport-Hero: Sprunglinks bündig unter sticky Nav (space-3 würde ~12px Hero zeigen) */
html {
    scroll-padding-top: var(--header-h);
}

/* ── Pricing-Info-Karten ── */
.price-section {
    padding-block: var(--space-section);
}

.price-section>.container>h2,
.price-section>.container>.price-intro {
    text-align: center;
}

.price-intro {
    color: var(--text-muted);
    margin-block-end: var(--space-8);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: var(--space-6);
    margin-block-start: var(--space-8);
}

.price-card {
    background-color: var(--surface-default);
    border: 1px solid var(--border-default);
    border-radius: 0.75rem;
    padding: var(--space-7);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.price-card--highlighted {
    border-color: var(--brand-blue);
    border-width: 2px;
    padding-block-start: var(--space-4);
}

.price-badge {
    display: inline-block;
    background-color: var(--brand-blue);
    color: var(--text-on-brand);
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    text-align: center;
    padding: var(--space-1) var(--space-3);
    border-radius: 0.25rem;
    letter-spacing: 0.04em;
    align-self: flex-start;
}

.price-card__tier {
    font-size: var(--fs-14);
    font-weight: var(--fw-bold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-block-end: var(--space-1);
}

.price-card__amount {
    font-size: var(--fs-48);
    font-weight: var(--fw-900);
    color: var(--text-strong);
    line-height: var(--lh-tight);
}

.price-card__amount small {
    font-size: var(--fs-16);
    font-weight: var(--fw-regular);
    color: var(--text-muted);
    text-transform: none;
}

.price-card__range {
    font-size: var(--fs-18);
    font-weight: var(--fw-bold);
    color: var(--text-strong);
    margin-block-start: var(--space-2);
}

.price-card__setup {
    font-size: var(--fs-12);
    color: var(--text-muted);
    margin-block-start: var(--space-2);
}

.price-card__features {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.price-card__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--fs-14);
    line-height: var(--lh-snug);
}

.price-card__features li::before {
    content: "";
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    background-image: url("assets/img/icons/check.svg");
    background-size: contain;
    background-repeat: no-repeat;
    margin-top: 0.1em;
}

.price-reassurance {
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
    margin-block-start: var(--space-4);
    font-size: var(--fs-16);
    font-weight: var(--fw-bold);
    color: var(--text-strong);
}

.price-enterprise {
    text-align: center;
    margin-block-start: var(--space-5);
    font-size: var(--fs-16);
}

.price-enterprise a {
    font-weight: var(--fw-bold);
}

.price-disclaimer {
    text-align: center;
    margin-block-start: var(--space-5);
    color: var(--text-muted);
    font-size: var(--fs-14);
}

/* ── Logo (FORUM + AuskunftsCockpit, Seitenverhältnis Produktlogo ca. 9:1) ── */
#logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
}

@media (min-width: 48rem) {
    #logo {
        max-width: min(20rem, 38vw);
    }

    #logo.logo-ba {
        max-width: min(29rem, calc(100% - 3.5rem));
    }
}

@media (min-width: 75rem) {
    #logo {
        max-width: 22.5rem;
    }

    #logo.logo-ba {
        max-width: 29rem;
    }
}

#logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(1.75rem, 4vw, 2.5rem);
    object-fit: contain;
    object-position: left center;
}

#logo.logo-ba a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: min(29rem, 100%);
}

#logo.logo-ba img:first-child {
    flex-shrink: 0;
    display: inline;
    width: 3rem;
    height: auto;
    max-height: 3rem;
}

#logo.logo-ba img:last-child {
    flex: 1 1 auto;
    min-width: 0;
    display: inline;
    max-height: clamp(1.75rem, 4vw, 2.625rem);
    width: auto;
}

/* ── Hero-Text: manuelle Trennung (&shy;) statt hyphens:auto (fehlerhafte Silbentrennung) ── */
.hero__eyebrow,
.hero__tagline {
    hyphens: manual;
}

.hero__tagline {
    font-size: var(--fs-20);
    font-weight: var(--fw-300);
    margin-block-end: var(--space-5);
    opacity: 0.9;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

/* ── Hero mit Anfrageformular ── */
.hero--product .hero__overlay {
    /* Dunkler als Standard-Overlay (#0E3A66 / #082A4D) — besserer Kontrast für weiße Schrift */
    background: linear-gradient(100deg,
            rgba(8, 42, 77, 0.97) 0%,
            rgba(14, 58, 102, 0.94) 34%,
            rgba(14, 58, 102, 0.84) 54%,
            rgba(14, 58, 102, 0.52) 76%,
            rgba(14, 58, 102, 0.24) 100%);
}

.hero--product .hero__content {
    max-width: none;
    width: 100%;
    padding-inline: 0;
}

.hero__layout {
    display: grid;
    gap: var(--space-6);
    align-items: start;
    grid-template-columns: 1fr;
    grid-template-areas:
        "copy"
        "form";
}

.hero__copy {
    grid-area: copy;
}

.hero__form {
    grid-area: form;
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
}

.hero-form-card {
    background-color: var(--surface-default);
    color: var(--text-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-3);
    padding: var(--space-6);
}

.hero .hero-form-card h2,
.hero .hero-form-card p,
.hero .hero-form-card label,
.hero .hero-form-card a {
    color: inherit;
}

.hero .hero-form-card__header h2 {
    color: var(--text-strong);
}

.hero .hero-form-card__header p {
    color: var(--text-muted);
}

.hero .hero-form-card__privacy a {
    color: var(--brand-blue);
}

/* Hero-Links sind weiß (dunkler Overlay) — in der Card normale Link-Farben */
.hero .hero-form-card a:not(.btn) {
    color: var(--text-link);
    text-decoration-color: color-mix(in srgb, var(--text-link) 45%, transparent);
}

.hero .hero-form-card a:not(.btn):hover,
.hero .hero-form-card a:not(.btn):focus-visible {
    color: var(--text-link-hover);
    text-decoration-color: currentColor;
}

.hero .hero-form-card__privacy {
    color: var(--text-muted);
}

.hero .hero-form-card .form-group label {
    color: var(--text-strong);
}

.hero-form-card__header {
    margin-block-end: var(--space-5);
}

.hero-form-card__header h2 {
    font-size: var(--fs-24);
    font-weight: var(--fw-bold);
    margin-block-end: var(--space-2);
    text-wrap: balance;
}

.hero-form-card__header p {
    font-size: var(--fs-14);
    margin-block-end: 0;
}

.hero-form-card__privacy {
    font-size: var(--fs-12);
    line-height: var(--lh-snug);
    margin-block: 0;
}

.hero-form-card__intro {
    margin-block-end: var(--space-2);
}

.hero-form-card__title {
    font-size: var(--fs-20);
    font-weight: var(--fw-bold);
    margin-block: 0;
    text-wrap: balance;
}

.hero .hero-form-card__title {
    color: var(--text-strong);
}

.lp-form--hero {
    gap: var(--space-3) var(--space-4);
}

.lp-form--hero .form-group.form-md-6 {
    grid-column: span 6;
}

.lp-form--hero .form-group label {
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lp-form--hero .form-group label.plan-picker__option {
    text-transform: none;
}

.lp-form--hero .form-group input:not([type="checkbox"], [type="radio"]),
.lp-form--hero .form-group select {
    min-height: 2.75rem;
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-16);
    box-shadow: none;
}

.lp-form--hero .form-status {
    margin-block: 0;
}


/* Höhere Spezifität als .hero:not(.hero--inverse) .btn--primary (weiße Hero-CTAs) */
.hero .hero-form-card .btn--primary {
    --btn-bg: var(--brand-accent);
    --btn-fg: var(--text-strong);
    --btn-border: var(--brand-accent);
    --btn-bg-hover: var(--brand-accent-strong);
    --btn-fg-hover: var(--text-strong);
    --btn-border-hover: var(--brand-accent-strong);
    font-size: var(--fs-14);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero .hero-form-card [data-submit-demo].btn--primary {
    --btn-font-size: var(--fs-16);
    --btn-padding-y: var(--space-3);
    --btn-padding-x: var(--space-5);
    --btn-min-h: var(--min-touch);
    font-size: var(--fs-16);
    font-weight: var(--fw-black);
    min-height: var(--min-touch);
    padding: var(--space-3) var(--space-5);
}

/* ── Trust-Leiste (unter Hero) ── */
.trust-bar {
    padding-block: var(--space-4);
    background-color: var(--neutral-50, #f5f7fa);
    border-block-end: 1px solid var(--border-default);
}

.trust-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4) var(--space-6);
}

.trust-bar__publisher {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: min(100%, 16rem);
}

.trust-bar__logo {
    flex-shrink: 0;
    width: 2.75rem;
    height: auto;
}

.trust-bar__publisher-text {
    margin: 0;
    font-size: var(--fs-14);
    color: var(--text-muted);
    line-height: var(--lh-snug);
}

.trust-bar__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-bar__badges li {
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-primary, #0e3a66);
}

.trust-bar__badges li+li::before {
    content: "·";
    margin-inline-end: var(--space-4);
    font-weight: var(--fw-regular);
    color: var(--text-muted);
}

@media (max-width: 47.99rem) {
    .trust-bar__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.trust-bar__partner-logo {
    display: inline-block;
    height: 1rem;
    width: auto;
    vertical-align: -0.15em;
    margin-inline-start: 0.15em;
}

/* ── Hero-Kontaktzeile ── */
.hero__contact {
    margin-block: var(--space-3) var(--space-4);
    font-size: var(--fs-14);
    line-height: var(--lh-snug);
    color: var(--hero-text-muted, rgba(255, 255, 255, 0.88));
}

.hero__contact a {
    color: inherit;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}

.hero__contact a:hover,
.hero__contact a:focus-visible {
    text-decoration-color: currentColor;
}

/* ── Sektions-Eyebrow ── */
.section-eyebrow {
    margin-block-end: var(--space-2);
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary, #0e3a66);
}

.benefits-section .section-eyebrow,
.price-section .section-eyebrow {
    text-align: center;
}

/* ── Vimeo-Embed (Produktvideo) ── */
.video-section {
    padding-block: var(--space-section);
}

.video-section__intro {
    max-width: 56rem;
    margin-inline: auto;
    margin-block-end: var(--space-6);
    text-align: center;
    text-wrap: balance;
}

.video-section__intro p {
    margin-block: 0 var(--space-3);
    color: var(--text-muted);
}

.video-section__intro p:last-child {
    margin-block-end: 0;
}

.video-section__embed {
    position: relative;
    aspect-ratio: 10000 / 6561;
    max-width: 56rem;
    margin-inline: auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-3);
}

.video-section__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-section__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    max-width: 56rem;
    margin-inline: auto;
    background-color: var(--neutral-100, #eef1f6);
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: var(--fs-14);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.video-section__placeholder p {
    margin: 0;
}

/* ── Produktabbildungen ── */
.product-showcase {
    padding-block: var(--space-section);
}

.product-showcase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: var(--space-6) var(--space-7);
    align-items: start;
}

.product-showcase__item {
    margin: 0;
}

.product-showcase__item img {
    display: block;
    width: 100%;
    height: auto;
}

.product-showcase__item figcaption {
    margin-block-start: var(--space-3);
    font-size: var(--fs-14);
    line-height: var(--lh-snug);
    color: var(--text-muted);
    text-align: center;
    text-wrap: balance;
}

/* ── Jahrespreise in Preiskarten ── */
.price-card__yearly {
    margin-block-start: var(--space-3);
    font-size: var(--fs-14);
    line-height: var(--lh-snug);
    color: var(--text-muted);
}

.price-section>.container>.section-eyebrow {
    text-align: center;
}

/* ── Hero-Produktname unter H1 ── */
.hero__product-name {
    margin-block: var(--space-2) var(--space-3);
    font-size: var(--fs-16);
    font-weight: var(--fw-bold);
    color: var(--hero-text-muted, rgba(255, 255, 255, 0.88));
}

.hero--product .hero__product-name {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Mikro-Trust unter Demo-Button ── */
.hero-form-trust {
    margin-block-start: var(--space-3);
    margin-block-end: 0;
    text-align: center;
    font-size: var(--fs-12);
    line-height: var(--lh-snug);
    color: var(--text-muted);
}

/* ── Modus-Umschalter Demo / Bestellung ── */
.form-mode-switch {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-2);
    padding: var(--space-1);
    background-color: var(--neutral-100);
    border-radius: var(--radius-md);
    margin-block-end: var(--space-2);
}

.form-mode-switch__option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.form-mode-switch__option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.form-mode-switch__label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-md) - 2px);
    transition: background-color var(--duration-1) var(--ease-out),
        color var(--duration-1) var(--ease-out),
        box-shadow var(--duration-1) var(--ease-out);
}

.form-mode-switch__option input:focus-visible+.form-mode-switch__label {
    box-shadow: var(--focus-ring);
}

.form-mode-switch__option input:checked+.form-mode-switch__label {
    color: var(--text-strong);
    background-color: var(--surface-default);
    border-color: var(--border-default);
    box-shadow: var(--shadow-1);
}

.form-mode-switch__option:last-child input:not(:checked)+.form-mode-switch__label {
    color: var(--neutral-500);
    opacity: 0.72;
}

/* ── Bestell-Wizard ── */
.order-wizard__chrome {
    margin-block-end: var(--space-3);
}

.order-wizard__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.order-wizard__step-title {
    display: block;
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-strong);
    margin-block-end: var(--space-3);
}

.hero .order-wizard__step-title {
    color: var(--text-muted);
}

.order-wizard__progress {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.order-wizard__progress-item {
    display: block;
    line-height: 0;
}

.order-wizard__progress-item::before {
    content: "";
    display: block;
    width: 1.25rem;
    height: 2px;
    border-radius: var(--radius-pill);
    background-color: var(--border-default);
    transition: width var(--duration-2) var(--ease-out),
        background-color var(--duration-2) var(--ease-out),
        opacity var(--duration-2) var(--ease-out);
}

.order-wizard__progress-item.is-active::before {
    width: 1.75rem;
    background-color: color-mix(in srgb, var(--brand-blue) 55%, var(--border-default));
}

.order-wizard__progress-item.is-done::before {
    background-color: color-mix(in srgb, var(--brand-blue) 35%, var(--border-default));
}

.order-wizard__viewport {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-3) var(--space-4);
    align-content: start;
    min-height: 22rem;
}

.order-wizard__step-fields {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-3) var(--space-4);
}

.order-wizard__step-fields[hidden],
.order-wizard__panel[hidden] {
    display: none;
}

.order-wizard__step-fields>.form-group,
.order-wizard__panel>.form-group,
.order-wizard__panel>.plan-picker-group,
.order-wizard__panel>.order-summary,
.hero-form-panel>.order-summary {
    grid-column: span 12;
}

.order-wizard__step-fields>.form-group.form-md-6,
.order-wizard__panel>.form-group.form-md-6 {
    grid-column: span 6;
}

@media (max-width: 47.999rem) {

    .order-wizard__step-fields>.form-group.form-md-6,
    .order-wizard__panel>.form-group.form-md-6 {
        grid-column: span 12;
    }

    .order-wizard__viewport {
        min-height: 18rem;
    }
}

.hero-form-panel {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-3) var(--space-4);
}

.hero-form-panel[hidden] {
    display: none;
}

.hero-form-panel--demo>.form-group,
.hero-form-panel>.form-group,
.hero-form-panel>.plan-picker-group {
    grid-column: span 12;
}

.hero-form-panel--demo>.form-group.form-md-6,
.hero-form-panel>.form-group.form-md-6 {
    grid-column: span 6;
}

@media (max-width: 47.999rem) {

    .hero-form-panel--demo>.form-group.form-md-6,
    .hero-form-panel>.form-group.form-md-6 {
        grid-column: span 12;
    }
}

.hero-form-actions {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-block-start: var(--space-2);
}

.hero-form-actions [hidden] {
    display: none;
}

/* Zurück: dezent, immer sichtbar wenn JS hidden entfernt hat */
.order-wizard__back {
    align-self: flex-start;
    margin-block-end: 0;
    padding: var(--space-1) 0;
    font-family: var(--font-sans);
    font-size: var(--fs-14);
    font-weight: var(--fw-regular);
    color: var(--text-link);
    background: none;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--text-link) 45%, transparent);
    text-underline-offset: 0.2em;
    transition: color var(--duration-1) var(--ease-out),
        text-decoration-color var(--duration-1) var(--ease-out);
}

.order-wizard__back:hover,
.order-wizard__back:focus-visible {
    color: var(--text-link-hover);
    text-decoration-color: currentColor;
}

.order-wizard__back:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ── Tarif-Auswahl (Bestellung) ── */
.plan-picker-group__legend {
    display: block;
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-strong);
    margin-block-end: var(--space-3);
}

.plan-picker {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.plan-picker__option {
    display: block;
    margin: 0;
    cursor: pointer;
}

.plan-picker__option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.plan-picker__card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: var(--space-1) var(--space-4);
    align-items: center;
    padding: var(--space-4);
    background-color: var(--surface-default);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: border-color var(--duration-1) var(--ease-out),
        box-shadow var(--duration-1) var(--ease-out),
        background-color var(--duration-1) var(--ease-out);
}

.plan-picker__option input:focus-visible+.plan-picker__card {
    box-shadow: var(--focus-ring);
}

.plan-picker__option input:checked+.plan-picker__card {
    border-color: var(--brand-blue);
    background-color: color-mix(in srgb, var(--brand-blue) 6%, var(--surface-default));
    box-shadow: var(--shadow-2);
}

.plan-picker__badge {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-on-brand);
    background-color: var(--brand-blue);
    padding: 0.15rem var(--space-2);
    border-radius: var(--radius-pill);
}

.plan-picker__card:has(.plan-picker__badge) {
    grid-template-rows: auto auto auto;
}

.plan-picker__card:has(.plan-picker__badge) .plan-picker__name,
.plan-picker__card:has(.plan-picker__badge) .plan-picker__price {
    grid-row: 2;
}

.plan-picker__card:has(.plan-picker__badge) .plan-picker__range {
    grid-row: 3;
}

.plan-picker__name {
    grid-column: 1;
    grid-row: 1;
    font-size: var(--fs-18);
    font-weight: var(--fw-bold);
    color: var(--text-strong);
    line-height: var(--lh-tight);
}

.plan-picker__price {
    grid-column: 2;
    grid-row: 1;
    font-size: var(--fs-20);
    font-weight: var(--fw-900);
    color: var(--text-strong);
    line-height: var(--lh-tight);
    text-align: end;
    white-space: nowrap;
}

.plan-picker__price small {
    font-size: var(--fs-12);
    font-weight: var(--fw-regular);
    color: var(--text-muted);
    text-transform: none;
}

.plan-picker__price--quote {
    font-size: var(--fs-14);
    font-weight: var(--fw-bold);
}

.plan-picker__range {
    grid-column: 1 / -1;
    font-size: var(--fs-14);
    color: var(--text-muted);
    line-height: var(--lh-snug);
}

.plan-picker-group.has-error .plan-picker__card,
.plan-picker-group.is-invalid .plan-picker__card {
    border-color: var(--state-danger-fg);
}

.plan-picker-group .field-error {
    margin-block-start: var(--space-2);
}

@media (min-width: 48rem) {
    .hero__form {
        max-width: 32rem;
    }

    .form-mode-switch__label {
        font-size: var(--fs-13, 0.8125rem);
    }
}

@media (max-width: 47.999rem) {
    .hero--product .hero__overlay {
        background: linear-gradient(180deg,
                rgba(8, 42, 77, 0.98) 0%,
                rgba(14, 58, 102, 0.96) 42%,
                rgba(14, 58, 102, 0.93) 100%);
    }

    .hero--product .hero__content {
        padding-block: var(--space-8) var(--space-9);
    }

    .hero--product .hero__layout {
        gap: var(--space-5);
    }

    .hero--product h1 {
        font-size: var(--fs-30);
        line-height: var(--lh-tight);
    }

    .hero--product .hero__tagline {
        font-size: var(--fs-16);
        margin-block-end: var(--space-4);
    }

    .hero--product .hero__eyebrow {
        font-size: var(--fs-12);
    }

    .hero--product .checklist {
        margin-block-end: 0;
    }

    .hero--product .checklist li {
        font-size: var(--fs-14);
    }

    .hero--product .hero__form {
        max-width: none;
    }

    .hero-form-card {
        padding: var(--space-5);
    }
}

@media (min-width: 48rem) {

    /* ~1 Viewport auf 1080p: Meta-Nav + Hauptnav abziehen, Padding straffen */
    .hero--product {
        --hero-product-min-h: calc(100svh - var(--header-h) - var(--meta-nav-h));
        min-height: var(--hero-product-min-h);
    }

    .hero--product .hero__content {
        padding-block: var(--space-5);
        min-height: var(--hero-product-min-h);
        display: flex;
        align-items: center;
    }

    .hero--product .hero__content>.container {
        width: 100%;
    }

    .hero__layout {
        grid-template-columns: repeat(12, 1fr);
        column-gap: var(--space-6);
        row-gap: var(--space-6);
        grid-template-areas: none;
        align-items: center;
    }

    .hero__copy {
        grid-column: 1 / 7;
        grid-row: 1;
    }

    .hero__form {
        grid-column: 7 / 13;
        grid-row: 1;
        max-width: none;
        margin-inline: 0;
        align-self: center;
    }

    .hero-form-card {

        height: calc(46rem + 5px);
        padding: var(--space-7);
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .hero-form-card .lp-form--hero {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: var(--space-3) var(--space-4);
    }

    .hero-form-card .lp-form--hero>.form-mode-switch,
    .hero-form-card .lp-form--hero>.order-wizard__chrome,
    .hero-form-card .lp-form--hero>.form-status,
    .hero-form-card .lp-form--hero>.hero-form-card__privacy,
    .hero-form-card .lp-form--hero>.hero-form-actions {
        flex-shrink: 0;
    }

    .hero-form-card .lp-form--hero>.order-wizard__viewport,
    .hero-form-card .lp-form--hero>.hero-form-panel {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .hero-form-card .order-wizard__viewport {
        min-height: 0;
    }
}

/* ── Funktionen: Screenshot-Blöcke (Flip-Flop via .story-block) ── */
.feature-showcase {
    padding-block: var(--space-section);
}

.feature-showcase__intro {
    text-align: center;
    margin-block-end: var(--space-8);
    max-width: var(--container-2xl);
    margin-inline: auto;
}

.feature-showcase__intro .tagline {
    font-size: var(--fs-18);
    color: var(--text-muted);
    margin-block-start: var(--space-3);
    text-wrap: pretty;
}

.feature-showcase__blocks .story-block:last-child {
    margin-block-end: 0;
}

.feature-showcase .story-block-image img {
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-md, 0 0.5rem 1.5rem rgb(14 58 102 / 0.12));
}

/* ── Ablauf: horizontaler 1-2-3-Strahl ── */
.story-wrapper--steps {
    padding-block: var(--space-section);
}

.story-wrapper--steps .story-intro {
    margin-block-end: var(--space-8);
}

.story-wrapper--steps .tagline {
    font-size: var(--fs-18);
    color: var(--text-muted);
    margin-block-end: var(--space-4);
}

.steps-lead {
    max-width: var(--container-prose);
    margin-inline: auto;
    text-wrap: pretty;
}

.steps-flow {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-7);
    position: relative;
}

.steps-flow__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-4);
    align-items: start;
    position: relative;
}

.steps-flow__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: var(--brand-blue);
    color: var(--text-on-brand);
    font-size: var(--fs-18);
    font-weight: var(--fw-bold);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.steps-flow__item h3 {
    font-size: var(--fs-18);
    margin-block-end: var(--space-2);
    text-wrap: balance;
}

.steps-flow__item p {
    color: var(--text-muted);
    font-size: var(--fs-16);
    line-height: var(--lh-normal);
    margin-block-end: 0;
    text-wrap: pretty;
}

@media (max-width: 47.999rem) {
    .steps-flow__item:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 1.375rem;
        top: 2.75rem;
        bottom: calc(-1 * var(--space-7));
        width: 2px;
        background-color: var(--border-default);
        transform: translateX(-50%);
    }
}

@media (min-width: 48rem) {
    .steps-flow {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
        padding-block-start: var(--space-2);
    }

    .steps-flow::before {
        content: "";
        position: absolute;
        top: 1.375rem;
        left: 12%;
        right: 12%;
        height: 2px;
        background-color: var(--border-default);
        z-index: 0;
    }

    .steps-flow__item {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: var(--space-4);
    }

    .steps-flow__item::after {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    .price-card {
        background-color: var(--surface-raised);
    }

    /* Header-Logos: dunkle SVG-Farben wären auf --surface-default unleserlich */
    #logo.logo-ba img {
        filter: brightness(0) invert(1);
    }
}


/* =========================================================================
   Bestellübersicht (Button-Lösung, § 312j BGB) — order-summary.js
   ========================================================================= */
.order-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-4);
    background-color: color-mix(in srgb, var(--brand-blue) 5%, var(--surface-default));
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
}

.order-summary__heading {
    margin: 0;
    font-size: var(--fs-12);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-strong);
}

.order-summary__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.order-summary__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
}

.order-summary__item-label {
    flex: 1 1 0;
    min-width: 0;
    font-size: var(--fs-16);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--text-strong);
}

.order-summary__item-detail {
    font-size: var(--fs-12);
    font-weight: var(--fw-regular);
    color: var(--text-muted);
}

.order-summary__item-price {
    flex-shrink: 0;
    font-size: var(--fs-16);
    font-weight: var(--fw-bold);
    color: var(--text-strong);
    text-align: end;
    white-space: nowrap;
}

.order-summary__item-price small {
    display: block;
    font-size: var(--fs-12);
    font-weight: var(--fw-regular);
    color: var(--text-muted);
}

.order-summary__totals {
    /* Bei nur einem bestellbaren Paket dupliziert der Summen-Block die
       Positionsliste oben — diese ist bereits die zu zahlende Summe. */
    display: none;
}

.order-summary__total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
}

.order-summary__total-label {
    font-size: var(--fs-14);
    font-weight: var(--fw-bold);
    color: var(--text-strong);
}

.order-summary__total-value {
    font-size: var(--fs-20);
    font-weight: var(--fw-900);
    color: var(--text-strong);
    white-space: nowrap;
}

.order-summary__note,
.order-summary__quote-hint,
.order-summary__empty {
    margin: 0;
    font-size: var(--fs-12);
    color: var(--text-muted);
    line-height: var(--lh-snug);
}

.order-summary__yearly {
    margin: 0;
    margin-block-start: var(--space-3);
    padding-block-start: var(--space-3);
    border-block-start: 1px solid var(--border-default);
    font-size: var(--fs-14);
    line-height: var(--lh-snug);
    color: var(--text-strong);
}

.order-summary__yearly strong {
    font-weight: var(--fw-900);
}




/* =========================================================================
   Bestellformular-Modal
   ========================================================================= */

/* "Direkt bestellen" zusätzlich im Hero zeigen, solange die Top-Navigation im
   Burger-Menü steckt (synchron zum mobilen Menü-Breakpoint). */
.hero__cta-order {
    display: none;
}

@media (max-width: 47.999rem) {
    .hero__cta-order {
        display: inline-flex;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 300;
    padding: var(--space-6);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Modal — Design-Tokens statt festem Weiß (Dark Mode) */
.modal-content {
    position: relative;
    flex-shrink: 0;
    background: var(--surface-raised);
    color: var(--text-default);
    padding: calc(var(--space-6) + var(--space-2)) var(--space-6) var(--space-6);
    width: min(32rem, 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-3);
    animation: modalFadeIn 0.2s ease;
    box-sizing: border-box;
    overflow: visible;
    margin: auto;
}

.modal-content .lp-form--hero {
    color: var(--text-default);
    min-width: 0;
}

.modal-content .order-wizard__viewport {
    min-height: 0;
}

.modal-content .order-wizard__back {
    color: var(--text-link);
    text-decoration-color: color-mix(in srgb, var(--text-link) 55%, transparent);
}

.modal-content .order-wizard__back:hover,
.modal-content .order-wizard__back:focus-visible {
    color: var(--text-link-hover);
    text-decoration-color: currentColor;
}

/* Close Button — dezent, ohne Kreis-Rahmen */
.close-btn {
    position: absolute;
    top: calc(var(--space-3) - 0.12em);
    right: var(--space-3);
    z-index: 2;
    border: 0;
    background: none;
    color: var(--text-muted);
    font-size: var(--fs-24);
    font-weight: var(--fw-regular);
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-sm);
    transition: color var(--duration-1) var(--ease-out);
}

.close-btn:hover,
.close-btn:focus-visible {
    color: var(--text-default);
}

.close-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Aktiv */
.modal-overlay.active {
    display: flex;
}