/* ── Funkwelt APRS Karte v2.0.0 – Helles Design ─────────────────────────── */
.fw-aprs-widget {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    background: #ffffff;
    margin: 1.5em 0;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.fw-aprs-header {
    background: #f8fafc;
    border-bottom: 2px solid #e8400a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.fw-aprs-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.fw-aprs-icon { font-size: 18px; }

.fw-aprs-badge-live {
    display: inline-block;
    background: #e8400a;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 2px 6px;
    border-radius: 3px;
    animation: fw-aprs-pulse 2s ease-in-out infinite;
}

@keyframes fw-aprs-pulse { 0%,100%{opacity:1} 50%{opacity:0.45} }

.fw-aprs-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fw-aprs-hours-select {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: #374151 !important;
    border-radius: 5px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    height: 30px !important;
    cursor: pointer;
}

.fw-aprs-hours-select:focus {
    outline: none !important;
    border-color: #e8400a !important;
}

.fw-aprs-btn {
    background: #e8400a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    width: 30px;
    height: 30px;
    font-size: 16px !important;
    cursor: pointer !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0 !important;
}

.fw-aprs-btn:hover { background: #c0340a !important; }

.fw-aprs-ext-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    color: #64748b !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: border-color 0.15s, color 0.15s;
    background: #fff;
}

.fw-aprs-ext-link:hover { border-color: #94a3b8; color: #1e293b !important; }

/* ── Stationsauswahl ─────────────────────────────────────────────────────── */
.fw-aprs-stations {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    align-items: center;
}

.fw-aprs-station-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    padding: 3px 0;
    font-size: 13px !important;
    font-weight: normal !important;
    color: #374151 !important;
    margin: 0 !important;
}

.fw-aprs-station-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0 !important;
    cursor: pointer;
    accent-color: #e8400a;
}

.fw-aprs-station-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1.5px solid rgba(0,0,0,0.15);
}

.fw-aprs-station-name {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: #0f172a;
}

.fw-aprs-station-desc {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.fw-aprs-station-status {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 60px;
}

/* ── Karte ───────────────────────────────────────────────────────────────── */
.fw-aprs-map-wrap { position: relative; }
.fw-aprs-leaflet-map { z-index: 1; }

.fw-aprs-overlay-status {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    color: #1e293b;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fw-aprs-status-warn  { color: #b45309 !important; border-color: #fbbf24 !important; }
.fw-aprs-status-error { color: #dc2626 !important; border-color: #fca5a5 !important; }

.fw-aprs-refresh-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.92);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 11px;
    color: #64748b;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.fw-aprs-refresh-icon { font-size: 13px; animation: fw-aprs-spin 5s linear infinite; }
@keyframes fw-aprs-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* ── Info-Leiste ─────────────────────────────────────────────────────────── */
.fw-aprs-info-bar {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 7px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    font-size: 12px;
    min-height: 32px;
    align-items: center;
}

.fw-aprs-info-item {
    color: #64748b;
    padding-right: 16px;
    white-space: nowrap;
}

.fw-aprs-info-item:first-child {
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.fw-aprs-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 5px 16px;
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
}

.fw-aprs-footer a { color: #e8400a !important; text-decoration: none !important; }
.fw-aprs-footer a:hover { text-decoration: underline !important; }

/* ── Pin-Marker ──────────────────────────────────────────────────────────── */
.fw-aprs-pin {
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.8);
    animation: fw-aprs-drop 0.35s cubic-bezier(.22,1,.36,1);
}

.fw-aprs-pin > * { transform: rotate(45deg); font-size: 16px; }

@keyframes fw-aprs-drop {
    0%   { transform: rotate(-45deg) translateY(-12px) scale(0.7); opacity: 0; }
    70%  { transform: rotate(-45deg) translateY(2px) scale(1.05); }
    100% { transform: rotate(-45deg) translateY(0) scale(1); opacity: 1; }
}

/* ── Popup ────────────────────────────────────────────────────────────────── */
.fw-aprs-popup { font-size: 13px; line-height: 1.6; }
.fw-aprs-popup-call { font-size: 15px; font-weight: 700; }
.fw-aprs-popup-time { font-size: 11px; color: #94a3b8; }
.leaflet-popup-content-wrapper { border-radius: 8px !important; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .fw-aprs-header { flex-direction: column; align-items: flex-start; }
    .fw-aprs-stations { gap: 4px 12px; }
    .fw-aprs-station-desc { display: none; }
    .fw-aprs-info-bar { gap: 4px; }
    .fw-aprs-info-item { padding-right: 10px; }
}
