/* ============================================
   Zocken.birkensen.com — Globales Design
   Marine / Militär + Modern
   ============================================ */

:root {
    --bg-dunkel:     #0a0f1e;
    --bg-mittel:     #111827;
    --bg-karte:      #1a2235;
    --bg-karte-hover:#1e2a40;
    --akzent-blau:   #1d4ed8;
    --akzent-gruen:  #22c55e;
    --akzent-rot:    #ef4444;
    --akzent-gelb:   #f59e0b;
    --text-hell:     #f1f5f9;
    --text-mittel:   #94a3b8;
    --text-dunkel:   #475569;
    --border:        #1e3a5f;
    --border-hell:   #2d4f7c;
    --schatten:      0 4px 24px rgba(0,0,0,0.5);
    --radius:        10px;
    --font:          'Segoe UI', system-ui, sans-serif;
}

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

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

/* Hintergrund-Gitter Effekt */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(29,78,216,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29,78,216,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ---- Navigation ---- */
nav {
    background: rgba(10,15,30,0.95);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

nav .logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-hell);
    text-decoration: none;
    letter-spacing: 0.05em;
}

nav .logo span {
    color: var(--akzent-gruen);
}

nav .nav-rechts {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav .spieler-name {
    color: var(--text-mittel);
    font-size: 0.9rem;
}

nav .spieler-name strong {
    color: var(--akzent-gruen);
}

/* ---- Haupt-Container ---- */
main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ---- Überschriften ---- */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.02em;
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.4rem; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font);
}

.btn-primary {
    background: var(--akzent-blau);
    color: #fff;
}
.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29,78,216,0.4);
}

.btn-gruen {
    background: var(--akzent-gruen);
    color: #000;
}
.btn-gruen:hover {
    background: #16a34a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34,197,94,0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-mittel);
    border: 1px solid var(--border-hell);
}
.btn-ghost:hover {
    color: var(--text-hell);
    border-color: var(--text-mittel);
}

.btn-rot {
    background: var(--akzent-rot);
    color: #fff;
}
.btn-rot:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-gross {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ---- Karten ---- */
.karte {
    background: var(--bg-karte);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--schatten);
}

/* ---- Formulare ---- */
.form-gruppe {
    margin-bottom: 1.2rem;
}

.form-gruppe label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-mittel);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-gruppe input {
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--bg-dunkel);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-hell);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color 0.2s;
}

.form-gruppe input:focus {
    outline: none;
    border-color: var(--akzent-blau);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.15);
}

/* ---- Meldungen ---- */
.meldung {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.meldung-fehler {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

.meldung-erfolg {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #86efac;
}

.meldung-info {
    background: rgba(29,78,216,0.1);
    border: 1px solid rgba(29,78,216,0.3);
    color: #93c5fd;
}

/* ---- Badge / Tag ---- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-gruen  { background: rgba(34,197,94,0.15);  color: var(--akzent-gruen); }
.badge-grau   { background: rgba(148,163,184,0.15); color: var(--text-mittel); }
.badge-blau   { background: rgba(29,78,216,0.2);    color: #93c5fd; }
.badge-gelb   { background: rgba(245,158,11,0.15);  color: var(--akzent-gelb); }

/* ---- Trennlinie ---- */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* ---- Hilfklassen ---- */
.text-mitte  { text-align: center; }
.text-mittel { color: var(--text-mittel); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-mitte { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
    nav { padding: 0 1rem; }
    main { padding: 1rem; }
    h1 { font-size: 1.5rem; }
}
