*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #faf9f7;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #1a1a2e;
  overflow: hidden;
  position: relative;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 5% 15%, rgba(192, 57, 43, 0.07) 0%, transparent 60%), radial-gradient(ellipse 60% 80% at 95% 85%, rgba(26, 42, 74, 0.06) 0%, transparent 60%), radial-gradient(ellipse 50% 50% at 50% 50%, rgba(139, 26, 26, 0.03) 0%, transparent 60%);
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(10deg);
  }
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(26, 42, 74, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 42, 74, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 10%, transparent 70%);
}

.bg-keys {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-key {
  position: absolute;
  color: rgba(26, 42, 74, 0.04);
  animation: sway 8s ease-in-out infinite;
}
.bg-key svg {
  width: 100%;
  height: 100%;
}
.bg-key--red {
  color: rgba(192, 57, 43, 0.04);
}
.bg-key:nth-child(1) {
  animation-delay: -0.6s;
  animation-duration: 8s;
}
.bg-key:nth-child(2) {
  animation-delay: -1.2s;
  animation-duration: 10s;
}
.bg-key:nth-child(3) {
  animation-delay: -1.8s;
  animation-duration: 12s;
}
.bg-key:nth-child(4) {
  animation-delay: -2.4s;
  animation-duration: 14s;
}
.bg-key:nth-child(5) {
  animation-delay: -3s;
  animation-duration: 6s;
}
.bg-key:nth-child(6) {
  animation-delay: -3.6s;
  animation-duration: 8s;
}
.bg-key:nth-child(7) {
  animation-delay: -4.2s;
  animation-duration: 10s;
}
.bg-key:nth-child(8) {
  animation-delay: -4.8s;
  animation-duration: 12s;
}
.bg-key:nth-child(9) {
  animation-delay: -5.4s;
  animation-duration: 14s;
}
.bg-key:nth-child(10) {
  animation-delay: -6s;
  animation-duration: 6s;
}
.bg-key:nth-child(11) {
  animation-delay: -6.6s;
  animation-duration: 8s;
}
.bg-key:nth-child(12) {
  animation-delay: -7.2s;
  animation-duration: 10s;
}
.bg-key:nth-child(13) {
  animation-delay: -7.8s;
  animation-duration: 12s;
}
.bg-key:nth-child(14) {
  animation-delay: -8.4s;
  animation-duration: 14s;
}
.bg-key:nth-child(15) {
  animation-delay: -9s;
  animation-duration: 6s;
}
.bg-key:nth-child(16) {
  animation-delay: -9.6s;
  animation-duration: 8s;
}
.bg-key:nth-child(17) {
  animation-delay: -10.2s;
  animation-duration: 10s;
}
.bg-key:nth-child(18) {
  animation-delay: -10.8s;
  animation-duration: 12s;
}
.bg-key:nth-child(19) {
  animation-delay: -11.4s;
  animation-duration: 14s;
}
.bg-key:nth-child(20) {
  animation-delay: -12s;
  animation-duration: 6s;
}

@keyframes sway {
  0%, 100% {
    transform: translateY(0) rotate(var(--rot));
  }
  50% {
    transform: translateY(-12px) rotate(calc(var(--rot) + 5deg));
  }
}
.container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 700px;
  width: 100%;
}

.logo-wrapper {
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.logo {
  width: min(300px, 70vw);
  height: auto;
  transition: transform 0.4s ease;
}
.logo:hover {
  transform: scale(1.04) rotate(-0.5deg);
}

.heading {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  color: #1a2a4a;
  opacity: 0;
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}
.heading .line {
  display: block;
}
.heading .accent {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #8b1a1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientMove 4s ease-in-out infinite;
}

@keyframes gradientMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.subtext {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 400;
  color: #71717a;
  line-height: 1.8;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}

.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

.buttons-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  border-radius: 16px;
  color: #ffffff;
  text-decoration: none;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  z-index: 1;
}
.btn svg, .btn span {
  position: relative;
  z-index: 1;
}
.btn:hover::after {
  animation: shine 0.6s ease-out forwards;
}
.btn:active {
  transform: translateY(-2px) scale(1.05) rotate(-1deg);
}
.btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn--notruf {
  background: linear-gradient(135deg, #16a34a, #0f7a36);
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 18px;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
.btn--notruf::before {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.btn--notruf:hover {
  transform: translateY(-8px) scale(1.12) rotate(-2deg);
  box-shadow: 0 20px 50px rgba(22, 163, 74, 0.4), 0 0 80px rgba(22, 163, 74, 0.15);
  animation: none;
}
.btn--notruf:hover::before {
  opacity: 1;
}
.btn--notruf:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 4px;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
  50% {
    box-shadow: 0 0 25px 5px rgba(22, 163, 74, 0.2);
  }
}
.btn--instagram {
  background: linear-gradient(135deg, #c0392b, #8b1a1a);
}
.btn--instagram::before {
  background: linear-gradient(45deg, #f9ce34, #f5574e, #ee2a7b, #6228d7);
}
.btn--instagram:hover {
  transform: translateY(-8px) scale(1.12) rotate(-2deg);
  box-shadow: 0 20px 50px rgba(238, 42, 123, 0.4), 0 0 100px rgba(98, 40, 215, 0.2), 0 0 40px rgba(249, 206, 52, 0.15);
}
.btn--instagram:hover::before {
  opacity: 1;
}
.btn--instagram:focus-visible {
  outline: 2px solid #ee2a7b;
  outline-offset: 4px;
}

.btn--facebook {
  background: linear-gradient(135deg, #1877f2, #0d5bbf);
}
.btn--facebook::before {
  background: linear-gradient(135deg, #4293f5, #1877f2);
}
.btn--facebook:hover {
  transform: translateY(-8px) scale(1.12) rotate(2deg);
  box-shadow: 0 20px 50px rgba(24, 119, 242, 0.4), 0 0 80px rgba(13, 91, 191, 0.15);
}
.btn--facebook:hover::before {
  opacity: 1;
}
.btn--facebook:focus-visible {
  outline: 2px solid #1877f2;
  outline-offset: 4px;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
.footer {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: #71717a;
  opacity: 0;
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.15s forwards;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .bg-key {
    animation: none !important;
  }
  .container,
  .logo-wrapper,
  .heading,
  .subtext,
  .buttons,
  .footer {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 2rem 1.25rem;
  }
  .logo {
    width: min(240px, 65vw);
  }
}
