/* Testweise Ergänzung zu home.css: h1 über dem Karussell, Serientext im Blog-Stil darunter (index-test.html) */

/* --- h1 über dem Karussell ------------------------------------------------ */

/* Abstand zum fixierten Header (und zu dessen Untermenü) */
.kicker {
    position: relative;
    margin-top: clamp(2rem, 7vh, 4rem);
    margin-bottom: clamp(3rem, 7vh, 4.5rem);
    z-index: 5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

/* home.css blendet den h1 in Teilen aus: hier in allen Layouts sichtbar */
.kicker h1 {
    display: block;
    margin: 0;
    font: inherit;
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.kicker__sub {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-family-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b4b4ba;
}

/* --- Serientext (Optik wie .artikel-einzeln-wrapper im Blog) --------------- */

.home-intro-wrap {
    position: relative;
    z-index: 80;
    padding: 1rem var(--stage-padding-inline) calc(var(--footer-reserved-height) + 2rem);
}

.home-intro {
    box-sizing: border-box;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(12, 12, 12, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 3px;
    font-family: var(--font-family-body);
    font-size: 1rem;
    line-height: 1.6;
    color: #d7d7dc;
    text-align: left;
}

.home-intro h2 {
    margin: 0 0 0.25rem;
    font-family: var(--font-family);
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-color-active);
}

.home-intro p {
    margin: 0 0 0.85rem;
}

.home-intro .home-intro__lead {
    margin-bottom: 1.1rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--text-color-dim);
}

.home-intro__books {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.home-intro__books ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    margin: 0 0 0.6rem;
    padding: 0;
    list-style: none;
}

.home-intro__books p {
    margin: 0;
}

.home-intro a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--text-color-active);
    text-underline-offset: 0.2em;
}

.home-intro a:hover,
.home-intro a:focus-visible {
    color: var(--text-color-active);
}

/* Desktop: so breit wie die drei Bücher (Karussellbreite abzüglich Randabstand der Seitenbücher), zwei Spalten */
@media (min-width: 1181px) {
    .home-intro {
        max-width: calc(min(1120px, 100vw - 120px) - 112px);
        padding: 1.75rem 2.25rem;
        column-count: 2;
        column-gap: 3rem;
    }

    .home-intro h2,
    .home-intro .home-intro__lead,
    .home-intro__books {
        column-span: all;
    }

    .home-intro p {
        break-inside: avoid;
    }
}

/* Breite folgt den Karussell-Varianten aus home.css */
@media (min-width: 1181px) and (max-width: 1400px) and (min-height: 680px) and (max-height: 980px) and (orientation: landscape) {
    .home-intro {
        max-width: calc(min(calc(100vw - 84px), 1040px) - 104px);
    }
}

@media (min-width: 1320px) and (max-width: 1395px) and (min-height: 880px) and (max-height: 940px) and (orientation: landscape) {
    .home-intro {
        max-width: calc(min(calc(100vw - 120px), 1100px) - 240px);
    }
}

/* Tablet/Handy: eine Spalte, Blogbreite, etwas kompakter */
@media (max-width: 900px) {
    .home-intro {
        padding: 1.1rem;
        font-size: 0.95rem;
    }
}

/* Querformat mit wenig Höhe (Handy): kompakter h1 ohne Untertitel, Cover etwas kleiner */
@media (orientation: landscape) and (max-height: 520px) {
    .kicker {
        margin: 0 0 0.5rem;
    }

    .kicker h1 {
        font-size: 1.05rem;
    }

    .kicker__sub {
        display: none;
    }

    .carousel {
        margin-top: 0;
    }

    main:has(.carousel) {
        --home-card-height: min(212px, calc(100dvh - 215px));
        --home-carousel-height: calc(var(--home-card-height) + 44px);
        --home-label-top: calc(var(--home-card-height) + 6px);
    }
}

/* Footer bleibt beim Scrollen über dem Text lesbar */
body.Homepage .footer {
    z-index: 200;
    background-color: #000;
}

/* Handy-Hochformat: Inhalt oben ausrichten, Untertitel passt in eine Zeile */
@media (max-width: 540px) and (orientation: portrait) {
    main:has(.carousel) {
        justify-content: flex-start;
        padding-top: 12px;
    }

    .kicker__sub {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
        white-space: nowrap;
    }
}


@media (max-width: 540px) and (orientation: portrait) {
    main:has(.carousel) {
        padding-bottom: 0;
    }

    main:has(.carousel) .quote {
        margin-bottom: 0.75rem;
    }

    .home-intro-wrap {
        margin-top: 1rem;
    }
}

