* {
    line-height: 1.5;
    box-sizing: border-box;
}

body {
    background-color: var(--l-primary-color);
    color: var(--l-secondary-color);
    /* overflow-x: hidden; */
    scroll-behavior: smooth;
}

*[screen="mobile"] {
    display: none;
}

img {
    max-width: 100%;
}

a {
    color: var(--l-secondary-color);
}

#menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#menu ul {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    list-style-type: none;
    gap: 2rem;
    font-size: var(--ft-heading-3);
    letter-spacing: 0.1em;
    align-items: center;
}

#menu a {
    color: var(--l-secondary-color);
    text-decoration: none;
}

#menu a:hover {
    color: var(--l-accent-color);
}

#menu .logo {
    width: 100px;
}

#menu .menu {
    filter: invert(1);
    cursor: pointer;
}

.sel-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--l-primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    justify-items: center;
    opacity: 0;
    pointer-events: none;
    font-family: "acumin-pro-extra-condensed", sans-serif;
    letter-spacing: 0.1em;
    transition: all 0.2s ease-in-out;
    z-index: 10000;
}

.sel-menu[active="true"] {
    opacity: 1;
    pointer-events: all;
}

.sel-menu ul {
    text-align: center;
    margin: auto;
    line-height: 2;
    font-size: 2rem;
}

.sel-menu a {
    color: var(--l-secondary-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.sel-menu li:hover a {
    color: var(--l-accent-color);
}

.sel-menu li::after {
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background-color: var(--l-accent-color);
    transition: all 0.2s ease-in-out;
}

.sel-menu li:hover::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--l-accent-color);
}

#hero > p {
    margin: 0rem 0 2rem 0;
}

#hero .gallery {
    display: grid;
    /* flex-direction: row; */
    /* justify-content: space-between; */
    /* grid-template-columns: repeat(4, 1fr); */
    grid-template-columns: 1fr minmax(auto, 50%) 1fr;
    margin-bottom: 4rem;
    gap: 2rem;
    box-sizing: border-box;
}

#hero .gallery .grid-span-2 {
    grid-column: span 2;
}

#eventcard {
    display: grid;
    place-items: center;
    text-decoration: none;
    /* background-color: var(--l-accent-color); */
    /* linear gradient background */
    background-image: url("../img/img4.jpg");
    background-size: cover;
    text-align: center;
}

#card {
    filter: url(#noise);
}

#eventcard * {
    color: var(--l-secondary-color);
}

#eventcard .htl-halbzeit-logo {
    width: 12rem;
    margin-bottom: 2rem;
}

#eventcard:hover #card {
    animation: pulse 800ms ease-in-out;
}

@keyframes pulse {
    from,
    to {
        scale: 1;
    }
    50% {
        scale: 1.08;
    }
}

/* #hero .gallery>a:hover {
    filter: brightness(2) contrast(0.9) saturate(1.2);
} */

#hero .gallery > * {
    /* aspect-ratio: 3/4; */
    height: 30rem;
}

#hero .gallery > * {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--l-secondary-color);
    transition: all 0.2s ease-in-out;
}

#hero .gallery > * > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#team h1 {
    margin: 2rem 0;
}

#team .wrapper {
    /* display: flex; */
    /* flex-direction: column; */
    transition: all 0.2s ease-in-out;
    /* width: max-content; */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

#team p {
    line-height: 1.5;
}

header {
    padding: 2rem 4rem;
    position: sticky;
    top: 0;
    left: 0;
    background-color: var(--l-primary-color);
    z-index: 1000;
}

header > a:hover {
    filter: invert(1) invert(17%) sepia(85%) saturate(5192%) hue-rotate(335deg)
        brightness(91%) contrast(98%);
}

section {
    /* height: 100vh; */
    padding: 4rem;
    box-sizing: border-box;
}

section:not(#hero) {
    max-width: 100ch;
    margin-inline: auto;
}

.name-card {
    /* padding: 2rem; */
    /* margin: 1rem 0; */
    transition: 0.2s all ease-in-out;
    /* border: 2px solid var(--l-secondary-color) */
}

.name-card-exp {
    opacity: 0;
    max-height: 0;
    /* transform: scaleY(0); */
    transition: 0.2s all ease-in-out;
    opacity: 1;
    max-height: 500px;
}

.name-card:hover .name-card-exp {
    opacity: 1;
    max-height: 500px;
    /* transform: scaleY(1);   */
    /* transition: 0.2s all ease-in-out; */
}

#events a {
    text-decoration: none;
    color: var(--l-secondary-color);
    flex: 0 0 auto;
}

#events .wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#events > *,
#tickets > * {
    margin: 1rem 0;
}

.card {
    display: grid;
    grid-template-areas: "stack";
    place-items: center;
    flex: 0 0 auto;
    min-height: 400px;
    text-align: center;
    background-color: hsl(0, 0%, 0%, 0.6);
    margin: 0;
}

#events .wrapper a {
    background-size: cover;
    background-repeat: no-repeat;
    border: 2px solid var(--l-secondary-color);
}

/* #events .wrapper a:nth-child(1) {
    background-image: url(../img/img6.jpg);
} */

#events .wrapper a:nth-child(1) {
    background-image: url(../img/img9.jpg);
}

#events .wrapper a:nth-child(2) {
    background-image: url(../img/img2.jpg);
}

#events .wrapper a:nth-child(3) {
    background-image: url(../img/img3.jpg);
}

.card > * {
    grid-area: stack;
}

.card .filter {
    width: inherit;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.5);
}

#tickets a {
    color: var(--l-accent-color);
    transition: all 0.2s ease-in-out;
}

#tickets p {
    max-width: 60ch;
}

#tickets a:hover {
    color: var(--l-secondary-color);
}

#tickets form {
    display: grid;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    max-width: 70ch;
}

#tickets .form-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    flex-wrap: wrap;
}

#tickets input[type="email"] {
    width: 31ch;
}

#tickets input[type="checkbox"] {
    height: 1rem;
    width: 1rem;
    accent-color: var(--l-accent-color);
    flex: 0 0 auto;
}

#tickets .checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#tickets input,
#tickets button {
    border: 2px solid var(--l-secondary-color);
    background-color: var(--l-primary-color);
    color: var(--l-secondary-color);
    padding: 0.8rem;
    transition: all 0.2s ease-in-out;
}

#tickets button {
    display: inline-flex;
    align-items: center;
}

#tickets button > span {
    margin-right: 0.8rem;
}

#tickets input:focus,
#tickets input:active {
    outline: none;
    border-color: var(--l-accent-color);
}

#tickets button:hover,
#tickets button:focus,
#tickets button:active {
    background-color: var(--l-accent-color);
    border-color: var(--l-accent-color);
    color: var(--l-secondary-color);
    cursor: pointer;
}

#tickets ol {
    list-style-type: decimal;
    margin-inline-start: 1.1rem;
}

#tickets a:has(span),
#tickets a:has(img) {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

#tickets a > span,
#tickets a > img {
    height: 1.5rem;
    width: 1.5rem;
    font-size: 1.5rem;
    color: var(--l-secondary-color);
}

#tickets .form-wrapper-reserve {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#tickets .form-wrapper-reserve input[type="email"] {
    width: unset;
}

.detail-page #hero {
    text-align: center;
}

.detail-page #hero .ft-heading-1 {
    font-size: 6rem;
    letter-spacing: 0.3ch;
    margin-bottom: 5rem;
}

.detail-page #hero h1 {
    font-size: 3rem;
    margin-top: 5rem;
}

.detail-page #hero p {
    text-align: left;
}

.detail-page #artikel p {
    margin-top: 0.8em;
}

.detail-page video {
    width: 100%;
    border: 2px solid white;
}

#event {
    display: grid;
    align-items: center;
}

#event p {
    max-width: 80ch;
}

#event .group {
    margin-block-start: 2rem;
}

#event .group .qr-code {
    width: 20rem;
}

.btn {
    padding: 0.8rem 1rem;
    background-color: var(--l-accent-color);
    color: var(--l-secondary-color);
    transition: all 0.2s ease-in-out;
    display: block;
    width: fit-content;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50ch, 1fr));
    gap: 2rem;
}

.chart {
    padding: 2rem;
    border: 2px solid var(--l-secondary-color);
    margin-top: 1rem;
}

.chart > p {
    margin-bottom: 2rem;
    text-align: center;
}

.chart-1 .pie-chart {
    background: radial-gradient(
            circle closest-side,
            var(--l-primary-color) 0,
            var(--l-primary-color) 75%,
            transparent 75%,
            transparent 100%,
            var(--l-primary-color) 0
        ),
        conic-gradient(
            var(--l-accent-color-dark) 0,
            var(--l-accent-color-dark) var(--gradient-1),
            var(--l-accent-color) 0,
            var(--l-accent-color) 100%
        );
    position: relative;
    min-height: 350px;
}

.chart-1 .pie-chart figcaption {
    position: absolute;
    bottom: 1em;
    right: 1em;
    font-size: smaller;
    text-align: right;
}

.chart-1 .pie-chart .color-icon:after {
    display: inline-block;
    content: "";
    width: 0.8em;
    height: 0.8em;
    margin-left: 0.4em;
    height: 0.8em;
    border-radius: 0.2em;
    background: currentColor;
}

.chart-2 .pie-chart {
    background: radial-gradient(
            circle closest-side,
            var(--l-primary-color) 0,
            var(--l-primary-color) 75%,
            transparent 75%,
            transparent 100%,
            var(--l-primary-color) 0
        ),
        conic-gradient(
            var(--l-accent-color-dark) 0,
            var(--l-accent-color-dark) var(--gradient-2),
            var(--l-accent-color) 0,
            var(--l-accent-color) 100%
        );
    position: relative;
    min-height: 350px;
}

.chart-1-anim {
    animation: slidein-83-3 1s ease-in-out forwards;
}

@property --gradient-1 {
    syntax: "<percentage>";
    initial-value: 100%;
    inherits: false;
}

@keyframes slidein-83-3 {
    100% {
        --gradient-1: 16.7%;
    }
}

.chart-2-anim {
    animation: slidein-35 1s ease-in-out forwards;
}

@property --gradient-2 {
    syntax: "<percentage>";
    initial-value: 100%;
    inherits: false;
}

@keyframes slidein-35 {
    100% {
        --gradient-2: 28%;
    }
}

.chart-2 .pie-chart figcaption {
    position: absolute;
    bottom: 1em;
    right: 1em;
    font-size: smaller;
    text-align: right;
}

.chart-2 .pie-chart .color-icon:after {
    display: inline-block;
    content: "";
    width: 0.8em;
    height: 0.8em;
    margin-left: 0.4em;
    height: 0.8em;
    border-radius: 0.2em;
    background: currentColor;
}

.charts .center-title {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 6rem;
    transform: translate(-50%, -50%);
    font-weight: 500;
}

#events-charts a {
    text-align: center;
    display: block;
    margin-top: 2rem;
}

.size-bizcard {
    aspect-ratio: 17/11;
}

.size-bizcard > img {
    display: block;
}

.aftermovie {
    width: 100%;
    border: 2px solid var(--l-secondary-color);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.price-card__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20ch, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.price-card {
    border: 2px solid var(--l-secondary-color);
    background-color: var(--l-primary-color);
    border-radius: 10px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-width: 30ch;
    gap: 1rem;
    align-items: center;
    justify-items: center;
}

.price-card > * {
    margin: 0;
}

.price-card > * img {
    width: 5rem;
    display: block;
}

.price-card > *:last-child {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-items: center;
}

.price-card > *:first-child {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-items: center;
}

.price-card a {
    color: var(--l-primary-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    padding: 0.5rem 1rem;
    background-color: var(--l-secondary-color);
    border-radius: 5px;
}

.price-card a:hover {
    background-color: var(--l-accent-color);
}

.price-card .price {
    margin-top: 1rem;
    line-height: 1;
    font-family: yapari, sans-serif;
}

.price-card .price-old {
    text-decoration: line-through;
    color: var(--l-accent-color-dark);
}

.price-card .chip {
    padding: 0 0.5rem;
    background-color: var(--l-accent-color);
    border-radius: 50rem;
    border: 2px solid var(--l-accent-color);
    color: var(--l-accent-color-2);
}

@media screen and (max-width: 768px) {
    *[screen="mobile"] {
        display: unset;
    }

    *[screen="desktop"] {
        display: none;
    }

    #team .wrapper {
        width: 100%;
        grid-template-columns: 1fr;
    }

    #hero {
        margin: 1rem;
    }

    #hero .gallery {
        flex-direction: column;
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    #hero .gallery img {
        width: 100%;
        box-sizing: border-box;
    }

    section {
        margin: 1rem;
        padding: 0;
    }

    section:not(#hero) {
        max-width: 100%;
        padding: 1rem;
        margin: 0;
    }

    header {
        padding: 1rem;
    }

    #menu ul {
        display: none;
    }

    .charts {
        grid-template-columns: 1fr;
    }

    #hero #card {
        padding: 2rem;
    }

    #hero #card > img {
        height: 6rem;
        margin: 0;
    }

    #hero .gallery div:not(#card) {
        height: 10rem;
    }

    .detail-page #hero .ft-heading-1 {
        font-size: 3rem;
    }

    .detail-page #hero h1 {
        font-size: 2rem;
    }

    #event {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    #hero .gallery .grid-span-2 {
        grid-column: span 1;
    }

    #tickets input:not([type="checkbox"]),
    #tickets button {
        width: 100%;
    }

    #tickets .form-wrapper-reserve {
        grid-template-columns: 1fr;
    }

    .price-card {
        grid-template-columns: 1fr;
        min-width: unset;
    }
}
