/* ============================================================
   Social Follow Section – animierter Verweis auf Social-Channels
   ============================================================ */

.social-follow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* --- Floating background shapes --- */
.social-follow__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.social-follow__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  will-change: transform;
}

.social-follow__blob--1 {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(212, 179, 106, 0.55), rgba(212, 179, 106, 0));
  animation: sf-float-a 22s ease-in-out infinite;
}

.social-follow__blob--2 {
  width: 440px;
  height: 440px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle at 60% 60%, rgba(20, 33, 61, 0.30), rgba(20, 33, 61, 0));
  animation: sf-float-b 28s ease-in-out infinite;
}

.social-follow__blob--3 {
  width: 280px;
  height: 280px;
  top: 40%;
  left: 45%;
  background: radial-gradient(circle, rgba(212, 179, 106, 0.22), rgba(212, 179, 106, 0));
  animation: sf-float-c 24s ease-in-out infinite;
}

@keyframes sf-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, 40px) scale(1.08); }
  66%      { transform: translate(-30px, 70px) scale(0.95); }
}
@keyframes sf-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-70px, -50px) scale(1.1); }
}
@keyframes sf-float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -40px) scale(1.15); }
}

/* --- Heading area --- */
.social-follow__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.social-follow__head p {
  color: var(--muted, #5a6478);
  margin-top: 0.75rem;
}

/* --- Decorative pulsing connector dots above heading --- */
.social-follow__pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B08856;
}
.social-follow__pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D4B36A;
  box-shadow: 0 0 0 0 rgba(212, 179, 106, 0.6);
  animation: sf-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes sf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 179, 106, 0.7); }
  70%  { box-shadow: 0 0 0 14px rgba(212, 179, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 179, 106, 0); }
}

/* --- Card grid --- */
.social-follow__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 1.5rem);
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .social-follow__grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* --- Individual card --- */
.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 6px 20px -10px rgba(20, 33, 61, 0.18);
  text-decoration: none;
  color: #14213D;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.4s ease;
  transform: translateY(0);
}

.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sf-grad, linear-gradient(135deg, #14213D, #0A66C2));
  opacity: 0;
  transition: opacity 0.55s ease;
  border-radius: inherit;
}

/* Animated shimmer sweep on hover */
.social-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.9s cubic-bezier(0.4, 0.2, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px -22px var(--sf-shadow, rgba(10, 102, 194, 0.55));
  border-color: transparent;
  color: #ffffff;
  outline: none;
}
.social-card:hover::before,
.social-card:focus-visible::before { opacity: 1; }
.social-card:hover::after,
.social-card:focus-visible::after { left: 130%; }

/* --- Icon --- */
.social-card__icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--sf-icon-bg, rgba(10, 102, 194, 0.10));
  color: var(--sf-icon, #0A66C2);
  transition: background 0.5s ease, color 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
}
.social-card__icon svg {
  width: 32px;
  height: 32px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.social-card:hover .social-card__icon,
.social-card:focus-visible .social-card__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: scale(1.06) rotate(-4deg);
}
.social-card:hover .social-card__icon svg,
.social-card:focus-visible .social-card__icon svg {
  transform: scale(1.05) rotate(4deg);
}

/* Icon glow ring */
.social-card__icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: var(--sf-grad, linear-gradient(135deg, #14213D, #0A66C2));
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.6s ease;
}
.social-card:hover .social-card__icon::before,
.social-card:focus-visible .social-card__icon::before {
  opacity: 0.55;
}

/* --- Text --- */
.social-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
  position: relative;
}
.social-card__platform {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
}
.social-card__handle {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  line-height: 1.2;
}
.social-card__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.4rem;
  opacity: 0.78;
}

/* --- Arrow indicator --- */
.social-card__arrow {
  margin-top: auto;
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(20, 33, 61, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 2;
  position: relative;
  transition: border-color 0.4s ease;
}
.social-card:hover .social-card__arrow,
.social-card:focus-visible .social-card__arrow {
  border-top-color: rgba(255, 255, 255, 0.25);
}
.social-card__arrow svg {
  width: 22px;
  height: 22px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.social-card:hover .social-card__arrow svg,
.social-card:focus-visible .social-card__arrow svg {
  transform: translateX(6px);
}

/* --- Brand-specific palettes --- */
.social-card--linkedin {
  --sf-grad: linear-gradient(135deg, #0A66C2 0%, #1B95E0 100%);
  --sf-icon: #0A66C2;
  --sf-icon-bg: rgba(10, 102, 194, 0.10);
  --sf-shadow: rgba(10, 102, 194, 0.42);
}
.social-card--instagram {
  --sf-grad: linear-gradient(135deg, #F58529 0%, #DD2A7B 45%, #8134AF 75%, #515BD4 100%);
  --sf-icon: #DD2A7B;
  --sf-icon-bg: rgba(221, 42, 123, 0.12);
  --sf-shadow: rgba(221, 42, 123, 0.42);
}
.social-card--facebook {
  --sf-grad: linear-gradient(135deg, #1877F2 0%, #4267B2 100%);
  --sf-icon: #1877F2;
  --sf-icon-bg: rgba(24, 119, 242, 0.10);
  --sf-shadow: rgba(24, 119, 242, 0.40);
}

/* --- Stat ribbon (subtle live indicator) --- */
.social-card__ribbon {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B08856;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 179, 106, 0.12);
  z-index: 2;
  transition: background 0.4s ease, color 0.4s ease;
}
.social-card__ribbon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4B36A;
  box-shadow: 0 0 0 0 rgba(212, 179, 106, 0.6);
  animation: sf-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.social-card:hover .social-card__ribbon,
.social-card:focus-visible .social-card__ribbon {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .social-follow__blob,
  .social-follow__pulse-dot,
  .social-card__ribbon::before {
    animation: none !important;
  }
  .social-card,
  .social-card::before,
  .social-card::after,
  .social-card__icon,
  .social-card__icon svg,
  .social-card__arrow svg {
    transition: none !important;
  }
}
