/* =========================================
   CHARAKTER-DETAILS.CSS – Charakter-Detailseite
   Zusatzinfos, Charset, Kampagne-/Spieler-Bezug (Titel/Layout in site.css)
========================================= */

.detail-nickname {
    font-size: 26px;
    font-weight: 500;
    color: #666;
}

.detail-textblock {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.detail-quote {
    font-size: 17px;
    font-style: italic;
    color: #666;
    margin-top: 12px;
}

.detail-text {
    line-height: 1.8;
    font-size: 17px;
    color: #222;
    white-space: pre-line;
}

.detail-subtitle {
    margin-top: 24px;
}

/* ================================
   HISTORISCHE EINTRÄGE
=============================== */
.old-entry {
    padding: 14px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.old-entry:first-child {
    border-top: none;
    padding-top: 0;
}

.old-entry p {
    margin: 6px 0;
    line-height: 1.6;
}

.current-entry {
    background: rgba(31, 115, 217, 0.06);
    border: 1px solid rgba(31, 115, 217, 0.18);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.current-entry:first-child {
    padding-top: 16px;
}

/* ================================
   VERWANDTE (Kampagne / Spieler)
=============================== */
.detail-related {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.related-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.related-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.related-card h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.related-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #f3f4f6 0%, #e8ecef 100%);
}

.related-name {
    font-size: 22px;
    font-weight: 700;
    color: #1f73d9;
}

/* ================================
   ZUSATZINFOS / CHARSET
=============================== */
.zusatz-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 12px;
}

.zusatz-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* Mit Bild: Bild links (320px), Text rechts – ohne Bild füllt die Karte die ganze Zeile (nur 1fr oben) */
.zusatz-card:has(.zusatz-image) {
    grid-template-columns: 320px 1fr;
}

.zusatz-image {
    height: 100%;
    overflow: hidden;
}

.zusatz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zusatz-text {
    padding: 12px;
    line-height: 1.7;
    white-space: pre-line;
    align-self: center;
}

.charset-entry {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 18px;
    align-items: center;
    padding: 16px;
}

.charset-entry-text p {
    margin: 6px 0;
    line-height: 1.6;
}

.charset-entry-image img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, #f3f4f6 0%, #e8ecef 100%);
}

/* ================================
   RESPONSIVE
=============================== */
@media (max-width: 900px) {
    .charset-entry {
        grid-template-columns: 1fr;
    }

    .charset-entry-image {
        max-width: 140px;
    }
}
