html {
    margin: 0;
    padding: 0;
	color: var(--color);
	font-size: var(--size);
	font-family: Garamond, serif;
	display: flex;
	box-sizing: border-box;

	--gap: 20px;
	--gapBig: 40px;
	--color: rgb(12, 12, 12);
	--colorAccent: rgb(80, 80, 80);
    --colorWhite: rgb(244, 244, 244);

	--minitextsize: 16px;
	--size: 20px;
	--subheadersize: 1.563rem;
	--headersize: 2.441rem;
	--hugeheadersize: 3.815rem;
	--highlight: rgb(228, 100, 32);
	--highlightAccent: rgb(152, 44, 136);
    background-color: rgb(12, 12, 12);
    background-image: url(img/background.jpg);
    background-size: contain;
    overflow-x: hidden;
}
body {
    margin: 0;
    padding: 0;
    width: 100vw;
}

#startPage {
    width: 100%;
    background: var(--color);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20vh 0;
    box-sizing: content-box;
    background-image: url(img/sternenhimmel.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    overflow-x: hidden;
}
#startPage h {
    font-size: var(--hugeheadersize);
    color: rgb(147, 173, 125);
    font-weight: bold;
	letter-spacing: -5%;
}

header {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    z-index: 20;
    position: absolute;
    bottom: 0;
}
header img {
    height: 200px;
}
.dach-window {
    width: auto;
}
.dach-schornstein {
    width: auto;
}
.dach {
    width: 100%;
}

#contentBox {
    position: fixed;
    width: 100%;
    top: -200vh;
    z-index: 100;
    transition: .8s;
    margin: 0;
}
#closeBtn {
    height: var(--hugeheadersize);
    width: auto;
    cursor: pointer;
    text-decoration: none;
    position: absolute;
    top: var(--gapBig);
    right: var(--gapBig);
    transition: .2s;
}
#closeBtn:hover {
    transform: scale(1.1);
    transition: .2s;
}
.content {
    width: 100%;
    height: 100vh;
    background: rgb(224, 240, 252);
    top: 0;
    padding: var(--gapBig);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.contentText {
    display: none;
    color: var(--color);
    width: 100%;
    text-align: center;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--gapBig)
}
.contentText h {
    font-size: var(--hugeheadersize);
    font-weight: bold;
	letter-spacing: -5%;
}
.subheader {
    font-size: var(--subheadersize);
    color: var(--colorAccent);
	letter-spacing: -2%;
    margin-top: 0;
}
.veranstaltungBorder {
    width: 40vw;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}
.infoLayout {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--gap);
}
.infoLayout img {
    height: var(--headersize);
    width: auto;
}
.infoLayout figcaption {
    width: calc(var(--headersize)*3);
    text-align: center;
}

.goalLink {
    text-decoration: none;
    color: var(--highlightAccent);
}
.goalLink:hover {
    text-decoration: underline;
}
.contentBottom {
    width: 100%;
    height: auto;
    transform: translateY(-2px);
}

#container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
    justify-content: center;
    width: 100%;
    gap: calc(var(--gapBig)*2) var(--gapBig);
    padding: var(--gapBig);
    margin: var(--gapBig) 0;
    box-sizing: border-box;
}
#background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
}
@property --y {
    syntax: "<percentage>";
    inherits: false;
    initial-value: -1%;
}
.snowfall, .snowfall::before, .snowfall::after {
    position: absolute;
    inset: 0;
    content: '';
    overflow: hidden;
    pointer-events: none;
    background-image:
        radial-gradient(
            circle at 5% calc(var(--y) * 1.5),
            #fff 3px, transparent 6px
        ),
        radial-gradient(
            circle at 65% calc(var(--y) * 1.3),
            #fff 2px, transparent 4px
        );
}
.snowfall {
    animation: snowfall 20s linear infinite;
    background-size: 65% 100%;
}
.snowfall::before {
    animation:
        snowfall 27s linear infinite,
        wind 27s ease-in-out infinite;
    inset: -4rem 50px 0;
    opacity: 0.7;
    background-size: 45% 100%;
}
.snowfall::after {
    animation:
        snowfall 37s linear infinite,
        wind 47s ease-in-out infinite;
    inset: -8rem 80px 0;
    opacity: 0.8;
    background-size: 32% 100%;
}
@keyframes snowfall {
    0% {
        --y: -1%;
    }
    100% {
        --y: 101%;
    }
}
@keyframes wind {
    50% {
        translate: 200px;
    }
}
@keyframes fadeIn {
    0% {
        top: -200vh;
    }
    100% {
        top: 0;
    }
}
.overlayActive {
    position: fixed;
    width: 100%;
    top: var(--scroll-top);
}

@media (max-aspect-ratio: 1/1) {
    .veranstaltungBorder {
        width: 90vw;
        margin: 60px 0;
    }
    .contentText {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 10vh;
        align-items: center;
        overflow-y: scroll;
        height: 100vh;
        box-sizing: border-box;
        padding-top: 20vh;
    }
	html {
		--size: 32px;
    }
    #container {
        grid-template-columns: repeat(auto-fit, minmax(352px, 60vw));
    }
    #startPage h {
        font-size: var(--headersize);
    }
    #contentBox {
        overflow-y: scroll;
    }
}


.tuerchen {
    height: auto;
    aspect-ratio: 1 / 1;
    font-size: var(--hugeheadersize);
    cursor: pointer;
    text-decoration: none;
    color: var(--colorWhite);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fensterbank {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
}
.windowContent {
    height: 90%;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(img/fensterrahmen.png);
    background-position: center;
    background-size: contain;
    background-color: var(--color);
    transition: .2s;
    position: relative;
}
.tuerchen:hover .windowContent {
    background-color: rgb(252, 212, 80);
    transition: .2s;
}
/*.tuerchen:hover .windowContent p {
    opacity: 0;
    transition: .2s;
}*/
.windowContent p {
    text-shadow: 0 0 4px gray;
}
mark {
    background: none;
    color: red;
}
