/* ============================================================
   Gewässerverzeichnis – Modul-Stylesheet
   Fügt sich in das Anglerwissen-Theme ein und nutzt dessen
   Variablen (--deep, --water, --reed, --float, --sand, --card,
   --line, --muted, --radius, --shadow-*). Alle Klassen sind mit
   .gw- gekapselt, damit nichts auf anderen Seiten kollidiert.
   ============================================================ */

/* ---- Filter / Werkzeugleiste ------------------------------- */
.gw-tools { margin-top: -1rem; margin-bottom: 1.2rem; }
.gw-filter {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  background: var(--card); padding: .9rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.gw-filter input[type=search] {
  flex: 1 1 260px; min-width: 200px;
  padding: .7rem .9rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; font-size: 1rem; color: var(--ink);
}
.gw-filter select {
  padding: .7rem .7rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
.gw-filter input:focus, .gw-filter select:focus { outline: 2px solid var(--water); outline-offset: 1px; }
.gw-filter button {
  padding: .7rem 1.3rem; border: 0; border-radius: 10px;
  background: var(--float); color: #fff; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(226,96,59,.28);
}
.gw-filter button:hover { background: var(--float-d); }
.gw-reset { color: var(--muted); font-size: .9rem; padding: 0 .4rem; }
.gw-count { color: var(--muted); font-size: .92rem; margin: .8rem .2rem 1.2rem; }

/* ---- Kartenraster ------------------------------------------ */
.gw-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}
.gw-card {
  display: block; color: inherit; text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.15rem; transition: .15s;
}
.gw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(28,107,99,.4); text-decoration: none; }
.gw-card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.gw-badge {
  display: inline-block; background: var(--reed); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .02em;
  padding: .22rem .62rem; border-radius: 999px; white-space: nowrap;
}
.gw-ha { color: var(--muted); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.gw-card h3 { margin: .1rem 0 .15rem; font-size: 1.1rem; color: var(--deep); line-height: 1.3; }
.gw-kennnr { color: var(--muted); font-size: .8rem; font-family: ui-monospace, "SFMono-Regular", monospace; margin: 0 0 .65rem; }
.gw-fish { display: flex; flex-wrap: wrap; gap: .3rem; }
.gw-fish-tag {
  font-size: .74rem; background: var(--paper); color: var(--deep);
  border: 1px solid var(--line); padding: .16rem .5rem; border-radius: 7px;
}
.gw-fish-tag.gw-more { background: var(--deep); color: #fff; border-color: var(--deep); }
.gw-warn { margin: .7rem 0 0; font-size: .8rem; color: var(--float-d); line-height: 1.4; }
.gw-empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 2.5rem 1rem; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---- Quellenfußnote ---------------------------------------- */
.gw-source { margin-top: 1.8rem; }
.gw-source p {
  font-size: .82rem; color: var(--muted); line-height: 1.6;
  background: var(--sand); border: 1px solid var(--line);
  padding: 1rem 1.15rem; border-radius: var(--radius); margin: 0;
}

/* ---- Vereinsgewässer-Teaser-Trenner ------------------------ */
.gw-subhead { margin: 2.6rem 0 1.4rem; }
.gw-subhead .eyebrow { margin-bottom: .5rem; }
.gw-subhead h2 { margin: 0 0 .5rem; }
.gw-subhead p { color: var(--muted); max-width: 65ch; }

/* ---- Detailseite ------------------------------------------- */
.gw-back { margin-bottom: .8rem; }
.gw-back a { color: var(--water); font-size: .92rem; font-weight: 600; }
.gw-detail-head { margin-bottom: 2rem; }
.gw-detail-head .gw-badge { margin-bottom: .7rem; }
.gw-detail-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: .3rem 0 .5rem; }
.gw-detail-head .gw-meta { color: var(--muted); font-size: .98rem; }

.gw-detail-body {
  display: grid; grid-template-columns: 1fr 320px; gap: 1.6rem; align-items: start;
}
.gw-block {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1.2rem;
}
.gw-block h2 { margin: 0 0 .9rem; font-size: 1.25rem; color: var(--deep); }
.gw-block p { line-height: 1.7; }
.gw-block-warn { border-color: rgba(226,96,59,.35); background: #fff7f3; }
.gw-block-warn p { color: var(--float-d); }
.gw-credit { font-size: .78rem; color: var(--muted); margin-top: .8rem; }

.gw-fishtable { width: 100%; border-collapse: collapse; font-size: .93rem; }
.gw-fishtable th, .gw-fishtable td {
  text-align: left; padding: .55rem .55rem; border-bottom: 1px solid var(--line);
}
.gw-fishtable thead th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.gw-fishtable tbody tr:last-child td { border-bottom: 0; }
.gw-wiss { color: var(--muted); }
.gw-rules ul { margin: 0; padding-left: 1.15rem; line-height: 1.75; }
.gw-rules li { margin-bottom: .35rem; }

.gw-side-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.25rem; margin-bottom: 1rem;
}
.gw-side-card h3 { margin: 0 0 .8rem; font-size: 1.05rem; color: var(--deep); }
.gw-maps-btn {
  display: block; text-align: center; text-decoration: none;
  background: var(--float); color: #fff; font-weight: 700;
  padding: .8rem; border-radius: 10px; margin-bottom: .7rem;
  box-shadow: 0 6px 16px rgba(226,96,59,.28);
}
.gw-maps-btn:hover { background: var(--float-d); text-decoration: none; }
.gw-maps-note { font-size: .78rem; color: var(--muted); line-height: 1.55; margin: 0; }
.gw-side-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem .9rem; font-size: .92rem; }
.gw-side-facts dt { color: var(--muted); }
.gw-side-facts dd { margin: 0; font-weight: 700; color: var(--deep); text-align: right; }

/* ---- Pagination -------------------------------------------- */
.gw-pager { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; align-items: center; margin-top: 1.8rem; }
.gw-pg {
  display: inline-block; min-width: 2.2rem; text-align: center;
  padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 9px;
  text-decoration: none; color: var(--deep); background: #fff; font-size: .92rem; font-weight: 600;
}
.gw-pg:hover { border-color: var(--water); text-decoration: none; }
.gw-pg-cur { background: var(--deep); color: #fff; border-color: var(--deep); }
.gw-pg-gap { color: var(--muted); padding: 0 .2rem; }

@media (max-width: 880px) {
  .gw-detail-body { grid-template-columns: 1fr; }
}
