:root {
  --bg: #0b0e12;
  --surface: #141a21;
  --surface-2: #1b232c;
  --line: #26313d;
  --text: #f2f5f8;
  --muted: #9aa7b4;
  --accent: #8ea8bf;
  --accent-strong: #5f7f9b;
  --accent-deep: #3a536b;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.card {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Titelbild */
.hero { position: relative; }

.hero-image {
  height: 240px;
  background:
    linear-gradient(180deg, rgba(11,14,18,0) 35%, var(--bg) 100%),
    linear-gradient(115deg, transparent 50%, rgba(190,210,228,.10) 50.5%, rgba(190,210,228,.10) 58%, transparent 58.5%),
    radial-gradient(120% 90% at 75% 0%, #3d556c 0%, #1a2632 45%, #0b0e12 100%);
  background-size: cover;
  background-position: center;
}

/* Sobald ein echtes Titelbild da ist: public/assets/titelbild.jpg ablegen
   und die Klasse "has-photo" an .hero-image setzen. */
.hero-image.has-photo {
  position: relative;
  height: auto;
  aspect-ratio: 4 / 3;
  background: url("/assets/titelbild.jpg") center / cover;
}

/* Verlauf als eigene Schicht, die unten 2px übersteht: keine Kante durch halbe Pixel */
.hero-image.has-photo::after {
  content: "";
  position: absolute;
  inset: 0 0 -2px 0;
  background: linear-gradient(180deg, rgba(11,14,18,.15) 0%, rgba(11,14,18,0) 25%, rgba(11,14,18,0) 45%, rgba(11,14,18,.7) 75%, rgba(11,14,18,.95) 88%, var(--bg) 97%);
}

.avatar {
  position: absolute;
  left: 50%;
  bottom: -56px;
  transform: translateX(-50%);
  width: 116px;
  height: 116px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, #c9d6e2, var(--accent-strong), var(--accent-deep), #c9d6e2);
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}

.avatar span,
.avatar img {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: var(--surface-2);
  object-fit: cover;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -.02em;
}

/* Name und Text */
.intro {
  text-align: center;
  padding: 72px 24px 8px;
}

h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.claim {
  margin: 14px auto 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* Icons */
.socials {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .15s, transform .15s;
}

.socials a:hover,
.socials a:focus-visible { border-color: var(--accent); transform: translateY(-2px); }

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg .fill { fill: currentColor; stroke: none; }

/* Knöpfe */
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 20px 0;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-radius: var(--radius);
  background: rgba(142,168,191,.10);
  border: 1px solid rgba(142,168,191,.28);
  color: #c9d6e2;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .15s, border-color .15s, color .15s;
}

.cta svg { stroke-width: 2; width: 18px; height: 18px; }

.cta:hover,
.cta:focus-visible { background: rgba(142,168,191,.18); border-color: rgba(142,168,191,.5); color: #fff; }

.cta:active { background: rgba(142,168,191,.24); }


a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Footer */
footer {
  margin-top: auto;
  padding: 40px 20px 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

footer a:hover { color: var(--text); }

/* Rechtstexte */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 22px 0;
  line-height: 1.6;
}

.legal .back { color: var(--muted); font-size: 14px; }
.legal .back:hover { color: var(--text); }
.legal h1 { font-size: 26px; margin: 24px 0 20px; }
.legal h2 { font-size: 17px; margin: 28px 0 8px; }
.legal p, .legal li { color: #d4d4d4; font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .todo { background: #3a2a10; color: #ffd58a; padding: 0 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
