/* ============================================================
   Dynamic Details – Shared Stylesheet
   Covers: reset, tokens, nav, buttons, cards, modal,
           language toggle, content, footer, responsive
   ============================================================ */

/* ── Reset ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Design Tokens ── */
:root {
    --primary:         #131515;
    --secondary:       #2a2a2a;
    --accent:          #c89a4a;
    --accent-gradient: linear-gradient(135deg, #c89a4a 0%, #f5d370 50%, #c89a4a 100%);
    --text:            #faf6f6;
    --text-dim:        #a0a0a0;
    --bg:              #131515;
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ============================================================
   Navigation
   ============================================================ */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo */
.logo {
    height: 40px;
    display: block;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.3s;
}

.logo:hover {
    filter: brightness(1.2);
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Active nav link — add class="nav-active" to the current page's link */
.nav-active {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile burger button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ============================================================
   Language Toggle
   ============================================================ */

.language-toggle {
    background: var(--secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.25rem;
    display: flex;
    gap: 0;
    position: relative;
    cursor: pointer;
}

.lang-option {
    padding: 0.4rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2;
    position: relative;
    color: var(--text-dim);
}

.lang-indicator {
    position: absolute;
    background: var(--accent-gradient);
    border-radius: 4px;
    height: calc(100% - 0.5rem);
    width: calc(50% - 0.125rem);
    top: 0.25rem;
    left: 0.25rem;
    transition: transform 0.3s ease;
    z-index: 1;
}

.language-toggle.de .lang-indicator {
    transform: translateX(calc(100% + 0.25rem));
}

.language-toggle.en .lang-option:first-child {
    color: #000;
}

.language-toggle.de .lang-option:last-child {
    color: #000;
}

/* Language content visibility */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* ============================================================
   Buttons
   ============================================================ */

/* Primary — gold gradient */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(200, 154, 74, 0.45);
}

/* Secondary — outline */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.2s;
    align-self: flex-start;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent);
}

/* ============================================================
   Gold text link (e.g. email address)
   ============================================================ */

.gold-link {
    display: inline-block;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: filter 0.2s;
}

.gold-link:hover {
    filter: brightness(1.2);
    text-decoration: underline;
}

/* ============================================================
   Cards
   ============================================================ */

.card {
    background: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.75rem;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: rgba(200, 154, 74, 0.4);
}

/* ============================================================
   Modal overlay (e.g. Discord popup)
   ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 2.25rem 2.5rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.modal p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   Content pages (Legal Notice, Privacy Policy, etc.)
   ============================================================ */

.content {
    max-width: 900px;
    margin: 120px auto 80px;
    padding: 2rem;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.content p {
    margin-bottom: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.content ul {
    list-style: none;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.content li {
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

.content strong {
    color: var(--text);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    padding: 2rem;
    background: var(--bg);
    text-align: center;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 1rem;
    transition: all 0.3s;
}

.footer a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 640px) {
    .top-nav {
        padding: 0.75rem 1.5rem;
    }

    .logo {
        height: 28px;
        display: flex;
        align-items: center;
    }
 
    .logo img {
        max-height: 28px;
    }

    .content {
        margin: 100px auto 60px;
        padding: 1.5rem;
    }

    .content h1 {
        font-size: 2rem;
    }
}