/* Social-Media-Karten für SC Mauerbach */

.scm-social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.scm-social-card {
  display: flex;
  align-items: center;
  gap: 1rem;

  /*
   * Explizite Kartenhöhe:
   * verhindert unterschiedliche Höhen durch Theme-Regeln,
   * Font-Rendering oder Markdown/HTML-Nebeneffekte.
   */
  height: 5.25rem;
  min-height: 5.25rem;
  box-sizing: border-box;

  padding: 1rem 1.15rem;
  border-radius: 0.75rem;

  background: #0f1f3a;
  border: 1px solid rgba(255, 230, 0, 0.35);
  color: inherit;
  text-decoration: none;

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.scm-social-card:hover {
  transform: translateY(-2px);
  border-color: #ffe600;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.scm-social-card:focus-visible {
  outline: 3px solid #ffe600;
  outline-offset: 3px;
}

/*
 * Sicherheitsnetz gegen Theme-/Markdown-bedingte Abstände
 * innerhalb der Linkkarte.
 */
.scm-social-card p,
.scm-social-card span {
  margin-top: 0;
  margin-bottom: 0;
}

.scm-social-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;

  border-radius: 999px;
  background: #ffe600;
  color: #0a1b3d;

  font-weight: 800;
  line-height: 1;
}

.scm-social-card__icon i {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.scm-social-card__text {
  display: block;
  min-width: 0;
}

.scm-social-card__text strong {
  display: block;
  color: #ffe600;
  font-size: 1.05rem;
  line-height: 1.25;
}

.scm-social-card__text small {
  display: block;
  margin-top: 0.2rem;
  color: #d6d6d6;
  line-height: 1.35;
}

/*
 * Externer-Link-Pfeil für Social-Media-Karten.
 * Falls die globale Klasse .link-extern bereits selbst einen Pfeil erzeugt,
 * kann dieser Block entfernt werden, um doppelte Pfeile zu vermeiden.
 */
.scm-social-card.link-extern::after {
  content: "\2197\FE0E";
  margin-left: auto;
  align-self: center;
  flex: 0 0 auto;

  color: #d6d6d6;
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.95;
}

.scm-social-card.link-extern:hover::after,
.scm-social-card.link-extern:focus-visible::after {
  color: #ffe600;
  opacity: 1;
}

/* Mobile Feinkorrektur */
@media (max-width: 520px) {
  .scm-social-card {
    height: 5rem;
    min-height: 5rem;
    padding: 0.95rem 1rem;
  }

  .scm-social-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-basis: 2.5rem;
  }

  .scm-social-card__icon i {
    font-size: 1.4rem;
  }
}