@font-face {
    font-family: 'Roboto';
    src: url('/fonts/roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/fonts/roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ================ GRUNDLAYOUT ================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #232323;
    font-family: 'Roboto', Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    padding-top: 16rem;
}

/* ================ NAVBAR/Logo ================ */
.navbar {
    width: 100%;
    background: #2e3236;
    box-shadow: 0 6px 32px 0 rgba(6,198,164,0.4), 0 2px 8px 0 rgba(0,0,0,0.4);
    font-size: 1.2rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    min-height: 4.5rem;
    box-sizing: border-box;
}

.logo-floating {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 0;
    height: 0;
    pointer-events: auto;
    display: block;
    text-decoration: none;
}

.logo-over-navbar {
    position: absolute;
    top: 0.2rem;
    left: 2rem;
    width: 7.5rem;
    height: 7.5rem;
    min-width: 60px;
    max-width: 160px;
    z-index: 21;
    background: transparent;
    display: block;
    transition: transform 0.18s cubic-bezier(.4,2,.6,1);
    cursor: pointer;
}

.logo-floating:hover .logo-over-navbar,
.logo-floating:focus .logo-over-navbar {
    transform: scale(1.13);
    outline: none;
}

.navbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-left: 8rem;
    padding-right: 1rem;
    height: 4.5rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 1.2em;
    transition: background 0.15s, color 0.15s;
    font-weight: 500;
    background: transparent;
    white-space: nowrap;
}
.nav-link.active,
.nav-link:focus {
    background: rgb(4,138,114);
    color: #fff;
}
.nav-link:hover:not(.disabled) {
    background: #06c6a4;
    color: #fff;
}
.nav-link.disabled {
    color: #6d7a76;
    pointer-events: none;
    background: none;
}

/* Hamburger Toggle Button - default versteckt */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    line-height: 1;
    z-index: 15;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.navbar-auth {
    gap: 0.75rem;
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.auth-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1.2em;
    border-radius: 1.2em;
    font-weight: 500;
    background: rgb(4,138,114);
    transition: background 0.15s, color 0.15s;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.auth-link:hover,
.auth-link:focus {
    background: #06c6a4;
    color: #fff;
}

/* ================ LANDING CONTENT ================ */
.landing {
    width: 100%;
    max-width: 70vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2vh;
    padding: 9rem 1rem 0 1rem;
}

.landing h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 1em 0 0.2em 0;
    letter-spacing: 0.08em;
    word-break: break-word;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #6d7a76;
    margin-bottom: 1.5vh;
}

.landing-extra {
    margin-top: 2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vh;
}

.discord-link {
    display: inline-block;
    background: #06c6a4;
    color: #232323;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.7em 1.5em;
    border-radius: 1.2em;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
    min-height: 44px;
    line-height: 1.5;
}
.discord-link:hover,
.discord-link:focus {
    background: #232323;
    color: #06c6a4;
    border: 1.5px solid #06c6a4;
}

.info {
    font-size: 1rem;
    color: #e0e0e0;
    max-width: 40em;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================ LOGIN POPUP ================ */
.login-popup {
    display: none;
    position: fixed;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(35,35,35,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
}
.login-popup.open {
    display: flex;
}
.login-popup-content {
    background: #2e3236;
    color: #fff;
    margin-top: -300px;
    border-radius: 1.2em;
    min-width: 280px;
    max-width: 90vw;
    padding: 2em;
    box-shadow: 0 0.5em 2em rgba(0,0,0,0.4);
    position: relative;
    animation: slideDownLogin 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes slideDownLogin {
    from { margin-top: -300px; opacity: 0; }
    to   { margin-top: 7vh; opacity: 1; }
}

/* ================ FOOTER ================ */
.site-footer {
    margin-top: auto;
    width: 100%;
    background: #2e3236;
    color: #ababab;
    padding: 1em 0;
    text-align: center;
    font-size: 0.97em;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.13);
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
}

.footer-links a {
    color: #06c6a4;
    text-decoration: none;
    margin: 0 0.4em;
    transition: color 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links span {
    color: #444;
    margin: 0 0.2em;
}

/* ================ REGELWERK ================ */
.regelwerk-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2em 1em;
    color: #fff;
    text-align: left;
}

.regelwerk-content ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.regelwerk-content li {
    margin-bottom: 1.5em;
    text-align: left;
    line-height: 1.6;
}

.regelwerk-content ul ul {
    margin-left: 2em;
    padding-left: 0.5em;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.regelwerk-content ul ul li {
    font-size: 0.97em;
    color: #ccc;
    margin-bottom: 0.4em;
}

.regelwerk-content h2 {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    margin: 2em 0 0.5em 0;
    text-align: left;
}

.regel-separator {
    border: none;
    height: 10px;
    margin: 2.2rem 0 2rem 0;
    width: 100%;
    background: linear-gradient(
      to right,
      rgba(6,198,164,0) 0%,
      rgba(6,198,164,0.22) 30%,
      rgba(6,198,164,0.32) 50%,
      rgba(6,198,164,0.22) 70%,
      rgba(6,198,164,0) 100%
    );
    box-shadow: 0 4px 14px 0 rgba(0,0,0,0.10);
    border-radius: 6px;
}

/* ================ RESPONSIVE: Tablet ================ */
@media (max-width: 900px) {
    .logo-over-navbar {
        width: 4.5rem;
        height: 4.5rem;
        left: 1rem;
        top: 0.3rem;
    }
    .navbar-inner {
        padding-left: 5.5rem;
        height: 4rem;
    }
    main {
    position: relative;
    z-index: 1;
        padding-top: 16rem;
    }
    .landing {
        max-width: 90vw;
    }
    .landing h1 {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }
}

/* ================ RESPONSIVE: Mobile ================ */
@media (max-width: 600px) {
    .logo-over-navbar {
        width: 3rem;
        height: 3rem;
        left: 0.7rem;
        top: 0.5rem;
    }

    .navbar {
        min-height: 3.5rem;
    }

    .navbar-inner {
        padding-left: 4rem;
        padding-right: 0.5rem;
        height: 3.5rem;
        position: relative;
    }

    /* Hamburger sichtbar */
    .navbar-toggler {
        display: flex;
    }

    /* Links versteckt, als Dropdown */
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: #2e3236;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5em 1em;
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
        z-index: 30;
    }
    .navbar-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 0.8em 1em;
        border-radius: 0.6em;
        font-size: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .navbar-auth {
    gap: 0.75rem;
        margin-left: auto;
    }

    main {
    position: relative;
    z-index: 1;
        padding-top: 5rem;
    }

    .landing {
        max-width: 95vw;
        padding: 0 0.5rem;
    }

    .landing h1 {
        font-size: 1.4rem;
        margin-top: 0.5em;
    }

    .subtitle {
        font-size: 1rem;
    }

    /* Footer stacken */
    .footer-container {
        flex-direction: column;
        gap: 0.5em;
        padding: 0.5em;
    }
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3em;
    }

    .regel-separator {
        height: 7px;
        margin: 1.2rem 0 1rem 0;
    }

    .regelwerk-content {
        padding: 1em 0.5em;
    }

    .login-popup-content {
        min-width: unset;
        width: 92vw;
        padding: 1.5em 1em;
    }
}

/* ================ RESPONSIVE: Sehr kleine Screens ================ */
@media (max-width: 360px) {
    .landing h1 {
        font-size: 1.2rem;
        letter-spacing: 0.04em;
    }
    .navbar-inner {
        padding-left: 3.5rem;
    }
    .logo-over-navbar {
        width: 2.5rem;
        height: 2.5rem;
        left: 0.5rem;
    }
}

/* ================ USER DROPDOWN ================ */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #2e3236;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    min-width: 180px;
    z-index: 50;
    overflow: hidden;
}

.user-dropdown-menu.open {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.7rem 1.2rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #06C6A4;
    color: #000;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid #444;
    margin: 0;
}
