/*
 * Aquaristik Profi theme: a modern layer over the Bootstrap 4 build in app.css.
 * PageShell loads it last, so plain rules beat Bootstrap. !important is used only
 * where app.css uses it too, or where an inline style in CMS content has to be beaten.
 */

:root {
  --ap-brand: #2299cc;
  --ap-brand-600: #1c87b6;
  --ap-brand-700: #176688;
  --ap-brand-50: #eaf5fa;
  --ap-brand-100: #d2eaf4;
  --ap-link: #1a719a;
  --ap-navy: #0c3547;
  --ap-navy-900: #082736;
  --ap-ink: #1b2a34;
  --ap-text: #46545e;
  --ap-muted: #6b7983;
  --ap-bg: #f6f8fa;
  --ap-surface: #fff;
  --ap-subtle: #eef2f5;
  --ap-border: #e2e8ed;
  --ap-green: #84a526;
  --ap-green-700: #6f8c1d;
  --ap-radius-sm: 8px;
  --ap-radius: 12px;
  --ap-radius-lg: 18px;
  --ap-shadow-sm: 0 1px 2px rgba(15, 40, 55, 0.06);
  --ap-shadow: 0 1px 3px rgba(15, 40, 55, 0.06), 0 6px 20px rgba(15, 40, 55, 0.06);
  --ap-shadow-lg: 0 2px 6px rgba(15, 40, 55, 0.06), 0 16px 36px rgba(15, 40, 55, 0.12);
  --ap-font: var(--font-inter), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ap-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

body {
  background-color: var(--ap-bg) !important;
  color: var(--ap-text);
  font-family: var(--ap-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

input,
select,
button,
textarea {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--ap-ink);
  font-family: var(--ap-font);
  font-weight: 650 !important;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

h1, .h1 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.375rem);
  font-weight: 750 !important;
  letter-spacing: -0.028em;
}
h2, .h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1.0625rem; }
h6, .h6 { font-size: 1rem; }

.display-4 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 750 !important;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lead {
  font-size: 1.0625rem;
  font-weight: 400;
}

a {
  color: var(--ap-link);
}
a:hover {
  color: var(--ap-brand-700);
}

/* app.css sets nav { font-size: 18px; line-height: 35px } for every <nav>. */
nav {
  font-size: inherit;
  line-height: inherit;
}

hr {
  border-top-color: var(--ap-border);
}

:focus-visible {
  outline: 2px solid var(--ap-brand);
  outline-offset: 2px;
}

::selection {
  background: var(--ap-brand);
  color: #fff;
}

@media (min-width: 768px) {
  .container,
  .container-fluid,
  .container-xl {
    padding: 0 24px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1240px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.55rem 1rem;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn-sm {
  font-size: 0.875rem;
  padding: 0.4rem 0.8rem;
}

.btn-primary {
  background-color: var(--ap-brand);
  border-color: var(--ap-brand);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--ap-brand-600);
  border-color: var(--ap-brand-600);
  color: #fff;
}

.btn-secondary {
  background-color: #fff;
  border-color: var(--ap-border);
  color: var(--ap-ink);
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled):active {
  background-color: var(--ap-subtle);
  border-color: var(--ap-border);
  color: var(--ap-ink);
}

/* Translucent button for use on photos (hero banners). */
.btn-glass {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
}
.btn-glass:hover,
.btn-glass:focus {
  background-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.btn-garnelio,
.btn-garnelio:visited {
  background-color: var(--ap-green);
  border-color: var(--ap-green);
  color: #fff;
  font-size: 0.9375rem;
  padding: 0.6rem 1.15rem;
  width: auto;
}
.btn-garnelio:hover,
.btn-garnelio:focus,
.btn-garnelio:active {
  background-color: var(--ap-green-700);
  border-color: var(--ap-green-700);
  color: #fff;
}

/* ---------- Navbar ---------- */

.site-nav {
  background: var(--ap-brand);
  box-shadow: 0 6px 20px rgba(12, 53, 71, 0.14);
  padding: 0;
}
.site-nav .container {
  min-height: 64px;
}
.site-nav .navbar-brand {
  margin: 0;
  padding: 0;
}
#logo {
  display: block;
  height: 40px !important;
  width: auto;
}
.site-nav .navbar-nav {
  gap: 2px;
}
.site-nav .nav-link {
  align-items: center;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.9) !important;
  display: flex;
  font-size: 0.9375rem;
  font-weight: 550;
  gap: 8px;
  line-height: 1.4;
  padding: 8px 14px !important;
  transition: background-color 0.15s, color 0.15s;
}
.site-nav .nav-link .icon {
  font-size: 1.05em;
  opacity: 0.85;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
}
.site-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}
.site-nav .navbar-toggler {
  border: 0;
  border-radius: 9px;
  padding: 8px;
}
.site-nav .navbar-toggler:focus {
  outline: none;
}
.site-nav .navbar-toggler:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}
@media (max-width: 991.98px) {
  /* Bootstrap drops the container padding here (it expects .navbar's own). */
  .site-nav > .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-nav .navbar-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 0 14px;
  }
  .site-nav .nav-link {
    font-size: 1rem;
    padding: 11px 12px !important;
  }
}

/* ---------- Page header & layout ---------- */

.page-header {
  background: linear-gradient(180deg, #e7f2f8 0%, #f1f6f9 100%);
  border-bottom: 1px solid var(--ap-border);
  padding: 22px 0 26px;
}
.page-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-head-text {
  min-width: 0;
}
.page-head h1 {
  margin: 6px 0 4px;
}
.page-head .lead {
  color: var(--ap-muted);
  margin: 0;
}
.page-head .lead b {
  color: var(--ap-ink);
  font-weight: 650;
}
@media (min-width: 768px) {
  .page-head {
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
  }
  .page-head-center {
    align-items: center;
  }
  .page-head-actions {
    flex: none;
  }
}

.page-body {
  padding-bottom: 24px;
  padding-top: 28px;
}
.sidebar {
  padding-top: 0;
}
@media (max-width: 991.98px) {
  .sidebar {
    margin-top: 16px;
  }
}

.section-title {
  margin: 36px 0 16px;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  line-height: 1.5;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li {
  align-items: center;
  display: inline-flex;
  min-width: 0;
}
.breadcrumbs li + li::before {
  border-right: 1.5px solid #a7b4bd;
  border-top: 1.5px solid #a7b4bd;
  content: "";
  height: 6px;
  margin: 0 10px 0 7px;
  transform: rotate(45deg);
  width: 6px;
}
.breadcrumbs a {
  color: var(--ap-link);
  font-weight: 550;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--ap-brand-700);
  text-decoration: underline;
}
.breadcrumbs [aria-current] {
  color: var(--ap-muted);
  overflow-wrap: anywhere;
}

/* ---------- Hero banners ---------- */

.hero {
  background-color: var(--ap-navy);
  background-position: center;
  background-size: cover;
  border-radius: var(--ap-radius-lg);
  color: #fff;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  justify-content: flex-end;
  margin-bottom: 24px;
  padding: 48px 44px 44px;
  position: relative;
}
/* Lift a banner above its neighbours while its search autocomplete is open. */
.hero:focus-within {
  z-index: 5;
}
.hero::before {
  background: linear-gradient(100deg, rgba(8, 39, 54, 0.86) 0%, rgba(8, 39, 54, 0.6) 45%, rgba(8, 39, 54, 0.2) 100%);
  border-radius: inherit;
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}
.hero-title {
  color: #fff;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 750 !important;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 10px;
}
.hero-title a,
.hero-title a:hover {
  color: inherit;
  text-decoration: none;
}
.hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0625rem;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 36em;
}
.hero-lead b {
  color: #fff;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero .search-form {
  border-color: transparent;
  box-shadow: var(--ap-shadow-lg);
  margin-top: 26px;
  max-width: 480px;
}

/* Topic tiles: shorter, text anchored at the bottom over a bottom-up gradient. */
.hero-sm {
  min-height: 260px;
  padding: 28px;
}
.hero-sm::before {
  background: linear-gradient(0deg, rgba(8, 39, 54, 0.9) 0%, rgba(8, 39, 54, 0.55) 55%, rgba(8, 39, 54, 0.15) 100%);
}
.hero-sm .hero-title {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem);
  margin-bottom: 6px;
}
.hero-sm .hero-lead {
  font-size: 1rem;
  margin-bottom: 16px;
}
.hero-sm .hero-lead:last-child {
  margin-bottom: 0;
}
.hero-sm .btn {
  border-radius: 999px;
}
.hero-wide {
  min-height: 220px;
}
.hero-category {
  min-height: 240px;
}
.hero-category .hero-lead {
  margin-bottom: 0;
}

/* Whole-tile links: a soft zoom on the overlay signals the click target. */
.hero-link::before {
  transition: opacity 0.25s;
}
@media (hover: hover) {
  .hero-link:hover::before {
    opacity: 0.85;
  }
}

.tile-grid > [class*="col-"] {
  display: flex;
}
.tile-grid .hero {
  flex: 1;
}

@media (max-width: 575.98px) {
  .hero {
    border-radius: 14px;
    padding: 30px 22px 26px;
  }
  .hero-sm,
  .hero-wide,
  .hero-category {
    min-height: 210px;
  }
  .hero-lead {
    font-size: 1rem;
  }
}

/* ---------- Fish cards (MainCard) ---------- */

.fish-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  height: calc(100% - 24px);
  margin: 0 0 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s var(--ap-ease), box-shadow 0.2s var(--ap-ease), border-color 0.2s;
}
.fish-card-media {
  aspect-ratio: 3 / 2;
  background: var(--ap-subtle);
  overflow: hidden;
  position: relative;
}
.fish-card-media img {
  height: 100%;
  inset: 0;
  max-height: none;
  object-fit: cover;
  position: absolute;
  transition: transform 0.4s var(--ap-ease);
  width: 100%;
}
.fish-card-badge {
  background: var(--ap-brand);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 650;
  left: 10px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  padding: 3px 9px;
  position: absolute;
  text-transform: uppercase;
  top: 10px;
}
.fish-card-body {
  padding: 12px 16px 14px;
}
.fish-card-title {
  color: var(--ap-ink);
  display: block;
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fish-card-title:hover {
  color: var(--ap-ink);
  text-decoration: none;
}
.fish-card-subtitle {
  color: var(--ap-brand-700);
  display: block;
  font-size: 0.8438rem;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (hover: hover) {
  .fish-card:hover {
    border-color: transparent;
    box-shadow: var(--ap-shadow-lg);
    transform: translateY(-3px);
  }
  .fish-card:hover .fish-card-media img {
    transform: scale(1.04);
  }
}
/* Phones: compact list rows (thumbnail left, names right) instead of tall cards. */
@media (max-width: 575.98px) {
  .fish-card {
    display: flex;
    height: auto;
    margin: 0 0 12px;
  }
  .fish-card-media {
    aspect-ratio: auto;
    flex: 0 0 38%;
    max-width: 150px;
    min-height: 92px;
  }
  .fish-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 10px 14px;
  }
  .fish-card-title,
  .fish-card-subtitle {
    white-space: normal;
  }
  .fish-card-title {
    line-height: 1.3;
  }
  .fish-card-badge {
    font-size: 0.5625rem;
    left: 6px;
    padding: 2px 6px;
    top: 6px;
  }
}

/* ---------- Category cards (RoundImageCard) ---------- */

.cat-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  height: calc(100% - 24px);
  margin: 0 0 24px;
  padding: 24px 20px 20px;
  position: relative;
  text-align: center;
  transition: transform 0.2s var(--ap-ease), box-shadow 0.2s var(--ap-ease), border-color 0.2s;
}
.cat-card-img {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--ap-brand-50);
  display: block;
  margin: 0 auto 18px;
  max-height: none;
  max-width: 180px;
  object-fit: cover;
  transition: box-shadow 0.2s;
  width: 72%;
}
.cat-card-title {
  color: var(--ap-ink);
  display: block;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}
.cat-card-title:hover {
  color: var(--ap-ink);
  text-decoration: none;
}
.cat-card-count {
  background: var(--ap-brand-50);
  border-radius: 999px;
  color: var(--ap-brand-700);
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 550;
  margin-top: 6px;
  padding: 2px 10px;
}
@media (hover: hover) {
  .cat-card:hover {
    border-color: transparent;
    box-shadow: var(--ap-shadow-lg);
    transform: translateY(-3px);
  }
  .cat-card:hover .cat-card-img {
    box-shadow: 0 0 0 6px var(--ap-brand-100);
  }
}
@media (max-width: 575.98px) {
  .cat-card {
    align-items: center;
    display: flex;
    gap: 16px;
    height: auto;
    margin: 0 0 12px;
    padding: 12px 14px;
    text-align: left;
  }
  .cat-card-img {
    box-shadow: 0 0 0 4px var(--ap-brand-50);
    flex: none;
    margin: 0;
    width: 64px;
  }
  .cat-card-text {
    min-width: 0;
  }
  .cat-card-count {
    margin-top: 2px;
  }
}

/* ---------- Sidebar ---------- */

.side-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.side-card-title {
  color: var(--ap-muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 16px 18px 8px;
  text-transform: uppercase;
}
.side-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
}
.side-link {
  align-items: center;
  border-radius: var(--ap-radius-sm);
  color: var(--ap-text);
  display: flex;
  font-size: 0.9375rem;
  gap: 12px;
  justify-content: space-between;
  line-height: 1.35;
  padding: 8px 10px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.side-link:hover,
.side-link.is-active {
  background: var(--ap-brand-50);
  color: var(--ap-brand-700);
  text-decoration: none;
}
.side-link.is-active {
  font-weight: 600;
}
.side-link-label {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}
.side-icon {
  align-items: center;
  background: var(--ap-brand-50);
  border-radius: 8px;
  color: var(--ap-brand);
  display: inline-flex;
  flex: none;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.side-link:hover .side-icon,
.side-link.is-active .side-icon {
  background: #fff;
}
.side-count {
  background: var(--ap-subtle);
  border-radius: 999px;
  color: var(--ap-muted);
  flex: none;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 30px;
  padding: 2px 8px;
  text-align: center;
}
.side-link:hover .side-count,
.side-link.is-active .side-count {
  background: #fff;
  color: var(--ap-brand-700);
}
.side-chevron {
  color: var(--ap-brand);
  flex: none;
}
.side-search {
  margin-bottom: 20px;
}
.side-search .search-form {
  max-width: none;
}

.side-promo-body {
  padding: 4px 18px 18px;
}
.side-promo-head {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.side-promo-head img {
  border-radius: 14px;
  flex: none;
  height: 56px;
  width: 56px;
}
.side-promo-name {
  color: var(--ap-ink);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
  margin: 0;
}
.side-promo-sub {
  color: var(--ap-muted);
  font-size: 0.8125rem;
  margin: 0;
}
.side-promo .tick-list {
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.tick-list {
  list-style: none;
  padding-left: 0;
}
.tick-list li {
  line-height: 1.45;
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
}
.tick-list li::before {
  background: #eef5d9;
  border-radius: 50%;
  color: #5f7a14;
  content: "✓";
  font-size: 11px;
  font-weight: 700;
  height: 18px;
  left: 0;
  line-height: 18px;
  padding: 0;
  position: absolute;
  text-align: center;
  top: 1px;
  width: 18px;
}

/* ---------- Search ---------- */

.search-form {
  align-items: center;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 12px;
  box-shadow: var(--ap-shadow-sm);
  display: flex;
  max-width: 380px;
  padding: 4px;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.search-form:focus-within {
  border-color: var(--ap-brand);
  box-shadow: 0 0 0 3px rgba(34, 153, 204, 0.18);
}
.search-form .autocomplete {
  align-items: center;
  display: flex;
  flex: 1;
  min-width: 0;
  position: static;
}
.search-icon {
  color: var(--ap-muted);
  flex: none;
  margin: 0 2px 0 10px;
}
.search-input {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ap-ink);
  font-size: 0.9375rem;
  height: 40px;
  min-width: 0;
  outline: none;
  padding: 0 10px;
  width: 100%;
}
.search-input::placeholder {
  color: #8e9aa3;
}
.search-submit {
  align-items: center;
  background: var(--ap-brand);
  border: 0;
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  flex: none;
  font-size: 0.9375rem;
  font-weight: 600;
  gap: 6px;
  height: 40px;
  justify-content: center;
  padding: 0 16px;
  transition: background-color 0.15s;
}
.search-submit:hover {
  background: var(--ap-brand-600);
}
.search-submit-icon {
  display: none;
}
/* Compact variant (page header, sidebar): icon-only submit, no leading icon. */
.page-head-actions .search-icon,
.side-search .search-icon,
.page-head-actions .search-submit-label,
.side-search .search-submit-label {
  display: none;
}
.page-head-actions .search-submit-icon,
.side-search .search-submit-icon {
  display: block;
}
.page-head-actions .search-submit,
.side-search .search-submit {
  padding: 0;
  width: 40px;
}
.page-head-actions .search-input,
.side-search .search-input {
  padding-left: 12px;
}
@media (min-width: 768px) {
  .page-head-actions .search-form {
    width: 340px;
  }
}

.autocomplete-items {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 12px;
  box-shadow: var(--ap-shadow-lg);
  left: 0;
  padding: 6px;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1030;
}
.autocomplete-items:empty {
  display: none;
}
.autocomplete-items div {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ap-text);
  line-height: 1.4;
  padding: 8px 10px;
}
.autocomplete-items div b {
  color: var(--ap-ink);
  font-weight: 650;
}
.autocomplete-items div:hover {
  background: var(--ap-brand-50);
}
.autocomplete-active {
  background-color: var(--ap-brand) !important;
  color: #fff !important;
}
.autocomplete-active b {
  color: #fff !important;
}

/* ---------- Sort select (A–Z page) ---------- */

.sort-form {
  align-items: center;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 12px;
  box-shadow: var(--ap-shadow-sm);
  display: inline-flex;
  max-width: 100%;
  padding: 4px 4px 4px 12px;
}
.sort-label {
  align-items: center;
  color: var(--ap-muted);
  display: inline-flex;
  flex: none;
  font-size: 0.875rem;
  font-weight: 550;
  gap: 6px;
  margin: 0;
}
.sort-select {
  -webkit-appearance: none;
  appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7983' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 16px;
  border: 0;
  border-radius: 8px;
  color: var(--ap-ink);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 550;
  height: 38px;
  min-width: 0;
  padding: 0 32px 0 10px;
}
.sort-select:focus {
  background-color: var(--ap-brand-50);
  outline: none;
}

/* ---------- Pagination ---------- */

.pager {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 8px;
}
.pager-status {
  color: var(--ap-muted);
  font-size: 0.875rem;
  text-align: center;
}
.pager-btn {
  align-items: center;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 10px;
  color: var(--ap-ink);
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 600;
  gap: 6px;
  padding: 9px 16px;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.pager-btn:hover {
  background: var(--ap-subtle);
  color: var(--ap-ink);
  text-decoration: none;
}
.pager-btn-primary {
  background: var(--ap-brand);
  border-color: var(--ap-brand);
  color: #fff;
}
.pager-btn-primary:hover {
  background: var(--ap-brand-600);
  border-color: var(--ap-brand-600);
  color: #fff;
}
.pager-btn.is-disabled {
  background: transparent;
  color: #a7b2ba;
  pointer-events: none;
}

/* ---------- Fish detail ---------- */

.detail-title {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}
.detail-dt-name {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.375rem) !important;
  font-weight: 750;
}
.detail-lat-name {
  color: var(--ap-muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem) !important;
  font-style: italic;
  font-weight: 400 !important;
  letter-spacing: 0;
}

.gallery {
  margin-bottom: 24px;
}
.gallery .carousel,
.gallery .detail-image-wrapper {
  background: var(--ap-subtle);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
}
.gallery .carousel .detail-image-wrapper {
  border-radius: 0;
}
.detail-img,
.carousel-img {
  aspect-ratio: 3 / 2;
  display: block;
  max-height: none;
  object-fit: cover;
  width: 100%;
}
.carousel-control-prev,
.carousel-control-next {
  opacity: 1;
  width: 72px;
}
.carousel-btn {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  align-items: center;
  background: rgba(8, 39, 54, 0.45);
  border-radius: 50%;
  display: flex;
  height: 40px;
  justify-content: center;
  transition: background-color 0.15s;
  width: 40px;
}
.carousel-control-prev:hover .carousel-btn,
.carousel-control-next:hover .carousel-btn {
  background: rgba(8, 39, 54, 0.72);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  height: 16px;
  width: 16px;
}
.carousel-indicators {
  margin-bottom: 14px;
}
.carousel-indicators li {
  background-clip: border-box;
  border: 0;
  border-radius: 4px;
  height: 8px;
  margin: 0 4px;
  opacity: 0.55;
  transition: width 0.2s, opacity 0.2s;
  width: 8px;
}
.carousel-indicators li.active {
  opacity: 1;
  width: 22px;
}
/* Phones: edge-to-edge photo. */
@media (max-width: 575.98px) {
  .gallery {
    margin-left: -15px;
    margin-right: -15px;
  }
  .gallery .carousel,
  .gallery .detail-image-wrapper {
    border-radius: 0;
  }
}

.detail-sheet {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  margin-bottom: 32px;
  padding: 4px 28px;
}
.detail-section {
  border-top: 1px solid var(--ap-border);
  display: grid;
  gap: 10px 32px;
  padding: 24px 0;
}
.detail-section:first-child {
  border-top: 0;
}
.detail-section-head h2 {
  font-size: 1.25rem;
  margin: 0 0 2px;
}
.detail-section-head p {
  color: var(--ap-muted);
  font-size: 0.875rem;
  margin: 0;
}
@media (min-width: 768px) {
  .detail-section {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}
@media (max-width: 575.98px) {
  .detail-sheet {
    padding: 0 18px;
  }
  .detail-section {
    padding: 20px 0;
  }
}

.field {
  margin: 0 0 14px;
}
.field:last-child {
  margin-bottom: 0;
}
.field-label {
  color: var(--ap-muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.field-value {
  color: var(--ap-ink);
}
.field-hint {
  display: block;
  font-size: 0.875rem;
  margin-top: 6px;
}
.fact-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-bottom: 18px;
}
.fact-grid:last-child {
  margin-bottom: 0;
}
.fact {
  background: var(--ap-bg);
  border: 1px solid var(--ap-border);
  border-radius: 10px;
  margin: 0;
  padding: 12px 14px;
}
.fact .field-value {
  font-size: 1.0625rem;
  font-weight: 600;
}

.link-dashed-normal {
  background-color: var(--ap-brand-50);
  border-radius: 999px;
  color: var(--ap-brand-700) !important;
  font-weight: 600;
  padding: 2px 10px;
  text-decoration: none !important;
  transition: background-color 0.15s, color 0.15s;
}
.link-dashed-normal:hover {
  background-color: var(--ap-brand);
  color: #fff !important;
  padding: 2px 10px;
}

/* Disclaimer / Quellen accordion */
.accordion .card {
  border: 1px solid var(--ap-border) !important;
  border-radius: var(--ap-radius) !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion .card-header {
  background: var(--ap-surface) !important;
  border: 0;
  padding: 6px 20px;
}
.accordion .card-body {
  color: var(--ap-text);
  font-size: 0.9375rem;
  padding: 0 20px 18px;
}
.collapsible-link {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-decoration: none !important;
}
.collapsible-link::before,
.collapsible-link::after {
  background: var(--ap-muted);
}

/* ---------- Article content (CMS pages, fish descriptions) ---------- */

.prose {
  color: var(--ap-text);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  margin: 2.25rem 0 0.75rem;
}
.prose h3 {
  margin: 1.75rem 0 0.5rem;
}
.prose h4 {
  margin: 1.5rem 0 0.5rem;
}
.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.1rem;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}
.prose li {
  margin: 0.3rem 0;
}
.prose li::marker {
  color: var(--ap-brand);
}
.prose strong,
.prose b {
  color: var(--ap-ink);
  font-weight: 650;
}
.prose img {
  border-radius: 10px;
}
.prose figure {
  margin: 0.25rem 0 1.25rem;
}
.prose figcaption {
  color: var(--ap-muted);
  font-size: 0.8125rem;
  font-style: normal;
  padding: 6px 2px 0;
}
.prose hr {
  border-top: 1px solid var(--ap-border);
  margin: 2rem 0;
}
@media (min-width: 768px) {
  .prose figure.medium-image {
    margin-left: 28px;
    max-width: 340px;
    padding-left: 0;
  }
}

/* app.css underlines every paragraph link with a bold dashed border. */
.link-dashed,
p a,
p a:hover,
p a:visited,
.prose li a {
  border-bottom: 0 !important;
  color: var(--ap-link) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(34, 153, 204, 0.4) !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 3px;
}
p a:hover,
.prose li a:hover {
  color: var(--ap-brand-700) !important;
  text-decoration-color: currentColor !important;
}
p a.btn,
p a.link-unstyled,
p a.text-decoration-none {
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
}

.info-box,
.warning-box {
  border-radius: 10px;
  padding: 14px 18px;
}
.info-box {
  background: var(--ap-brand-50);
  border-left: 4px solid var(--ap-brand);
}
.warning-box {
  background: #fff5e6;
  border-left: 4px solid #f0a020;
}

.yt-iframe-container {
  border-radius: var(--ap-radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

/* Banners and teaser cards embedded in CMS content (category landing pages). */
.prose .jumbotron {
  border-radius: var(--ap-radius-lg);
  margin-bottom: 28px;
  overflow: hidden;
  padding: 48px 36px;
}
.prose .jumbotron .container {
  padding: 0;
}
.prose .jumbotron .lead {
  color: rgba(255, 255, 255, 0.9);
}
.prose .card {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ap-ease), transform 0.2s var(--ap-ease);
}
.prose .card-img-top {
  aspect-ratio: 3 / 2;
  border-radius: 0;
  object-fit: cover;
}
.prose .card-body {
  padding: 18px 20px;
}
.prose .card-title {
  color: var(--ap-ink);
  font-size: 1.25rem !important;
  margin-top: 0;
}
.prose .card-text {
  color: var(--ap-text);
  font-size: 0.9375rem;
}
@media (hover: hover) {
  .prose a:hover > .card {
    box-shadow: var(--ap-shadow-lg);
    transform: translateY(-3px);
  }
}
@media (max-width: 575.98px) {
  .prose .jumbotron {
    border-radius: 14px;
    padding: 32px 22px;
  }
}

.round-card {
  background: var(--ap-brand-50) !important;
  border: 0 !important;
  color: var(--ap-brand-700);
  height: 112px;
  transition: transform 0.2s var(--ap-ease), background-color 0.2s, color 0.2s;
  width: 112px;
}
.round-card-inner {
  display: block;
  font-size: 28px;
  font-weight: 700;
  height: 112px;
  letter-spacing: -0.02em;
  line-height: 112px;
  width: 112px;
}
.round-card:hover,
a:hover .round-card {
  background: var(--ap-brand) !important;
  color: #fff;
  transform: scale(1.05);
}
.round-card-text {
  color: var(--ap-ink);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 10px !important;
}

/* Affiliate product card (lib/products.ts). */
.product-card {
  align-items: center;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  margin: 1.5rem 0;
  padding: 16px 20px;
}
.product-card-title {
  color: var(--ap-ink);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.4;
  margin: 0 !important;
}
@media (max-width: 575.98px) {
  .product-card .btn {
    width: 100%;
  }
}

/* ---------- Herkunft map ---------- */

.distribution-map {
  padding: 8px 0;
}
.distribution-map .map-point {
  animation: ap-pulse 2.4s ease-out infinite;
  background: var(--ap-navy);
  border: 3px solid #fff;
  border-radius: 999px;
  height: 24px;
  padding: 0;
  transition: width 0.3s var(--ap-ease), height 0.3s var(--ap-ease), border-radius 0.3s, border-width 0.3s;
  width: 24px;
}
.distribution-map .map-point .content {
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.distribution-map .map-point:focus,
.distribution-map .map-point:active {
  animation: none;
  border-radius: 16px;
  border-width: 0;
  box-shadow: var(--ap-shadow-lg);
  height: 210px;
  overflow: hidden;
  width: 300px;
  z-index: 2;
}
.distribution-map .map-point:focus .content,
.distribution-map .map-point:active .content {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.15s;
}
.distribution-map .map-point h2 {
  font-size: 1.5rem;
  margin-bottom: 2px;
}
.distribution-map .map-point p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}
.btn-world-map,
.btn-world-map:visited {
  background: var(--ap-brand) !important;
  border-radius: 10px;
  color: #fff !important;
  font-weight: 600;
}
.btn-world-map:hover {
  background: var(--ap-brand-600) !important;
}
@keyframes ap-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 153, 204, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(34, 153, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 153, 204, 0); }
}

/* ---------- Empty states ---------- */

.empty-state {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  margin: 0 0 24px;
  padding: 48px 24px;
  text-align: center;
}
.empty-state-icon {
  align-items: center;
  background: var(--ap-brand-50);
  border-radius: 50%;
  color: var(--ap-brand);
  display: inline-flex;
  font-size: 30px;
  height: 64px;
  justify-content: center;
  margin-bottom: 16px;
  width: 64px;
}
.empty-state h2 {
  margin-bottom: 6px;
}
.empty-state p {
  color: var(--ap-muted);
  margin: 0 auto 20px;
  max-width: 32em;
}
.empty-state .hero-actions,
.empty-state .search-form {
  justify-content: center;
  margin: 0 auto;
}
.empty-state .search-form {
  margin-top: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  margin-top: 16px;
}
.footer-wave {
  display: block;
  height: 56px;
  margin-bottom: -1px;
  width: 100%;
}
.footer-wave use {
  animation: ap-wave 30s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.footer-wave use:nth-child(1) { animation-delay: -2s; animation-duration: 18s; }
.footer-wave use:nth-child(2) { animation-delay: -3s; animation-duration: 24s; }
.footer-wave use:nth-child(3) { animation-delay: -4s; animation-duration: 30s; }
.footer-wave use:nth-child(4) { animation-delay: -5s; animation-duration: 40s; }
@keyframes ap-wave {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}
.footer-main {
  background: var(--ap-navy);
  padding: 28px 0 12px;
}
.footer-brand img {
  height: 40px;
  width: auto;
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.88);
  margin: 14px 0 12px;
}
.footer-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 34em;
}
.footer-note strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.footer-heading {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  margin: 6px 0 14px;
  text-transform: uppercase;
}
.footer-links {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.footer-links li {
  margin: 0 0 9px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-bottom {
  background: var(--ap-navy-900);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  padding: 16px 0;
}

@media (prefers-reduced-motion: reduce) {
  .footer-wave use,
  .distribution-map .map-point {
    animation: none;
  }
  .fish-card,
  .cat-card,
  .fish-card-media img,
  .prose .card,
  .round-card {
    transition: none;
  }
}
