/* ============================================
   DASHBOARD GRID LAYOUT (customizable)
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1px;
    column-gap: 1.1rem;
    row-gap: 0px;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dashboard-widget {
    min-width: 0;
    width: 100%;
    position: relative;
    transition: transform 0.2s ease;
}

.dashboard-widget > .card {
    position: relative;
    margin-bottom: 0;
}
.dashboard-widget.widget-hidden {
    display: none !important;
}

/* Drag handle */
.widget-drag-handle {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    cursor: grab;
    opacity: 0;
    font-size: 1.1rem;
    color: var(--text-light, #888);
    z-index: 5;
    transition: opacity 0.2s;
    user-select: none;
    padding: 0.2rem;
    line-height: 1;
}
.dashboard-widget:hover .widget-drag-handle,
.dashboard-widget:focus-within .widget-drag-handle {
    opacity: 0.6;
}
.widget-drag-handle:hover {
    opacity: 1 !important;
}

/* SortableJS drag states */
.dashboard-widget.sortable-chosen {
    opacity: 0.9;
    z-index: 100;
    transform: scale(1.02);
}
.dashboard-widget.sortable-ghost {
    opacity: 0.15;
    border: 2px dashed var(--accent, #2E7D32);
    border-radius: 10px;
    background: rgba(46, 125, 50, 0.05);
}
.dashboard-widget.sortable-ghost > * {
    visibility: hidden;
}
.dashboard-widget.sortable-drag .card {
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    transform: rotate(1deg) scale(1.03);
    border: 2px solid var(--accent, #2E7D32);
}

/* ── Dashboard Toolbar ─────────────── */
.dashboard-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}
.btn-dashboard-config {
    background: none;
    border: 1px solid var(--border, #ddd);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-light, #666);
    transition: all 0.2s;
}
.btn-dashboard-config:hover,
.btn-dashboard-config.active {
    background: var(--card-bg, #f5f5f5);
    color: var(--text, #333);
    border-color: var(--accent, #2E7D32);
}

/* ── Config Panel ──────────────────── */
.dashboard-config-panel {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #ddd);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.config-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.config-panel-header h3 {
    margin: 0;
    font-size: 0.95rem;
}
.config-panel-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light, #888);
    padding: 0.2rem 0.4rem;
}
.config-hint {
    font-size: 0.78rem;
    color: var(--text-light, #888);
    margin: 0 0 0.75rem;
}
.config-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.config-toggle-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border, #ddd);
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: default;
    transition: all 0.15s;
    user-select: none;
    background: var(--card-bg, #fff);
    color: var(--text, #333);
}
.config-toggle-item:hover {
    border-color: var(--accent, #2E7D32);
}
.config-toggle-item.active {
    background: rgba(46, 125, 50, 0.12);
    border-color: var(--accent, #2E7D32);
    color: var(--accent, #2E7D32);
}
.config-toggle-item.inactive {
    opacity: 0.5;
    text-decoration: line-through;
}
.config-toggle-check {
    width: 14px;
    height: 14px;
    accent-color: var(--accent, #2E7D32);
    cursor: pointer;
}
/* Drag grip in config panel */
.config-drag-grip {
    cursor: grab;
    color: var(--text-light, #888);
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.15rem;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.config-drag-grip:hover {
    opacity: 1;
}
.config-drag-grip:active {
    cursor: grabbing;
}
/* SortableJS states for config items */
.config-toggle-item.sortable-ghost {
    opacity: 0.3;
}
.config-toggle-item.sortable-chosen {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}
.config-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border, #eee);
}

/* Mobile: Single column */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        row-gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure all cards have same structure on mobile */
    .dashboard-grid .card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Always show drag handle on mobile (no hover) */
    .widget-drag-handle {
        opacity: 0.4;
    }
    
    .dashboard-toolbar {
        margin-top: 0.5rem;
    }
    
    .config-toggles {
        flex-direction: column;
    }
    .config-toggle-item {
        width: 100%;
    }
}

/* Dark mode — variables already switch via html.dark-mode in base.html,
   so var(--card-bg), var(--border), var(--text) etc. auto-adapt.
   Only explicit overrides needed for active states: */
html.dark-mode .config-toggle-item.active {
    background: rgba(76, 175, 80, 0.15);
}
html.dark-mode .dashboard-config-panel {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ============================================
   QRV WIDGET (Prominent)
   ============================================ */
.qrv-widget {
    border: 2px solid rgba(46, 125, 50, 0.3);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(46, 125, 50, 0.02));
    box-sizing: border-box;
    min-width: 0;
}

.qrv-widget.is-live {
    border-color: rgba(76, 175, 80, 0.6);
    animation: qrv-glow 3s ease-in-out infinite;
}

@keyframes qrv-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(76, 175, 80, 0.25); }
}

.qrv-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.qrv-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qrv-title-row h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.qrv-user-link {
    color: var(--text);
    text-decoration: none;
}

.qrv-user-link:hover {
    color: var(--accent);
}

.more-link {
    display: block;
    text-align: center;
    color: var(--accent);
    font-size: 0.85rem;
    padding: 0.5rem;
    text-decoration: none;
}

.more-link:hover {
    text-decoration: underline;
}

/* ============================================
   SOLAR WIDGET COMPACT
   ============================================ */
.solar-widget-compact {
    padding: 1rem 1.25rem;
}

.solar-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.solar-compact-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.solar-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.solar-metric-sm {
    text-align: center;
    padding: 0.5rem 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.solar-metric-sm .metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.solar-metric-sm .metric-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-top: 2px;
}

.solar-compact-extras {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
}

.eskip-hint {
    color: var(--warning);
    font-weight: 500;
}

/* ============================================
   COUNTDOWN WIDGET
   ============================================ */
.countdown-widget {
    text-align: center;
    padding: 1.25rem;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.countdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-light);
    text-transform: uppercase;
}

.countdown-cat {
    font-size: 1.25rem;
}

.countdown-title-link {
    text-decoration: none;
    color: var(--text);
    display: block;
}

.countdown-title-link:hover {
    color: var(--accent);
}

.countdown-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

/* ============================================
   ACTIVITY TIMELINE COMPACT
   ============================================ */
.activity-timeline.compact .activity-item {
    padding: 0.5rem 0;
    gap: 0.5rem;
}

.activity-timeline.compact .activity-icon {
    font-size: 1rem;
    width: 1.5rem;
    text-align: center;
}

.activity-timeline.compact .activity-avatar {
    display: none;
}

.activity-timeline.compact .activity-text {
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-timeline.compact .activity-time {
    font-size: 0.7rem;
}

/* ============================================
   TOP FUNKER COMPACT
   ============================================ */
.top-funker-list.compact .top-funker-item {
    padding: 0.5rem 0;
}

.top-funker-list.compact .top-funker-rank {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.top-funker-list.compact .top-funker-rank.gold {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a1a1a;
}

.top-funker-list.compact .top-funker-rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #1a1a1a;
}

.top-funker-list.compact .top-funker-rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: white;
}

.top-funker-list.compact .top-funker-count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ============================================
   NEARBY FUNKER WIDGET
   ============================================ */
.nearby-funker-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nearby-funker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
}

.nearby-funker-item:hover {
    background: rgba(46, 125, 50, 0.08);
}

html.dark-mode .nearby-funker-item:hover {
    background: rgba(76, 175, 80, 0.12);
}

.nearby-funker-name {
    font-weight: 600;
    color: var(--accent);
    min-width: 0;
}

.nearby-funker-ort {
    font-size: var(--text-xs);
    color: var(--text-light);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearby-funker-dist {
    font-size: var(--text-xs);
    color: var(--muted);
    white-space: nowrap;
    margin-left: auto;
}

/* ============================================
   BUTTON SIZES
   ============================================ */
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* ============================================
   BUTTON SPINNER (AJAX loading indicator)
   ============================================ */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SOLAR DASHBOARD (Original - unused now)
   ============================================ */
.solar-dashboard {
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.solar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.solar-header h2 {
    margin: 0;
    font-size: var(--text-xl);
    color: var(--accent);
}

.solar-status {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
}

.solar-status.rating-1, .solar-status.rating-2 {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.solar-status.rating-3 {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.solar-status.rating-4, .solar-status.rating-5 {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.solar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

@media (max-width: 600px) {
    .solar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.solar-metric {
    text-align: center;
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.metric-value {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text);
}

.metric-value.metric-good {
    color: var(--success);
}

.metric-value.metric-bad {
    color: var(--error);
}

.metric-hint {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: var(--space-1);
}

/* Sparkline Section */
.solar-sparkline-section {
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.sparkline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.sparkline-title {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
}

.sparkline-forecast-hint {
    font-size: var(--text-xs);
    color: var(--text-light);
}

.sparkline-container {
    position: relative;
}

.kindex-sparkline {
    width: 100%;
    height: 50px;
    transform: scaleY(-1); /* Flip so higher values are at top */
}

.sparkline-history {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sparkline-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: var(--space-1);
}

/* Solar Extras */
.solar-extras {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.solar-extra {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-light);
}

.solar-extra .extra-icon {
    font-size: var(--text-base);
}

.solar-updated {
    font-size: var(--text-xs);
    color: var(--muted);
    text-align: right;
}

/* ============================================
   QUICK HEADER (für eingeloggte User)
   ============================================ */
.quick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.quick-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.quick-greeting {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.quick-band-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.quick-band-badge .band-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.quick-band-badge.rating-4 .band-dot { background: #4CAF50; box-shadow: 0 0 6px #4CAF50; }
.quick-band-badge.rating-3 .band-dot { background: #8BC34A; box-shadow: 0 0 6px #8BC34A; }
.quick-band-badge.rating-2 .band-dot { background: #FFC107; box-shadow: 0 0 6px #FFC107; }
.quick-band-badge.rating-1 .band-dot { background: #FF5722; box-shadow: 0 0 6px #FF5722; }
.quick-band-badge.rating-0 .band-dot { background: #9E9E9E; }

.quick-band-badge .band-sfi {
    opacity: 0.7;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.quick-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.quick-stat-link {
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-stat-link:hover {
    color: white;
    transform: scale(1.05);
}

.quick-stat.unread-badge {
    background: rgba(76, 175, 80, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    color: #90EE90;
    font-weight: 600;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-dot 1s ease-in-out infinite;
    box-shadow: 0 0 6px #4CAF50;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px #4CAF50;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* Light Mode: quick-header lesbarer machen */
html:not(.dark-mode) .quick-header {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}
html:not(.dark-mode) .quick-stat {
    color: var(--text-light, #666);
}
html:not(.dark-mode) .quick-stat.unread-badge {
    color: #065f46;
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.3);
}
html:not(.dark-mode) .quick-band-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text, #333);
}

/* ============================================
   HERO SECTION (für Gäste)
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--accent) 0%, #1b5e20 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: hero-glow 8s ease-in-out infinite;
}

@keyframes hero-glow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(-20%, 10%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    min-width: 250px;
}

.hero-title {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.hero-icon {
    font-size: 2rem;
    animation: radio-pulse 2s ease-in-out infinite;
}

@keyframes radio-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.hero-badge .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: status-pulse 2s infinite;
}

.hero-badge.rating-4 .status-dot { background: #4CAF50; box-shadow: 0 0 8px #4CAF50; }
.hero-badge.rating-3 .status-dot { background: #8BC34A; box-shadow: 0 0 8px #8BC34A; }
.hero-badge.rating-2 .status-dot { background: #FFC107; box-shadow: 0 0 8px #FFC107; }
.hero-badge.rating-1 .status-dot { background: #FF5722; box-shadow: 0 0 8px #FF5722; }
.hero-badge.rating-0 .status-dot { background: #9E9E9E; }

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: white;
    color: #1b5e20 !important;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #1b5e20 !important;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255,255,255,0.15);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: white;
}

@media (max-width: 600px) {
    .hero-title { font-size: 1.4rem; }
    .hero-section { padding: 1.5rem; }
}

/* ============================================
   LIVE STATS BAR
   ============================================ */
.live-stats-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.live-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 8px #4CAF50;
}

.live-dot.pulse {
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.live-icon {
    font-size: 1.2rem;
}

.live-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent);
}

.live-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (max-width: 480px) {
    .live-stats-bar { gap: 1rem; padding: 0.75rem 1rem; }
    .live-value { font-size: 1.2rem; }
}

/* ============================================
   BAND CONDITIONS CARD (Fancy)
   ============================================ */
.band-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, var(--bg) 100%);
    border: none;
    margin-bottom: 1.5rem;
}

.band-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.band-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.band-icon {
    font-size: 1.5rem;
    animation: satellite-orbit 4s linear infinite;
}

@keyframes satellite-orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.band-title h2 {
    margin: 0;
    font-size: 1.3rem;
}

.band-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.band-status-badge.rating-4 { background: rgba(76, 175, 80, 0.15); color: #4CAF50; }
.band-status-badge.rating-3 { background: rgba(139, 195, 74, 0.15); color: #7CB342; }
.band-status-badge.rating-2 { background: rgba(255, 193, 7, 0.15); color: #FFA000; }
.band-status-badge.rating-1 { background: rgba(255, 87, 34, 0.15); color: #FF5722; }
.band-status-badge.rating-0 { background: rgba(158, 158, 158, 0.15); color: #9E9E9E; }

.status-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50px;
    animation: badge-glow 2s infinite;
}

.rating-4 .status-glow { box-shadow: inset 0 0 20px rgba(76, 175, 80, 0.3); }
.rating-3 .status-glow { box-shadow: inset 0 0 20px rgba(139, 195, 74, 0.3); }
.rating-2 .status-glow { box-shadow: inset 0 0 20px rgba(255, 193, 7, 0.3); }

.band-metrics {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.band-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.metric-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 3px solid;
    transition: all 0.3s;
}

.metric-circle.rating-4 { border-color: #4CAF50; }
.metric-circle.rating-3 { border-color: #8BC34A; }
.metric-circle.rating-2 { border-color: #FFC107; }
.metric-circle.rating-1 { border-color: #FF5722; }
.metric-circle.rating-0 { border-color: #9E9E9E; }

.metric-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--text);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.band-card .band-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.mode-indicator {
    font-weight: 600;
}

.mode-indicator.night { color: #5C6BC0; }
.mode-indicator.day { color: #FF9800; }

.mode-text {
    color: var(--text-light);
}

.source-link {
    color: var(--text-light);
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.7;
}

.source-link:hover {
    text-decoration: underline;
    opacity: 1;
}

@media (max-width: 480px) {
    .band-metrics { gap: 1.5rem; }
    .metric-circle { width: 65px; height: 65px; }
    .metric-value { font-size: 1.3rem; }
}

/* ============================================
   DASHBOARD GRIDS
   ============================================ */
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Wenn nur ein Kind vorhanden, volle Breite */
.dashboard-grid-2 > .card:only-child {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .dashboard-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .quick-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .quick-header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .quick-stats {
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border, rgba(255,255,255,0.08));
        flex-wrap: wrap;
    }
    
    .quick-stat {
        font-size: 0.8rem;
    }
    
    .quick-band-badge .band-sfi {
        display: none;
    }
}

/* Stats Card */
.stats-card h2 {
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
/* Desktop: mehr Spalten */
@media (min-width: 769px) {
    .stats-grid-even {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h2 {
    margin: 0;
}

/* Termine Teaser List */
.termine-teaser-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.termin-teaser {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.termin-teaser:hover {
    background: var(--border);
    transform: translateX(4px);
}

.termin-teaser.termin-lokal {
    border-left-color: var(--accent);
    background: rgba(76, 175, 80, 0.05);
}

.termin-teaser-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
    padding: 0.4rem 0.5rem;
    background: var(--accent);
    color: white;
    border-radius: 8px;
}

.termin-teaser-date .day {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1;
}

.termin-teaser-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.termin-teaser-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.termin-teaser-title {
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    /* Mehrzeilig auf Mobile */
    white-space: normal;
    line-height: 1.3;
    word-break: break-word;
}

.lokal-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.termin-teaser-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.distanz-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-left: 0.25rem;
}

.termin-teaser-cat {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Mobile: Stack termin-teaser layout */
@media (max-width: 480px) {
    .termin-teaser {
        flex-wrap: wrap;
        position: relative;
        padding-right: 2.5rem;
    }
    
    .termin-teaser-date {
        flex-direction: row;
        gap: 0.4rem;
        padding: 0.3rem 0.6rem;
        min-width: auto;
    }
    
    .termin-teaser-date .day {
        font-size: 1.1rem;
    }
    
    .termin-teaser-date .month {
        font-size: 0.7rem;
    }
    
    .termin-teaser-info {
        flex: 1 1 calc(100% - 80px);
        min-width: 120px;
    }
    
    .termin-teaser-title {
        font-size: 0.95rem;
    }
    
    .termin-teaser-cat {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1rem;
    }
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    border-left: 4px solid transparent;
    margin-left: -0.75rem;
    margin-right: -0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.activity-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.activity-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.activity-username {
    color: inherit;
    text-decoration: none;
}

.activity-username:hover {
    color: var(--accent);
}

/* Neue Aktivität Animation */
.activity-item.activity-new {
    animation: slideInFade 0.4s ease-out;
    background: rgba(34, 197, 94, 0.1);
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

html.dark-mode .activity-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.activity-item:last-child {
    border-bottom: none;
}

/* Farbcodierung nach Aktivitätstyp */
.activity-item[data-type="qrv"]              { border-left-color: var(--success); }
.activity-item[data-type="user_neu"]         { border-left-color: var(--info); }
.activity-item[data-type="termin_teilnahme"] { border-left-color: var(--warning); }
.activity-item[data-type="kommentar"]        { border-left-color: var(--warning); }
.activity-item[data-type="termin_neu"]       { border-left-color: var(--accent); }
.activity-item[data-type="aktivierung"]      { border-left-color: var(--purple); }
.activity-item[data-type="contest_teilnahme"]{ border-left-color: var(--gold); }
.activity-item[data-type="spot"]             { border-left-color: #ec4899; } /* Pink für DX */
.activity-item[data-type="funkfreund"]       { border-left-color: var(--info); } /* Blau für Funkfreundschaft */
.activity-item[data-type="solar"]            { 
    border-left-color: var(--gold); 
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.1) 0%, transparent 50%);
}
.activity-item[data-type="solar"] .activity-icon {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(234, 179, 8, 0.5));
}

.activity-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.activity-text a {
    color: var(--accent);
    text-decoration: none;
}

.activity-text a:hover {
    text-decoration: underline;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* Mini 73 Button für Dashboard */
.btn-73-mini {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    font-size: 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-right: 8px;
}
.btn-73-mini:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}
.btn-73-mini.active {
    background: var(--warning);
    border-color: var(--warning);
    color: #fff;
    animation: pulse73mini 0.3s ease-out;
}
.btn-73-mini .btn-73-count {
    font-weight: 600;
}
.activity-73-count {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-right: 8px;
    opacity: 0.7;
}
@keyframes pulse73mini {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Announcements */
.announcements-section {
    margin-bottom: 1.5rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.announcements-section h2 {
    margin-bottom: 1rem;
}

.announcement {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.announcement-info {
    background: rgba(33, 150, 243, 0.1);
    border-color: #2196F3;
}

.announcement-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

.announcement-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: #FF9800;
}

.announcement-danger {
    background: rgba(244, 67, 54, 0.1);
    border-color: #F44336;
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.announcement-icon {
    font-size: 1.2rem;
}

.announcement-date {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-light);
}

.badge-pinned {
    font-size: 0.8rem;
}

.announcement-content {
    font-size: 0.95rem;
    line-height: 1.5;
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.announcement-content p {
    margin: 0 0 0.5rem 0;
}

.announcement-content p:last-child {
    margin-bottom: 0;
}

.announcement-content ul,
.announcement-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    list-style-position: inside;
}

.announcement-content li {
    margin-bottom: 0.25rem;
}

.announcement-content em {
    font-style: italic;
}

.announcement-content strong {
    font-weight: 600;
}

/* More hint */
.more-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Distanz und Lokal Badges */
.distanz-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    background: rgba(33, 150, 243, 0.15);
    color: #1976D2;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.lokal-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    background: rgba(76, 175, 80, 0.15);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.termin-lokal {
    border-left: 3px solid var(--accent);
}

html.dark-mode .distanz-badge {
    background: rgba(33, 150, 243, 0.25);
    color: #64B5F6;
}

html.dark-mode .lokal-badge {
    background: rgba(76, 175, 80, 0.25);
}

/* Standort Hint */
.standort-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    padding: 0.5rem;
    background: var(--bg);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.standort-hint a {
    color: var(--accent);
}

/* Top Funker List */
.top-funker-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-funker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border-radius: 8px;
}

.top-funker-rank {
    font-weight: bold;
    color: var(--accent);
    min-width: 1.5rem;
}

.top-funker-item:nth-child(1) .top-funker-rank { color: #FFD700; }
.top-funker-item:nth-child(2) .top-funker-rank { color: #C0C0C0; }
.top-funker-item:nth-child(3) .top-funker-rank { color: #CD7F32; }

.top-funker-name {
    flex: 1;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.top-funker-name:hover {
    text-decoration: underline;
}

.top-funker-count {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   QRV TOGGLE & SESSION STYLES
   ============================================ */

.qrv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.qrv-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Grüner Live-Indikator Punkt */
.live-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.qrv-count-badge {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.qrv-toggle-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* QRV Start Button (Grün) */
.qrv-start-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.btn-qrv-start {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-qrv-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.qrv-hint {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* QRV Session Active - Flat Modern Design (no inner box) */
.qrv-session-active {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

/* Single row layout: LIVE | Channel | Timer | Share */
.qrv-session-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* LIVE Badge */
.qrv-live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 83, 80, 0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(239, 83, 80, 0.3);
}

.qrv-live-dot {
    width: 8px;
    height: 8px;
    background: #EF5350;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px #EF5350;
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 8px #EF5350;
    }
    50% { 
        opacity: 0.6; 
        transform: scale(0.85);
        box-shadow: 0 0 4px #EF5350;
    }
}

.qrv-live-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #EF5350;
}

/* QRV Share Button */
.btn-qrv-share {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-qrv-share:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Channel displayed inline */
.qrv-session-channel {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

/* Timer as subtle badge */
.qrv-session-timer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
}

#qrv-timer {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.7);
}

/* Action buttons */
.qrv-session-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.btn-change {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.btn-change:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-qrt {
    flex: 1;
    background: rgba(239, 83, 80, 0.15);
    color: #EF5350;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(239, 83, 80, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.btn-qrt:hover {
    background: rgba(239, 83, 80, 0.25);
    border-color: rgba(239, 83, 80, 0.5);
}

/* Share Toast Notification */
.share-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.share-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* QRV User List */
.qrv-user-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

/* Custom Scrollbar für Webkit (Chrome, Safari, Edge) */
.qrv-user-list::-webkit-scrollbar {
    width: 6px;
}

.qrv-user-list::-webkit-scrollbar-track {
    background: transparent;
}

.qrv-user-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.qrv-user-list::-webkit-scrollbar-thumb:hover {
    background: #2e7d32;
}

/* === QRV Liste: Avatar + 2-Zeilen Grid === */
.qrv-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qrv-liste li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.05rem 0.6rem;
    padding: 0.5rem 0.35rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s;
    align-items: center;
}

.qrv-liste li:hover {
    background: rgba(255,255,255,0.03);
}

.qrv-liste li:last-child {
    border-bottom: none;
}

.qrv-liste li.eigener-eintrag {
    background: rgba(76, 175, 80, 0.08);
    margin: 0 -0.35rem;
    padding: 0.5rem 0.35rem;
    border-radius: 6px;
}

.qrv-liste li.gleicher-kanal {
    background: rgba(76, 175, 80, 0.05);
}

/* Avatar */
.qrv-avatar-link {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    text-decoration: none;
    width: 28px;
    height: 28px;
    min-width: 28px;
    overflow: hidden;
    border-radius: 50%;
}

.qrv-avatar {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    min-width: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.qrv-avatar-placeholder {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

/* Rufzeichen */
.qrv-user-link {
    grid-column: 2;
    grid-row: 1;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.2;
}

.qrv-user-link:hover {
    color: var(--accent);
}

/* Zeit */
.qrv-time {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.7rem;
    color: var(--text-light);
    opacity: 0.45;
    text-align: right;
    white-space: nowrap;
}

/* Kanal */
.qrv-channel {
    grid-column: 2;
    grid-row: 2;
    color: var(--accent);
    font-size: 0.78rem;
    white-space: nowrap;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Gleicher-Kanal Dot */
.same-ch-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    min-width: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Entfernung (statt Standort) */
.qrv-distance {
    grid-column: 3;
    grid-row: 2;
    font-size: 0.72rem;
    color: var(--text-light);
    opacity: 0.5;
    text-align: right;
    white-space: nowrap;
}

/* Mobile QRV */
@media (max-width: 600px) {
    .qrv-liste li {
        grid-template-columns: 24px 1fr auto;
        gap: 0.03rem 0.45rem;
        padding: 0.4rem 0.2rem;
    }

    .qrv-avatar-link {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .qrv-avatar, .qrv-avatar-placeholder {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        min-width: 24px;
    }

    .qrv-avatar-placeholder {
        font-size: 0.55rem;
    }

    .qrv-user-link {
        font-size: 0.85rem;
    }

    .qrv-channel {
        font-size: 0.74rem;
    }

    .qrv-distance {
        font-size: 0.68rem;
    }

    .qrv-time {
        font-size: 0.65rem;
    }
}

/* QRV Modal */
.qrv-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.qrv-modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modal-in 0.3s ease-out;
}

@keyframes modal-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.qrv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.qrv-modal-header h3 {
    margin: 0;
}

.qrv-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    line-height: 1;
}

.qrv-modal-close:hover {
    color: var(--text);
}

.qrv-form-group {
    margin-bottom: 1rem;
}

.qrv-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.qrv-form-group .optional {
    font-weight: normal;
    color: var(--text-light);
    font-size: 0.85rem;
}

.qrv-form-group select,
.qrv-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
}

/* Standort Input mit Locate Button */
.standort-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.standort-input-wrapper input {
    flex: 1;
}

.btn-locate {
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.btn-locate:hover {
    background: #2e7d32;
    transform: scale(1.05);
}

.btn-locate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-locate.locating {
    animation: pulse 1s infinite;
}

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

.locate-status {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.locate-status.success {
    color: var(--accent);
}

.locate-status.error {
    color: #e74c3c;
}

.qrv-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.qrv-form-actions .btn {
    flex: 1;
}

.qrv-modal-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 1rem 0 0 0;
}

/* QRV Modal - Kanal Section */
.qrv-kanal-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Kanal Slider */
.kanal-display {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
    margin-left: 0.5rem;
    transition: transform 0.15s ease, font-size 0.15s ease;
}

/* Pulse-Animation bei Kanalwechsel */
.kanal-display.kanal-pulse {
    transform: scale(1.3);
}

/* DX-Modus: Badge in Gold */
.kanal-display.kanal-dx {
    background: #e8a800;
    min-width: 2.2rem;
}

.freq-display {
    display: block;
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', 'Courier New', monospace;
    background: #0d0d0d;
    color: #00ff88;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid #2a2a2a;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.6), 0 0 4px rgba(0, 255, 136, 0.3);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: color 0.2s, text-shadow 0.2s;
}

/* DX-Modus: Frequenz-Display in Gold */
.freq-display.dx-active {
    color: #ffd54f;
    text-shadow: 0 0 12px rgba(255, 213, 79, 0.6), 0 0 4px rgba(255, 213, 79, 0.3);
    border-color: rgba(255, 213, 79, 0.25);
}

/* ── Slider Wrapper ── */
.kanal-slider-wrapper {
    position: relative;
    margin-top: 0.5rem;
}

/* ── Slider Track mit CEPT/DE/DX Segmenten ── */
/* 81 Positionen: 1-40 CEPT (48.75%), 41-80 DE (48.75%), 81 DX (1.25%) + Gaps */
.kanal-slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(
        to right,
        var(--accent) 0%,
        var(--accent) 48.2%,
        rgba(255,255,255,0.2) 48.2%,
        rgba(255,255,255,0.2) 49%,
        #5c6bc0 49%,
        #7e57c2 97%,
        rgba(255,255,255,0.2) 97%,
        rgba(255,255,255,0.2) 97.5%,
        #e8a800 97.5%,
        #ffd54f 100%
    );
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.kanal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 35% 35%, #fff 0%, var(--accent) 60%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.kanal-slider::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.kanal-slider::-webkit-slider-thumb:active {
    transform: scale(1.25);
}

.kanal-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 35% 35%, #fff 0%, var(--accent) 60%);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ── Segment Labels (CEPT / DE / DX) ── */
.kanal-segment-labels {
    display: flex;
    margin-top: 0.2rem;
    padding: 0 2px;
    gap: 0;
}

.segment-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.55;
}

.segment-cept {
    color: var(--accent);
    flex: 0 0 49%;
}

.segment-de {
    color: #7e57c2;
    flex: 1;
}

.segment-dx {
    color: #e8a800;
    text-align: right;
    flex: 0 0 auto;
}

.kanal-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.15rem;
    padding: 0 2px;
}

.marker-dx {
    color: #e8a800;
    font-weight: 700;
}

/* Betriebsart Buttons */
.betriebsart-buttons {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.betriebsart-buttons input[type="radio"] {
    display: none;
}

.ba-btn {
    flex: 1;
    padding: 0.6rem 0.5rem;
    text-align: center;
    background: var(--bg);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    border-right: 1px solid var(--border);
    margin: 0;
}

.ba-btn:last-of-type {
    border-right: none;
}

.betriebsart-buttons input[type="radio"]:checked + .ba-btn {
    background: var(--accent);
    color: white;
}

.ba-btn:hover {
    background: rgba(76, 175, 80, 0.15);
}

.betriebsart-buttons input[type="radio"]:checked + .ba-btn:hover {
    background: var(--accent);
}