html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.dashboard-tile {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 14px;
}

    .dashboard-tile:hover {
        transform: translateY(-4px);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
    }

html, body {
    height: 100%;
}

body {
    margin: 0;
    background-color: #f5f7fb;
    overflow-x: hidden;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100vh;
    overflow-y: auto;
    background: #1f2937;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.sidebar-brand {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.sidebar-brand-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    display: inline-block;
}

    .sidebar-brand-link:hover {
        color: #fff;
    }

.sidebar-subtitle {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-section-title {
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
    padding: 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}

.sidebar-link {
    color: #e5e7eb;
    text-decoration: none;
    padding: 0.72rem 0.9rem;
    border-radius: 0.75rem;
    transition: background-color 0.15s ease, transform 0.15s ease;
    display: block;
}

    .sidebar-link:hover {
        background-color: #374151;
        color: #fff;
        transform: translateX(2px);
    }

    .sidebar-link.active {
        background: linear-gradient(135deg, #4f46e5, #6366f1);
        color: #fff;
        font-weight: 600;
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    }

.app-main {
    margin-left: 270px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.app-topbar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
}

.app-content {
    flex: 1;
    padding: 2rem;
}

.app-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    font-size: 0.9rem;
}

.card {
    border: none;
    border-radius: 1rem;
}

.table {
    background: #fff;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: static;
        width: 100%;
        height: auto;
        box-shadow: none;
    }

    .app-main {
        margin-left: 0;
    }

    .app-topbar {
        position: static;
        height: auto;
        padding: 1rem 1.25rem;
    }

    .app-content {
        padding: 1.25rem;
    }

    .app-footer {
        padding: 1rem 1.25rem;
    }
}

.artikel-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.artikel-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #f8f9fa;
    padding-top: 0.25rem;
    padding-bottom: 0.75rem;
}

.artikel-nur-aktiv-wrap {
    padding-top: 2rem;
}

.kategorie-sidebar {
    position: sticky;
    top: 190px;
}

.kategorie-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.kategorie-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.6rem;
    color: #212529;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .kategorie-link:hover {
        background-color: #f3f5f7;
        color: #212529;
        text-decoration: none;
    }

    .kategorie-link.active {
        background-color: #e9f2ff;
        color: #0d6efd;
        font-weight: 600;
    }

.kategorie-count {
    min-width: 2rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background-color: #eef1f4;
    color: #6c757d;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.4;
}

.kategorie-link.active .kategorie-count {
    background-color: #0d6efd;
    color: #fff;
}

.artikel-tabelle-wrap {
    max-height: calc(100vh - 290px);
    overflow-y: auto;
}

.artikel-table-head th {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #fff;
    box-shadow: inset 0 -1px 0 #dee2e6;
}