/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --bg:         #08080f;
  --surface:    #0f0f1c;
  --border:     #1c1c2e;
  --text:       #ededf5;
  --muted:      #6e6e90;
  --accent:     #7c6af7;
  --accent-b:   #22d3ee;
  --radius:     14px;
  --ease:       0.22s ease;
}

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

/* ── Base ───────────────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(124, 106, 247, 0.10) 0%, transparent 65%),
    var(--bg);
  color: var(--text);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 2rem;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 340px;
  animation: fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar-ring {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-b) 100%);
  flex-shrink: 0;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  width: 58%;
  height: 58%;
  color: var(--muted);
  opacity: 0.55;
}

/* ── Text ───────────────────────────────────────────────────── */
.text {
  text-align: center;
}

.name {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tagline {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Social Links ───────────────────────────────────────────── */
.social {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition:
    background var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
  will-change: transform;
}

.social-link .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link .icon svg {
  width: 100%;
  height: 100%;
}

.social-link .arrow {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
  font-size: 0.875rem;
  transition: color var(--ease), transform var(--ease);
}

/* Hover – base */
.social-link:hover {
  transform: translateY(-2px);
}

.social-link:hover .arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Divider between link groups */
.link-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.25rem 0;
}

/* Hover – Instagram */
.social-link[data-platform="instagram"]:hover {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(253, 29, 29, 0.18);
}

/* Hover – LinkedIn */
.social-link[data-platform="linkedin"]:hover {
  background: #0a66c2;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(10, 102, 194, 0.25);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-link:hover {
  color: var(--text);
}

/* ── Impressum Page ─────────────────────────────────────────── */
.legal-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem 2rem;
  gap: 2rem;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--ease), transform var(--ease);
}

.back-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.back-link:hover {
  color: var(--text);
  transform: translateX(-2px);
}

.legal-content {
  max-width: 680px;
  width: 100%;
  animation: fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.legal-content h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
}

.legal-content section {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.legal-content h2 {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.legal-content address,
.legal-content p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  font-style: normal;
}

.legal-content p + p {
  margin-top: 0.75rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--ease);
}

.legal-content a:hover {
  opacity: 0.75;
}

/* ── Animation ──────────────────────────────────────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 380px) {
  .name { font-size: 1.75rem; }
  .avatar-ring { width: 120px; height: 120px; }
}

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .profile { animation: none; }
  .social-link { transition: none; }
}
