:root {
  --text: #e8e8ea;
  --muted: #b7b7bd;
  --ring: #d6aa78;
}

html,
body {
  height: 100%;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font: clamp(16px, 0.95rem + 0.25vw, 18px)/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background-image: url("bck.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
}

.page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 1.25rem;
  position: relative;
  z-index: 1;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  /* leicht kraeftiger fuer helle Bildzonen */
  background: radial-gradient(60% 40% at 50% 30%, rgba(0, 0, 0, .22), rgba(0, 0, 0, .48));
  z-index: 0;
  pointer-events: none;
}

.card {
  background: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 720px;
  width: min(100%, 720px);
  text-align: center;

  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.avatar {
  display: block;
  width: 144px;
  height: 144px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.header h1 {
  margin: 0.4rem 0 0.2rem;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: 0.1px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 500;
}

.about {
  margin-top: 1.5rem;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  --padY: 0.7rem;
  --padX: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--padY) var(--padX);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;

  color: #141007;
  background: linear-gradient(180deg, #c39265, #855f3f);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;

  min-height: 44px;
  min-width: 44px;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 0 6px rgba(214, 170, 120, .35);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(214, 170, 120, 0.25),
    0 0 0 6px rgba(214, 170, 120, 0.40);
}

footer.legal {
  text-align: center;
  padding: 2.5rem 1rem 4rem;
  font-size: 0.75rem;
  color: #d6aa78;
  z-index: 0;
}

footer.legal a {
  color: #cfa46e;
  text-decoration: underline;
}

footer.legal a:hover {
  color: #e5be91;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

footer.legal a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  text-decoration: none;
}

@media (max-width: 600px) {
  body {
    background-image: image-set(url("bck-1200.webp") type("image/webp") 1x);
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1.25rem;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 340px) {
  .card {
    padding: .75rem;
  }

  .links {
    gap: .5rem;
  }

  .btn {
    --padY: .6rem;
    --padX: .8rem;
    font-size: .95rem;
  }

  .about {
    margin-top: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .page {
    padding: 0;
  }

  .card {
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: none;
    margin: 0;
    padding: 16mm;
  }

  .avatar,
  .btn,
  .links {
    display: none;
  }
}