/* =========================================
   IUNIXX – WAS KANN IUNIXX?
   Endlose vertikale Aufgabenwand
========================================= */

/* =========================================
   1. GRUNDSYSTEM
========================================= */

.can-page {
    --can-blue: #1499FE;
    --can-navy: #071725;
    --can-lime: #99FE14;
    --can-muted: #52677D;

    width: 100%;
    overflow: hidden;

    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--can-navy);

    background:
        radial-gradient(
            ellipse at 90% 10%,
            rgba(20, 153, 254, 0.17),
            transparent 48%
        ),
        radial-gradient(
            ellipse at 5% 75%,
            rgba(121, 20, 254, 0.07),
            transparent 46%
        ),
        linear-gradient(
            145deg,
            #FFFFFF 0%,
            #F3F9FF 48%,
            #EAF4FF 100%
        );
}

.can-page *,
.can-page *::before,
.can-page *::after {
    box-sizing: border-box;
}

.can-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================
   2. HERO / ÜBERSCHRIFT
========================================= */

.can-hero {
    padding: 110px 0 65px;
    text-align: center;
}

.can-eyebrow {
    display: block;
    margin-bottom: 24px;

    color: var(--can-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.can-title {
    margin: 0;

    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.055em;

    color: var(--can-navy);
}

.can-title span {
    color: var(--can-blue);
}

.can-description {
    max-width: 760px;
    margin: 28px auto 0;

    color: var(--can-muted);
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: 1.75;
}


/* =========================================
   3. AUFGABENWAND
========================================= */

.can-wall {
    position: relative;
    width: 100%;
    padding: 10px 0 40px;
}

.can-wall-inner {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
}

/* Desktop: 6 Spalten */

.can-stream {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;

    height: clamp(560px, 72vh, 820px);
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000000 10%,
        #000000 90%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000000 10%,
        #000000 90%,
        transparent 100%
    );
}

/* Mobile-Version zunächst ausblenden */

.can-stream--mobile {
    display: none;
}


/* =========================================
   4. SPALTEN
========================================= */

.can-column {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

/* Der bewegte Inhalt */

.can-column-track {
    display: flex;
    flex-direction: column;
    width: 100%;

    will-change: transform;

    animation-duration: var(--flow-duration, 48s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Ungerade Spalten: oben nach unten */

.can-column:nth-child(odd) .can-column-track {
    animation-name: can-flow-down;
}

/* Gerade Spalten: unten nach oben */

.can-column:nth-child(even) .can-column-track {
    animation-name: can-flow-up;
}


/* =========================================
   5. GESCHWINDIGKEITEN
========================================= */

.can-stream--desktop .can-column:nth-child(1) {
    --flow-duration: 47s;
}

.can-stream--desktop .can-column:nth-child(2) {
    --flow-duration: 51s;
}

.can-stream--desktop .can-column:nth-child(3) {
    --flow-duration: 44s;
}

.can-stream--desktop .can-column:nth-child(4) {
    --flow-duration: 53s;
}

.can-stream--desktop .can-column:nth-child(5) {
    --flow-duration: 49s;
}

.can-stream--desktop .can-column:nth-child(6) {
    --flow-duration: 56s;
}


/* =========================================
   6. ENDLOSSCHLEIFE
========================================= */

/*
   Jede Gruppe wird in Twig zweimal ausgegeben.

   Die Animation verschiebt den Inhalt um
   genau eine Gruppenhöhe (-50 % der Spur).

   Dadurch entsteht ein nahtloser Übergang.
*/

.can-task-set {
    display: flex;
    flex-direction: column;
    gap: 12px;

    width: 100%;
    padding-bottom: 12px;
}

@keyframes can-flow-up {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }

}

@keyframes can-flow-down {

    from {
        transform: translateY(-50%);
    }

    to {
        transform: translateY(0);
    }

}


/* =========================================
   7. AUFGABENKARTEN
========================================= */

.can-task-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;

    min-width: 0;
    min-height: 104px;
    padding: 20px 17px;

    background: rgba(255, 255, 255, 0.95);

    border: 1px solid rgba(20, 153, 254, 0.10);
    border-radius: 18px;

    box-shadow:
        0 5px 24px rgba(7, 23, 37, 0.045);
}

/* Kleine Kategorie über dem Aufgabentext */

.can-task-area {
    display: block;

    color: #0877CC;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;

    overflow-wrap: anywhere;
}

/* Aufgabentitel */

.can-task-title {
    display: block;

    color: var(--can-navy);
    font-size: clamp(0.86rem, 1.1vw, 1rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;

    overflow-wrap: anywhere;
}


/* =========================================
   8. FARBVARIATIONEN DER KARTEN
========================================= */

/* Hellblau */

.can-task-card:nth-child(5n + 2) {
    background: #EAF4FF;
}

/* Navy */

.can-task-card:nth-child(5n + 3) {
    background: #12334F;
}

.can-task-card:nth-child(5n + 3) .can-task-title {
    color: #FFFFFF;
}

.can-task-card:nth-child(5n + 3) .can-task-area {
    color: #9CD3FF;
}

/* Lemon-Green-Akzent */

.can-task-card:nth-child(5n + 4) {
    border-left: 3px solid var(--can-lime);
}

/* IUNIXX-Blau */

.can-task-card:nth-child(5n + 5) {
    background: linear-gradient(
        145deg,
        #1499FE,
        #0877CC
    );
}

.can-task-card:nth-child(5n + 5) .can-task-title {
    color: #FFFFFF;
}

.can-task-card:nth-child(5n + 5) .can-task-area {
    color: #E5F5FF;
}


/* =========================================
   9. BEWEGUNG BEI HOVER ANHALTEN
========================================= */

@media (hover: hover) {

    .can-column:hover .can-column-track {
        animation-play-state: paused;
    }

}


/* =========================================
   10. HINWEIS
========================================= */

.can-note {
    padding: 0 0 95px;
}

.can-note p {
    max-width: 760px;
    margin: 0 auto;

    color: #64748B;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}


/* =========================================
   11. KONTAKTBEREICH
========================================= */

.can-cta {
    padding: 115px 0 135px;

    background:
        radial-gradient(
            ellipse at 85% 0%,
            rgba(20, 153, 254, 0.35),
            transparent 50%
        ),
        linear-gradient(
            125deg,
            #071725,
            #12334F
        );

    color: #FFFFFF;
}

.can-cta-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.can-cta .can-eyebrow {
    color: var(--can-lime);
}

.can-cta h2 {
    margin: 0 0 28px;

    color: #FFFFFF;
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.can-cta p {
    max-width: 640px;
    margin: 0 auto 36px;

    color: #CADBE9;
    font-size: 1.15rem;
    line-height: 1.75;
}

.can-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 30px;
    text-decoration: none;
}


/* =========================================
   12. TABLET UND MOBILE
   Drei Spalten statt sechs
========================================= */

@media (max-width: 900px) {

    .can-hero {
        padding: 80px 0 45px;
    }

    .can-stream--desktop {
        display: none;
    }

    .can-stream--mobile {
        display: grid;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 9px;
        height: 690px;
    }

    .can-stream--mobile .can-column:nth-child(1) {
        --flow-duration: 82s;
    }

    .can-stream--mobile .can-column:nth-child(2) {
        --flow-duration: 92s;
    }

    .can-stream--mobile .can-column:nth-child(3) {
        --flow-duration: 88s;
    }

    .can-task-card {
        min-height: 95px;
        padding: 15px 12px;
        border-radius: 14px;
        gap: 9px;
    }

    .can-task-title {
        font-size: 13px;
        line-height: 1.4;
    }

    .can-task-area {
        font-size: 9px;
    }

    .can-cta {
        padding: 90px 0;
    }
}


/* =========================================
   13. SMARTPHONES
========================================= */

@media (max-width: 600px) {

    .can-container {
        width: calc(100% - 32px);
    }

    .can-hero {
        padding: 65px 0 30px;
    }

    .can-eyebrow {
        font-size: 10px;
        margin-bottom: 18px;
    }

    .can-title {
        font-size: clamp(2.5rem, 9vw, 4rem);
    }

    .can-description {
        margin-top: 22px;
        font-size: 1rem;
    }

    .can-wall-inner {
        width: calc(100% - 20px);
    }

    .can-stream--mobile {
        gap: 7px;
        height: 650px;
    }

    .can-task-set {
        gap: 8px;
        padding-bottom: 8px;
    }

    .can-task-card {
        min-height: 88px;
        padding: 13px 9px;
        border-radius: 12px;
        gap: 7px;
    }

    .can-task-title {
        font-size: 11.5px;
        line-height: 1.35;
        letter-spacing: -0.015em;
    }

    .can-task-area {
        font-size: 8px;
        letter-spacing: 0.015em;
    }

    .can-note {
        padding-bottom: 65px;
    }

    .can-cta h2 {
        font-size: clamp(2.1rem, 8vw, 3rem);
    }

    .can-cta p {
        font-size: 1rem;
    }

}


/* =========================================
   14. BARRIEREFREIHEIT
========================================= */

@media (prefers-reduced-motion: reduce) {

    .can-column-track {
        animation: none !important;
        transform: none !important;
        will-change: auto;
    }

    .can-stream {
        -webkit-mask-image: none;
        mask-image: none;
        overflow-y: auto;
    }

    .can-task-set[aria-hidden="true"] {
        display: none;
    }

}

/* =========================================
   IUNIXX – ZUFÄLLIG AUFLEUCHTENDE TASKS
   Lemon Green / Orange
========================================= */

/* Weicher Übergang beim Aufleuchten */

.can-task-card {
    position: relative;

    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


/* =========================================
   LEMON GREEN
========================================= */

.can-task-card.is-flash-green {
    background: #99FE14;
    border-color: #99FE14;

    transform: scale(1.025);

    box-shadow:
        0 0 16px rgba(153, 254, 20, 0.65),
        0 0 34px rgba(153, 254, 20, 0.30);
}

.can-task-card.is-flash-green .can-task-title,
.can-task-card.is-flash-green .can-task-area {
    color: #071725;
}


/* =========================================
   ORANGE
========================================= */

.can-task-card.is-flash-orange {
    background: #FE7914;
    border-color: #FE7914;

    transform: scale(1.025);

    box-shadow:
        0 0 16px rgba(254, 121, 20, 0.65),
        0 0 34px rgba(254, 121, 20, 0.30);
}

.can-task-card.is-flash-orange .can-task-title,
.can-task-card.is-flash-orange .can-task-area {
    color: #071725;
}


/* =========================================
   REDUZIERTE BEWEGUNG
========================================= */

@media (prefers-reduced-motion: reduce) {

    .can-task-card {
        transition: none;
    }

    .can-task-card.is-flash-green,
    .can-task-card.is-flash-orange {
        transform: none;
        box-shadow: none;
    }

}
/* =========================================
   IUNIXX – WEISSE KACHELN
   Nur Grundfarbe ändern
   Gesamtes Design und Blinken bleiben erhalten
========================================= */

/* Alle normalen Kacheln weiß */

.can-page .can-task-card:not(.is-flash-green):not(.is-flash-orange) {
    background: #FFFFFF !important;
}

/* Normalzustand: Dunkle Aufgabentitel */

.can-page .can-task-card:not(.is-flash-green):not(.is-flash-orange) .can-task-title {
    color: #071725 !important;
}

/* Normalzustand: Kategorien im IUNIXX-Blau */

.can-page .can-task-card:not(.is-flash-green):not(.is-flash-orange) .can-task-area {
    color: #0877CC !important;
}