/* 10% Online-Rabatt — Stempel im Hero (rechts neben der Überschrift) */
.swd-hero-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.swd-hero-head__main {
  flex: 1 1 240px;
  min-width: 0;
}

/* Rechts: ein gemeinsamer „Promo“-Block — 10%-Stempel + Facebook (kompakt, professionell) */
.swd-hero-head__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  margin-left: auto;
  max-width: min(100%, 19.5rem);
  padding: 0.65rem 0.65rem 0.6rem;
  background: linear-gradient(
    165deg,
    rgba(0, 42, 98, 0.5) 0%,
    rgba(0, 24, 62, 0.42) 55%,
    rgba(0, 18, 48, 0.38) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow:
    0 14px 44px rgba(0, 8, 28, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.swd-hero-head__side .swd-online-discount-badge--hero {
  margin-left: 0;
  align-self: center;
}

/* Dezente Trennung zwischen Stempel und Community-Karte */
.swd-hero-head__side .fb-trust {
  width: 100%;
  max-width: 100%;
  padding-top: 0.55rem;
  margin-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.swd-online-discount-badge--hero {
  position: static;
  z-index: 2;
  flex: 0 0 auto;
  margin-left: auto;
  align-self: flex-start;
  text-decoration: none !important;
  color: inherit;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.38));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.swd-online-discount-badge--hero:hover {
  transform: scale(1.05) rotate(0deg);
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.45));
}

.swd-online-discount-badge--hero:focus-visible {
  outline: 3px solid #edae00;
  outline-offset: 4px;
  border-radius: 50%;
}

.swd-odb-stamp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: linear-gradient(155deg, #0c1c71 0%, #0a2d7a 55%, #071a55 100%);
  border: 3px solid #edae00;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-6deg) scale(1);
  line-height: 1.1;
  padding: 0.28rem 0.35rem;
  font-family: inherit;
  box-sizing: border-box;
  overflow: hidden;
  /* sanfter Puls + Gold-Rand-Glow — auffällig, aber nicht hektisch */
  animation: swdOdbStampPulse 2.4s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.swd-odb-stamp::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 45%;
  height: 180%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  transform: translateX(-120%) rotate(18deg);
  pointer-events: none;
  border-radius: 4px;
  animation: swdOdbStampShine 3.2s ease-in-out infinite;
}

@keyframes swdOdbStampPulse {
  0%,
  100% {
    transform: rotate(-6deg) scale(1);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.1),
      0 2px 0 rgba(255, 255, 255, 0.08),
      0 0 0 0 rgba(237, 174, 0, 0);
  }
  50% {
    transform: rotate(-6deg) scale(1.04);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.12),
      0 2px 0 rgba(255, 255, 255, 0.1),
      0 0 0 1px rgba(255, 213, 100, 0.35),
      0 0 20px 4px rgba(237, 174, 0, 0.45);
  }
}

@keyframes swdOdbStampShine {
  0%,
  55% {
    transform: translateX(-130%) rotate(18deg);
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  68% {
    transform: translateX(220%) rotate(18deg);
    opacity: 0.85;
  }
  72%,
  100% {
    transform: translateX(220%) rotate(18deg);
    opacity: 0;
  }
}

.swd-online-discount-badge--hero:hover .swd-odb-stamp,
.swd-online-discount-badge--hero:focus-visible .swd-odb-stamp {
  animation-play-state: paused;
}

.swd-online-discount-badge--hero:hover .swd-odb-stamp::after,
.swd-online-discount-badge--hero:focus-visible .swd-odb-stamp::after {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .swd-odb-stamp,
  .swd-odb-stamp::after {
    animation: none !important;
  }
  .swd-odb-stamp {
    transform: rotate(-6deg) scale(1);
    will-change: auto;
  }
}

.swd-odb-pct {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.12rem;
}

.swd-odb-line {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #edae00;
  margin-bottom: 0.18rem;
  line-height: 1.2;
}

.swd-odb-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.15;
  max-width: 5.4rem;
}

.swd-odb-line1,
.swd-odb-line2 {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 640px) {
  .swd-hero-head {
    flex-direction: column;
    align-items: stretch;
  }

  .swd-hero-head__side {
    align-items: center;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
  }

  .swd-online-discount-badge--hero {
    margin-left: 0;
    align-self: center;
  }
}

@media (max-width: 400px) {
  .swd-odb-stamp {
    width: 92px;
    height: 92px;
  }

  .swd-odb-pct {
    font-size: 1.22rem;
  }

  .swd-odb-line {
    font-size: 0.48rem;
  }

  .swd-odb-sub,
  .swd-odb-line1,
  .swd-odb-line2 {
    font-size: 0.5rem;
  }
}

/* Facebook — Community-Vertrauen (Hero, unter 10%-Stempel) */
.fb-trust {
  max-width: 520px;
}

.fb-trust__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  color: inherit;
  padding: 0.55rem 0.65rem 0.55rem 0.5rem;
  background: rgba(0, 28, 72, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Innerhalb des gemeinsamen Hero-Panels: noch ruhiger, weniger „zweite Karte“ */
.swd-hero-head__side .fb-trust__link {
  background: rgba(0, 18, 48, 0.28);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.swd-hero-head__side .fb-trust__link:hover {
  background: rgba(0, 30, 75, 0.45);
  border-color: rgba(24, 119, 242, 0.4);
}

.fb-trust__link:hover {
  background: rgba(0, 45, 95, 0.48);
  border-color: rgba(24, 119, 242, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.fb-trust__link:focus-visible {
  outline: 2px solid #edae00;
  outline-offset: 2px;
}

.fb-trust__avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(24, 119, 242, 0.95);
  background: #0a1f3a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.15) inset,
    0 0 12px rgba(24, 119, 242, 0.25);
}

.fb-trust__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fb-trust__body {
  display: block;
  min-width: 0;
  text-align: left;
}

.fb-trust__name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
}

.fb-trust__name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.fb-trust__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  flex-shrink: 0;
}

.fb-trust__badge svg {
  display: block;
  width: 0.65rem;
  height: 0.65rem;
}

.fb-trust__line {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.15rem;
}

.fb-trust__line strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.fb-trust__follow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ec9ff;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.fb-trust__link:hover .fb-trust__follow {
  color: #c8e0ff;
}

@media print {
  .swd-online-discount-badge--hero {
    display: none;
  }

  .fb-trust {
    display: none;
  }
}
