/* ============================================================
   ARTIKEL-TEILEN-KARTE: "POPUP"-ICON - OVERLAY
   Gegenstück zu system/assets/js/artikel_teilen_popup.js. Bewusst als
   eigenständige kleine Overlay-Komponente (nicht das bestehende
   .logo-modal aus thema/inhalt.php/neuesthema/neues_thema.php
   wiederverwendet), weil dieses Popup deutlich mehr Inhalt (kompletter
   Artikeltext) tragen und daher scrollbar/breiter sein muss.
   ============================================================ */
.artikel-teilen-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.artikel-teilen-modal.artikel-teilen-modal-offen {
    display: flex;
}
.artikel-teilen-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 10, 0.65);
    backdrop-filter: blur(3px);
}
.artikel-teilen-modal-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.artikel-teilen-modal-close {
    position: sticky;
    float: right;
    top: 0;
    margin: -0.5rem -0.5rem 0 0.5rem;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f0e6e6;
    color: #a70909;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.15s, transform 0.1s;
}
.artikel-teilen-modal-close:hover {
    background: #eedcdc;
}
.artikel-teilen-modal-close:active {
    transform: scale(0.9);
}
.artikel-teilen-modal-loading {
    text-align: center;
    padding: 3rem 0;
    color: #a70909;
    font-size: 1.2rem;
}
.artikel-teilen-modal-fehler {
    text-align: center;
    padding: 2rem 0;
    color: #999;
    font-style: italic;
}
.artikel-teilen-modal-bild {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    clear: both;
}
.artikel-teilen-modal-titel {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
    clear: both;
}
.artikel-teilen-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 1rem;
}
.artikel-teilen-modal-meta i {
    margin-right: 3px;
    color: #a70909;
}
.artikel-teilen-modal-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
}
.artikel-teilen-modal-text img {
    max-width: 100%;
    border-radius: 8px;
}
.artikel-teilen-modal-quelle {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0e6e6;
    font-size: 0.78rem;
    color: #a70909;
}
.artikel-teilen-modal-quelle a {
    color: #a70909;
    font-weight: 600;
    text-decoration: none;
}
.artikel-teilen-modal-quelle a:hover {
    text-decoration: underline;
}
.artikel-teilen-modal-teaser {
    background: #fbf3f3;
    border: 1px solid rgba(167, 9, 9, 0.15);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #555;
}
.artikel-teilen-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #a70909;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 0.6rem;
}
.artikel-teilen-modal-cta:hover {
    background: #8a0707;
    color: #fff;
}
.artikel-teilen-modal-volle-seite {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.2rem;
    color: #a70909;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
}
.artikel-teilen-modal-volle-seite:hover {
    text-decoration: underline;
}
