/* ============================================================
   Lethe – Website Stylesheet  |  Darkmode (App-Farben)
   ============================================================ */
:root {
    --bg:         #07131F;
    --surface:    #0F1E35;
    --surface2:   #152840;
    --surface3:   #1A3050;
    --primary:    #A8A800;
    --primary-dk: #7A7A00;
    --primary-lt: #D4D400;
    --text:       rgba(255,255,255,0.92);
    --text-muted: rgba(255,255,255,0.50);
    --text-dim:   rgba(255,255,255,0.28);
    --border:     rgba(255,255,255,0.08);
    --radius:     12px;
    --radius-lg:  20px;
    --shadow:     0 4px 24px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-lt); }

img { max-width: 100%; height: auto; }

/* ─── Navbar ─────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 24px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin-left: auto;
    flex-wrap: wrap;
}

.nav-links a {
    display: block;
    padding: 6px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.nav-links a.active { color: var(--primary); }

.btn-download {
    background: var(--primary) !important;
    color: #000 !important;
    font-weight: 600 !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    transition: background .2s !important;
}
.btn-download:hover { background: var(--primary-lt) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .3s;
}

/* ─── Main Content ───────────────────────────────── */
.main-content {
    min-height: calc(100vh - 64px - 200px);
}

/* ─── Hero ───────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 80px 24px 64px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168,168,0,0.12) 0%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168,168,0,0.12);
    border: 1px solid rgba(168,168,0,0.3);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 24px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}
.btn-primary:hover {
    background: var(--primary-lt);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168,168,0,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: var(--surface2);
    border-color: rgba(255,255,255,0.15);
    color: var(--text);
}

/* ─── Section ────────────────────────────────────── */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-sub {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 14px;
}

/* ─── Cards ──────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color .2s, transform .2s;
}

.card:hover {
    border-color: rgba(168,168,0,0.25);
    transform: translateY(-2px);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* ─── News / Changelog ───────────────────────────── */
.news-item {
    display: flex;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color .2s;
}

.news-item:hover { border-color: rgba(168,168,0,0.25); }

.news-version {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}

.version-badge {
    display: inline-block;
    background: var(--primary);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: .03em;
    margin-bottom: 6px;
}

.news-date {
    font-size: 11px;
    color: var(--text-muted);
}

.news-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-body ul li::before {
    content: '+ ';
    color: var(--primary);
    font-weight: 700;
}

.news-body ul li {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Feature Icons ──────────────────────────────── */
.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── Download Card ──────────────────────────────── */
.download-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168,168,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.download-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.download-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.download-meta { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }

/* ─── Creator / Auth ─────────────────────────────── */
.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 32px 24px;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    font-size: 40px;
    margin-bottom: 8px;
}

.auth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 28px;
}

/* ─── Form Elements ──────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 14px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168,168,0,0.15);
}

.btn-block { width: 100%; justify-content: center; margin-top: 8px; }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(220,38,38,0.12);
    border: 1px solid rgba(220,38,38,0.3);
    color: #f87171;
}

.alert-success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
}

/* ─── Dashboard ──────────────────────────────────── */
.dashboard-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.invite-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.invite-url {
    flex: 1;
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-all;
    font-family: monospace;
}

/* ─── Anleitungen ────────────────────────────────── */
.guide-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 14px;
}

.step-content code {
    background: var(--surface2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary);
    font-family: monospace;
}

/* ─── Invite Landing ─────────────────────────────── */
.invite-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 32px 24px;
}

.invite-avatar {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    background: var(--surface2);
    margin: 0 auto 20px;
    overflow: hidden;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.invite-avatar img { width: 100%; height: 100%; object-fit: cover; }

.invite-name { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.invite-sub { color: var(--text-muted); margin-bottom: 32px; font-size: 14px; }

.invite-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 320px;
}

.invite-actions .btn { width: 100%; justify-content: center; }

/* ─── Tag / Badge ────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.tag-new { background: rgba(168,168,0,0.15); color: var(--primary); border: 1px solid rgba(168,168,0,0.3); }
.tag-fix { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.tag-improve { background: rgba(168,85,247,0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }

/* ─── Page Header ────────────────────────────────── */
.page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 48px 24px 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto;
}

/* ─── Accordion (Anleitungen) ────────────────────── */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--surface);
    font-weight: 500;
    user-select: none;
    transition: background .15s;
}

.accordion-header:hover { background: var(--surface2); }

.accordion-arrow {
    font-size: 18px;
    transition: transform .25s;
    color: var(--primary);
}

.accordion-body {
    display: none;
    padding: 0 20px 20px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 14px;
}

.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-item.open .accordion-body { display: block; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-inner { position: relative; }

    .news-item { flex-direction: column; gap: 12px; }
    .news-version { width: auto; }

    .hero { padding: 48px 24px 40px; }
    .auth-card { padding: 28px 20px; }

    .guide-step { flex-direction: column; gap: 12px; }
}
