/* ═══════════════════════════════════════════════════════════════════
   ASV Habbelrath – Material Design 3 Inspired Theme
   Modern, clean, responsive design
   ═══════════════════════════════════════════════════════════════════ */

/* ── Fonts ──────────────────────────────────────────────────────── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/public/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/public/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/public/fonts/inter-latin-800-normal.woff2') format('woff2'); }

/* ── Design Tokens ──────────────────────────────────────────────── */
:root {
  --md-primary: #2E7D4F;
  --md-primary-hover: #236B41;
  --md-primary-light: #E8F5EC;
  --md-primary-container: #B8F0CB;
  --md-on-primary: #fff;

  --md-secondary: #4A6354;
  --md-tertiary: #8B6914;

  --md-surface: #F6F9F6;
  --md-surface-card: #FFFFFF;
  --md-surface-dim: #EEF2EE;

  --md-on-surface: #1A1C1A;
  --md-on-surface-variant: #6B7570;
  --md-outline: #C2CBC5;
  --md-outline-variant: #DDE5DE;

  --md-error: #BA1A1A;
  --md-error-bg: #FDECEA;
  --md-success: #1B7A3D;
  --md-success-bg: #E8F5EC;
  --md-warning: #7A5B00;
  --md-warning-bg: #FFF8E1;
  --md-info-bg: #E8F5EC;

  --md-shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.1);
  --md-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --md-shadow-lg: 0 4px 6px rgba(0,0,0,.07), 0 10px 15px rgba(0,0,0,.1);

  --md-radius-sm: 8px;
  --md-radius: 12px;
  --md-radius-lg: 16px;
  --md-radius-xl: 24px;
  --md-radius-full: 9999px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: .2s cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--md-surface);
  color: var(--md-on-surface);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--md-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── Topbar (Member) ───────────────────────────────────────────── */
.topbar {
  background: var(--md-primary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--md-shadow-sm);
}
.topbar-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; gap: .25rem; padding: .5rem 1rem;
  align-items: center;
}
.topbar-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem;
  white-space: nowrap; margin-right: .5rem;
}
.topbar-brand:hover { text-decoration: none; }
.topbar-brand .nav-icon { display: none; }
.topbar-links {
  display: flex; gap: .25rem; align-items: center; flex: 1;
}
.topbar-link {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-weight: 600; font-size: .88rem;
  padding: .4rem .85rem; border-radius: var(--md-radius-sm);
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: .35rem;
}
.topbar-link:hover, .topbar-link.active {
  color: #fff; background: rgba(255,255,255,.18); text-decoration: none;
}
.topbar-link-sm { font-size: .82rem; }
.topbar-spacer { flex: 1; }
.topbar-user { color: rgba(255,255,255,.7); font-size: .82rem; padding: .35rem .5rem; }

/* ── Topbar Dropdown ───────────────────────────────────────────── */
.topbar-dropdown { position: relative; z-index: 200; }
.topbar-dropdown-toggle {
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.topbar-dropdown-toggle .dropdown-chevron {
  margin-left: 2px; transition: transform .2s;
}
.topbar-dropdown.open .dropdown-chevron { transform: rotate(180deg); }
.topbar-dropdown-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border-radius: var(--md-radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,.18); min-width: 180px;
  padding: 6px 0; z-index: 1000;
}
.topbar-dropdown.open .topbar-dropdown-menu { display: block; }
.topbar-dropdown-item {
  display: flex; align-items: center; gap: .5rem;
  padding: 10px 16px; color: #333; text-decoration: none;
  font-size: .88rem; font-weight: 500; transition: background .15s;
}
.topbar-dropdown-item:hover { background: #f0f0f0; text-decoration: none; }
.topbar-dropdown-item.active { color: var(--md-primary); font-weight: 700; }
.topbar-dropdown-item .nav-icon { width: 18px; height: 18px; stroke: currentColor; }
.topbar-dropdown-divider { height: 1px; background: #e0e0e0; margin: 4px 0; }

/* ── Navbar (Board) ─────────────────────────────────────────────── */
.navbar {
  background: var(--md-primary);
  padding: 0 1.5rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--md-shadow);
  position: sticky; top: 0; z-index: 100;
}
.navbar-brand {
  display: flex; align-items: center; gap: .75rem;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.navbar-brand img { height: 38px; width: auto; border-radius: var(--md-radius-sm); }
.navbar-links { display: flex; gap: .35rem; align-items: center; }
.nav-link {
  color: rgba(255,255,255,.85); text-decoration: none;
  padding: .45rem .9rem; border-radius: var(--md-radius-sm);
  font-size: .88rem; font-weight: 500;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: .35rem;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }
.nav-user { color: rgba(255,255,255,.6); font-size: .82rem; padding: 0 .5rem; }

/* Hamburger (shared by Board + Member) */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: .5rem; background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; transition: all var(--transition);
}
/* Animate to X when active */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu (shared) */
.mobile-menu, .mobile-menu-member {
  display: none; flex-direction: column;
  background: var(--md-primary-hover);
  padding: .5rem 1rem;
  position: sticky; z-index: 99;
}
.mobile-menu a, .mobile-menu-member a {
  color: #fff; text-decoration: none; padding: .75rem .75rem;
  font-size: .95rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: .6rem;
  transition: background var(--transition);
}
.mobile-menu a:last-child, .mobile-menu-member a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu-member a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.mobile-menu a.active, .mobile-menu-member a.active { background: rgba(255,255,255,.15); }
.mobile-menu.open, .mobile-menu-member.open { display: flex; }
.mobile-menu-divider { height: 1px; background: rgba(255,255,255,.15); margin: 4px 16px; }
.mobile-menu-label {
  padding: 10px 16px 4px; font-size: .75rem; font-weight: 700;
  color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.container { max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--md-primary) 0%, var(--md-primary-hover) 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.hero-logo {
  height: 80px; width: auto; margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}
.hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; margin-bottom: .4rem; letter-spacing: -.02em; }
.hero p { font-size: 1rem; opacity: .9; max-width: 520px; margin: 0 auto; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--md-surface-card);
  border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-sm);
  border: 1px solid var(--md-outline-variant);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--md-shadow); }
.card-header {
  background: var(--md-primary);
  color: var(--md-on-primary);
  padding: .9rem 1.5rem;
  font-weight: 700; font-size: .95rem;
  letter-spacing: .01em;
}
.card-header-accent {
  background: linear-gradient(135deg, var(--md-primary), #4A9E6E);
}
.card-body { padding: 1.5rem; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.3rem; border: none; border-radius: var(--md-radius-sm);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  font-family: var(--font); text-decoration: none;
  transition: all var(--transition); white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--md-primary); color: #fff; box-shadow: var(--md-shadow-sm); }
.btn-primary:hover { background: var(--md-primary-hover); box-shadow: var(--md-shadow); }
.btn-success { background: var(--md-success); color: #fff; }
.btn-success:hover { background: #156B33; }
.btn-danger { background: var(--md-error); color: #fff; }
.btn-danger:hover { background: #9C1515; }
.btn-outline { background: transparent; color: var(--md-primary); border: 1.5px solid var(--md-primary); }
.btn-outline:hover { background: var(--md-primary-light); }
.btn-sm { padding: .35rem .8rem; font-size: .82rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: .25rem .5rem; min-width: 0; }
.btn-icon-sm { background: none; border: none; color: var(--md-error); cursor: pointer; font-size: 1.1rem; padding: .2rem; }
.btn-group { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; font-size: .88rem;
  margin-bottom: .4rem; color: var(--md-on-surface);
}
.req { color: var(--md-error); margin-left: 2px; }
.input, select, textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--md-outline);
  border-radius: var(--md-radius-sm);
  font-size: .95rem; font-family: var(--font);
  background: #fff; color: var(--md-on-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none; appearance: none;
  outline: none;
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(46,125,79,.12);
}
.input-sm { padding: .35rem .6rem; font-size: .82rem; max-width: 160px; }
.form-hint { font-size: .8rem; color: var(--md-on-surface-variant); margin-top: .3rem; }
.readonly-field {
  padding: .65rem .9rem; background: var(--md-primary-light);
  border-radius: var(--md-radius-sm); font-weight: 600; color: var(--md-on-surface);
}

/* File upload */
.file-drop {
  border: 2px dashed var(--md-outline);
  border-radius: var(--md-radius);
  padding: 2rem 1.5rem; text-align: center;
  cursor: pointer; transition: all var(--transition);
  position: relative; background: var(--md-surface);
}
.file-drop:hover, .file-drop.drag-over {
  border-color: var(--md-primary);
  background: var(--md-primary-light);
}
.file-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0;
  cursor: pointer; width: 100%; height: 100%;
}
.file-drop-icon { color: var(--md-primary); margin-bottom: .5rem; }
.file-drop-label { font-weight: 600; color: var(--md-primary); display: block; margin-bottom: .25rem; }
.file-drop-sub { font-size: .82rem; color: var(--md-on-surface-variant); }
.file-preview { margin-top: .75rem; display: none; }
.file-preview img { max-height: 160px; border-radius: var(--md-radius-sm); border: 1px solid var(--md-outline-variant); }
.file-name { font-size: .85rem; color: var(--md-primary); margin-top: .4rem; font-weight: 600; }

/* Checkbox cards */
.checkbox-group { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.checkbox-card {
  display: flex; align-items: center; gap: .75rem;
  cursor: pointer; padding: .75rem 1rem;
  border: 2px solid var(--md-outline-variant); border-radius: var(--md-radius-sm);
  transition: all var(--transition); background: #fff;
}
.checkbox-card:hover { border-color: var(--md-primary); }
.checkbox-card.checked, .checkbox-card:has(input:checked) {
  border-color: var(--md-primary); background: var(--md-primary-light);
}
.checkbox-card.compact { padding: .5rem .75rem; }
.checkbox-card input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; accent-color: var(--md-primary);
  flex-shrink: 0;
}
.checkbox-label-text { font-weight: 600; font-size: .9rem; }

/* Password */
.pw-toggle {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--md-on-surface-variant);
  padding: .25rem;
}
.pw-bar { height: 4px; border-radius: 2px; margin-top: .4rem; background: var(--md-outline-variant); }
.pw-fill { height: 100%; border-radius: 2px; width: 0; transition: all .3s; }
.pw-text { font-size: .8rem; color: var(--md-on-surface-variant); margin-top: .2rem; }

/* ── Alerts ─────────────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.1rem; border-radius: var(--md-radius-sm);
  margin-bottom: 1rem; font-size: .9rem;
  display: flex; align-items: flex-start; gap: .6rem;
}
.alert-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.alert-danger { background: var(--md-error-bg); color: #7F1D1D; border: 1px solid #F5C6CB; }
.alert-danger .alert-icon { background: var(--md-error); color: #fff; }
.alert-success { background: var(--md-success-bg); color: #14532D; border: 1px solid #A7F3D0; }
.alert-success .alert-icon { background: var(--md-success); color: #fff; }
.alert-warning { background: var(--md-warning-bg); color: #78350F; border: 1px solid #FCD34D; }
.alert-warning .alert-icon { background: var(--md-warning); color: #fff; }
.alert-info { background: var(--md-info-bg); color: var(--md-primary-hover); border: 1px solid #A7F3D0; }
.alert-info .alert-icon { background: var(--md-primary); color: #fff; }
.alert ul { margin: .3rem 0 0 1.1rem; }

/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: .2em .6em;
  border-radius: var(--md-radius-full);
  font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.badge-pending { background: var(--md-warning-bg); color: var(--md-warning); }
.badge-approved { background: var(--md-success-bg); color: var(--md-success); }
.badge-rejected { background: var(--md-error-bg); color: var(--md-error); }

/* ── Tables ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--md-radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th {
  background: var(--md-surface-dim);
  color: var(--md-on-surface);
  padding: .75rem 1rem; text-align: left;
  font-weight: 600; white-space: nowrap;
  font-size: .82rem; text-transform: uppercase;
  letter-spacing: .03em;
}
tbody tr { border-bottom: 1px solid var(--md-outline-variant); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--md-primary-light); }
tbody td { padding: .7rem 1rem; vertical-align: middle; }
.row-muted { color: var(--md-on-surface-variant); font-style: italic; }

/* ── Stats ──────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--md-surface-card);
  border-radius: var(--md-radius);
  padding: 1.25rem 1rem;
  box-shadow: var(--md-shadow-sm);
  border: 1px solid var(--md-outline-variant);
  text-align: center;
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--md-shadow); }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--md-primary); display: block; }
.stat-label { font-size: .82rem; color: var(--md-on-surface-variant); margin-top: .15rem; }

/* ── Detail grid ────────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.detail-item label {
  display: block; font-size: .75rem; font-weight: 700;
  color: var(--md-on-surface-variant);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: .15rem;
}
.detail-item .value { font-size: .95rem; font-weight: 600; color: var(--md-on-surface); }
.control-number { font-size: 1.5rem; font-weight: 800; color: var(--md-primary); }

/* ── Section titles ─────────────────────────────────────────────── */
.section-title {
  font-size: 1rem; font-weight: 700;
  color: var(--md-on-surface-variant);
  margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem;
  text-transform: uppercase; letter-spacing: .04em; font-size: .82rem;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--md-outline-variant); margin-left: .5rem; }

/* ── Page header ────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.page-header h1 {
  font-size: 1.5rem; font-weight: 800;
  color: var(--md-on-surface); letter-spacing: -.02em;
}
.page-header-sub { color: var(--md-on-surface-variant); font-size: .88rem; }

/* ── Tabs ───────────────────────────────────────────────────────── */
.tab-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tab-btn {
  padding: .5rem 1.1rem; border: 2px solid var(--md-primary);
  border-radius: var(--md-radius-full);
  background: #fff; color: var(--md-primary);
  font-weight: 700; cursor: pointer; font-size: .88rem;
  font-family: var(--font);
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--md-primary); color: #fff; }
.tab-count {
  display: inline-block; background: rgba(0,0,0,.12);
  border-radius: var(--md-radius-full);
  padding: .1rem .45rem; font-size: .72rem; margin-left: .3rem;
}
.tab-btn.active .tab-count { background: rgba(255,255,255,.25); }

/* ── Filter bar ─────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ── Bulk selection ────────────────────────────────────────────── */
.bulk-bar { font-size: 14px; font-weight: 500; color: #E65100; }
.bulk-count { white-space: nowrap; }
.bulk-cb, .bulk-select-all { width: 18px; height: 18px; cursor: pointer; accent-color: var(--md-primary); }
tr.bulk-selected { background: #FFF8E1 !important; }

/* ── Rankings ───────────────────────────────────────────────────── */
.ranking-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0;
}
.ranking-row.border-b { border-bottom: 1px solid var(--md-outline-variant); }
.ranking-name { font-size: .9rem; }
.ranking-name.bold { font-weight: 800; }

/* ── Bar chart ──────────────────────────────────────────────────── */
.bar-chart-row { margin-bottom: .6rem; }
.bar-label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .2rem; }
.bar-bg { background: var(--md-surface-dim); border-radius: 4px; height: 8px; }
.bar-fill { background: var(--md-primary); border-radius: 4px; height: 8px; transition: width .5s; }

/* ── Fish card ──────────────────────────────────────────────────── */
.fish-card {
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--md-radius-sm);
  padding: 1rem; margin-bottom: .75rem;
  background: var(--md-surface);
}
.fish-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .75rem;
}
.fish-card-header strong { font-size: .88rem; color: var(--md-primary); }

/* ── Catch row (Fangbericht) ────────────────────────────────────── */
.catch-header {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr auto;
  gap: .5rem; font-weight: 700; font-size: .82rem;
  color: var(--md-on-surface-variant); margin-bottom: .5rem;
  padding: 0 .25rem;
}
.catch-row {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr auto;
  gap: .5rem; align-items: center; margin-bottom: .5rem;
}

/* ── Photo grid ─────────────────────────────────────────────────── */
.photo-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.photo-item { max-width: 280px; }
.license-thumb {
  max-height: 160px; border-radius: var(--md-radius-sm);
  border: 1px solid var(--md-outline-variant);
  cursor: pointer; transition: transform var(--transition);
  display: block;
}
.license-thumb:hover { transform: scale(1.03); }

/* Lightbox */
.lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.85); z-index: 9999;
  align-items: center; justify-content: center; padding: 1rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 100%; max-height: 90vh; border-radius: var(--md-radius); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  color: #fff; font-size: 2rem; cursor: pointer;
  background: none; border: none; line-height: 1;
}

/* ── Login ──────────────────────────────────────────────────────── */
.login-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--md-primary) 0%, var(--md-primary-hover) 100%);
  padding: 1.5rem;
}
.login-card {
  background: #fff; border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-lg);
  padding: 2.5rem 2rem; width: 100%; max-width: 400px;
}
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo img { height: 72px; }
.login-title {
  text-align: center; font-size: 1.3rem; font-weight: 800;
  color: var(--md-on-surface); margin-bottom: .25rem;
}
.login-sub {
  text-align: center; font-size: .88rem;
  color: var(--md-on-surface-variant); margin-bottom: 2rem;
}
.board-link {
  text-align: center; margin-top: 1.25rem; font-size: .82rem;
  color: var(--md-on-surface-variant);
}
.board-link a { color: var(--md-on-surface-variant); }
.board-link a:hover { color: var(--md-primary); }

/* ── Success page ───────────────────────────────────────────────── */
.success-icon {
  width: 72px; height: 72px;
  background: var(--md-primary);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  color: #fff; margin: 0 auto 1.5rem;
  box-shadow: var(--md-shadow);
}
.success-title { font-size: 1.4rem; font-weight: 800; margin-bottom: .75rem; color: var(--md-success); }
.success-text { color: var(--md-on-surface-variant); max-width: 480px; margin: 0 auto 1.75rem; line-height: 1.7; }
.error-icon {
  width: 72px; height: 72px; background: var(--md-error);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; font-weight: 700; margin: 0 auto 1.5rem;
}

/* ── Quick action cards (member dashboard) ──────────────────────── */
.quick-action {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; border-radius: var(--md-radius);
  font-weight: 700; text-decoration: none;
  background: var(--md-primary); color: #fff;
  box-shadow: var(--md-shadow-sm);
  transition: all var(--transition);
}
.quick-action:hover { box-shadow: var(--md-shadow); transform: translateY(-2px); text-decoration: none; }
.quick-action-outline {
  background: var(--md-surface-card); color: var(--md-primary);
  border: 2px solid var(--md-primary);
}
.quick-action-outline:hover { background: var(--md-primary-light); }

/* ── Chip ───────────────────────────────────────────────────────── */
.chip {
  display: inline-block; background: var(--md-primary-light);
  color: var(--md-primary); border-radius: var(--md-radius-full);
  padding: .1rem .5rem; font-size: .8rem; font-weight: 600;
  margin: .1rem;
}

/* ── Role badge ─────────────────────────────────────────────────── */
.role-badge {
  display: inline-block; padding: .15rem .5rem;
  border-radius: var(--md-radius-full);
  font-size: .75rem; font-weight: 700;
}
.role-admin { background: #FEF3C7; color: #92400E; }
.role-board { background: #EFF6FF; color: #1E40AF; }

.status-dot {
  display: inline-block; width: .5rem; height: .5rem;
  border-radius: 50%; margin-right: .25rem; vertical-align: middle;
}
.status-online { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.3); }
.status-offline { background: #9ca3af; }

/* ── Modal ──────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 1000;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: #fff; border-radius: var(--md-radius-lg);
  padding: 2rem; width: 100%; max-width: 400px;
  box-shadow: var(--md-shadow-lg);
}
.modal-card h3 { margin-bottom: .75rem; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  text-align: center; padding: 2rem 1rem;
  font-size: .8rem; color: var(--md-on-surface-variant);
  border-top: 1px solid var(--md-outline-variant); margin-top: 2rem;
}
.site-footer a { color: var(--md-primary); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-sep { margin: 0 .5rem; }

/* ── Legal pages ────────────────────────────────────────────────── */
.legal-content { max-width: 800px; line-height: 1.8; }
.legal-content h2 {
  font-size: 1.15rem; font-weight: 700; color: var(--md-primary);
  margin-top: 2.5rem; margin-bottom: .75rem;
  border-bottom: 2px solid var(--md-outline-variant); padding-bottom: .4rem;
}
.legal-content h3 { font-size: 1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: .4rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: .5rem 0 1rem 1.5rem; }
.legal-content ul li { margin-bottom: .3rem; }
.highlight-box {
  background: var(--md-primary-light); border-left: 4px solid var(--md-primary);
  padding: 1rem 1.25rem; border-radius: 0 var(--md-radius-sm) var(--md-radius-sm) 0;
  margin: 1rem 0 1.5rem;
}
.back-link {
  display: inline-block; margin-bottom: 1.5rem;
  color: var(--md-primary); font-weight: 600; font-size: .92rem;
}
.code-inline {
  font-size: .85rem; background: var(--md-surface-dim);
  padding: .2rem .5rem; border-radius: 4px;
}

/* ── Utilities ──────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--md-on-surface-variant); }
.text-primary { color: var(--md-primary); }
.link { color: var(--md-primary); text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-sm { font-size: .82rem; color: var(--md-primary); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.ml-2 { margin-left: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .88em; }
.bold { font-weight: 700; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .navbar-links { display: none; }
  .topbar-links { display: none; }
  .hamburger { display: flex; }
  .topbar-brand .nav-icon { display: block; }
  .container, .container-wide { padding: 1.25rem .9rem; }
  .hero { padding: 2rem 1rem 1.5rem; }
  .card-body { padding: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .catch-header { display: none; }
  .catch-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .btn-lg { width: 100%; justify-content: center; }

  /* Responsive tables */
  thead { display: none; }
  tbody tr {
    display: block; border: 1px solid var(--md-outline-variant);
    border-radius: var(--md-radius-sm); margin-bottom: .75rem;
    background: var(--md-surface-card);
  }
  tbody td {
    display: flex; justify-content: space-between; align-items: center;
    padding: .55rem .9rem; border-bottom: 1px solid var(--md-outline-variant);
  }
  tbody td:last-child { border-bottom: none; }
  tbody td::before {
    content: attr(data-label); font-weight: 700;
    font-size: .8rem; color: var(--md-on-surface-variant);
  }

  .filter-bar { width: 100%; }
  .filter-bar .input-sm { max-width: none; flex: 1; }
  .photo-grid { flex-direction: column; }
}

/* ── Photo Upload Grid ────────────────────────────────────────── */
.photo-upload-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.photo-upload-slot { position: relative; }

.file-drop-small {
  min-height: 160px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.25rem; cursor: pointer;
}
.file-drop-small input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
}

.photo-preview {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--md-primary-light);
  background: #f8f8f8;
}
.photo-preview img {
  width: 100%; height: auto; display: block;
  min-height: 120px; max-height: 300px; object-fit: contain;
}
.photo-preview-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  padding: 2rem .75rem .75rem; display: flex;
  align-items: center; justify-content: space-between;
}
.photo-preview-label {
  color: #fff; font-size: .85rem; font-weight: 600;
}
.photo-preview-change {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.9); color: #333;
  border: none; border-radius: 6px; padding: 5px 10px;
  font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.photo-preview-change:hover {
  background: #fff;
}

@media (max-width: 640px) {
  .photo-upload-grid { grid-template-columns: 1fr; }
}

/* ── Bezahlt-Toggle ───────────────────────────────────────────── */
.paid-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; cursor: pointer; padding: 4px 10px;
  border-radius: 8px; font-size: .85rem; font-weight: 600;
  transition: all .2s ease; background: transparent;
}
.paid-toggle.paid {
  color: var(--md-primary); background: var(--md-primary-light);
}
.paid-toggle.paid:hover {
  background: #c8e6d0;
}
.paid-toggle.unpaid {
  color: #999; background: #f5f5f5;
}
.paid-toggle.unpaid:hover {
  color: var(--md-tertiary, #e06000); background: #fff3e0;
}

@media (max-width: 380px) {
  .stats-row { grid-template-columns: 1fr; }
  .tab-bar { flex-direction: column; }
  .tab-btn { width: 100%; justify-content: center; }
}

/* ── Nav Icons ────────────────────────────────────────────────────── */
.nav-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  display: block;
}
.mobile-menu .nav-icon, .mobile-menu-member .nav-icon { width: 18px; height: 18px; }

/* ── Angler-Status-Karten ─────────────────────────────────────────── */
.angler-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.angler-names.open { max-height: 200px !important; margin-top: 8px !important; }

/* ── Gewaesser-Karte ─────────────────────────────────────────────── */
.gewaesser-select {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.gewaesser-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--md-radius);
  border: 2px solid var(--md-outline-variant);
  background: var(--md-surface-card); color: var(--md-on-surface);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  flex: 1; min-width: 150px; justify-content: center;
}
.gewaesser-btn:hover:not(:disabled) {
  border-color: var(--md-primary); color: var(--md-primary);
  box-shadow: var(--md-shadow-sm);
}
.gewaesser-btn.active {
  border-color: var(--md-primary); background: var(--md-primary-light);
  color: var(--md-primary);
}
.gewaesser-btn:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.gewaesser-btn small {
  font-size: 11px; font-weight: 400; color: var(--md-on-surface-variant);
}
.gewaesser-btn .nav-icon { width: 20px; height: 20px; }

.info-table { width: 100%; border-collapse: collapse; }
.info-table td {
  padding: 8px 12px; border-bottom: 1px solid var(--md-outline-variant);
  vertical-align: top; font-size: 14px;
}
.info-table td:first-child { width: 120px; white-space: nowrap; }
.info-table tr:last-child td { border-bottom: none; }

/* Leaflet Boundary Markers */
.boundary-marker { background: none !important; border: none !important; }
.boundary-marker-inner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Access Marker */
.access-marker { background: none !important; border: none !important; }
.access-marker-inner {
  width: 26px; height: 26px; border-radius: 4px;
  background: #2E7D32; color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-family: var(--font);
}

/* Fishing Spot Marker */
.fishing-marker { background: none !important; border: none !important; }
.fishing-marker-inner {
  width: 28px; height: 28px; border-radius: 50%;
  background: #E65100; color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-family: var(--font);
}

/* Parking Marker */
.parking-marker { background: none !important; border: none !important; }
.parking-marker-inner {
  width: 26px; height: 26px; border-radius: 4px;
  background: #1565C0; color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-family: var(--font);
}

/* User Location Marker */
.user-location-marker { background: none !important; border: none !important; }
.user-location-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #4285F4; border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin: 2px;
}

@media (max-width: 600px) {
  .gewaesser-select { flex-direction: column; }
  .gewaesser-btn { min-width: 100%; }
  #map { height: 400px !important; }
  .info-table td:first-child { width: auto; display: block; padding-bottom: 2px; border-bottom: none; }
  .info-table td:last-child { display: block; padding-top: 0; }
}
