h1 {
    font-size: 3em;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.main-heading {
    margin: 0;
    margin-left: 3%;
    margin-top: 150px;
    font-size: 6em;
}

@media screen and (max-width: 900px) {
    .main-heading {
        margin-bottom: -30px;
        padding-bottom: 0;
        margin-top: 90px;
        font-size: 10.564vw;
        text-align: center;
        margin-right: 3%;
    }

    h1 {
        font-size: 5.912vw;
        text-align: center;
        margin-right: 3%;
    }

    h3 {
        font-size: 5.912vw;
        text-align: center;
        margin-right: 3%;
    }

    .device-designation {
        font-size: 4vw;
        text-align: center;
        margin-right: 3%;
    }
}

@media screen and (max-width: 900px) {
    p {
        font-size: 0.8em;
    }
}

.equipment {
    margin-bottom: 7%;
}

.equipment img:not(.link-icon) {
    pointer-events: all;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    -webkit-transition-delay: .1s;
    -moz-transition-delay: .1s;
    -o-transition-delay: .1s;
    transition-delay: .1s;
    height: 200px;
    width: 220px;
    object-fit: contain;
    filter: drop-shadow(var(--dropshadow-glow));
}

@media screen and (min-width: 1900px) {
    .equipment img:not(.link-icon):hover {
        transform: scale(1.5);
        -webkit-transform: scale(1.5);
        -moz-transform: scale(1.5);
        -o-transform: scale(1.5);
        cursor: pointer;
    }
}

@media screen and (max-width: 1900px) and (min-width: 900px) {
    .equipment img:not(.link-icon):hover {
        transform: scale(1.2);
        -webkit-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -o-transform: scale(1.2);
        cursor: pointer;
    }
}

img:not(.link-icon).bigger-img {
    object-fit: cover;
}

@media screen and (max-width: 900px) {
    .equipment {
        contain: paint;
    }

    .equipment img:not(.link-icon) {
        margin-top: 30px;
        margin-bottom: 35px;
        height: auto;
        width: 100%;
    }

    img:not(.link-icon).hardware {
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    img:not(.link-icon).big-img {
        object-fit: contain;
        transform: scale(1.3);
        -webkit-transform: scale(1.3);
        -moz-transform: scale(1.3);
        -o-transform: scale(1.3);
        margin-top: 5px;
        margin-bottom: 15px;
    }

    img:not(.link-icon).bigger-img {
        object-fit: contain;
        transform: scale(1.7);
        -webkit-transform: scale(1.7);
        -moz-transform: scale(1.7);
        -o-transform: scale(1.7);
        margin-top: 75px;
        margin-bottom: 80px;
    }

    /* img.biggest-img {
        object-fit: contain;
        transform: scale(2);
        -webkit-transform: scale(2);
        -moz-transform: scale(2);
        -o-transform: scale(2);
        padding-top: 130px;
        padding-bottom: 130px;
    } */

    img.hardware-less-padding {
        padding-top: 0px;
        padding-bottom: 0px;
        margin-top: -50px;
        margin-bottom: -50px;
    }
}

@media screen and (min-width: 900px) {
    img.hardware {
        height: 150% !important;
        width: 100px !important;
        object-fit: contain !important;
    }

    ul.hardware-grid li:hover img.hardware {
        transform: scale(2);
        -webkit-transform: scale(2);
        -moz-transform: scale(2);
        -o-transform: scale(2);
    }
}

.outer-wrapper {
    margin-top: 50px;
    margin-bottom: 50px;
    position: relative;
}

.peripherie-item {
    margin: 0;
    padding: 20px;
    border-radius: 15px;
    background-color: var(--container-color);
    filter: drop-shadow(var(--dropshadow));
    position: relative;
}

.peripherie-item div.item-designation {
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--inner-container-alt-color);
    border-radius: 15px;
    width: fit-content;
    cursor: pointer;
    filter: drop-shadow(var(--dropshadow-glow-alt));
}

@media screen and (max-width: 900px) {
    .peripherie-item div.item-designation {
        width: 100%;
    }
}

.peripherie-item h3 {
    margin-top: 0px;
}

.peripherie-item .device-designation {
    margin-bottom: 0px;
}

.inner-wrapper {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    height: 100%;
    margin-right: 3%;
}

strong {
    color: var(--primary-color);
}

.textgrid {
    display: grid;
    grid-template-columns: 250px 1fr;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
    background-color: rgba(var(--primary-color-opacity), calc(0.04 * var(--theme-opacity-compensation)));
    border-radius: 15px;
    width: 70%;
    backface-visibility: hidden !important;
}

@media screen and (max-width: 1800px) {
    .textgrid {
        width: 80%;
    }
}

@media screen and (max-width: 1400px) {
    .textgrid {
        width: 70%;
    }
}

@media screen and (max-width: 900px) {
    .textgrid {
        grid-template-columns: 120px 1fr;
        max-width: 100%;
        width: 100%;
    }

    [data-inviewport="textgrid"] {
        transform: scale(0.95);
        -webkit-transform: scale(0.95);
        -moz-transform: scale(0.95);
        -o-transform: scale(0.95);
        background-color: rgba(var(--primary-color-opacity), calc(0.04 * var(--theme-opacity-compensation)));
    }

    [data-inviewport="textgrid"].is-inViewport {
        transition-property: transform, background-color;
        transition-timing-function: ease-in-out;
        transition-duration: .3s;
        transition-delay: .7s;
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -o-transform: scale(1);
        background-color: rgba(var(--primary-color-opacity), calc(0.1 * var(--theme-opacity-compensation)));
    }

    .outer-wrapper {
        margin-top: 0;
        margin-bottom: 0;
        position: static;
    }

    .inner-wrapper {
        display: inline;
        align-items: center;
        position: static;
        margin-right: 3%;
    }
}

@media screen and (min-width: 900px) {
    .textgrid:hover {
        background-color: rgba(var(--primary-color-opacity), calc(0.07 * var(--theme-opacity-compensation)));
    }
}

.lefttext {
    text-align: right;
    margin-left: 20px;
}

.righttext {
    margin-left: 12px;
}

.dashed-border {
    margin-top: 0;
}

.anekdote {
    display: none;
    cursor: pointer;
    width: fit-content;
}

.showAnekdote {
    display: inline;
    cursor: pointer;
    width: fit-content;
}

ul.hardware-grid {
    padding: 0;
    padding-right: 3%;
    padding-left: 3%;
    margin: 0;
    display: grid;
    gap: 30px 30px;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    list-style-type: none;
    /* margin-bottom: 30px; */
    margin-top: 30px;
}

ul.hardware-grid li {
    position: relative;
}

.peripherie-grid {
    padding: 0;
    margin: 0;
    padding-left: 3%;
    padding-right: 3%;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr;
    /* margin-bottom: 30px; */
    margin-top: 30px;
}

.peripherie-grid-first {
    list-style-type: none;
    padding: 0;
    /* margin-bottom: 30px; */
    margin-top: 0;
}

.peripherie-grid-first li {
    margin-bottom: 30px;
}

@media screen and (max-width: 1200px) {
    .peripherie-grid li {
        margin-bottom: 3% !important;
    }

    ul.hardware-grid {
        gap: 0;
    }

    ul.hardware-grid li {
        margin-bottom: 3% !important;
    }

    .equipment {
        margin-bottom: 0 !important;
    }
}

.peripherie-grid-second {
    list-style-type: none;
    padding: 0;
    /* margin-bottom: 30px; */
    margin-top: 0;
}

.peripherie-grid-second li {
    margin-bottom: 30px;
}

ul.hardware-grid li {
    background-color: var(--container-color);
    border-radius: 15px;
    padding-left: 20px;
    padding-right: 20px;
    cursor: pointer;
    filter: drop-shadow(var(--dropshadow));
}

@media screen and (min-width: 900px) {
    ul.hardware-grid li:hover {
        background-color: var(--inner-container-alt-color);
        border-radius: 15px;
    }
}

@media screen and (max-width: 900px) {
    ul.hardware-grid li:active {
        background-color: var(--inner-container-alt-color);
        border-radius: 15px;
    }
}

@media screen and (max-width: 2000px) {
    ul.hardware-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 1330px) {
    ul.hardware-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 1800px) {
    .peripherie-grid {
        grid-template-columns: 1fr;
    }

    .peripherie-grid-first {
        margin-bottom: 0;
    }

    .peripherie-grid-second {
        margin-top: 0;
    }

    .peripherie-grid {
        gap: 0;
    }
}

.sub-heading-1 {
    margin: 0;
    margin-top: 43px;
    padding-top: 10px;
    position: sticky;
    top: 60px;
    background: var(--background-color);
    z-index: 12;
    cursor: pointer;
}

.sub-heading-1 h1 {
    padding-left: 3%;
    padding-right: 3%;
}

.sub-heading-2 {
    margin: 0;
    margin-top: 43px;
    padding-top: 10px;
    position: sticky;
    top: 60px;
    background: var(--background-color);
    z-index: 12;
    cursor: pointer;
}

.sub-heading-2 h1 {
    padding-left: 3%;
    padding-right: 3%;
}

.sub-heading {
    font-size: 3em;
    font-family: 'PressStart2P';
    padding-left: 3%;
}

@media screen and (max-width: 900px) {
    .sub-heading {
        font-size: 5.912vw;
        text-align: center;
        margin-right: 3%;
    }
}