body {
    font-family: Inter, sans-serif;
    background: #020617;
    color: #e5e7eb;
    margin: 0;
    padding: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("/img/back.jpg") center/cover no-repeat;
    opacity: .26;
    z-index: -1;
}

/* --- Gesamtlayout: Sidebar + Content nebeneinander --- */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Content rechts neben der Sidebar */
.content-area {
    flex: 1;
    padding: 24px 32px 40px 32px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .content-area {
        padding: 16px 16px 32px 16px;
    }
}

/* Header oben direkt neben der Sidebar */
.page-header {
    margin: 0 0 8px 0;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    font-family: "Space Grotesk", sans-serif;
}

/* Info unterhalb der Cards */
.status-info {
    margin: 18px 0 18px 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ---------------------------
   STATUS-GRID (IONOS + DNS)
   --------------------------- */

/* 3er-Grid, auto-fit -> 100% responsiv */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* kleine Status-Karten: kein zusätzlicher Außenabstand */
.status-card {
    margin: 0;
}

/* ---------------------------
   Card-Grunddesign
   --------------------------- */

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(18px);
    padding: 22px;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    position: relative;
}

.shadow-sm {
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.9);
}

/* Card-Header (für Problemkarten) */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Kategorie-Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 999px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* "Bootstrap-artige" Badge-Farben */
.badge.bg-success {
    background: rgba(22, 163, 74, 0.25);
    border-color: rgba(22, 163, 74, 0.6);
    color: #bbf7d0;
}

.badge.bg-warning {
    background: rgba(234, 179, 8, 0.25);
    border-color: rgba(234, 179, 8, 0.6);
    color: #fef9c3;
}

.badge.bg-danger {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.7);
    color: #fecaca;
}

.badge.bg-secondary {
    background: rgba(148, 163, 184, 0.25);
    border-color: rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

/* Statusindicator rechts (bei Problemkarten) */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Card-Body für Statuskarten oben */
.card-body {
    padding: 0;
}

.card-title {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.card-text {
    font-size: 0.85rem;
    line-height: 1.4;
}

.mb-1 {
    margin-bottom: 4px;
}

.text-muted {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Footer */
.card-footer {
    margin-top: 14px;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Bilder */
.preview {
    max-width: 220px;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin: 8px 8px 0 0;
}

/* Lock */
.lock {
    opacity: 0.7;
    color: #9ca3af;
}

/* Download-Link */
a.download {
    color: #38bdf8;
    text-decoration: none;
}

a.download:hover {
    text-decoration: underline;
}

/* Mobile Header / Burger (aus sidebar-Layout ergänzt) */
.mobile-header {
    display: none;
}

@media (max-width: 900px) {
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        background: #020617;
        border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    }

    .mobile-title {
        font-size: 0.9rem;
        color: #e5e7eb;
    }

    .burger-btn {
        background: none;
        border: none;
        color: #e5e7eb;
        font-size: 1.4rem;
        cursor: pointer;
    }
}

/* ---------------------------
   FILTERBAR + SUCHE
   --------------------------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    margin-top: 4px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.8rem;
    padding: 4px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.filter-btn:hover {
    background: rgba(30, 64, 175, 0.9);
    border-color: rgba(129, 140, 248, 0.9);
    transform: translateY(-1px);
}

.filter-btn--active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: rgba(129, 140, 248, 0.9);
    color: #f9fafb;
}

/* Suche */
.filter-search {
    min-width: 220px;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.filter-search input {
    width: 100%;
    max-width: 260px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.8rem;
    outline: none;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.9);
}

.filter-search input::placeholder {
    color: #64748b;
}

.filter-search input:focus {
    border-color: rgba(129, 140, 248, 0.9);
}

/* Issue-Karten (Problemliste) */
.issue-card {
    /* nutzt Standard-Card-Design */
}

/* ---------------------------
   RESPONSIVE-ANPASSUNGEN
   --------------------------- */

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-search {
        justify-content: flex-start;
    }

    .filter-search input {
        max-width: 100%;
    }
}
