/* -------------------------------------------------------------
   assets/style.css - Dark-Theme für TimoOGX.de (Hauptseite)
   Farbpalette & Grundbausteine 1:1 aus /clans/assets/style.css
   übernommen, damit Hauptseite & Clan-Portal einheitlich wirken.
   ------------------------------------------------------------- */

:root {
    --bg:            #0f1117;
    --bg-alt:        #161923;
    --card:          #1b1f2b;
    --card-hover:    #222738;
    --border:        #2a2f3f;
    --text:          #e7e9f0;
    --text-dim:      #9aa0b4;
    --accent:        #7c5cff;
    --accent-2:      #22d3ee;
    --accent-grad:   linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
    --success:       #34d399;
    --danger:        #ff5c7a;
    --gold:          #ffd166;
    --silver:        #d7dbe4;
    --bronze:        #e0a56f;
    --radius:        14px;
    --shadow:        0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 80% -10%, rgba(124,92,255,0.15), transparent),
                radial-gradient(1000px 500px at -10% 10%, rgba(34,211,238,0.10), transparent),
                var(--bg);
    color: var(--text);
    font-family: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------------- Header / Navigation ---------------- */

.site-header {
    background: rgba(22, 25, 35, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}
.brand-logo { height: 42px; width: auto; border-radius: 8px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 18px; }
.brand-tagline { font-size: 11px; color: var(--text-dim); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14.5px;
    color: var(--text-dim);
    transition: all .18s ease;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--card-hover); }
.main-nav a.active { color: #fff; background: var(--card); border: 1px solid var(--border); }

.nav-toggle {
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

/* ---------------- Layout ---------------- */

.page-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ---------------- Hero (Startseite) ---------------- */

.hero-home {
    background: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(34,211,238,0.08));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    margin: 32px 0;
    text-align: center;
}
.hero-home h1 {
    font-size: 34px;
    margin: 0 0 18px;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-home .playercount {
    color: var(--text-dim);
    font-size: 15.5px;
}
.hero-home .playercount strong { color: var(--accent-2); }
.hero-home .playercount span { color: #fff; font-weight: 700; }

.ticker {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0 0;
}
.ticker span {
    color: var(--success);
    font-size: 14px;
    display: inline-block;
    animation: scroll 25s linear infinite;
}
@keyframes scroll {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100vw); }
}

/* ---------------- Content sections ---------------- */

.content-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    margin-bottom: 28px;
}
.content-section h2 {
    margin-top: 0;
    font-size: 22px;
}
.about-text {
    color: var(--text-dim);
    font-size: 15px;
}
.about-text strong { color: var(--text); }

.screenshot-section {
    padding: 0;
    overflow: hidden;
}
.screenshot-img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
}

.discord-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    text-align: left;
}
.discord-cta img { width: 72px; height: 72px; border-radius: 16px; }
.discord-cta p { color: var(--text-dim); max-width: 420px; margin: 0; }

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rule-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
}
.rule-item h3 {
    margin: 0 0 6px;
    font-size: 15.5px;
    color: var(--accent-2);
}
.rule-item p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ---------------- Team-Seite ---------------- */

.meter-container { margin-bottom: 18px; }
.meter-container p { margin: 0 0 6px; font-size: 14px; color: var(--text-dim); }
.meter {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    height: 20px;
    overflow: hidden;
    position: relative;
}
.meter .skills {
    height: 100%;
    background: var(--accent-grad);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    border-radius: 999px;
}
.meter.ma .skills { width: 65%; }
.meter.mb .skills { width: 35%; }
.meter.mc .skills { width: 30%; }

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 20px;
}
.staff-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: transform .15s ease, border-color .15s ease;
}
.staff-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.staff-card img {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}
.staff-card h3 { margin: 0 0 8px; font-size: 15.5px; }
.staff-role {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #fff;
}

/* ---------------- Dokument-Seiten (Impressum / Datenschutz) ---------------- */

.doc-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin: 32px 0;
}
.doc-box h1 { margin-top: 0; font-size: 26px; }
.doc-box h2 { font-size: 18px; color: var(--accent-2); margin-top: 30px; }
.doc-box h3 { font-size: 15.5px; margin-top: 20px; }
.doc-box h4 { font-size: 14px; color: var(--text-dim); }
.doc-box p, .doc-box li { color: var(--text-dim); font-size: 14.5px; line-height: 1.8; }
.doc-box a { color: var(--accent-2); text-decoration: underline; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    cursor: pointer;
    transition: all .15s ease;
    margin-top: 24px;
}
.btn:hover { background: var(--card-hover); }
.btn-primary { background: var(--accent-grad); border: none; color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------------- Formulare & Meldungen (z.B. /entbannung/) ---------------- */

.flash {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14.5px;
    border: 1px solid var(--border);
}
.flash-success { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.3); color: var(--success); }
.flash-error   { background: rgba(255,92,122,0.1); border-color: rgba(255,92,122,0.3); color: var(--danger); }

.form-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 520px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-size: 13.5px; color: var(--text-dim); }
.form-hint { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }

input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 14.5px;
    width: 100%;
    outline: none;
    font-family: inherit;
    transition: border-color .15s;
}
textarea { resize: vertical; }
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus,
input[type=search]:focus, select:focus, textarea:focus { border-color: var(--accent); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-bar .btn { margin-top: 0; }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---------------- Footer ---------------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 22px 24px;
    color: var(--text-dim);
    font-size: 13px;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
.footer-inner a:hover { color: var(--text); }
.footer-dot { opacity: .5; }

/* ---------------- Responsive ---------------- */

@media (max-width: 820px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
    .header-inner.nav-open .main-nav {
        display: flex;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-alt);
        flex-direction: column;
        padding: 12px;
        border-bottom: 1px solid var(--border);
    }
    .hero-home { padding: 32px 22px; }
    .hero-home h1 { font-size: 26px; }
    .content-section { padding: 24px 20px; }
    .doc-box { padding: 24px; }
}

/* ---------------- Language switcher ---------------- */
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    border-radius: 999px;
    flex-shrink: 0;
}
.language-switcher button {
    border: 0;
    background: transparent;
    color: var(--text-dim);
    padding: 6px 9px;
    border-radius: 999px;
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}
.language-switcher button:hover { color: var(--text); background: var(--card-hover); }
.language-switcher button.active { color: #fff; background: var(--accent-grad); }
@media (max-width: 820px) {
    .language-switcher { margin-right: 52px; }
}


/* ---------------- Forum themes ---------------- */
body.theme-halloween {
    --accent: #ff7a18;
    --accent2: #a855f7;
    --accent-grad: linear-gradient(135deg, #ff7a18, #a855f7);
}
body.theme-halloween .site-header { border-bottom-color: rgba(255,122,24,.35); }
body.theme-halloween .forum-bar { box-shadow: 0 4px 28px rgba(255,122,24,.08); }
body.theme-halloween .brand-name::after { content: ' 🎃'; }

body.theme-christmas {
    --accent: #e63946;
    --accent2: #2f9e44;
    --accent-grad: linear-gradient(135deg, #e63946, #2f9e44);
}
body.theme-christmas .site-header { border-bottom-color: rgba(230,57,70,.35); }
body.theme-christmas .forum-bar { box-shadow: 0 4px 28px rgba(47,158,68,.08); }
body.theme-christmas .brand-name::after { content: ' 🎄'; }

.maintenance-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; box-sizing: border-box; }
.maintenance-box { width: min(680px, 100%); text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 48px 32px; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.maintenance-box h1 { margin: 12px 0; font-size: clamp(28px, 5vw, 42px); }
.maintenance-box p { color: var(--text-dim); line-height: 1.7; white-space: normal; margin: 0 auto 26px; max-width: 560px; }
.maintenance-icon { font-size: 48px; }
body.theme-halloween .maintenance-box { border-color: rgba(255,122,24,.35); }
body.theme-christmas .maintenance-box { border-color: rgba(230,57,70,.35); }

/* ================= Seasonal Theme Decorations ================= */
body.theme-halloween {
    background:
      radial-gradient(circle at 12% 18%, rgba(255,122,24,.10), transparent 24%),
      radial-gradient(circle at 88% 72%, rgba(139,92,246,.09), transparent 26%),
      linear-gradient(180deg, #0d0a0f 0%, #100b13 48%, #0b090d 100%);
}
body.theme-halloween::before {
    content: '🕸️     🦇          🕷️                 🦇       🕸️';
    position: fixed; top: 72px; left: 0; right: 0; z-index: 1;
    pointer-events: none; opacity: .28; font-size: 28px; letter-spacing: 24px;
    white-space: nowrap; overflow: hidden; text-align: center;
}
body.theme-halloween::after {
    content: '🎃   🎃   🎃   🎃   🎃   🎃   🎃';
    position: fixed; bottom: 8px; left: 0; right: 0; z-index: 1;
    pointer-events: none; opacity: .16; font-size: 20px; letter-spacing: 18px;
    white-space: nowrap; overflow: hidden; text-align: center;
}
body.theme-halloween .site-header {
    background: linear-gradient(180deg, rgba(24,14,25,.98), rgba(13,10,15,.96));
    border-bottom: 1px solid rgba(255,122,24,.45);
    box-shadow: 0 8px 34px rgba(255,75,0,.08);
}
body.theme-halloween .forum-bar { background: rgba(18,12,20,.96); border-color: rgba(255,122,24,.22); }
body.theme-halloween .card,
body.theme-halloween .card-box,
body.theme-halloween .maintenance-box { box-shadow: 0 14px 45px rgba(0,0,0,.32), 0 0 0 1px rgba(255,122,24,.04); }
body.theme-halloween .brand-name::after { content: ' 🎃'; }
body.theme-halloween .btn-primary,
body.theme-halloween .forum-nav a.active { background: linear-gradient(135deg,#ff7a18,#a855f7); }
body.theme-halloween .page-head h1,
body.theme-halloween .card-box h2 { text-shadow: 0 0 18px rgba(255,122,24,.18); }

body.theme-christmas {
    background:
      radial-gradient(circle at 15% 15%, rgba(255,255,255,.08), transparent 20%),
      radial-gradient(circle at 80% 35%, rgba(220,38,38,.10), transparent 24%),
      linear-gradient(180deg, #07131a 0%, #091a20 55%, #071217 100%);
}
body.theme-christmas::before {
    content: '❄   ❄      ❄           ❄    ❄        ❄          ❄     ❄';
    position: fixed; top: 70px; left: 0; right: 0; z-index: 1;
    pointer-events: none; opacity: .38; font-size: 22px; letter-spacing: 18px;
    white-space: nowrap; overflow: hidden; text-align: center;
}
body.theme-christmas::after {
    content: '✨  🔴  🟢  ✨  🔴  🟢  ✨  🔴  🟢  ✨  🔴  🟢';
    position: fixed; top: 142px; left: 0; right: 0; z-index: 1;
    pointer-events: none; opacity: .22; font-size: 15px; letter-spacing: 13px;
    white-space: nowrap; overflow: hidden; text-align: center;
}
body.theme-christmas .site-header {
    background: linear-gradient(180deg, rgba(7,25,30,.98), rgba(6,18,23,.96));
    border-bottom: 1px solid rgba(220,38,38,.40);
    box-shadow: 0 8px 34px rgba(220,38,38,.07);
}
body.theme-christmas .forum-bar { background: rgba(7,22,27,.96); border-color: rgba(47,158,68,.25); }
body.theme-christmas .card,
body.theme-christmas .card-box,
body.theme-christmas .maintenance-box { box-shadow: 0 14px 45px rgba(0,0,0,.30), 0 0 0 1px rgba(47,158,68,.05); }
body.theme-christmas .brand-name::after { content: ' 🎄'; }
body.theme-christmas .btn-primary,
body.theme-christmas .forum-nav a.active { background: linear-gradient(135deg,#dc2638,#238b45); }
body.theme-christmas .page-head h1,
body.theme-christmas .card-box h2 { text-shadow: 0 0 18px rgba(220,38,38,.16); }

@media (max-width: 700px) {
    body.theme-halloween::before, body.theme-christmas::before { font-size: 17px; letter-spacing: 8px; }
    body.theme-halloween::after, body.theme-christmas::after { font-size: 13px; letter-spacing: 6px; }
}

/* ---------------- Ostern ---------------- */
body.theme-easter {
    --accent: #f472b6;
    --accent2: #84cc16;
    --accent-grad: linear-gradient(135deg, #f472b6, #facc15 55%, #84cc16);
    background:
      radial-gradient(circle at 10% 15%, rgba(250,204,21,.10), transparent 24%),
      radial-gradient(circle at 90% 70%, rgba(244,114,182,.10), transparent 26%),
      radial-gradient(circle at 50% 100%, rgba(132,204,22,.08), transparent 30%),
      linear-gradient(180deg, #0f1214 0%, #11151a 50%, #0d1013 100%);
}
body.theme-easter::before {
    content: '🐣     🌷          🥚                 🐰       🌼';
    position: fixed; top: 72px; left: 0; right: 0; z-index: 1;
    pointer-events: none; opacity: .30; font-size: 26px; letter-spacing: 22px;
    white-space: nowrap; overflow: hidden; text-align: center;
}
body.theme-easter::after {
    content: '🥚   🌷   🐇   🌼   🥚   🌷   🐇   🌼';
    position: fixed; bottom: 8px; left: 0; right: 0; z-index: 1;
    pointer-events: none; opacity: .18; font-size: 20px; letter-spacing: 18px;
    white-space: nowrap; overflow: hidden; text-align: center;
}
body.theme-easter .site-header {
    background: linear-gradient(180deg, rgba(24,20,30,.98), rgba(14,16,20,.96));
    border-bottom: 1px solid rgba(244,114,182,.40);
    box-shadow: 0 8px 34px rgba(250,204,21,.06);
}
body.theme-easter .forum-bar { background: rgba(18,18,24,.96); border-color: rgba(132,204,22,.25); box-shadow: 0 4px 28px rgba(244,114,182,.08); }
body.theme-easter .card,
body.theme-easter .card-box,
body.theme-easter .maintenance-box { box-shadow: 0 14px 45px rgba(0,0,0,.30), 0 0 0 1px rgba(250,204,21,.05); }
body.theme-easter .maintenance-box { border-color: rgba(244,114,182,.35); }
body.theme-easter .brand-name::after { content: ' 🐣'; }
body.theme-easter .btn-primary,
body.theme-easter .forum-nav a.active { background: linear-gradient(135deg,#f472b6,#a3e635); color: #1a1a1a; }
body.theme-easter .page-head h1,
body.theme-easter .card-box h2 { text-shadow: 0 0 18px rgba(244,114,182,.18); }
@media (max-width: 700px) {
    body.theme-easter::before { font-size: 17px; letter-spacing: 8px; }
    body.theme-easter::after { font-size: 13px; letter-spacing: 6px; }
}
