/* Nur Startseite: vorhandene Karten und gemeinsame Gestaltung weiterverwenden. */
.home-page .home-hero {
    padding: clamp(24px, 3.5vw, 44px) 0 20px;
}

.home-page .home-hero__title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 18px);
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 16px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.75rem, 3.7vw, 3.2rem);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -.035em;
    text-align: center;
    text-wrap: balance;
    color: #5ef5e8;
    text-shadow: 0 0 24px rgb(94 245 232 / 15%);
}

.home-page .home-hero__dot {
    flex: 0 0 auto;
    width: .62em;
    height: .62em;
    border-radius: 50%;
}

.home-page .home-hero__dot--dark {
    background: #080a13;
    border: 1px solid var(--cyan);
    box-shadow: 0 0 0 4px rgb(89 243 255 / 6%), 0 0 20px rgb(89 243 255 / 20%);
}

.home-page .home-hero__dot--light {
    background: #f5f7ff;
    box-shadow: 0 0 18px rgb(245 247 255 / 28%);
}

.home-page .home-hero__intro {
    max-width: 85ch;
    margin: 0 auto 10px;
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.55;
    color: var(--text);
}

.home-page .home-hero__note {
    margin: 0;
    font-size: .78rem;
    text-align: center;
    color: var(--muted);
}

.home-page .home-areas {
    padding: 8px 0 40px;
}

.home-page .home-areas .section-heading {
    margin-bottom: 16px;
}

.home-page .home-areas .eyebrow {
    margin-bottom: 5px;
    font-size: .66rem;
}

.home-page .home-areas h2 {
    margin-bottom: 0;
    font-size: 1.12rem;
    line-height: 1.3;
    letter-spacing: -.01em;
}

/* Die ältere gemeinsame CSS erzwingt das 3+2-Raster mit !important.
   Nur hier auf der Startseite die Rastergeometrie überschreiben. */
.home-page .area-grid.area-grid--home.area-grid--illustrated {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.home-page .area-grid.area-grid--home.area-grid--illustrated > .area-card.area-card--image:nth-child(n) {
    grid-column: auto !important;
    width: 100% !important;
    margin: 0 !important;
    justify-self: stretch;
}

.home-page .area-card--image:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 5px;
}

.home-page .home-explanation {
    padding-top: 30px;
    padding-bottom: 34px;
}

.home-page .home-explanation h2 {
    margin: 0 0 16px;
    text-align: center;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.25;
}

.home-page .home-explanation__lead {
    max-width: 68ch;
    margin: 0 auto 20px;
    text-align: center;
    color: var(--muted);
}

.home-page .home-explanation .origin-chain {
    margin: 0 0 24px;
}

.home-page .home-explanation__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin: 22px 0 0;
}

.home-page .home-explanation__links a {
    color: var(--cyan);
    text-underline-offset: 4px;
}

@media (max-width: 1179px) {
    .home-page .area-grid.area-grid--home.area-grid--illustrated {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 759px) {
    .home-page .area-grid.area-grid--home.area-grid--illustrated {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 599px) {
    .home-page .home-hero { padding-top: 24px; padding-bottom: 18px; }
    .home-page .home-hero__title { gap: 10px; }
    .home-page .home-hero__dot { margin-top: 0; }
    .home-page .home-areas { padding-bottom: 28px; }
    .home-page .area-grid.area-grid--home.area-grid--illustrated {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 380px;
        margin-inline: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .area-card--image { transition: none; }
    .home-page .area-card--image:hover,
    .home-page .area-card--image:focus-visible { transform: none; }
}

@media (max-width: 359px) {
    .home-page .home-hero__title { font-size: 1.55rem; gap: 8px; }
}

/* Only the caption of the existing image card; illustration and card geometry stay intact. */
.home-page .area-card--image-open { container-type: inline-size; }
.home-page .area-card--image-open .open-card-copy,
.home-page .area-card--image-open .open-card-tagline {
    position: absolute; z-index: 1; display: flex; align-items: center;
    box-sizing: border-box; margin: 0; text-align: center;
    justify-content: center; background: #09090c; pointer-events: none;
    color: #f5eff4; font-family: inherit; font-weight: 600;
}
.home-page .area-card--image-open .open-card-copy {
    left: 6%; right: 6%; top: 70.6%; height: 15.8%;
    padding: .6cqw 1cqw; font-size: 3.65cqw; line-height: 1.34;
}
.home-page .area-card--image-open .open-card-tagline {
    left: 6%; right: 23%; top: 87.3%; height: 7.2%;
    font-size: 2.9cqw; line-height: 1.45; letter-spacing: .16em;
}
