/* =========================================================
   Linktree – Premium, dunkel. Baut auf site.css auf
   ========================================================= */

.lt-body {
  --lt-bg: #060d1a;
  --lt-bg-2: #0b1730;
  --lt-glass: rgb(255 255 255 / 0.06);
  --lt-glass-hi: rgb(255 255 255 / 0.1);
  --lt-rim: rgb(255 255 255 / 0.1);
  --lt-text-soft: rgb(255 255 255 / 0.62);
  --lt-gold: #d8b878;

  color-scheme: dark;
  min-height: 100vh;
  background: var(--lt-bg);
  color: #fff;
}

/* Desktop: verschwommenes Portrait als Raum-Hintergrund */
.lt-backdrop {
  position: fixed; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgb(31 63 209 / 0.35), transparent 70%),
    url("/assets/ermin-portrait-hoch.jpg") center / cover no-repeat;
  filter: blur(70px) saturate(140%);
  opacity: 0.4;
}

.lt {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px; margin: 0 auto;
  background: var(--lt-bg);
  overflow: hidden;
}
@media (min-width: 560px) {
  .lt {
    margin: 48px auto;
    border-radius: 40px;
    box-shadow: 0 0 0 1px var(--lt-rim), 0 40px 120px rgb(0 0 0 / 0.55);
  }
}

/* ---------- Hero ---------- */
.lt-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(640px, 92svh);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) 20px 0;
}
.lt-hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  animation: lt-zoom 1.6s var(--ease-out) both;
}
.lt-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(6 13 26 / 0.45) 0%, transparent 18%),
    linear-gradient(180deg, transparent 38%, rgb(6 13 26 / 0.7) 62%, var(--lt-bg) 92%);
}

.lt-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lt-icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  color: #fff; background: rgb(6 13 26 / 0.4); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.lt-icon-btn:hover { background: rgb(255 255 255 / 0.2); }
.lt-icon-btn:active { transform: scale(0.94); }

.lt-hero-text { display: grid; justify-items: center; text-align: center; gap: 10px; padding-bottom: 8px; }
.lt-logo { width: 40px; height: 40px; filter: drop-shadow(0 4px 14px rgb(0 0 0 / 0.45)); }
.lt-eyebrow {
  font: 500 0.72rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lt-gold);
}
.lt-name {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: clamp(2.1rem, 9vw, 2.6rem); line-height: 1.05; letter-spacing: -0.045em;
  text-shadow: 0 6px 30px rgb(0 0 0 / 0.45);
}
.lt-verified { flex: none; color: #4d8bff; filter: drop-shadow(0 2px 6px rgb(77 139 255 / 0.5)); }
.lt-claim { max-width: 34ch; font-size: 1rem; line-height: 1.5; color: rgb(255 255 255 / 0.82); }

.lt-social { display: flex; gap: 10px; margin-top: 8px; }
.lt-social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: #fff; background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}
.lt-social a:hover { background: #fff; color: var(--lt-bg); transform: translateY(-3px); }

/* ---------- Inhalt ---------- */
.lt-content { display: grid; gap: 22px; padding: 18px 20px max(28px, env(safe-area-inset-bottom)); }

.lt-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: 22px; background: var(--lt-glass); box-shadow: inset 0 0 0 1px var(--lt-rim);
}
.lt-stats li { display: grid; gap: 2px; padding: 14px 8px; text-align: center; }
.lt-stats li + li { border-left: 1px solid var(--lt-rim); }
.lt-stats strong { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.lt-stats span { font-size: 0.72rem; line-height: 1.3; color: var(--lt-text-soft); }

.lt-label {
  margin: 6px 4px -2px;
  font: 500 0.7rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: rgb(255 255 255 / 0.45);
}

/* Links */
.lt-links { display: grid; gap: 10px; }
.lt-link {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px 14px 14px; border-radius: 20px; text-decoration: none;
  background: var(--lt-glass); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), inset 0 0 0 1px var(--lt-rim);
  transition: background 0.25s var(--ease-out), transform 0.3s var(--ease-spring), box-shadow 0.25s var(--ease-out);
}
.lt-link:hover { background: var(--lt-glass-hi); transform: translateY(-2px); }
.lt-link:active { transform: scale(0.985); }
.lt-link-icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  color: #cfdaff;
  background: linear-gradient(160deg, rgb(77 120 255 / 0.28), rgb(31 63 209 / 0.12));
  box-shadow: inset 0 0 0 1px rgb(140 170 255 / 0.22);
}
.lt-link-text { flex: 1; display: grid; gap: 1px; min-width: 0; }
.lt-link strong { font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }
.lt-link small { font-size: 0.84rem; color: var(--lt-text-soft); }
.lt-link-arrow { color: rgb(255 255 255 / 0.4); transition: transform 0.3s var(--ease-out), color 0.3s; }
.lt-link:hover .lt-link-arrow { transform: translateX(4px); color: #fff; }

.lt-link-primary {
  padding: 18px 18px 18px 16px; border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #e9eefb);
  color: var(--lt-bg);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 18px 50px rgb(31 63 209 / 0.35);
}
.lt-link-primary:hover { background: linear-gradient(180deg, #ffffff, #f1f4fd); }
.lt-link-primary .lt-link-icon { width: 50px; height: 50px; color: #fff; background: linear-gradient(160deg, var(--blue-2), var(--blue)); box-shadow: 0 6px 16px rgb(0 24 168 / 0.35); }
.lt-link-primary strong { font-size: 1.08rem; }
.lt-link-primary small { color: var(--ink-soft); }
.lt-link-primary .lt-link-arrow { color: var(--blue); }
.lt-link-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.9) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: lt-shine 5s var(--ease-out) 1.2s infinite;
}

/* ---------- Visitenkarte (Wallet-Pass) ---------- */
.lt-pass {
  position: relative; overflow: hidden;
  display: grid; gap: 18px; padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgb(77 120 255 / 0.45), transparent 60%),
    linear-gradient(160deg, #13245a, #0a1430 70%);
  box-shadow: inset 0 0 0 1px rgb(140 170 255 / 0.22), 0 30px 70px rgb(0 0 0 / 0.45);
}
.lt-pass::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.025) 0 2px, transparent 2px 10px);
}
.lt-pass > * { position: relative; }
.lt-pass-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lt-pass-kicker { font: 500 0.7rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lt-gold); }
.lt-pass h2 { margin-top: 4px; font-weight: 600; font-size: 1.4rem; letter-spacing: -0.03em; }
.lt-pass-sub { font-size: 0.85rem; color: var(--lt-text-soft); }
.lt-pass-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85); }

.lt-qr { justify-self: center; padding: 12px; border-radius: 26px; background: #fff; box-shadow: 0 16px 40px rgb(0 0 0 / 0.35); }
.lt-qr canvas { display: block; width: 196px !important; height: 196px !important; }
.wallet-qr-fallback { width: 196px; height: 196px; display: grid; place-items: center; text-align: center; color: var(--ink-soft); font-size: 0.9rem; }
.lt-qr-hint { margin-top: -6px; text-align: center; font-size: 0.82rem; color: var(--lt-text-soft); }

.lt-details { margin: 0; }
.lt-details div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.94rem; }
.lt-details dt { font: 500 0.68rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(255 255 255 / 0.5); line-height: 2.1; }
.lt-details dd { margin: 0; }
.lt-details a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.lt-details dd:not(.mono) { font-size: 0.9rem; }
.lt-details a:hover { color: #cfdaff; }

.lt-pass-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: 16px; border: 0; cursor: pointer;
  font: 600 0.95rem var(--f-sans); letter-spacing: -0.01em; text-decoration: none;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.lt-btn:active { transform: scale(0.97); }
.lt-btn-light { grid-column: 1 / -1; background: #fff; color: var(--lt-bg); }
.lt-btn-light:hover { background: #eef2ff; }
.lt-btn-ghost { background: rgb(255 255 255 / 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); }
.lt-btn-ghost:hover { background: rgb(255 255 255 / 0.14); }

/* ---------- FAQ ---------- */
.lt-faq { display: grid; gap: 8px; }
.lt-faq details {
  border-radius: 18px; background: var(--lt-glass); box-shadow: inset 0 0 0 1px var(--lt-rim);
  transition: background 0.25s var(--ease-out);
}
.lt-faq details[open] { background: var(--lt-glass-hi); }
.lt-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-weight: 500; letter-spacing: -0.01em;
}
.lt-faq summary::-webkit-details-marker { display: none; }
.lt-faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 1.1rem; line-height: 1; color: rgb(255 255 255 / 0.7); background: rgb(255 255 255 / 0.08);
  transition: transform 0.3s var(--ease-out);
}
.lt-faq details[open] summary::after { transform: rotate(45deg); }
.lt-faq details p { padding: 0 18px 16px; font-size: 0.94rem; color: rgb(255 255 255 / 0.72); }

/* ---------- Footer ---------- */
.lt-footer { display: grid; gap: 8px; padding-top: 6px; text-align: center; font-size: 0.78rem; color: rgb(255 255 255 / 0.42); }
.lt-footer nav { display: flex; justify-content: center; gap: 18px; }
.lt-footer a { text-decoration: none; }
.lt-footer a:hover { color: #fff; }

/* ---------- Bewegung ---------- */
.lt-hero-text > *, .lt-content > *, .lt-links > * {
  animation: lt-rise 0.8s var(--ease-out) both;
}
.lt-hero-text > :nth-child(1) { animation-delay: 0.15s; }
.lt-hero-text > :nth-child(2) { animation-delay: 0.22s; }
.lt-hero-text > :nth-child(3) { animation-delay: 0.29s; }
.lt-hero-text > :nth-child(4) { animation-delay: 0.36s; }
.lt-content > :nth-child(1) { animation-delay: 0.42s; }
.lt-links > :nth-child(1) { animation-delay: 0.5s; }
.lt-links > :nth-child(2) { animation-delay: 0.55s; }
.lt-links > :nth-child(3) { animation-delay: 0.6s; }
.lt-links > :nth-child(4) { animation-delay: 0.65s; }
.lt-links > :nth-child(5) { animation-delay: 0.7s; }
.lt-links > :nth-child(n + 6) { animation-delay: 0.75s; }
.lt-content > :nth-child(n + 3) { animation-delay: 0.8s; }

@keyframes lt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lt-zoom { from { transform: scale(1.08); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes lt-shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }

@media (prefers-reduced-motion: reduce) {
  .lt *, .lt *::before, .lt *::after { animation: none !important; transition: none !important; }
}
