/* angelguide.de — Fangmeldungen: Formular, Fang-Seite, Community-Bestenlisten.

   Optik-Grundsatz: Die Community-Listen dürfen NIE wie die offiziellen Rekord-Tabellen
   aussehen. Rekorde sind Tabellen auf Papier; gemeldete Fänge sind Foto-Karten auf einer
   abgesetzten, leicht getönten Fläche. Wer die Seite überfliegt, muss den Unterschied
   sehen, bevor er eine Zeile liest.

   Mobile: alles einspaltig ab 760 px, Karten stapeln, Formularfelder volle Breite.
   Die Foto-Kacheln haben feste Seitenverhältnisse, damit die Liste beim Nachladen der
   Bilder nicht springt. */

/* ── Belegstufen-Badge ─────────────────────────────────────────────────────── */
.fg-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 7px; border-radius: var(--r-pill);
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  line-height: 1.5; white-space: nowrap; letter-spacing: .01em;
}
.fg-badge svg { width: 13px; height: 13px; flex: none; }
.fg-badge--belegt { background: var(--paper-2); color: #5a6a5d; }
.fg-badge--vermessen { background: var(--verified-soft); color: #1c6b4e; }

.fg-legende {
  margin: 22px 0 0; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.fg-legende h3 { font-family: var(--font-ui); font-size: 14px; margin: 0 0 12px; color: var(--ink); }
.fg-legende ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fg-legende li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.fg-legende li .fg-badge { flex: none; margin-top: 1px; }
.fg-legende__note { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ── Sektionen (Bestenlisten) ──────────────────────────────────────────────── */
.fg-sektion { margin: 44px 0; }
.fg-sektion__kopf { margin-bottom: 20px; }
.fg-sektion__eyebrow {
  display: inline-block; font-family: var(--font-ui); font-size: 12px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}
.fg-sektion__h { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); margin: 0 0 8px; color: var(--ink); line-height: 1.2; }
.fg-sektion__sub { margin: 0; max-width: 68ch; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.fg-sektion__sub em { font-style: normal; font-weight: 700; color: var(--ink); }
.fg-sektion__go { margin: 18px 0 0; }

/* Community-Sektion auf den Rekord-Seiten: deutlich abgesetzte Fläche mit eigener
   Kante — sie steht unter den Rekord-Tabellen und darf nicht als deren Fortsetzung
   gelesen werden. */
.fg-sektion--community {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3.4vw, 32px);
  margin-top: 52px;
}

.fg-artgruppe { margin-bottom: 26px; }
.fg-artgruppe__h {
  font-family: var(--font-ui); font-size: 15px; font-weight: 800; color: var(--ink);
  margin: 0 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line);
  letter-spacing: .01em;
}

/* ── Fang-Karten ───────────────────────────────────────────────────────────── */
.fg-karten { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.fg-karten--uebersicht { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.fg-karte {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.fg-karte:hover, .fg-karte:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--aqua); }
.fg-karte__bild { display: block; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.fg-karte__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fg-karte__platz {
  position: absolute; top: 9px; left: 9px; z-index: 1;
  display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px;
  border-radius: var(--r-pill); background: rgba(18, 42, 29, .82); color: #fff;
  font-family: var(--font-ui); font-size: 13px; font-weight: 800;
  backdrop-filter: blur(2px);
}
.fg-karte__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 13px 13px; align-items: flex-start; }
.fg-karte__mass { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.fg-karte__kg { font-size: 14px; font-weight: 600; color: var(--muted); }
.fg-karte__art { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--brand-700); }
.fg-karte__meta { font-size: 13px; color: var(--muted); line-height: 1.45; }
.fg-karte__wer { font-size: 12.5px; color: var(--faint); }
.fg-karte__body .fg-badge { margin-top: 6px; }

/* ── Leerzustand ───────────────────────────────────────────────────────────── */
.fg-leer {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md);
}
.fg-leer__text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }

/* ── Einstiegs-Block „Fang melden" ─────────────────────────────────────────── */
.fg-cta { background: var(--sea-900); color: #eef3ec; padding: clamp(30px, 5vw, 52px) 20px; margin-top: 44px; }
.fg-cta__inner { max-width: var(--wrap-wide, 1180px); margin: 0 auto; }
.fg-cta__eyebrow {
  display: inline-block; font-family: var(--font-ui); font-size: 12px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--aqua); margin-bottom: 10px;
}
.fg-cta__h { font-family: var(--font-display); font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 10px; color: #fff; line-height: 1.18; }
.fg-cta__sub { margin: 0 0 20px; max-width: 62ch; font-size: 16px; line-height: 1.65; color: #cfdccb; }
.fg-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fg-cta__note { font-size: 13.5px; color: #a8bda6; }

/* ── Frische-Signal ────────────────────────────────────────────────────────── */
.fg-frische {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 7px 13px;
  background: var(--verified-soft); border-radius: var(--r-pill);
  font-size: 13.5px; color: #1c6b4e; font-weight: 600;
}
.fg-frische__ic { display: inline-flex; }
.fg-frische__ic svg { width: 15px; height: 15px; }
.fg-frische b { font-weight: 800; }

/* ── Fang des Monats (Startseite) ──────────────────────────────────────────── */
.fg-monat {
  display: grid; grid-template-columns: 190px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
}
.fg-monat:hover { box-shadow: var(--shadow-md); }
.fg-monat__bild { aspect-ratio: 1 / 1; background: var(--paper-2); }
.fg-monat__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fg-monat__body { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; padding: 18px 20px; justify-content: center; }
.fg-monat__eyebrow { font-family: var(--font-ui); font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.fg-monat__h { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.fg-monat__meta { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ── Fang-Detailseite ──────────────────────────────────────────────────────── */
.fg-detail { padding-bottom: 20px; }
.fg-artikel { max-width: 780px; margin: 0 auto; }
.fg-foto {
  margin: 8px 0 22px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
}
.fg-foto img { width: 100%; height: auto; display: block; max-height: 72vh; object-fit: contain; background: #10190f; }
.fg-kopf { margin-bottom: 22px; }
.fg-kopf .fg-badge { margin-bottom: 10px; }
.fg-h1 { font-family: var(--font-display); font-size: clamp(26px, 4.4vw, 38px); margin: 0 0 8px; color: var(--ink); line-height: 1.15; }
.fg-unter { margin: 0; font-size: 16px; color: var(--ink-soft); line-height: 1.6; }
.fg-guide { margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); }

.fg-daten { display: grid; gap: 0; margin: 0 0 20px; padding: 4px 0; border-top: 1px solid var(--line); }
.fg-daten__row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line-soft); }
.fg-daten dt { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--muted); margin: 0; }
.fg-daten dd { margin: 0; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.fg-leer-wert { color: var(--faint); font-weight: 400; }

.fg-datenschutz {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 26px; padding: 14px 16px;
  background: var(--paper-2); border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.6; color: var(--ink-soft);
}
.fg-datenschutz svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--brand); }
.fg-xlink { margin-bottom: 30px; }

/* ── Formular ──────────────────────────────────────────────────────────────── */
.fg-formseite { padding: 26px 20px 50px; }
.fg-form-wrap { max-width: 780px; margin: 0 auto; }
.fg-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 3.4vw, 32px); box-shadow: var(--shadow-sm);
}
.fg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.fg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fg-feld--voll { grid-column: 1 / -1; }
.fg-feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fg-feld label { font-family: var(--font-ui); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.fg-pflicht { color: #a32d2d; }
.fg-opt { font-weight: 500; color: var(--muted); font-size: 13.5px; }

.fg-feld input[type="text"], .fg-feld input[type="email"], .fg-feld input[type="number"],
.fg-feld input[type="date"], .fg-feld input[type="file"], .fg-feld select, .fg-frei {
  width: 100%; box-sizing: border-box;
  padding: 11px 13px; font-family: var(--font-ui); font-size: 15.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  -webkit-appearance: none; appearance: none;
}
.fg-feld select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368786b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
  padding-right: 40px;
}
.fg-feld input[type="file"] { padding: 9px 11px; font-size: 14px; background: var(--paper-2); }
.fg-feld input:focus, .fg-feld select:focus, .fg-frei:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 125, 79, .16);
}
.fg-frei { margin-top: 8px; }
.fg-hilfe { margin: 2px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

.fg-recht { margin-top: 22px; padding: 15px 17px; background: var(--paper-2); border-radius: var(--r-md); }
.fg-check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--ink-soft); cursor: pointer; }
.fg-check input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--brand); }

.fg-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.fg-mod { font-size: 13px; color: var(--muted); line-height: 1.5; }

.fg-fehler {
  margin: 0 0 18px; padding: 13px 16px;
  background: #fceaea; border-left: 4px solid #a32d2d; border-radius: var(--r-sm);
  font-size: 14.5px; line-height: 1.6; color: #7d2222;
}
.fg-danke {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 24px; background: var(--verified-soft);
  border: 1px solid #b9dfcd; border-radius: var(--r-lg);
}
.fg-danke__ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--verified); color: #fff; }
.fg-danke__ic svg { width: 18px; height: 18px; }
.fg-danke b { font-family: var(--font-display); font-size: 19px; color: #14503a; }
.fg-danke p { margin: 6px 0 0; font-size: 15px; line-height: 1.65; color: #1c5c43; }

.fg-uebersicht { padding: 26px 20px 40px; }

/* ── Mobil ─────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .fg-grid { grid-template-columns: 1fr; gap: 16px; }
  .fg-karten { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .fg-daten__row { grid-template-columns: 1fr; gap: 2px; padding: 10px 2px; }
  .fg-daten dt { font-size: 13px; }
  .fg-monat { grid-template-columns: 1fr; }
  .fg-monat__bild { aspect-ratio: 16 / 10; }
  .fg-foto img { max-height: 60vh; }
  .fg-sektion--community { padding: 20px 16px; border-left-width: 3px; }
  .fg-cta__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  /* Badge neben Text laesst auf 375 px nur 2–3 Woerter je Zeile uebrig — der
     Erklaertext zerreisst. Deshalb hier Badge ueber den Text stapeln. */
  .fg-legende li { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 420px) {
  /* Bei sehr schmalen Geräten lieber eine große, lesbare Karte als zwei gequetschte. */
  .fg-karten { grid-template-columns: 1fr; }
  .fg-karte__bild { aspect-ratio: 16 / 10; }
}
