/* ===== CSS Variables & Dark Gaming Theme ===== */
:root {
    /* Hintergruende */
    --bg-darkest: #0a0a0f;
    --bg-dark: #12121c;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --bg-input: #16162a;

    /* Akzentfarben */
    --color-primary: #7b2ff7;
    --color-primary-glow: rgba(123, 47, 247, 0.3);
    --color-primary-hover: #9254f7;
    --color-success: #00d4aa;
    --color-success-glow: rgba(0, 212, 170, 0.3);
    --color-danger: #ff4757;
    --color-danger-glow: rgba(255, 71, 87, 0.3);
    --color-warning: #ffa502;
    --color-warning-glow: rgba(255, 165, 2, 0.3);
    --color-info: #3498db;

    /* Text */
    --text-primary: #e8e8f0;
    --text-secondary: #8888a8;
    --text-muted: #55556a;

    /* Border */
    --border-color: #2a2a40;
    --border-color-light: #3a3a55;

    /* Schriften */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;

    /* Abstufungen */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Schatten */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-primary: 0 0 20px var(--color-primary-glow);
    --shadow-glow-success: 0 0 20px var(--color-success-glow);
    --shadow-glow-danger: 0 0 20px var(--color-danger-glow);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

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

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo .logo-img {
    height: 42px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.site-logo:hover .logo-img {
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== Main ===== */
.site-main {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0.25rem 0;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-primary);
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }

/* ===== Static Page Hero ===== */
.static-page-hero {
    text-align: center;
    padding: 2rem 0 2.5rem;
}

.static-page-hero h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--text-primary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.static-page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== How-To & Impressum ===== */
.howto-page,
.impressum-page {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* ===== How-To Steps ===== */
.howto-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.howto-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

.howto-step:hover {
    border-color: var(--border-color-light);
}

.howto-step strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.howto-step p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--color-primary-glow);
}

/* ===== How-To Games ===== */
.howto-games {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.howto-game {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.howto-game:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.howto-game:first-child {
    padding-top: 0;
}

.howto-game:hover {
    background: rgba(123, 47, 247, 0.03);
}

.howto-game-icon {
    font-size: 2rem;
    min-width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.howto-game h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.howto-game p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ===== How-To OBS ===== */
.howto-obs ol {
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 2;
    margin: 0;
}

.howto-obs ol li {
    padding: 0.15rem 0;
}

.howto-obs ol li strong {
    color: var(--text-primary);
}

/* ===== Impressum ===== */
.impressum-page .card p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

.impressum-page .card h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-primary);
}

.impressum-page .card h3:first-of-type {
    margin-top: 0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color-light);
}
