:root {
    --black: #000;
    --red: #E30E13;
    --white: #FEEBC9;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 800;
}

h1 {
    font-size: 36px;
    text-transform: uppercase;
    text-align: center;
    &.smaller {
        font-size: 30px;
    }
}

h2 {
    font-size: 20px;
}

p {
    font-family: 'Montserrat', Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 400;
    font-size: 14px;
}

strong, b, a {
	font-weight: 800;
}
a {
    font-family: 'Montserrat', Verdana, Geneva, Tahoma, sans-serif;
	text-decoration: underline;
	color: var(--white);
	&:hover {
	text-decoration: none;
	}
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--black);
    color: var(--white);
}

main {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 768px;
    overflow-x: clip;
    main > * {
        position: relative;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
        padding: 14px;
        > * {
            position: relative;
            grid-column: 1 / -1;
        }
    }
    nav.back {
        width: 20%;
        position: fixed;
        top: 14px;
        right: 14px;
        z-index: 1000;
        svg {
            fill: var(--white);
            width: 100%;
			max-width: 150px;
        }
    }
    .nopadding {
        width: calc(100% + 28px);
        left: -14px;
        > * {
            padding: 0 14px;
        }
    }
    .bordered {
        padding: 14px;
        background-repeat: repeat;
        background-size: 773px;
        .bordered-wrapper {
            padding: 14px;
            position: relative;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 14px;
            h1, h2, p {
                grid-column: 1 / -1;
                text-align: center;
                margin-bottom: 14px;
            }
        }
    }
    .border-vertical {
        padding: 14px 0;
    }
    button {
        cursor: pointer;
        grid-column: 2 / -2;
        width: 100%;
        border: solid 2px var(--white);
        font-weight: 800;
        font-size: 20px;
        padding: 7px;
        transition: color 0.2s ease-in-out;
        &.big {
            grid-column: 1 / -1;
            text-transform: uppercase;
        }
        &:hover {
            color: var(--white) !important;
        }
    }
    .black {
        background-color: var(--black);
        fill: var(--black);
        button {
            background-color: var(--red);
            color: var(--black);
        }
        &.bordered {
            background-image: url('../dist/img/knabekola_logo_background_black.png');
            &.inverted {
                background-image: url('../dist/img/knabekola_logo_background_red.png');
            }
            .bordered-wrapper {
                background-color: var(--black);
            }
        }
    }
    .red {
        background-color: var(--red);
        button {
            background-color: var(--black);
            color: var(--red);
        }
        &.bordered {
            background-image: url('../dist/img/knabekola_logo_background_red.png');
            &.inverted {
                background-image: url('../dist/img/knabekola_logo_background_black.png');
            }
            .bordered-wrapper {
                background-color: var(--red);
            }
        }
    }
    svg {
        position: absolute;
        width: 130%;
        margin-top: -14px;
        margin-left: -15%;
        &.black {
            background-color: transparent;
            fill: var(--black);
        }
        &.red {
            background-color: transparent;
            fill: var(--red);
        }
    }
    .hero {
        > * {
            z-index: 100;
        }
        #logo {
            grid-column: 2 / -2;
            width: 100%;
        }
        .can {
            position: absolute;
            width: 60%;
            top: 0;
            &:nth-of-type(2) {
                left: 0;
                transform: translateX(-50%) rotate(5deg);
                animation: rotationLeft 15s ease 0s infinite alternate-reverse none;
            }
            &:nth-of-type(3) {
                right: 0;
                top: 15%;
                transform: translateX(50%) rotate(-7.5deg);
                animation: rotationRight 15s ease 0s infinite alternate none;
            }
        }
        p {
            grid-column: 1 / -1;
            padding: 0 28px;
            text-align: center;
        }
    }
    &.arena .hero svg.trenner{
        position: absolute;
        bottom: 0;
        transform: rotate(180deg);
    }
    .karte {
        padding-top: 42%;
        margin-top: -78px;
        .stand {
            position: relative;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 14px;
            align-items: end;
            h2 {
                color: var(--white);
                font-size: min(4.5vw, 40px)
            }
            h3 {
                color: var(--black);
                font-size: min(4vw, 25px);
            }
            p {
                color: var(--white);
                font-size: min(3vw, 20px);
            }
            .box {
                h1 {
                    color: var(--red);
                }
            }
            .text {
                margin-bottom: 6%;
                &.lower {
                    margin-bottom: 0;
                }
                &.lowerXXL {
                    margin-bottom: -6%;
                }
            }
            .bg-line {
                position: absolute;
                height: calc(100% + 14px);
                border-color: var(--black);
                border-style: solid;
            }
            /* 1st in group of 4 */
            &:nth-of-type(4n+1) {
                grid-column: 2 / -1;
                grid-template-columns: repeat(4, 1fr);
            }
            &:nth-of-type(4n+1) .box {
                grid-column: 1 / 2;
            }
            &:nth-of-type(4n+1) .text {
                grid-column: 2 / -1;
            }
            &:nth-of-type(4n+1) .bg-line {
                width: 50%;
                left: 10%;
                border-left-width: 5px;
                border-bottom-width: 5px;
                top: 25%;
            }

            /* 2nd in group of 4 */
            &:nth-of-type(4n+2) {
                grid-column: 2 / -2;
                grid-template-columns: repeat(3, 1fr);
            }
            &:nth-of-type(4n+2) .box {
                grid-column: 3 / -1;
            }
            &:nth-of-type(4n+2) .text {
                grid-column: 1 / 3;
            }
            &:nth-of-type(4n+2) .bg-line {
                width: 100%;
                left: -15%;
                border-right-width: 5px;
                border-bottom-width: 5px;
                top: 25%;
            }
            /* 3rd in group of 4 */
            &:nth-of-type(4n+3) {
                grid-column: 1 / -1;
                grid-template-columns: repeat(5, 1fr);
            }
            &:nth-of-type(4n+3) .box {
                grid-column: 1 / 2;
            }
            &:nth-of-type(4n+3) .text {
                grid-column: 2 / -1;
            }
            &:nth-of-type(4n+3) .bg-line {
                width: 80%;
                left: 9%;
                border-left-width: 5px;
                border-bottom-width: 5px;
                top: 25%;
            }

            /* 4th in group of 4 */
            &:nth-of-type(4n+4) {
                grid-column: 3 / -1;
                grid-template-columns: repeat(3, 1fr);
            }
            &:nth-of-type(4n+4) .box {
                grid-column: 3 / -1;
            }
            &:nth-of-type(4n+4) .text {
                grid-column: 1 / 3;
            }
            &:nth-of-type(4n+4) .bg-line {
                width: 100%;
                left: -15%;
                border-right-width: 5px;
                border-bottom-width: 5px;
                top: 25%;
            }
            .box {
                position: relative;
                width: 100%;
                svg {
                    z-index: 10;
                    width: 100%;
                    position: relative;
                    margin: unset;
                    stroke: var(--red);
                    stroke-width: 28px;
                }
                h1 {
                    position: absolute;
                    z-index: 100;
                    top: 50%;
                    left: 50%;
                    transform: translateY(-50%) translateX(-50%);
                    font-size: min(7vw, 75px);
                    &.smaller {
                        font-size: min(5vw, 50px);
                    }
                }
            }
        }
        .arena {
            position: relative;
            display: grid;
            align-items: center;
            grid-template-columns: repeat(5, 1fr);
            width: calc(100% - 28px);
            gap: 14px;
            background-color: var(--black);
            padding: 14px;
            img {
                grid-column: 1 / 4;
                width: 100%;
            }
            .text {
                grid-column: 4 / -1;
                padding-right: 14px;
                h1 {
                    font-size: 20px;
                    color: var(--red);
                    text-align: center;
                    margin-bottom: 14px;
                    text-transform: none;
                }
                h2 {
                    font-size: 20px;
                    color: var(--black);
                    background-color: red;
                    padding: 7px 14px;
                    margin-bottom: 14px;
                    text-align: center;
                }
            }
            button {
                grid-column: 2 / -2;
                background-color: var(--red);
                color: var(--black);
            }
        }
       
    }
    .deadlydays {
        #dd-logo {
            grid-column: 1 / -2;
            width: 100%;
            height: auto;
        }
        p {
            grid-column: 1 / -3 !important;
            margin: 28px 0 !important;
        }
        #dd-can {
            width: 100%;
            max-width: 70px;
            grid-column: 1 / 2;
            position: absolute;
            bottom: -20px;
            pointer-events: none;
        }
        #dd-knabe {
            width: 100%;
            max-width: 150px;
            grid-column: 4/6;
            position: absolute;
            bottom: -20px;
            right: 0;
            pointer-events: none;
        }
    }
    .bestellen {
        button {
            z-index: 100;
        }
        img.can {
            position: absolute;
            width: 50%;
            bottom: -25%;
            &:nth-of-type(1) {
                left: 0;
                transform: translateX(-50%) rotate(5deg);
                animation: rotationLeft 15s ease 0s infinite alternate-reverse none;
            }
            &:nth-of-type(2) {
                right: 0;
                transform: translateX(50%) rotate(-7.5deg);
                animation: rotationRight 15s ease 0s infinite alternate none;
            }
        }
    }
}

.deadlydays-arena {
    #dd-showcase {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
        #dd-logo {
            grid-column: 1 / -1;
            width: 100%;
        }
        #dd-can {
            display: block;
            grid-column: 1 / 1;
            width: 100%;
        }
        #dd-knabe {
            display: block;
            grid-column: -3 / -1;
            width: 100%;
            position: absolute;
            right: -14px;
        }
    }
    a.steamlink {
        grid-column: 2 / -2;
        text-align: center;
    }
    svg {
        position: relative;
        grid-column: 1 / -1;
        text-align: center;
        fill: var(--white);
        width: 40%;
        margin: 0 auto;
    }
    #dd-skin {
        display: block;
        grid-column: 1 / 2;
        width: 100%;
    }
    #newletter-disclaimer {
        grid-column: 2 / -2;
    }
    form {
        grid-column: 1 / -1;
    }
}

footer {
    height: 20px;
    background-color: var(--white);
    border-top: solid 2px var(--black);
    outline: solid 2px var(--red);
    padding-left: 0 !important;
    color: var(--black);
    img.logo {
        grid-column: 1/2;
        height: 50px;
        bottom: 0;
        position: absolute;
    }
    nav {
        grid-column: 2/-2;
        ul {
            text-align: right;
            li {
                display: inline-block;
                margin-right: 14px;
                a {
                    color: var(--black);
                    text-decoration: none;
                    font-weight: 400;
                    &:hover {
                        color: var(--red);
                    }
                }
            }
        }
    }
    p {
        grid-column: -2/-1;
    }
}

@keyframes rotationLeft {
    0%,
    100% {
        transform: translateX(-50%) rotate(5deg) translateY(5px);
        transform-origin: 50% 60%;
    }

    10% {
        transform: translateX(-50%) rotate(4deg);
    }

    20%,
    40%,
    60% {
        transform: translateX(-50%) rotate(-8deg) translateY(5px);
    }

    30%,
    50%,
    70% {
        transform: translateX(-50%) rotate(8deg)  translateY(-5px);
    }

    80% {
        transform: translateX(-50%) rotate(-4deg);
    }

    90% {
        transform: translateX(-50%) rotate(4deg);
    }
}

@keyframes rotationRight {
    0%,
    100% {
        transform: translateX(50%) rotate(-7.5deg) translateY(5px);
        transform-origin: 50% 40%;
    }

    10% {
        transform: translateX(50%) rotate(4deg);
    }

    20%,
    40%,
    60% {
        transform: translateX(50%) rotate(-8deg) translateY(5px);
    }

    30%,
    50%,
    70% {
        transform: translateX(50%) rotate(8deg) translateY(-5px);
    }

    80% {
        transform: translateX(50%) rotate(-4deg);
    }

    90% {
        transform: translateX(50%) rotate(4deg);
    }
}

#mc_embed_signup {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
	p {
		font-size: 12px;
		text-align: left;
	}
	#mergeRow-gdpr {
		margin: 0;
	}
}

@media only screen and (min-width: 768px) {
    main {
        & .karte {
          & .stand {
            & .box {
              & svg {
                stroke-width: 14px;
              }
            }
          }
        }
      }
}