:root {
    --bg-color: #030712;
    --accent: #64dfdf;
    --twitch-purple: #9146FF;
    --text: #f8fafc;
    --aurora-green: #00FF9D;
    --alert-red: #FF4757;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* --- HEADER & NAVIGATION BADGES --- */
.social-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(100, 223, 223, 0.35);
    border-radius: 30px;
    color: #f8fafc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
    cursor: pointer;
    user-select: none;
}

.nav-btn:hover, .nav-btn.active {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(100, 223, 223, 0.4);
    background: rgba(15, 23, 42, 0.9);
}

/* Twitch OnAir / OffAir Dynamic Style */
.nav-btn-twitch { border-color: rgba(145, 70, 255, 0.4); }
.nav-btn-twitch.is-live {
    border-color: var(--alert-red) !important;
    color: #FFF !important;
    background: rgba(255, 71, 87, 0.2) !important;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.6) !important;
    animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.nav-btn-album { border-color: rgba(255, 184, 77, 0.4); }
.nav-btn-album:hover, .nav-btn-album.active { border-color: #FFB84D; color: #FFE0B2; box-shadow: 0 0 20px rgba(255, 184, 77, 0.4); }

.weather-flag-img {
    width: 20px;
    height: auto;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Dynamische Farben für den Akkustrom */
.val-charge { color: var(--aurora-green) !important; font-weight: 800; text-shadow: 0 0 8px rgba(0, 255, 157, 0.4); }
.val-discharge { color: var(--alert-red) !important; font-weight: 800; text-shadow: 0 0 8px rgba(255, 71, 87, 0.4); }
.val-neutral { color: #f8fafc; font-weight: 600; }

/* --- MAIN VIEW SWITCHER --- */
.view-panel {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

.view-panel.active-view {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MAP SPLIT GRID & SIDEBAR --- */
.map-split-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: stretch;
    z-index: 1;
}

#map {
    height: 100%;
    min-height: 540px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(100, 223, 223, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.sidebar-container { display: flex; flex-direction: column; gap: 15px; }
.sidebar-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(100, 223, 223, 0.3);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.sidebar-title { font-size: 0.95rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; text-transform: uppercase; letter-spacing: 1px; }

/* Weather Forecast Cards inside Sidebar */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.forecast-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
}

.forecast-day { font-size: 0.7rem; font-weight: bold; color: var(--accent); text-transform: uppercase; }
.forecast-icon { font-size: 1.3rem; margin: 2px 0; }
.forecast-temp { font-size: 0.85rem; font-weight: 800; color: #FFF; }

/* KP Index Box */
.kp-badge-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
}

.kp-value { display: block; font-size: 1.8rem; font-weight: 800; color: var(--aurora-green); text-shadow: 0 0 10px rgba(0, 255, 157, 0.4); line-height: 1.1; }
.kp-status { font-size: 0.8rem; color: #cbd5e1; font-weight: 600; margin-top: 2px; display: block; }
.aurora-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aurora-item { background: rgba(0,0,0,0.3); padding: 6px 8px; border-radius: 6px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.aurora-item span { display: block; font-size: 0.68rem; color: #94a3b8; text-transform: uppercase; }
.aurora-item strong { font-size: 0.85rem; color: #f8fafc; }

.setup-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; }
.setup-list li { background: rgba(0,0,0,0.3); padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); color: #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.setup-list strong { color: var(--accent); }

/* --- CRAFTER MQTT POWER FULL COCKPIT VIEW --- */
.power-cockpit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.power-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.power-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.power-card-title { font-weight: 800; font-size: 1.1rem; color: #FFF; display: flex; align-items: center; gap: 8px; }
.power-big-val { font-size: 2.8rem; font-weight: 900; text-align: center; margin: 10px 0; color: #FFF; letter-spacing: -1px; }

.power-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.power-sub-box { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 10px; text-align: center; }
.power-sub-label { font-size: 0.75rem; color: #94A3B8; display: block; }
.power-sub-val { font-size: 1.1rem; font-weight: bold; color: #F8FAFC; }

/* --- TWITCH LIVE STREAM VIEW --- */
.stream-container {
    width: 100%;
    height: 540px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(145, 70, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    background: #000;
}

.stream-container iframe { width: 100%; height: 100%; border: none; }

/* --- FOTOALBUM POSTKARTEN VIEW --- */
.postcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 10px;
}

.postcard {
    background: #fdfbf7;
    border-radius: 4px;
    padding: 14px 14px 24px 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: #1e293b;
}

.postcard:nth-child(odd) { transform: rotate(-2.5deg); }
.postcard:nth-child(even) { transform: rotate(2deg); }
.postcard:nth-child(3n) { transform: rotate(-1deg); }

.postcard:hover {
    transform: scale(1.06) rotate(0deg) translateY(-8px);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.3);
}

.postcard-img-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 2px;
    background: #e2e8f0;
}

.postcard-img-box img { width: 100%; height: 100%; object-fit: cover; }

.postcard-caption {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: #0f172a;
    margin-top: 10px;
    text-align: center;
    line-height: 1;
}

.postcard-stamp {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 46px;
    border: 2px dashed #94a3b8;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
    color: #ef4444;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(8deg);
}

@media (max-width: 950px) {
    .map-split-container { grid-template-columns: 1fr; }
    #map { height: 420px; min-height: 420px; }
    .stream-container { height: 350px; }
}

/* Canvas Background */
#aurora-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -3; filter: blur(25px); opacity: 0.85; }
#text-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; }
.aurora-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: radial-gradient(circle at center, rgba(3, 7, 18, 0.2) 0%, rgba(3, 7, 18, 0.85) 100%); pointer-events: none; }

header { padding: 40px 20px 20px; text-align: center; z-index: 1; }
header h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: 5px; text-transform: uppercase; color: #ffffff; text-shadow: 0 0 10px rgba(100, 223, 223, 0.6), 0 0 20px rgba(100, 223, 223, 0.4); margin-bottom: 5px; }
header p { color: #e2e8f0; font-size: 1.1rem; margin-top: 6px; font-weight: 300; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

main { flex: 1; max-width: 1250px; width: 100%; margin: 0 auto; padding: 20px; z-index: 1; }

.stats-container { display: flex; justify-content: center; gap: 20px; margin-top: 35px; flex-wrap: wrap; z-index: 1; position: relative; }
.stat-card { background: rgba(15, 23, 42, 0.65); border: 1px solid rgba(100, 223, 223, 0.3); border-radius: 12px; padding: 12px 22px; display: flex; align-items: center; gap: 15px; backdrop-filter: blur(10px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); transition: transform 0.3s; }
.stat-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.stat-flag-img { width: 32px; height: auto; border-radius: 4px; object-fit: cover; }
.stat-info { display: flex; flex-direction: column; }
.stat-country { font-weight: 600; font-size: 1.1rem; color: #ffffff; margin-bottom: 2px; }
.stat-count { font-size: 0.85rem; color: var(--accent); font-weight: 600; letter-spacing: 0.5px; }

.leaflet-popup-content-wrapper { background: #0f172a !important; color: #fff !important; border-radius: 12px !important; padding: 5px !important; border: 1px solid rgba(100, 223, 223, 0.4); }
.leaflet-popup-tip { background: #0f172a !important; }
.popup-card { text-align: center; max-width: 200px; }
.popup-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.popup-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--accent); }
.popup-card a { display: inline-block; background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); color: white; text-decoration: none; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }

footer { text-align: center; padding: 30px 20px 26px; font-size: 0.9rem; color: #cbd5e1; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 40px; background: rgba(3, 7, 18, 0.6); backdrop-filter: blur(10px); z-index: 1; }
footer .footer-links { margin-top: 10px; }
footer .footer-links button { background: none; border: none; font: inherit; color: #f8fafc; cursor: pointer; margin: 0 10px; padding: 0; }
footer .footer-links button:hover { color: var(--accent); }
.niq-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 16px; border: 1px solid rgba(0, 210, 255, 0.35); border-radius: 30px; background: rgba(39, 46, 56, 0.55); color: #cbd5e1; text-decoration: none; font-size: 0.8rem; letter-spacing: 0.5px; transition: all 0.25s ease; }
.niq-badge:hover { border-color: #00d2ff; box-shadow: 0 0 18px rgba(0, 210, 255, 0.35); color: #fff; }
.niq-badge .niq-logo { font-weight: 800; color: #fff; letter-spacing: 0.5px; }
.niq-badge .niq-logo span { color: #00d2ff; }
.niq-dot { width: 7px; height: 7px; border-radius: 50%; background: #00d2ff; box-shadow: 0 0 8px #00d2ff; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { background: #0f172a; border: 1px solid var(--accent); padding: 30px; border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; position: relative; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: #94a3b8; }

/* =====================================================================
   Erweiterungen (Reisen, Kategorien, Live, Nordlicht, Diagramme, i18n)
   ===================================================================== */
button.nav-btn { font: inherit; font-size: 0.9rem; cursor: pointer; }
.nav-static { cursor: default; }
.accent-strong { color: var(--accent); font-weight: 700; }
.white-strong { color: #fff; font-weight: 700; }
.sep { opacity: 0.4; }
.muted { color: #94a3b8; }
.hint { color: #94a3b8; font-size: 0.8rem; margin-top: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.15); color: #cbd5e1; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; }
.lang-switch:hover { border-color: var(--accent); color: #fff; }
.footer-links .lang-switch { padding: 0; border: none; margin: 0 10px; font-size: 0.9rem; color: #f8fafc; font-weight: 400; }

/* Hintergrund für Unterseiten (ohne Canvas) */
.aurora-bg { position: fixed; inset: 0; z-index: -4; overflow: hidden; pointer-events: none; }
.aurora-bg span { position: absolute; width: 70vw; height: 40vh; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.aurora-bg span:nth-child(1) { background: rgba(87,204,153,0.5); top: -12vh; left: -10vw; }
.aurora-bg span:nth-child(2) { background: rgba(100,223,223,0.4); top: 0; right: -15vw; }
.aurora-bg span:nth-child(3) { background: rgba(114,9,183,0.35); top: 25vh; left: 25vw; }
.home .aurora-bg { display: none; }

/* Karte: Werkzeugleiste */
.map-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 0.82rem; font-weight: 600; padding: 7px 14px; border-radius: 30px; cursor: pointer; background: rgba(15,23,42,0.7); color: #e2e8f0; border: 1px solid rgba(100,223,223,0.25); backdrop-filter: blur(8px); transition: all 0.2s; }
.chip:hover { border-color: var(--accent); }
.chip.active { background: rgba(100,223,223,0.18); border-color: var(--accent); color: #fff; box-shadow: 0 0 12px rgba(100,223,223,0.3); }
.chip-select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.chip-select option { background: #0f172a; }

/* Marker */
.emoji-marker { background: none; border: none; }
.emoji-marker span { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #0f172a; border: 2px solid var(--mc, #64dfdf); box-shadow: 0 3px 10px rgba(0,0,0,0.5); font-size: 16px; line-height: 1; }
.emoji-marker span::after { content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--mc, #64dfdf); border-bottom: 0; }
.emoji-marker.cat-nordlicht span { --mc: #00FF9D; }
.emoji-marker.cat-stellplatz span { --mc: #FFB84D; }
.emoji-marker.live-marker span { --mc: #00FF9D; animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(0,255,157,0.6); } 70% { box-shadow: 0 0 0 14px rgba(0,255,157,0); } 100% { box-shadow: 0 0 0 0 rgba(0,255,157,0); } }
.popup-card p.popup-sub { font-size: 0.78rem; color: #94a3b8; margin: -4px 0 8px; }
.popup-card a { background: linear-gradient(135deg, var(--accent), #72efdd) !important; color: #031018 !important; }

/* Nordlicht-Ampel */
.aurora-where { font-size: 0.68rem; color: #94a3b8; font-weight: 600; text-transform: none; letter-spacing: 0; }
.aurora-light { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,0.3); margin-bottom: 8px; }
.aurora-dot { width: 16px; height: 16px; border-radius: 50%; background: #475569; flex-shrink: 0; }
.aurora-light[data-state="green"] .aurora-dot { background: #00FF9D; box-shadow: 0 0 14px #00FF9D; }
.aurora-light[data-state="yellow"] .aurora-dot { background: #FFB84D; box-shadow: 0 0 12px #FFB84D; }
.aurora-light[data-state="red"] .aurora-dot { background: #FF4757; box-shadow: 0 0 10px rgba(255,71,87,0.7); }
.aurora-light-label { display: block; font-size: 0.68rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }
.aurora-light strong { font-size: 0.95rem; }
.aurora-details.three { grid-template-columns: repeat(3, 1fr); }
.flag-title { display: flex; align-items: center; gap: 8px; }

/* Telemetrie */
.view-title { color: var(--accent); font-size: 1.4rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.view-title.twitch { color: var(--twitch-purple); }
.view-title.album { color: #FFB84D; }
.view-title.aurora-title { color: #00FF9D; margin-top: 50px; }
.pill { font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; border: 1px solid; }
.pill-green { color: var(--aurora-green); }
.pill-cyan { color: #00D2FF; }
.pill-amber { color: #F59E0B; }
.power-big-val.green { color: var(--aurora-green); }
.power-big-val.cyan { color: #00D2FF; }
.power-big-val.amber { color: #F59E0B; }
.power-big-val.small { font-size: 2rem; margin: 20px 0; }
.power-cockpit-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; }
.power-sub-grid.four { grid-template-columns: 1fr 1fr; margin-top: 6px; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 24px; }
.chart-card { background: rgba(15,23,42,0.75); border: 1px solid rgba(100,223,223,0.22); border-radius: 16px; padding: 18px; backdrop-filter: blur(12px); margin: 0; }
.chart-card figcaption { font-size: 0.85rem; font-weight: 700; color: #e2e8f0; margin-bottom: 10px; }
.nchart-plot { position: relative; }
.nchart-plot svg { display: block; overflow: visible; touch-action: pan-y; }
.nchart-tip { position: absolute; pointer-events: none; background: #0b1222; border: 1px solid rgba(100,223,223,0.4); border-radius: 8px; padding: 6px 10px; font-size: 0.78rem; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,0.5); }
.nchart-tip strong { display: block; color: #fff; font-size: 0.9rem; }
.nchart-tip span { color: #94a3b8; }
.nchart-table { margin-top: 8px; font-size: 0.78rem; color: #94a3b8; }
.nchart-table summary { cursor: pointer; }
.nchart-table table { width: 100%; margin-top: 6px; border-collapse: collapse; max-height: 200px; display: block; overflow-y: auto; }
.nchart-table td { padding: 3px 6px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nchart-table td:last-child { text-align: right; color: #e2e8f0; }
.nchart-empty { color: #94a3b8; font-size: 0.85rem; padding: 30px 0; text-align: center; }

/* Nordlicht-Galerie */
.aurora-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.aurora-card { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,255,157,0.3); text-decoration: none; color: #fff; }
.aurora-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.4s; }
.aurora-card:hover img { transform: scale(1.05); }
.aurora-card-info { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(3,7,18,0.9)); display: flex; flex-direction: column; }
.aurora-card-info span { font-size: 0.8rem; color: #00FF9D; }
.source-note { font-size: 0.72rem; color: #64748b; margin-top: 10px; }

/* Reisen */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tour-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; background: rgba(15,23,42,0.75); border: 1px solid rgba(100,223,223,0.22); border-top: 3px solid var(--tour-color); color: #f8fafc; text-decoration: none; backdrop-filter: blur(12px); transition: transform 0.25s, box-shadow 0.25s; }
.tour-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 18px color-mix(in srgb, var(--tour-color), transparent 70%); }
.tour-dates { font-size: 0.78rem; color: #94a3b8; font-weight: 600; letter-spacing: 0.5px; }
.tour-card h3 { font-size: 1.35rem; font-weight: 800; }
.tour-card p { font-size: 0.9rem; color: #cbd5e1; line-height: 1.5; }
.tour-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; color: #94a3b8; }
.tour-stats strong { color: #fff; font-size: 1.05rem; }
.tour-flags { display: flex; gap: 6px; }
.tour-flags img { width: 24px; border-radius: 3px; }
.tour-open { margin-top: auto; color: var(--tour-color); font-weight: 700; font-size: 0.9rem; }

/* Footer & Tipps */
.tip-open { font: inherit; font-weight: 700; font-size: 0.9rem; margin-bottom: 18px; padding: 10px 20px; border-radius: 30px; cursor: pointer; color: #031018; background: linear-gradient(135deg, var(--accent), #72efdd); border: none; box-shadow: 0 0 18px rgba(100,223,223,0.35); }
.tip-open:hover { box-shadow: 0 0 26px rgba(100,223,223,0.55); }
.modal-content h2 { color: var(--accent); margin-bottom: 15px; }
.modal-content p, .modal-content li { line-height: 1.7; margin-bottom: 10px; font-size: 0.92rem; }
.modal-content ul { margin: 0 0 12px 20px; }
.modal-content a { color: var(--accent); text-decoration: none; }
.close-btn { background: none; border: none; font: inherit; font-size: 1.6rem; line-height: 1; }
.tip-form label { display: block; margin: 12px 0 5px; font-size: 0.85rem; font-weight: 600; color: #cbd5e1; }
.tip-form input[type="text"], .tip-form textarea { width: 100%; padding: 11px 13px; border-radius: 10px; background: rgba(3,7,18,0.65); border: 1px solid rgba(100,223,223,0.2); color: #f8fafc; font: inherit; font-size: 0.95rem; }
.tip-form input:focus, .tip-form textarea:focus { outline: none; border-color: var(--accent); }
.tip-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tip-map { height: 200px; border-radius: 10px; border: 1px solid rgba(100,223,223,0.2); }
.tip-result { margin-top: 12px; font-weight: 600; font-size: 0.9rem; }
.tip-result.ok { color: #00FF9D; }
.tip-result.err { color: #ff8a95; }
.btn-primary { font: inherit; font-weight: 800; margin-top: 14px; width: 100%; padding: 13px; border-radius: 10px; border: none; cursor: pointer; color: #031018; background: linear-gradient(135deg, var(--accent), #72efdd); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

/* Unterseiten (Spot / Reise) */
.sub-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px !important; text-align: left !important; border-bottom: 1px solid rgba(100,223,223,0.12); background: rgba(3,7,18,0.55); backdrop-filter: blur(12px); }
.sub-brand { text-decoration: none; display: flex; flex-direction: column; }
.sub-brand-title { font-size: 1.3rem; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; color: #fff; text-shadow: 0 0 10px rgba(100,223,223,0.6); }
.sub-brand-tag { font-size: 0.78rem; color: #94a3b8; }
.sub-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.page { max-width: 1150px; margin: 0 auto; padding: 30px 20px; width: 100%; flex: 1; }
.breadcrumb { font-size: 0.85rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.page-title { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; letter-spacing: 1px; text-shadow: 0 0 18px rgba(100,223,223,0.3); }
.page-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 26px; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: rgba(15,23,42,0.7); border: 1px solid rgba(100,223,223,0.2); font-size: 0.82rem; color: #e2e8f0; text-decoration: none; }
a.meta-chip:hover { border-color: var(--accent); }
.meta-chip img { width: 20px; border-radius: 2px; }
.spot-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 26px; }
@media (max-width: 900px) { .spot-layout { grid-template-columns: 1fr; } }
.panel { background: rgba(15,23,42,0.75); border: 1px solid rgba(100,223,223,0.22); border-radius: 16px; padding: 20px; backdrop-filter: blur(12px); margin-bottom: 22px; }
.panel h2 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 14px; }
.gallery-main { width: 100%; border-radius: 14px; max-height: 70vh; object-fit: contain; background: #020617; display: block; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: 0.7; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 84px; height: 62px; object-fit: cover; display: block; }
.prose { font-size: 1rem; line-height: 1.75; color: #e2e8f0; white-space: pre-line; }
.mini-map { height: 260px; border-radius: 12px; }
.kv-list { list-style: none; }
.kv-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem; }
.kv-list li span:first-child { color: #94a3b8; }
.stars { color: #FFB84D; letter-spacing: 2px; }
.stars .off { color: #334155; }
.amenity-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.amenity { padding: 5px 10px; border-radius: 16px; background: rgba(0,255,157,0.08); border: 1px solid rgba(0,255,157,0.3); font-size: 0.8rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(100,223,223,0.3); background: rgba(15,23,42,0.8); color: #f8fafc; text-decoration: none; font: inherit; font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-insta { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); border: none; }
.spot-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.tour-map { height: 460px; border-radius: 14px; border: 1px solid rgba(100,223,223,0.25); }
.tour-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0; }
.tour-stat { padding: 16px; border-radius: 14px; background: rgba(15,23,42,0.75); border: 1px solid rgba(100,223,223,0.2); }
.tour-stat span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; }
.tour-stat strong { font-size: 1.6rem; font-weight: 800; }
.spot-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.spot-card { display: block; border-radius: 12px; overflow: hidden; background: rgba(15,23,42,0.75); border: 1px solid rgba(100,223,223,0.2); color: #f8fafc; text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
.spot-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.spot-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.spot-card span { display: block; padding: 9px 12px; font-size: 0.88rem; font-weight: 600; }
.notfound { text-align: center; padding: 80px 20px; }
@media (max-width: 720px) {
    .home-header h1 { font-size: 2.2rem !important; letter-spacing: 3px !important; }
    .map-toolbar { flex-direction: column; }
}

.home-header { position: relative; }
.home-header .social-container > .lang-switch { position: absolute; top: 16px; right: 20px; background: rgba(15,23,42,0.65); backdrop-filter: blur(10px); }
@media (max-width: 720px) { .home-header .social-container > .lang-switch { top: 10px; right: 10px; padding: 6px 10px; font-size: 0.78rem; } .home-header { padding-top: 52px !important; } }
.visit-years { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 0.85rem; color: #94a3b8; }
.year-head { font-size: 1rem; margin: 16px 0 4px; color: var(--accent); scroll-margin-top: 20px; }
.year-head .muted { font-size: 0.8rem; font-weight: 400; }
.gallery-thumbs.wrap { flex-wrap: wrap; overflow: visible; }

/* "Telemetrie by nordIQ.one" – im nordIQ.one-Design */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2'); }
.power-card, .chart-card { position: relative; padding-bottom: 34px !important; }
.niq-tag {
    position: absolute; right: 10px; bottom: 8px; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 8px; border-radius: 6px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.6rem; letter-spacing: 0.3px; line-height: 1.6;
    color: #94a3b8; text-decoration: none;
    background: rgba(39, 46, 56, 0.75); border: 1px solid rgba(0, 210, 255, 0.22);
    opacity: 0.75; transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.niq-tag i { width: 5px; height: 5px; border-radius: 50%; background: #00d2ff; box-shadow: 0 0 6px #00d2ff; }
.niq-tag b { font-weight: 400; color: #fff; }
.niq-tag b span { color: #00d2ff; }
.niq-tag:hover { opacity: 1; border-color: #00d2ff; box-shadow: 0 0 10px rgba(0, 210, 255, 0.35); color: #cbd5e1; }
.film-actions { margin: 0 0 22px; }
.btn-film { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 800; font-size: 1rem; text-decoration: none; color: #031018;
    background: linear-gradient(135deg, var(--tour-color, var(--accent)), #72efdd); box-shadow: 0 0 24px rgba(100,223,223,0.35); }
.btn-film span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(3,16,24,0.85); color: #fff; font-size: 0.7rem; }
.btn-film:hover { box-shadow: 0 0 34px rgba(100,223,223,0.55); }
.btn-wa { border-color: rgba(37,211,102,0.5); }
.btn-wa:hover { border-color: #25D366; }
.tour-film { font-style: normal; margin-left: 8px; padding: 2px 8px; border-radius: 10px; font-size: 0.78rem; background: rgba(100,223,223,0.12); color: #e2e8f0; }
/* Nordlicht-Vorhersage 3 Nächte */
.aurora-nights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.an-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 10px; background: rgba(0,0,0,0.3); border: 1px solid transparent; text-align: center; }
.an-day { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); }
.an-dot { width: 12px; height: 12px; border-radius: 50%; background: #475569; }
.an-card[data-state="green"] { border-color: rgba(0,255,157,0.45); } .an-card[data-state="green"] .an-dot { background: #00FF9D; box-shadow: 0 0 10px #00FF9D; }
.an-card[data-state="yellow"] .an-dot { background: #FFB84D; box-shadow: 0 0 8px #FFB84D; }
.an-card[data-state="red"] .an-dot { background: #FF4757; }
.an-verdict { font-size: 0.78rem; }
.an-meta { font-size: 0.66rem; color: #94a3b8; }
.energy-grid small { font-size: 0.8rem; color: #94a3b8; font-weight: 600; }
