/**
 * Visual bands — UI graphics on the service pages (inc/visuals.php).
 * Full-width, centred, at most two per page: the "Ausgangslage" band turns
 * into a stage, plus one band of its own before "Methodik".
 * Calm, flat backgrounds on purpose: the graphic is the focus, no patterns.
 */

/* ── Bands ── */

.t1-band {
    --band-bg: var(--wp--preset--color--bg, #f5f4f0);
    --band-label: var(--wp--preset--color--text-muted);

    position: relative;
    isolation: isolate;
    background-color: var(--band-bg);
}

/* Tone: the tint of the competence (web blue, content orange, marketing yellow). */
.t1-band--tone {
    --band-bg: var(--sa-tint, var(--wp--preset--color--blue-100));
}

.t1-band--night {
    --band-bg: var(--wp--preset--color--text-main, #121212);
    --band-label: rgba(245, 244, 240, 0.55);
}

/* A single, very soft warm glow — depth without noise. */
.t1-band--night::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(50% 70% at 50% 0%, rgba(252, 73, 11, 0.1), transparent 75%);
    pointer-events: none;
}

.sp-band {
    padding-block: clamp(var(--wp--preset--spacing--64), 9vw, var(--wp--preset--spacing--128));
}

/* ── Stage ── */

.t1-stage {
    margin: clamp(var(--wp--preset--spacing--48), 6vw, var(--wp--preset--spacing--96)) auto 0;
    min-width: 0;
}

.sp-band .t1-stage {
    margin-top: 0;
}

.t1-stage__canvas {
    position: relative;
    margin-inline: auto;
}

.t1-stage--single .t1-stage__canvas {
    max-width: min(56rem, var(--stage-max, 56rem));
    padding-bottom: clamp(var(--wp--preset--spacing--24), 3vw, var(--wp--preset--spacing--48));
}

.t1-stage__main,
.t1-stage__item {
    display: block;
    width: 100%;
    height: auto;
}

/* Never upscale a 1× graphic beyond its own width inside a pair. */
.t1-stage__item {
    width: auto;
    max-width: 100%;
    margin-inline: auto;
}

/* Satellite: centred over the lower edge, like a notification. */
.t1-stage__satellite {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(46%, 26rem);
    height: auto;
    transform: translateX(-50%);
}

.t1-stage--items .t1-stage__canvas {
    display: grid;
    grid-template-columns: repeat(var(--stage-count, 2), minmax(0, 1fr));
    gap: clamp(var(--wp--preset--spacing--24), 3vw, var(--wp--preset--spacing--48));
    align-items: center;
    max-width: calc(var(--stage-count, 2) * 34rem);
}

.t1-stage__label {
    margin: var(--wp--preset--spacing--24) 0 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--wp--preset--font-size--xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--band-label, var(--wp--preset--color--text-muted));
}

/* ── Ausgangslage as stage: text block centred above the graphic ── */

.sp-dossier--visual .sp-dossier__grid > div:first-child {
    width: 100%;
    max-width: 44rem;
    margin-inline: auto;
}

@media (max-width: 900px) {
    .t1-stage--items .t1-stage__canvas {
        grid-template-columns: minmax(0, 1fr);
        max-width: 34rem;
    }
}

@media (max-width: 640px) {
    .t1-stage__satellite {
        width: 78%;
    }
}
