:root {
    --primary-color: #ffd700;
    --accent-color: #ff4d4d;
    --bg-panel: rgba(28, 28, 36, 0.95);
    --text-color: #ffffff;
    --border-dark: #000000;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    /* Hintergrund für Homepage */
    background-image: url("../assets/images/background_2.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    image-rendering: pixelated;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0,0,0,0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    border-bottom: 4px solid #000;
}

.logo {
    color: var(--primary-color);
    font-size: 20px;
    text-shadow: 4px 4px 0 #000;
}

/* LOGIN FORM */
#loginForm {
    display: flex;
    gap: 10px;
}

input {
    background: #222;
    border: 2px solid #555;
    color: white;
    padding: 10px;
    font-family: 'Press Start 2P';
    font-size: 10px;
    outline: none;
}
input:focus {
    border-color: var(--primary-color);
}

/* BUTTONS */
.btn {
    background: var(--primary-color);
    border: 2px solid #fff;
    color: #000;
    padding: 10px 20px;
    font-family: 'Press Start 2P';
    font-size: 12px;
    cursor: pointer;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.1s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }

.btn-big {
    font-size: 16px;
    padding: 20px 40px;
    background: #ff8c00;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* PIXEL BOX STYLES */
.pixel-box {
    background: var(--bg-panel);
    border: 4px solid var(--border-dark);
    padding: 30px;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
    position: relative;
}
.pixel-box::after {
    content: " ";
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 4px solid rgba(255,255,255,0.1);
    pointer-events: none;
}

/* HERO SECTION */
.hero {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: rgba(0,0,0,0.8);
}
.hero h1 {
    color: var(--primary-color);
    line-height: 1.5;
    margin-bottom: 40px;
    text-shadow: 4px 4px 0 #000;
}
.hero p {
    line-height: 2;
    margin: 40px 0;
    color: #ccc;
    font-size: 14px;
}

/* FEATURES */
.features {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;
}
.features-top { margin-top: 40px; }

.feature-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.pixel-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}
.label {
    font-size: 10px;
    color: #aaa;
}

/* STATS BAR */
.stats-bar {
    grid-column: 1 / -1;
    background: #000;
    color: var(--primary-color);
    padding: 15px;
    display: flex;
    justify-content: space-around;
    border: 2px solid #fff;
    font-size: 12px;
}
.stats-bar span { color: #fff; }

/* CONTENT BOXES */
h2 {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 0;
    border-bottom: 4px solid #000;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.content-item {
    margin-bottom: 20px;
    border-bottom: 2px dashed #444;
    padding-bottom: 20px;
}
.content-item:last-child { border: none; }
.date {
    font-size: 10px;
    color: #666;
    display: block;
    margin-bottom: 10px;
}
.content-text {
    font-size: 12px;
    line-height: 1.8;
}

.content-center { grid-column: 1 / -1; }

#error-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background-color: #111;
    padding: 15px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.9);
    display: none;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

#error-message.state-error { border-color: #ff3333; color: #ff3333; box-shadow: 0 0 15px rgba(255, 50, 50, 0.4); }
#error-message.state-loading { border-color: #ffd700; color: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
#error-message.state-success { border-color: #33ff33; color: #33ff33; box-shadow: 0 0 15px rgba(50, 255, 50, 0.4); }
