/*!
 * meteo365.es — Seite „Meine Favoriten und Lesezeichen"
 * © MAWE MEDIAONLINE, S.L.U.
 *
 * Zwei gleich gebaute Listen untereinander. Bewusst schlicht: die Seite ist ein
 * Werkzeug zum Wiederfinden, nicht zum Schauen.
 */

.gm-shell { padding: 22px 0 56px; max-width: 860px; }

.gm-block { margin: 0 0 34px; }

.gm-head { margin: 0 0 14px; }
.gm-head h2 {
  margin: 0 0 4px;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  letter-spacing: -0.01em;
}
.gm-sub { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }

/* ── Liste ─────────────────────────────────────────────────────────── */
.gm-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.gm-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.gm-row:hover { border-color: var(--accent); transform: translateY(-1px); }

.gm-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft-bg);
  color: var(--accent);
}
.gm-icon svg { width: 19px; height: 19px; display: block; }

/* Der Link füllt die Zeile, damit die ganze Fläche anklickbar ist —
   min-width:0 ist Pflicht, sonst sprengt ein langer Titel die Zeile. */
.gm-link {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
  text-decoration: none; color: inherit;
}
.gm-title {
  font-weight: 600; font-size: 0.98rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gm-meta {
  color: var(--ink-muted); font-size: 0.8rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.gm-actions { flex: 0 0 auto; display: flex; gap: 4px; }
.gm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.gm-btn svg { width: 16px; height: 16px; display: block; }
.gm-btn:hover { background: var(--accent-soft-bg); color: var(--accent); }
.gm-btn--del:hover { color: var(--danger, #e5484d); background: color-mix(in srgb, currentColor 12%, transparent); }

.gm-empty {
  margin: 0; padding: 18px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.gm-hint {
  margin: 6px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted); font-size: 0.86rem;
}

@media (max-width: 560px) {
  .gm-row { padding: 9px 10px; gap: 10px; }
  .gm-icon { width: 30px; height: 30px; }
  .gm-icon svg { width: 17px; height: 17px; }
  .gm-title { font-size: 0.94rem; }
}
