.stage-cards {
    padding-top: var(--space-8);
    padding-bottom: var(--space-9);
}

.stage-cards .stage-shell--cards {
    position: relative;
    overflow: clip;
}

.cards-intro {
    position: relative;
    z-index: 2;
    max-width: 48rem;
}

.cards-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.card-item {
    position: relative;
    min-height: 100%;
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    overflow: clip;
}

.card-item__glow {
    position: absolute;
    inset: auto -10% -28% auto;
    width: 14rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgb(var(--color-accent) / 0.12), transparent 68%);
    filter: blur(18px);
    opacity: 0.8;
    pointer-events: none;
}

.card-item__meta {
    position: relative;
    margin: 0 0 var(--space-3);
    font-size: var(--text-xs);
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--color-accent));
}

.card-item__title {
    position: relative;
    margin: 0;
    font-size: var(--title-s);
    line-height: 1.14;
    letter-spacing: var(--tracking-tight);
    color: rgb(var(--color-text));
}

.card-item__text {
    position: relative;
    margin: var(--space-4) 0 0;
    font-size: var(--text-m);
    line-height: var(--line-height-copy);
    color: rgb(var(--color-text-soft));
}

#audience .cards-intro {
    max-width: 46rem;
}

#audience .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    max-width: 78rem;
}

#audience .card-item {
    padding: clamp(1.55rem, 1.3rem + 0.55vw, 1.95rem);
}

#audience .card-item__title {
    max-width: 20ch;
}

#modules .cards-intro {
    max-width: 46rem;
}

#modules .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    max-width: 78rem;
}

#modules .card-item {
    padding: clamp(1.55rem, 1.3rem + 0.55vw, 1.95rem);
}

#modules .card-item__title {
    max-width: 18ch;
}

#pricing .cards-intro {
    max-width: 45rem;
}

#pricing .cards-grid {
    gap: var(--space-4);
    max-width: 78rem;
}

#pricing .card-item {
    padding: clamp(1.55rem, 1.3rem + 0.55vw, 1.95rem);
    min-height: 15.75rem;
}

#pricing .card-item__meta {
    margin-bottom: var(--space-2);
}

#pricing .card-item__title {
    max-width: 14ch;
}

#pricing .card-item__text {
    max-width: 30ch;
}

@media (max-width: 980px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .card-item {
        padding: var(--space-4);
        border-radius: var(--radius-l);
    }
}

.stage-cards[data-siteworld="dark-chrome"] .cards-intro {
    max-width: 44rem;
}

.stage-cards[data-siteworld="dark-chrome"] .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 68rem;
}

.stage-cards[data-siteworld="dark-chrome"] .card-item {
    min-height: 15rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}.cards-forge-map {
    position: relative;
    z-index: 2;
    width: min(62rem, 88%);
    height: 5.3rem;
    margin: clamp(2.2rem, 4vw, 3.4rem) 0 clamp(1.3rem, 2.2vw, 1.8rem) auto;
    border-radius: 999px;
    opacity: 0.82;
}

.cards-forge-map__rail,
.cards-forge-map__node {
    position: absolute;
    display: block;
}

.cards-forge-map__rail {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(224, 124, 46, 0.58), rgba(91, 171, 191, 0.3), rgba(224, 124, 46, 0.5), transparent);
    box-shadow: 0 0 24px rgba(224, 124, 46, 0.22);
}

.cards-forge-map__node {
    top: 50%;
    width: 0.76rem;
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 1px solid rgba(224, 124, 46, 0.76);
    background: rgba(8, 11, 15, 0.92);
    box-shadow: 0 0 18px rgba(224, 124, 46, 0.32);
}

.cards-forge-map__node--one {
    left: 8%;
}

.cards-forge-map__node--two {
    left: 38%;
}

.cards-forge-map__node--three {
    left: 66%;
}

.cards-forge-map__node--four {
    left: 92%;
}@media (max-width: 980px) {
    .cards-forge-map {
        width: 100%;
    }}

@media (max-width: 640px) {.cards-forge-map {
        height: 3.2rem;
        margin-left: 0;
    }
}@media (max-width: 980px) {}

@media (max-width: 640px) {}@media (max-width: 980px) {}

@media (max-width: 640px) {}

/* S3d - Papageno Leistungen-Bühne: konsolidierte Kartenordnung */
body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] {
    padding-top: clamp(5rem, 7vw, 7.8rem);
    padding-bottom: clamp(5.6rem, 7.8vw, 8.6rem);
    background:
        radial-gradient(ellipse at 12% 18%, rgb(var(--pillar-accent) / 0.13), transparent 34rem),
        radial-gradient(ellipse at 86% 10%, rgb(var(--pillar-accent-2) / 0.10), transparent 30rem),
        linear-gradient(180deg, rgb(8 7 6 / 0.98), rgb(17 11 8 / 0.98) 52%, rgb(7 8 10 / 1));
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .stage-backdrop {
    background:
        linear-gradient(115deg, rgb(7 8 10 / 0.98), rgb(22 14 9 / 0.86) 48%, rgb(9 8 8 / 0.98)),
        radial-gradient(ellipse at 18% 22%, rgb(var(--pillar-accent) / 0.12), transparent 32rem);
    opacity: 0.86;
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .stage-atmosphere {
    background:
        linear-gradient(90deg, transparent, rgb(var(--pillar-accent) / 0.05), transparent),
        radial-gradient(ellipse at 72% 28%, rgb(var(--pillar-accent-2) / 0.10), transparent 28rem);
    opacity: 0.56;
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .stage-beam {
    inset: 14% auto auto 4%;
    width: min(28rem, 34vw);
    height: min(18rem, 24vw);
    background: radial-gradient(circle at center, rgb(var(--pillar-accent) / 0.13), transparent 68%);
    opacity: 0.60;
    filter: blur(38px);
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .stage-inner {
    position: relative;
    z-index: 2;
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-intro {
    max-width: 51rem;
    margin-inline: 0 auto;
    padding-left: clamp(1rem, 1.7vw, 1.9rem);
    border-left: 1px solid rgb(var(--pillar-accent) / 0.36);
    text-align: left;
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .stage-label {
    color: rgb(226 162 83);
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .stage-title {
    max-width: 13ch;
    color: rgb(250 246 238);
    text-shadow: 0 18px 46px rgb(0 0 0 / 0.34);
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .stage-text {
    max-width: 58ch;
    color: rgb(239 229 211 / 0.82);
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-forge-map,
body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-forge-map__rail,
body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-forge-map__node {
    display: none;
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .stage-inner .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 1.8vw, 1.85rem);
    max-width: 76rem;
    margin-top: clamp(3rem, 4vw, 4.4rem);
    align-items: stretch;
}

body[data-theme="metal"][data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-grid .card-item {
    min-height: clamp(14.5rem, 16vw, 17.5rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(1.55rem, 1.25rem + 0.9vw, 2.25rem);
    border-radius: clamp(1.35rem, 1.8vw, 2rem);
    border: 1px solid rgb(var(--pillar-accent) / 0.24);
    background:
        radial-gradient(ellipse at 18% 0%, rgb(var(--pillar-accent) / 0.13), transparent 62%),
        linear-gradient(150deg, rgb(38 27 20 / 0.88), rgb(16 14 14 / 0.94) 58%, rgb(20 13 10 / 0.96));
    box-shadow:
        inset 0 1px 0 rgb(255 233 190 / 0.08),
        inset 0 -1px 0 rgb(0 0 0 / 0.32),
        0 24px 58px rgb(0 0 0 / 0.30);
}

body[data-theme="metal"][data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-grid .card-item::before {
    background:
        linear-gradient(90deg, rgb(230 169 89 / 0.46), rgb(170 104 48 / 0.16) 38%, transparent 68%) top left / 68% 1px no-repeat,
        linear-gradient(180deg, rgb(230 169 89 / 0.26), rgb(122 72 34 / 0.08) 32%, transparent 60%) top left / 1px 50% no-repeat;
    opacity: 0.70;
}

body[data-theme="metal"][data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-grid .card-item:nth-child(even)::before {
    background:
        linear-gradient(90deg, transparent 34%, rgb(170 104 48 / 0.16) 62%, rgb(230 169 89 / 0.40)) top right / 68% 1px no-repeat,
        linear-gradient(180deg, rgb(230 169 89 / 0.22), rgb(122 72 34 / 0.08) 32%, transparent 60%) top right / 1px 50% no-repeat;
}

body[data-theme="metal"][data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-grid .card-item::after {
    background:
        radial-gradient(ellipse at 16% 0%, rgb(233 176 95 / 0.12), transparent 34%),
        linear-gradient(180deg, rgb(255 225 181 / 0.055), transparent 24%, rgb(0 0 0 / 0.14));
    opacity: 0.72;
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-grid .card-item__glow {
    inset: auto -8% -24% auto;
    width: 12rem;
    background: radial-gradient(circle at center, rgb(var(--pillar-accent) / 0.14), transparent 70%);
    filter: blur(22px);
    opacity: 0.66;
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-grid .card-item__meta {
    margin-bottom: clamp(0.75rem, 1vw, 1rem);
    color: rgb(221 158 82);
    font-weight: 800;
    letter-spacing: 0.18em;
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-grid .card-item__title {
    max-width: 19ch;
    color: rgb(250 246 238);
}

body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-grid .card-item__text {
    max-width: 34rem;
    color: rgb(239 228 211 / 0.76);
}

@media (max-width: 980px) {
    body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .stage-inner .cards-grid {
        grid-template-columns: 1fr;
        max-width: 44rem;
    }

    body[data-theme="metal"][data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-grid .card-item {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] {
        padding-top: clamp(3.8rem, 12vw, 5rem);
        padding-bottom: clamp(4.4rem, 14vw, 6rem);
    }

    body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .cards-intro {
        padding-left: 1rem;
    }

    body[data-siteworld="papageno"] #modules.stage-cards[data-siteworld="papageno"] .stage-inner .cards-grid {
        gap: 1rem;
        margin-top: 2.2rem;
    }
}

/* F19 - übrige Sitewelten: bestehende Differenzierung erhalten */
@media (min-width: 981px) {
    body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .cards-intro {
        max-width: 44rem;
        padding-bottom: 1.1rem;
        border-bottom: 1px solid rgb(var(--world-line) / 0.28);
    }

    body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: none;
        gap: 0.95rem;
    }

    body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .card-item {
        min-height: clamp(14rem, 17vw, 18rem);
        padding: clamp(1.25rem, 1.3vw, 1.7rem);
        border-radius: calc(var(--radius-xl) - 0.35rem);
        background:
            linear-gradient(90deg, rgb(var(--world-line) / 0.09) 0 1px, transparent 1px 100%),
            linear-gradient(180deg, rgb(var(--world-line) / 0.08) 0 1px, transparent 1px 100%),
            linear-gradient(180deg, rgb(var(--pillar-panel-soft) / 0.50), rgb(var(--pillar-panel) / 0.74));
        background-size: 2rem 2rem, 2rem 2rem, auto;
    }

    body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .card-item__meta {
        display: inline-flex;
        width: fit-content;
        padding: 0.34rem 0.58rem;
        border: 1px solid rgb(var(--world-line) / 0.32);
        border-radius: 999px;
        background: rgb(var(--world-line) / 0.10);
    }

    body[data-siteworld="farbatelier"] #modules.stage-cards[data-siteworld="farbatelier"] .cards-intro {
        max-width: 48rem;
        padding: clamp(1.4rem, 2vw, 2.4rem);
        border-radius: var(--radius-xl);
        background:
            radial-gradient(ellipse at 10% 20%, rgb(var(--pillar-accent) / 0.16), transparent 24rem),
            radial-gradient(ellipse at 92% 84%, rgb(var(--pillar-accent-2) / 0.12), transparent 22rem),
            rgb(var(--pillar-panel) / 0.42);
        border: 1px solid rgb(var(--pillar-accent) / 0.18);
    }

    body[data-siteworld="farbatelier"] #modules.stage-cards[data-siteworld="farbatelier"] .cards-grid {
        grid-template-columns: 1.18fr 0.82fr 1fr;
        max-width: none;
        align-items: stretch;
    }

    body[data-siteworld="farbatelier"] #modules.stage-cards[data-siteworld="farbatelier"] .card-item:nth-child(1) {
        grid-column: span 2;
    }

    body[data-siteworld="farbatelier"] #modules.stage-cards[data-siteworld="farbatelier"] .card-item:nth-child(3),
    body[data-siteworld="farbatelier"] #modules.stage-cards[data-siteworld="farbatelier"] .card-item:nth-child(4) {
        transform: translateY(0.85rem);
    }

    body[data-siteworld="farbatelier"] #modules.stage-cards[data-siteworld="farbatelier"] .card-item:nth-child(4) {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 980px) {
    body[data-siteworld] #modules.stage-cards .cards-grid {
        grid-template-columns: 1fr;
    }

    body[data-siteworld="farbatelier"] #modules.stage-cards[data-siteworld="farbatelier"] .card-item:nth-child(3),
    body[data-siteworld="farbatelier"] #modules.stage-cards[data-siteworld="farbatelier"] .card-item:nth-child(4) {
        transform: none;
    }
}

/* K2 - Klartechnik: Leistungsbühne als präzises Modulraster */
body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .cards-intro {
  max-width: 48rem;
  border-bottom-color: rgba(116, 207, 255, 0.34);
}

body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .cards-forge-map {
  display: block;
  width: min(68rem, 92%);
  height: 4.6rem;
  margin: clamp(2.1rem, 3.2vw, 3.1rem) 0 clamp(1.1rem, 1.7vw, 1.5rem) auto;
  opacity: 0.92;
}

body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .cards-forge-map__rail {
  background: linear-gradient(90deg, transparent, rgba(104, 202, 255, 0.18), rgba(126, 216, 255, 0.72), rgba(57, 143, 213, 0.36), transparent);
  box-shadow: 0 0 28px rgba(104, 202, 255, 0.20);
}

body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .cards-forge-map__node {
  border-color: rgba(142, 220, 255, 0.84);
  background: rgba(4, 14, 24, 0.96);
  box-shadow:
    0 0 0 5px rgba(104, 202, 255, 0.040),
    0 0 18px rgba(104, 202, 255, 0.30);
}

@media (min-width: 981px) {
  body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.85rem, 1.1vw, 1.15rem);
  }

  body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .card-item {
    min-height: clamp(13.5rem, 15vw, 16.5rem);
    padding: clamp(1.2rem, 1.25vw, 1.65rem);
    border: 1px solid rgba(126, 210, 255, 0.20);
    background:
      linear-gradient(90deg, rgba(104, 202, 255, 0.095) 0 1px, transparent 1px 100%),
      linear-gradient(180deg, rgba(104, 202, 255, 0.070) 0 1px, transparent 1px 100%),
      linear-gradient(180deg, rgba(8, 29, 48, 0.60), rgba(4, 13, 22, 0.82));
    background-size: 2rem 2rem, 2rem 2rem, auto;
    box-shadow:
      inset 0 1px 0 rgba(205, 242, 255, 0.065),
      0 1.3rem 3.2rem rgba(0, 0, 0, 0.26);
  }

  body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .card-item::after {
    opacity: 0.48;
    background:
      linear-gradient(180deg, rgba(180, 230, 255, 0.045), transparent 32%, rgba(0, 0, 0, 0.16));
  }
}

body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .card-item__meta {
  color: rgba(170, 230, 255, 0.90);
}

body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .card-item__title {
  color: rgba(244, 250, 255, 0.96);
}

body[data-siteworld="klartechnik"] #modules.stage-cards[data-siteworld="klartechnik"] .card-item__text {
  color: rgba(221, 238, 250, 0.78);
}
