/* ============================================================
   RESET & GRUNDLAGEN
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a6b3c;
    --primary-dark: #134d2b;
    --primary-light: #2d9e5a;
    --secondary: #4a90d9;
    --danger: #e53935;
    --success: #43a047;
    --warning: #fb8c00;
    --bg: #f5f7f5;
    --card-bg: #ffffff;
    --text: #2c3e2d;
    --text-light: #6b7c6b;
    --border: #d0dbd0;
    --shadow: 0 2px 12px rgba(0,0,0,0.1);
    --header-h: 60px;
    --radius: 10px;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--primary);
    color: white;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-logo {
    font-size: 28px;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
}

.header-text h1 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.header-text p {
    font-size: 12px;
    opacity: 0.8;
}

.header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-locate {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-locate:hover { background: rgba(255,255,255,0.35); }
.btn-locate.active { background: var(--secondary); border-color: var(--secondary); }

.btn-admin {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-secondary {
    background: var(--secondary);
    color: white;
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-full { width: 100%; justify-content: center; }
.btn-small { padding: 5px 10px; font-size: 12px; }

/* ============================================================
   KARTE
   ============================================================ */
#map {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* ============================================================
   INFO PANEL (Klick auf Track)
   ============================================================ */
.info-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 16px;
    z-index: 900;
    min-width: 280px;
    max-width: min(90vw, 480px);
    transition: all 0.3s ease;
}

.info-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.info-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.info-panel-header h3 {
    font-size: 16px;
    color: var(--primary);
    padding-left: 10px;
    border-left: 4px solid var(--primary);
    flex: 1;
}

.close-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-light);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.close-btn:hover { background: var(--bg); }

#infoDesc {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

/* ============================================================
   STANDORT STATUS
   ============================================================ */
.location-status {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 900;
    transition: opacity 0.5s;
    white-space: nowrap;
    box-shadow: var(--shadow);
}
.location-status.info    { background: #e3f2fd; color: #1565c0; }
.location-status.success { background: #e8f5e9; color: #2e7d32; }
.location-status.error   { background: #ffebee; color: #c62828; }
.location-status.hidden  { display: none; }

/* ============================================================
   STANDORT MARKER (GPS Punkt)
   ============================================================ */
.location-dot {
    width: 18px;
    height: 18px;
    background: #2196F3;
    border: 3px solid white;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 6px rgba(33,150,243,0.5);
}

.location-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid #2196F3;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { opacity: 1; transform: translate(-50%,-50%) scale(0.5); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(1.5); }
}

.location-paused .location-pulse { display: none; }

/* ============================================================
   MESSWERKZEUG
   ============================================================ */
.measure-panel {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    right: 10px;
    width: 280px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    z-index: 900;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
}
.measure-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.measure-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--primary);
    color: white;
}
.measure-header h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.measure-body {
    padding: 16px;
}

.measure-distance {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.measure-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}
.measure-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.measure-points {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.measure-hint {
    font-size: 12px;
    color: var(--secondary);
    font-style: italic;
    margin-bottom: 14px;
    min-height: 16px;
}

.measure-actions {
    display: flex;
    gap: 6px;
}
.measure-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 11px;
    padding: 6px 8px;
}

.measure-saved {
    border-top: 1px solid var(--border);
}
.measure-saved-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s;
}
.measure-saved-header:hover { background: var(--bg); }

.saved-count {
    background: var(--primary);
    color: white;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    min-width: 18px;
    text-align: center;
}

.measure-saved-list {
    max-height: 200px;
    overflow-y: auto;
}
.measure-saved-list.hidden { display: none; }

.saved-empty {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

.saved-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
    gap: 8px;
}

.saved-item-info {
    flex: 1;
    cursor: pointer;
    min-width: 0;
}
.saved-item-info:hover .saved-item-name { color: var(--primary); }

.saved-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.saved-item-meta {
    font-size: 11px;
    color: var(--text-light);
}

.saved-item-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.saved-item-delete:hover { opacity: 1; }

/* Mess-Labels auf der Karte */
.measure-label span {
    background: #e63946;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.measure-label.saved span {
    background: #4a90d9;
}

/* ============================================================
   ADMIN BEREICH
   ============================================================ */
.admin-body {
    background: var(--bg);
    min-height: 100vh;
}

.admin-container {
    max-width: 860px;
    margin: calc(var(--header-h) + 24px) auto 40px;
    padding: 0 16px;
}

.admin-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.admin-card h2 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Login */
.login-box {
    max-width: 380px;
    margin: 60px auto 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 32px;
    text-align: center;
}

.login-icon { font-size: 48px; margin-bottom: 12px; }
.login-box h2 { color: var(--primary); margin-bottom: 8px; }
.login-box p  { color: var(--text-light); font-size: 14px; margin-bottom: 24px; }

.login-form .form-group {
    margin-bottom: 16px;
    text-align: left;
}
.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.login-form input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}
.alert-error   { background: #ffebee; color: #c62828; border-left: 4px solid #e53935; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #43a047; }

/* Upload */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    margin-bottom: 14px;
    transition: all 0.2s;
    cursor: pointer;
}
.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary);
    background: #f0faf3;
}
.upload-icon { font-size: 40px; margin-bottom: 10px; }
.upload-area p { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }
.file-input { display: none; }
.file-name  { display: block; font-size: 13px; color: var(--text-light); margin-top: 10px; }

/* GPX Liste */
.gpx-list { display: flex; flex-direction: column; gap: 12px; }

.gpx-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    transition: box-shadow 0.2s;
}
.gpx-item:hover { box-shadow: var(--shadow); }

.gpx-item-icon { font-size: 28px; flex-shrink: 0; padding-top: 2px; }

.gpx-item-info { flex: 1; min-width: 0; }

.gpx-item-filename {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    word-break: break-all;
}
.gpx-item-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 3px;
    line-height: 1.4;
}
.gpx-item-desc {
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gpx-item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

/* Rename Form */
.rename-form {
    padding: 12px 14px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    margin-top: -6px;
}
.rename-form.hidden { display: none; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rename-input {
    flex: 1;
    min-width: 160px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 13px;
}

/* Badge */
.badge {
    background: var(--primary);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}
.empty-state p { font-size: 15px; margin-bottom: 8px; }

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 600px) {
    .header-text h1 { font-size: 15px; }
    .header-text p  { font-size: 11px; }
    .btn { padding: 7px 10px; font-size: 12px; }

    .info-panel {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        border-radius: var(--radius) var(--radius) 0 0;
        max-width: 100%;
    }
    .info-panel.hidden {
        transform: translateY(100%);
    }

    .gpx-item { flex-direction: column; }
    .gpx-item-actions {
        flex-direction: row;
        width: 100%;
    }
    .gpx-item-actions .btn { flex: 1; justify-content: center; }

    .admin-container { padding: 0 10px; }
}

@media (max-width: 400px) {
    :root { --header-h: 56px; }
    .header-logo { font-size: 22px; }
}

/* ============================================================
   SIDEBAR TOGGLE BUTTON (im Header)
   ============================================================ */
.sidebar-toggle {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.sidebar-toggle:hover,
.sidebar-toggle.active {
    background: rgba(255,255,255,0.3);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: 300px;
    background: var(--card-bg);
    z-index: 800;
    display: flex;
    flex-direction: column;
    box-shadow: 3px 0 16px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar.open {
    transform: translateX(0);
}

/* Karte auf Desktop verschieben wenn Sidebar offen */
#map.map-shifted {
    left: 300px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#map {
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--primary);
    color: white;
    flex-shrink: 0;
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
    flex: 1;
}

.sidebar-count {
    background: rgba(255,255,255,0.25);
    color: white;
    border-radius: 12px;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.sidebar-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.2s;
}
.sidebar-close:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Suche */
.sidebar-search {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg);
}

.sidebar-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    background: white;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sidebar-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,107,60,0.12);
}

/* Liste */
.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* Scrollbar schmal */
.sidebar-list::-webkit-scrollbar { width: 5px; }
.sidebar-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.sidebar-list::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* Einzelner Eintrag */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.sidebar-item:hover {
    background: #f0faf3;
}

.sidebar-item.active {
    background: #e6f4ec;
    border-right: 3px solid var(--primary);
}

.sidebar-item-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.sidebar-item-body {
    flex: 1;
    min-width: 0;
}

.sidebar-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-arrow {
    color: var(--text-light);
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

/* Lade-Spinner */
.sidebar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-light);
    gap: 12px;
}

.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); } }

/* Leer-Zustand */
.sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    gap: 10px;
    text-align: center;
    color: var(--text-light);
}
.sidebar-empty-icon { font-size: 40px; }
.sidebar-empty p    { font-size: 14px; }

/* Kein Suchergebnis */
.sidebar-no-result {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

/* ============================================================
   OVERLAY (Mobile)
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 799;
    opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-overlay.visible {
    display: block;
    opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    /* Auf Mobile liegt Sidebar über der Karte */
    .sidebar {
        width: min(85vw, 300px);
    }
    #map.map-shifted {
        left: 0; /* Karte nicht verschieben auf Mobile */
    }
    .btn-label {
        display: none; /* Button-Text auf kleinen Screens verstecken */
    }
}

@media (min-width: 768px) {
    .sidebar-overlay {
        display: none !important; /* Kein Overlay auf Desktop */
    }
}

/* ============================================================
   INFO-SEITEN (Schonzeiten, Fanglimits, etc.)
   ============================================================ */
.info-body {
    background: var(--bg);
    min-height: 100vh;
}

.header-back {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
    transition: background 0.2s;
}
.header-back:hover { background: rgba(255,255,255,0.3); }

/* Sub-Navigation — prominent green bar */
.info-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--primary-dark);
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
.info-nav-inner {
    display: flex;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.info-nav-inner::-webkit-scrollbar { display: none; }

.info-nav-link {
    flex-shrink: 0;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.info-nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}
.info-nav-link.active {
    color: white;
    background: rgba(255,255,255,0.12);
    border-bottom-color: white;
}

/* Content Container */
.info-container {
    max-width: 960px;
    margin: calc(var(--header-h) + 52px + 24px) auto 50px;
    padding: 0 20px;
}

.info-title {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 6px;
    margin-top: 36px;
}
.info-title:first-child { margin-top: 0; }

.info-subtitle {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 24px;
}

.info-source {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 30px;
    padding-bottom: 10px;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
}
.info-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 14px;
}
.info-card p {
    font-size: 15px;
    line-height: 1.6;
}
.info-card-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 18px;
}

.highlight-card {
    border-left: 5px solid var(--primary);
    background: linear-gradient(135deg, #f0faf3, #e8f5ec);
}
.highlight-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

.warn-card {
    border-left: 5px solid var(--warning);
    background: linear-gradient(135deg, #fff8f0, #fff3e0);
}

/* ============================================================
   FISH GRID (Schonzeiten)
   ============================================================ */
.fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.fish-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}
.fish-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.fish-img {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(135deg, #d4e8d4, #b8d8b8);
    position: relative;
}
.fish-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.fish-card:hover .fish-img img {
    transform: scale(1.05);
}

.fish-info {
    padding: 16px 20px 20px;
    flex: 1;
}

.fish-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.fish-note {
    font-size: 12px;
    color: white;
    background: var(--secondary);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-style: normal;
    font-weight: 600;
    margin-bottom: 12px;
}

.fish-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fish-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.fish-detail:last-child { border-bottom: none; }

.detail-label {
    color: var(--text-light);
    font-weight: 600;
}

.detail-value {
    font-weight: 700;
    color: var(--text);
    padding: 3px 12px;
    border-radius: 6px;
    background: #f0f4f0;
    font-size: 13px;
}

.detail-value.season-active {
    background: #ffebee;
    color: #c62828;
}

.detail-value.no-limit {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Schonmaß Grid */
.schonmass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.schonmass-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: white;
    border-radius: 10px;
    border: 1px solid #ffe0b2;
    transition: box-shadow 0.2s;
}
.schonmass-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.schonmass-item img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ffe0b2;
}
.schonmass-item strong {
    font-size: 14px;
    color: var(--text);
    display: block;
}
.schonmass-item span {
    font-size: 13px;
    color: var(--text-light);
}
.schonmass-item small {
    display: block;
    font-size: 11px;
}

/* ============================================================
   LIMITS TABLE (Fanglimits)
   ============================================================ */
.limits-table-wrap {
    overflow-x: auto;
}

.limits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.limits-table th {
    background: var(--primary);
    color: white;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}
.limits-table th:first-child { border-radius: 8px 0 0 0; }
.limits-table th:last-child  { border-radius: 0 8px 0 0; }

.limits-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.limits-table td small {
    color: var(--text-light);
    display: block;
    font-size: 12px;
    margin-top: 2px;
}
.limits-table tbody tr:hover {
    background: #f0faf3;
}
.limits-table tbody tr:last-child td {
    border-bottom: none;
}

/* Rules List */
.rules-list {
    list-style: none;
    padding: 0;
}
.rules-list > li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 15px;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}
.rules-list > li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}
.rules-list > li:last-child { border-bottom: none; }

.rules-list.numbered {
    counter-reset: rule;
}
.rules-list.numbered > li {
    counter-increment: rule;
    padding-left: 36px;
}
.rules-list.numbered > li::before {
    content: counter(rule) '.';
    left: 0;
    font-weight: 700;
    color: var(--primary);
    width: 28px;
    font-size: 15px;
}

.rules-list ul {
    margin: 10px 0 6px 20px;
    padding: 0;
    list-style: disc;
}
.rules-list ul li {
    font-size: 14px;
    padding: 4px 0;
    color: var(--text);
}

/* ============================================================
   TIMES GRID (Gewässerzeiten)
   ============================================================ */
.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.time-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: box-shadow 0.2s;
}
.time-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.time-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.time-info h4 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 5px;
}

.time-range {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.time-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.time-status.open     { background: #e8f5e9; color: #2e7d32; }
.time-status.seasonal { background: #fff3e0; color: #e65100; }

/* Updates List */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.update-item {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    border-left: 4px solid var(--secondary);
    transition: box-shadow 0.2s;
}
.update-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.update-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.update-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ============================================================
   INFO-SEITEN RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .info-container {
        padding: 0 12px;
    }
    .info-nav-link {
        padding: 12px 16px;
        font-size: 13px;
    }
    .fish-grid {
        grid-template-columns: 1fr;
    }
    .schonmass-grid {
        grid-template-columns: 1fr;
    }
    .times-grid {
        grid-template-columns: 1fr;
    }
    .info-card {
        padding: 18px;
    }
    .info-title {
        font-size: 20px;
    }
}

