/**
 * Text Bands CSS - Text-Bänder
 *
 * Mehrzeilige Aussage auf farbigen Bändern (Bebas Neue, Versalien).
 * Jede Zeile ist ein eigenes Band mit CD-Farbverlauf; die Bänder
 * richten sich rechts-, links- oder mittig aus.
 *
 * Farbwerte aus dem Webdesign gesampelt:
 *   Grün #428e78 → #68c695 · Rot #ef3333 → #f46940 · Blau #496dbe → #316dbc
 *
 * Konsumiert Theme-Tokens (--aktd-*) mit Fallbacks.
 */

/* Block */
.akt-text-bands {
    --akt-band-gradient: linear-gradient(90deg, #428e78 0%, #68c695 100%);
    --akt-band-color: var(--aktd-color-white, #ffffff);
    --akt-band-size: clamp(20px, 2.7vw, 34px); /* Design 32px @1200 */

    margin: 0 0 32px;
    padding: 0;
    line-height: 1.2;
}

.akt-text-bands--spacing-small {
    margin-bottom: 16px;
}

.akt-text-bands--spacing-large {
    margin-bottom: 56px;
}

/* Farbvarianten */
.akt-text-bands--color-gruen {
    --akt-band-gradient: linear-gradient(90deg, #428e78 0%, #68c695 100%);
}

.akt-text-bands--color-blau {
    --akt-band-gradient: linear-gradient(90deg, #496dbe 0%, #316dbc 100%);
}

.akt-text-bands--color-rot {
    --akt-band-gradient: linear-gradient(90deg, #de2f2f 0%, #c35433 100%);
}

/* Weiße Bänder mit farbiger Schrift */
.akt-text-bands--color-weiss {
    --akt-band-gradient: none;
}

.akt-text-bands--color-weiss .akt-text-bands__band {
    background: var(--aktd-color-white, #ffffff);
}

.akt-text-bands--color-weiss.akt-text-bands--text-gruen {
    --akt-band-color: var(--aktd-color-script-heading, #2b957e);
}

.akt-text-bands--color-weiss.akt-text-bands--text-blau {
    --akt-band-color: var(--aktd-color-blue-dark, #3062a6);
}

.akt-text-bands--color-weiss.akt-text-bands--text-rot {
    --akt-band-color: #d83c45;
}

/* Größen */
.akt-text-bands--size-small {
    --akt-band-size: clamp(16px, 1.6vw, 21px);
}

.akt-text-bands--size-large {
    --akt-band-size: clamp(22px, 2.8vw, 36px);
}

/* Ausrichtung */
.akt-text-bands--align-right {
    text-align: right;
}

.akt-text-bands--align-left {
    text-align: left;
}

.akt-text-bands--align-center {
    text-align: center;
}

/* Zeile = eigenes Band */
.akt-text-bands__line {
    display: block;
}

.akt-text-bands__line + .akt-text-bands__line {
    margin-top: 6px;
}

.akt-text-bands__band {
    display: inline-block;
    padding: 8px 16px;
    background: var(--akt-band-gradient);
    color: var(--akt-band-color);
    font-family: var(--aktd-font-accent, sans-serif);
    font-weight: 400;
    font-size: var(--akt-band-size);
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
}

/* Leerzustand (nur für Redakteure sichtbar) */
.akt-text-bands__no-content {
    padding: 16px;
    border: 2px dashed #c3c4c7;
    border-radius: 3px;
    color: #646970;
    font-size: 14px;
    text-align: center;
}

/* Responsive */
@media (max-width: 544px) {

    .akt-text-bands {
        margin-bottom: 24px;
    }

    .akt-text-bands--spacing-large {
        margin-bottom: 36px;
    }

    .akt-text-bands__band {
        padding: 7px 12px;
        letter-spacing: 0.04em;
    }
}

/* Barrierefreiheit / Print */
@media (prefers-contrast: high) {

    .akt-text-bands__band {
        outline: 1px solid currentColor;
        outline-offset: -1px;
    }
}

@media print {

    .akt-text-bands__band {
        background: none;
        color: #000;
        border: 1px solid #000;
    }
}
