:root {
    --color-bg: white;
    --color-text: black;
    --color-translucent-bg: #ffffff7f;

    --color-orange: #fe5900;
    --color-orange-light: #ffa200;

    --color-on-orange: white;
    --color-on-orange-light: black;

    --navbar-height: 5rem;

    --full-width: 100vw;
    --main-content-max-width: calc(var(--full-width) - 4rem);

    --article-max-width: min(20rem, calc(var(--full-width) - 8rem - 2px));
    --article-padding: 2rem;
    --article-border-width: 1px;
    --article-max-outer-width: calc(var(--article-max-width) + var(--article-padding) * 2 + var(--article-border-width) * 2);
    --article-max-count: 2;
}

* {
    color: var(--color-text);
}

html {
    background-color: var(--color-orange-light);
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-bg);
}

.windows-scrollbar-width-workaround {
    --full-width: calc(100vw - 16px);
}

.btn-container {
    display: flex;
    padding-top: 2rem;
    padding-bottom: 2rem;
    align-items: center;
    justify-content: center;
}

a {
    all: unset;
    cursor: pointer;
    color: var(--color-orange);
    text-align: center;
}

a>i {
    color: var(--color-orange);
    text-align: center;
}

a.button {
    cursor: pointer;
}

.float-right {
    float: right;
}

#navbar {
    height: var(--navbar-height);
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    z-index: 100;
}

#home-img-container {
    text-align: end;
}

#home-img {
    padding: 0.5rem;
    height: calc(100% - 1rem);
}

#scroll-down-animation {
    cursor: pointer;
}

.cta {
    align-self: center;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    transition: 300ms;
}

.primary-cta,
.secondary-cta:hover {
    background-color: var(--color-orange);
    color: var(--color-on-orange);
    text-decoration-color: var(--color-on-orange);
}

.primary-cta:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.secondary-cta {
    text-decoration: underline;
    text-decoration-color: var(--color-orange);
    text-decoration-thickness: 3px;
    color: var(--color-text);
}

#socials {
    align-self: center;
    display: flex;
    flex-direction: row;
}

.social-icon {
    font-size: 2rem;
    padding: 1rem;
}

#menu-icon {
    position: relative;
    font-size: 2rem;
    align-self: center;
    padding: 1rem 3rem;
    cursor: pointer;
}

#menu-icon>i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#menu {
    min-width: min(21rem, calc(var(--full-width) - 4rem));
    width: max-content;
    max-width: calc(var(--full-width) - 4rem);
    position: fixed;
    top: var(--navbar-height);
    right: 0;
    padding: 1rem 0;
    background-color: var(--color-translucent-bg);
    margin: 0 2rem 2rem 2rem;
    border-radius: 1rem;
    border: 3px solid var(--color-orange);
    height: clamp(15rem, calc(100vh - var(--navbar-height) - 4rem - 6px), min-content);
    max-height: calc(100vh - var(--navbar-height) - 4rem - 6px);
    z-index: 100;
    overflow-y: scroll;
    -webkit-backdrop-filter: blur(1rem);
    backdrop-filter: blur(1rem);
}

#menu-icon>.hidden,
#menu.hidden {
    display: none;
}

.menu-section {
    list-style-type: none;
    padding: 1rem 0;
    min-width: min(max-content, 100%);
    background-color: var(--color-translucent-bg);
    border: 1px solid transparent;
}

.menu-section-expanded {
    border: 1px solid var(--color-orange);
}

#menu>.menu-section {
    border-left: none;
    border-right: none;
}

.menu-section-header {
    font-weight: bold;
    width: 100%;
    padding-right: 2rem;
}

.menu-section-header i {
    line-height: 100%;
    padding: 0 0.5rem 0 2rem;
}

.menu-item i {
    line-height: 100%;
    padding: 0 0.75rem 0 0;
}

.menu-section-header:hover i,
.menu-item:hover i {
    color: var(--color-orange);
}

.menu-section .menu-section-icon-opened,
.menu-section .menu-section-icon-hovered {
    display: none;
}

.menu-section-expanded>.menu-section-header>span>.menu-section-icon-closed {
    display: none;
}

.menu-section-expanded>.menu-section-header>span>.menu-section-icon-opened {
    display: inline-block;
}

.menu-section-header,
.menu-section-header * {
    color: var(--color-text);
}

.menu-section-content {
    display: none;
    border-top: 1px dashed var(--color-orange);
    padding-inline-start: unset;
    padding: 0 1.5rem;
    margin-block-start: 1rem;
    margin-block-end: 0;
}

.menu-section-expanded>.menu-section-content {
    display: block;
}

.menu-item {
    list-style-type: none;
    padding: 1rem 2rem;
}

.menu-item>a {
    color: var(--color-text);
}

.menu-section>a:hover,
.menu-item:hover>a {
    text-decoration: underline;
    text-decoration-color: var(--color-orange);
    text-decoration-thickness: 3px;
}

.navbar-primary-cta-replacement {
    display: none;
}

.navbar-secondary-cta-replacement {
    display: none;
}

#hero,
.container-404 {
    position: relative;
    margin-top: var(--navbar-height);
    width: 100%;
}

#hero {
    height: calc(100vh - var(--navbar-height));
}

#hero>video {
    display: block;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

#hero>.hero-text {
    display: block;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    text-align: center;
    align-content: center;
}

#hero>.hero-text>h1 {
    font-size: 5rem;
    font-weight: normal;
    margin-block-start: 0;
    margin-block-end: 0;
    color: var(--color-orange);
}

.article-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
}

.article-container {
    --column-gap: 2rem;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    column-gap: var(--column-gap);
    row-gap: 2rem;
    max-width: var(--full-width);
    overflow-x: scroll;
    padding-bottom: 2rem;
    max-width: min(
        calc(
            var(--article-max-outer-width) * var(--article-max-count)
            + var(--column-gap) * calc(var(--article-max-count) - 1)
        ),
        var(--main-content-max-width)
    );
}

.article-preview {
    height: 100%;
    overflow: hidden;
}

.article-indicator-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-bottom: 2rem;
    max-width: var(--full-width);
}

.article-indicator-container::before {
    content: '';
    color: #000;
    position: relative;
    top: 50%;
    left: -20px;
    background-color: var(--color-orange);
    transition: 300ms;
}

.article-indicator {
    width: 10px;
    height: 10px;
    background: var(--color-orange);
    border-radius: 5px;
    margin: 0 5px;
    border: transparent 1px solid;
}

.article-indicator-container[data-active-index="0"]>.article-indicator:nth-child(2),
.article-indicator-container[data-active-index="1"]>.article-indicator:nth-child(3),
.article-indicator-container[data-active-index="2"]>.article-indicator:nth-child(4),
.article-indicator-container[data-active-index="3"]>.article-indicator:nth-child(5),
.article-indicator-container[data-active-index="4"]>.article-indicator:nth-child(6),
.article-indicator-container[data-active-index="5"]>.article-indicator:nth-child(7),
.article-indicator-container[data-active-index="6"]>.article-indicator:nth-child(8),
.article-indicator-container[data-active-index="7"]>.article-indicator:nth-child(9),
.article-indicator-container[data-active-index="8"]>.article-indicator:nth-child(10),
.article-indicator-container[data-active-index="9"]>.article-indicator:nth-child(11),
.article-indicator-container[data-active-index="10"]>.article-indicator:nth-child(12),
.article-indicator-container[data-active-index="11"]>.article-indicator:nth-child(13),
.article-indicator-container[data-active-index="12"]>.article-indicator:nth-child(14),
.article-indicator-container[data-active-index="13"]>.article-indicator:nth-child(15),
.article-indicator-container[data-active-index="14"]>.article-indicator:nth-child(16),
.article-indicator-container[data-active-index="15"]>.article-indicator:nth-child(17),
.article-indicator-container[data-active-index="16"]>.article-indicator:nth-child(18),
.article-indicator-container[data-active-index="17"]>.article-indicator:nth-child(19),
.article-indicator-container[data-active-index="18"]>.article-indicator:nth-child(20),
.article-indicator-container[data-active-index="19"]>.article-indicator:nth-child(21),
.article-indicator-container[data-active-index="20"]>.article-indicator:nth-child(22),
.article-indicator-container[data-active-index="21"]>.article-indicator:nth-child(23),
.article-indicator-container[data-active-index="22"]>.article-indicator:nth-child(24),
.article-indicator-container[data-active-index="23"]>.article-indicator:nth-child(25),
.article-indicator-container[data-active-index="24"]>.article-indicator:nth-child(26),
.article-indicator-container[data-active-index="25"]>.article-indicator:nth-child(27),
.article-indicator-container[data-active-index="26"]>.article-indicator:nth-child(28),
.article-indicator-container[data-active-index="27"]>.article-indicator:nth-child(29),
.article-indicator-container[data-active-index="28"]>.article-indicator:nth-child(30) {
    border: solid 1px;
}

.article-icon {
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
}

.article,
.trainingszeiten-card {
    max-width: var(--article-max-width);
    max-height: 20rem;
    border: var(--article-border-width) solid var(--color-orange);
    border-radius: 1rem;
    padding: var(--article-padding);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.more {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.trainingszeiten-card {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: min-content;
    overflow-y: hidden;
}

.trainingszeiten-card>.header {
    height: 3rem;
    margin-bottom: 2rem;
}

.dim-bg-img {
    overflow-y: scroll;
    -webkit-backdrop-filter: saturate(0.15) blur(2px);
    backdrop-filter: saturate(0.15) blur(2px);
}

.trainingszeiten-card>.content {
    background-color: var(--color-translucent-bg);
    padding: 0 1rem;
    border-radius: 1rem;
}

.trainingszeiten-card>.header>.team-btn {
    float: left;
    margin-right: 1rem;
}

.trainingszeiten-card>.header>.contact-wrapper {
    float: right;
    display: inline-flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
}

.contact-icon {
    font-size: 2rem;
    padding: 0 1rem;
}

.main-section {
    margin: 0 2rem;
    padding-top: var(--navbar-height);
}

.main-section span[style="color: rgb(0, 0, 0);"] {
    color: var(--color-text) !important;
}

.main-section img {
    max-width: 100%;
}

.team-container {
    display: flex;
    flex-direction: row;
    row-gap: 2rem;
    column-gap: 2rem;
    align-items: flex-start;
}

.team-img {
    max-width: min(25rem, calc(50vw - 6rem)) !important;
}

.full-article-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-items: center;
    align-items: stretch;
    justify-content: center;
    column-gap: 2rem;
    row-gap: 2rem;
    max-width: var(--full-width);
    padding-bottom: 2rem;
}

.full-article {
    max-width: min(40rem, calc(var(--full-width) - 8rem));
    max-height: unset;
}

footer {
    background-color: var(--color-orange-light);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    min-height: 5rem;
    column-gap: 1rem;
    row-gap: 1rem;
    text-align: center;
}

footer * {
    color: var(--color-on-orange-light);
}

footer a {
    text-decoration: underline;
}

.container-404 {
    padding: 2rem;
    text-align: center;
}

.container-404>.primary-cta {
    position: relative;
    margin-top: 10rem;
}

.container-404>h3 {
    font-size: 10rem;
    font-weight: normal;
    margin-block-start: 2rem;
    margin-block-end: 2rem;
}

.max-width-800 {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

.max-width-800>* {
    min-width: min(37rem, calc(var(--full-width) - 4rem));
    max-width: 50rem;
}

.border {
    border: 1px solid var(--color-orange);
    border-radius: 1rem;
    padding: 2rem;
}

.img-tiler {
    display: block;
    line-height: 0;
    -webkit-column-width: 300px;
    -moz-column-width: 300px;
    column-width: 300px;
    -webkit-column-count: auto;
    -moz-column-count: auto;
    column-count: auto;
    -webkit-column-gap: 0px;
    -moz-column-gap: 0px;
    column-gap: 0px;
}

.tiled-img {
    width: 100% !important;
}

.img-overview {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.img-collcetion {
    width: clamp(min(15rem, var(--full-width) - 8rem), 20rem, min(20rem, var(--full-width) - 8rem));
    min-height: 15rem;
    background-size: cover;
    background-position: center;
    margin: 2rem;
}

.img-collcetion>h3 {
    background-color: var(--color-translucent-bg);
    padding: 2rem;
    border-radius: 1rem;
}

.gameday-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.gameday {
    min-width: min-content;
    margin: 2rem;
}

.download-entry {
    display: block;
}

.download-icon {
    font-size: 1.3rem;
    padding: 1rem;
    color: var(--color-orange);
}

.sponsors-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
}

.sponsor {
    margin: 1rem;
    border-radius: 2rem;
    border: var(--color-orange) 1px solid;
    overflow: hidden;
    background-color: white;
    max-width: calc(var(--full-width) - 6rem - 2px) !important;
    -o-object-fit: contain;
    object-fit: contain;
}

.sponsor-35 {
    height: 35vh;
}

.sponsor-30 {
    height: 30vh;
}

.sponsor-25 {
    height: 25vh;
}

.sponsor-20 {
    height: 20vh;
}

.sponsor-15 {
    height: 15vh;
}

@media (max-width: 960px) {
    #footer {
        flex-direction: column;
        padding: 2rem 1rem;
    }
}

@media (max-width: 620px) {
    .team-container {
        flex-direction: column;
    }

    .team-img {
        max-width: calc(var(--full-width) - 4rem) !important;
    }
}

@media (max-width: 680px) {
    #navbar .secondary-cta {
        display: none;
    }

    .navbar-secondary-cta-replacement {
        display: list-item;
    }
}

@media (max-width: 480px) {
    #navbar .primary-cta {
        display: none;
    }

    .navbar-primary-cta-replacement {
        display: list-item;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #303030;
        --color-text: white;
        --color-translucent-bg: #303030bf;
    }
}


#hero>#scroll-down-animation {
    position: absolute;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    width: 300px;
    height: 300px;
    bottom: 0;
    cursor: pointer;
}

/* BEGIN scroll down aimation */
/* Source: https://codepen.io/postor/pen/vYpNYg */

.arrows {
	width: 60px;
	height: 80px;
	position: absolute;
	left: 50%;
	margin-left: -30px;
	bottom: 80px;
}

.arrows path {
	stroke: var(--color-orange);
	fill: transparent;
	stroke-width: 8px;	
	-webkit-animation: arrow 2s infinite; 
	animation: arrow 2s infinite;
}

@keyframes arrow
{
0% {opacity:0}
40% {opacity:1}
80% {opacity:0}
100% {opacity:0}
}

@-webkit-keyframes arrow /*Safari and Chrome*/
{
0% {opacity:0}
40% {opacity:1}
80% {opacity:0}
100% {opacity:0}
}

.arrows path.a1 {
	-webkit-animation-delay:-1s; /* Safari 和 Chrome */
	animation-delay:-1s;
}

.arrows path.a2 {
	-webkit-animation-delay:-0.5s; /* Safari 和 Chrome */
	animation-delay:-0.5s;
}

.arrows path.a3 {	
	-webkit-animation-delay:0s; /* Safari 和 Chrome */
	animation-delay:0s;
}

/* END scroll down aimation */