*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
:root { --bg: #0B0A0C; --text: #FCFCFC; --muted: rgba(252, 252, 252, .68); --line: rgba(252, 252, 252, .12); --glass: rgba(20, 18, 22, .55); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* Unscharfes eigenes Foto als Stimmung hinter der Seite, wie bei link.me */
.ambient {
  position: fixed; inset: -60px; z-index: 0;
  background: var(--ambient) center / cover no-repeat;
  filter: blur(48px) saturate(1.2);
  opacity: .45;
  transform: translateZ(0);
}
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 12, .35) 0%, rgba(11, 10, 12, .85) 55%, var(--bg) 100%);
}
.page {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px; margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center;
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } }
h1, .gate-title, .cta, .feature-label { font-family: "Poppins", "Inter", sans-serif; }

/* Hero: Foto zuerst, Name und Button direkt darauf */
.hero {
  position: relative; width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(100dvh - 120px);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, .88) 100%); }
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 16px; text-align: center; }
h1 {
  margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15;
  display: inline-flex; align-items: center; gap: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.badge { width: 20px; height: 20px; flex: none; filter: drop-shadow(0 0 6px var(--accent)); }
.handle { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cta {
  margin-top: 14px; width: 100%; min-height: 54px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 22px; border: 0; border-radius: 16px;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -6px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .12s, box-shadow .12s;
}
.cta:active { transform: scale(.97); }
.cta svg { width: 18px; height: 18px; flex: none; }
.hero .cta { animation: pulse 2.8s ease-in-out 1.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 30px -6px var(--accent), inset 0 1px 0 rgba(255,255,255,.35); } 50% { box-shadow: 0 10px 42px 0 var(--accent), inset 0 1px 0 rgba(255,255,255,.35); } }
@media (prefers-reduced-motion: reduce) { .hero .cta { animation: none; } }

.bio { margin: 20px 4px 0; font-size: 15px; line-height: 1.55; text-align: center; color: var(--muted); }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass); color: var(--text);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.socials a:active { transform: scale(.92); }
.socials svg { width: 20px; height: 20px; }

/* Galerie als Wisch-Leiste */
.gallery {
  width: calc(100% + 32px); margin: 24px -16px 0; padding: 0 16px 4px;
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 62%; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; scroll-snap-align: center; box-shadow: 0 0 0 1px var(--line); }
.shot:only-child { flex-basis: 100%; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Link-Seite */
.mini { width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px 4px 0; }
.mini h1 { font-size: 20px; text-shadow: none; }
.mini .badge { width: 17px; height: 17px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent), 0 0 24px var(--accent); }
.gate {
  width: 100%; margin-top: 22px; padding: 26px 20px 20px; text-align: center;
  background: var(--glass); border: 1px solid var(--line); border-radius: 24px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.gate-title { margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.gate-text { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.gate-no { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted); }
.links { width: 100%; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.feature { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.8) 100%); }
.feature-label {
  position: absolute; left: 14px; right: 14px; bottom: 14px; min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 14px; background: var(--accent); color: var(--on-accent);
  font-size: 16px; font-weight: 600;
  box-shadow: 0 10px 30px -6px var(--accent);
}
.feature-label svg { width: 18px; height: 18px; }
.link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 56px; padding: 0 18px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line); color: var(--text);
  font-weight: 600; font-size: 15px; text-decoration: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.link svg { width: 18px; height: 18px; opacity: .6; }
.link.missing { opacity: .5; border-style: dashed; justify-content: center; }
[hidden] { display: none !important; }

/* Startseite: zentrierte Visitenkarte wie annalore.com */
.page.center { min-height: 100vh; min-height: 100dvh; justify-content: center; text-align: center; padding-top: max(32px, env(safe-area-inset-top)); }
.avatar.big { width: 128px; height: 128px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 0 40px var(--accent); }
.id { margin-top: 18px; }
.id h1 { font-size: 24px; text-shadow: none; }
.front .bio { margin-top: 12px; }
.front .socials { margin-top: 18px; }
.front .cta { margin-top: 26px; animation: pulse 2.8s ease-in-out 1.2s infinite; }
@media (prefers-reduced-motion: reduce) { .front .cta { animation: none; } }
.front .ambient { opacity: .35; }
.links .hero { margin-bottom: 2px; }
.links .gallery { margin-top: 12px; }
