/* ==========================================================================
   AegisSight Lagebild Page - Dark Theme Design Refresh
   ========================================================================== */

/* ---------- Variables ---------- */
.lagebild-page {
    --lb-bg: #0B1121;
    --lb-bg-card: #151D2E;
    --lb-bg-secondary: #1A2440;
    --lb-border: #1E2D45;
    --lb-text: #E8ECF4;
    --lb-text-sec: #8896AB;
    --lb-accent: #C8A851;
    --lb-accent-hover: #B5923E;
    --lb-success: #10B981;
    --lb-warning: #F59E0B;
    --lb-error: #EF4444;
    --lb-glow: rgba(200, 168, 81, 0.35);
    --lb-glow-soft: rgba(200, 168, 81, 0.15);
}

/* ---------- Page Base ---------- */
.lagebild-page {
    background: var(--lb-bg);
    min-height: 100vh;
    color: var(--lb-text);
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--lb-accent), #E8D48B);
    z-index: 99999;
    transition: width 0.08s linear;
    box-shadow: 0 0 10px var(--lb-glow), 0 0 3px var(--lb-accent);
}

/* ---------- Navigation Dark Override ---------- */
.lagebild-page .navbar {
    background: rgba(11, 17, 33, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lb-border) !important;
    box-shadow: none !important;
}
.lagebild-page .logo-img {
    background: rgba(160, 175, 200, 0.85);
    padding: 4px 10px;
    border-radius: 6px;
}
.lagebild-page .nav-menu a {
    color: var(--lb-text) !important;
}
.lagebild-page .nav-menu a:hover {
    color: var(--lb-accent) !important;
}
.lagebild-page .nav-menu a.nav-active {
    color: var(--lb-accent) !important;
}
.lagebild-page .lang-toggle {
    color: var(--lb-text-sec) !important;
    border-color: var(--lb-border) !important;
}
.lagebild-page .lang-toggle:hover {
    color: var(--lb-accent) !important;
    border-color: var(--lb-accent) !important;
}
.lagebild-page .hamburger span {
    background: var(--lb-text) !important;
}

/* ---------- Footer Dark Override ---------- */
.lagebild-page .footer {
    background: #080D1A !important;
    border-top: 1px solid var(--lb-border);
}
.lagebild-page .footer h4 {
    color: var(--lb-accent) !important;
}
.lagebild-page .footer p,
.lagebild-page .footer a,
.lagebild-page .footer li,
.lagebild-page .footer ul li a {
    color: var(--lb-text-sec) !important;
}
.lagebild-page .footer a:hover {
    color: var(--lb-accent) !important;
}
.lagebild-page .copyright {
    color: var(--lb-text-sec) !important;
    opacity: 0.5;
}

/* ---------- Hero Section ---------- */
.lagebild-hero {
    background: linear-gradient(135deg, #0a0f1c 0%, #111B30 50%, #0B1121 100%);
    padding: 150px 20px 70px;
    text-align: center;
    color: var(--lb-text);
    font-weight: normal;
    position: relative;
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(200, 168, 81, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(200, 168, 81, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(15, 114, 181, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.lagebild-hero .container {
    position: relative;
    z-index: 1;
}

/* Hero Particles Canvas */
#hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 168, 81, 0.12);
    border: 1px solid rgba(200, 168, 81, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--lb-accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px var(--lb-glow-soft);
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--lb-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 8px var(--lb-glow);
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* Data Source Note */
.data-source-note {
    font-size: 0.75rem;
    color: var(--lb-text-sec);
    letter-spacing: 0.3px;
    margin: 0 0 12px;
    padding: 0;
}

/* Hero Title */
.lagebild-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 5px;
    color: var(--lb-text);
    font-weight: normal;
    margin: 0 0 0.3rem;
    line-height: 1;
}
.hero-incident-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.5rem;
}
.hero-date-info {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Hero Stat Cards */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 16px;
    border-radius: var(--radius-md, 8px);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
    border-color: rgba(200, 168, 81, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 24px var(--lb-glow-soft), 0 4px 16px rgba(0, 0, 0, 0.2);
}
.stat-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 168, 81, 0.1);
    border-radius: var(--radius-md, 8px);
    color: var(--lb-accent);
    flex-shrink: 0;
}
.stat-card-icon svg {
    width: 18px;
    height: 18px;
}
.stat-card-content {
    min-width: 0;
}
.stat-card-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lb-text);
    font-weight: normal;
    line-height: 1.1;
}
.stat-card-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ---------- Live Feed Ticker ---------- */
.live-feed {
    margin-top: 1.5rem;
    height: 28px;
    overflow: hidden;
    position: relative;
}
.live-feed-item {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
}
.live-feed-item.active {
    opacity: 1;
    transform: translateY(0);
}
.live-feed-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lb-accent);
    box-shadow: 0 0 6px var(--lb-glow);
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

/* ---------- Control Bar ---------- */
.control-bar {
    background: var(--lb-bg-card);
    border-bottom: 1px solid var(--lb-border);
    padding: 0 20px;
}
.control-bar .container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Timeline Strip */
.timeline-wrapper {
    padding: 12px 0;
    border-bottom: 1px solid var(--lb-border);
}
.timeline-strip {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 168, 81, 0.4) rgba(200, 168, 81, 0.08);
}
.timeline-strip::-webkit-scrollbar {
    height: 4px;
}
.timeline-strip::-webkit-scrollbar-track {
    background: transparent;
}
.timeline-strip::-webkit-scrollbar-thumb {
    background: var(--lb-border);
    border-radius: 2px;
}
.timeline-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--radius-sm, 4px);
    border: 1px solid var(--lb-border);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    min-width: 64px;
    position: relative;
    color: var(--lb-text-sec);
    font-family: inherit;
}
.timeline-day:hover {
    background: var(--lb-bg-secondary);
    border-color: rgba(200, 168, 81, 0.4);
}
.timeline-day.active {
    background: rgba(200, 168, 81, 0.1);
    border-color: var(--lb-accent);
    box-shadow: 0 0 12px var(--lb-glow-soft);
}
.timeline-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: var(--lb-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    border: 2px solid var(--lb-bg-card);
    box-shadow: 0 0 8px var(--lb-glow);
}
.timeline-day-num {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}
.timeline-day.active .timeline-day-num {
    color: var(--lb-accent);
}
.timeline-day-month {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-top: 1px;
}
.timeline-day-count {
    font-size: 0.68rem;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--lb-border);
    width: 100%;
    text-align: center;
    opacity: 0.6;
}
.timeline-day.active .timeline-day-count {
    opacity: 1;
    color: var(--lb-accent);
}
.timeline-day-updates {
    font-size: 0.58rem;
    opacity: 0.4;
}
.timeline-day-label {
    font-size: 0.58rem;
    color: var(--lb-accent);
    font-weight: 600;
    margin-top: 2px;
}

/* Timeline Dropdown (Horizontal Timeline) */
.timeline-dropdown {
    display: none;
    background: var(--lb-bg-secondary);
    border: 1px solid var(--lb-border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm, 4px) var(--radius-sm, 4px);
    padding: 8px 0;
    margin-top: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 168, 81, 0.4) rgba(200, 168, 81, 0.08);
}
.timeline-dropdown.open {
    display: block;
}
.timeline-dropdown::-webkit-scrollbar {
    height: 6px;
}
.timeline-dropdown::-webkit-scrollbar-track {
    background: rgba(200, 168, 81, 0.08);
    border-radius: 3px;
}
.timeline-dropdown::-webkit-scrollbar-thumb {
    background: rgba(200, 168, 81, 0.35);
    border-radius: 3px;
}
.timeline-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 168, 81, 0.55);
}
.h-timeline-track {
    display: flex;
    align-items: flex-start;
    min-width: min-content;
    padding: 4px 24px;
    gap: 32px;
}
.h-timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 70px;
    position: relative;
    cursor: pointer;
    padding: 4px 0;
    background: none;
    border: none;
    font-family: inherit;
    transition: all 0.2s;
}
/* Connecting line through dot center */
.h-timeline-point::before {
    content: '';
    position: absolute;
    top: 29px;
    left: -16px;
    right: -16px;
    height: 2px;
    background: rgba(200, 168, 81, 0.2);
    z-index: 0;
}
.h-timeline-point:first-child::before {
    left: 50%;
    right: -16px;
}
.h-timeline-point:last-child::before {
    left: -16px;
    right: 50%;
}
.h-timeline-point:only-child::before {
    display: none;
}
.h-timeline-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lb-text-sec);
    margin-bottom: 8px;
    line-height: 1;
    transition: color 0.2s;
}
.h-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(200, 168, 81, 0.35);
    z-index: 1;
    position: relative;
    transition: all 0.2s;
    box-shadow: 0 0 4px rgba(200, 168, 81, 0.1);
}
.h-timeline-meta {
    font-size: 0.65rem;
    color: var(--lb-text-sec);
    line-height: 1.4;
    margin-top: 2px;
    transition: color 0.2s;
    white-space: normal;
    text-align: center;
}
.h-timeline-meta:first-of-type {
    margin-top: 8px;
}
/* Hover */
.h-timeline-point:hover .h-timeline-time {
    color: var(--lb-text);
}
.h-timeline-point:hover .h-timeline-dot {
    background: var(--lb-accent);
    box-shadow: 0 0 8px var(--lb-glow-soft);
    transform: scale(1.2);
}
/* Active */
.h-timeline-point.active .h-timeline-time {
    color: var(--lb-accent);
}
.h-timeline-point.active .h-timeline-dot {
    width: 12px;
    height: 12px;
    margin: -1px 0;
    background: var(--lb-accent);
    box-shadow: 0 0 12px var(--lb-glow);
    animation: h-timeline-pulse 2s infinite;
}
@keyframes h-timeline-pulse {
    0%, 100% { box-shadow: 0 0 12px var(--lb-glow); transform: scale(1); }
    50% { box-shadow: 0 0 20px var(--lb-glow), 0 0 6px var(--lb-accent); transform: scale(1.15); }
}
.h-timeline-point.active .h-timeline-meta {
    color: var(--lb-accent);
    font-weight: 600;
}

/* Tab Navigation */
.tab-nav {
    justify-content: center;
    display: flex;
    gap: 0;
}
.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lb-text-sec);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
}
.tab-btn:hover {
    color: var(--lb-text);
    text-shadow: 0 0 12px var(--lb-glow-soft);
}
.tab-btn.active {
    color: var(--lb-accent);
    border-bottom-color: var(--lb-accent);
    text-shadow: 0 0 16px var(--lb-glow-soft);
}
.tab-badge {
    display: inline-block;
    background: rgba(200, 168, 81, 0.12);
    color: var(--lb-accent);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}
.tab-btn.active .tab-badge {
    background: rgba(200, 168, 81, 0.22);
}

/* Tab Panels with Slide Animation */
.tab-panel { display: none; }
.tab-panel.active {
    display: block;
    animation: tabFadeSlideIn 0.35s ease-out;
}
@keyframes tabFadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Main Content ---------- */
.lagebild-main {
    padding: 2rem 20px 4rem;
}
.lagebild-main .container {
    max-width: 1000px;
    margin: 0 auto;
}

/* ---------- Content Cards ---------- */
.content-card {
    background: var(--lb-bg-card);
    border-radius: var(--radius-sm, 4px);
    border: 1px solid var(--lb-border);
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}
.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--lb-accent);
    box-shadow: 0 2px 12px var(--lb-glow-soft);
}
.card-header {
    padding: 24px 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lb-text);
    margin: 0;
}
.card-timestamp {
    font-size: 0.85rem;
    color: var(--lb-text-sec);
    font-weight: 500;
}
.card-description {
    font-size: 0.85rem;
    color: var(--lb-text-sec);
    margin: 4px 0 0;
    width: 100%;
}
.card-body {
    padding: 20px 32px 28px;
}
.card-footer {
    padding: 0 32px 28px;
    border-top: 1px solid var(--lb-border);
    padding-top: 20px;
    margin: 0 32px;
}

/* ---------- Lagebild Summary ---------- */
#summary-content {
    line-height: 1.7;
    font-size: 0.9rem;
    color: var(--lb-text);
}
#summary-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lb-accent);
    margin: 1.8rem 0 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--lb-border);
}
#summary-content h2:first-child {
    margin-top: 0;
}
#summary-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--lb-text);
    margin: 1.5rem 0 0.6rem;
}
#summary-content p {
    margin: 0 0 1rem;
}
#summary-content ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}
#summary-content li {
    margin-bottom: 0.4rem;
    color: var(--lb-text);
}
#summary-content strong {
    color: var(--lb-text);
    font-weight: normal;
}

/* Citations */
.citation-ref {
    color: var(--lb-accent);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.78em;
    vertical-align: super;
    line-height: 1;
    padding: 0 1px;
    transition: color 0.2s;
}
.citation-ref:hover {
    color: var(--lb-accent-hover);
    text-decoration: underline;
}

/* Source Highlight (smooth scroll target) */
.source-highlight {
    background: rgba(200, 168, 81, 0.15) !important;
    border-radius: 4px;
    transition: background 1.5s ease-out;
}

/* ---------- Source Overview Grid ---------- */
.sources-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.sources-overview-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lb-text);
}
.sources-lang-chips {
    display: flex;
    gap: 8px;
}
.sources-lang-chip {
    background: rgba(200, 168, 81, 0.12);
    color: var(--lb-accent);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}
.sources-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.source-tile {
    background: var(--lb-bg-secondary);
    border: 1px solid var(--lb-border);
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 64px;
    min-width: 0;
    overflow: hidden;
}
.source-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--lb-border);
    border-radius: 4px 4px 0 0;
    transition: background 0.2s;
}
.source-tile:hover {
    border-color: rgba(200, 168, 81, 0.4);
    box-shadow: 0 0 20px var(--lb-glow-soft);
}
.source-tile:hover::before {
    background: var(--lb-accent);
}
.source-tile.active {
    border-color: var(--lb-accent);
    box-shadow: 0 0 24px var(--lb-glow-soft);
    background: rgba(200, 168, 81, 0.06);
}
.source-tile.active::before {
    background: var(--lb-accent);
}
.source-tile-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.source-tile-favicon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}
.source-tile-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.source-tile-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}
.source-tile-lang {
    font-size: 0.65rem;
    color: var(--lb-text-sec);
    background: var(--lb-bg-card);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--lb-border);
    text-transform: uppercase;
}
.source-tile-count {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--lb-accent);
    line-height: 1;
}

/* Source Detail Panel */
.source-detail-panel {
    grid-column: 1 / -1;
    background: var(--lb-bg-card);
    border: 1px solid rgba(200, 168, 81, 0.3);
    border-radius: 4px;
    overflow: hidden;
    animation: sourceDetailSlideIn 0.3s ease-out;
}
@keyframes sourceDetailSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.source-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--lb-border);
    background: rgba(200, 168, 81, 0.04);
}
.source-detail-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lb-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.source-detail-count {
    font-size: 0.85rem;
    color: var(--lb-text-sec);
    margin-left: auto;
}
.source-detail-close {
    background: none;
    border: none;
    color: var(--lb-text-sec);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
    font-family: inherit;
}
.source-detail-close:hover {
    color: var(--lb-text);
}
.source-detail-articles {
    padding: 8px 20px 16px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--lb-border) transparent;
}
.source-detail-article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--lb-border);
}
.source-detail-article:last-child {
    border-bottom: none;
}
.source-detail-article-title {
    font-size: 0.88rem;
    color: var(--lb-text);
    text-decoration: none;
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}
a.source-detail-article-title:hover {
    color: var(--lb-accent);
}
.source-detail-article-date {
    font-size: 0.78rem;
    color: var(--lb-text-sec);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Inline sources (Lagebild tab footer) - Collapsible */
.inline-sources-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lb-text-sec);
    cursor: pointer;
    padding: 10px 16px;
    user-select: none;
    transition: all 0.2s;
    background: var(--lb-bg-secondary);
    border: 1px solid var(--lb-border);
    border-radius: var(--radius-sm, 4px);
}
.inline-sources-toggle:hover {
    color: var(--lb-accent);
    border-color: rgba(200, 168, 81, 0.4);
    background: rgba(200, 168, 81, 0.06);
}
.inline-sources-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 1.1rem;
    transition: transform 0.2s;
    color: var(--lb-accent);
}
#inline-sources.open .inline-sources-arrow {
    transform: rotate(90deg);
}
.inline-sources-body {
    display: none;
    padding: 8px 0 0;
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--lb-text-sec);
}
#inline-sources.open .inline-sources-body {
    display: block;
}
.src-inline .src-nr {
    color: var(--lb-accent);
    font-weight: 700;
}
.src-sep {
    color: var(--lb-border);
    margin: 0 2px;
}
.inline-sources-body a {
    color: var(--lb-accent);
    text-decoration: none;
}
.inline-sources-body a:hover {
    text-decoration: underline;
}



/* ---------- Map ---------- */
#map-container {
    background: var(--lb-bg-secondary);
}
.lagebild-page .map-legend {
    background: var(--lb-bg-card) !important;
    color: var(--lb-text) !important;
    border: 1px solid var(--lb-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
/* Leaflet controls dark */
.lagebild-page .leaflet-control-zoom a {
    background: var(--lb-bg-card) !important;
    color: var(--lb-text) !important;
    border-color: var(--lb-border) !important;
}
.lagebild-page .leaflet-control-zoom a:hover {
    background: var(--lb-bg-secondary) !important;
}
.lagebild-page .leaflet-control-attribution {
    background: rgba(11, 17, 33, 0.8) !important;
    color: var(--lb-text-sec) !important;
}
.lagebild-page .leaflet-control-attribution a {
    color: var(--lb-accent) !important;
}

/* Map Pulse Markers */
.pulse-marker-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
}
.pulse-marker-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid;
    animation: mapPulseRing 2.5s ease-out infinite;
    opacity: 0;
}
.pulse-marker-ring:nth-child(2) {
    animation-delay: 0.8s;
}
.pulse-marker-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 5px;
    left: 5px;
}
@keyframes mapPulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* ---------- Fact Checks (Filter + Accordion) ---------- */
.fc-stats {
    justify-content: center;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.fc-stat {
    background: var(--lb-bg-secondary);
    border-radius: var(--radius-sm, 4px);
    padding: 12px 18px;
    text-align: center;
    min-width: 75px;
    border: 1px solid var(--lb-border);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.fc-stat:hover {
    border-color: rgba(200, 168, 81, 0.4);
    box-shadow: 0 0 16px var(--lb-glow-soft);
}
.fc-stat.active {
    border-color: var(--lb-accent);
    box-shadow: 0 0 20px var(--lb-glow-soft);
    background: rgba(200, 168, 81, 0.06);
}
.fc-stat.confirmed {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}
.fc-stat.confirmed.active {
    border-color: var(--lb-success);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}
.fc-stat.unconfirmed {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}
.fc-stat.unconfirmed.active {
    border-color: var(--lb-warning);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}
.fc-stat.contradicted {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}
.fc-stat.contradicted.active {
    border-color: var(--lb-error);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}
.fc-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--lb-text);
}
.fc-stat.confirmed .fc-stat-num { color: var(--lb-success); }
.fc-stat.unconfirmed .fc-stat-num { color: var(--lb-warning); }
.fc-stat.contradicted .fc-stat-num { color: var(--lb-error); }
.fc-stat-label {
    font-size: 0.72rem;
    color: var(--lb-text-sec);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Factcheck Icon (from real Monitor) */
.fc-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.fc-icon.small {
    width: 18px;
    height: 18px;
    font-size: 10px;
}
.fc-icon.confirmed, .fc-icon.established {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.fc-icon.unconfirmed, .fc-icon.unverified {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}
.fc-icon.contradicted, .fc-icon.disputed, .fc-icon.false {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
.fc-icon.developing {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Accordion List */
.fc-list {
    border: 1px solid var(--lb-border);
    border-radius: 4px;
    overflow: hidden;
}
.fc-row {
    border-bottom: 1px solid var(--lb-border);
}
.fc-row:last-child {
    border-bottom: none;
}
.fc-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.fc-row-header:hover {
    background: var(--lb-bg-secondary);
}
.fc-row.open .fc-row-header {
    background: var(--lb-bg-secondary);
    border-bottom: 1px solid var(--lb-border);
}
.fc-row-claim {
    flex: 1;
    font-size: 0.88rem;
    color: var(--lb-text);
    line-height: 1.4;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fc-row.open .fc-row-claim {
    white-space: normal;
    text-overflow: unset;
}
.fc-row-sources {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--lb-text-sec);
    background: var(--lb-bg-card);
    border: 1px solid var(--lb-border);
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
}
.fc-row-history-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lb-accent);
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--lb-glow);
}
.fc-row-chevron {
    flex-shrink: 0;
    color: var(--lb-text-sec);
    font-size: 0.8rem;
    transition: transform 0.2s;
    width: 16px;
    text-align: center;
}
.fc-row.open .fc-row-chevron {
    transform: rotate(90deg);
    color: var(--lb-accent);
}

/* Expandable Detail */
.fc-row-detail {
    display: none;
    background: rgba(0, 0, 0, 0.15);
}
.fc-row.open .fc-row-detail {
    display: block;
    animation: sourceDetailSlideIn 0.25s ease-out;
}
.fc-row-detail-inner {
    padding: 14px 14px 14px 46px;
}
.fc-detail-status {
    font-size: 0.85rem;
    color: var(--lb-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fc-detail-evidence {
    font-size: 0.82rem;
    color: var(--lb-text-sec);
    line-height: 1.6;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid var(--lb-border);
    margin-bottom: 8px;
}
.fc-detail-evidence strong {
    color: var(--lb-text);
}
.fc-detail-evidence a {
    color: var(--lb-accent) !important;
    word-break: break-all;
}
.fc-detail-progression {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--lb-border);
}
.fc-detail-prog-label {
    color: var(--lb-text-sec);
    font-weight: 500;
    margin-right: 4px;
}
.progression-arrow {
    color: var(--lb-accent);
    font-size: 1rem;
}
.progression-step {
    display: flex;
    align-items: center;
    gap: 4px;
}
.progression-time {
    color: var(--lb-text-sec);
    font-size: 0.7rem;
}

/* ---------- Floating CTA Pill ---------- */
.floating-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(21, 29, 46, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 168, 81, 0.25);
    border-radius: 50px;
    padding: 10px 14px 10px 24px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.floating-cta.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.floating-cta.dismissed {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
    pointer-events: none;
}
.floating-cta-text {
    font-size: 0.88rem;
    color: var(--lb-text-sec);
    font-weight: 500;
    white-space: nowrap;
}
.floating-cta-btn {
    display: inline-block;
    background: var(--lb-accent);
    color: #0a0f1c;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 16px var(--lb-glow-soft);
}
.floating-cta-btn:hover {
    background: var(--lb-accent-hover);
    transform: scale(1.03);
    box-shadow: 0 0 28px var(--lb-glow);
}
.floating-cta-close {
    background: none;
    border: none;
    color: var(--lb-text-sec);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
    font-family: inherit;
}
.floating-cta-close:hover {
    color: var(--lb-text);
}

@media (max-width: 768px) {
    .floating-cta {
        left: 12px;
        right: 12px;
        transform: translateX(0) translateY(100px);
        border-radius: 16px;
        gap: 10px;
        padding: 10px 12px 10px 16px;
    }
    .floating-cta.visible {
        transform: translateX(0) translateY(0);
    }
    .floating-cta.dismissed {
        transform: translateX(0) translateY(100px);
    }
    .floating-cta-text {
        font-size: 0.8rem;
        white-space: normal;
    }
    .floating-cta-btn {
        font-size: 0.8rem;
        padding: 7px 14px;
        flex-shrink: 0;
    }
}

/* ---------- Loading Skeleton ---------- */
.loading-skeleton { padding: 20px 0; }
.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, var(--lb-bg-secondary) 25%, var(--lb-border) 50%, var(--lb-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm, 4px);
    margin-bottom: 12px;
}
.skeleton-line.short { width: 60%; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error */
.lagebild-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--lb-text-sec);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 1024px) {
    .sources-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero-stats {
        max-width: 550px;
    }
    .stat-card {
        padding: 12px 14px;
    }
    .stat-card-value {
        font-size: 1.15rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .lagebild-hero {
        padding: 120px 16px 50px;
    }
    .lagebild-hero h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    .hero-incident-title {
        font-size: 1.2rem;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 1.5rem;
    }
    .stat-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .stat-card-icon {
        width: 32px;
        height: 32px;
    }
    .stat-card-value {
        font-size: 1.1rem;
    }
    .stat-card-label {
        font-size: 0.65rem;
    }

    .control-bar .container {
        flex-direction: column;
        align-items: stretch;
    }
    .timeline-strip {
        gap: 3px;
    }
    .timeline-day {
        padding: 6px 10px;
        min-width: 54px;
    }
    .timeline-day-num {
        font-size: 0.95rem;
    }
    .timeline-dropdown {
        padding: 6px 0;
    }
    .h-timeline-track {
        padding: 4px 12px;
    }
    .h-timeline-point {
        min-width: 64px;
    }
    .h-timeline-time {
        font-size: 0.68rem;
    }
    .h-timeline-meta {
        font-size: 0.6rem;
    }
    .tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tab-btn {
        padding: 10px 14px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .card-header {
        padding: 16px 20px 0;
    }
    .card-body {
        padding: 16px 20px 20px;
    }
    .card-footer {
        margin: 0 20px;
        padding: 16px 20px 20px;
    }
    .lagebild-main {
        padding: 1rem 12px 3rem;
    }
    .fc-row-claim {
        font-size: 0.82rem;
    }
    .fc-row-detail-inner {
        padding: 12px 12px 12px 12px;
    }
    .fc-stat {
        padding: 10px 14px;
        min-width: 65px;
    }
    .sources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .source-tile {
        padding: 10px;
        min-height: 70px;
    }
    .source-tile-count {
        font-size: 1.1rem;
    }
    .source-detail-header {
        padding: 12px 16px;
    }
    .source-detail-articles {
        padding: 8px 16px 12px;
        max-height: 350px;
    }
    .source-detail-article {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    #map-container {
        height: 350px !important;
    }
    .fc-stats {
    justify-content: center;
        gap: 8px;
    }
    .fc-stat {
        padding: 10px 14px;
        min-width: 70px;
    }
    .status-progression {
        gap: 4px;
    }


    .live-feed {
        margin-top: 1rem;
    }
}

/* Marker-Cluster Dark Theme */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: rgba(21, 29, 46, 0.8);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: rgba(200, 168, 81, 0.9);
    color: #0A1832;
    font-weight: 600;
}

/* === Neueste Entwicklungen / Ueberblick-Tab === */
.dev-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dev-bullet {
    background: rgba(30, 45, 69, 0.5);
    border-left: 3px solid #C8A851;
    border-radius: 4px;
    padding: 10px 14px;
}
.dev-bullet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.dev-sources {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-width: 0;
}
.dev-source-pill {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(200, 168, 81, 0.18);
    color: #E8ECF4;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background 0.15s;
}
a.dev-source-pill:hover {
    background: rgba(200, 168, 81, 0.35);
    text-decoration: none;
    color: #E8ECF4;
}
.dev-time {
    color: #8896AB;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}
.dev-body {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #E8ECF4;
}
.empty-hint {
    color: #8896AB;
    font-style: italic;
    padding: 16px 0;
}
