:root {
    --bg: #f0f4f8;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --primary: #1a5276;
    --primary-hover: #154360;
    --primary-light: rgba(26,82,118,0.1);
    --secondary: #27ae60;
    --secondary-hover: #219a52;
    --accent: #e67e22;
    --border: #d1d5db;
    --border-light: #e5e7eb;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --sidebar-width: 300px;
    --topbar-height: 56px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a;
        --surface: #1e293b;
        --surface-hover: #273548;
        --text: #e2e8f0;
        --text-muted: #94a3b8;
        --text-light: #64748b;
        --primary: #2980b9;
        --primary-hover: #3498db;
        --primary-light: rgba(41,128,185,0.15);
        --secondary: #2ecc71;
        --secondary-hover: #27ae60;
        --border: #334155;
        --border-light: #1e293b;
        --error: #ef4444;
        --error-bg: #1c1917;
        --warning: #f59e0b;
        --warning-bg: #1c1917;
        --success: #22c55e;
        --success-bg: #052e16;
        --shadow: 0 2px 8px rgba(0,0,0,0.3);
        --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}
body.page-map {
    overflow: hidden;
    height: 100vh;
}

/* ---- TOPBAR ---- */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-height);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.topbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.topbar-nav {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.topbar-nav::-webkit-scrollbar { display: none; }
.topbar-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.topbar-nav a:hover, .topbar-nav a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}
.topbar-user .user-name {
    font-size: 0.875rem;
    opacity: 0.9;
}
.topbar-user .role-badge {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn-topbar {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}
.btn-topbar:hover { background: rgba(255,255,255,0.25); }

/* Brand als Link (Logo + Vereinsname) */
a.topbar-brand { color: #fff; text-decoration: none; }
.brand-logo {
    height: 34px; width: auto; max-width: 120px;
    border-radius: 6px; object-fit: contain; display: block;
    background: rgba(255,255,255,0.12);
}
.brand-logo-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; font-size: 1.2rem;
}
.brand-name { font-size: 1.1rem; font-weight: 700; white-space: nowrap; }

/* Menü-Toggle (☰) + Dropdown */
.nav-toggle {
    background: rgba(255,255,255,0.15);
    color: #fff; border: none; cursor: pointer;
    font-size: 1.2rem; line-height: 1;
    padding: 0.4rem 0.65rem; margin-left: 0.75rem;
    border-radius: var(--radius); transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.25); }

/* Offline-Sync-Anzeige */
.pending-sync {
    margin-left: auto;
    margin-right: 0.6rem;
    background: var(--warning);
    color: #1a1a2e;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.nav-menu {
    display: none;
    position: fixed;
    top: calc(var(--topbar-height) + 4px);
    left: 0.5rem;
    min-width: 230px;
    max-height: calc(100vh - var(--topbar-height) - 12px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    padding: 0.4rem;
    z-index: 1100;
}
.nav-menu.open { display: block; }
.nav-menu a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    white-space: nowrap;
}
.nav-menu a:hover { background: var(--primary-light); }
.nav-menu a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-menu-divider { height: 1px; background: var(--border); margin: 0.4rem 0.2rem; }
.nav-menu-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-light); padding: 0.35rem 0.8rem 0.15rem; }

/* ---- SIDEBAR ---- */
.sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--topbar-height));
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 900;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.sidebar.collapsed { transform: translateX(-100%); }
.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}
.sidebar-toggle {
    position: fixed;
    top: calc(var(--topbar-height) + 0.75rem);
    left: var(--sidebar-width);
    z-index: 901;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.5rem 0.35rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: left 0.3s ease;
    font-size: 1rem;
    line-height: 1;
}
.sidebar.collapsed + .sidebar-toggle { left: 0; }

/* Sidebar sections */
.sidebar-section {
    border-bottom: 1px solid var(--border);
}
.sidebar-section:last-child { border-bottom: none; }
.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    user-select: none;
    transition: background 0.15s;
}
.sidebar-section-header:hover { background: var(--surface-hover); }
.section-toggle {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.sidebar-section-body {
    overflow: hidden;
    transition: max-height 0.25s ease;
    max-height: 2000px;
}
.sidebar-section-body.collapsed {
    max-height: 0;
}
.sidebar-section-body .empty-hint {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Water body list items */
.wb-item {
    padding: 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
    margin-bottom: 0.25rem;
}
.wb-item:hover { background: var(--surface-hover); }
.wb-item.active {
    background: var(--primary-light);
    border-left-color: var(--primary);
}
.wb-item .wb-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}
.wb-item .wb-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- MAP CONTAINER ---- */
.map-container {
    position: fixed;
    top: var(--topbar-height);
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    transition: left 0.3s ease;
}
.sidebar.collapsed ~ .map-container { left: 0; }
#map { width: 100%; height: 100%; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-hover); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-danger { background: var(--error); color: #fff; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.btn-icon {
    width: 36px; height: 36px;
    padding: 0; justify-content: center;
    border-radius: 50%;
}

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { font-size: 1.1rem; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    line-height: 1;
}
.modal-body { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ---- FORMS ---- */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
select.form-control {
    appearance: auto;
}
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Species in closed season */
.species-closed { color: var(--error) !important; }

/* Upload-Fortschrittsanzeige */
.upload-progress { margin-top: 0.5rem; }
.upload-bar-track {
    height: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.upload-bar {
    height: 100%;
    width: 0;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
    transition: width 0.15s ease;
}

/* GPS deaktiviert (Opt-out): sichtbar inaktiv, aber klickbar – der Klick zeigt den Hinweis */
.gps-off {
    opacity: 0.45;
    cursor: help;
    filter: grayscale(1);
}

/* GPS-Status im Fang-Dialog */
.gps-status {
    font-size: 0.78rem;
    margin-top: 0.35rem;
    min-height: 1.1em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.gps-status:empty { display: none; }
.gps-acc { font-weight: 600; }
.gps-good { color: var(--success); }
.gps-ok   { color: var(--warning); }
.gps-poor { color: var(--error); }
.gps-wait { color: var(--text-muted); }

/* ---- MAP CONTROLS ---- */
.map-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 950;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.map-fab .btn {
    box-shadow: var(--shadow-lg);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* ---- ROUTE ZEICHNEN ---- */
.map-container.drawing #map { cursor: crosshair; }

.draw-banner {
    display: none;
    position: fixed;
    top: calc(var(--topbar-height) + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 960;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.6rem 0.9rem;
    align-items: center;
    gap: 1rem;
    max-width: calc(100vw - 2rem);
    flex-wrap: wrap;
}
.draw-banner.active { display: flex; }
.draw-banner-hint { font-size: 0.85rem; color: var(--text); }
.draw-banner-actions { display: flex; gap: 0.4rem; }

/* Gewässer-Editor: Stützpunkte und Einfüge-Griffe */
.wb-vertex {
    background: #fff;
    border: 2px solid #dc2626;
    border-radius: 50%;
    box-sizing: border-box;
    cursor: move;
}
.wb-midpoint {
    background: #dc2626;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    line-height: 14px;
    text-align: center;
    cursor: pointer;
    opacity: 0.7;
}
.wb-midpoint:hover { opacity: 1; }

/* Marker zum Setzen der Fangposition (Emoji statt externem Bild) */
.catch-pick-pin {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    text-align: center;
    cursor: grab;
}

/* Foto-Auswahl: Kamera- und Galerie-Knopf nebeneinander */
.photo-pick { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; margin-top: 0.2rem; }
.photo-name { font-size: 0.8rem; color: var(--text-muted); word-break: break-all; }

/* Fang-Marker (Emoji). Eigene/fremde über einen farbigen Ring unterscheidbar. */
.catch-pin {
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}
.catch-pin-own   { filter: drop-shadow(0 0 2px #1a5276) drop-shadow(0 0 2px #1a5276); }
.catch-pin-other { opacity: 0.85; }

/* POI-Marker auf der Karte */
.poi-pin {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
/* Gefahren-POIs deutlich hervorheben */
.poi-pin-warning {
    filter: drop-shadow(0 0 3px #dc2626) drop-shadow(0 0 3px #dc2626);
}

@media (max-width: 768px) {
    .draw-banner { left: 0.5rem; right: 0.5rem; transform: none; max-width: none; }
    .draw-banner-hint { font-size: 0.78rem; }
}

/* ---- ALERTS ---- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning); }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }

/* ---- CATCH MARKERS ---- */
.catch-marker-own {
    background: var(--primary);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.catch-marker-other {
    background: #9ca3af;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .sidebar { width: 260px; }
    .sidebar-toggle { left: 260px; }
    .sidebar.collapsed + .sidebar-toggle { left: 0; }
    .map-container { left: 0; }
    .topbar-brand { font-size: 1rem; margin-right: 0.5rem; }
    .topbar-nav a span.nav-label { display: none; }
    .topbar-nav a { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
    .topbar-user .user-name { display: none; }
    .topbar-user .role-badge { display: none; }
    .brand-name { max-width: 48vw; overflow: hidden; text-overflow: ellipsis; }
    .map-fab { bottom: 1.5rem; right: 1rem; }
    .admin-layout { padding: 1rem; }
    .admin-layout .data-table { display: block; overflow-x: auto; }
    .form-row { grid-template-columns: 1fr; }
    .admin-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

/* ---- TABLES ---- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.data-table tr:hover { background: var(--surface-hover); }

/* ---- CARDS ---- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.card-header {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}
.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

/* ---- ADMIN LAYOUT ---- */
.admin-layout {
    margin-top: var(--topbar-height);
    padding: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - var(--topbar-height));
    overflow-y: auto;
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.admin-header h2 { font-size: 1.4rem; }

/* ---- TABS ---- */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
    gap: 0;
}
.tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tab:hover { color: var(--text); }
.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ---- LOADING ---- */
.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- WATER BODY INTERACTION ---- */
.leaflet-interactive { cursor: pointer !important; }

/* ---- LEAFLET POPUP OVERRIDES ---- */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
}
.catch-popup h4 { margin-bottom: 0.3rem; font-size: 0.95rem; }
.catch-popup .catch-detail { font-size: 0.8rem; color: var(--text-muted); margin: 0.15rem 0; }
.catch-popup img { max-width: 200px; border-radius: var(--radius); margin-top: 0.5rem; }

/* ---- DASHBOARD ---- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dash-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}
.dash-hero-logo img {
    width: 72px; height: 72px; object-fit: contain;
    border-radius: var(--radius); background: var(--bg);
}
.dash-hero-logo-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; font-size: 2.4rem;
    border-radius: var(--radius); background: var(--bg);
}
.dash-hero-title { font-size: 1.5rem; margin: 0; }
.dash-hero-sub { color: var(--text-muted); margin: 0.25rem 0 0; }

.dash-quick {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--primary); color: #fff; text-decoration: none;
    font-size: 1.05rem; font-weight: 700;
    padding: 0.9rem 1rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
    transition: background 0.2s;
}
.dash-quick:hover { background: var(--primary-hover); }

.dash-section-title { font-size: 1.05rem; margin: 0 0 0.75rem; }

.dash-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.4rem; text-align: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.1rem 0.75rem;
    color: var(--text); text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.12s, border-color 0.2s;
    font-weight: 600; font-size: 0.9rem;
}
.dash-tile:hover { transform: translateY(-2px); border-color: var(--primary); }
.dash-tile-icon { font-size: 1.8rem; line-height: 1; }

.dash-widget-body { font-size: 0.9rem; }
.dash-loading, .dash-muted { color: var(--text-muted); }
.dash-line { margin: 0.35rem 0; }
.dash-stat-row { display: flex; gap: 1.5rem; margin-bottom: 0.5rem; }
.dash-stat { display: flex; flex-direction: column; }
.dash-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.dash-stat-lbl { font-size: 0.75rem; color: var(--text-muted); }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { padding: 0.25rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.dash-list li:last-child { border-bottom: none; }
.dash-bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-top: 0.35rem; }
.dash-bar-fill { height: 100%; background: var(--primary); }

/* Vereinslogo-Thumbnail (Vereinsverwaltung) */
.club-logo-thumb {
    height: 40px; width: auto; max-width: 90px;
    object-fit: contain; border-radius: var(--radius);
    background: var(--bg); vertical-align: middle;
}

/* ---- FISCHART-KARTEN (Regeln-Ansicht & -Verwaltung) ---- */
.species-cards { display: flex; flex-direction: column; gap: 0.9rem; }
.species-card {
    display: flex; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 0.9rem 1rem;
}
.species-img {
    flex-shrink: 0; width: 220px; height: 150px;
    border-radius: var(--radius); overflow: hidden; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
}
/* contain statt cover: der ganze Fisch bleibt sichtbar (Kopf + Schwanz) */
.species-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.species-img-ph { font-size: 2.4rem; opacity: 0.5; }
.species-img-loading { position: relative; }
.species-img-loading::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(128,128,128,0.15), transparent);
    animation: species-shimmer 1.2s infinite;
}
@keyframes species-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.species-body { flex: 1; min-width: 0; }
.species-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.species-name { font-weight: 700; font-size: 1.05rem; }
.species-latin { color: var(--text-muted); font-style: italic; font-size: 0.85rem; margin-top: 0.1rem; }
.species-desc {
    font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.species-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.chip {
    background: var(--primary-light); color: var(--text);
    border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.78rem; white-space: nowrap;
}
.chip-l { color: var(--text-muted); }
.chip-muted { background: var(--bg); color: var(--text-muted); }
.species-note { font-size: 0.82rem; margin-top: 0.4rem; }
.species-wiki-link { display: inline-block; margin-top: 0.5rem; font-size: 0.82rem; color: var(--primary); text-decoration: none; }
.species-wiki-link:hover { text-decoration: underline; }
.species-edit { flex-shrink: 0; }
.species-card .closed { color: var(--error); font-weight: 600; }
@media (max-width: 560px) {
    .species-card { flex-direction: column; }
    .species-img { width: 100%; height: 160px; }
}
