/* Block „lernreise“: Gestaltung, die functions.php nur laedt, wenn die Seite den Block traegt
   (bausteine.php, block_stil). Bis 1.0.83 stand das in style.css; aufgeteilt und entdoppelt am
   08.11.2026 (Bjoern: „raeum es auf“). Je Selektor EINE Stelle - neue Regeln hier aendern, nicht
   unten anhaengen. */

/* ── Block „KI-Lernreise“ (Mechthilds Entwurf 54, 19.09.2026) ──────────────────
   Waagerecht ab 961px wie im Entwurf. Darunter KEIN 2-Spalten-Raster: eine Reise,
   die in Paare zerfällt, ist keine Reise mehr, und die Verbindungslinien zeigen
   dann ins Leere. Also senkrecht, Kachel links, Text rechts, Linie dazwischen. */

.st-lernband {
    padding: clamp(40px, 4.2vw, 60px) 0; position: relative; overflow: hidden;
    background: linear-gradient(112deg, #0A8E99 0%, #0A7287 38%, #125C80 72%, #154C6E 100%);
}

.st-lernband .container {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
}

.st-lernband__kopf {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px;
}

.st-lernband__vor {
    margin: 0; font-size: 12.5px; letter-spacing: .09em; font-weight: 700;
    text-transform: uppercase; color: #8FF0E4;
}

.st-lernband__titel {
    margin: 0; color: #fff; font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 400; line-height: 1.2;
}

/* Alle Stationen gleich breit, auch die letzte, Text linksbuendig; die letzte Spalte endet an
   der Fluchtlinie des Containers (Bjoern, 21.09.2026: rechts keinen Rasterabstand, der Strich
   fuellt den Abstand zwischen den Kacheln, rechts gibt es keinen). Vorher: N-1 Spalten plus
   78px, letzte Station rechtsbuendig mit negativem Rand - die rechte Kachel wurde abgeschnitten. */

.st-reise {
    display: grid; grid-template-columns: repeat(var(--st-reise-spalten, 6), minmax(0, 1fr));
    gap: 26px; margin-top: 10px;
}

.st-rstation {
    position: relative; padding-top: 6px;
}

.st-rstation::before {
    content: ""; position: absolute; left: -32px; top: 44px;
    width: 32px; height: 2px; background: rgba(255, 255, 255, .34);
}

.st-rstation:first-child::before {
    display: none;
}

.st-rfeld {
    width: 78px; height: 78px; border-radius: 26px; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(4, 38, 54, .28);
}

.st-rfeld svg {
    width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}

.st-rstation--gruen     .st-rfeld {
    background: #1F9D57;
}

.st-rstation--blass     .st-rfeld {
    background: rgba(255, 255, 255, .14); box-shadow: none;
}

.st-rstation--gold      .st-rfeld {
    background: #F0B334;
}

.st-rstation--gold      .st-rfeld svg {
    stroke: #20303C;
}

.st-rstation--tuerkis-hell .st-rfeld {
    background: #2FC4B4;
}

.st-rstation--tuerkis   .st-rfeld {
    background: #1BB3B6;
}

.st-rstation--blau-hell .st-rfeld {
    background: #1590B4;
}

.st-rstation--blau      .st-rfeld {
    background: #1570A6;
}

.st-rstation--blau-tief .st-rfeld {
    background: #175C94;
}

.st-rstation--aus {
    opacity: .5;
}

.st-rstation--jetzt .st-rfeld {
    box-shadow: 0 0 0 4px rgba(240, 179, 52, .28),
    0 10px 26px rgba(4, 38, 54, .3);
}

.st-rtitel {
    margin: 18px 0 0; font-family: 'Roboto Slab', Georgia, serif; font-size: 15px;
    font-weight: 600; line-height: 1.25; color: #fff; overflow-wrap: anywhere;
}

.st-rzeile {
    margin: 6px 0 0; font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.3;
}

.st-rmass {
    margin: 3px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .72); line-height: 1.3;
}

.st-rstation--jetzt .st-rtitel, .st-rstation--jetzt .st-rzeile {
    color: #F0B334;
}

.st-rstation--klickbar {
    text-decoration: none; display: block; transition: transform .15s ease;
}

.st-rstation--klickbar:hover, .st-rstation--klickbar:focus-visible {
    transform: translateY(-3px);
}

.st-rstation--klickbar:hover .st-rfeld {
    box-shadow: 0 14px 30px rgba(4, 38, 54, .38);
}

.st-rstation--klickbar:hover .st-rtitel {
    text-decoration: underline;
}

.st-programm {
    margin-top: clamp(30px, 3.2vw, 42px); background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .26); border-radius: 0; padding: 20px 22px;   /* Kanten, kein Radius (CI) */
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}

.st-programm p {
    margin: 0; font-size: 15.5px; color: #fff; max-width: 46ch;
}

.st-programm__knoepfe {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}

@media (max-width: 960px) {
    .st-reise {
        grid-template-columns: 1fr; gap: 16px; margin-top: 4px;
    }

    .st-rstation {
        display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 16px;
        align-items: center; padding-top: 0; text-align: left;
    }

    /* Die Linie läuft jetzt senkrecht durch den Zwischenraum, mittig unter der Kachel. */

    .st-rstation::before {
        left: 30px; top: -16px; width: 2px; height: 16px;
    }

    .st-rfeld {
        width: 62px; height: 62px; border-radius: 20px;
    }

    .st-rfeld svg {
        width: 30px; height: 30px;
    }

    .st-rtitel {
        margin-top: 0; font-size: 16px; white-space: normal;
    }

    .st-programm {
        flex-direction: column; align-items: stretch;
    }

    .st-programm__knoepfe {
        flex-direction: column; align-items: stretch;
    }
}

@media (max-width: 560px) {
    .st-lernband .container {
        padding: 0 20px;
    }

    .st-rstation {
        grid-template-columns: 54px minmax(0, 1fr); gap: 14px;
    }

    .st-rfeld {
        width: 54px; height: 54px; border-radius: 17px;
    }

    .st-rfeld svg {
        width: 26px; height: 26px;
    }

    .st-rstation::before {
        left: 26px;
    }

    .st-rtitel {
        font-size: 15px;
    }
}

/* Satz unter der Ueberschrift der Lernreise (Mechthild, 23.09.2026). */

.st-lernband__satz {
    margin: 10px 0 0; font-size: 18px; line-height: 1.5;
    color: rgba(255, 255, 255, .86); max-width: 56ch;
}

/* Lernreise: gesperrte Station (1.0.41, Mechthild 25.09.2026). Kein Link; beim Drueberfahren erscheint ein
 * Schloss unten rechts am Feld und der Zeiger zeigt "nicht klickbar". */

.st-rstation--gesperrt {
    cursor: not-allowed;
}

.st-rstation--gesperrt .st-rfeld {
    position: relative;
}

.st-rschloss {
    position: absolute; right: -8px; bottom: -8px; width: 26px; height: 26px; border-radius: 50%;
    background: #fff; box-shadow: 0 2px 8px rgba(4, 38, 54, .35); display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(.7); transition: opacity .15s ease, transform .15s ease; pointer-events: none;
}

.st-rschloss svg {
    width: 14px; height: 14px; fill: none; stroke: #1D2A35; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.st-rstation--gesperrt:hover .st-rschloss {
    opacity: 1; transform: scale(1);
}

.st-rstation--gesperrt:hover .st-rfeld {
    filter: saturate(.6);
}
