/* Aussehen für alle Seiten: Link-Seite, Impressum und Datenschutz */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Ganz oben und unten laufen Korn und Wolken in die Grundfarbe aus. Safari füllt den Platz
     über dem Seitenanfang und unter dem Seitenende einfarbig – so gibt es dort keine Kante. */
  --rand-auslaufen: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.000) 0px,
    rgba(0, 0, 0, 0.028) 20px,
    rgba(0, 0, 0, 0.104) 40px,
    rgba(0, 0, 0, 0.216) 60px,
    rgba(0, 0, 0, 0.352) 80px,
    rgba(0, 0, 0, 0.500) 100px,
    rgba(0, 0, 0, 0.648) 120px,
    rgba(0, 0, 0, 0.784) 140px,
    rgba(0, 0, 0, 0.896) 160px,
    rgba(0, 0, 0, 0.972) 180px,
    rgba(0, 0, 0, 1.000) 200px,
    rgba(0, 0, 0, 1.000) calc(100% - 220px),
    rgba(0, 0, 0, 0.972) calc(100% - 198px),
    rgba(0, 0, 0, 0.896) calc(100% - 176px),
    rgba(0, 0, 0, 0.784) calc(100% - 154px),
    rgba(0, 0, 0, 0.648) calc(100% - 132px),
    rgba(0, 0, 0, 0.500) calc(100% - 110px),
    rgba(0, 0, 0, 0.352) calc(100% - 88px),
    rgba(0, 0, 0, 0.216) calc(100% - 66px),
    rgba(0, 0, 0, 0.104) calc(100% - 44px),
    rgba(0, 0, 0, 0.028) calc(100% - 22px),
    rgba(0, 0, 0, 0.000) 100%);
  --hintergrund: #070b14;
  --leise: rgba(255, 255, 255, 0.62);
  --sehr-leise: rgba(255, 255, 255, 0.42);
  --rand: rgba(255, 255, 255, 0.10);
  --rand-hell: rgba(255, 255, 255, 0.22);
}

/* Grundfarbe auch hinter Safaris Leisten und beim Über-den-Rand-Ziehen */
html { background-color: var(--hintergrund); }

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  background-color: var(--hintergrund);
  -webkit-font-smoothing: antialiased;
}

/* Feines Korn über dem Hintergrund – wirkt edler als eine glatte Fläche.
   Korn und Farbwolken laufen mit der Seite mit (nicht „fixed“): Safari auf dem iPhone
   malt festklebende Flächen sonst als harte Balken unter Uhrzeit und Adressleiste. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  -webkit-mask-image: var(--rand-auslaufen);
  mask-image: var(--rand-auslaufen);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>");
}

/* Farbwolken im Hintergrund, die ganz langsam wandern */
.wolken {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: var(--rand-auslaufen);
  mask-image: var(--rand-auslaufen);
}

.wolken::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
}

.wolken span {
  position: absolute;
  width: 85vmax;
  height: 85vmax;
  border-radius: 50%;
  will-change: translate, scale;
}

.wolken span:nth-child(1) { top: -38vmax; left: -30vmax; background: radial-gradient(circle, rgba(30, 100, 255, 0.5), transparent 62%); animation: treiben-1 20s ease-in-out infinite, atmen 13s ease-in-out -2s infinite; }
.wolken span:nth-child(2) { top: -25vmax; right: -40vmax; background: radial-gradient(circle, rgba(20, 220, 195, 0.36), transparent 62%); animation: treiben-2 24s ease-in-out -7s infinite, atmen 17s ease-in-out -11s infinite; }
.wolken span:nth-child(3) { bottom: -45vmax; left: -20vmax; background: radial-gradient(circle, rgba(40, 80, 230, 0.34), transparent 62%); animation: treiben-3 28s ease-in-out -15s infinite, atmen 11s ease-in-out -5s infinite; }
.wolken span:nth-child(4) { bottom: -35vmax; right: -35vmax; background: radial-gradient(circle, rgba(0, 160, 255, 0.26), transparent 62%); animation: treiben-4 32s ease-in-out -4s infinite, atmen 19s ease-in-out -14s infinite; }

/* Jede Wolke zieht in einem weichen Bogen und kommt wieder an ihren Platz zurück */
@keyframes treiben-1 {
  0%, 100% { translate: 0 0; }
  33% { translate: 22vmax 10vmax; }
  66% { translate: 8vmax 24vmax; }
}
@keyframes treiben-2 {
  0%, 100% { translate: 0 0; }
  33% { translate: -18vmax 16vmax; }
  66% { translate: -28vmax 4vmax; }
}
@keyframes treiben-3 {
  0%, 100% { translate: 0 0; }
  50% { translate: 20vmax -24vmax; }
}
@keyframes treiben-4 {
  0%, 100% { translate: 0 0; }
  40% { translate: -20vmax -14vmax; }
  75% { translate: -6vmax -26vmax; }
}

/* Größer und kleiner werden – jede Wolke in ihrem eigenen Rhythmus */
@keyframes atmen {
  0%, 100% { scale: 1; }
  30% { scale: 1.2; }
  65% { scale: 0.9; }
}

main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: calc(52px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Kopf: Profilbild, Name, Symbole ===== */

.profil {
  position: relative;
  isolation: isolate;
  padding: 4px;
  border-radius: 50%;
  box-shadow: 0 20px 70px -18px rgba(20, 120, 255, 0.7);
}

.profil::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(#1e5bff, #19c3ff, #2ee6cc, #a8f5ec, #19c3ff, #1e5bff);
  animation: drehen 12s linear infinite;
}

@keyframes drehen { to { transform: rotate(360deg); } }

.profilbild {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--hintergrund);
}

h1 {
  margin-top: 20px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.handle {
  margin-top: 2px;
  font-size: 15px;
  color: var(--leise);
}

.bio {
  margin-top: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.icons a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rand);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.icons a:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--rand-hell); transform: translateY(-2px); }

.icons svg { width: 20px; height: 20px; fill: currentColor; }

/* ===== Überschriften mit feinen Linien links und rechts ===== */

.abschnitt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sehr-leise);
}

.abschnitt::before,
.abschnitt::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16));
}

.abschnitt::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent); }

/* ===== Link-Karten ===== */

.links {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.links li { position: relative; }

.karte {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 12px 18px 12px 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--rand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px -18px rgba(0, 0, 0, 0.9);
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.links li:hover .karte {
  transform: translateY(-2px);
  border-color: var(--rand-hell);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 36px -16px rgba(255, 255, 255, 0.45);
}

.karte:active { transform: scale(0.985); }
.karte:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Das farbige Kästchen mit dem Logo */
.logo {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--marke, #333);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 16px -8px rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo svg { width: 26px; height: 26px; fill: currentColor; }
.logo img { display: block; width: 80%; height: auto; }

.logo-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.logo-movember svg { width: 36px; height: 36px; }
.logo-tiktok svg { filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55); }

.text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.titel {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.unter {
  font-size: 13px;
  color: var(--leise);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  line-height: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #fff;
}

.pfeil {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s, stroke 0.2s;
}

.links li:hover .pfeil { transform: translateX(3px); stroke: #fff; }

/* „Kopieren“-Knopf bei den Rabattcodes (erscheint nur, wenn der Browser das kann) */
.kopieren {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  min-width: 96px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--rand-hell);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.kopieren:hover { background: rgba(255, 255, 255, 0.18); }
.links li:hover .kopieren { transform: translateY(calc(-50% - 2px)); }
.kopieren.kopiert { background: #1f9d55; border-color: transparent; }

.links li:has(.kopieren:not([hidden])) .karte { padding-right: 124px; }
.links li:has(.kopieren:not([hidden])) .pfeil { display: none; }

/* Sanftes Einblenden beim Öffnen der Seite */
@media (prefers-reduced-motion: no-preference) {
  .profil, main > h1, .handle, .bio, .icons, .abschnitt, .links li, .rechtstext { animation: rein 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  main > h1 { animation-delay: 0.04s; }
  .handle, .bio { animation-delay: 0.08s; }
  .icons { animation-delay: 0.12s; }
  .abschnitt { animation-delay: 0.16s; }
  .links li { animation-delay: calc(var(--basis, 0.2s) + var(--n, 0) * 60ms); }
  ul.links:nth-of-type(2) { --basis: 0.35s; }
  ul.links:nth-of-type(3) { --basis: 0.5s; }
  .links li:nth-child(2) { --n: 1; }
  .links li:nth-child(3) { --n: 2; }
  .links li:nth-child(4) { --n: 3; }
  .links li:nth-child(5) { --n: 4; }
  .links li:nth-child(6) { --n: 5; }
  .links li:nth-child(n+7) { --n: 6; }
}

@keyframes rein { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  .wolken span, .profil::before { animation: none; }
}

footer {
  margin-top: 44px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: var(--sehr-leise);
}

footer a { color: inherit; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ===== Impressum und Datenschutz (eigene Seiten) ===== */

.rechtstext {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.rechtstext h1 { margin: 0 0 16px; font-size: 26px; color: #fff; }
.rechtstext h2 { font-size: 15px; color: #fff; margin: 22px 0 6px; }
.rechtstext p, .rechtstext ul { margin-bottom: 10px; }
.rechtstext ul { padding-left: 20px; }
.rechtstext a { color: #fff; }
.rechtstext .zurueck { display: inline-block; margin-bottom: 20px; color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.rechtstext .zurueck:hover { color: #fff; }
