/* =============================================================
   Limbus Wiki – Public Stylesheet
   Enthält: Auto-Link-Stil, Einzelseite, Archiv, Zeitleiste
   ============================================================= */

/* -----------------------------------------------------------
   Auto-Link: gestrichelte Linie, kein typischer Link-Look
   ----------------------------------------------------------- */
.lmb-wiki-autolink {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: 1.5px dashed currentColor;
    opacity: 0.75;
    cursor: help;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lmb-wiki-autolink:hover {
    opacity: 1;
    border-bottom-color: #1a237e;
    color: inherit !important;
}

/* -----------------------------------------------------------
   Einzelseite (single-lmb_wiki)
   ----------------------------------------------------------- */
.lmb-wiki-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.lmb-wiki-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .lmb-wiki-layout {
        grid-template-columns: 1fr;
    }
    .lmb-wiki-infobox {
        order: -1;
    }
}

/* Breadcrumb */
.lmb-wiki-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}
.lmb-wiki-breadcrumb a { color: #1a237e; text-decoration: none; }
.lmb-wiki-breadcrumb a:hover { text-decoration: underline; }
.lmb-wiki-breadcrumb span { margin: 0 6px; }

/* Seitentitel */
.lmb-wiki-title {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.2;
}

.lmb-wiki-status-badge {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 16px;
}
.lmb-wiki-status-canon     { background: #d4edda; color: #155724; }
.lmb-wiki-status-non_canon { background: #f8d7da; color: #721c24; }
.lmb-wiki-status-draft     { background: #fff3cd; color: #856404; }
.lmb-wiki-status-legend    { background: #e0d7f8; color: #4a2c91; }

/* Inhaltsbereich */
.lmb-wiki-content {
    font-size: 17px;
    line-height: 1.8;
    color: #2d2d2d;
}
.lmb-wiki-content h2 {
    font-size: 22px;
    margin: 32px 0 12px;
    border-bottom: 2px solid #e8ebf0;
    padding-bottom: 6px;
    color: #1a237e;
}
.lmb-wiki-content h3 { font-size: 18px; margin: 24px 0 8px; }

/* Infobox */
.lmb-wiki-infobox {
    background: #f8f9fc;
    border: 1px solid #dce3f0;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 24px;
}
.lmb-wiki-infobox-cover {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}
.lmb-wiki-infobox-body {
    padding: 16px;
}
.lmb-wiki-infobox-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    font-family: 'Inter', sans-serif;
}
.lmb-wiki-infobox-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}
.lmb-wiki-infobox-row:last-child { border-bottom: none; }
.lmb-wiki-infobox-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
    font-family: 'Inter', sans-serif;
}
.lmb-wiki-teaser {
    font-size: 13px;
    font-style: italic;
    color: #555;
    margin: 0 0 12px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* Verwandte Einträge */
.lmb-wiki-related {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #e8ebf0;
}
.lmb-wiki-related-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a237e;
    margin: 0 0 16px;
    font-family: 'Inter', sans-serif;
}
.lmb-wiki-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.lmb-wiki-related-card {
    background: #f8f9fc;
    border: 1px solid #dce3f0;
    border-radius: 8px;
    padding: 12px 14px;
    text-decoration: none;
    color: #1a1a2e;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s, border-color 0.15s;
}
.lmb-wiki-related-card:hover {
    background: #e8edf8;
    border-color: #1a237e;
    color: #1a237e;
}

/* -----------------------------------------------------------
   Archivseite (archive-lmb_wiki)
   ----------------------------------------------------------- */
.lmb-wiki-archive {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    font-family: 'Inter', sans-serif;
}
.lmb-wiki-archive-header {
    margin-bottom: 32px;
}
.lmb-wiki-archive-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.lmb-wiki-archive-desc {
    font-size: 16px;
    color: #666;
    max-width: 600px;
}
.lmb-wiki-cat-section { margin-bottom: 40px; }
.lmb-wiki-cat-heading {
    font-size: 20px;
    font-weight: 700;
    color: #1a237e;
    border-left: 4px solid #1a237e;
    padding-left: 12px;
    margin-bottom: 16px;
}
.lmb-wiki-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.lmb-wiki-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #1a1a2e;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: block;
}
.lmb-wiki-card:hover {
    box-shadow: 0 6px 20px rgba(26,35,126,0.12);
    transform: translateY(-2px);
}
.lmb-wiki-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #e8edf8;
}
.lmb-wiki-card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.lmb-wiki-card-body {
    padding: 12px 14px;
}
.lmb-wiki-card-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a2e;
}
.lmb-wiki-card-teaser {
    font-size: 12px;
    color: #777;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -----------------------------------------------------------
   Zeitleiste
   ----------------------------------------------------------- */
.lmb-timeline {
    position: relative;
    padding: 24px 0;
    font-family: 'Inter', sans-serif;
}

.lmb-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #dce3f0 5%, #dce3f0 95%, transparent);
    transform: translateX(-50%);
}

.lmb-timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 0 calc(50% + 32px) 32px 0;
    position: relative;
}
.lmb-timeline-item.lmb-timeline-right {
    justify-content: flex-start;
    padding: 0 0 32px calc(50% + 32px);
}

.lmb-timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px currentColor;
    transform: translateX(-50%);
    z-index: 1;
}

.lmb-timeline-box {
    background: #fff;
    border: 2px solid #dce3f0;
    border-radius: 10px;
    padding: 16px 18px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.lmb-timeline-date {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 6px;
    opacity: 0.9;
}

.lmb-timeline-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a2e;
    font-family: 'Georgia', serif;
}

.lmb-timeline-content {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
.lmb-timeline-content p { margin: 0 0 8px; }
.lmb-timeline-content p:last-child { margin-bottom: 0; }

.lmb-timeline-links {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.lmb-timeline-link {
    background: #f0f4ff;
    color: #1a237e;
    border-radius: 10px;
    padding: 2px 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: background 0.15s;
}
.lmb-timeline-link:hover { background: #d8e0f8; }

.lmb-timeline-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 0;
}

@media (max-width: 680px) {
    .lmb-timeline-line { left: 18px; }
    .lmb-timeline-item,
    .lmb-timeline-item.lmb-timeline-right {
        justify-content: flex-start;
        padding: 0 0 24px 44px;
    }
    .lmb-timeline-dot { left: 18px; }
    .lmb-timeline-box { max-width: 100%; }
}

/* -----------------------------------------------------------
   Zeitleiste Horizontal (mode="horizontal")
   ----------------------------------------------------------- */
.lmb-timeline-horizontal {
    overflow-x: auto;
    padding: 20px 0 30px;
    -webkit-overflow-scrolling: touch;
}
.lmb-timeline-h-track {
    display: flex;
    align-items: center;
    position: relative;
    min-width: max-content;
    padding: 180px 40px;
}
.lmb-timeline-h-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #dce3f0 4%, #dce3f0 96%, transparent);
    transform: translateY(-50%);
    z-index: 0;
}
.lmb-timeline-h-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    flex-shrink: 0;
    margin: 0 20px;
    z-index: 1;
}
/* Connector rod from box to dot */
.lmb-timeline-h-connector {
    width: 2px;
    height: 32px;
    flex-shrink: 0;
}
.lmb-timeline-h-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Above: box → connector → dot */
.lmb-timeline-h-above {
    flex-direction: column;
    justify-content: flex-end;
}
.lmb-timeline-h-above .lmb-timeline-h-box {
    margin-bottom: 0;
}

/* Below: dot → connector → box */
.lmb-timeline-h-below {
    flex-direction: column-reverse;
    justify-content: flex-start;
}
.lmb-timeline-h-below .lmb-timeline-h-box {
    margin-top: 0;
}

.lmb-timeline-h-box {
    background: #fff;
    border: 2px solid #dce3f0;
    border-radius: 10px;
    padding: 12px 14px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 13px;
    text-align: center;
}
.lmb-timeline-h-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 6px;
    display: block;
}

.lmb-timeline-h-scroll-hint {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.05em;
    margin: 4px 0 0;
    font-family: 'Inter', sans-serif;
}

