/* =========================================================
   SEO-Audit-Creator – Zentrales Design
   Bootstrap-kompatibel (Variablen & Klassen)
   ========================================================= */

/* ---------- Design Tokens (zentral anpassbar) ---------- */
:root {
    /* Schrift */
    --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --line-height-base: 1.5;

    /* Farben */
    --color-bg-app: #f4f6f8;
    --color-bg-header: #1f2937;
    --color-bg-sidebar: #111827;
    --color-bg-content: #ffffff;
    --color-bg-table-head: #f3f4f6;

    --color-text-base: #222222;
    --color-text-invert: #ffffff;
    --color-text-muted: #6b7280;
    --color-link: #2563eb;
    --color-link-hover: #1d4ed8;

    /* Layout */
    --sidebar-width: 220px;
    --container-padding: 24px;
    --border-radius: 6px;
    --border-color: #e5e7eb;
}

/* ---------- Reset / Basis ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background: var(--color-bg-app);
    color: var(--color-text-base);
}

/* ---------- Header ---------- */
.app-header {
    background: var(--color-bg-header);
    color: var(--color-text-invert);
    padding: 16px 24px;
}

/* ---------- Layout ---------- */
.app-layout {
    display: flex;
    min-height: calc(100vh - 120px);
}

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--color-bg-sidebar);
    padding: 20px;
}

.app-content {
    flex: 1;
    padding: var(--container-padding);
    background: var(--color-bg-content);
}

/* ---------- Navigation ---------- */
.app-sidebar ul {
    list-style: none;
}

.app-sidebar li {
    margin-bottom: 12px;
}

.app-sidebar a {
    color: var(--color-text-invert);
    text-decoration: none;
    font-weight: 600;
}

.app-sidebar a:hover {
    color: #93c5fd;
}

/* ---------- Container (Bootstrap-ähnlich) ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-fluid {
    width: 100%;
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
    margin-bottom: 12px;
}

p {
    margin-bottom: 12px;
    font-size: var(--font-size-base);
}

/* ---------- Tabellen (Bootstrap-ähnlich) ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: var(--font-size-sm);
}

thead {
    background: var(--color-bg-table-head);
}

th, td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

th {
    font-weight: 600;
}

/* ---------- Utilities ---------- */
.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-3 { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.app-footer {
    background: var(--color-bg-header);
    color: var(--color-text-muted);
    text-align: center;
    padding: 12px;
}

/* =========================================================
   Sidebar – aktive Navigation
   ========================================================= */

.app-sidebar .nav-link {
    color: var(--color-text-invert);
    padding: 8px 10px;
    border-radius: var(--border-radius);
}

.app-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.app-sidebar .nav-link.active {
    background: #2563eb;          /* Primärfarbe */
    color: #ffffff;
    font-weight: 600;
}
