/* ============================================================
   cloudgarten.de — Vogelkartierung CSS
   CG-009: Artkarte als neue Subpage

   Ergänzt cg-retro.css — keine bestehenden Regeln überschrieben.
   Nur .vk-* Klassen für die Vogelkartierung-Seite.
   ============================================================ */

/* ── Museumsschild-Header ──────────────────────────────────
   Option C: Daten voran, persönliche Schlusszeile.
   Zentriert in der cg-window-body, Cormorant für den Schluss. */
.vk-meta-block {
  font-family: 'Pixelify Sans', system-ui;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--holz-eiche);
  text-transform: uppercase;
  text-align: center;
  line-height: 2.2;
  margin-bottom: 8px;
}
.vk-meta-closing {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--holz-dunkel);
  text-align: center;
  margin-top: 18px;
}

/* ── Toolbar (Sortierung) ──────────────────────────────────
   Identisch zur .cg-beet-toolbar in cg-retro, aber eigenständig
   damit cg-retro.css unangetastet bleibt. */
.vk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-galerie);
  border: 1.5px solid var(--mac-frame);
  margin: 0 auto 24px;
  max-width: var(--content-max);
  font-family: 'Pixelify Sans', system-ui;
  font-size: 12px;
}
.vk-toolbar-left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.vk-toolbar-label {
  color: var(--holz-text);
  letter-spacing: 1px;
  margin-right: 6px;
}
.vk-sort-btn {
  padding: 4px 10px;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: var(--holz-dunkel);
  letter-spacing: 0.5px;
}
.vk-sort-btn.is-active {
  background: var(--holz-dunkel);
  color: var(--bg-galerie);
}
.vk-sort-btn:hover:not(.is-active) {
  border-color: var(--holz-eiche);
}

/* ── Filter nach Zeitfenster ────────────────────────────── */
.vk-toolbar-right {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.vk-filter-btn {
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid var(--holz-eiche);
  background: none;
  font-family: 'Pixelify Sans', system-ui;
  font-size: 10px;
  color: var(--holz-text);
  letter-spacing: 1px;
}
.vk-filter-btn.is-active {
  background: var(--holz-eiche);
  color: var(--bg-papier);
}
.vk-filter-btn:hover:not(.is-active) {
  background: var(--bg-warm);
}

/* ── Artenzähler ────────────────────────────────────────── */
.vk-count {
  text-align: center;
  font-family: 'Pixelify Sans', system-ui;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--holz-eiche);
  margin-bottom: 24px;
}

/* ── Kachel-Grid ───────────────────────────────────────────
   Jede Art = ein Mac-Fenster. Gleiche hover-Mechanik
   wie .rahmen-wrap in cg-retro.css. */
.vk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px 60px;
}

.vk-card {
  background: var(--bg-papier);
  border: 1.5px solid var(--mac-frame);
  box-shadow: var(--mac-shadow);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.vk-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--mac-frame);
}

/* ── Titelbalken (Art-Name) ────────────────────────────── */
.vk-card-titlebar {
  height: 22px;
  background: repeating-linear-gradient(to bottom,
    var(--mac-frame) 0, var(--mac-frame) 1px,
    var(--bg-papier) 1px, var(--bg-papier) 3px);
  border-bottom: 1.5px solid var(--mac-frame);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 28px;
  font-family: 'Pixelify Sans', system-ui;
  font-size: 12px;
  color: var(--holz-dunkel);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Close-Box Pseudo-Element — System 7 Konvention */
.vk-card-titlebar::before {
  content: '';
  position: absolute;
  left: 6px;
  width: 13px;
  height: 13px;
  background: var(--bg-papier);
  border: 1.5px solid var(--mac-frame);
}

/* ── Foto / Silhouette ─────────────────────────────────── */
.vk-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-warm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vk-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* SVG Silhouette Fallback */
.vk-card-photo svg {
  width: 64px;
  height: 64px;
  opacity: 0.25;
}

/* ── Karten-Body ───────────────────────────────────────── */
.vk-card-body {
  padding: 14px 16px 16px;
  background: var(--bg-papier);
}
.vk-card-common {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--holz-dunkel);
  line-height: 1.2;
  margin-bottom: 2px;
}
.vk-card-scientific {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--holz-eiche);
  margin-bottom: 12px;
}

/* ── Badges (Detektionen + Konfidenz) ──────────────────── */
.vk-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.vk-badge {
  font-family: 'Pixelify Sans', system-ui;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border: 1.5px solid var(--mac-frame);
  background: var(--bg-galerie);
  color: var(--holz-dunkel);
}

/* ── Zeitfenster-Balken ────────────────────────────────────
   Vier Segmente nebeneinander. Aktive = gefüllt, inaktive = leer.
   Visuelle Analogie zu den Stage-Dots im Beet. */
.vk-segments {
  display: flex;
  gap: 3px;
  align-items: center;
}
.vk-seg {
  flex: 1;
  height: 6px;
  border: 1px solid var(--holz-eiche);
  background: transparent;
}
.vk-seg.is-active {
  background: var(--holz-eiche);
}
.vk-seg-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-family: 'Pixelify Sans', system-ui;
  font-size: 8px;
  letter-spacing: 0.5px;
  color: var(--holz-text);
  opacity: 0.7;
}

/* ── Detail-Panel (aufklappbar) ────────────────────────── */
.vk-card-detail {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px dashed var(--holz-eiche);
  margin-top: 12px;
  padding-top: 12px;
}
.vk-card.is-open .vk-card-detail {
  display: block;
}
.vk-detail-row {
  font-family: 'Pixelify Sans', system-ui;
  font-size: 11px;
  color: var(--holz-text);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.vk-detail-row a {
  color: var(--holz-eiche);
  border-bottom: 1px solid var(--holz-eiche);
}
.vk-detail-row a:hover {
  color: var(--holz-dunkel);
}
.vk-detail-notes {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--holz-text);
  line-height: 1.5;
  margin-top: 8px;
}

/* ── DSGVO-Hinweis ─────────────────────────────────────── */
.vk-hinweis {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px 40px;
}
.vk-hinweis-body {
  padding: 16px 20px;
  font-family: 'Pixelify Sans', system-ui;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--holz-text);
  line-height: 1.8;
  opacity: 0.75;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .vk-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
  }
  .vk-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .vk-seg-labels {
    display: none; /* Zu eng auf Mobil */
  }
}
