/* =========================================
   1. VARIABLES & THEIMING
   ========================================= */
:root {
    /* Colors */
    --bg-body: #0f172a;        /* Main Background (Dark Blue) */
    --bg-card: #020617;        /* Card/Panel Background (Darker) */
    --bg-element: #1e293b;     /* List Items / Inputs */
    --border: #334155;         /* Borders */
    
    --text-main: #e5e7eb;      /* Primary Text */
    --text-muted: #94a3b8;     /* Secondary Text */
    
    --accent: #38bdf8;         /* Standard Link/Button Color (Blue) */
    --success: #4ade80;        /* Green */
    --danger: #f87171;         /* Red */
    --warning: #facc15;        /* Yellow */
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-y: scroll; /* Prevents horizontal shift if scrollbar appears/disappears */
}

a { text-decoration: none; color: inherit; }

/* =========================================
   3. GLOBAL LAYOUT (THE "SKELETON")
   ========================================= */

/* Main Container - ALWAYS 1100px */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 60px;
    position: relative;
}

/* Hero Banner - FIXED DIMENSIONS to prevent jumping */
.hero-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 20px 0;
    width: 100%;
    height: 180px; /* Enforces height even if image loads late */
}

.hero-banner img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Nav Placeholder - Reserviert Platz für das JS-Menü */
#nav-placeholder {
    min-height: 64px; /* Exakte Höhe der Nav-Bar */
    margin-bottom: 20px;
    width: 100%;
}

/* =========================================
   4. COMMON COMPONENTS (Cards, Text, Inputs)
   ========================================= */

/* Standard Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Typography */
h2 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #fff;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

h3 {
    margin: 15px 0 10px;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.muted {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Forms & Inputs */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.field label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

input, select {
    background: var(--bg-element);
    border: 1px solid var(--border);
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Buttons */
.btn-action {
    background: var(--accent);
    color: var(--bg-body);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.9rem;
    transition: filter 0.2s, transform 0.1s;
    text-align: center;
    display: inline-block;
}

.btn-action:hover { filter: brightness(1.1); }
.btn-action:active { transform: translateY(1px); }
.btn-action:disabled { opacity: 0.5; cursor: not-allowed; }

/* Status / Loading Messages */
.status, .loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-style: italic;
}
.error-msg { color: var(--danger); font-style: normal; }

/* =========================================
   5. RESPONSIVE (Mobile Adjustments)
   ========================================= */
@media (max-width: 600px) {
    .container { padding: 10px 12px 60px; }
    
    /* Kleinerer Banner auf Handy, aber immer noch fixiert */
    .hero-banner { height: 140px; margin-bottom: 15px; }
    
    h2 { font-size: 1.2rem; }
}