/* Chris Rawk — chris-rawk.com */
:root {
  --bg: #07070d;
  --surface: #0b0c13;
  --card-top: #101120;
  --card-bottom: #0b0c14;
  --border: #262834;
  --text: #eceef2;
  --text-mid: #c9ccd6;
  --text-dim: #8b8f9c;
  --text-faint: #6b6f7c;
  --text-footer: #565a66;
  --cyan: oklch(0.85 0.14 195);
  --violet: oklch(0.75 0.16 310);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { color: var(--text); font-family: 'Space Grotesk', sans-serif; }
a { color: var(--cyan); text-decoration: none; }
::selection { background: var(--violet); color: var(--bg); }

.page { min-height: 100vh; position: relative; overflow: hidden; display: flex; justify-content: center; }
.bg { position: absolute; inset: 0; pointer-events: none; }
.bg-glow {
  position: absolute; top: -260px; left: 50%; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.75 0.16 310 / 0.14), oklch(0.85 0.14 195 / 0.06) 45%, transparent 70%);
  filter: blur(8px);
  animation: glowDrift 16s ease-in-out infinite;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(#ffffff07 1px, transparent 1px), linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black, transparent 80%);
}
@keyframes glowDrift {
  0%, 100% { transform: translate(-50%, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, 30px) scale(1.15); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

main { position: relative; z-index: 1; width: 100%; max-width: 560px; padding: clamp(32px, 6vw, 64px) 24px 48px; display: flex; flex-direction: column; align-items: center; }

.avatar-wrap { position: relative; margin-bottom: 22px; }
.avatar-ring {
  position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--cyan));
}
.avatar {
  position: relative; width: 112px; height: 112px; border-radius: 50%;
  border: 4px solid var(--bg); overflow: hidden; background: #0d0e16; display: block;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1 { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: clamp(26px, 5vw, 34px); margin: 0 0 10px; letter-spacing: -0.01em; text-align: center; }
.tagline { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.18em; color: var(--violet); text-align: center; margin-bottom: 14px; }
.status { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--cyan); margin-bottom: 36px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 2.4s ease-in-out infinite; }

.links { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-bottom: 36px; }
.link-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border: 1px solid var(--border); border-radius: 14px;
  background: linear-gradient(160deg, var(--card-top), var(--card-bottom));
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.link-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 34px -10px oklch(0.85 0.14 195 / 0.4);
  color: var(--text);
}
.link-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em;
  border: 1px solid currentColor; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}
.link-tag.cyan { color: var(--cyan); }
.link-tag.violet { color: var(--violet); }
.link-body { flex: 1; min-width: 0; }
.link-name { display: block; font-weight: 600; font-size: 16px; }
.link-desc { display: block; font-size: 13px; color: var(--text-dim); line-height: 1.4; }
.link-arrow { color: var(--cyan); font-size: 18px; }

.divider { display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 22px; }
.divider-line-l { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #2a2c38); }
.divider-line-r { flex: 1; height: 1px; background: linear-gradient(90deg, #2a2c38, transparent); }
.divider-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--text-faint); }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.social-pill {
  display: flex; align-items: center; gap: 8px; padding: 11px 18px;
  border: 1px solid var(--border); border-radius: 100px;
  color: var(--text-mid); font-size: 14px; font-weight: 500; background: var(--surface);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-pill:hover { border-color: var(--violet); color: oklch(0.85 0.16 310); background: oklch(0.75 0.16 310 / 0.08); }

footer { display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-footer); }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--cyan); }

/* ---- Ergänzungen für die dynamische Version ---- */
.avatar-initial { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 44px; color: var(--cyan); }
a.avatar { cursor: pointer; }

.link-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.link-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.link-image { display: block; width: 100%; aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface); }
.link-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.link-card:hover .link-image img { transform: scale(1.03); }
.link-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.link-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-tag.violet { color: var(--violet); }
.link-tag.cyan { color: var(--cyan); }
.link-tag.white { color: var(--text-mid); }

.social-icon { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer-sep { color: var(--text-footer); }

.content { width: 100%; margin-bottom: 40px; color: var(--text-mid); font-size: 15px; line-height: 1.65; }
.content h2 { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 20px; color: var(--text); margin: 8px 0 20px; }
.content h3 { font-size: 16px; color: var(--text); margin: 24px 0 8px; }
.content p { margin: 0 0 14px; }
.content a { color: var(--cyan); }
.content a:hover { text-decoration: underline; }
.content ul, .content ol { padding-left: 22px; }
.content .back { margin-top: 28px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
