/* ==========================================================
   STARTSEITE
   ========================================================== */

:root {
    --home-section-bg-1: #ffffff;
    --home-section-bg-2: #F2F0E6;
    --home-section-content-width: 1320px;
    --section-width: 1320px;

    --section-space-top: 7rem;
    --section-space-bottom: 7rem;

    --section-bg-light: #ffffff;
    --section-bg-grey: #f5f5f5;
}

/* ==========================================================
   Sections
   ========================================================== */

:root {
    --section-width: var(--wp--style--global--content-size, 1320px);
    --section-space-top: clamp(5rem, 8vw, 8rem);
    --section-space-bottom: clamp(5rem, 8vw, 8rem);
}

.home-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-block: var(--section-space-top) var(--section-space-bottom);
}

.home-section:nth-of-type(odd) {
    background: var(--wp--preset--color--white);
}

.home-section:nth-of-type(even) {
    background: color-mix(in srgb, #F2F0E6 55%, white);
}

.home-section__inner {
    width: min(var(--section-width), calc(100% - 3rem));
    margin-inline: auto;
}

.home-section__header {
    max-width: none;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.home-section__title {
    max-width: 1120px;
    margin: 0 0 1.25rem;

    color: var(--wp--preset--color--dark-blue);

    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.home-section__title::before {
    content: "";
    display: block;

    width: 4.5rem;
    height: 0.45rem;

    margin-bottom: 1.25rem;

    border-radius: 999px;
    background: var(--wp--preset--color--green);
}

.home-section__intro {
    max-width: none;
    margin: 0;

    color: var(--wp--preset--color--dark-blue);

    font-size: clamp(1.125rem, 1.35vw, 1.35rem);
    line-height: 1.6;
    font-weight: 300;
}

.home-section--einleitungstext .home-section__intro {
    max-width: none;
}

.home-section__content {
    width: 100%;
}

.home-facts .home-section__content {
    padding-top: clamp(2rem, 4vw, 3.5rem);
}

/* Erste Startseiten-Sektion näher an den Hero rücken */
.npuot-hero + .npuot-main .home-section:first-of-type {
    padding-top: clamp(2.5rem, 4vw, 4rem);
}


/* ==========================================================
   Cards / Grids
   ========================================================== */

.news-grid,
.event-grid,
.closure-grid,
.themen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.news-card,
.event-card,
.closure-card,
.themen-card {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.08);
}

.news-card__image,
.event-card__image,
.closure-card__image,
.themen-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.news-card__body,
.event-card__body,
.closure-card__body,
.themen-card__content {
    padding: 1.5rem;
}

.themen-card__content p {
    margin: 0;
    color: var(--wp--preset--color--dark-blue);
    font-size: clamp(1.125rem, 1.35vw, 1.35rem);
    line-height: 1.6;
    font-weight: 300;
}

.news-card__date,
.event-card__date,
.closure-card__date {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.75;
}
.home-section .news-card h3,
.home-section .event-card h3,
.home-section .closure-card h3,
.home-section .themen-card h3 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.news-card__title-link,
.event-card__title-link,
.closure-card__title-link,
.themen-card__title-link {
    color: inherit;
    text-decoration: none;
}

.news-card__title-link:hover,
.news-card__title-link:focus-visible,
.event-card__title-link:hover,
.event-card__title-link:focus-visible,
.closure-card__title-link:hover,
.closure-card__title-link:focus-visible,
.themen-card__title-link:hover,
.themen-card__title-link:focus-visible {
    text-decoration: underline;
}

.news-card__more,
.event-card__more,
.closure-card__more,
.themen-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    margin-top: 1rem;
    padding: 0.6rem 1.25rem;

    border-radius: 999px;
    background: var(--wp--preset--color--primary);

    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;

    transition: background-color 0.2s ease;
}

.news-card__more:hover,
.news-card__more:focus-visible,
.event-card__more:hover,
.event-card__more:focus-visible,
.closure-card__more:hover,
.closure-card__more:focus-visible,
.themen-card__more:hover,
.themen-card__more:focus-visible {
    background: color-mix(in srgb, var(--wp--preset--color--primary) 85%, black);
    text-decoration: none;
}

.news-card__excerpt p:last-child,
.event-card__excerpt p:last-child,
.closure-card__excerpt p:last-child {
    margin-bottom: 0;
}

/* Tablet */
@media (max-width: 1100px) {
    .news-grid,
    .event-grid,
    .closure-grid,
    .themen-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 700px) {
    .news-grid,
    .event-grid,
    .closure-grid,
    .themen-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Startseiten-Texte
   ========================================================== */

.home-section__intro,
.home-section__content,
.home-section--einleitungstext .home-section__content,
.home-section--einleitungstext p {
    color: var(--wp--preset--color--dark-blue);
    font-size: clamp(1.15rem, 1.35vw, 1.35rem);
    line-height: 1.6;
    font-weight: 300;
}

.home-section--einleitungstext .home-section__content,
.home-section--einleitungstext .home-section__intro {
    max-width: 1320px;
}

.home-section__cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.home-section__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: var(--wp--preset--color--primary);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.home-section__cta-button:hover {
    background: color-mix(in srgb, var(--wp--preset--color--primary) 85%, black);
}

.home-section__cta-button:focus-visible {
    outline: 3px solid var(--wp--preset--color--dark-blue);
    outline-offset: 2px;
}

/* ==========================================================
   Fakten
   ========================================================== */

.home-facts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
}

.home-facts__card {
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    border-radius: 1.5rem;
    background: var(--wp--preset--color--white);
    box-shadow: 0 1rem 2.5rem rgba(0, 44, 80, 0.08);
}

.home-facts__card-title {
    margin: 0 0 1rem;
    color: var(--wp--preset--color--green);
    font-size: clamp(1.7rem, 2.5vw, 2.4rem);
    line-height: 1.05;
}

.home-facts__card-text {
    margin: 0;
    color: var(--wp--preset--color--dark-blue);
    font-size: 1.05rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .home-facts__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Interaktive Karte
   ========================================================== */

.map-placeholder {
    min-height: 420px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 1.5rem;
    background: color-mix(in srgb, var(--wp--preset--color--green) 10%, white);
    border: 2px dashed color-mix(in srgb, var(--wp--preset--color--green) 45%, white);
    color: var(--wp--preset--color--dark-blue);
}

.map-placeholder p {
    margin: 0;
    font-weight: 700;
}

/* ==========================================================
   Info-/Werbebanner
   ========================================================== */

.home-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;

    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1rem 2.5rem rgba(0, 44, 80, 0.08);
}

.home-banner__media {
    position: relative;
}

.home-banner__media .npuot-image-copyright-wrap,
.home-banner__image {
    display: block;
    width: 100%;
    height: 100%;
}

.home-banner__image {
    object-fit: cover;
}

.home-banner__body {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(2rem, 4vw, 3.5rem);

    background: var(--wp--preset--color--white);
}

.home-banner__title {
    margin: 0 0 1rem;

    color: var(--wp--preset--color--dark-blue);

    font-size: clamp(1.7rem, 2.5vw, 2.4rem);
    line-height: 1.1;
    font-weight: 700;
}

.home-banner__text {
    margin: 0;

    color: var(--wp--preset--color--dark-blue);

    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 300;
}

.home-banner__text p:last-child {
    margin-bottom: 0;
}

.home-banner__cta {
    margin: 1.5rem 0 0;
}

.home-banner__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.6rem 1.25rem;

    border-radius: 999px;
    background: var(--wp--preset--color--primary);

    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;

    transition: background-color 0.2s ease;
}

.home-banner__cta-button:hover,
.home-banner__cta-button:focus-visible {
    background: color-mix(in srgb, var(--wp--preset--color--primary) 85%, black);
    text-decoration: none;
}

.home-banner__cta-button:focus-visible {
    outline: 3px solid var(--wp--preset--color--dark-blue);
    outline-offset: 2px;
}

/* Tablet/Mobile: untereinander statt nebeneinander */
@media (max-width: 900px) {
    .home-banner {
        grid-template-columns: 1fr;
    }

    .home-banner__media {
        aspect-ratio: 4 / 3;
    }
}
