/* ========== SERVICE MANAGEMENT - PAGE-SPECIFIC LAYER ========== */
/* Depends on styles.css tokens, home.css hero/FAQ/CTA, projektphasen.css phase DNA */

/* ----- Shared section rhythm ----- */
.sm-section {
    position: relative;
    padding: clamp(4rem, 10vh, 8rem) clamp(1.25rem, 5vw, 4rem);
    scroll-margin-top: var(--nav-scroll-offset);
}

.sm-section-header {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto clamp(2.5rem, 5vh, 4rem);
}

.sm-section-header .section-title {
    margin-bottom: 1rem;
}

.sm-section-intro {
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* ----- Hero modifier ----- */
.hero--sm .hero-subheadline {
    max-width: 42rem;
}

.hero--sm .hero-eyebrow {
    letter-spacing: 0.14em;
}

/* ----- S1 Betrieb - signature scene -----
   Not pinned: the scene is scrubbed by native scroll while it crosses the
   viewport (service-management.js), so it keeps the regular section
   rhythm instead of a full-viewport stage. */
.sm-betrieb {
    position: relative;
    scroll-margin-top: var(--nav-scroll-offset);
}

.sm-betrieb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3.5rem, 9vh, 6rem) clamp(1.25rem, 5vw, 4rem);
}

.sm-betrieb-inner {
    width: 100%;
    max-width: 72rem;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vh, 2.5rem);
}

.sm-betrieb-copy {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}

.sm-betrieb-headlines {
    position: relative;
    min-height: clamp(5rem, 14vh, 7rem);
    margin-bottom: 1rem;
}

.sm-betrieb-headline {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: none;
}

.sm-betrieb-headline--start {
    opacity: 1;
}

.sm-betrieb-headline--end {
    opacity: 0;
}

.sm-betrieb.is-stable .sm-betrieb-headline--start {
    opacity: 0;
}

.sm-betrieb.is-stable .sm-betrieb-headline--end {
    opacity: 1;
}

.sm-superkicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--neon-purple);
    margin-bottom: 0.5rem;
}

.sm-betrieb-title {
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    color: var(--text-primary);
}

.sm-betrieb-sub {
    font-size: clamp(0.9rem, 2vw, 1.02rem);
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

.sm-betrieb-scene {
    position: relative;
    width: 100%;
    border-radius: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(19, 4, 234, 0.12);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: min(52vh, 420px);
}

.sm-ops-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sm-ekg-line {
    transition: none;
}

.sm-metric-bg {
    fill: rgba(248, 251, 255, 0.55);
    stroke: rgba(120, 120, 140, 0.25);
    stroke-width: 1;
    transition: none;
}

.sm-metric.is-active .sm-metric-bg {
    fill: rgba(248, 251, 255, 0.92);
    stroke: rgba(34, 180, 100, 0.45);
}

.sm-metric-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    fill: rgba(20, 20, 40, 0.55);
    font-family: var(--font-sans);
}

.sm-metric.is-active .sm-metric-label {
    fill: rgba(20, 20, 40, 0.72);
}

.sm-metric-value {
    font-size: 20px;
    font-weight: 800;
    fill: rgba(20, 20, 40, 0.45);
    font-family: var(--font-sans);
}

.sm-metric.is-active .sm-metric-value {
    fill: rgba(22, 140, 75, 0.95);
}

.sm-metric {
    opacity: 0.4;
    transition: none;
}

.sm-metric.is-visible {
    opacity: 1;
}

.sm-alert-bg {
    fill: rgba(248, 251, 255, 0.9);
    stroke-width: 1;
    transition: none;
}

.sm-alert-text {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-sans);
}

.sm-alert--active {
    fill: rgba(200, 60, 50, 0.95);
    opacity: 1;
}

.sm-alert--resolved {
    fill: rgba(22, 140, 75, 0.95);
    opacity: 0;
}

.sm-alert.is-resolved .sm-alert--active {
    opacity: 0;
}

.sm-alert.is-resolved .sm-alert--resolved {
    opacity: 1;
}

.sm-alert.is-resolved .sm-alert-bg {
    stroke: rgba(34, 180, 100, 0.5);
}

.sm-alert:not(.is-resolved) .sm-alert-bg {
    stroke: rgba(200, 60, 50, 0.45);
}

/* ----- S2 Pillars ----- */
.sm-pillar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    max-width: 72rem;
    margin: 0 auto;
}

.sm-pillar {
    position: relative;
    overflow: hidden;
    cursor: default;
    --mx: 50%;
    --my: 50%;
    --rx: 0deg;
    --ry: 0deg;
    opacity: 1;
    transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 10px 36px rgba(19, 4, 234, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
}

.sm-pillar:hover {
    border-color: rgba(19, 4, 234, 0.45);
    box-shadow: 0 16px 56px rgba(19, 4, 234, 0.18);
    transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px);
}

.sm-pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        320px circle at var(--mx) var(--my),
        rgba(19, 4, 234, 0.12),
        transparent 55%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 0;
}

.sm-pillar:hover::before,
.sm-pillar:focus-within::before {
    opacity: 1;
}

.sm-pillar-inner {
    position: relative;
    z-index: 1;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sm-pillar-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.15rem;
}

.sm-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(34, 180, 100, 0.9);
    box-shadow: 0 0 6px rgba(34, 180, 100, 0.5);
    animation: sm-status-pulse 2.4s ease-in-out infinite;
}

.sm-status-dot--alert {
    background: rgba(220, 80, 60, 0.9);
    box-shadow: 0 0 6px rgba(220, 80, 60, 0.45);
}

.sm-status-dot--release {
    background: var(--neon-blue);
    box-shadow: 0 0 6px rgba(19, 4, 234, 0.45);
}

.sm-status-label {
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(20, 20, 40, 0.5);
}

@keyframes sm-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.sm-pillar-icon {
    color: var(--neon-blue);
    flex-shrink: 0;
}

.sm-icon-stroke {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
}

.sm-pillar.is-drawn .sm-icon-stroke {
    stroke-dashoffset: 0;
}

.sm-pillar-title {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
    color: var(--text-primary);
}

.sm-pillar-text {
    font-size: clamp(0.88rem, 1.8vw, 0.95rem);
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

.sm-pillar-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--neon-purple);
    background: rgba(129, 55, 255, 0.1);
    border: 1px solid rgba(129, 55, 255, 0.25);
}

/* ----- S3 Incident timeline ----- */
.sm-incident-wrap {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
}

.sm-incident-timeline {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.sm-incident-timeline--horizontal {
    display: none;
    top: 2.75rem;
    left: 0;
    width: 100%;
    height: 4px;
}

.sm-incident-timeline--vertical {
    display: block;
    top: 0;
    left: 0.65rem;
    width: 3px;
    height: 100%;
}

.sm-incident-progress--vertical {
    stroke: url(#sm-incident-gradient-v);
}

.sm-incident-track {
    stroke: rgba(129, 55, 255, 0.28);
    stroke-width: 3;
}

.sm-incident-progress {
    stroke: url(#sm-incident-gradient);
    stroke-width: 3;
}

.sm-mttd-accent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: clamp(2rem, 4vh, 3rem);
    text-align: center;
}

.sm-mttd-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neon-purple);
}

.sm-mttd-value {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.sm-incident-steps {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.5vh, 2rem);
    position: relative;
    z-index: 1;
}

.sm-incident-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

.sm-incident-node {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-top: 0.35rem;
    margin-left: -2.15rem;
    border-radius: 50%;
    background: rgba(248, 251, 255, 0.98);
    border: 2.5px solid rgba(129, 55, 255, 0.45);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--neon-purple);
    box-shadow: 0 2px 10px rgba(19, 4, 234, 0.12);
    transition:
        background 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, box-shadow;
}

.sm-incident-step.is-lit .sm-incident-node {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow:
        0 0 0 5px rgba(19, 4, 234, 0.14),
        0 4px 14px rgba(129, 55, 255, 0.35);
    transform: scale(1.1);
}

/* Vertical progress line on mobile */
.sm-incident-wrap::before {
    display: none;
}

.sm-incident-card {
    flex: 1;
    padding: clamp(1.15rem, 2.5vw, 1.5rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 36px rgba(19, 4, 234, 0.12);
}

.sm-incident-step-title {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 0.45rem;
    color: var(--text-primary);
}

.sm-incident-step-text {
    font-size: clamp(0.86rem, 1.8vw, 0.92rem);
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ----- S4 Service levels ----- */
.sm-kpi-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 56rem;
    margin: 0 auto clamp(2.5rem, 5vh, 3.5rem);
}

.sm-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 28px rgba(19, 4, 234, 0.1);
    text-align: center;
}

.sm-kpi-value {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--neon-blue);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.sm-kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.35;
}

.sm-tier-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    max-width: 72rem;
    margin: 0 auto;
    align-items: stretch;
}

.sm-tier {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 36px rgba(19, 4, 234, 0.12);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.sm-tier:hover {
    border-color: rgba(19, 4, 234, 0.4);
    box-shadow: 0 14px 48px rgba(19, 4, 234, 0.16);
    transform: translateY(-4px);
}

.sm-tier--featured {
    border-color: rgba(19, 4, 234, 0.5);
    box-shadow: 0 14px 48px rgba(19, 4, 234, 0.18);
}

.sm-tier-badge {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    white-space: nowrap;
}

.sm-tier-title {
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
    text-align: center;
}

.sm-tier--featured .sm-tier-title {
    margin-top: 0.5rem;
}

.sm-tier-text {
    font-size: clamp(0.88rem, 1.8vw, 0.95rem);
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
}

/* ----- S5 Einbettung cycle ----- */
.sm-cycle-item .phase-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(19, 4, 234, 0.2), rgba(129, 55, 255, 0.2));
    color: var(--neon-purple);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sm-cycle-nav {
    max-width: 80rem;
    margin: 0 auto clamp(1.5rem, 3vh, 2rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sm-cycle-nav::-webkit-scrollbar {
    display: none;
}

.sm-cycle-list {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: min-content;
}

.sm-cycle-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    min-width: clamp(7.5rem, 14vw, 10rem);
    border-radius: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    opacity: 0.55;
    transition: opacity var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center;
}

.sm-cycle-item--active {
    opacity: 1;
    border-color: rgba(19, 4, 234, 0.45);
    box-shadow: 0 10px 32px rgba(19, 4, 234, 0.16);
}

.sm-cycle-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.sm-cycle-link:hover .sm-cycle-name,
.sm-cycle-link:focus-visible .sm-cycle-name {
    color: var(--neon-purple);
}

.sm-cycle-name {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1.35;
    transition: color var(--transition-normal);
}

.sm-cross-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 56rem;
    margin: 0 auto;
}

.sm-cross-link-card {
    display: block;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    text-decoration: none;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.sm-cross-link-card:hover,
.sm-cross-link-card:focus-visible {
    border-color: rgba(129, 55, 255, 0.4);
    box-shadow: 0 10px 32px rgba(19, 4, 234, 0.14);
    transform: translateY(-3px);
}

.sm-cross-link-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.sm-cross-link-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.sm-cross-link-arrow {
    font-size: 1.1rem;
    color: var(--neon-purple);
    font-weight: 700;
}

/* ----- CTA extensions ----- */
.sm-cta-box .cta-box-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sm-cta-box .cta-title {
    margin-bottom: 1rem;
    max-width: 36rem;
}

.sm-cta-desc {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto 1.75rem;
}

.sm-cta-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sm-cta-contact a {
    color: var(--neon-blue);
    font-weight: 600;
    text-decoration: none;
}

.sm-cta-contact a:hover,
.sm-cta-contact a:focus-visible {
    text-decoration: underline;
}

.sm-cta-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(19, 4, 234, 0.12);
}

.sm-cta-trust span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.sm-cta-box .btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

/* ----- Tablet+ ----- */
@media (min-width: 768px) {
    .sm-betrieb-inner {
        flex-direction: row;
        align-items: center;
        gap: clamp(2rem, 4vw, 3.5rem);
    }

    .sm-betrieb-copy {
        flex: 0 0 38%;
        text-align: left;
        margin: 0;
    }

    .sm-betrieb-headlines {
        min-height: clamp(6rem, 12vh, 8rem);
    }

    .sm-betrieb-headline {
        align-items: flex-start;
    }

    .sm-betrieb-scene {
        flex: 1;
        max-height: min(58vh, 460px);
    }

    .sm-pillar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sm-incident-wrap::before {
        display: none;
    }

    .sm-incident-timeline--vertical {
        display: none;
    }

    .sm-incident-timeline--horizontal {
        display: block;
    }

    .sm-incident-timeline--horizontal .sm-incident-track {
        display: none;
    }

    .sm-incident-steps {
        flex-direction: row;
        gap: clamp(0.75rem, 1.5vw, 1.25rem);
        padding-top: 3.5rem;
        padding-left: 0;
    }

    .sm-incident-step {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .sm-incident-node {
        margin-top: 0;
        margin-left: 0;
        position: relative;
        z-index: 2;
    }

    .sm-incident-card {
        width: 100%;
    }

    .sm-kpi-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .sm-tier-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sm-tier-grid--promise {
        grid-template-columns: repeat(2, 1fr);
        max-width: 56rem;
    }

    .sm-cross-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sm-cross-link-label,
    .sm-cross-link-text {
        hyphens: auto;
        overflow-wrap: break-word;
    }
}

/* ----- Tablets: long compounds in 3-column pillar titles ----- */
@media (min-width: 768px) and (max-width: 1199px) {
    .sm-pillar-title {
        font-size: 0.95rem;
        letter-spacing: 0.02em;
        -webkit-hyphens: auto;
        hyphens: auto;
        overflow-wrap: break-word;
    }
}

@media (min-width: 1200px) {
    .sm-cycle-item {
        min-width: 11rem;
    }
}

@media (min-width: 1400px) {
    .sm-betrieb-inner {
        max-width: 80rem;
    }

    .sm-pillar-grid {
        max-width: 80rem;
    }
}

/* ----- Portrait phones: headline -> scene -> copy -----
   Keeps the swapping headline and the live dashboard in view together
   while the section scrolls through. */
@media (max-width: 767px) and (orientation: portrait) {
    .sm-betrieb-copy {
        display: contents;
    }

    .sm-betrieb-headlines {
        order: 1;
        width: 100%;
        max-width: 40rem;
        margin: 0 auto;
        text-align: center;
    }

    .sm-betrieb-scene {
        order: 2;
    }

    .sm-betrieb-sub {
        order: 3;
        max-width: 40rem;
        margin: 0 auto;
        text-align: center;
    }
}

/* ----- Small phones ----- */
@media (max-width: 380px) {
    .sm-betrieb-stage {
        padding-top: clamp(3rem, 8vh, 4.5rem);
    }

    .sm-cycle-item {
        min-width: 6.5rem;
        padding: 0.85rem;
    }

    .sm-cycle-name {
        font-size: 0.62rem;
    }

    .sm-kpi-row {
        grid-template-columns: 1fr;
    }
}

/* ----- Landscape mobile ----- */
@media (max-width: 932px) and (orientation: landscape) {
    .sm-betrieb-stage {
        padding-top: clamp(2.5rem, 6vh, 4rem);
        padding-bottom: clamp(2.5rem, 6vh, 4rem);
    }

    .sm-betrieb-inner {
        flex-direction: row;
        align-items: center;
    }

    .sm-betrieb-copy {
        flex: 0 0 42%;
        text-align: left;
    }

    .sm-betrieb-headline {
        align-items: flex-start;
    }

    .sm-betrieb-scene {
        max-height: 45vh;
    }

    .sm-section {
        padding-top: clamp(2.5rem, 6vh, 4rem);
        padding-bottom: clamp(2.5rem, 6vh, 4rem);
    }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    .sm-betrieb-headline,
    .sm-pillar,
    .sm-incident-step,
    .sm-incident-node,
    .sm-tier,
    .sm-cycle-item,
    .sm-cross-link-card,
    .sm-kpi {
        transition: none;
        opacity: 1 !important;
        transform: none !important;
    }

    .sm-status-dot {
        animation: none;
    }

    .sm-cycle-item:not(.sm-cycle-item--active) {
        opacity: 0.55 !important;
    }

    .sm-betrieb-headline--start {
        opacity: 0;
    }

    .sm-betrieb-headline--end {
        opacity: 1;
    }

    .sm-betrieb.is-stable .sm-betrieb-headline--start {
        opacity: 0;
    }

    .sm-icon-stroke {
        stroke-dashoffset: 0;
    }

    .sm-incident-step.is-lit .sm-incident-node,
    .sm-incident-step .sm-incident-node {
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
        border-color: rgba(255, 255, 255, 0.35);
        color: #fff;
        transform: scale(1.1);
    }

    .sm-incident-progress {
        stroke-dashoffset: 0 !important;
    }

    .sm-metric {
        opacity: 1 !important;
    }

    .sm-metric.is-active .sm-metric-bg {
        fill: rgba(248, 251, 255, 0.92);
        stroke: rgba(34, 180, 100, 0.45);
    }

    .sm-alert.is-resolved .sm-alert--active {
        opacity: 0;
    }

    .sm-alert.is-resolved .sm-alert--resolved {
        opacity: 1;
    }

    .cta-box::before {
        animation: none;
    }
}