/* Fonts */

@font-face {
    font-display: swap;
    font-family: 'Protest Riot';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/protest-riot-v2-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/poppins-v24-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/poppins-v24-latin-700.woff2') format('woff2');
}

/* Root */

:root {
    --primary: #284C43;
    --primarydarker: #1f3a33;
    --secondary: #FFC341;
    --secondarydarker: #dba736;
    --black: #252525;
    --black_50: #25252550;
    --white: #fff;
    --white_50: #ffffff50;
    --grey: #f0f0f0;
}

/* GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
}

html {
    scroll-behavior: smooth;
    font-size: 10px;
}

body {
    background-color: var(--white);
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--black);
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

.container {
    max-width: 128rem;
    padding: 0 2rem;
    margin: 0 auto;
}

.container_s {
    max-width: 94rem;
    margin: 0 auto;
}

.container_nav {
    max-width: 128rem;
    margin: 0 auto;
}

img,
svg,
video {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 400;
}

p {
    max-width: 75ch;
}

/* Root Classes */

.bold {
    font-weight: 700;
}

.w100 {
    width: 100%;
}

.ff_base {
    font-family: 'Poppins';
}

.ff_accent {
    font-family: 'Protest Riot';
}

.fc_primary {
    color: var(--primary);
}

.fc_secondary {
    color: var(--secondary);
}

.fc_white {
    color: var(--white);
}

.bg_primary {
    background-color: var(--primary);
}

.bg_secondary {
    background-color: var(--secondary);
}

.bg_black {
    background-color: var(--black);
}

.bg_white {
    background-color: var(--white);
}

.bg_grey {
    background-color: var(--grey);
}

.fs_xxl {
    font-size: 3.9rem;
    line-height: 1;
}

.fs_xl {
    font-size: 3.1rem;
    line-height: 1;
}

.fs_l {
    font-size: 2rem;
}

.fs_m {
    font-size: 1.6rem;
    line-height: 1.2;
}

.fs_s {
    font-size: 1.2rem;
}

/* GRID */

.grid {
    display: grid;
    width: 100%;
    align-items: center;
}

.grid.auto {
    grid-template-columns: repeat(auto-fill,
            minmax(min(var(--min-column-width), 100%), 1fr));
    gap: 2rem;
}

.max-col-2 {
    --min-column-width: 500px;
}

.max-col-3 {
    --min-column-width: 350px;
}

.max-col-4 {
    --min-column-width: 250px;
}

/* BUTTONS */

.btn_main,
.btn_accent {
    padding: 0 2.5rem;
    height: 4.2rem;
    display: inline-flex;
    align-items: center;
    border-radius: 1rem;
    color: var(--white);
    font-size: 1.6rem;
    transition: background-color .15s ease;
}

.btn_main {
    background-color: var(--primary);
    color: var(--white);

    &:hover {
        background-color: var(--primarydarker);
    }
}

.btn_accent {
    background-color: var(--secondary);
    color: var(--black);

    &:hover {
        background-color: var(--secondarydarker);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem;
    border-radius: 1rem;
    font-size: 1.2rem;
}

.login_btn {

    path,
    rect {
        transition: fill .3s ease;
    }

    &:hover rect {
        fill: var(--primary);
    }

    &:hover path {
        fill: var(--white);
    }
}

.hamburger_btn {
    cursor: pointer;
    user-select: none;

    rect {
        transition: fill .3s ease;
    }

    &:hover rect:nth-child(1) {
        fill: var(--primary);
    }

    &:hover rect:nth-child(n+2) {
        fill: var(--white);
    }
}

/* NAVIGATION */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 2rem;
        background: var(--white);
        color: var(--primary);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    }

    .nav_buttons {
        display: flex;
        align-items: center;
        gap: 1rem;

        .btn_main {
            display: none;
        }
    }

    .nav_group {
        width: 100%;
        background: var(--white);
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2rem;
        z-index: 2000;
        transform-origin: top;
        transform: translateY(-10px) scaleY(0.96);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;

        li {
            list-style: none;
        }
    }

    .nav_group[popover] {
        position: fixed;
        top: 8.2rem;
        left: 0;
        right: 0;
        border: none;
        outline: none;
        margin: 0;
        box-shadow: none;
    }

    .nav_group:popover-open {
        opacity: 1;
        transform: translateY(0) scaleY(1);
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s, 0s, 0s;
    }
}

/* FOOTER */

footer {

    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;

    .container {
        position: relative;

        .footer_group {
            display: flex;
            flex-direction: column;
            gap: 2rem;

            .footer_logo {
                width: 9rem;
            }

            .footer_info {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
            }
        }

        .footer_nav {
            display: flex;
            flex-direction: column;
            gap: 2rem;

            .footer_nav_list {
                display: flex;
                flex-direction: column;
                gap: 1rem;
                list-style-type: none;
            }
        }

        .footer_legal {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        h3 {
            font-size: 2rem;
        }
    }

    .grid {
        align-items: flex-start;
    }

    .backtotop {
        position: absolute;
        right: 2rem;
        bottom: 0;
        z-index: 1;
    }

    .last_bar {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: .5rem;
    }
}

/* ALL SECTIONS */

section {
    scroll-margin-top: 8rem;
    padding: 4rem 0;


    &:first-child {
        padding: 0;
    }

    .container {
        display: flex;
        flex-direction: column;
        gap: 4rem;
        align-items: flex-start;
    }
}

/* HERO */

#hero {
    position: relative;
    z-index: 0;
    background: #000000 url("assets/images/hero_img.jpg") no-repeat center 30% / cover;

    h1 {
        line-height: 1;
    }

    .container {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        min-height: 100vh;

        img {
            width: 9.4rem;
        }
    }

    &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,
                rgba(0, 0, 0, 0.45) 0%,
                rgba(0, 0, 0, 0.75) 100%);
        z-index: -1;
    }

    .scroll_down {
        position: absolute;
        bottom: 4rem;
        left: 50%;
        transform: translate(-50%);
        z-index: 1;

        img {
            width: 2rem;
        }
    }
}


/* WELCOME EXCLUSIVE */

#welcome {
    background: url("assets/images/welcome_bg.png") no-repeat center center / cover;

    .welcome_first {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .welcome_info {
        border-radius: 1rem;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;

        .fs_m {
            font-size: 2rem;
        }
    }
}


/* INTRO */

#intro {
    background: url("assets/images/intro_bg.png") no-repeat center center / cover;

    img {
        order: -1;
    }

    .intro_info {
        border-radius: 1rem;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
}


/* VERSAMMLUNG & TAGUNG */

#versammlung {
    --timeline-line: var(--white_50);
    background: #000000 url("assets/images/versammlung_bg.png") no-repeat center center / cover;
}

#tagung {
    --timeline-line: var(--black_50);
    background: url("assets/images/tagung_bg.png") no-repeat center center / cover;
}

.time_grid {
    display: grid;
    gap: 4rem;
    max-width: 94rem;
    margin: auto;

    .time_icon {
        position: relative;
        margin-left: 6rem;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 2rem;

        p:first-child {
            border-radius: 5rem;
            padding: .5rem 1rem;
            font-size: 1.2rem;
        }

        .time_title {
            font-size: 2rem;
            line-height: 1;
        }

        img {
            position: absolute;
            left: -6rem;
        }

        &::before {
            content: '';
            height: 100%;
            background-color: var(--timeline-line);
            width: .1rem;
            position: absolute;
            top: 0;
            left: 2rem;
            margin-left: -6rem;
        }
    }
}

.versammlung_top,
.tagung_top,
.versammlung_headline,
.versammlung_dates_group,
.tagung_dates_group,
.versammlung_dates,
.tagung_dates {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.versammlung_dates,
.tagung_dates {
    align-items: center;
    flex-direction: row;
}

/* CARDS */

.card_group {
    display: flex;
    flex-direction: column;
    border-radius: 2rem;
    overflow: hidden;
    height: 100%;

    ul {
        margin-left: 4rem;
    }

    img {
        object-position: center;
        object-fit: cover;
        max-height: 35rem;
    }

    .card_text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 2rem;

        .card_headline {
            font-size: 2rem;
        }
    }
}

/* ANMELDUNG */

#anmeldung {
    background: #ffffff url("assets/images/anmeldung_bg.png") no-repeat center center / cover;
}

.form_head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;

    .form_location {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

.form_main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 2rem;

    .form_input {
        padding: 1rem 1.5rem;
        border: .1rem solid var(--black_50);
        border-radius: 1rem;
        font-size: 1.6rem;
        width: 100%;
    }

    .form_field {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        width: 100%;
    }

    .form_row {
        display: flex;
        align-items: flex-start;
        width: 100%;
        gap: 1rem;

        .form_field {
            flex: 1;
            min-width: 0;
        }
    }

    .form_group {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        .form_option {
            display: flex;
            align-items: center;
            gap: 1rem;

            .form_check,
            .form_radio {
                width: 2.4rem;
                height: 2.4rem;
                margin: 0;
                padding: 0;
                border: .1rem solid var(--black_50);
                background: var(--white);
                display: grid;
                place-items: center;
                cursor: pointer;
                appearance: none;

                &::after {
                    content: "";
                    width: 1.4rem;
                    height: 1.4rem;
                }

                &:checked::after {
                    background: var(--primary);
                }
            }

            .form_check {
                border-radius: .4rem;

                &::after {
                    border-radius: .25rem;
                }
            }

            .form_radio {
                border-radius: 50%;

                &::after {
                    border-radius: 50%;
                }
            }
        }
    }
}

/* EXCLUSIVE */

.exclusive {
    display: none !important;
}

.logout_btn {
    display: none;
}

body.is-active .login_btn {
    display: none;
}

body.is-active .logout_btn {
    display: inline-flex;
}

.login_error {
    display: none;
}

.login_close {
    position: absolute;
    background-color: var(--white);
    height: 4.2rem;
    width: 4.2rem;
    font-size: 2rem;
    right: 2rem;
    top: 2rem;
    border-radius: 1rem;
}

.login_form {
    width: 100%;

    label {
        display: inline-flex;
    }
}

.login_media {
    width: 100%;
    height: 25rem;
    background: url("assets/images/login_img.jpg") no-repeat center center / cover;
}

.login_popover {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 100%;
    max-width: 35rem;
    border: 0;
    text-align: center;
    border-radius: 2rem;

    &::backdrop {
        background: #00000090;
    }

    .btn_accent {
        display: block;
        margin-bottom: 2rem;
    }
}

.login_form {
    display: flex;
    flex-direction: column;

    label {
        margin-bottom: .5rem;
    }

    .login_input {
        margin-bottom: 2rem;
    }
}

.login_title {
    font-size: 3.9rem;
    margin-bottom: 2rem;
}

.login_panel {
    padding: 2rem;
}

.login_input {
    padding: 1rem 1.5rem;
    font-size: 1.6rem;
    border-radius: 1rem;
    border: none;
}

.login_main {
    display: flex;
    flex-direction: column;
}


/* DESKTOP */

@media (min-width: 1280px) {

    .login_panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 8rem;
    }

    .login_main {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .login_media,
    .login_panel {
        flex: 1 1 50%;
        width: 50%;
    }

    .login_media {
        height: auto;
        min-height: 70rem;
    }

    .login_popover {
        max-width: 124rem;
    }

    .time_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container_nav {
        padding: 0 2rem;
    }

    .fs_xxl {
        font-size: 8rem;
    }

    .fs_xl {
        font-size: 6.1rem;
    }

    .fs_l {
        font-size: 3.6rem;
    }

    .fs_m {
        font-size: 2.7rem;
    }

    .btn_main,
    .btn_accent {
        padding: 0 3rem;
        height: 4.2rem;
        font-size: 1.6rem;
    }

    .badge {
        padding: 1rem;
        font-size: 1.6rem;

        img {
            width: 2.4rem;
        }
    }

    section {
        scroll-margin-top: 0rem;
        padding: 12rem 0;

        .section_bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            z-index: -1;
        }
    }

    header {
        top: 2rem;

        nav {
            border-radius: 2rem;
            gap: 2rem;

            img {
                border-radius: 1rem;
            }

            .nav_group {
                position: static;
                width: auto;
                padding: 0;
                background: transparent;
                flex-direction: row;
                align-items: center;
                gap: 2rem;
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transform: none;

                &[popover] {
                    position: static;
                }
            }

            .nav_buttons {
                gap: 2rem;

                .btn_main {
                    display: inline-flex;
                }

                .hamburger_btn {
                    display: none;
                }
            }
        }
    }

    #hero {
        .container {
            img {
                width: 15rem;
            }
        }
    }

    #intro {

        img {
            order: 1;
        }
    }
}