/* ==============================================================
   PIERO – STARTSEITE
   Datei: /assets/css/pages/home.css

   Nur Startseite (.page-home).
   Enthält alle Startseiten-Styles inklusive Ankuendigung.
   Keine Abhaengigkeit von pjiii.css oder .pjiii-index-links.

   1. Seite / Hero
   2. Ankuendigung – Desktop
   3. Tablet Hochformat
   4. Smartphones Hochformat
   5. Geraete Querformat
   6. Barrierefreiheit
   ============================================================== */

/* 1. STARTSEITE / HERO ------------------------------------------ */

.page-home {
    background: var(--piero-black, #0b0b0b);
    color: rgba(255, 255, 255, 0.82);
}

.page-home main {
    min-height: 100svh;
}

.page-home .hero.hero-slideshow {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--piero-black, #0b0b0b);
    cursor: pointer;
}

.page-home .hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.page-home .hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: var(--hero-position-desktop, center center);
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #0b0b0b;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
    pointer-events: none;
}

.page-home .hero-slide.is-active {
    z-index: 1;
    opacity: 1;
}

.page-home .hero.hero-slideshow::after {
    content: none;
}

.page-home .hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 900px);
    margin-top: 0;
}

.page-home .hero-content,
.page-home .hero-content * {
    pointer-events: auto;
}

.page-home .hero-content h1 {
    text-wrap: balance;
}

.page-home .hero-content h1 span {
    display: block;
    margin-top: 0;
}

.page-home .hero-content h1 span + span {
    margin-top: 0.02em;
}

/* 2. ANKUENDIGUNG – EXKLUSIV AUF DER STARTSEITE ------------- */

.page-home .home-announcement {
    padding-top: clamp(1.25rem, 2.5vw, 2.5rem);
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
    background: var(--piero-ivory, #f6f1e7);
}

.page-home .home-announcement .mission-question {
    margin-top: 0;
    padding-top: clamp(1.25rem, 2vw, 2rem);
    padding-bottom: clamp(1.25rem, 2vw, 2rem);
}

/* Eigene Struktur: kein .pjiii-index-links und keine globalen
   h3/h4-Stile fuer die Ankuendigung. */
.page-home .home-update-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: clamp(2rem, 3vw, 3rem);
    gap: 0.55rem;
    text-align: center;
}

.page-home .home-update-kicker {
    width: 100%;
    max-width: 56rem;
    margin: 0;
    color: var(--piero-gold-deep, #7a5a1d);
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.page-home .home-update-title {
    width: 100%;
    max-width: 82rem;
    margin: 0;
    color: var(--piero-gold-deep, #7a5a1d);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: normal;
}

.page-home .home-update-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    margin-top: 1.1rem;
    text-align: center;
}

.page-home .home-update-note {
    margin: 0;
    color: var(--piero-gold-deep, #7a5a1d);
    font-size: clamp(0.95rem, 1.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
}

.page-home .home-update-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 42px;
    max-width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(122, 90, 29, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #2f2d29;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    white-space: normal;
    transition: background 180ms ease, border-color 180ms ease;
}

.page-home .home-update-button:hover,
.page-home .home-update-button:focus-visible {
    background: #fff;
    border-color: #7a5a1d;
}

/* Mobile bis einschliesslich kleinere Tablets: klar abgestufte
   Typografie, zentriert und untereinander. */
@media (max-width: 960px) {
    .page-home .home-update-links {
        gap: 0.75rem;
        margin-top: clamp(1.5rem, 4vw, 2.25rem);
    }
    .page-home .home-update-kicker {
        font-size: clamp(18px, 2.7vw, 22px);
        line-height: 1.35;
        font-weight: 550;
    }
    .page-home .home-update-title {
        max-width: 34ch;
        font-size: clamp(25px, 4vw, 36px);
        font-weight: 700;
        line-height: 1.19;
        letter-spacing: -0.035em;
    }
    .page-home .home-update-desktop-break {
        display: none;
    }
    .page-home .home-update-cta {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.65rem;
        margin-top: 0.55rem;
    }
    .page-home .home-update-note {
        font-size: 15px;
        line-height: 1.45;
    }
    .page-home .home-update-button {
        font-size: 14px;
        min-height: 44px;
        padding: 0.7rem 1.15rem;
    }
}

@media (max-width: 700px) and (orientation: portrait) {
    .page-home .home-update-kicker {
        font-size: 18px;
    }
    .page-home .home-update-title {
        font-size: clamp(24px, 6.7vw, 29px);
        line-height: 1.22;
    }
    .page-home .home-announcement {
        padding-bottom: 3rem;
    }
}

/* Footer gehoert zur Startseite – globale Footer anderer Seiten
   bleiben unveraendert. */
.page-home .site-footer {
    background: var(--piero-black, #0b0b0b);
    color: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(247, 227, 170, 0.14);
}

.page-home .site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.page-home .site-footer a:hover {
    color: var(--piero-gold-300, #f7e3aa);
}

@media (min-width: 701px) {
    .page-home .hero-content {
        top: -190px;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* 3. TABLET HOCHFORMAT ----------------------------------------- */

@media (min-width: 701px) and (max-width: 900px) and (orientation: portrait) {
    .page-home .hero-slideshow {
        min-height: 100svh;
    }

    .page-home .hero-slide {
        background-position: var(--hero-position-mobile, 58% center);
    }

    .page-home .hero-content {
        width: 100%;
        max-width: none;
        padding-left: clamp(24px, 6vw, 48px);
        padding-right: clamp(24px, 6vw, 48px);
    }

    .page-home .hero-content h1 {
        max-width: 12ch;
        font-size: clamp(48px, 12.4vw, 76px);
        line-height: 0.95;
        letter-spacing: -0.055em;
    }
}

/* 4. SMARTPHONE HOCHFORMAT ------------------------------------- */

@media (max-width: 700px) and (orientation: portrait) {
    .page-home main {
        min-height: 0;
    }

    .page-home .hero.hero-slideshow {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        min-height: 0;
        height: auto;
        aspect-ratio: auto;
        padding: 0;
    }

    .page-home .hero-slides {
        position: relative;
        inset: auto;
        order: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 1672 / 941;
        flex-shrink: 0;
        margin-top: clamp(24px, 5vw, 40px);
    }

    .page-home .hero-slide {
        background-size: cover;
        background-position: center 78% !important;
    }

    .page-home .hero-content {
        position: relative;
        inset: auto;
        order: 1;
        z-index: 2;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: clamp(88px, 16vw, 112px) 20px 0;
        transform: none;
        text-align: center;
        pointer-events: none;
    }

    .page-home .hero-content h1 {
        max-width: 11.5ch;
        margin-inline: auto;
        font-size: clamp(39px, 10.8vw, 54px);
        line-height: 1;
        letter-spacing: -0.045em;
        text-align: center;
        text-wrap: balance;
        overflow-wrap: normal;
        word-break: normal;
        color: var(--piero-gold-300, #f7e3aa);
        text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    }

    .page-home .hero-content h1 span + span {
        margin-top: 0.20em;
    }

    .page-home .hero-slideshow + .section {
        padding-top: 12px;
        padding-bottom: 28px;
        background: var(--piero-ivory, #f6f1e7);
    }

    .page-home .nav-toggle {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(247, 227, 170, 0.28);
    }

    .page-home .nav-toggle span {
        background: #fff;
    }


}

@media (max-width: 430px) and (orientation: portrait) {
    .page-home .hero-content h1 {
        max-width: 11ch;
        font-size: clamp(37px, 10.5vw, 47px);
        line-height: 1;
        letter-spacing: -0.04em;
    }
}

@media (max-width: 360px) and (orientation: portrait) {
    .page-home .hero-content h1 {
        font-size: 36px;
    }
}

/* 5. KOMPAKTES QUERFORMAT -------------------------------------- */

@media (orientation: landscape) and (max-width: 1180px) and (max-height: 900px) {
    .page-home main {
        min-height: 0;
    }

    .page-home .hero,
    .page-home .hero.hero-slideshow {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        height: auto;
        min-height: 0;
        margin-top: 0;
        padding: 0;
        overflow: visible;
        background: var(--piero-black, #0b0b0b);
    }

    .page-home .hero-slides {
        position: relative;
        inset: auto;
        order: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 1672 / 941;
        flex-shrink: 0;
        margin-top: clamp(16px, 3vw, 28px);
    }

    .page-home .hero-slide {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-color: #0b0b0b;
    }

    .page-home .hero-content {
        position: relative;
        inset: auto;
        order: 1;
        z-index: 2;
        align-self: stretch;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: clamp(72px, 12vw, 96px) 24px 0;
        transform: none !important;
        text-align: center;
        pointer-events: none;
    }

    .page-home .hero-content h1 {
        max-width: 16ch;
        margin-inline: auto;
        font-size: clamp(28px, 4.2vw, 44px);
        line-height: 1;
        letter-spacing: -0.04em;
        text-align: center;
        text-wrap: balance;
        color: var(--piero-gold-300, #f7e3aa);
        text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    }

    .page-home .hero-content h1 span + span {
        margin-top: 0.16em;
    }
}

/* 6. BARRIEREFREIHEIT ------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .page-home .hero-slide {
        transition: none;
    }

    .page-home .home-update-button {
        transition: none;
    }
}
