/* ARTIKEL Details */

.artikel-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.artikel-details-header {
    margin-bottom: 2rem;
}

.zurueck-button {
    font-size: 0.95rem;
}

/* Artikel nicht gefunden */
.artikel-nicht-gefunden {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

    .artikel-nicht-gefunden h1 {
        color: #e74c3c;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .artikel-nicht-gefunden p {
        color: #7f8c8d;
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

/* Content Layout */
.artikel-details-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* Title Section */
.artikel-details-title-section {
    grid-column: 1 / -1;
    padding-bottom: 2rem;
    border-bottom: 3px solid #3498db;
    margin-bottom: 2rem;
}

.artikel-details-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.artikel-details-meta-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.artikel-details-status {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.artikel-details-status-1 {
    background-color: #27ae60;
    color: white;
}

.artikel-details-status-2 {
    background-color: #95a5a6;
    color: white;
}

.artikel-details-datum-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 1rem;
}

.meta-icon {
    font-size: 1.2rem;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ecf0f1;
}

/* Zusammenfassung */
.artikel-details-zusammenfassung {
    grid-column: 1;
    background-color: #ecf0f1;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.zusammenfassung-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

/* Tags Section */
.artikel-details-tags-section {
    grid-column: 1;
}

.tags-block {
    margin-bottom: 1.5rem;
}

    .tags-block:last-child {
        margin-bottom: 0;
    }

.tags-block-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.artikel-details-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.tag-hauptthema {
    background-color: #3498db;
    color: white;
}

.tag-nebenthema {
    background-color: #9b59b6;
    color: white;
}

.tag-randbezug {
    background-color: #95a5a6;
    color: white;
}

/* Inhalt */
.artikel-details-inhalt {
    grid-column: 1;
}

.inhalt-content {
    font-size: 1rem;
    line-height: 1.5;
    color: #2c3e50;
}

    .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 {
            background-color: transparent;
            padding: 0;
            border-radius: 0;
            font-size: inherit;
            color: inherit;
        }

/* URLs */
.artikel-details-urls {
    grid-column: 1;
}

.urls-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.url-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

    .url-item:hover {
        background-color: #3498db;
        color: white;
        transform: translateX(5px);
        box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    }

.url-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.url-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-external {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Dateien */
.artikel-details-dateien {
    grid-column: 1;
}

.dateien-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.datei-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s;
}

    .datei-item:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.datei-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.datei-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #2c3e50;
}

    .datei-link:hover {
        color: #3498db;
    }

.datei-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.datei-name {
    flex: 1;
    font-weight: 500;
    font-size: 1.05rem;
}

.datei-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.datei-groesse {
    font-weight: 600;
}

.datei-typ {
    padding: 0.25rem 0.75rem;
    background-color: #ecf0f1;
    border-radius: 12px;
    font-size: 0.85rem;
}

.datei-beschreibung {
    padding: 0.75rem;
    background-color: white;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #555;
}

/* Sidebar */
.artikel-details-sidebar {
    grid-column: 2;
    position: sticky;
    top: 2rem;
}

.sidebar-block {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

/* Autoren */
.autoren-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.autor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ecf0f1;
}

    .autor-item:last-child {
        border-bottom: none;
    }

.autor-icon {
    font-size: 1.5rem;
}

.autor-name {
    font-weight: 500;
    color: #2c3e50;
}

/* Kategorien */
.kategorien-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kategorie-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ecf0f1;
}

    .kategorie-item:last-child {
        border-bottom: none;
    }

.kategorie-icon {
    font-size: 1.3rem;
}

.kategorie-name {
    color: #2c3e50;
}

/* Metadaten */
.metadata-list {
    margin: 0;
}

.metadata-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0.75rem 0 0.25rem 0;
}

    .metadata-label:first-child {
        margin-top: 0;
    }

.metadata-value {
    color: #2c3e50;
    font-size: 0.95rem;
    margin: 0 0 0.75rem 0;
    padding-left: 1rem;
}

/* Footer */
.artikel-details-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

/* Responsive */
@media (max-width: 1024px) {
    .artikel-details-content {
        grid-template-columns: 1fr;
    }

    .artikel-details-title-section,
    .artikel-details-zusammenfassung,
    .artikel-details-tags-section,
    .artikel-details-inhalt,
    .artikel-details-urls,
    .artikel-details-dateien {
        grid-column: 1;
    }

    .artikel-details-sidebar {
        grid-column: 1;
        position: static;
    }
}

@media (max-width: 768px) {
    .artikel-details-container {
        padding: 1rem;
    }

    .artikel-details-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .artikel-details-zusammenfassung {
        padding: 1.5rem;
    }

    .zusammenfassung-content {
        font-size: 1rem;
    }

    .inhalt-content {
        font-size: 1rem;
    }

    .sidebar-block {
        padding: 1rem;
    }
}

/* Video: Overlay dynamisch erzeugt in der Detailansicht (kein Wrapper im gespeicherten HTML) */
.oo-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
    background: transparent;
}

    .oo-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 (JS setzt ihn zur Laufzeit zusätzlich per style) */
img.oo-bild-embed {
    cursor: pointer;
}
