/* Self-hosted fonts (DSGVO-konform) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-variable.woff2') format('woff2-variations'),
       url('../fonts/manrope-variable.woff2') format('woff2');
}

/* Hero slogan initial state for GSAP */
.hero-slogan-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
}

/* Card hover lift */
.card-lift {
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0, 49, 197, 0.12);
  border-color: #0031c5;
}

/* Hessen-map pin */
.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%) scale(0);
  background: #0031c5;
  border-radius: 9999px;
  box-shadow: 0 0 0 4px rgba(0, 49, 197, 0.15);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.map-pin.is-visible {
  transform: translate(-50%, -50%) scale(1);
}

.map-pin:hover,
.map-pin:focus-visible {
  box-shadow: 0 0 0 8px rgba(0, 49, 197, 0.25);
}

.map-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 4px);
  white-space: nowrap;
  background: #111827;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 10;
}

.map-pin:hover,
.map-pin:focus-visible {
  z-index: 20;
}

.map-pin:hover .map-tooltip,
.map-pin:focus-visible .map-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Highlight des Zielelements nach Pin-Klick */
.is-highlighted {
  animation: reference-highlight 2s ease-out;
}

@keyframes reference-highlight {
  0%   { box-shadow: 0 0 0 0 rgba(0, 49, 197, 0); }
  20%  { box-shadow: 0 0 0 6px rgba(0, 49, 197, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(0, 49, 197, 0); }
}

/* Leaflet-Map Marker für Kontaktseite */
.kontakt-map-marker {
  background: transparent;
}

.kontakt-map-marker span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #0031c5;
  box-shadow: 0 0 0 6px rgba(0, 49, 197, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.leaflet-container {
  border-radius: 1rem;
  font-family: inherit;
}

/* Scroll indicator */
@keyframes scroll-nudge {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

.scroll-indicator {
  animation: scroll-nudge 2s ease-in-out infinite;
}
