/* ══════════════════════════════════════════════════════════════
   XXL ART — allgemeiner Kunstdruck-Teaser
   /css/print_teaser.css

   Markup: content_inc/section/print_teaser.php · JS: js/print_teaser.js
   Aufbau + Farben wie .room-teaser / .crop-teaser.
   ══════════════════════════════════════════════════════════════ */

.print-teaser {
    --teaser-bg:     #0c0d0e;
    --teaser-fg:     #f2f2ef;
    --teaser-muted:  rgba(242, 242, 239, 0.62);
    --teaser-accent: #c9a45c;
    --teaser-gutter: clamp(20px, 5vw, 64px);
    --teaser-ease:   cubic-bezier(.34, 1.2, .64, 1);
    --paint-h:  24vh;    /* max. Höhe Gemälde (Handy) */
    --print-h:  13vh;    /* Höhe der Drucke darunter (Handy) */

    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--teaser-bg);
    color: var(--teaser-fg);
}

.print-teaser *,
.print-teaser *::before,
.print-teaser *::after { box-sizing: border-box; }

.print-teaser-ratio { display: block; width: 100%; }   /* Höhe per padding-top */

/* ── Bildbereich ── */
.print-teaser-image {
    position: relative;
    flex: 0 0 auto;
    height: 64vh;
    height: 64svh;
    margin: 0;
    overflow: hidden;
}

.print-teaser-view {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transition: opacity 0.8s ease;
}
.print-teaser[data-mode="split"] .print-teaser-view--mosaic,
.print-teaser[data-mode="mosaic"] .print-teaser-view--split {
    opacity: 0;
    pointer-events: none;
}

/* ── 1: Zerlegen ── */
.print-teaser-slide {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7vh;
    padding: 64px 20px 40px;
    transition: opacity 1s ease;
}
.print-teaser-slide:not(.is-on) { opacity: 0; pointer-events: none; }

.print-teaser-paint {
    position: relative;
    width: 100%;
    max-width: calc(var(--paint-h) * var(--paint-ratio));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.print-teaser-paint > img {
    position: absolute;
    top: 0; left: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.print-teaser-frame {
    position: absolute;
    outline: 2px solid var(--teaser-fg);
    background: rgba(242, 242, 239, 0.08);
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 0.5s ease, transform 0.7s var(--teaser-ease);
}
.print-teaser-slide.is-on .print-teaser-frame {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.3s + var(--i) * 0.25s);
}
.print-teaser-num {
    position: absolute;
    top: -1px; left: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--teaser-accent);
    color: var(--teaser-bg);
    font-size: 11px;
    font-weight: 700;
}

/* Drucke: flex-grow = Seitenverhältnis → alle gleich hoch, Breite passt sich an */
.print-teaser-prints {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
    max-width: calc(var(--print-h) * var(--sum-ratio) + 32px);
}
.print-teaser-print {
    flex-basis: 0;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.8s var(--teaser-ease);
}
.print-teaser-slide.is-on .print-teaser-print {
    opacity: 1;
    transform: none;
    transition-delay: calc(1.1s + var(--i) * 0.2s);
}
.print-teaser-canvas {
    position: relative;
    display: block;
    overflow: hidden;
    box-shadow: 6px 12px 22px rgba(0, 0, 0, 0.55), 1px 2px 4px rgba(0, 0, 0, 0.4);
}
.print-teaser-canvas img {
    position: absolute;
    display: block;
    max-width: none;
}
.print-teaser-print-label {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.35;   /* schmale Drucke: Größe darf umbrechen statt in den Nachbarn zu laufen */
    color: var(--teaser-muted);
}
.print-teaser-print-label b {
    margin-right: 6px;
    color: var(--teaser-accent);
}

/* ── 2: Mosaik ── */
.print-teaser-grid {
    position: absolute;
    top: 64px; right: 16px; bottom: 16px; left: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 14vh;
    grid-auto-flow: dense;
    gap: 8px;
    overflow: hidden;
}
.print-teaser-tile {
    display: block;
    overflow: hidden;
    background: #1a1b1d;
    transition: opacity 0.6s ease;
}
.print-teaser-tile.is-swapping { opacity: 0; }
.print-teaser-tile img { transition: transform 0.6s ease; }
.print-teaser-tile:hover img,
.print-teaser-tile:focus-visible img { transform: scale(1.05); }
.print-teaser-tile:focus-visible { outline: 2px solid var(--teaser-fg); outline-offset: 2px; }
.print-teaser-tile--tall { grid-row: span 2; }
.print-teaser-tile--wide { grid-column: span 2; }
.print-teaser-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.print-teaser-image::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 18%;
    background: linear-gradient(0deg, var(--teaser-bg) 0%, rgba(12, 13, 14, 0) 100%);
    pointer-events: none;
}

/* ── Umschalter ── */
.print-teaser-switch {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 3;
    display: flex;
}
.print-teaser .print-teaser-switch-btn {
    display: inline-flex;
    align-items: center;
    height: 30px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(242, 242, 239, 0.35);
    border-radius: 0;
    background: rgba(12, 13, 14, 0.55);
    color: var(--teaser-fg);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.print-teaser .print-teaser-switch-btn + .print-teaser-switch-btn { border-left: 0; }
.print-teaser[data-mode="split"] [data-print-teaser-mode="split"],
.print-teaser[data-mode="mosaic"] [data-print-teaser-mode="mosaic"] {
    border-color: var(--teaser-fg);
    background: var(--teaser-fg);
    color: var(--teaser-bg);
}

/* ── Text ── */
.print-teaser-content {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: -20px;
    padding: 0 var(--teaser-gutter) 56px;
}

.print-teaser .print-teaser-heading {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    background: none;
}
.print-teaser-eyebrow {
    display: block;
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--teaser-accent);
}
.print-teaser-title {
    display: block;
    margin: 0 0 20px;
    font-size: clamp(40px, 10vw, 96px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--teaser-fg);
}
.print-teaser-title > span { display: block; }
.print-teaser-title-accent { color: var(--teaser-accent); }

.print-teaser-text {
    max-width: 40ch;
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--teaser-muted);
}

.print-teaser .print-teaser-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid var(--teaser-accent);
    border-radius: 0;
    background: var(--teaser-accent);
    color: var(--teaser-bg);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.print-teaser .print-teaser-button:hover {
    border-color: var(--teaser-fg);
    background: var(--teaser-fg);
    color: var(--teaser-bg);
}
.print-teaser .print-teaser-button:focus-visible,
.print-teaser button:focus-visible,
.print-teaser .print-teaser-print:focus-visible {
    outline: 2px solid var(--teaser-fg);
    outline-offset: 3px;
}
.print-teaser-button svg { width: 18px; height: 18px; flex: 0 0 auto; }

.print-teaser-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}
.print-teaser-stats li { margin: 0; padding: 0; }
.print-teaser-stats li::before { content: none; }
.print-teaser-stats b {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--teaser-fg);
}
.print-teaser-stats span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teaser-muted);
}

/* ── Breit: Bild rechts über die volle Höhe ── */
@media (min-width: 900px) {
    .print-teaser {
        --paint-h: 40vh;
        --print-h: 20vh;
        flex-direction: row;
        align-items: center;
    }
    .print-teaser-image {
        position: absolute;
        top: 0; bottom: 0; right: 0;
        left: 40%;
        height: auto;
    }
    .print-teaser-image::after { display: none; }

    .print-teaser-slide { padding: 80px 48px 56px; gap: 8vh; }

    .print-teaser-grid {
        top: 80px; right: 40px; bottom: 40px; left: 24px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-auto-rows: 15vh;
    }
    /* weicher Übergang vom Text ins Mosaik */
    .print-teaser-view--mosaic::before {
        content: "";
        position: absolute;
        top: 0; bottom: 0; left: 0;
        z-index: 1;
        width: 7%;
        background: linear-gradient(90deg, var(--teaser-bg) 0%, rgba(12, 13, 14, 0) 100%);
        pointer-events: none;
    }

    .print-teaser-switch { top: 32px; right: 40px; }

    .print-teaser-content {
        max-width: 680px;
        margin-top: 0;
        padding: 80px var(--teaser-gutter);
    }
    .print-teaser-title { font-size: clamp(52px, 5vw, 96px); }
    .print-teaser-text  { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .print-teaser-view,
    .print-teaser-slide,
    .print-teaser-frame,
    .print-teaser-print,
    .print-teaser-tile { transition: none; }
}
