/* Startseite: Lennys Avatar aus Lichtpunkten (assets/home-swarm.js), Text links */
.page:has(.swarm-home) { overflow-x: clip; }
.swarm-home { position: relative; display: grid; align-items: center; min-height: min(72dvh, 660px); }
/* Leinwand reicht vom Textende bis an den rechten Bildschirmrand, volle Höhe */
.swarm-cv { position: absolute; z-index: 0; top: 50%; left: 42%; width: calc(58% + (100vw - 100%) / 2); height: 100dvh; transform: translateY(-50%); pointer-events: none; }
.swarm-glow { position: absolute; z-index: 0; top: 50%; left: calc(42% + (58% + (100vw - 100%) / 2) / 2); width: 70vh; height: 70vh; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(45, 104, 196, .2), transparent 70%); pointer-events: none; }
.swarm-copy { position: relative; z-index: 1; max-width: min(470px, 44%); }
.swarm-copy .kick { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .78); font-size: 12px; }
.swarm-copy .kick::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8db8ff; box-shadow: 0 0 8px rgba(141, 184, 255, .8); }
.swarm-copy h1 { margin-top: 18px; font-size: clamp(42px, 5.2vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.swarm-copy .sub { margin-top: 18px; max-width: 30ch; color: rgba(255, 255, 255, .8); font-size: 17px; line-height: 1.6; }
.swarm-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.swarm-links a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .03); color: #dfe3ea; font-size: 12px; transition: border-color .2s, background .2s, color .2s; }
.swarm-links a:hover { border-color: rgba(141, 184, 255, .45); background: rgba(45, 104, 196, .14); color: #fff; }
.swarm-links svg { width: 15px; height: 15px; fill: currentColor; }

/* Schmal (Handy, Tablet hochkant): Avatar oben über die ganze Breite, Text darunter */
@media (max-width: 1023px) {
  .swarm-home { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .swarm-cv { position: relative; top: auto; left: auto; transform: none; width: 100vw; height: min(46dvh, 520px); margin-left: calc((100% - 100vw) / 2); }
  .swarm-glow { top: 23dvh; left: 50%; width: 46dvh; height: 46dvh; }
  .swarm-copy { max-width: 470px; }
  .swarm-copy h1 { font-size: 40px; }
  .swarm-copy .sub { font-size: 15px; }
}
