/* ========== LÖSUNGSDESIGN - PAGE-SPECIFIC LAYER ========== */
/* Depends on styles.css tokens and home.css hero/CTA patterns */

/* ----- Shared section rhythm ----- */
.ld-section {
    position: relative;
    padding: clamp(4rem, 10vh, 8rem) clamp(1.25rem, 5vw, 4rem);
    scroll-margin-top: var(--nav-scroll-offset);
}

.ld-section-header {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto clamp(2.5rem, 5vh, 4rem);
}

.ld-section-header .section-title {
    margin-bottom: 1rem;
}

.ld-section-intro {
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* ----- Hero modifier ----- */
.hero--loesung .hero-subheadline {
    max-width: 42rem;
}

.hero--loesung .hero-eyebrow {
    letter-spacing: 0.14em;
}

/* ----- Phase number (cycle nav) ----- */
.ld-phase-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    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;
}

.ld-phase-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color var(--transition-normal), gap var(--transition-normal);
}

.ld-phase-link:hover,
.ld-phase-link:focus-visible {
    color: var(--neon-purple);
    gap: 0.55rem;
}

.ld-phase-link:focus-visible {
    outline: 2px solid var(--neon-purple);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ----- 5.1 Blueprint signature - 3D scene ----- */
.ld-bauplan {
    position: relative;
    scroll-margin-top: var(--nav-scroll-offset);
    padding-bottom: clamp(3rem, 8vh, 5rem);
}

.ld-bauplan-inner {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vh, 2.5rem);
}

/* Scene stage: not pinned, so it keeps the regular section rhythm instead
   of a full-viewport stage (no empty gap before the next section). */
.ld-bauplan-pinwrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vh, 1rem) 0;
}

.ld-bauplan-scene {
    position: relative;
    width: 100%;
    border-radius: 1.5rem;
    border: 1px solid rgba(19, 4, 234, 0.12);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    max-height: min(70vh, 560px);
    background:
        radial-gradient(ellipse 90% 80% at 50% 42%, rgba(19, 4, 234, 0.04) 0%, transparent 62%),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(129, 55, 255, 0.03) 0%, transparent 50%),
        #ffffff;
    box-shadow:
        0 12px 40px rgba(19, 4, 234, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ld-blueprint-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    pointer-events: none;
}

.ld-bauplan-scene.is-webgl .ld-blueprint-canvas {
    pointer-events: auto;
}

.ld-blueprint-labels {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.ld-req-chip {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    background: rgba(244, 248, 255, 0.92);
    border: 1.5px solid rgba(19, 4, 234, 0.45);
    font-family: var(--font-sans);
    font-size: clamp(0.65rem, 1.5vw, 0.78rem);
    font-weight: 600;
    color: rgba(18, 16, 42, 0.92);
    white-space: nowrap;
    box-shadow:
        0 4px 18px rgba(19, 4, 234, 0.2),
        0 0 12px rgba(129, 55, 255, 0.12);
    opacity: 0;
    will-change: transform, opacity, left, top;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ld-node-label-3d {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    padding: 0.35rem 0.7rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(19, 4, 234, 0.4);
    font-family: var(--font-sans);
    font-size: clamp(0.62rem, 1.4vw, 0.76rem);
    font-weight: 700;
    color: rgba(18, 16, 42, 0.92);
    white-space: nowrap;
    letter-spacing: 0.02em;
    opacity: 0;
    will-change: transform, opacity, left, top;
    box-shadow: 0 2px 12px rgba(19, 4, 234, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.ld-node-label-3d--hub {
    border-color: rgba(129, 55, 255, 0.55);
    color: rgba(18, 16, 42, 0.95);
    box-shadow: 0 2px 16px rgba(129, 55, 255, 0.18);
}

.ld-node-label-3d.is-lit {
    background: rgba(255, 255, 255, 0.98);
}

.ld-node-label-3d.is-hovered {
    border-color: rgba(19, 4, 234, 0.75);
    box-shadow: 0 4px 20px rgba(19, 4, 234, 0.22);
    z-index: 3;
}

/* Static SVG fallback (WebGL unavailable / noscript) */
.ld-blueprint-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    opacity: 0;
}

.ld-bauplan-scene.is-fallback .ld-blueprint-fallback {
    display: block;
    opacity: 1;
}

.ld-blueprint-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ld-conn-line {
    stroke: url(#ld-conn-gradient);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0;
}

.ld-bauplan-scene.is-fallback .ld-conn-line,
.ld-bauplan.is-lit .ld-blueprint-fallback .ld-conn-line {
    opacity: 1;
    stroke-dashoffset: 0;
}

.ld-arch-node {
    opacity: 0;
}

.ld-bauplan-scene.is-fallback .ld-arch-node,
.ld-bauplan.is-lit .ld-blueprint-fallback .ld-arch-node {
    opacity: 1;
}

.ld-node-box {
    fill: rgba(255, 255, 255, 0.92);
    stroke: rgba(19, 4, 234, 0.45);
    stroke-width: 1.5;
}

.ld-node-box--hub {
    stroke: rgba(129, 55, 255, 0.65);
    stroke-width: 2;
}

.ld-node-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    fill: rgba(18, 16, 42, 0.92);
    text-anchor: middle;
    letter-spacing: 0.02em;
}

.ld-arch-node.is-lit .ld-node-box {
    fill: rgba(255, 255, 255, 0.98);
    stroke: var(--neon-blue);
    filter: url(#ld-node-glow);
}

.ld-arch-node--hub.is-lit .ld-node-box {
    stroke: var(--neon-purple);
}

/* ----- 5.2 Discipline cards ----- */
.ld-discipline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    max-width: 72rem;
    margin: 0 auto;
}

.ld-discipline-card {
    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);
}

.ld-discipline-card: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);
}

.ld-discipline-card::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;
}

.ld-discipline-card:hover::before,
.ld-discipline-card:focus-within::before {
    opacity: 1;
}

.ld-discipline-card-inner {
    position: relative;
    z-index: 1;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ld-discipline-icon {
    color: var(--neon-blue);
    flex-shrink: 0;
}

.ld-icon-stroke {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
}

.ld-discipline-card.is-drawn .ld-icon-stroke {
    stroke-dashoffset: 0;
}

.ld-discipline-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);
}

.ld-discipline-text {
    font-size: clamp(0.88rem, 1.8vw, 0.95rem);
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

.ld-discipline-result {
    font-size: clamp(0.78rem, 1.6vw, 0.85rem);
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(19, 4, 234, 0.1);
}

.ld-result-label {
    font-weight: 700;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.68rem;
}

/* ----- 5.3 Signal timeline ----- */
.ld-signale-wrap {
    position: relative;
    max-width: 52rem;
    margin: 0 auto;
    padding-left: 2.5rem;
}

.ld-signale-timeline {
    position: absolute;
    top: 0;
    left: 0.65rem;
    width: 3px;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ld-timeline-track {
    stroke: rgba(129, 55, 255, 0.38);
    stroke-width: 2.5;
}

.ld-timeline-progress {
    stroke: url(#ld-signale-gradient);
    stroke-width: 2.5;
}

.ld-signale-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vh, 2.5rem);
    position: relative;
    z-index: 1;
}

.ld-signal-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.ld-signal-node {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.45rem;
    margin-left: -2.15rem;
    border-radius: 50%;
    background: rgba(248, 251, 255, 0.98);
    border: 2.5px solid rgba(129, 55, 255, 0.5);
    box-shadow:
        0 2px 10px rgba(19, 4, 234, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    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);
}

.ld-signal-item.is-lit .ld-signal-node {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 0 5px rgba(19, 4, 234, 0.14),
        0 4px 14px rgba(129, 55, 255, 0.35);
    transform: scale(1.12);
}

.ld-signal-body {
    position: relative;
    flex: 1;
    overflow: hidden;
    padding: clamp(1.25rem, 2.5vw, 1.65rem);
    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);
}

.ld-signal-title {
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 0.55rem;
    color: var(--text-primary);
}

.ld-signal-text {
    font-size: clamp(0.88rem, 1.8vw, 0.95rem);
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* ----- 5.4 Deliverable stack ----- */
.ld-deliverable-stage {
    position: relative;
    width: 100%;
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    overflow: visible;
}

.ld-deliverable-stack {
    position: relative;
    width: 100%;
    min-height: clamp(28rem, 62vh, 36rem);
    perspective: 1400px;
    overflow: visible;
}

.ld-deliverable-sheet {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(94vw, 22.5rem);
    min-height: 17.5rem;
    padding: clamp(1.35rem, 3.2vw, 2rem);
    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 12px 36px rgba(19, 4, 234, 0.14);
    transform-origin: center center;
    opacity: 0;
    list-style: none;
    pointer-events: auto;
    cursor: default;
    overflow: hidden;
    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
    will-change: transform, opacity;
}

.ld-deliverable-sheet.is-hovered {
    border-color: rgba(19, 4, 234, 0.55);
    box-shadow:
        0 28px 64px rgba(19, 4, 234, 0.28),
        0 10px 28px rgba(129, 55, 255, 0.18);
}

.ld-deliverable-sheet:focus-visible {
    outline: 2px solid var(--neon-purple);
    outline-offset: 4px;
}

.ld-sheet-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(19, 4, 234, 0.12);
}

.ld-sheet-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.ld-sheet-title {
    font-size: clamp(1rem, 2.1vw, 1.12rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.3;
    word-break: break-word;
}

.ld-sheet-list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ld-sheet-list li {
    font-size: clamp(0.86rem, 1.7vw, 0.92rem);
    line-height: 1.55;
    color: var(--text-muted);
}

/* ----- 5.5 Einbettung cycle ----- */
.ld-cycle-nav {
    max-width: 80rem;
    margin: 0 auto clamp(2.5rem, 5vh, 3.5rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding-inline: clamp(0.25rem, 1vw, 0.5rem);
}

.ld-cycle-nav::-webkit-scrollbar {
    display: none;
}

.ld-cycle-list {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    list-style: none;
    margin: 0;
    padding: 0.5rem clamp(0.25rem, 1vw, 0.5rem);
    min-width: min-content;
    justify-content: center;
}

.ld-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: 1;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center;
}

.ld-cycle-item:not(.ld-cycle-item--active) {
    opacity: 0.55;
}

.ld-cycle-item--active {
    opacity: 1;
    border-color: rgba(19, 4, 234, 0.45);
    box-shadow: 0 10px 32px rgba(19, 4, 234, 0.16);
}

.ld-cycle-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.ld-cycle-link:hover .ld-cycle-name,
.ld-cycle-link:focus-visible .ld-cycle-name {
    color: var(--neon-purple);
}

.ld-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);
}

.ld-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 80rem;
    margin: 0 auto clamp(2rem, 4vh, 2.5rem);
    align-items: stretch;
}

.ld-related-card {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    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);
}

.ld-related-card:hover,
.ld-related-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);
}

.ld-related-card:hover .ld-related-arrow,
.ld-related-card:focus-visible .ld-related-arrow {
    transform: translateX(6px);
}

.ld-related-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neon-purple);
    margin-bottom: 0.4rem;
}

.ld-related-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;
}

.ld-related-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

.ld-related-arrow {
    display: block;
    margin-top: 0.75rem;
    font-size: 1.25rem;
    color: var(--neon-purple);
    font-weight: 700;
    transition: transform var(--transition-normal);
}

.ld-cross-note {
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 0.98rem);
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto;
}

.ld-cross-note .ld-phase-link {
    display: block;
    margin-top: 0.5rem;
}

/* ----- CTA extensions ----- */
.ld-cta-box .cta-box-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ld-cta-box .cta-title {
    margin-bottom: 1rem;
    max-width: 36rem;
}

.ld-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;
}

.ld-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);
}

.ld-cta-contact a {
    color: var(--neon-blue);
    font-weight: 600;
    text-decoration: none;
}

.ld-cta-contact a:hover,
.ld-cta-contact a:focus-visible {
    text-decoration: underline;
}

.ld-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);
}

.ld-cta-trust span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.ld-cta-box .btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

/* ----- Tablet+ ----- */
@media (min-width: 768px) {
    .ld-node-label {
        font-size: 13px;
    }

    .ld-node-label-3d {
        font-size: clamp(0.7rem, 1.2vw, 0.82rem);
    }

    .ld-discipline-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ld-signale-wrap {
        padding-left: 3rem;
    }

    .ld-signale-timeline {
        left: 1rem;
        width: 4px;
    }

    .ld-signal-node {
        margin-left: -2.65rem;
    }

    .ld-ergebnisse .ld-deliverable-stage {
        max-width: min(96vw, 68rem);
        padding: 0;
    }

    .ld-deliverable-stack {
        min-height: clamp(24rem, 40vh, 30rem);
    }

    .ld-deliverable-sheet {
        width: clamp(16.5rem, 22vw, 20.5rem);
        min-height: 21.5rem;
        padding: clamp(1.5rem, 2.5vw, 2.1rem);
    }

    .ld-sheet-header {
        margin-bottom: 1.15rem;
        padding-bottom: 0.85rem;
    }

    .ld-sheet-icon {
        font-size: 1.5rem;
    }

    .ld-sheet-title {
        font-size: clamp(1.1rem, 2.3vw, 1.28rem);
    }

    .ld-sheet-list {
        gap: 0.6rem;
    }

    .ld-sheet-list li {
        font-size: clamp(0.95rem, 1.9vw, 1.04rem);
        line-height: 1.6;
    }

    .ld-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .ld-node-label {
        font-size: 14px;
    }

    .ld-node-label-3d {
        font-size: 0.82rem;
    }

    .ld-cycle-item {
        min-width: 11rem;
    }
}

@media (min-width: 1400px) {
    .ld-bauplan-inner,
    .ld-discipline-grid,
    .ld-deliverable-stage {
        max-width: 80rem;
    }
}

/* ----- Mobile deliverable stack ----- */
@media (max-width: 767px) {
    .ld-bauplan-pinwrap {
        align-items: stretch;
    }

    .ld-bauplan {
        padding-bottom: clamp(2rem, 5vh, 3rem);
    }

    .ld-ergebnisse .ld-section-header {
        margin-bottom: clamp(2rem, 5vh, 2.75rem);
    }

    .ld-ergebnisse .ld-deliverable-stage {
        margin-top: clamp(0.5rem, 2vh, 1rem);
        margin-bottom: clamp(2.5rem, 6vh, 3.5rem);
    }

    .ld-deliverable-stack {
        min-height: auto;
        margin-top: clamp(0.75rem, 2vh, 1.25rem);
        margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
    }

    .ld-deliverable-sheet {
        top: auto;
        bottom: 0;
        transform-origin: 50% 100%;
    }

    /* Fix: prevent clipping of first cycle item on narrow viewports */
    .ld-cycle-list {
        justify-content: flex-start;
    }
}

/* ----- Small phones ----- */
@media (max-width: 380px) {
    .ld-req-chip {
        font-size: 0.58rem;
        padding: 0.3rem 0.55rem;
    }

    .ld-node-label-3d {
        font-size: 0.55rem;
        padding: 0.25rem 0.5rem;
    }

    .ld-node-label {
        font-size: 10px;
    }

    .ld-cycle-item {
        min-width: 6.5rem;
        padding: 0.85rem;
    }

    .ld-cycle-name {
        font-size: 0.62rem;
    }
}

/* ----- Landscape mobile ----- */
@media (max-width: 932px) and (orientation: landscape) {
    .ld-bauplan-scene {
        max-height: 45vh;
    }

    .ld-section {
        padding-top: clamp(2.5rem, 6vh, 4rem);
        padding-bottom: clamp(2.5rem, 6vh, 4rem);
    }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    .ld-bauplan-scene,
    .ld-discipline-card,
    .ld-deliverable-sheet,
    .ld-signal-item,
    .ld-signal-node,
    .ld-cycle-item,
    .ld-related-card {
        transition: none;
        transform: none !important;
    }

    .ld-blueprint-labels .ld-req-chip {
        opacity: 0 !important;
    }

    .ld-blueprint-labels .ld-node-label-3d,
    .ld-bauplan-scene.is-static .ld-node-label-3d {
        opacity: 1 !important;
    }

    .ld-blueprint-fallback .ld-arch-node,
    .ld-bauplan.is-lit .ld-blueprint-fallback .ld-arch-node {
        opacity: 1;
    }

    .ld-blueprint-fallback .ld-conn-line,
    .ld-bauplan.is-lit .ld-blueprint-fallback .ld-conn-line {
        opacity: 1;
        stroke-dashoffset: 0 !important;
    }

    .ld-arch-node.is-lit .ld-node-box {
        filter: none;
    }

    .ld-icon-stroke {
        stroke-dashoffset: 0;
    }

    .ld-timeline-progress {
        stroke-dashoffset: 0 !important;
    }

    .ld-signal-item {
        opacity: 1 !important;
    }

    .ld-signal-item .ld-signal-node {
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
        border-color: rgba(255, 255, 255, 0.35);
        transform: scale(1.12);
    }

    .ld-deliverable-sheet {
        opacity: 1 !important;
        transform: none !important;
    }

    .ld-cycle-item:not(.ld-cycle-item--active) {
        opacity: 0.55;
    }

    .cta-box::before {
        animation: none;
    }
}

/* ----- Scroll stability (projektphasen detail pages) -----
   Programmatic scrolls (ScrollTrigger refresh, scroll restoration) must be
   instant - a CSS smooth scroll turns them into visible jumps. In-page
   anchor links keep their smooth scroll via main.js. overflow-x: clip
   (instead of hidden) stops <html>/<body> from becoming a nested scroll
   container on iOS Safari, which breaks touch scrolling and fixed layers. */
html {
    scroll-behavior: auto;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

/* Stable hero height on mobile: 100dvh follows the address bar as it
   collapses/expands mid-scroll and shifted every section below the hero.
   Only the box height changes - the hero animation is untouched. */
@supports (height: 100svh) {
    .hero {
        min-height: 100svh;
    }
}
