/* ============================================================
   DART GROUND — Design System v3.0
   Orange & Slate — High Contrast Dark
   ============================================================ */

/* --- Basis --- */
:root {
    --clr-bg:        #020617;
    --clr-bg-2:      #0f172a;
    --clr-bg-3:      #1e293b;
    --clr-surface:   rgba(15, 23, 42, 0.80);
    --clr-border:    rgba(255, 255, 255, 0.07);
    --clr-orange:    #f97316;
    --clr-orange-2:  #ea580c;
    --clr-orange-3:  #c2410c;
    --clr-amber:     #f59e0b;
    --clr-red:       #ef4444;
    --clr-green:     #22c55e;
    --clr-text:      #f8fafc;
    --clr-muted:     #94a3b8;
    --clr-subtle:    #475569;
    --shadow-orange: 0 0 30px rgba(249,115,22,0.25);
    --shadow-card:   0 8px 32px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(ellipse at top left, #1c1042 0%, #0f172a 40%, #020617 100%);
    background-attachment: fixed;
    color: var(--clr-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

/* --- Glass Card --- */
.glass-box {
    background: rgba(15, 23, 42, 0.60);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(249, 115, 22, 0.10);
    box-shadow: var(--shadow-card);
}

.glass-box:hover {
    border-color: rgba(249, 115, 22, 0.22);
}

/* --- Navbar --- */
.glass-header {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.25);
    box-shadow: 0 4px 40px rgba(249, 115, 22, 0.12);
}

/* --- Buttons --- */
.btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    padding: 11px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.12s cubic-bezier(0.4,0,0.2,1);
    border: none;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.20);
    box-shadow: 0 5px 10px -1px rgba(0,0,0,0.5), inset 0 -2px 0 rgba(0,0,0,0.45);
}
.btn-3d:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0,0,0,0.7); }

.btn-3d-orange {
    background: linear-gradient(175deg, #fb923c, #c2410c);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    box-shadow: 0 5px 20px rgba(249,115,22,0.35), inset 0 -2px 0 rgba(0,0,0,0.45);
}
.btn-3d-orange:hover { background: linear-gradient(175deg, #fdba74, #ea580c); box-shadow: 0 5px 25px rgba(249,115,22,0.55), inset 0 -2px 0 rgba(0,0,0,0.45); }

.btn-3d-slate {
    background: linear-gradient(175deg, #334155, #0f172a);
    color: #cbd5e1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.btn-3d-slate:hover { background: linear-gradient(175deg, #475569, #1e293b); color: #f1f5f9; }

.btn-3d-red {
    background: linear-gradient(175deg, #f87171, #991b1b);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.btn-3d-red:hover { background: linear-gradient(175deg, #fca5a5, #dc2626); }

.btn-3d-green {
    background: linear-gradient(175deg, #4ade80, #166534);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.btn-3d-green:hover { background: linear-gradient(175deg, #86efac, #15803d); }

/* --- Badges / Tags --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid;
}
.badge-orange { background: rgba(249,115,22,0.12); color: #fb923c; border-color: rgba(249,115,22,0.30); }
.badge-green  { background: rgba(34,197,94,0.10);  color: #4ade80; border-color: rgba(34,197,94,0.28); }
.badge-red    { background: rgba(239,68,68,0.10);   color: #f87171; border-color: rgba(239,68,68,0.28); }
.badge-slate  { background: rgba(71,85,105,0.30);   color: #94a3b8; border-color: rgba(71,85,105,0.50); }
.badge-amber  { background: rgba(245,158,11,0.12);  color: #fbbf24; border-color: rgba(245,158,11,0.30); }

/* --- Form inputs --- */
.dg-input {
    width: 100%;
    background: rgba(2, 6, 23, 0.80);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 13px 16px;
    color: #f8fafc;
    font-weight: 700;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
    color-scheme: dark;
}
.dg-input:focus {
    border-color: rgba(249,115,22,0.60);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4), 0 0 0 3px rgba(249,115,22,0.12);
}
.dg-input::placeholder { color: #475569; }

/* --- Section headings --- */
.dg-section-title {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #fb923c;
}

/* --- Divider --- */
.dg-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.30), transparent);
    border: none;
    margin: 0;
}

/* --- Orange glow accent bar (top of cards) --- */
.card-accent::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb923c, #f59e0b);
    border-radius: 999px 999px 0 0;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 8px; }
::-webkit-scrollbar-thumb { background: rgba(249,115,22,0.35); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,0.65); }

/* --- Logo glow --- */
.logo-glow { animation: logo-pulse 3s infinite ease-in-out; }
@keyframes logo-pulse {
    0%,100% { box-shadow: 0 0 15px rgba(249,115,22,0.30); border-color: rgba(249,115,22,0.25); }
    50%      { box-shadow: 0 0 45px rgba(249,115,22,0.70); border-color: rgba(249,115,22,0.65); }
}

/* --- Flag icons --- */
.flag-icon { width:24px; height:24px; min-width:24px; flex-shrink:0; border-radius:50%; overflow:hidden; object-fit:cover; border:1px solid rgba(255,255,255,0.15); }

/* --- Table --- */
.dg-table { width: 100%; text-align: left; border-collapse: collapse; }
.dg-table thead tr { background: rgba(2,6,23,0.70); }
.dg-table thead th { padding: 14px 20px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.20em; color: #64748b; border-bottom: 1px solid rgba(249,115,22,0.12); }
.dg-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.15s; }
.dg-table tbody tr:hover { background: rgba(249,115,22,0.05); }
.dg-table tbody td { padding: 14px 20px; }

/* --- Success / Error alerts --- */
.alert { padding: 14px 20px; border-radius: 14px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; text-align: center; }
.alert-success { background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.28); color: #4ade80; }
.alert-error   { background: rgba(239,68,68,0.10);  border: 1px solid rgba(239,68,68,0.28);  color: #f87171; }
.alert-info    { background: rgba(249,115,22,0.10); border: 1px solid rgba(249,115,22,0.28); color: #fb923c; }

/* ============================================================
   MOBILE RESPONSIVE FIXES
   ============================================================ */

/* Touch-friendly Buttons */
@media (max-width: 768px) {
    .btn-3d {
        min-height: 44px;
        padding: 10px 16px;
    }
    
    /* Tabellen auf Mobile scrollbar */
    table {
        font-size: 12px;
    }
    
    /* Glass Box Padding auf Mobile */
    .glass-box {
        padding: 16px;
    }
    
    /* Schriften auf Mobile verkleinern */
    .text-5xl { font-size: 2rem !important; }
    .text-6xl { font-size: 2.5rem !important; }
    .text-7xl { font-size: 3rem !important; }
    .text-8xl { font-size: 3.5rem !important; }
    
    /* Header Logo auf Mobile */
    .logo-glow {
        box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
    }
    
    /* Inputs auf Mobile größer */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important; /* verhindert Zoom auf iOS */
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .glass-box {
        padding: 24px;
    }
}

/* Mobile Nav aktiv */
#mobile-menu a {
    border-radius: 12px;
}
#mobile-menu a:active {
    background: rgba(249, 115, 22, 0.15);
}
