/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: #ff6b00;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #ff8c33;
}

:focus-visible {
    outline: 2px solid #ff6b00;
    outline-offset: 2px;
}

/* ===== EDELSTAHL DESIGN SYSTEM ===== */
.steel-panel {
    background: linear-gradient(145deg, rgba(42,42,42,0.93) 0%, rgba(26,26,26,0.93) 50%, rgba(37,37,37,0.93) 100%);
    border: 1px solid #3a3a3a;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.steel-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.steel-panel:hover::after {
    left: 100%;
}

.steel-screw {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 30% 30%, #555, #222);
    border-radius: 50%;
    border: 1px solid #444;
    position: absolute;
    z-index: 2;
}

/* ===== ALL VIDEOS GRAYSCALE ===== */
video {
    filter: grayscale(100%);
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#loading-logo-wrap {
    position: relative;
    max-width: min(800px, 85vw);
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
}

#loading-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
}

#loading-color-reveal {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.3s linear;
}

#loading-color-reveal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
}

#loading-logo-fallback {
    max-width: 100%;
    height: auto;
}

/* Fallback SVG colorize effect */
#loading-logo-fallback.active {
    display: block !important;
    animation: logoReveal 3s ease forwards;
}

@keyframes logoReveal {
    0% { filter: grayscale(1) brightness(0.5); transform: scale(0.95); }
    100% { filter: grayscale(0) brightness(1); transform: scale(1); }
}

#loading-text {
    margin-top: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: #ff6b00;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ===== HEADER ===== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #222;
    height: 77px;
}

.header-inner {
    max-width: 1610px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.header-brand:hover {
    color: #fff;
}

.header-logo {
    height: 74px;
    width: auto;
}

.header-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.header-title-project {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #aaa;
    padding-left: 0.5em;
}

.header-title-doomsday {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff6b00;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

/* Hamburger */
.hamburger {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    position: relative;
    z-index: 10001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 5.5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    z-index: 9999;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 90px 1.5rem 2rem;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 0.5rem;
}

.mobile-menu a {
    display: block;
    padding: 1rem 1.25rem;
    color: #ccc;
    font-size: 1.1rem;
    border-radius: 8px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #252525 100%);
    border: 1px solid #3a3a3a;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
    border-color: #ff6b00;
    transform: translateX(10px);
    color: #fff;
}

.mobile-menu a.active {
    background: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
}

/* ===== BACKGROUND VIDEO ===== */
#bg-video-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* ===== PAGES ===== */
.page {
    display: none;
    padding: 97px 1rem 2rem;
    max-width: 1610px;
    margin: 0 auto;
    min-height: calc(100vh - 77px);
}

.page.active {
    display: block;
}

/* Szenario + Blog Detail: volle Breite für TOC + Content Layout */
#page-scenario,
#page-blog-detail {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.page h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #222;
}

.page h2 strong,
.hero-content h1 strong {
    font-weight: 800;
    color: #ff6b00;
}

/* ===== HOME / HERO ===== */
.hero-content {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.subtitle {
    color: #888;
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    letter-spacing: 0.05em;
}

/* ===== TIMEFRAME FILTER ===== */
.timeframe-filter {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.timeframe-filter::-webkit-scrollbar {
    height: 4px;
}

.timeframe-filter::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

.tf-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tf-btn:hover {
    border-color: #ff6b00;
    color: #fff;
}

.tf-btn.active {
    background: #ff6b00;
    border-color: #ff6b00;
    color: #fff;
    font-weight: 600;
}

/* ===== RANKING BARS ===== */
#ranking-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 2rem;
}

.rank-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #252525 100%);
    border: 1px solid #3a3a3a;
    border-left: 4px solid #ff6b00;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    min-height: 52px;
}

.rank-bar:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.15);
    z-index: 10;
}

.rank-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,107,0,0.2) 0%, rgba(255,107,0,0.05) 100%);
    border-radius: 8px 0 0 8px;
    transition: width 1s ease;
    width: 0;
}

.rank-number {
    color: #ff6b00;
    font-weight: 800;
    font-size: 0.85rem;
    min-width: 36px;
    position: relative;
    z-index: 1;
}

.rank-name {
    flex: 1;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 0.5rem;
}

.rank-stats {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.rank-score {
    color: #888;
    font-size: 0.8rem;
}

.rank-probability {
    color: #ff6b00;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 42px;
    text-align: right;
}

/* ===== HOVER TOOLTIP ===== */
.hover-tooltip {
    position: fixed;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.98);
    border: 2px solid #ff6b00;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    max-width: 360px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.hover-tooltip.visible {
    opacity: 1;
}

.tooltip-title {
    font-weight: 700;
    font-size: 1rem;
    color: #ff6b00;
    margin-bottom: 0.4rem;
}

.tooltip-desc {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.tooltip-stats {
    font-size: 0.8rem;
    color: #888;
}

.tooltip-stats strong {
    color: #ff6b00;
}

/* ===== MOBILE MODAL ===== */
.mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mobile-modal.open {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #252525 100%);
    border: 2px solid #ff6b00;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ff6b00;
}

/* ===== SCENARIO DETAIL ===== */
.back-btn {
    position: fixed;
    top: 87px;
    left: 1rem;
    z-index: 100;
    background: rgba(10,10,10,0.9);
    border: 1px solid #333;
    color: #ff6b00;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
}

.scenario-layout {
    display: flex;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.scenario-toc {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 97px;
    align-self: flex-start;
    padding: 1rem;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: linear-gradient(145deg, rgba(42,42,42,0.93) 0%, rgba(26,26,26,0.93) 50%, rgba(37,37,37,0.93) 100%);
}

.scenario-toc h3 {
    font-size: 0.85rem;
    color: #ff6b00;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.scenario-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
}

.toc-link {
    display: block;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    color: #999;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.toc-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.03);
}

.toc-link.active {
    color: #ff6b00;
    border-left-color: #ff6b00;
    background: rgba(255,107,0,0.08);
}

.scenario-chapters {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.scenario-chapter {
    padding: 2rem 2.5rem;
    position: relative;
}

.scenario-chapter-content {
    position: relative;
    z-index: 1;
}

.scenario-chapter-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #333;
    display: block;
}

/* KI-generiert Hinweis unter Bildern */
.img-ai-notice {
    position: relative;
    display: inline-block;
}

.img-ai-notice::after {
    content: 'Bild: KI-generiert';
    position: absolute;
    bottom: 12px;
    right: 8px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    pointer-events: none;
}

@media (max-width: 1023px) {
    .scenario-layout {
        flex-direction: column;
    }
    .scenario-toc {
        width: 100%;
        position: static;
        max-height: none;
    }
}

.scenario-detail {
    padding-top: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.scenario-detail h1,
.scenario-detail h2,
.scenario-detail h3 {
    color: #ff6b00;
    margin: 1.5rem 0 0.75rem;
}

.scenario-detail h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 300;
    border-bottom: 2px solid #222;
    padding-bottom: 0.5rem;
}

.scenario-detail h1 strong {
    font-weight: 800;
    color: #ff6b00;
}

.scenario-detail p {
    color: #ccc;
    margin-bottom: 1rem;
}

.scenario-detail ul, .scenario-detail ol {
    color: #ccc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.scenario-detail blockquote {
    border-left: 3px solid #ff6b00;
    padding-left: 1rem;
    color: #888;
    font-style: italic;
    margin: 1rem 0;
}

.scenario-detail code {
    background: #1a1a1a;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.scenario-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.scenario-detail th, .scenario-detail td {
    border: 1px solid #333;
    padding: 0.5rem;
    text-align: left;
}

.scenario-detail th {
    background: #1a1a1a;
    color: #ff6b00;
}

.scenario-detail img {
    max-width: 100%;
    border-radius: 8px;
}

/* ===== BLOG DASHBOARD ===== */
.blog-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-week-header {
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem 0 0.25rem;
    border-bottom: 1px solid #222;
    margin-top: 0.5rem;
}

.blog-bar {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    perspective: 600px;
    position: relative;
    overflow: hidden;
    min-height: 72px;
}

.blog-bar:hover {
    transform: perspective(600px) rotateX(2deg) translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,107,0,0.12), 0 4px 20px rgba(0,0,0,0.4);
}

.blog-bar-date {
    color: #555;
    font-size: 0.8rem;
    font-family: monospace;
    min-width: 100px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.blog-bar-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #c0c0c0;
    padding-left: 0.6rem;
    position: relative;
    z-index: 1;
}

.blog-bar-desc {
    color: #888;
    font-size: 0.85rem;
    max-width: 300px;
    text-align: right;
    position: relative;
    z-index: 1;
    display: none;
}

/* ===== NEWS DASHBOARD ===== */
.news-filter-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.news-tile {
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.news-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,107,0,0.15);
}

.news-tile.active {
    border-color: #ff6b00 !important;
    box-shadow: 0 0 0 2px #ff6b00;
}

.news-tile-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
}

.news-tile-label {
    font-size: 0.75rem;
    color: #aaa;
    position: relative;
    z-index: 1;
}

.news-time-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.news-tab {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid #3a3a3a;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
    top: 1px;
}

.news-tab:hover {
    color: #fff;
}

.news-tab.active {
    background: linear-gradient(145deg, #333, #252525);
    color: #ff6b00;
    border-color: #ff6b00;
    font-weight: 600;
}

.news-feed-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-day-header {
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 0 0.25rem;
    border-bottom: 1px solid #1a1a1a;
}

.news-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: perspective(600px) rotateX(1.5deg) translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,107,0,0.1);
}

.news-card-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #1a1a1a;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    flex: 1;
    position: relative;
    z-index: 1;
}

.news-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.news-card-meta {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.news-card-desc {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.4;
}

.news-card-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-right: 0.5rem;
}

.news-card-badge.critical { background: #ff6b6b; color: #000; }
.news-card-badge.warning { background: #f1c40f; color: #000; }
.news-card-badge.info { background: #3498db; color: #fff; }

.news-archiv-link {
    display: block;
    text-align: center;
    padding: 1rem;
    margin-top: 1.5rem;
    color: #ff6b00;
    font-size: 0.9rem;
    cursor: pointer;
}

.news-archiv-link:hover {
    color: #ff8c33;
}

/* ===== ARCHIV (Hängeregisterschrank) ===== */
.archiv-cabinet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.archiv-folder {
    padding: 1.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.archiv-folder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 6px;
    background: linear-gradient(90deg, #444, #666, #444);
    border-radius: 0 0 4px 4px;
}

.archiv-folder:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255,107,0,0.15);
}

.archiv-folder-label {
    font-size: 1rem;
    font-weight: 600;
    color: #ff6b00;
    position: relative;
    z-index: 1;
}

.archiv-folder-count {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    position: relative;
    z-index: 1;
}

/* ===== MAP DASHBOARD ===== */
.map-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-dashboard-header {
    padding: 1rem 1.5rem;
}

.map-dashboard-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

.map-dashboard-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-sidebar {
    padding: 1rem;
    overflow-y: auto;
}

.map-sidebar h3 {
    font-size: 0.85rem;
    color: #ff6b00;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

.country-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: calc(100% - 40px);
    overflow-y: auto;
    z-index: 100;
    position: relative;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
    position: relative;
    z-index: 1;
}

.country-list::-webkit-scrollbar,
.filter-list::-webkit-scrollbar {
    width: 4px;
}

.country-list::-webkit-scrollbar-thumb,
.filter-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

.map-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.4rem;
    font-size: 0.85rem;
    color: #ccc;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.map-check-label:hover {
    background: rgba(255,255,255,0.03);
    color: #fff;
}

.map-check-label input[type="checkbox"] {
    accent-color: #ff6b00;
}

.leaflet-map-container {
    height: 460px;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    overflow: hidden;
}

.layer-switcher {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.layer-btn {
    padding: 0.4rem 0.75rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ccc;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.layer-btn.active {
    background: #ff6b00;
    border-color: #ff6b00;
    color: #fff;
}

.map-dashboard-footer {
    padding: 1rem 1.5rem;
}

.map-dashboard-footer p {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ===== MAP: Country Search ===== */
.country-search {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-family: inherit;
}

.country-search:focus {
    border-color: #ff6b00;
    outline: none;
}

.continent-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.6rem 0.75rem;
    margin-top: 0.4rem;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 50%, #333 100%);
    border: 1px solid #4a4a4a;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.continent-header:hover {
    border-color: #ff6b00;
    color: #ff6b00;
}

.continent-header::after {
    content: '▾';
    font-size: 0.75rem;
    color: #888;
    transition: transform 0.2s;
}

.continent-header.collapsed::after {
    transform: rotate(-90deg);
}

.continent-countries {
    overflow-y: auto;
    transition: max-height 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.continent-label {
    flex: 1;
}

.country-item {
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    color: #ccc;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.country-item.selected {
    background: rgba(255,107,0,0.2);
    color: #ff6b00;
    border-left: 3px solid #ff6b00;
    font-weight: 600;
}

.country-flag {
    font-size: 1rem;
}

/* ===== MAP: Loading Overlay ===== */
.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,10,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    gap: 0.75rem;
    color: #ff6b00;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.map-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #333;
    border-top: 3px solid #ff6b00;
    border-radius: 50%;
    animation: mapSpin 0.8s linear infinite;
}

@keyframes mapSpin {
    to { transform: rotate(360deg); }
}

/* ===== MAP: Results Info ===== */
.map-results-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,10,0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    color: #ccc;
    font-size: 0.8rem;
    z-index: 1000;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* ===== MAP: Marker Styles ===== */
.map-marker-wrapper {
    background: transparent !important;
    border: none !important;
}

.map-marker {
    transition: transform 0.15s;
}

.map-marker:hover {
    transform: scale(1.3);
}

.map-marker-nuclear {
    animation: nuclearPulse 2s ease-in-out infinite;
}

@keyframes nuclearPulse {
    0%, 100% { box-shadow: 0 0 12px #f39c12, 0 0 24px rgba(243,156,18,0.3); }
    50% { box-shadow: 0 0 20px #f39c12, 0 0 40px rgba(243,156,18,0.5); }
}

/* ===== MAP: Popup ===== */
.map-popup h3 {
    color: #ff6b00;
    font-size: 1rem;
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.map-popup .popup-type {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
}

.map-popup .popup-extra {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0.2rem 0;
}

.map-popup .popup-addr {
    font-size: 0.8rem;
    color: #999;
    margin: 0.3rem 0;
}

.map-popup .popup-coords {
    font-size: 0.75rem;
    color: #666;
    font-family: monospace;
    margin: 0.2rem 0;
}

.map-popup .popup-route {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: #ff6b00;
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.map-popup .popup-route:hover {
    background: #e05e00;
}

/* Leaflet popup override for dark theme */
.leaflet-popup-content-wrapper {
    background: rgba(20,20,20,0.95) !important;
    color: #fff !important;
    border-radius: 10px !important;
    border: 1px solid #333 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6) !important;
}

.leaflet-popup-tip {
    background: rgba(20,20,20,0.95) !important;
    border: 1px solid #333 !important;
}

.leaflet-popup-close-button {
    color: #888 !important;
}

.leaflet-popup-close-button:hover {
    color: #ff6b00 !important;
}

/* ===== MAP: Leaflet container relative for overlays ===== */
.leaflet-map-container {
    position: relative;
}

.map-layer-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 1000;
    display: flex;
    gap: 4px;
    background: rgba(10,10,10,0.7);
    padding: 4px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}

.map-layer-overlay .layer-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
}

/* ===== SHOP ===== */
.shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.shop-card {
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255,107,0,0.15);
}

.shop-img {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.shop-card h3 {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.shop-price {
    color: #ff6b00;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.shop-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid #ff6b00;
    border-radius: 8px;
    color: #ff6b00;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.shop-btn:hover {
    background: #ff6b00;
    color: #fff;
}

/* ===== CONTACT ===== */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6b00;
    outline: none;
}

.submit-btn {
    padding: 0.75rem 2rem;
    background: #ff6b00;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #e05e00;
}

.contact-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-info h3 {
    color: #ff6b00;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

/* ===== LEGAL ===== */
/* ===== LEGAL PAGES (AGB, Datenschutz, Impressum) ===== */
.legal-content {
    max-width: 800px;
}

.legal-content h3 {
    color: #ff6b00;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}

.legal-content p {
    color: #ccc;
    margin-bottom: 0.75rem;
}

.legal-page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.legal-panel {
    padding: 1.5rem 2rem;
}

.legal-panel h3 {
    color: #ff6b00;
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.legal-panel p {
    color: #ccc;
    margin-bottom: 0.6rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.legal-panel p:last-child {
    margin-bottom: 0;
}

.legal-panel strong {
    color: #e0e0e0;
}

.legal-panel a {
    color: #ff6b00;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-panel a:hover {
    color: #ff8533;
    text-decoration: underline;
}

.legal-list {
    color: #ccc;
    margin: 0.5rem 0 0.75rem 1.5rem;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-list li {
    margin-bottom: 0.35rem;
}

/* Legal Pages — Tablet */
@media (max-width: 768px) {
    .legal-page-wrapper {
        padding: 0 0.5rem;
    }
    .legal-panel {
        padding: 1.2rem 1.4rem;
    }
    .legal-panel h3 {
        font-size: 1.05rem;
    }
    .legal-panel p,
    .legal-list {
        font-size: 0.9rem;
    }
}

/* Legal Pages — Mobile */
@media (max-width: 480px) {
    .legal-page-wrapper {
        padding: 0 0.25rem;
        gap: 0.75rem;
    }
    .legal-panel {
        padding: 1rem 1rem;
    }
    .legal-panel h3 {
        font-size: 1rem;
    }
    .legal-panel p,
    .legal-list {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    .legal-list {
        margin-left: 1rem;
    }
}

/* ===== FOOTER ===== */
#site-footer {
    background: #111;
    border-top: 1px solid #222;
    padding: 3rem 1rem 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    max-width: 1610px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-col h4 {
    color: #ff6b00;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: #888;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ff6b00;
}

.footer-bottom {
    max-width: 1610px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-bottom p {
    color: #555;
    font-size: 0.8rem;
}

/* ===== RESPONSIVE: 480px ===== */
@media (min-width: 480px) {
    .news-filter-tiles {
        grid-template-columns: repeat(4, 1fr);
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-bar-desc {
        display: block;
    }
}

/* ===== RESPONSIVE: 768px ===== */
@media (min-width: 768px) {
    .page {
        padding: 107px 2rem 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-wrapper {
        flex-direction: row;
    }

    .contact-form {
        flex: 2;
    }

    .contact-info {
        flex: 1;
    }

    .leaflet-map-container {
        height: 575px;
    }

    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-filter-tiles {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== RESPONSIVE: 1024px ===== */
@media (min-width: 1024px) {
    .map-dashboard-body {
        flex-direction: row;
    }

    .map-sidebar {
        width: 220px;
        flex-shrink: 0;
    }

    .leaflet-map-container {
        flex: 1;
        height: 690px;
    }

    .news-filter-tiles {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 1rem;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 2rem !important;
}

.cookie-content h3 {
    color: #ff6b00;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.cookie-content > p {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1rem 0;
}

.cookie-cat {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
}

.cookie-cat:hover {
    background: rgba(255,255,255,0.06);
}

.cookie-cat input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #ff6b00;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.cookie-cat-name {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 90px;
}

.cookie-cat-desc {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #444;
    transition: all 0.2s;
}

.cookie-btn-reject {
    background: transparent;
    color: #888;
    border-color: #555;
}

.cookie-btn-reject:hover {
    color: #ccc;
    border-color: #888;
}

.cookie-btn-select {
    background: rgba(255,107,0,0.15);
    color: #ff6b00;
    border-color: #ff6b00;
}

.cookie-btn-select:hover {
    background: rgba(255,107,0,0.25);
}

.cookie-btn-accept {
    background: linear-gradient(145deg, #ff6b00, #e55a00);
    color: #fff;
    border-color: #ff6b00;
}

.cookie-btn-accept:hover {
    background: linear-gradient(145deg, #ff7b20, #ff6b00);
    box-shadow: 0 0 15px rgba(255,107,0,0.3);
}

.cookie-settings-btn {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 9999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid #444;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-btn:hover {
    color: #ff6b00;
    border-color: #ff6b00;
    box-shadow: 0 0 10px rgba(255,107,0,0.2);
}

/* Mobile Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner-inner {
        padding: 1rem 1.2rem !important;
    }
    .cookie-buttons {
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    .cookie-cat-name {
        min-width: 70px;
    }
}

/* ===== V2 ADDITIONS ===== */

/* Blog Card Layout */
.blog-dashboard .blog-card {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: visible;
}
.blog-dashboard .blog-card h3 { display: none; }
.blog-card .blog-card-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, rgba(40,40,40,0.98), rgba(28,28,28,0.98));
    border: 1px solid rgba(255,107,0,0.4);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    min-width: 250px;
    max-width: 380px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 12px rgba(255,107,0,0.15);
    z-index: 200;
    pointer-events: none;
}
.blog-card:hover .blog-card-tooltip { display: block; }
.blog-card .blog-card-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(255,107,0,0.4);
}
.blog-card .blog-card-tooltip p { margin: 0; font-size: 0.8rem; color: #bbb; line-height: 1.5; }

/* Live Feed Panel */
#live-feed-panel {
    background: linear-gradient(145deg, rgba(45,45,48,0.93), rgba(30,30,32,0.93)) !important;
}
#live-feed-panel button:active { transform: translateY(0) !important; }

/* AI Content Notice */
.ai-content-notice {
    text-align: right;
    font-size: 0.7rem;
    color: rgba(150, 150, 150, 0.5);
    padding: 0.8rem 1.2rem 0.4rem;
    margin-top: 0.5rem;
    letter-spacing: 0.03em;
    font-style: italic;
}
.ai-content-notice .ai-icon { font-size: 0.8rem; opacity: 0.5; font-style: normal; }
