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

body {
    background: #0a1a0f;
    color: #f0fdf4;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding-bottom: 72px;
    -webkit-tap-highlight-color: transparent;
}

/* ── Header ─────────────────────────────────── */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #0f1f15;
    border-bottom: 1px solid #1e3526;
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo {
    height: 30px;
    width: auto;
}

#header-coords {
    font-size: 0.68rem;
    color: #4ade80;
    font-family: monospace;
    opacity: 0.8;
}

/* ── Loading Overlay ─────────────────────────── */
#loading {
    position: fixed;
    inset: 0;
    background: rgba(10, 26, 15, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #f0fdf4;
    z-index: 100;
}

#loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #1e3526;
    border-top-color: #d97706;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ── Error Banner ────────────────────────────── */
#error-msg {
    display: none;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid #dc2626;
    color: #fca5a5;
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
    margin: 0.5rem 0.75rem;
    border-radius: 8px;
}

/* ── Views ───────────────────────────────────── */
.view { display: block; }

/* ── Setup View ──────────────────────────────── */
.setup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 130px);
    padding: 2rem;
    text-align: center;
    gap: 1.25rem;
}

.setup-icon { font-size: 5rem; }

.setup-card h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #d97706;
}

.setup-card p {
    color: #86efac;
    font-size: 1rem;
    max-width: 280px;
    line-height: 1.5;
}

/* ── Risk Banner ─────────────────────────────── */
.risk-banner {
    padding: 1.75rem 1rem 1.5rem;
    text-align: center;
    background: #16a34a;
    transition: background-color 0.5s ease;
}

.risk-score-big {
    font-size: 4.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.risk-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.2rem;
}

.risk-sublabel {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Risk Meter ──────────────────────────────── */
.risk-meter-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: #0f1f15;
    border-bottom: 1px solid #1e3526;
}

.risk-meter {
    flex: 1;
    background: linear-gradient(to right,
        #16a34a 0%, #16a34a 25%,
        #eab308 25%, #eab308 50%,
        #ea580c 50%, #ea580c 75%,
        #dc2626 75%, #dc2626 100%
    );
    height: 12px;
    border-radius: 6px;
    position: relative;
}

.risk-meter-needle {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 20px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    transition: left 0.5s ease;
}

/* ── Prognose ────────────────────────────────── */
.prognose-card {
    background: #0f1f15;
    border: 1px solid #1e3526;
    border-radius: 12px;
    padding: 1rem;
    margin: 0.75rem;
}

.card-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #86efac;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

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

.prognose-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.25rem;
    border-radius: 8px;
    background: #162a1e;
    border: 1px solid #1e3526;
}

.prognose-item.active {
    border-color: #d97706;
    background: #1a3020;
}

.prognose-time {
    font-size: 0.75rem;
    color: #86efac;
    margin-bottom: 0.25rem;
}

.prognose-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f0fdf4;
}

.prognose-label {
    font-size: 0.7rem;
    color: #4ade80;
    margin-top: 0.1rem;
}

.prognose-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 0.4rem;
}

/* ── Erklärung ───────────────────────────────── */
.erklaerung-card {
    background: #0f1f15;
    border: 1px solid #2d5a3d;
    border-left: 4px solid #d97706;
    border-radius: 12px;
    padding: 1rem;
    margin: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.erklaerung-icon { font-size: 1.5rem; }

.erklaerung-text {
    color: #f0fdf4;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

#risk-meter-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: #86efac;
    min-width: 26px;
    text-align: right;
    font-family: monospace;
}

/* ── Cards ───────────────────────────────────── */
.card {
    background: #0f1f15;
    border: 1px solid #1e3526;
    border-radius: 12px;
    padding: 1rem;
    margin: 0.75rem;
}

.card h3 {
    font-size: 0.72rem;
    font-weight: 700;
    color: #86efac;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

/* ── Factor Rows ─────────────────────────────── */
.factor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #1e3526;
    font-size: 0.88rem;
}

.factor-row:last-child { border-bottom: none; }

.factor-row span:first-child { color: #86efac; }

.factor-row span:last-child {
    color: #f0fdf4;
    font-weight: 600;
    font-family: monospace;
    font-size: 0.85rem;
}

/* ── Solunar Rows ────────────────────────────── */
.solunar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.88rem;
    color: #86efac;
    border-bottom: 1px solid #1e3526;
}

.solunar-row:last-child { border-bottom: none; }

.solunar-row.hauptzeit {
    color: #d97706;
    font-weight: 600;
}

.solunar-row span:last-child {
    font-family: monospace;
    font-size: 0.82rem;
}

/* ── Buttons ─────────────────────────────────── */
.btn-primary {
    background: #d97706;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.15s;
}

.btn-primary:active { opacity: 0.8; }

.btn-refresh {
    display: block;
    background: transparent;
    border: 1px solid #2d5a3d;
    color: #86efac;
    width: calc(100% - 1.5rem);
    margin: 0.25rem 0.75rem 1rem;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.15s;
}

.btn-refresh:active { background: #1e3526; }

/* ── Bottom Navigation ───────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f1f15;
    border-top: 1px solid #1e3526;
    display: flex;
    justify-content: space-around;
    z-index: 50;
}

.bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.7rem 0;
    background: none;
    border: none;
    color: #4ade80;
    font-size: 1.35rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.bottom-nav button span {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bottom-nav button.active { color: #d97706; }

/* ── Settings ────────────────────────────────── */
.card label {
    display: block;
    color: #86efac;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card select {
    width: 100%;
    background: #0a1a0f;
    color: #f0fdf4;
    border: 1px solid #1e3526;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    appearance: none;
    cursor: pointer;
}

/* ── Footer Credit ───────────────────────────── */
.lumaris-credit {
    text-align: center;
    padding: 1rem;
    font-size: 0.78rem;
    color: #4ade80;
    opacity: 0.7;
}

.lumaris-credit a {
    color: #d97706;
    text-decoration: none;
}

/* ── Wild melden ─────────────────────────────── */
.btn-wild-melden {
    width: calc(100% - 1.5rem);
    margin: 0 0.75rem 0.75rem;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

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

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ── Responsive ──────────────────────────────── */
@media (min-width: 480px) {
    .risk-score-big { font-size: 5rem; }

    .card { margin: 0.75rem 1rem; }
}

/* ── Design Tokens ───────────────────────────── */
:root {
    --bg:       #080f0a;
    --surface:  #111d14;
    --border:   #1e3020;
    --amber:    #c17f24;
    --text:     #e8f5ec;
    --muted:    #7aab86;
    --safe:     #16a34a;
    --medium:   #eab308;
    --elevated: #ea580c;
    --danger:   #dc2626;
}

/* ── Jäger: Wildart-Filter ───────────────────── */
.wildart-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.wildart-chip {
    background: #162a1e;
    border: 1px solid #1e3020;
    color: #7aab86;
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.wildart-chip.active {
    background: #1f3a1a;
    border-color: #c17f24;
    color: #c17f24;
}

.wildart-chip:active { opacity: 0.75; }

/* ── Jäger: Chart ────────────────────────────── */
#jaeger-chart-wrap {
    margin-top: 0.25rem;
    overflow: hidden;
}

.jaeger-skeleton {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #7aab86;
    font-size: 0.85rem;
    padding: 1.5rem 0;
}

.jaeger-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #1e3526;
    border-top-color: #c17f24;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    flex-shrink: 0;
}

/* ── Jäger: Tooltip ──────────────────────────── */
.jaeger-tooltip {
    position: fixed;
    background: #0f1f15;
    border: 1px solid #2d5a3d;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    color: #e8f5ec;
    line-height: 1.5;
    pointer-events: none;
    z-index: 300;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    min-width: 80px;
}

.jaeger-tooltip strong {
    color: #c17f24;
    display: block;
    margin-bottom: 0.1rem;
}

/* ── Jäger: Legende ──────────────────────────── */
.jaeger-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    margin-top: 0.65rem;
    font-size: 0.75rem;
    color: #7aab86;
    align-items: center;
}

.jl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.jl-line {
    display: inline-block;
    width: 14px;
    height: 2px;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.jl-amber  { background: #c17f24; }
.jl-dashed {
    background: none;
    border-top: 2px dashed #f59e0b;
}

/* ── Jäger: Wetter-Row ───────────────────────── */
.jw-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.jw-row::-webkit-scrollbar { display: none; }

.jw-card {
    flex-shrink: 0;
    background: #162a1e;
    border: 1px solid #1e3020;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 72px;
}

.jw-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
}

.jw-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e8f5ec;
    white-space: nowrap;
}

.jw-lbl {
    font-size: 0.68rem;
    color: #7aab86;
    text-align: center;
    white-space: nowrap;
}

.jw-einschaetzung {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #162a1e;
    border: 1px solid #1e3020;
    border-left-width: 3px;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    color: #e8f5ec;
    line-height: 1.45;
}

/* ── Ansitz Timer ────────────────────────────── */
.btn-ansitz-set {
    width: 100%;
    background: transparent;
    border: 1px solid #2a4030;
    color: #7aab86;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s;
}

.btn-ansitz-set:active { background: #1e3526; }

.ansitz-countdown-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #162a1e;
    border: 1px solid #2a4030;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
}

.ansitz-abort {
    background: none;
    border: 1px solid #2a4030;
    color: #7aab86;
    border-radius: 6px;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.ansitz-abort:active { background: #1e3526; }

/* ── Ansitz Modal ────────────────────────────── */
.ansitz-modal-box {
    background: #111d14;
    border: 1px solid #1e3020;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 1.25rem 1rem 1.5rem;
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.22s ease;
}

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

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

.ansitz-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.ansitz-chip {
    background: #162a1e;
    border: 1px solid #1e3020;
    color: #7aab86;
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ansitz-chip.active {
    background: #1f3a1a;
    border-color: #c17f24;
    color: #c17f24;
}

.ansitz-chip:active { opacity: 0.75; }

.ansitz-notiz-input {
    width: 100%;
    background: #0a1a0f;
    border: 1px solid #1e3020;
    border-radius: 8px;
    color: #e8f5ec;
    padding: 0.7rem 0.75rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    outline: none;
}

.ansitz-notiz-input:focus { border-color: #2d5a3d; }

select.ansitz-notiz-input { appearance: none; cursor: pointer; }

/* ── Ansitz-Planer ───────────────────────────── */
.ansitz-planer-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.ap-tab {
    flex: 1;
    background: #162a1e;
    border: 1px solid #1e3020;
    color: #7aab86;
    border-radius: 8px;
    padding: 0.4rem 0;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ap-tab.active {
    background: #1f3a1a;
    border-color: #c17f24;
    color: #c17f24;
}

.ap-tab:active { opacity: 0.75; }

.plan-card {
    background: #162a1e;
    border: 1px solid #1e3020;
    border-radius: 10px;
    padding: 0.75rem 2.2rem 0.75rem 0.75rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.plan-zeit {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e8f5ec;
    margin-bottom: 0.2rem;
}

.plan-standort {
    font-size: 0.78rem;
    color: #7aab86;
    margin-bottom: 0.35rem;
}

.plan-wildarten {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.plan-pill {
    background: #1e3a2e;
    border: 1px solid #2a5040;
    color: #86efac;
    border-radius: 20px;
    padding: 0.1rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.plan-notiz {
    font-size: 0.76rem;
    color: #4a7a5a;
    line-height: 1.4;
}

.plan-del {
    position: absolute;
    top: 0.6rem;
    right: 0.55rem;
    background: none;
    border: none;
    color: #3a5a3a;
    cursor: pointer;
    padding: 0.2rem;
    line-height: 0;
    border-radius: 4px;
    transition: color 0.15s;
}

.plan-del:active { color: #dc2626; }

.jplaener-leer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
    color: #4a7a5a;
    font-size: 0.83rem;
    text-align: center;
}

.btn-ansatz-neu {
    width: 100%;
    background: transparent;
    border: 1px dashed #2a4030;
    color: #7aab86;
    border-radius: 8px;
    padding: 0.65rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    transition: background 0.15s;
}

.btn-ansatz-neu:active { background: #1e3526; }

/* ── Jagdtagebuch ────────────────────────────── */
.tb-zeile {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #162a1e;
}

.tb-zeile:last-of-type { border-bottom: none; }

.tb-typ-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.tb-typ-sichtung { background: rgba(22, 163, 74, 0.15);  color: #16a34a; }
.tb-typ-ansitz   { background: rgba(193, 127, 36, 0.15); color: #c17f24; }
.tb-typ-abschuss { background: rgba(220, 38, 38, 0.15);  color: #dc2626; }

.tb-main { flex: 1; min-width: 0; }

.tb-meta {
    font-size: 0.7rem;
    color: #4a7a5a;
    margin-bottom: 0.1rem;
}

.tb-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e8f5ec;
}

.tb-standort {
    font-size: 0.74rem;
    color: #7aab86;
    margin-top: 0.1rem;
}

.tb-notiz-text {
    font-size: 0.74rem;
    color: #4a7a5a;
    margin-top: 0.1rem;
    line-height: 1.4;
}

.tb-del {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #3a5a3a;
    cursor: pointer;
    padding: 0.2rem;
    line-height: 0;
    transition: color 0.15s;
}

.tb-del:active { color: #dc2626; }

.tb-anzahl-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #1e3020;
    border-radius: 8px;
    overflow: hidden;
    height: 38px;
}

.tb-anzahl-btn {
    background: #162a1e;
    border: none;
    color: #7aab86;
    font-size: 1.1rem;
    width: 34px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.tb-anzahl-btn:active { background: #1e3526; }

#tb-anzahl-val {
    min-width: 32px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e8f5ec;
    background: #0a1a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
}

.tb-gps-btn {
    flex-shrink: 0;
    background: #162a1e;
    border: 1px solid #1e3020;
    color: #7aab86;
    border-radius: 8px;
    padding: 0 0.65rem;
    cursor: pointer;
    line-height: 0;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}

.tb-gps-btn:active { background: #1e3526; }

/* ── Aufklappbare Sektionen ──────────────────── */
.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.collapsible-header h3 { margin-bottom: 0; }

.collapsible-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.collapsible-body { margin-top: 0.75rem; }

/* ── Abbrechen-Button (Modals) ───────────────── */
.btn-cancel {
    background: transparent;
    border: 1px solid #2a4030;
    color: #7aab86;
    border-radius: 8px;
    padding: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-cancel:active { background: #1e3526; }

/* ── Revierkarte ─────────────────────────────── */
.rk-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rk-toolbar-btn {
    flex: 1 1 30%;
    min-width: 96px;
    min-height: 44px;
    background: #162a1e;
    border: 1px solid #1e3020;
    color: #7aab86;
    border-radius: 8px;
    padding: 0.5rem 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.rk-toolbar-btn.active {
    background: #1f3a1a;
    border-color: #c17f24;
    color: #c17f24;
}

.rk-toolbar-btn:active { opacity: 0.8; }

#rk-map-wrap { position: relative; }

#rk-map {
    height: 350px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #1e3020;
    background: #0a1a0f;
}

@media (min-width: 480px) {
    #rk-map { height: 450px; }
}

.rk-color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, transform 0.15s;
}

.rk-color-swatch.active {
    border-color: #e8f5ec;
    transform: scale(1.12);
}

.rk-marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #0a1a0f;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
}

.rk-empty-hint {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: #7aab86;
    font-size: 0.8rem;
    pointer-events: none;
    padding: 0 1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ── Leaflet Dark-Theme Anpassung ────────────── */
.leaflet-popup-content-wrapper {
    background: #0f1f15;
    color: #e8f5ec;
    border: 1px solid #1e3020;
    border-radius: 8px;
}

.leaflet-popup-tip { background: #0f1f15; }

.leaflet-popup-content {
    margin: 0.65rem 0.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
}

.leaflet-popup-content b { color: #c17f24; }

.leaflet-container a.leaflet-popup-close-button { color: #7aab86; }
