/* ARTIKEL Details */

.inhalt-content {
    font-size: 1rem;
    line-height: 1.5;
    color: #2c3e50;
    background: white;
}

    /* --- Tabellen im Artikel-Inhalt --- */
    .inhalt-content table {
        width: auto;
        max-width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 0.9rem;
        background: var(--rz-base-background-color, #fff);
        border: 1px solid var(--rz-grid-line-color, #e0e0e0);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin: 1.25rem 0;
    }

    .inhalt-content thead tr {
        background: var(--rz-primary, #357abd);
        color: #fff;
    }

    .inhalt-content thead th {
        padding: 0.7rem 1rem;
        text-align: left;
        font-weight: 600;
        letter-spacing: 0.03em;
        white-space: nowrap;
        border-right: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: 2px solid var(--rz-primary-dark, #2a6199);
    }

    .inhalt-content thead th:last-child {
        border-right: none;
    }

    .inhalt-content tbody tr {
        transition: background 0.15s ease;
    }

    .inhalt-content tbody tr:nth-child(even) {
        background: var(--rz-secondary-50, #f5f8fc);
    }

    .inhalt-content tbody tr:hover {
        background: var(--rz-primary-50, #e8f1fb);
    }

    .inhalt-content tbody td {
        padding: 0.6rem 1rem;
        vertical-align: middle;
        border-right: 1px solid var(--rz-grid-line-color, #e0e0e0);
        border-bottom: 1px solid var(--rz-grid-line-color, #e0e0e0);
    }

    .inhalt-content tbody td:last-child {
        border-right: none;
    }

    .inhalt-content tbody tr:last-child td {
        border-bottom: none;
    }

    .inhalt-content tfoot tr {
        background: var(--rz-base-200, #f0f0f0);
        font-weight: 600;
    }

    .inhalt-content tfoot td {
        padding: 0.65rem 1rem;
        border-right: 1px solid var(--rz-grid-line-color, #e0e0e0);
        border-top: 2px solid var(--rz-grid-line-color, #ccc);
    }

    .inhalt-content tfoot td:last-child {
        border-right: none;
    }

    .inhalt-content th.text-right,
    .inhalt-content td.text-right {
        text-align: right;
    }

    .inhalt-content th.text-center,
    .inhalt-content td.text-center {
        text-align: center;
    }

    .inhalt-content p {
        margin-bottom: 0rem;
    }

    .inhalt-content h1,
    .inhalt-content h2,
    .inhalt-content h3,
    .inhalt-content h4,
    .inhalt-content h5,
    .inhalt-content h6 {
        margin-top: 1rem;
        margin-bottom: 0.4rem;
        color: #2c3e50;
        padding: 0.35rem 0.75rem;
        border-radius: 4px;
    }

    .inhalt-content h1 {
        background-color: rgba(52, 152, 219, 0.05);
        border-left: 4px solid rgba(52, 152, 219, 0.25);
    }

    .inhalt-content h2 {
        background-color: rgba(52, 152, 219, 0.04);
        border-left: 4px solid rgba(52, 152, 219, 0.2);
    }

    .inhalt-content h3 {
        background-color: rgba(52, 152, 219, 0.03);
        border-left: 3px solid rgba(52, 152, 219, 0.15);
    }

    .inhalt-content h4 {
        background-color: transparent;
        border-left: 3px solid rgba(52, 152, 219, 0.12);
    }

    .inhalt-content h5 {
        background-color: transparent;
        border-left: 2px solid rgba(52, 152, 219, 0.1);
    }

    .inhalt-content h6 {
        background-color: transparent;
        border-left: 2px solid rgba(52, 152, 219, 0.07);
    }

    .inhalt-content ul,
    .inhalt-content ol {
        margin-bottom: 0.5rem;
        padding-left: 1rem;
    }

    .inhalt-content li {
        margin-bottom: 0.15rem;
    }

    .inhalt-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 1.5rem 0;
    }

    .inhalt-content blockquote {
        border-left: 4px solid green;
        background-color: #ffffee;
        padding: 0.4rem 1.25rem;
        margin: 0.75rem 0;
        border-radius: 0;
        font-style: italic;
        font-size: 0.97rem;
    }

    .inhalt-content code {
        background-color: #f8f9fa;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-family: monospace;
        font-size: 0.9em;
    }

    .inhalt-content pre {
        background-color: #2c3e50;
        padding: 1.5rem;
        border-radius: 8px;
        overflow-x: auto;
        margin: 1.5rem 0;
    }

        .inhalt-content pre code,
        .inhalt-content pre code.hljs {
            background-color: transparent;
            padding: 0;
            border-radius: 0;
            font-size: inherit;
            color: inherit;
        }

/* Code-Block Wrapper für Copy-Button */
.code-block-wrapper {
    position: relative;
    margin: 1.5rem 0;
}

.inhalt-content .code-block-wrapper pre {
    margin: 0;
}

.code-kopieren-button {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 1;
}

/* Inhalt-Bereich als eigenständiger Block (mit Padding) */
.inhalt-bereich {
    padding: 1rem;
}

/* Artikel-Titelbereich (Header-Leiste oben) */
.artikel-titel-bereich {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--rz-border-radius, 4px);
    border-left: 4px solid var(--rz-primary);
}

/* Fetter Titel ohne Außenabstand */
.artikel-titel {
    margin: 0;
    font-weight: 700;
}

.artikel-meta-einzeile {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: #6b7280;
}

.artikel-meta-trenner {
    opacity: 0.75;
}

/* Fieldset mit weißem Hintergrund */
.fieldset-weiss {
    background: white;
}

/* URL-Zeile in der Detailansicht */
.artikel-url-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.artikel-url-icon {
    font-size: 1.05rem;
    flex-shrink: 0;
    color: var(--rz-primary);
}

.artikel-url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    color: var(--rz-primary);
    min-width: 0;
}

.mitarbeiter-filter-link {
    color: var(--rz-primary);
    text-decoration: none;
    font-weight: 600;
}

    .mitarbeiter-filter-link:hover {
        text-decoration: underline;
    }

.freigabe-meta-icon {
    display: inline-flex;
    align-items: center;
    color: #9ca3af;
    text-decoration: none;
    line-height: 1;
    transition: color 0.15s;
}

    .freigabe-meta-icon:visited {
        color: #9ca3af;
        text-decoration: none;
    }

    .freigabe-meta-icon:hover,
    .freigabe-meta-icon:visited:hover,
    .freigabe-meta-icon:focus {
        color: var(--rz-primary);
        text-decoration: none;
    }

    .freigabe-meta-icon:active,
    .freigabe-meta-icon:visited:active {
        color: var(--rz-primary);
        text-decoration: none;
    }

    .freigabe-meta-icon .rzi {
        font-size: 0.95rem;
    }

.user-filter-link {
    text-decoration: none;
}

.badge-mit-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.icon-klein {
    font-size: 0.95rem;
}

.tag-filter-link {
    text-decoration: none;
    display: inline-flex;
}

    .tag-filter-link .rz-badge {
        cursor: pointer;
    }

.tags-kompakt-liste {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 0.1rem;
}

    .tags-kompakt-liste .tag-filter-link {
        flex: 0 0 auto;
    }

    .tags-kompakt-liste .rz-badge {
        font-size: 0.78rem;
        padding: 0.1rem 0.45rem;
    }

.inhalt-mit-toc-layout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
}

.inhaltsverzeichnis-seitenbereich {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    flex: 0 0 auto;
}

.toc-icon-button {
    border: 0;
    background: #fff;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rz-primary);
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.inhaltsverzeichnis-seitenbereich.zu {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-55%, -35%);
    z-index: 3;
}

.inhaltsverzeichnis-seitenbereich.offen {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
}

.toc-icon-button:hover {
    background: rgba(52, 152, 219, 0.1);
}

.toc-icon-button .rzi {
    font-size: 1.1rem;
}

.inhaltsverzeichnis-seitenpanel {
    width: 18rem;
    border-radius: var(--rz-border-radius, 4px);
    border: 1px solid rgba(44, 62, 80, 0.12);
    padding: 0.45rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.inhaltsverzeichnis-panel-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.inhaltsverzeichnis-panel-titel {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.toc-close-button {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1rem;
    width: 1.4rem;
    height: 1.4rem;
    line-height: 1;
    border-radius: 4px;
    cursor: pointer;
}

    .toc-close-button:hover {
        background: rgba(107, 114, 128, 0.12);
        color: #1f2937;
    }

.inhalt-text-spalte {
    width: 100%;
    min-width: 0;
}

.inhaltsverzeichnis-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    max-height: none;
    overflow-y: auto;
}

.inhaltsverzeichnis-link {
    display: block;
    color: var(--rz-primary);
    text-decoration: none;
    font-size: 0.93rem;
    line-height: 1.4;
    border-left: 2px solid transparent;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
}

    .inhaltsverzeichnis-link:hover {
        background: rgba(52, 152, 219, 0.08);
        border-left-color: rgba(52, 152, 219, 0.5);
    }

    .inhaltsverzeichnis-link.ebene-3 {
        margin-left: 0.9rem;
        font-size: 0.9rem;
        opacity: 0.95;
    }

@media (max-width: 992px) {
    .inhalt-mit-toc-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .inhaltsverzeichnis-seitenbereich {
        position: static;
        margin-left: 0;
        margin-top: 0;
    }

    .inhaltsverzeichnis-seitenpanel {
        width: 100%;
    }
}

/* Bild in der Detailansicht */
.artikel-detail-bild-wrapper {
    cursor: pointer;
    width: 100%;
}

.artikel-detail-bild {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--rz-border-radius, 4px);
}

/* Video in der Detailansicht */
.artikel-video-wrapper {
    cursor: pointer;
    position: relative;
    width: 100%;
}

.rechtes-panel-video-vorschau {
    width: 100%;
    display: block;
    border-radius: var(--rz-border-radius, 4px);
    pointer-events: none;
}

.rechtes-panel-video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.play-icon {
    font-size: 2rem;
    color: white;
}

/* Bild-Dialog */
.bild-dialog-img {
    max-width: 100%;
    max-height: calc(85vh - 100px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: var(--rz-border-radius, 4px);
}

/* Video: Overlay dynamisch erzeugt für eingebettete Videos im Artikel-Inhalt (Hauptpanel) */
.inhalt-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
    background: transparent;
}

    .inhalt-video-overlay:hover::after {
        content: '▶  Im Video-Player öffnen';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.65);
        color: #fff;
        padding: 0.4rem 0.9rem;
        border-radius: 4px;
        font-size: 0.85rem;
        white-space: nowrap;
        pointer-events: none;
    }

/* Bild: Klick-Cursor */
img.oo-bild-embed {
    cursor: pointer;
}

/* ===== Details-Header: Buttons über dem Titel ===== */

/* Buttons-Zeile: rechtsbündig über dem Titel */
.artikel-kopf-buttons-zeile {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

@media (max-width: 767px) {
    .details-buttons .rz-button-text {
        display: none;
    }

    .details-buttons {
        flex-wrap: wrap;
    }
}



