:root {
  --bg: #0b0d10;
  --bg-soft: #14181d;
  --card: #14181d;
  --text: #e8eaed;
  --muted: #9aa4af;
  --border: #262c33;
  --accent: #4f8cff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 30px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --text: #1a1d21;
  --muted: #5b6570;
  --border: #e4e7eb;
  --accent: #2563eb;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  background: radial-gradient(1200px 600px at 50% -10%, var(--bg-soft), var(--bg));
  color: var(--text);
  font-family:
    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 30rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  box-shadow: var(--shadow);
}

.name {
  margin: 0.25rem 0 0.15rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.tagline {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
  outline: none;
}

.link-icon {
  font-size: 1.15rem;
  width: 1.5rem;
  text-align: center;
  flex: none;
}

.link-label {
  flex: 1;
  text-align: center;
  margin-right: 1.5rem; /* balances the icon so the label stays centered */
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer nav {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.35rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.footer p {
  margin: 0;
}

/* Content pages (Impressum, Datenschutz, 404) reuse .card + .prose. */
.card.prose {
  text-align: left;
  max-width: 42rem;
}

.prose h1 {
  margin-top: 0;
  font-size: 1.5rem;
}

.prose h2 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}

.prose a {
  color: var(--accent);
}

.prose .back {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--muted);
  text-decoration: none;
}

.prose .back:hover {
  color: var(--text);
}

.prose .notice {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 0;
}

.prose .todo {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}

.theme-toggle:hover {
  transform: rotate(180deg);
}

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