:root {
  --navy: #19274e;
  --navy-glow: #26386b;
  --navy-deep: #0e1734;
  --gold: #c7a776;
  --gold-light: #d5c8ae;
  --line: rgba(199, 167, 118, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background:
    radial-gradient(ellipse 75% 65% at 50% 34%, var(--navy-glow) 0%, var(--navy) 46%, var(--navy-deep) 100%);
  color: var(--gold);
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  min-height: 100vh;
  min-height: 100svh; /* iOS: rechnet die Browser-Toolbars nicht mit ein */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3vh 6vw;
  /* Safe-Area: hält Inhalt oberhalb von Notch / Home-Indicator */
  padding-top: max(3vh, env(safe-area-inset-top));
  padding-bottom: max(3vh, env(safe-area-inset-bottom));
}

/* ---------- Name ---------- */

.name {
  margin: 0 0 clamp(-0.4rem, -1.4vh, 0rem);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.4svh, 3.6rem);
  letter-spacing: 0.07em;
  line-height: 1.1;
  color: var(--gold-light);
  position: relative;
  z-index: 2;
}

/* ---------- Portrait (color, fluid transparent fade) ---------- */

.portrait {
  width: min(clamp(240px, 42svh, 400px), 82vw);
  aspect-ratio: 3 / 4;
  margin-top: clamp(-0.5rem, -1.5vh, 0rem);
  position: relative;
  z-index: 1;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, rgba(0,0,0,0.75) 66%, rgba(0,0,0,0.25) 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 42%, rgba(0,0,0,0.75) 66%, rgba(0,0,0,0.25) 86%, transparent 100%);
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: clamp(0.2rem, 1vh, 1rem);
}

.mail-link {
  color: var(--gold);
  text-decoration: none;
  font-size: clamp(1.2rem, 2.7vh, 1.55rem);
  letter-spacing: 0.05em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mail-link:hover,
.mail-link:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold-light);
  background: rgba(199, 167, 118, 0.1);
}

.copy-btn .icon {
  width: 16px;
  height: 16px;
}

.copy-toast {
  position: absolute;
  left: 50%;
  bottom: -1.7rem;
  transform: translate(-50%, -4px);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
