/* ===== Frutiger Condensed ===== */
@font-face {
    font-family: 'frutiger_condensed';
    src: url('../fonts/frutiglc-webfont.eot');
    src: url('../fonts/frutiglc-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/frutiglc-webfont.woff') format('woff'),
         url('../fonts/frutiglc-webfont.ttf') format('truetype'),
         url('../fonts/frutiglc-webfont.svg#frutigerlight_condensed') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'frutiger_condensed';
    src: url('../fonts/frutigbc-webfont.eot');
    src: url('../fonts/frutigbc-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/frutigbc-webfont.woff') format('woff'),
         url('../fonts/frutigbc-webfont.ttf') format('truetype'),
         url('../fonts/frutigbc-webfont.svg#frutigerbold_condensed') format('svg');
    font-weight: bold;
    font-style: normal;
}

/* ===== Theme: Modern, hell, Akzent #048072 ===== */
:root {
    --accent: #048072;
    --accent-hover: #056b5f;
    --accent-light: rgba(4, 128, 114, 0.08);
    --accent-border: rgba(4, 128, 114, 0.25);
    --text: #1a1a1a;
    --text-muted: #5c6770;
    --bg: #ffffff;
    --bg-body: #f2f4f8;
    --bg-sidebar: #ffffff;
    --border: #e2e8ee;
    --border-light: #eef1f4;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    background-color: var(--bg-body) !important;
    color: var(--text) !important;
    font-family: 'frutiger_condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* ----- AdminLTE: Hellere Sidebar (wie Referenz) ----- */
.main-sidebar,
.main-sidebar.sidebar-dark-primary {
    background-color: var(--bg-sidebar) !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.main-sidebar .brand-link {
    border-bottom: 1px solid var(--border) !important;
    background: var(--bg) !important;
}

.main-sidebar .brand-link .brand-text,
.main-sidebar .nav-sidebar .nav-link p {
    color: var(--text) !important;
}

.main-sidebar .nav-sidebar .nav-link {
    color: var(--text) !important;
    border-left: 3px solid transparent;
    padding: 12px 20px 8px;
    flex-wrap: nowrap !important;
}

.main-sidebar .nav-sidebar .nav-link:hover {
    background-color: var(--accent-light) !important;
    color: var(--accent) !important;
}

.main-sidebar .nav-sidebar .nav-link.active {
    background-color: var(--accent-light) !important;
    color: var(--accent) !important;
    border-left-color: var(--accent);
    font-weight: 600;
}

.main-sidebar .nav-sidebar .nav-link .nav-icon {
    color: var(--text-muted) !important;
}

.main-sidebar .nav-sidebar .nav-link:hover .nav-icon,
.main-sidebar .nav-sidebar .nav-link.active .nav-icon {
    color: var(--accent) !important;
}

.main-sidebar .nav-sidebar .nav-header {
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted) !important;
}

.main-sidebar .nav-sidebar .nav-icon-wrap {
    position: relative;
    display: inline-flex;
}

.main-sidebar .nav-sidebar .nav-badge {
    position: absolute;
    top: -4px;
    right: 23px;
    min-width: 1.1em;
    padding: 4px 5px 0px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    border-radius: 10px;
    background-color: #c62828;
    color: #fff;
}

/* Sidebar nur Icons (66px), Animation + Text erst nach Ende einblenden */
.main-sidebar {
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 3.5rem);
    max-height: calc(100vh - 3.5rem);
    overflow: hidden;
}
.main-sidebar .brand-link {
    flex-shrink: 0;
}

.main-sidebar .brand-link .brand-text,
.main-sidebar .nav-sidebar .nav-link p {
    max-width: 20rem;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease 0.35s, visibility 0s 0.35s, max-width 0.3s ease 0.35s;
}

body.asz-sidebar-mini .main-sidebar {
    width: 66px !important;
}

body.asz-sidebar-mini .main-sidebar .brand-link .brand-text {
    opacity: 0 !important;
    visibility: hidden !important;
    max-width: 0 !important;
    transition: opacity 0.1s ease 0s, visibility 0s 0.1s, max-width 0s 0s !important;
}

/* p komplett aus dem Layout nehmen, damit kein Umbruch entsteht */
body.asz-sidebar-mini .main-sidebar .nav-sidebar .nav-link p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
}

body.asz-sidebar-mini .main-sidebar .brand-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

body.asz-sidebar-mini .main-sidebar .nav-sidebar .nav-link {
    justify-content: center !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

body.asz-sidebar-mini .main-sidebar .nav-sidebar .nav-header {
    opacity: 0;
}

body.asz-sidebar-mini .main-sidebar .brand-logo {
    margin-left: 0 !important;
}

/* Sidebar: Nutzer-Bereich unten */
.main-sidebar .sidebar {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.main-sidebar .sidebar .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-top: 0.5rem;
}
.sidebar-user {
    margin-top: auto;
    padding: 0.75rem 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}
.sidebar-user__row {
    display: flex;
    align-items: center;
    gap: 0.5rem 0.75rem;
    min-width: 0;
}
.sidebar-user__avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.sidebar-user__name {
    color: var(--text) !important;
    font-size: 0.9rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-user__logout {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    padding: 8px 20px 5px;
}
.sidebar-user__logout:hover {
    color: var(--accent) !important;
}
.sidebar-user__logout.btn-outline-secondary {
    border-color: var(--border);
}
.sidebar-user__logout.btn-outline-secondary:hover {
    border-color: var(--accent);
    background-color: var(--accent-light);
}
body.asz-sidebar-mini .sidebar-user {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
body.asz-sidebar-mini .sidebar-user__row {
    justify-content: center;
}
body.asz-sidebar-mini .sidebar-user__name {
    display: none;
}
body.asz-sidebar-mini .sidebar-user__logout {
    font-size: 0;
    padding: 0.35rem;
}
body.asz-sidebar-mini .sidebar-user__logout i {
    font-size: 1rem;
    margin-right: 0 !important;
}

body.asz-sidebar-mini .content-wrapper,
body.asz-sidebar-mini .main-header {
    margin-left: 66px !important;
    transition: margin-left 0.3s ease;
}

.content-wrapper,
.main-header {
    transition: margin-left 0.3s ease;
}

/* ----- Navbar: hell, schlank ----- */
.main-header.navbar-white,
.main-header.navbar-light {
    background-color: var(--bg) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow) !important;
}

.main-header .nav-link {
    color: var(--text) !important;
}

.main-header .nav-link:hover {
    color: var(--accent) !important;
}

.main-header a[href*="logout"] {
    color: var(--accent) !important;
}

.main-header a[href*="logout"]:hover {
    color: var(--accent-hover) !important;
}

.main-header .page-title {
    font-weight: 600;
    color: var(--text) !important;
    margin-right: 0.5rem;
}

/* ----- Content-Bereich ----- */
.content-wrapper {
    background-color: var(--bg-body) !important;
}

.content-wrapper .content {
    padding: 20px 0 !important;
}

/* ----- Buttons: Akzent #048072 ----- */
.btn {
    padding: 10px 20px 8px !important;
}

.btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border-color: var(--border);
    color: var(--text);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
}

.btn-outline-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: var(--accent-light);
}

.btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
    border-radius: var(--radius);
}

.btn-outline-danger:hover {
    border-color: #c82333;
    color: #fff;
    background-color: #dc3545;
}

.btn-success {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
}

.btn-success:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    color: #fff !important;
}

/* ----- Karten: weiß, leichter Schatten, abgerundet ----- */
.card {
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-card) !important;
    padding: 20px !important;
}

.card .card {
    box-shadow: var(--shadow) !important;
}

/* ----- Links ----- */
a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

/* ----- Login-Seite ----- */
.login-page {
    background: var(--bg-body) !important;
}

.login-box .card {
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

.login-logo {
    color: var(--text) !important;
    font-size: 1.75rem;
}

.login-logo b {
    color: var(--accent) !important;
}

.login-box-msg {
    color: var(--text-muted) !important;
}

.login-card-body .input-group {
    align-items: stretch;
}

.login-card-body .input-group .form-control {
    height: 38px;
    border-radius: var(--radius) 0 0 var(--radius);
    border-color: var(--border);
}

.login-card-body .input-group-text {
    height: 38px;
    min-width: 38px;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border-color: var(--border);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.login-card-body .input-group-text .fas {
    font-size: 0.875rem;
}

.login-box .login-box-msg {
    margin-bottom: 1.25rem;
}

.main-sidebar .brand-link {
    padding: 1rem 1.25rem !important;
}

.alert-danger {
    background: #fdecea;
    border-color: #f5c2c2;
    color: #9b1c1c;
    border-radius: var(--radius);
}

/* ----- Tabellen ----- */
.table {
    color: var(--text) !important;
}

.table thead th {
    background: var(--bg-body) !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: var(--accent-light) !important;
}

/* ----- Alerts ----- */
.alert {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ----- Brand (Logo-Bereich Sidebar): Text dunkel, bold ----- */
.brand-text {
    color: var(--text) !important;
    font-weight: bold !important;
    position: relative;
    top: 4px;
}

/* ===== Bestehende Komponenten (Akzent bleibt #048072) ===== */
.link {
    color: var(--accent);
    font-size: 12px;
}

.toolbar {
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8ee;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: sticky;
    top: 12px;
    z-index: 1030;
    background: #fff;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.toolbar-actions.left {
    order: 1;
    justify-content: flex-start;
    flex: 0 1 auto;
    min-width: 0;
}

.toolbar-actions.right {
    flex: 1 1 auto;
}

.toolbar-actions.right {
    order: 2;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
}

.toolbar-actions.right .btn {
    min-width: 13rem;
    text-align: center;
    flex-shrink: 0;
}

.toolbar h2 {
    order: 3;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 0;
    color: var(--text);
    font-weight: 700;
}

.text-muted {
    color: var(--text-muted) !important;
}

.btn-sm {
    padding: 6px 12px 4px !important;
}
.btn-sm.btn-primary {
    font-size: 0.875rem;
}

.doc-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
}

/* Kategorie-Seite: Sidebar mit allen Kategorien links */
.category-page-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}

.category-sidebar-card {
    position: sticky;
    top: 80px;
}

.category-sidebar-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.category-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-sidebar-link {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background-color 0.15s, color 0.15s;
}

.category-sidebar-link:hover {
    background-color: var(--accent-light);
    color: var(--accent);
}

.category-sidebar-link.active {
    background-color: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.category-sidebar-link.is-unread {
    border-left: 3px solid #d64545;
}

@media (max-width: 900px) {
    .category-page-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar-card {
        position: static;
    }
}

.category-tree {
    display: grid;
    gap: 16px;
}

.category-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-block {
    border: 1px solid #e2e8ee;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    color: var(--text) !important;
}

.category-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text);
}

.category-count {
    color: #6a7a86;
    font-weight: 500;
}

.category-link {
    color: var(--text);
}

.category-link:hover {
    color: var(--accent);
}

.category-card-link {
    display: block;
    color: inherit;
}

.category-card-link:hover .category-title {
    color: var(--accent);
}

.category-card-link:hover {
    text-decoration: none;
}

.category-card-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.category-card-inner .doc-pill {
    margin-top: auto;
    padding-top: 8px;
}

.category-card-link.is-unread .category-title {
    border-left: 3px solid #d64545;
    padding-left: 8px;
}

.category-desc {
    font-weight: 400;
    color: #6a7a86;
    margin-top: 4px;
    font-size: 13px;
}

.category-children {
    margin-top: 12px;
    padding-left: 16px;
    border-left: 2px solid #e2e8ee;
}

.doc-list {
    display: grid;
    gap: 10px;
}

.doc-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doc-item {
    padding: 10px;
    border: 1px solid #e2e8ee;
    border-radius: 10px;
    background: #fafcfd;
}

.doc-item.is-read {
    border-color: #2e9e3f;
}

.doc-item.is-unread {
    border-color: #d64545;
}

.doc-pill {
    display: inline-block;
    padding: 2px 8px 1px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    width: fit-content;
    align-self: flex-start;
}

.doc-pill--unread {
    background: #ffebee;
    color: #c62828;
    padding: 6px 10px 4px;
    text-transform: uppercase;
}

.doc-item {
    display: flex;
    flex-direction: column;
}

.doc-item .doc-pill {
    margin-top: auto;
    padding-top: 6px;
}

.doc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.doc-status.is-read {
    color: #2e9e3f;
}

.doc-status.is-unread {
    color: #d64545;
}

.doc-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 16px;
}

.doc-card-link {
    display: block;
    color: inherit;
}

.doc-card-link:hover {
    text-decoration: none;
}

.doc-card-link:hover .doc-item {
    border-color: var(--accent);
}

.doc-desc {
    color: #6a7a86;
    font-size: 13px;
    margin-bottom: 8px;
}

.doc-meta {
    color: #6a7a86;
    font-size: 12px;
    margin-bottom: 6px;
}

.card-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.search-input {
    max-width: 360px;
}

.search-input .form-control {
    margin-bottom: 0 !important;
    height: 31px;
}

.search-input .btn {
    height: 31px;
    padding: 0 10px;
}

.table td,
.table th {
    border-top: 0 !important;
}

.table-responsive .table thead th {
    background: transparent !important;
}

.news-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.news-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
}

.news-actions .news-date {
    font-size: 12px;
    color: var(--text-muted);
}

.news-pill {
    display: inline-block;
    padding: 2px 8px 1px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.news-pill--event {
    background: #e3f2fd;
    color: #1565c0;
}

.news-pill--management {
    background: #fff3e0;
    color: #e65100;
}

.news-pill--important {
    background: #ffebee;
    color: #c62828;
}

.news-pill--azs {
    background: #e8f5e9;
    color: #2e7d32;
}

.news-like-button {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: var(--radius);
    padding: 6px 12px 4px;
    font-size: 0.875rem;
}

.news-like-button:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.news-like-button .fa-heart {
    color: var(--accent);
    transition: color 0.25s ease, transform 0.25s ease;
}

.news-like-button.is-liked .fa-heart {
    color: #c62828;
}

.news-like-button.is-liked {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

@keyframes news-heart-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.news-like-button.just-liked .fa-heart {
    animation: news-heart-pop 0.45s ease;
    color: #c62828;
}

.form-control,
.custom-select,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    box-shadow: none;
    background-color: #fff;
    margin-bottom: 10px !important;
}

textarea.form-control {
    min-height: 120px;
}

.form-control:focus,
.custom-select:focus,
select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.15rem var(--accent-light);
}

.doc-sidebar {
    border: 1px solid #e2e8ee;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.version-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8ee;
    margin-bottom: 8px;
    color: #1f2a33;
}

.version-link:hover {
    border-color: #048072;
}

.version-link.active {
    border-color: var(--accent);
    background: var(--accent-light);
}

.list {
    display: grid;
    gap: 8px;
}

.list-item {
    display: block;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
}

.list-item:hover {
    border-color: var(--accent);
}

.categories-list {
    display: grid;
    gap: 10px;
}

.category-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px;
    border: 1px solid #e2e8ee;
    border-radius: 8px;
    background: #fff;
    padding-left: calc(8px + (var(--depth, 0) * 16px));
}

.category-item::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-left: 2px solid #cfd8e3;
    border-bottom: 2px solid #cfd8e3;
    margin-left: calc((var(--depth, 0) * -16px));
    opacity: calc((var(--depth, 0) * 0.3));
}

.category-item[data-parent="0"]::before {
    border: none;
    width: 0;
    height: 0;
    margin: 0;
}

.category-item[data-parent]:not([data-parent="0"]) {
    background: #f9fbfc;
    border-color: #dbe3ea;
    margin-left: 40px;
}

.category-item.dragging {
    opacity: 0.6;
}

.category-item.drop-child {
    outline: 2px dashed var(--accent);
    outline-offset: 2px;
}

.category-item.drop-sibling {
    border-color: var(--accent);
}

.drag-handle {
    cursor: grab;
    color: #6a7a86;
    font-size: 18px;
    text-align: center;
    flex: 0 0 10%;
    max-width: 40px;
}

.category-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-field {
    flex: 0 0 30%;
}

.desc-field {
    flex: 0 0 60%;
}

.small-label {
    font-size: 11px;
    color: #6a7a86;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.category-count-badge {
    display: flex;
    align-items: flex-start;
    margin-top: 6px;
}

.category-count-badge .badge {
    white-space: normal;
    line-height: 1.2;
}


.muted {
    color: #6a7a86;
    font-size: 13px;
}

.version-row {
    border-bottom: 1px solid #e2e8ee;
    padding: 10px 0;
}

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

.version-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}

.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    margin-left: 8px;
}

.status-public {
    background: var(--accent-light);
    color: var(--accent);
}

.status-draft {
    background: #fff4e5;
    color: #9b6a1a;
}

.status-in_review {
    background: #e8f5ff;
    color: #1d5b8f;
}

.status-in_approval {
    background: #eef7ff;
    color: #2a5c94;
}

.status-archived {
    background: #eef1f4;
    color: #5c6770;
}

.status-reviewed {
    background: #e7f0ff;
    color: #2457a6;
}

.status-approved {
    background: #e6f7e6;
    color: #1f7a1f;
}

.status-rejected {
    background: #fdecea;
    color: #9b1c1c;
}

.version-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.version-toolbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.version-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.version-toolbar-actions.right {
    margin-left: auto;
    justify-content: flex-end;
}

.editor {
    border: 1px solid #e2e8ee;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
}

.editor-toolbar {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid #e2e8ee;
    background: #f7f9fb;
}

.editor-toolbar button {
    border: 1px solid #e2e8ee;
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
}

.editor-area {
    min-height: 160px;
    padding: 10px;
}

.editor-area.editor-lg {
    min-height: 220px;
}

.file-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px dashed #e2e8ee;
    border-radius: 8px;
    background: #fafcfd;
    margin-bottom: 12px;
}

.file-input input[type="file"] {
    display: none;
}

.file-label {
    background: var(--accent);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
}

.file-name {
    font-size: 13px;
    color: #6a7a86;
}

.news-item {
    background: #ffffff;
    border: 1px solid #e2e8ee;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-meta {
    font-size: 12px;
    color: #6a7a86;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.news-body {
    margin: 0 0 12px;
}

.news-row {
    display: flex;
    gap: 35px;
    align-items: center;
}

.news-media {
    flex: 0 0 300px;
    margin-top: 0;
}

/* Modul Aktuelles (Liste): Bild 400px, margin-top 0 */
.news-list .news-media {
    flex: 0 0 400px;
    margin-top: 0;
}

/* Dashboard: kleinere Bilder (150px) */
.news-dashboard .news-media {
    flex: 0 0 150px;
}

.news-content {
    flex: 1 1 auto;
    min-width: 0;
}

.news-content h3 {
    margin-top: 0;
}

.news-image {
    width: 300px;
    max-width: 300px;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 0;
}

.news-list .news-image {
    width: 400px;
    max-width: 400px;
}

.news-dashboard .news-image {
    width: 150px;
    max-width: 150px;
}

@media (max-width: 720px) {
    .news-row {
        flex-direction: column;
    }

    .news-media {
        flex-basis: auto;
    }

    .news-image {
        margin-top: 0;
    }
}

/* News-Detailansicht */
.news-detail__toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.news-detail__media {
    margin-bottom: 1rem;
}
.news-detail__image {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    display: block;
}
.news-detail__title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.news-detail__date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-detail__date .news-pill {
    margin-left: 0.25rem;
}
.news-detail__body {
    line-height: 1.6;
}

/* Dashboard Schnellzugriff – Listen-Layout (Fallback) */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.quick-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.quick-link-item:hover {
    background-color: var(--accent-light);
    color: var(--accent);
}
.quick-link-item i {
    width: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Dashboard Schnellzugriff – App-Icons (3×2 Grid) */
.quick-links--app {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    flex-direction: unset;
}
.quick-link-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.quick-link-app:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
.quick-link-app__icon {
    width: 100%;
    aspect-ratio: 1;
    max-width: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}
.quick-link-app__icon i {
    font-size: 1.5rem;
}
.quick-link-app__label {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
}
/* Farbvarianten App-Icons */
.quick-link-app--blue .quick-link-app__icon {
    background-color: #e3f2fd;
    color: #1976d2;
}
.quick-link-app--orange .quick-link-app__icon {
    background-color: #fff3e0;
    color: #e65100;
}
.quick-link-app--green .quick-link-app__icon {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.quick-link-app--purple .quick-link-app__icon {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.alert.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.brand-logo {
    height: 50px;
    margin-left: 10px;
    margin-top: 5px;
}

.note-editor.card {
    padding: 0;
}

@media (max-width: 1100px) {
    .category-grid,
    .doc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .category-grid,
    .doc-grid {
        grid-template-columns: 1fr;
    }
}

/* Layout paddings */
.content-wrapper {
    padding: 12px 0;
}

.content-wrapper .content {
    padding: 16px 0;
}

.container-fluid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.card {
    padding: 20px;
}

@media (max-width: 900px) {
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.datepicker-wrap {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 8px;
    align-items: center;
}

.date-picker-source {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}

.version-actions form {
    display: inline-block;
}

.version-actions .btn {
    padding: 8px 10px;
}

.version-editor {
    margin-top: 8px;
}

.doc-owner {
    font-size: 12px;
    color: var(--muted);
}

.doc-form-large .editor-area {
    min-height: 240px;
}

.inline-form {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.image-preview img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 12px;
}

.login-wrap {
    max-width: 420px;
    margin: 80px auto;
    text-align: center;
}

.login-wrap input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
}

@media (max-width: 900px) {
    .doc-layout {
        grid-template-columns: 1fr;
    }
}
