/* Locally hosted Inter (OFL) — no external requests, DSGVO-friendly */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-700.woff2") format("woff2");
}

:root {
  --bg-1: #0b1220;
  --bg-2: #131c30;
  --bg-accent: #241f52;

  --text: #f8fafc;
  --text-muted: #cbd5e1;

  /* Primary CTA (Calendly) — the only strong accent on the page */
  --primary-1: #3474ff;
  --primary-2: #2455df;
  --primary-text: #ffffff;

  /* Glass secondary buttons */
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-border-hover: rgba(255, 255, 255, 0.3);

  --focus-ring: #93c5fd;
  --radius: 18px;
  --gap: 14px;
  --max-w: 540px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding:
    max(clamp(20px, 5vh, 52px), env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(clamp(20px, 5vh, 52px), env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Content sits slightly above mathematical centre for a tighter composition */
  justify-content: flex-start;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 720px at 50% 4%, rgba(75, 74, 210, 0.20), rgba(75, 74, 210, 0.06) 30%, transparent 54%),
    radial-gradient(1000px 780px at 68% 60%, rgba(35, 126, 255, 0.07), transparent 42%),
    linear-gradient(180deg, #0c1428 0%, #0d192d 52%, #091323 100%);
  background-attachment: fixed;
  line-height: 1.5;
}

/* ---------- Soft background light fields ---------- */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(90px);
  z-index: 0;
}
body::before {
  width: clamp(260px, 60vw, 460px);
  height: clamp(260px, 60vw, 460px);
  top: 12%;
  left: calc(50% - clamp(260px, 60vw, 460px));
  background: rgba(71, 92, 255, 0.42);
  opacity: 0.22;
}
body::after {
  width: clamp(220px, 52vw, 380px);
  height: clamp(220px, 52vw, 380px);
  top: 50%;
  left: calc(50% + clamp(20px, 6vw, 80px));
  background: rgba(31, 151, 255, 0.26);
  opacity: 0.18;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 20;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.card {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max-w));
  margin-inline: auto;
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.4vh, 34px);
}
@media (max-width: 360px) {
  .card {
    width: min(100% - 24px, var(--max-w));
  }
}

/* ---------- Profile ---------- */
.profile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
}

.avatar {
  width: clamp(96px, 24vw, 116px);
  height: clamp(96px, 24vw, 116px);
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(52, 116, 255, 0.55);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 6px rgba(52, 116, 255, 0.1);
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
}
.avatar--fallback {
  display: block;
}

.name {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.bio {
  margin: 0;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: clamp(0.92rem, 2.6vw, 1rem);
}

/* ---------- Social icons ---------- */
.socials-list {
  list-style: none;
  margin: clamp(2px, 1vw, 6px) 0 0;
  padding: 0;
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.84);
  box-shadow: none;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.social-btn__icon {
  display: inline-flex;
}
.social-btn svg {
  width: 25px;
  height: 25px;
  display: block;
}

/* ---------- Link lists ---------- */
.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 74px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Keep real content above decorative light-reflex pseudo-element */
.btn > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  .btn {
    min-height: 68px;
    border-radius: 16px;
    padding: 10px 14px;
  }
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.btn__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.btn__icon--image {
  background: rgba(255, 255, 255, 0.06);
}
.btn__icon--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dezente Glas-Kachel für E-Mail Icon */
.btn__icon--mail-outline {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.055)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn__icon--mail-outline svg {
  width: 24px;
  height: 24px;
}

.btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  text-align: left;
}
.btn__title {
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.btn__subtitle {
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.2;
  opacity: 0.72;
  overflow-wrap: anywhere;
}

.btn__chevron {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 6px;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn__chevron svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Shared focus state — visible without relying on colour alone */
.btn:focus-visible,
.social-btn:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* ---------- Primary variant (Calendly) ---------- */
.btn--primary {
  color: var(--primary-text);
  background: linear-gradient(135deg, #3474ff 0%, #2455df 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 14px 34px rgba(35, 91, 235, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 700;
  animation: cta-bounce 3.4s ease-in-out infinite;
}

/* Gentle periodic hop to draw attention to the primary CTA */
@keyframes cta-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  86% {
    transform: translateY(-5px);
  }
  92% {
    transform: translateY(-2px);
  }
}
/* Staggered entrance animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.links-list > li:nth-child(1) .btn {
  animation-delay: 0.1s;
}
.links-list > li:nth-child(2) .btn {
  animation-delay: 0.25s;
}
.links-list > li:nth-child(3) .btn {
  animation-delay: 0.4s;
}
.links-list > li:nth-child(4) .btn {
  animation-delay: 0.55s;
}

/* Primary button: slide in + then bounce */
.btn--primary {
  animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, cta-bounce 3.4s ease-in-out 0.6s infinite;
}

/* Inner light reflex */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.22),
    transparent 38%,
    transparent 72%,
    rgba(255, 255, 255, 0.06)
  );
}
.btn--primary .btn__icon {
  background: rgba(255, 255, 255, 0.2);
}
.btn--primary .btn__chevron {
  opacity: 0.9;
}

/* ---------- Glass variant ---------- */
.btn--glass {
  color: var(--text);
  /* Fallback background for browsers without backdrop-filter */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.11),
    rgba(255, 255, 255, 0.045)
  );
  border: 1px solid var(--glass-border);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .btn--glass {
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
  }
}
/* Diagonal light reflex across the glass */
.btn--glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.12),
    transparent 35%,
    transparent 70%,
    rgba(255, 255, 255, 0.04)
  );
}

/* ---------- Hover / active micro-interactions ---------- */
@media (hover: hover) and (pointer: fine) {
  .social-btn:hover {
    transform: translateY(-3px);
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  }

  .btn:hover .btn__chevron {
    transform: translateX(4px);
    opacity: 0.85;
  }

  .btn--primary:hover {
    transform: translateY(-3px);
    animation-play-state: paused;
    background: linear-gradient(135deg, #3f7dff 0%, #2c5ce8 100%);
    box-shadow:
      0 20px 44px rgba(35, 91, 235, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .btn--glass:hover {
    transform: translateY(-3px);
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.07)
    );
    border-color: var(--glass-border-hover);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

.btn:active {
  transform: translateY(0);
}

/* ---------- Section (business / contact) ---------- */
.link-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
/* Tighten only the gap between the social icons and the first section */
.profile + .link-section {
  margin-top: clamp(-10px, -1vh, -6px);
}
.section-label {
  margin: 0 0 2px;
  padding-left: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(6px, 2vh, 14px);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  opacity: 0.85;
}
.footer p {
  margin: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .btn--primary:hover,
  .btn--glass:hover,
  .social-btn:hover,
  .btn:hover .btn__chevron {
    transform: none !important;
  }
}
