/* ============================================================
   visit-magdeburg.de — Link-Hinweise v2
   Kennzeichnung externer Links und mailto-Links.
   Markup setzt v2/js/link-hints.js
   (Klassen: .vm-hint, .vm-hint__arr, .vm-hint__arr-up, .vm-hint__icon)
   ============================================================ */

/* ---- Externer Link: Diagonalpfeil ↗ hinter dem Text ---- */
.vm-hint__arr {
  margin-left: 0.3em;
  font-weight: inherit;
  line-height: 1;
  order: 99;              /* in Flex-Buttons ans Ende */
}

/* Vorhandener Pfeil-SVG (Button „Zur Website →") wird zum Diagonalpfeil
   gedreht — kein zweites Zeichen.
   Doppelte Klasse = höhere Spezifität als Hover-Regeln wie
   `.gg-karte__go:hover svg { transform: translateX(2px) }`, die die Drehung
   sonst beim Überfahren zurücksetzen würden. */
.vm-hint__arr-up.vm-hint__arr-up {
  transform: rotate(-45deg);
  transform-origin: center;
}
.vm-hint:hover .vm-hint__arr-up.vm-hint__arr-up {
  transform: translate(2px, -2px) rotate(-45deg);
}

/* ---- mailto: Briefumschlag vor der Adresse ---- */
.vm-hint__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.4em;
  flex: 0 0 auto;
  order: -1;
  vertical-align: baseline;
  color: currentColor;
  opacity: 1;            /* keine opacity auf Text/Icons — Kontrast bleibt AA */
}
.vm-hint__icon svg { width: 100%; height: 100%; display: block; }

/* Marke soll nie allein in einer neuen Zeile stehen */
.vm-hint { white-space: normal; }

/* Karten-/Bildlinks ohne Titel-Element: Eck-Badge oben rechts
   (mit Titel-Element hängt der Pfeil am Titel — s. link-hints.js) */
.vm-hint--badge { position: relative; }
.vm-hint--badge::after {
  content: "↗";
  position: absolute;
  top: 10px; right: 10px;
  width: 26px; height: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  color: var(--ink, #111);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

/* Fließtext: externe Links zusätzlich unterstrichen — ein Pfeil allein ist
   ein reines Formmerkmal und trägt für sich genommen zu wenig (WCAG 1.4.1).
   Die Klasse .vm-hint--inline setzt link-hints.js nur auf echte Textlinks;
   Buttons, Karten, Navigation und Footer bleiben unangetastet. */
.vm-hint--ext.vm-hint--inline {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.site-header .vm-hint--inline,
.site-footer .vm-hint--inline,
.m-nav .vm-hint--inline,
.utility-bar .vm-hint--inline { text-decoration: none; }

@media print {
  .vm-hint--badge::after { content: none; }
}
