:root {
  --bg: #f4f2ee;
  --glow-1: rgba(64, 104, 150, 0.16);
  --glow-2: rgba(92, 132, 120, 0.13);
  --card: rgba(255, 255, 255, 0.78);
  --card-border: rgba(28, 28, 28, 0.08);
  --text: #1b1d21;
  --muted: #62656b;
  --line: rgba(28, 28, 28, 0.1);
  --accent: #2c5282;
  --accent-soft: rgba(44, 82, 130, 0.08);
  --shadow: 0 1px 2px rgba(20, 24, 32, 0.04), 0 12px 40px -12px rgba(20, 24, 32, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --glow-1: rgba(84, 128, 186, 0.18);
    --glow-2: rgba(92, 150, 132, 0.12);
    --card: rgba(26, 29, 35, 0.72);
    --card-border: rgba(255, 255, 255, 0.07);
    --text: #eceef1;
    --muted: #9a9ea6;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #8fb4e3;
    --accent-soft: rgba(143, 180, 227, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 48px -16px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 2rem;
  background: var(--bg);
  color: var(--text);
  font: 16.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hintergrund: zwei weiche Lichtflecken, die langsam wandern */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
body::before {
  top: -30vmax;
  left: -20vmax;
  background: radial-gradient(circle, var(--glow-1), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
body::after {
  bottom: -35vmax;
  right: -25vmax;
  background: radial-gradient(circle, var(--glow-2), transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-6vmax, -8vmax) scale(1.05); } }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Karte */
.card {
  position: relative;
  width: 100%;
  max-width: 36rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 2.75rem 2.5rem 2.25rem;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  opacity: 0.55;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.wordmark {
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--muted);
  padding-left: 0.32em;
}
.monogram {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 1.15rem/1 var(--serif);
  letter-spacing: 0.04em;
}

h1 {
  margin: 0;
  font: 600 2.4rem/1.1 var(--serif);
  letter-spacing: -0.015em;
}
.role {
  margin: 0.55rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.cred {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--accent);
}
.cred svg { flex: none; stroke: currentColor; }
.intro { margin: 0 0 1.25rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.tags li {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
}

.divider { height: 1px; background: var(--line); border: 0; margin: 0 0 1.5rem; }

.contact {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.contact li { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  stroke: var(--muted);
}
.contact address { font-style: normal; }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.1rem;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 1rem; height: 1rem; stroke: currentColor; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--accent-soft); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent); box-shadow: 0 6px 18px -6px var(--accent); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #111317; } }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

footer {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}
footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.2rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }

/* Einblenden beim Laden, gestaffelt */
.reveal { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
.reveal:nth-child(5) { animation-delay: 0.24s; }
.reveal:nth-child(6) { animation-delay: 0.3s; }
.reveal:nth-child(7) { animation-delay: 0.36s; }
.reveal:nth-child(8) { animation-delay: 0.42s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card.reveal { animation-duration: 0.9s; }

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

/* Rechtstexte */
.text { max-width: 42rem; }
.text h1 { font-size: 1.9rem; margin-bottom: 1.5rem; }
.text h2 { font: 600 1.02rem/1.4 var(--sans); margin: 1.75rem 0 0.4rem; }
.text p { margin: 0 0 0.75rem; }

@media (max-width: 480px) {
  body { padding-top: 1.5rem; }
  .card { padding: 2rem 1.35rem 1.75rem; border-radius: 14px; }
  h1 { font-size: 2rem; }
  .btn { flex: 1 1 auto; justify-content: center; }
}
