/* Familien-Seite – Infografiken auf Basis program.css */

.family-hero.program-hero {
    min-height: min(78vh, 640px);
}

.family-trust-wrap {
    margin-top: 0;
    position: relative;
    z-index: 2;
    padding-bottom: 0.5rem;
}
.family-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 1.35rem;
    background: var(--glass-milk-bg, linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.72) 100%));
    backdrop-filter: var(--glass-milk-blur, blur(22px) saturate(1.15));
    -webkit-backdrop-filter: var(--glass-milk-blur, blur(22px) saturate(1.15));
    border: var(--glass-milk-border, 1px solid rgba(255, 255, 255, 0.78));
    box-shadow: var(--glass-milk-shadow, 0 18px 40px -24px rgba(15, 23, 42, 0.35));
}
@media (min-width: 640px) {
    .family-trust {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.85rem;
        padding: 1.15rem 1.25rem;
    }
}
.family-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    text-align: center;
    padding: 0.55rem 0.35rem;
}
.family-trust-value {
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #1d4ed8;
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .family-trust-value {
        color: #1d4ed8;
        -webkit-text-fill-color: currentColor;
        background: none;
    }
}
.family-trust-label {
    margin-top: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #64748b;
    font-weight: 600;
    max-width: 11.5rem;
}

/* Klassengröße-Infografik */
.family-class-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 800px) {
    .family-class-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        align-items: stretch;
    }
}
.family-class-panel {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 1.35rem;
    padding: 1.25rem 1.15rem 1.35rem;
    box-shadow: 0 14px 32px -26px rgba(37, 99, 235, 0.55);
}
.family-class-panel--muted {
    border-color: #e2e8f0;
    background: #f8fafc;
    box-shadow: none;
    opacity: 0.92;
}
.family-class-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2563eb;
    margin: 0 0 0.85rem;
}
.family-class-panel--muted .family-class-label {
    color: #94a3b8;
}
.family-seats {
    display: grid;
    gap: 0.45rem;
}
.family-seats--good {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.family-seats--mass {
    grid-template-columns: repeat(9, minmax(0, 1fr));
}
.family-seat {
    aspect-ratio: 1;
    border-radius: 0.45rem;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}
.family-seat.is-on {
    background: linear-gradient(145deg, #3b82f6, #06b6d4);
    border-color: transparent;
    box-shadow: 0 6px 12px -6px rgba(37, 99, 235, 0.7);
    animation: family-seat-in 0.45s ease both;
}
.family-seats--good .family-seat.is-on:nth-child(2) { animation-delay: 0.04s; }
.family-seats--good .family-seat.is-on:nth-child(3) { animation-delay: 0.08s; }
.family-seats--good .family-seat.is-on:nth-child(4) { animation-delay: 0.12s; }
.family-seats--good .family-seat.is-on:nth-child(5) { animation-delay: 0.16s; }
.family-seats--good .family-seat.is-on:nth-child(6) { animation-delay: 0.2s; }
.family-seats--good .family-seat.is-on:nth-child(7) { animation-delay: 0.24s; }
.family-seats--good .family-seat.is-on:nth-child(8) { animation-delay: 0.28s; }
.family-seats--good .family-seat.is-on:nth-child(9) { animation-delay: 0.32s; }
.family-seats--good .family-seat.is-on:nth-child(10) { animation-delay: 0.36s; }
.family-seats--good .family-seat.is-on:nth-child(11) { animation-delay: 0.4s; }
.family-seats--good .family-seat.is-on:nth-child(12) { animation-delay: 0.44s; }
@keyframes family-seat-in {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: none; }
}
.family-class-caption {
    margin: 0.9rem 0 0;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.4;
}
.family-class-caption strong {
    color: #0f172a;
    font-weight: 800;
}

/* Vergleichstabelle */
.family-compare {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #dbeafe;
    background: #fff;
}
.family-compare-head,
.family-compare-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    align-items: center;
}
.family-compare-head {
    background: linear-gradient(135deg, #1e3a5f, #1d4ed8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.family-compare-row:nth-child(even) {
    background: #f8fbff;
}
.family-compare-row {
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
}
.family-compare-k {
    font-weight: 750;
    color: #0f172a;
}
.family-compare-bad {
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #cbd5e1;
}
.family-compare-good {
    color: #0369a1;
    font-weight: 700;
}
@media (max-width: 640px) {
    .family-compare-head,
    .family-compare-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .family-compare-head span:not(:first-child) {
        display: none;
    }
    .family-compare-bad::before {
        content: '– ';
        font-weight: 700;
        text-decoration: none;
    }
    .family-compare-good::before {
        content: '✓ ';
    }
}

/* Preis-Balken */
.family-prices {
    display: grid;
    gap: 1rem;
}
.family-price-row {
    display: grid;
    gap: 0.55rem;
}
@media (min-width: 700px) {
    .family-price-row {
        grid-template-columns: 9rem 1fr;
        align-items: center;
        gap: 1rem;
    }
}
.family-price-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.family-price-meta strong {
    font-size: 1.05rem;
    color: #0f172a;
}
.family-price-meta span {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
}
.family-price-bars {
    display: grid;
    gap: 0.35rem;
}
.family-price-bar {
    height: 1.65rem;
    width: var(--w, 40%);
    max-width: 100%;
    border-radius: 0.45rem;
    display: flex;
    align-items: center;
    padding: 0 0.55rem;
    font-size: 0.7rem;
    font-weight: 750;
    color: #fff;
    transition: width 0.6s ease;
}
.family-price-bar--list {
    background: #cbd5e1;
    color: #475569;
}
.family-price-bar--offer {
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 8px 16px -10px rgba(37, 99, 235, 0.8);
}
.family-price-note {
    margin: 1.25rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.family-hero-proof {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.family-hero-proof li {
    font-size: 0.75rem;
    font-weight: 750;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #e0f2fe;
}

.family-convince {
    display: grid;
    gap: 1rem;
}
@media (min-width: 800px) {
    .family-convince {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.15rem;
    }
}
.family-convince-card {
    position: relative;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 1.25rem;
    padding: 1.35rem 1.2rem 1.45rem 1.2rem;
    box-shadow: 0 14px 32px -26px rgba(37, 99, 235, 0.45);
    overflow: hidden;
}
.family-convince-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
}
.family-convince-num {
    display: block;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    color: #06b6d4;
    margin-bottom: 0.45rem;
}
.family-convince-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}
.family-convince-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
}

.family-score-layout {
    display: grid;
    gap: 1.75rem;
}
@media (min-width: 900px) {
    .family-score-layout {
        grid-template-columns: 1fr 1.15fr;
        align-items: end;
        gap: 2.5rem;
    }
}
.family-scores {
    display: grid;
    gap: 0.85rem;
}
.family-score-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}
.family-score-label strong {
    color: #2563eb;
    font-variant-numeric: tabular-nums;
}
.family-score-track {
    height: 0.7rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.family-score-fill {
    display: block;
    height: 100%;
    width: var(--pct, 80%);
    border-radius: inherit;
    background: linear-gradient(90deg, #1d4ed8, #06b6d4);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
    animation: family-bar 0.9s ease both;
}
@keyframes family-bar {
    from { width: 0; }
}

.family-bridge {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.65rem 0.35rem;
}
.family-bridge-node {
    flex: 1 1 8.5rem;
    max-width: 11rem;
    text-align: center;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 1.15rem;
    padding: 1.1rem 0.75rem 1.2rem;
}
.family-bridge-code {
    display: inline-flex;
    min-width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    color: #fff;
    background: linear-gradient(145deg, #1d4ed8, #06b6d4);
    margin-bottom: 0.65rem;
}
.family-bridge-node h3 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}
.family-bridge-node p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #64748b;
}
.family-bridge-arrow {
    align-self: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #93c5fd;
    padding: 0 0.15rem;
}
@media (max-width: 700px) {
    .family-bridge-arrow { display: none; }
    .family-bridge-node { max-width: none; flex: 1 1 calc(50% - 0.5rem); }
}

.family-engines {
    position: relative;
    display: grid;
    gap: 1rem;
}
@media (min-width: 800px) {
    .family-engines {
        grid-template-columns: 1fr auto 1fr;
        align-items: stretch;
        gap: 1.25rem;
    }
}
.family-engine {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 1.35rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.family-engine-ring {
    --pct: 50;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #fff 0 58%, transparent 59%),
        conic-gradient(#2563eb calc(var(--pct) * 1%), #e2e8f0 0);
    font-size: 1.05rem;
    font-weight: 850;
    color: #0f172a;
}
.family-engine h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}
.family-engine p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
}
.family-engine-plus {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #38bdf8;
}
@media (min-width: 800px) {
    .family-engine-plus { display: flex; }
}
.family-engine-result {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 750;
    color: #1e3a5f;
}

.family-week {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}
@media (min-width: 800px) {
    .family-week {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
.family-week-day {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    padding: 0.9rem 0.55rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.family-week-d {
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}
.family-week-t {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
}
.family-week-n {
    font-size: 0.72rem;
    color: #64748b;
}

.family-myths {
    display: grid;
    gap: 1rem;
}
@media (min-width: 800px) {
    .family-myths {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.family-myth {
    background: linear-gradient(165deg, #0f2744, #1d4ed8);
    color: #fff;
    border-radius: 1.25rem;
    padding: 1.35rem 1.15rem 1.45rem;
}
.family-myth h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    font-weight: 800;
    color: #7dd3fc;
    line-height: 1.3;
}
.family-myth p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.92);
}

.family-cta .family-cta-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
}

@media (prefers-reduced-motion: reduce) {
    .family-seat.is-on,
    .family-score-fill { animation: none; }
}
