/* ============================================================
   GROUNDHOPPING — Stadion-Ziele (nutzt Iron-Man-Theme-Variablen)
   ============================================================ */

/* Kachel-Grid */
.gh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

/* Kachel */
.gh-tile {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: var(--transition);
  position: relative;
}
.gh-tile:hover { border-color: var(--border-glow); box-shadow: 0 0 0 1px var(--red-glow); }
.gh-tile.is-visited { border-left: 3px solid #3fa34d; }

.gh-tile__head { display: flex; align-items: center; gap: 0.7rem; }
.gh-flag { font-size: 2.1rem; line-height: 1; flex-shrink: 0; }
.gh-tile__place { flex: 1; min-width: 0; }
.gh-city {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 1.05;
}
.gh-country { font-size: 0.78rem; color: var(--text-secondary); }

.gh-del {
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 0.9rem; padding: 0.2rem; line-height: 1;
  flex-shrink: 0; border-radius: 50%;
}
.gh-del:hover { color: var(--red); }

.gh-photo {
  width: 100%;
  height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel-alt);
}
.gh-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gh-stadium {
  font-size: 0.92rem;
  color: var(--text-primary);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--border);
}

.gh-team { display: flex; align-items: center; gap: 0.8rem; }
.gh-crest {
  width: 56px; height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  /* weicher Schein: heller Halo hebt das Wappen vom dunklen Hintergrund ab + dezente Tiefe.
     drop-shadow folgt der Alpha-Kontur des transparenten PNG, kein Kasten. */
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.14))
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}
.gh-crest--ph {
  display: grid; place-items: center;
  font-size: 1.9rem;
  color: var(--text-secondary);
  opacity: 0.6;
}
.gh-team__name { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }

.gh-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gh-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.gh-badge--planned { background: var(--blue-arc-glow); color: var(--blue-arc); }
.gh-badge--visited { background: rgba(63,163,77,0.15); color: #4caf50; }
.gh-badge--intl    { background: var(--gold-glow); color: var(--gold); }

.gh-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 0.6rem;
}

.gh-tile__foot { margin-top: auto; display: flex; justify-content: flex-end; }

/* Wappen-Dropzone (nutzt cover-dropzone-Basisklassen aus style.css) */
.gh-crest-zone { min-height: 120px; }

/* Header-Toolbar (Filter + Neues-Ziel-Button) */
.gh-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.gh-add-btn {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
.gh-add-btn:hover { background: var(--gold-glow) !important; }

/* Modal / Overlay fürs Eingabeformular */
.gh-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 10, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
}
.gh-modal.hidden { display: none; }
.gh-modal__box {
  width: 100%;
  max-width: 760px;
  margin: auto 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: gh-pop 0.16s ease-out;
}
@keyframes gh-pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}
body.gh-modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .gh-grid { grid-template-columns: 1fr; }
  .gh-toolbar { width: 100%; }
}
