/*
------------------------------------------------------------
Projekt: Inke Hagen · HOME
Datei: inke-hagen-home.css
Status: Entwicklung

Nur seitenspezifisches Layout.
Typografie, Farben und Buttons kommen aus /assets.

Grundlayout für die Künstlerseiten:
- Desktop: 50 % Text / 50 % quadratisches Bild
- Bild bündig oben, rechts und unten
- Kein künstliches min-height: 100vh
- Diese Layoutregel dient auch als Vorlage für
  ÜBER INKE und WEBGALERIE.
------------------------------------------------------------
*/

.inkeHome {
    width: 100%;
}

.inkeHome__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    width: 100%;
}

.inkeHome__textbereich {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px 32px 0;
}

.inkeHome__text {
    width: 100%;
    max-width: 760px;
    text-align: center;
}

.inkeHome__headline {
    margin-bottom: 4px;
    text-align: center;
}

.inkeHome__subheadline {
    margin-bottom: 4px;
    text-align: center;
}

.inkeHome__lauftext {
    max-width: 720px;
    margin: 0 auto 22px;
    text-align: center;
}

.inkeHome__navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.inkeHome__navigation .ars-button {
    min-width: 112px;
}

.inkeHome__bildbereich {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
    min-height: 50vw;
    width: 100%;
    min-width: 0;
}

.inkeHome__bild {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

/* Eigener Platz im Dokumentfluss: der Clip endet direkt an der Footeroberkante. */
.inkeHome__wochenvideo {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
}

.inkeHome__wochenvideo-link {
    display: block;
    width: min(100%, 480px);
    aspect-ratio: 16 / 9;
    background: var(--ars-color-white);
}

.inkeHome__wochenvideo-link:focus-visible {
    outline: 3px solid var(--ars-color-primary);
    outline-offset: 3px;
}

.inkeHome__wochenvideo-film {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    /* Dünne schwarze Codierungsränder ausblenden, Layoutmaß beibehalten. */
    clip-path: inset(2px);
}

.inkeHome__wochenvideo-film.is-visible {
    opacity: 1;
}

@media (max-width: 767px) {
    /* Zusätzlich zum bisherigen Buttonabstand entsteht Platz für 16:9. */
    .inkeHome__wochenvideo-link {
        width: min(100%, 400px);
    }

    .inkeHome__hero {
        display: flex;
        flex-direction: column;
    }

    .inkeHome__bildbereich {
        order: 1;
        min-height: 0;
    }

    .inkeHome__textbereich {
        order: 2;
        padding: 34px 20px 0;
    }

    .inkeHome__bild {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .inkeHome__wochenvideo {
        order: 3;
    }

    .inkeHome__navigation {
        gap: 8px;
    }

    .inkeHome__navigation .ars-button {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }
}

@media (max-width: 390px) {
    .inkeHome__navigation .ars-button {
        flex-basis: 100%;
    }
}
