/* ==========================================================================
   Lumatrix Games: Challenge-Seite
   Farben und Licht kommen aus dem Roboter-Keyvisual: links Neonblau,
   rechts Glutrot, in der Mitte der weisse Lichtblitz beim Aufprall.
   Cyan und Grün aus index.bundle.css bleiben die Farben für Buttons und Links.
   ========================================================================== */

html.challenge-disabled body { display: none !important; }

body[data-cc-page="challenge"] {
    --cc-blue: #2F7BFF;
    --cc-blue-rgb: 47, 123, 255;
    --cc-red: #FF2E4D;
    --cc-red-rgb: 255, 46, 77;
    --cc-violet-rgb: 140, 82, 255;
    --cc-flash: #F4F8FF;
    --cc-bg: #050507;
    --cc-card: linear-gradient(180deg, #0d1018, #07080d);
    --cc-text-soft: #c4cad8;
    --cc-ease: cubic-bezier(.2, 1, .3, 1);
    --cc-dots: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.5px);
    background: var(--cc-bg);
}
body[data-cc-page="challenge"] main { overflow-x: clip; }

/* Hintergrund-Orbs der Seite in Blau und Rot statt Violett und Grün */
body[data-cc-page="challenge"] .glow-orb-1 { background: radial-gradient(circle, rgba(var(--cc-blue-rgb), .32), transparent 70%); }
body[data-cc-page="challenge"] .glow-orb-2 { background: radial-gradient(circle, rgba(var(--cc-red-rgb), .26), transparent 70%); }
body[data-cc-page="challenge"] .glow-orb-3 { background: radial-gradient(circle, rgba(var(--cc-violet-rgb), .16), transparent 70%); }

/* Einblenden beim Scrollen. `translate` statt `transform`, damit Hover-Effekte weiter gehen. */
[data-cc-reveal] { opacity: 0; }
[data-cc-reveal].is-in { animation: cc-rise 1s var(--cc-ease) var(--d, 0s) both; }
@keyframes cc-rise { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }

/* Verlaufsschrift Blau > Violett > Rot */
.cc-versus-text {
    background: linear-gradient(90deg, #5c9dff, #b07cff 50%, #ff5068);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(var(--cc-violet-rgb), .45));
    animation: cc-shimmer 7s ease-in-out infinite alternate;
}
@keyframes cc-shimmer { from { background-position: 0% 0; } to { background-position: 100% 0; } }

.cc-eyebrow {
    display: inline-flex; align-items: center; gap: .8rem;
    margin: 0 0 1.1rem;
    font: 600 .78rem/1 var(--font-heading);
    letter-spacing: .24em; text-transform: uppercase;
    color: #b8c4ff;
}
.cc-eyebrow::before, .cc-eyebrow::after { content: ''; width: 28px; height: 1px; }
.cc-eyebrow::before { background: linear-gradient(90deg, transparent, var(--cc-blue)); }
.cc-eyebrow::after { background: linear-gradient(90deg, var(--cc-red), transparent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.cc-hero {
    --cc-stage-w: min(100%, 1040px, max(min(100%, 620px), calc((100svh - 380px) * 1.7778)));
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    padding: 116px 0 6rem;
    isolation: isolate;
    overflow: hidden;
}
.cc-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--cc-bg); }
.cc-hero-bg > * { position: absolute; pointer-events: none; }

.cc-hero-img {
    inset: -4%; z-index: 0;
    background: url('../images/challenge/robots_2560.jpg') center 42% / cover no-repeat;
    background-image: image-set(url('../images/challenge/robots_2560.webp') type('image/webp'), url('../images/challenge/robots_2560.jpg') type('image/jpeg'));
    filter: brightness(.5) saturate(1.2) contrast(1.08);
    transform-origin: 50% 42%;
    animation: cc-kenburns 24s ease-in-out infinite alternate;
}
@keyframes cc-kenburns { from { transform: scale(1.02); } to { transform: scale(1.13) translate3d(0, -1.2%, 0); } }

.cc-hero-fade {
    inset: 0; z-index: 1;
    background:
        radial-gradient(ellipse 62% 58% at 50% 52%, rgba(5, 5, 7, .2), rgba(5, 5, 7, .82) 100%),
        linear-gradient(180deg, rgba(5, 5, 7, .78) 0%, rgba(5, 5, 7, .1) 22%, rgba(5, 5, 7, .15) 62%, var(--cc-bg) 100%);
}
.cc-hero-light { z-index: 2; top: 5%; width: 62vw; height: 85%; mix-blend-mode: screen; animation: cc-breathe 6s ease-in-out infinite; }
.cc-hero-light--blue { left: -22vw; background: radial-gradient(closest-side, rgba(var(--cc-blue-rgb), .42), transparent); }
.cc-hero-light--red { right: -22vw; background: radial-gradient(closest-side, rgba(var(--cc-red-rgb), .38), transparent); animation-delay: -3s; }
.cc-hero-beam {
    z-index: 2; left: 50%; top: -12%; width: 46vw; height: 95%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 30% 70% at 50% 0%, rgba(244, 248, 255, .26), transparent 72%);
    mix-blend-mode: screen;
    animation: cc-impact 6s ease-in-out infinite;
}
.cc-hero-pixels {
    inset: 0; z-index: 3;
    background: var(--cc-dots) 0 0 / 6px 6px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
    opacity: .55;
}
@keyframes cc-breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes cc-impact { 0%, 100% { opacity: .55; } 8% { opacity: 1; } 22% { opacity: .6; } }

/* Funken, die hinter dem Video hervorschiessen (Elemente kommen aus dem Inline-Script) */
.cc-sparks { z-index: 4; left: 50%; top: 56%; width: 0; height: 0; }
.cc-sparks i {
    position: absolute; left: 0; top: 0;
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--c); box-shadow: 0 0 6px 2px var(--c);
    opacity: 0;
    animation: cc-spark var(--t) cubic-bezier(.15, .6, .35, 1) var(--delay) infinite;
}
@keyframes cc-spark {
    0% { transform: translate(0, 0) scale(1.2); opacity: 0; }
    8% { opacity: 1; }
    100% { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; }
}

.cc-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }

.cc-hero-title {
    max-width: 14em;
    margin: 0;
    font: 700 clamp(2.3rem, 4.7vw, 4.2rem)/1.02 var(--font-heading);
    letter-spacing: -.025em;
    text-wrap: balance;
    text-shadow: 0 6px 40px rgba(0, 0, 0, .7);
}
.cc-hero-lead { max-width: 880px; margin: 1.1rem auto 2.4rem; color: var(--cc-text-soft); font-size: 1.15rem; line-height: 1.6; }

/* Bühne mit dem Video */
.cc-stage { position: relative; width: var(--cc-stage-w); }
.cc-stage-glow {
    position: absolute; inset: -14% -10%; z-index: -1;
    background:
        radial-gradient(closest-side at 14% 50%, rgba(var(--cc-blue-rgb), .7), transparent),
        radial-gradient(closest-side at 86% 50%, rgba(var(--cc-red-rgb), .62), transparent),
        radial-gradient(closest-side at 50% 50%, rgba(244, 248, 255, .14), transparent);
    filter: blur(42px);
    animation: cc-breathe 5s ease-in-out infinite;
}
.cc-stage-frame {
    position: relative;
    padding: 2px;
    border-radius: 24px;
    background: linear-gradient(100deg, var(--cc-blue), rgba(214, 222, 255, .55) 50%, var(--cc-red));
    box-shadow:
        -34px 0 90px -24px rgba(var(--cc-blue-rgb), .75),
        34px 0 90px -24px rgba(var(--cc-red-rgb), .7),
        0 50px 100px -20px rgba(0, 0, 0, .85);
}
body[data-cc-page="challenge"] .cc-video { border: 0; border-radius: 22px; box-shadow: none; background: #07080c; }
body[data-cc-page="challenge"] .cc-video:hover { box-shadow: none; }
/* Gleicher Play-Button wie auf der restlichen Seite, nur etwas höher, damit er nicht auf dem Schriftzug liegt */
body[data-cc-page="challenge"] .cc-video::after { z-index: 2; top: 45%; }
.cc-video-thumb {
    background-image: url('../images/challenge/hosts-wide_1920.jpg');
    background-image: image-set(url('../images/challenge/hosts-wide_1920.webp') type('image/webp'), url('../images/challenge/hosts-wide_1920.jpg') type('image/jpeg'));
}
/* Lichtstreifen, der regelmässig über das Thumbnail zieht */
.cc-video::before {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .16) 50%, transparent 62%);
    transform: translateX(-110%);
    animation: cc-sweep 7s ease-in-out 1.5s infinite;
    pointer-events: none;
}
@keyframes cc-sweep { 0% { transform: translateX(-110%); } 22%, 100% { transform: translateX(110%); } }
.cc-stage-reflection {
    position: absolute; left: 8%; right: 8%; bottom: -54px; height: 70px;
    background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(150, 140, 255, .32), transparent 72%);
    filter: blur(10px);
    pointer-events: none;
}

/* Steuerleiste unter dem Video */
.cc-console {
    position: relative;
    width: var(--cc-stage-w);
    margin-top: 2.4rem;
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.4rem 2.4rem;
    padding: 1.1rem 1.4rem 1.1rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px;
    background: rgba(10, 12, 20, .6);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 0, .5);
    text-align: left;
}
.cc-countdown { margin: 0; }
.cc-countdown-label, .cc-countdown-date { margin: 0; color: var(--text-muted); font-size: .78rem; }
.cc-countdown-label { font-family: var(--font-heading); letter-spacing: .2em; text-transform: uppercase; color: #9aa6c8; }
.cc-countdown-units { display: flex; align-items: center; gap: .4rem; margin: .55rem 0 .45rem; }
.cc-countdown-units > i { color: rgba(255, 255, 255, .3); font: 700 1.4rem/1 var(--font-heading); font-style: normal; translate: 0 -.55rem; }
.cc-countdown-units > div {
    display: grid; justify-items: center; gap: .15rem;
    min-width: 3.9rem; padding: .45rem .5rem .35rem;
    border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px;
    background: var(--cc-dots) 0 0 / 5px 5px, rgba(255, 255, 255, .025);
}
.cc-countdown-units strong {
    font: 700 2.1rem/1 var(--font-heading);
    font-variant-numeric: tabular-nums;
    color: #fff;
    text-shadow: 0 0 10px rgba(var(--cc-blue-rgb), .9), 0 0 26px rgba(var(--cc-blue-rgb), .5);
}
.cc-countdown-units > div:last-child strong { text-shadow: 0 0 10px rgba(var(--cc-red-rgb), .9), 0 0 26px rgba(var(--cc-red-rgb), .5); }
.cc-countdown-units span { color: #8f9ab8; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

.cc-console-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem 1rem; }
.cc-text-link { color: var(--cc-text-soft); font-size: .95rem; text-decoration: none; transition: color .3s; }
.cc-text-link i { font-size: .8rem; margin-left: .25rem; }
.cc-text-link:hover { color: #fff; }

.cc-btn-glow { animation: cc-btn-pulse 3.2s ease-in-out infinite; }
@keyframes cc-btn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 209, 255, 0), 0 8px 26px rgba(0, 209, 255, .3); }
    50% { box-shadow: 0 0 0 6px rgba(0, 209, 255, .12), 0 8px 34px rgba(0, 255, 163, .45); }
}

.cc-scroll-cue {
    position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
    width: 24px; height: 38px;
    border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 14px;
}
.cc-scroll-cue span {
    position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
    border-radius: 2px; background: #fff;
    animation: cc-scroll 1.8s ease-in-out infinite;
}
@keyframes cc-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ==========================================================================
   Abschnitte
   ========================================================================== */
.cc-section { position: relative; padding: 8.5rem 0 0; }
.cc-section-head { max-width: 760px; margin: 0 auto 4.2rem; text-align: center; }
.cc-section-head h2 {
    margin: 0 0 1rem;
    font: 700 clamp(2.2rem, 4.6vw, 3.5rem)/1.06 var(--font-heading);
    letter-spacing: -.02em;
}
.cc-section-head > p:not(.cc-eyebrow) { margin: 0; color: var(--text-muted); font-size: 1.15rem; }
.cc-section-head strong { color: #fff; }

/* ---------- Preise: Podium wie das Keyvisual ---------- */
.cc-podium {
    display: grid; grid-template-columns: 1fr 1.14fr 1fr; align-items: end; gap: 1.4rem;
    max-width: 1060px; margin: 0 auto;
}
.cc-prize {
    --tone-rgb: var(--cc-blue-rgb);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding: 0 1.4rem 2.1rem;
    border: 1px solid transparent; border-bottom: 0; border-radius: 26px 26px 0 0;
    background:
        radial-gradient(120% 70% at var(--glow-x, 0%) 0%, rgba(var(--tone-rgb), .26), transparent 62%) padding-box,
        var(--cc-card) padding-box,
        linear-gradient(170deg, rgba(var(--tone-rgb), .95), rgba(var(--tone-rgb), .12) 55%, transparent) border-box;
    text-align: center;
    transition: transform .6s var(--cc-ease), box-shadow .6s var(--cc-ease);
}
.cc-prize:hover { transform: translateY(-8px); }
.cc-prize--2 { --glow-x: 0%; box-shadow: -24px 10px 70px -30px rgba(var(--cc-blue-rgb), .7); }
.cc-prize--3 { --tone-rgb: var(--cc-red-rgb); --glow-x: 100%; box-shadow: 24px 10px 70px -30px rgba(var(--cc-red-rgb), .7); }
.cc-prize--1 {
    background:
        radial-gradient(90% 60% at 50% 0%, rgba(244, 248, 255, .2), transparent 65%) padding-box,
        var(--cc-card) padding-box,
        linear-gradient(180deg, #fff, rgba(var(--cc-blue-rgb), .8) 35%, rgba(var(--cc-red-rgb), .8) 75%, transparent) border-box;
    box-shadow: 0 -10px 90px -20px rgba(190, 180, 255, .55);
}
.cc-prize-flash {
    position: absolute; left: 50%; top: -45%; width: 150%; height: 95%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(255, 255, 255, .32), transparent);
    animation: cc-impact 6s ease-in-out infinite;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
}
/* Eigene Fotos vom Dreh. Unterschiedliche Seitenverhältnisse ergeben die Stufen des Podests. */
.cc-prize-photo {
    width: calc(100% + 2.8rem); margin: 0 -1.4rem;
    aspect-ratio: 5 / 4; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 94%);
    mask-image: linear-gradient(180deg, #000 40%, transparent 94%);
}
.cc-prize--1 .cc-prize-photo { aspect-ratio: 1 / 1; }
.cc-prize--3 .cc-prize-photo { aspect-ratio: 4 / 3; }
.cc-prize-photo picture, .cc-prize-photo img { display: block; width: 100%; height: 100%; }
/* Oben fast unverdunkelt, nach unten dunkler, damit Zahl und Text lesbar bleiben */
.cc-prize-photo { position: relative; }
.cc-prize-photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .55) 100%);
    transition: opacity .8s var(--cc-ease);
}
.cc-prize:hover .cc-prize-photo::after { opacity: .6; }
.cc-prize-photo img { object-fit: cover; object-position: center top; filter: saturate(.92); transition: transform 1.2s var(--cc-ease), filter .8s var(--cc-ease); }
.cc-prize:hover .cc-prize-photo img { transform: scale(1.05); filter: saturate(1); }
.cc-prize-rank {
    position: relative; z-index: 1;
    display: block; margin: -3.6rem 0 .8rem;
    font: 700 6.5rem/.8 var(--font-heading);
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(var(--tone-rgb), .95);
    filter: drop-shadow(0 0 18px rgba(var(--tone-rgb), .6));
}
.cc-prize--1 .cc-prize-rank {
    font-size: 8.5rem; margin-top: -4.6rem;
    -webkit-text-stroke: 0;
    background: linear-gradient(180deg, #fff 10%, #c9d3ff 50%, rgba(var(--cc-violet-rgb), .35));
    -webkit-background-clip: text; background-clip: text;
    filter: drop-shadow(0 0 30px rgba(200, 200, 255, .55));
}
.cc-prize-place { margin: 0 0 .35rem; font: 600 .76rem/1 var(--font-heading); letter-spacing: .22em; text-transform: uppercase; color: rgba(var(--tone-rgb), 1); filter: brightness(1.35); }
.cc-prize--1 .cc-prize-place { color: #fff; }
.cc-prize h3 { margin: 0; font: 700 1.6rem/1.15 var(--font-heading); }
.cc-prize--1 h3 { font-size: 2.1rem; }
.cc-prize-detail { margin: .45rem 0 0; color: var(--text-muted); font-size: .92rem; }
.cc-prize-value { margin: .6rem 0 0; font: 600 .82rem/1 var(--font-heading); letter-spacing: .06em; color: #fff; opacity: .85; }

.cc-podium-floor {
    position: relative;
    max-width: 1160px; height: 2px; margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(var(--cc-blue-rgb), .95) 18%, #fff 50%, rgba(var(--cc-red-rgb), .95) 82%, transparent);
    box-shadow: 0 0 22px rgba(170, 160, 255, .7);
}
.cc-podium-floor::after {
    content: ''; position: absolute; left: 6%; right: 6%; top: 2px; height: 110px;
    background:
        radial-gradient(ellipse 22% 100% at 22% 0%, rgba(var(--cc-blue-rgb), .28), transparent 70%),
        radial-gradient(ellipse 22% 100% at 50% 0%, rgba(240, 240, 255, .22), transparent 70%),
        radial-gradient(ellipse 22% 100% at 78% 0%, rgba(var(--cc-red-rgb), .26), transparent 70%);
    filter: blur(6px);
}

/* ---------- Stadler ---------- */
.cc-stadler {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.3fr);
    min-height: 440px; margin-top: 7rem;
    border: 1px solid transparent; border-radius: 30px;
    background: linear-gradient(120deg, #0d0f16, #09090d) padding-box,
                linear-gradient(120deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04) 45%, rgba(var(--cc-red-rgb), .75)) border-box;
    box-shadow: 0 50px 110px -40px rgba(var(--cc-red-rgb), .45);
}
.cc-stadler-text { position: relative; z-index: 1; padding: 3.4rem 3rem 3.2rem; }
.cc-stadler-logo { display: block; width: auto; height: 26px; margin-bottom: 2.4rem; }
.cc-stadler h3 { margin: 0 0 1rem; font: 700 clamp(1.9rem, 3vw, 2.5rem)/1.08 var(--font-heading); letter-spacing: -.015em; }
.cc-stadler-text > p { color: var(--cc-text-soft); line-height: 1.65; }
.cc-stadler-facts { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.cc-stadler-facts li {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem .95rem; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
    font-size: .9rem;
}
.cc-stadler-facts i { color: var(--cc-red); }
.cc-stadler-thanks { margin: 1.8rem 0 0; font: 700 1.1rem/1 var(--font-heading); color: #fff !important; }
.cc-stadler-img {
    position: relative;
    background: url('../images/challenge/stadler-werk_1600.jpg') 50% 35% / cover no-repeat;
    background-image: image-set(url('../images/challenge/stadler-werk_1600.webp') type('image/webp'), url('../images/challenge/stadler-werk_1600.jpg') type('image/jpeg'));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%);
    mask-image: linear-gradient(90deg, transparent, #000 32%);
    transition: transform 1.4s var(--cc-ease);
}
.cc-stadler:hover .cc-stadler-img { transform: scale(1.03); }

/* ---------- Die 3 Regeln: Titel links, Regeln als Liste rechts ----------
   Bewusst anders als die Schritte darunter (zentriert, horizontal), aber ohne eigenen Hintergrund,
   damit die Seite aus einem Guss bleibt. Nur ein weiches Licht hinter dem Titel. */
.cc-rules-band { position: relative; padding: 8.5rem 0 0; }
.cc-rules-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); align-items: start; gap: 5rem; }
.cc-rules-head { position: sticky; top: 130px; }
.cc-rules-head::before {
    content: ''; position: absolute; z-index: -1; left: -12%; top: -45%; width: 125%; height: 190%;
    background: radial-gradient(closest-side at 35% 50%, rgba(var(--cc-blue-rgb), .16), transparent), radial-gradient(closest-side at 75% 55%, rgba(var(--cc-red-rgb), .12), transparent);
    filter: blur(30px); pointer-events: none;
}
.cc-rules-head h2 { margin: 0; font: 700 clamp(2.5rem, 4.8vw, 4.1rem)/1.02 var(--font-heading); letter-spacing: -.025em; }
.cc-rules-list { margin: 0; padding: 0; list-style: none; }
.cc-rule {
    --tone-rgb: var(--cc-blue-rgb);
    position: relative;
    display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: start; gap: 1.6rem;
    padding: 1.7rem 0;
}
.cc-rule:first-child { padding-top: .4rem; }
.cc-rule--violet { --tone-rgb: var(--cc-violet-rgb); }
.cc-rule--red { --tone-rgb: var(--cc-red-rgb); }
.cc-rule-no {
    font: 700 5.2rem/.82 var(--font-heading);
    color: transparent; -webkit-text-stroke: 1.5px rgba(var(--tone-rgb), 1);
    filter: drop-shadow(0 0 16px rgba(var(--tone-rgb), .55));
    transition: color .5s;
}
.cc-rule:hover .cc-rule-no { color: rgba(var(--tone-rgb), .85); }
.cc-rule h3 { margin: .35rem 0 .6rem; font: 700 1.55rem/1.2 var(--font-heading); }
.cc-rule h3 i { margin-right: .45rem; font-size: 1.05rem; color: rgba(var(--tone-rgb), 1); filter: brightness(1.4); }
.cc-rule p { max-width: 52ch; margin: 0; color: var(--text-muted); font-size: 1.02rem; line-height: 1.65; }
.cc-rule strong { color: #fff; }

/* ---------- So machst du mit: Lichtspur ---------- */
.cc-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.cc-track::before, .cc-track::after { content: ''; position: absolute; top: 29px; left: 12.5%; right: 12.5%; height: 2px; }
.cc-track::before { background: linear-gradient(90deg, var(--cc-blue), #8c52ff, var(--cc-red)); opacity: .55; }
.cc-track::after {
    background: linear-gradient(90deg, transparent, #fff, transparent) no-repeat;
    background-size: 18% 100%;
    filter: drop-shadow(0 0 6px #fff);
    animation: cc-travel 3.8s linear infinite;
}
@keyframes cc-travel { from { background-position: -30% 0; } to { background-position: 130% 0; } }
.cc-track-step { --tone-rgb: var(--cc-blue-rgb); position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 .4rem; text-align: center; }
.cc-track-step:nth-child(2) { --tone-rgb: 100, 108, 255; }
.cc-track-step:nth-child(3) { --tone-rgb: 196, 72, 176; }
.cc-track-step:nth-child(4) { --tone-rgb: var(--cc-red-rgb); }
.cc-track-node {
    position: relative; z-index: 1;
    display: grid; place-items: center;
    width: 60px; height: 60px; margin: 0 auto 1.5rem;
    border: 1px solid rgba(var(--tone-rgb), .8); border-radius: 18px;
    background: var(--cc-dots) 0 0 / 5px 5px, #0b0d14;
    box-shadow: 0 0 0 6px var(--cc-bg), 0 0 34px rgba(var(--tone-rgb), .55);
    font: 700 1.35rem/1 var(--font-heading);
}
.cc-track-step h3 { margin: 0 0 .6rem; font: 700 1.3rem/1.2 var(--font-heading); }
.cc-track-step p { max-width: 25ch; margin: 0 0 1.2rem; color: var(--text-muted); font-size: .98rem; line-height: 1.6; }
.cc-track-step p a { color: var(--primary-color); }
.cc-track-tag {
    margin-top: auto;
    padding: .42rem .78rem; border-radius: 8px;
    border: 1px solid rgba(var(--tone-rgb), .4); background: rgba(var(--tone-rgb), .1);
    font: 600 .8rem/1 var(--font-heading); letter-spacing: .02em; color: #fff;
    white-space: nowrap;
}
.cc-btn-small { padding: .65rem 1.25rem; font-size: .92rem; }
.cc-btn-small[aria-disabled="true"] { cursor: pointer; }

/* Alle Links zum Mitmachen gesammelt in einer Leiste */
.cc-actionbar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem;
    max-width: 1060px; margin: 4rem auto 0; padding: 1rem 1.1rem 1rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, .09); border-radius: 20px;
    background: rgba(12, 14, 22, .6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 60px rgba(0, 0, 0, .4);
}
.cc-actionbar-note { display: flex; align-items: center; gap: .7rem; margin: 0; color: var(--cc-text-soft); }
.cc-actionbar-note i { color: var(--secondary-color); font-size: 1.1rem; }
.cc-actionbar-note strong { color: #fff; }
.cc-actionbar-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }

/* ---------- Jury: Miriam blau, Damian rot ---------- */
.cc-jury { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .78fr) minmax(0, 1fr); align-items: center; gap: 2rem; max-width: 1120px; margin: 0 auto; }
.cc-judge {
    --tone-rgb: var(--cc-blue-rgb);
    position: relative; overflow: hidden; isolation: isolate;
    aspect-ratio: 4 / 5; border-radius: 28px;
    background: #0b0d14;
    box-shadow: inset 0 0 0 1px rgba(var(--tone-rgb), .6), -30px 20px 90px -30px rgba(var(--tone-rgb), .75);
}
.cc-judge--red { --tone-rgb: var(--cc-red-rgb); box-shadow: inset 0 0 0 1px rgba(var(--tone-rgb), .6), 30px 20px 90px -30px rgba(var(--tone-rgb), .75); }
.cc-judge picture, .cc-judge img { display: block; width: 100%; height: 100%; }
.cc-judge img { object-fit: cover; filter: saturate(1.05) contrast(1.05); transition: transform 1.4s var(--cc-ease); }
.cc-judge:hover img { transform: scale(1.05); }
.cc-judge::before, .cc-judge::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cc-judge::before { background: linear-gradient(90deg, rgba(var(--tone-rgb), .5), transparent 38%); mix-blend-mode: screen; }
.cc-judge--red::before { background: linear-gradient(270deg, rgba(var(--tone-rgb), .5), transparent 38%); }
.cc-judge::after { background: linear-gradient(180deg, transparent 42%, rgba(5, 5, 7, .55) 62%, rgba(5, 5, 7, .96) 92%); border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(var(--tone-rgb), .55); }
.cc-judge-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.8rem 1.8rem 1.7rem; }
.cc-judge h3 { margin: 0; font: 700 2.1rem/1.05 var(--font-heading); }
.cc-judge-role { margin: .3rem 0 0; font-weight: 600; color: rgba(var(--tone-rgb), 1); filter: brightness(1.45); }
.cc-judge-q { margin: .5rem 0 0; color: var(--cc-text-soft); font-size: .95rem; line-height: 1.5; }

.cc-jury-center { display: flex; flex-direction: column; gap: 1.2rem; text-align: center; }
.cc-crit {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.2rem; border-radius: 20px; text-align: left;
    border: 1px solid rgba(0, 255, 163, .28); background: rgba(0, 255, 163, .05);
}
.cc-crit-value { flex: 0 0 4.6rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; font: 700 1.9rem/1 var(--font-heading); color: var(--secondary-color); text-shadow: 0 0 18px rgba(0, 255, 163, .6); white-space: nowrap; }
.cc-crit-value small { font: 600 .66rem/1 var(--font-heading); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); text-shadow: none; }
.cc-crit p { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.45; }
.cc-crit strong { display: block; color: #fff; font-size: .98rem; }
.cc-jury-note { margin: 0; color: var(--text-muted); font-size: .9rem; }
.cc-jury-note strong { color: #fff; }

/* ---------- FAQ ---------- */
.cc-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; max-width: 1060px; margin: 0 auto; }
.cc-faq-item {
    padding: 1.3rem 1.5rem; border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025);
    transition: border-color .3s, background .3s;
}
.cc-faq-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cc-faq-item:hover { border-color: rgba(255, 255, 255, .16); }
.cc-faq-item[open] { border-color: rgba(var(--cc-violet-rgb), .5); background: rgba(var(--cc-violet-rgb), .06); }
.cc-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; cursor: pointer; list-style: none; }
.cc-faq-item summary::-webkit-details-marker { display: none; }
.cc-faq-item summary::after { content: '+'; flex: none; color: #b07cff; font-size: 1.5rem; line-height: 1; transition: transform .3s; }
.cc-faq-item[open] summary::after { transform: rotate(45deg); }
.cc-faq-item p { margin: .9rem 0 0; color: var(--text-muted); line-height: 1.6; }
.cc-faq-item a { color: var(--secondary-color); }

/* ---------- Schluss-CTA ---------- */
.cc-final { position: relative; margin-top: 9rem; padding: 10rem 0; overflow: hidden; isolation: isolate; text-align: center; }
.cc-final-bg {
    position: absolute; inset: 0; z-index: -1;
    background: url('../images/challenge/robots_1920.jpg') center 45% / cover no-repeat;
    background-image: image-set(url('../images/challenge/robots_1920.webp') type('image/webp'), url('../images/challenge/robots_1920.jpg') type('image/jpeg'));
    filter: brightness(.42) saturate(1.2);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
}
.cc-final::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 45% 55% at 50% 50%, rgba(5, 5, 7, .55), transparent 100%); }
.cc-final h2 { margin: 0; font: 700 clamp(2.3rem, 5vw, 4.1rem)/1.06 var(--font-heading); letter-spacing: -.02em; text-shadow: 0 6px 40px rgba(0, 0, 0, .7); }
.cc-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.6rem; }

/* ---------- Partner ---------- */
body[data-cc-page="challenge"] .cc-partners { padding: 4.5rem 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.cc-partners-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 3rem 6rem; }
.cc-partners-grid > div > p { margin: 0; color: var(--text-muted); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.cc-partner-row { display: flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 60px; margin-top: 1.1rem; }
.cc-partner-row img { display: block; width: auto; opacity: .88; transition: opacity .3s; }
.cc-partner-row a:hover img { opacity: 1; }
.cc-logo-zhaw { height: 54px; }
.cc-logo-stadler { height: 22px; }
.cc-partner-names { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.cc-partner-names .partner-link { font-size: 1rem; }

/* ==========================================================================
   Modal und Formular (Logik in challenge.js)
   ========================================================================== */
.cc-modal[hidden] { display: none; }
.cc-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 1rem; }
.cc-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); backdrop-filter: blur(8px); }
.cc-modal-panel { position: relative; display: flex; flex-direction: column; width: min(100%, 560px); max-height: min(720px, calc(100vh - 2rem)); overflow: hidden; padding: 0; background: #0d0f16; border: 1px solid rgba(var(--cc-violet-rgb), .55); border-radius: 22px; box-shadow: -20px 20px 80px rgba(var(--cc-blue-rgb), .22), 20px 20px 80px rgba(var(--cc-red-rgb), .18); }
.cc-modal-close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border: 1px solid var(--card-border); border-radius: 50%; background: transparent; color: var(--text-main); font-size: 1rem; cursor: pointer; }
.cc-modal-close:hover { color: var(--primary-color); border-color: var(--primary-color); }
.cc-modal-kicker { margin: 0 0 .5rem; color: var(--secondary-color); font-size: .85rem; font-weight: 700; text-transform: uppercase; }
.cc-modal-panel h2 { margin-bottom: 1.5rem; font-family: var(--font-heading); }
.cc-wizard-progress { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; }
.cc-wizard-progress span { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--card-border); border-radius: 50%; color: var(--text-muted); font-weight: 700; }
.cc-wizard-progress span.is-active { border-color: var(--secondary-color); background: var(--secondary-color); color: #000; }
.cc-wizard-progress i { flex: 1; height: 1px; background: var(--card-border); }
.cc-wizard-step { display: none; min-height: 235px; }
.cc-wizard-step.is-active { display: block; }
.cc-wizard-step .step-icon { margin: 0 0 1.25rem; text-align: center; }
.cc-wizard-step h3 { margin-bottom: .75rem; }
.cc-wizard-step p { color: var(--text-muted); margin-bottom: 1.5rem; }
.cc-submit-form { display: grid; gap: 1rem; }
.cc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.cc-form-grid label { display: grid; gap: .35rem; color: var(--text-muted); font-size: .85rem; }
.cc-form-grid input { width: 100%; padding: .7rem .8rem; border: 1px solid var(--card-border); border-radius: 8px; background: rgba(0, 0, 0, .25); color: var(--text-main); font: inherit; }
.cc-form-grid input:focus { outline: none; border-color: var(--primary-color); }
.cc-form-full { grid-column: 1 / -1; }
.cc-form-grid label.cc-terms { display: flex; align-items: flex-start; gap: .65rem; color: var(--text-main); font-size: .9rem; line-height: 1.45; cursor: pointer; }
.cc-terms input { flex: none; width: 1.15rem; height: 1.15rem; margin: .1rem 0 0; accent-color: var(--primary-color); cursor: pointer; }
.cc-terms a { color: var(--primary-color); text-decoration: underline; }
.cc-consent-upload { display: grid; gap: .35rem; color: var(--text-muted); font-size: .85rem; }
.cc-consent-upload[hidden] { display: none; }
.cc-consent-head { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.cc-consent-head a { color: var(--primary-color); text-decoration: none; white-space: nowrap; }
.cc-consent-head a:hover { text-decoration: underline; }
.cc-consent-head i { margin-right: .3rem; }
.cc-file-drop { border: 1px dashed var(--card-border); border-radius: 8px; padding: 1rem; text-align: center; cursor: pointer; }
.cc-file-drop:hover, .cc-file-drop.dragover { border-color: var(--primary-color); background: rgba(0, 209, 255, .05); }
.cc-file-drop i { display: block; margin-bottom: .35rem; color: var(--primary-color); font-size: 1.3rem; }
.cc-file-drop input[type="file"] { display: none; }
.cc-file-drop small { display: block; margin-top: .5rem; color: var(--primary-color); overflow-wrap: anywhere; white-space: pre-line; }
.cc-upload-list { display: grid; gap: .4rem; margin: .45rem 0 0; padding: 0; list-style: none; }
.cc-upload-file { display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .4rem .55rem; border: 1px solid var(--card-border); border-radius: 6px; background: rgba(255, 255, 255, .035); }
.cc-upload-file-name { flex: 1; min-width: 0; color: var(--text-main); font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
.cc-upload-file-remove { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border: 1px solid var(--card-border); border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; }
.cc-upload-file-remove:hover { border-color: var(--primary-color); color: var(--primary-color); }
.cc-form-help { margin: 0 !important; font-size: .85rem; }
.cc-form-status { display: none; padding: .75rem; border-radius: 8px; font-size: .85rem; }
.cc-form-status.is-visible { display: block; }
.cc-form-status.is-error { background: rgba(255, 82, 82, .12); color: #ff9b9b; }
.cc-form-status.is-success { background: rgba(0, 255, 163, .12); color: var(--secondary-color); }
.cc-wizard-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.cc-wizard-actions button:disabled { cursor: not-allowed; opacity: .35; }
body.cc-modal-open { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1600px) {
    .cc-hero-img {
        background-image: url('../images/challenge/robots_1920.jpg');
        background-image: image-set(url('../images/challenge/robots_1920.webp') type('image/webp'), url('../images/challenge/robots_1920.jpg') type('image/jpeg'));
    }
}
@media (max-width: 1280px) {
    .cc-hero-img, .cc-final-bg {
        background-image: url('../images/challenge/robots_1280.jpg');
        background-image: image-set(url('../images/challenge/robots_1280.webp') type('image/webp'), url('../images/challenge/robots_1280.jpg') type('image/jpeg'));
    }
}
@media (max-width: 1100px) {
    .cc-jury { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
    .cc-jury-center { grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; text-align: left; }
    .cc-jury-note { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 992px) {
    .cc-rules-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .cc-rules-head { position: static; }
    .cc-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
    .cc-track::before, .cc-track::after { display: none; }
    .cc-stadler { grid-template-columns: 1fr; }
    .cc-stadler-img { order: -1; min-height: 280px; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
    .cc-stadler-text { padding: 1rem 2rem 2.6rem; }
    .cc-hero-img, .cc-final-bg { background-position: center 40%; }
}
@media (max-width: 860px) {
    .cc-hero { --cc-stage-w: 100%; min-height: auto; padding: 112px 0 2rem; }
    .cc-console { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .cc-console-actions { justify-content: center; }
    .cc-actionbar { flex-direction: column; align-items: stretch; padding: 1.2rem; }
    .cc-actionbar-btns .btn { flex: 1 1 auto; justify-content: center; }
    .cc-scroll-cue { display: none; }
}
@media (max-width: 760px) {
    .cc-section { padding-top: 6rem; }
    .cc-section-head { margin-bottom: 3rem; }
    .cc-podium { grid-template-columns: 1fr; gap: 1rem; max-width: 460px; }
    .cc-prize, .cc-prize--1, .cc-prize--3 { border-radius: 24px; border-bottom: 1px solid transparent; }
    .cc-prize-photo, .cc-prize--1 .cc-prize-photo, .cc-prize--3 .cc-prize-photo { aspect-ratio: 4 / 3; }
    .cc-prize-photo img { object-position: center 30%; }
    .cc-prize--1 { order: -1; }
    .cc-prize-rank { font-size: 5rem; margin-top: -2.8rem; }
    .cc-prize--1 .cc-prize-rank { font-size: 6rem; margin-top: -3.2rem; }
    .cc-podium-floor { display: none; }
    .cc-stadler { margin-top: 4rem; }
    .cc-jury { grid-template-columns: 1fr; max-width: 440px; }
    .cc-jury-center { grid-template-columns: 1fr; text-align: center; }
    .cc-faq { grid-template-columns: 1fr; }
    .cc-final { margin-top: 6rem; padding: 7rem 0; }
}
@media (max-width: 600px) {
    .cc-hero-lead { font-size: 1.02rem; margin-bottom: 2rem; }
    .cc-stage-frame { border-radius: 16px; }
    body[data-cc-page="challenge"] .cc-video { border-radius: 14px; }
    body[data-cc-page="challenge"] .cc-video::after { top: 40%; width: 52px; height: 52px; background-size: 26px; }
    .cc-stadler-logo { height: 18px; margin-bottom: 1.6rem; }
    .cc-video-thumb {
        background-image: url('../images/challenge/hosts-wide_1280.jpg');
        background-image: image-set(url('../images/challenge/hosts-wide_1280.webp') type('image/webp'), url('../images/challenge/hosts-wide_1280.jpg') type('image/jpeg'));
    }
    .cc-console { padding: 1.1rem; margin-top: 1.8rem; }
    .cc-countdown-units { gap: .25rem; }
    .cc-countdown-units > div { min-width: 3.3rem; }
    .cc-countdown-units strong { font-size: 1.65rem; }
    .cc-console-actions .btn { flex: 1 1 100%; justify-content: center; }
    .cc-track { grid-template-columns: 1fr; row-gap: 2.2rem; }
    .cc-track-step { display: grid; grid-template-columns: 60px 1fr; align-items: start; column-gap: 1.1rem; text-align: left; padding: 0; }
    .cc-track-node { grid-row: span 3; margin: 0; }
    .cc-track-step p { max-width: none; margin-bottom: .8rem; }
    .cc-track-tag { justify-self: start; }
    .cc-actionbar-btns .btn { flex: 1 1 100%; }
    .cc-stadler-text { padding: 1rem 1.4rem 2.2rem; }
    .cc-stadler-img { min-height: 220px; }
    .cc-rules-band { padding-top: 6rem; }
    .cc-rule { grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; padding: 1.3rem 0; }
    .cc-rule-no { font-size: 3.6rem; }
    .cc-rule h3 { font-size: 1.3rem; margin-top: .1rem; }
    .cc-partner-row { flex-wrap: wrap; }
    .cc-modal-panel { padding: 0; }
    .cc-wizard-actions .btn { padding-inline: 1rem; }
    .cc-form-grid { grid-template-columns: 1fr; }
    .cc-form-full { grid-column: auto; }
}

/* Reduzierte Bewegung: zum Testen bewusst ausgeschaltet, damit die Animationen
   auch auf Geräten mit „Animationen reduzieren“ laufen. Vor dem Livegang einschalten:
@media (prefers-reduced-motion: reduce) {
    body[data-cc-page="challenge"] *, body[data-cc-page="challenge"] *::before, body[data-cc-page="challenge"] *::after { animation: none !important; transition: none !important; }
    [data-cc-reveal] { opacity: 1; }
}
*/

/* ==========================================================================
   Bilder aus dem Ankündigungsvideo (26.09.2026, tools/challenge_bilder.py)
   ========================================================================== */

/* Regeln im Zickzack: Titel oben, dann Text und Standbild nebeneinander, jede zweite Regel gespiegelt */
.cc-rules-layout { display: block; }
.cc-rules-head { position: static; max-width: 760px; margin: 0 auto 4rem; text-align: center; }
.cc-rules-head::before { left: 0; width: 100%; }
.cc-rules-list { display: grid; gap: 4.5rem; }
.cc-rule { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 4rem; padding: 0; }
.cc-rule:first-child { padding-top: 0; }
.cc-rule:nth-child(even) .cc-rule-text { order: 2; }
.cc-rule-text { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: start; gap: 1.6rem; }
.cc-rule-img { display: block; width: 100%; }
.cc-rule-img img {
    display: block; width: 100%; height: auto; border-radius: 18px;
    border: 1px solid rgba(var(--tone-rgb), .5);
    box-shadow: 0 24px 70px -28px rgba(var(--tone-rgb), .9);
    transition: transform .8s var(--cc-ease), box-shadow .8s var(--cc-ease);
}
.cc-rule:hover .cc-rule-img img { transform: translateY(-4px); box-shadow: 0 30px 80px -26px rgba(var(--tone-rgb), 1); }

/* Schluss-Aufruf: Titel, Foto von Miriam mit allen Preisen, darunter wie im Hero Countdown und Buttons in einer Leiste */
.cc-final-stage { position: relative; width: min(100%, 820px); margin: 2.6rem auto 2rem; }
.cc-final-photo { display: block; }
.cc-final-photo img {
    display: block; width: 100%; height: auto; border-radius: 22px;
    border: 2px solid transparent;
    background: linear-gradient(100deg, var(--cc-blue), rgba(214, 222, 255, .55) 50%, var(--cc-red)) border-box;
    box-shadow: -30px 0 80px -30px rgba(var(--cc-blue-rgb), .7), 30px 0 80px -30px rgba(var(--cc-red-rgb), .7), 0 40px 90px -30px rgba(0, 0, 0, .9);
}
.cc-final-console { width: 100%; margin-top: 1.4rem; }
@media (min-width: 993px) {
    .cc-final-console { column-gap: 1.6rem; }
    .cc-final-console .cc-console-actions { flex-wrap: nowrap; gap: .7rem; }
    .cc-final-console .btn { white-space: nowrap; padding-left: 1.4rem; padding-right: 1.4rem; }
}

@media (max-width: 860px) {
    .cc-rule { grid-template-columns: 1fr; gap: 1.6rem; }
    .cc-rule:nth-child(even) .cc-rule-text { order: 0; }
    .cc-rules-list { gap: 3.2rem; }
}
@media (max-width: 760px) {
    .cc-rule-text { grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; }
    .cc-rules-head { margin-bottom: 2.6rem; }
}

/* Einreichungs-Fenster: Inhalt scrollt innen, schmaler dunkler Scrollbalken innerhalb der runden Ecken (26.09.2026) */
.cc-modal-scroll {
    overflow-y: auto; overscroll-behavior: contain; padding: 2.5rem;
    scrollbar-width: thin; scrollbar-color: rgba(var(--cc-violet-rgb), .55) transparent;
}
.cc-modal-scroll::-webkit-scrollbar { width: 8px; }
.cc-modal-scroll::-webkit-scrollbar-track { background: transparent; margin: 22px 0; }
.cc-modal-scroll::-webkit-scrollbar-thumb { background: rgba(var(--cc-violet-rgb), .5); border-radius: 8px; border: 2px solid #0d0f16; }
.cc-modal-scroll::-webkit-scrollbar-thumb:hover { background: rgba(var(--cc-violet-rgb), .8); }
.cc-modal-close { z-index: 2; }
@media (max-width: 600px) { .cc-modal-scroll { padding: 2rem 1.25rem 1.25rem; } }

/* ==========================================================================
   Einheitlicher vertikaler Rhythmus (26.09.2026), gleiche Werte wie index.html und tutorials.html
   (index.bundle.css, Block „Einheitlicher vertikaler Rhythmus“): 128 / 96 / 72 px zwischen Abschnitten,
   56 / 48 / 40 px von der Überschrift bis zum Inhalt, Partner-Leiste innen 4rem.
   Hero und Schluss-Aufruf sind bildfüllende Bänder und behalten ihre eigenen Abstände.
   ========================================================================== */
body[data-cc-page="challenge"] { --rhythmus: 8rem; --kopf: 3.5rem; }
.cc-section, .cc-rules-band { padding-top: var(--rhythmus); }
.cc-section-head, .cc-rules-head { margin-bottom: var(--kopf); }
body[data-cc-page="challenge"] .cc-partners { padding: 4rem 0; }
@media (max-width: 992px) {
    body[data-cc-page="challenge"] { --rhythmus: 6rem; --kopf: 3rem; }
}
@media (max-width: 768px) {
    body[data-cc-page="challenge"] { --rhythmus: 4.5rem; --kopf: 2.5rem; }
}

/* Persona-Kritik 26.09.: Kicker über der H1, YouTube-Link unter dem Video, Hinweise im Formular */
.cc-hero-kicker { margin: 0 0 .6rem; color: var(--secondary-color); font-size: .9rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.cc-video-yt { margin: -1.2rem 0 1.8rem; font-size: .9rem; }
.cc-video-yt a { color: var(--cc-text-soft, var(--text-muted)); text-decoration: underline; }
.cc-video-yt i { margin-right: .35rem; }
.cc-stadler-note { margin: .2rem 0 .8rem; font-size: .95rem; }
.cc-field-hint { display: block; margin-top: .35rem; color: var(--text-muted); font-size: .8rem; font-weight: 400; line-height: 1.4; }
.cc-consent-tip { margin: 0; color: var(--text-muted); font-size: .8rem; line-height: 1.4; }
.cc-form-closed { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--card-border); border-radius: 8px; font-weight: 700; }
