/* --- BASIS: HELLER MODUS --- */
body {
    font-family: Inter, Arial, sans-serif;
    margin: 0;
    background: #f8fafc;
    color: #0f172a;
    /* Verhindert, dass der Inhalt hinter der Navigationsleiste verschwindet */
    padding-bottom: 100px;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

input, select, textarea, button { font: inherit; }

input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
}

button {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

button:hover { background: #1d4ed8; }

button.secondary { background: #e2e8f0; color: #0f172a; }
button.secondary:hover { background: #cbd5e1; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.muted { color: #64748b; }
.hidden { display: none !important; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: bold;
}

/* --- BOTTOM NAVIGATION STYLING --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 2000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    gap: 4px;
    flex: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.nav-item.active { color: #2563eb; }

.nav-add-btn {
    margin-top: -35px;
}

.nav-add-btn button {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: #3b82f6;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* --- DARK MODE --- */
body.dark-mode {
    background: #0f172a;
    color: #f8fafc;
}

body.dark-mode .card,
body.dark-mode .bottom-nav {
    background: #111827;
    border-color: #1f2937;
}

body.dark-mode .bottom-nav { border-top-color: #1f2937; }

body.dark-mode input, body.dark-mode select, body.dark-mode textarea {
    background: #0b1220;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-mode button.secondary { background: #334155; color: #f8fafc; }
body.dark-mode .nav-item { color: #94a3b8; }
body.dark-mode .nav-item.active { color: #3b82f6; }
body.dark-mode .muted { color: #94a3b8; }
body.dark-mode th, body.dark-mode td { border-bottom-color: #1f2937; }

body.dark-mode #settings-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: white !important;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
}

.shadow-lg { box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
