/* ClassCOCKPIT Modul */

.classcockpit-wrap {
    padding: 1.5rem 0 1.25rem;
}

.classcockpit-wrap .classcockpit-headline {
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.classcockpit {
    --cc-center: #193C6C;
    --cc-line: #193C6C;
    --cc-circle: 18.25rem;
    --cc-ring: 14px;
    --cc-dot: 8px;
    --cc-stroke: 1px;
}

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

.classcockpit-stage {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.classcockpit-wires {
    display: none;
}

/* Kreis in der Mitte */

.classcockpit-center {
    -webkit-box-ordinal-group: 0;
    -ms-flex-order: -1;
    order: -1;
    margin-bottom: 0.75rem;
}

.classcockpit-circle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: var(--cc-circle);
    height: var(--cc-circle);
    /* Der größere Fußabstand schiebt Symbol und Text nach oben. */
    padding: 8% 9% 17%;
    border-radius: 50%;
    background: var(--cc-center);
    -webkit-box-shadow: 0 0 0 var(--cc-ring) #fff;
    box-shadow: 0 0 0 var(--cc-ring) #fff;
    color: #fff;
    text-align: center;
}

.classcockpit-circle-icon {
    display: block;
    margin-bottom: 1rem;
}

.classcockpit-circle-icon img {
    display: block;
    max-width: 9.25rem;
    max-height: 8.25rem;
    margin: 0 auto;
}

.classcockpit-circle-text {
    display: -ms-grid;
    display: grid;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
}

/* Alle Texte liegen übereinander, damit die Überblendung nicht springt. */
.classcockpit-circle-line {
    grid-row: 1;
    -ms-grid-row: 1;
    grid-column: 1;
    -ms-grid-column: 1;
    grid-area: 1 / 1;
    opacity: 0;
    transition: 0.6s opacity ease;
    -webkit-transition: 0.6s opacity ease;
}

.classcockpit-circle-line.is-visible {
    opacity: 1;
}

/* Buttons */

.classcockpit-col {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    max-width: 26.25rem;
    margin-top: 0.75rem;
}

.classcockpit-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: 1.75rem;
    background: var(--cc-btn);
    color: #fff;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: 0.3s background ease;
    transition: 0.3s background ease;
}

a.classcockpit-btn:hover,
a.classcockpit-btn:focus {
    text-decoration: none;
}

.classcockpit-btn:last-child {
    margin-bottom: 0;
}

.classcockpit-btn--static {
    cursor: default;
}

.classcockpit-btn:not(.classcockpit-btn--static):hover,
.classcockpit-btn.is-active {
    background: var(--cc-btn-active);
    color: #fff;
}

.classcockpit-btn:focus {
    outline: 0;
}

.classcockpit-btn:focus-visible {
    outline: 2px solid var(--cc-line);
    outline-offset: 3px;
}

.classcockpit-btn-icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 0.75rem;
}

.classcockpit-btn-icon:empty {
    display: none;
}

.classcockpit-btn-icon img {
    max-width: 100%;
    max-height: 100%;
}

.classcockpit-btn-label {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
}

/* Infobox */

.classcockpit-panel {
    margin-top: 2rem;
}

.classcockpit-panel.is-empty {
    margin-top: 0;
}

/* Gestapelt steht die Infobox direkt unter dem aktiven Button. */
.classcockpit-col > .classcockpit-panel {
    width: 100%;
    margin-top: 0;
    margin-bottom: 1rem;
}

.classcockpit-col > .classcockpit-panel:last-child {
    margin-bottom: 0;
}

.classcockpit-panel-item {
    padding: 1.75rem;
    border: 1px solid #C3D0E4;
    border-radius: 0.75rem;
    background: #fff;
    color: #37668C;
    text-align: center;
    opacity: 0;
    -webkit-transition: 0.3s opacity ease;
    transition: 0.3s opacity ease;
}

.classcockpit-panel-item.is-open {
    opacity: 1;
}

/* Infobox eines verlinkten Buttons ist selbst anklickbar. */
.classcockpit-panel-item--link {
    cursor: pointer;
}

.classcockpit-panel-item[hidden] {
    display: none;
}

.classcockpit-panel-headline {
    margin-bottom: 0.75rem;
    color: var(--cc-center);
    font-size: 1.25rem;
    font-weight: 700;
}

.classcockpit-panel-text p {
    margin-bottom: 0.75rem;
    color: inherit;
}

.classcockpit-panel-text p:last-child {
    margin-bottom: 0;
}

/* Ab Desktop: Kreis in der Mitte, Buttons links und rechts */

@media print, screen and (min-width: 64em) {

    .classcockpit-wrap {
        padding: 2rem 0;
    }

    .classcockpit-stage {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        max-width: 72rem;
        margin: 0 auto;
    }

    .classcockpit-wires {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        overflow: visible;
        pointer-events: none;
    }

    .classcockpit-col {
        position: relative;
        z-index: 1;
        -webkit-box-flex: 1;
        -ms-flex: 1 1 0px;
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        margin-top: 0;
    }

    .classcockpit-col--left {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        padding-right: 3.25rem;
    }

    .classcockpit-col--right {
        -webkit-box-align: end;
        -ms-flex-align: end;
        align-items: flex-end;
        padding-left: 3.25rem;
    }

    .classcockpit-btn {
        width: auto;
        min-width: 12.5rem;
        max-width: 100%;
        margin-bottom: 1.75rem;
    }

    .classcockpit-center {
        position: relative;
        z-index: 1;
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
        order: 0;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .classcockpit-panel {
        max-width: 72rem;
        margin: 2.5rem auto 0;
    }

    .classcockpit-panel-item {
        padding: 2.5rem 3rem;
    }
}

/* Zwischen 1024 und 1200 px reicht die Breite für die volle Größe nicht aus. */

@media print, screen and (min-width: 64em) and (max-width: 74.98em) {

    .classcockpit {
        --cc-circle: 16.25rem;
    }

    .classcockpit-circle-icon img {
        max-width: 6.25rem;
        max-height: 5.25rem;
    }

    .classcockpit-circle-text {
        font-size: 1.5rem;
    }

    .classcockpit-btn {
        min-width: 10.75rem;
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .classcockpit-btn-icon {
        width: 1.5rem;
        height: 1.5rem;
        margin-right: 0.75rem;
    }

    .classcockpit-col--left {
        padding-right: 2.5rem;
    }

    .classcockpit-col--right {
        padding-left: 2.5rem;
    }
}

@media screen and (min-width: 75em) {

    .classcockpit-wrap {
        padding: 2.5rem 0 2.25rem;
    }
}

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

    .classcockpit-btn,
    .classcockpit-panel-item,
    .classcockpit-circle-line {
        -webkit-transition: none;
        transition: none;
    }
}
