/* ==========================================================================
   hannastue – Link in Bio
   Statische Seite, keine externen Ressourcen (DSGVO). Fonts liegen lokal.
   ========================================================================== */

/* ---- Fonts (lokal, SIL Open Font License) ------------------------------ */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/libre-baskerville-700-latin.woff2") format("woff2");
}

/* ---- Design-Tokens (aus der Beacons-Vorlage gemessen) ------------------- */

:root {
  --navy: #0e172c;        /* Buttons, Name, Icons */
  --pink: #fec7d7;        /* Karten-Hintergrund, Button-Text */
  --pink-deep: #f582ae;   /* aktiver Tab, Impressum-Karte */
  --radius-card: 24px;
  --radius-ui: 18px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-display: "Libre Baskerville", Georgia, serif;
}

/* ---- Basis --------------------------------------------------------------- */

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

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

body {
  font-family: var(--font-serif);
  color: var(--navy);
  background-color: #c99a92;
  min-height: 100vh;
}

/* Unscharfes Profilbild als Seitenhintergrund (wie in der Vorlage) */
body::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: -1;
  background: url("../assets/profil.jpg") center / cover no-repeat;
  filter: blur(28px) saturate(1.05);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ---- Karte --------------------------------------------------------------- */

.card {
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--pink);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
}

/* ---- Kopfbereich: Profilbild mit Namens-Overlay -------------------------- */

.profile {
  position: relative;
  max-width: 420px;
  margin: 56px auto 0;
}

.profile img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 26;
  object-fit: cover;
  border-radius: 16px;
}

/* Verlauf am unteren Bildrand in das Kartenrosa */
.profile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(to bottom, transparent, var(--pink) 92%);
  pointer-events: none;
}

.profile h1 {
  position: absolute;
  bottom: 2px;
  width: 100%;
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 11vw, 3rem);
  font-weight: 700;
  color: var(--navy);
}

/* ---- Social-Icon-Zeile ---------------------------------------------------- */

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
}

.socials svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* ---- Tab-Navigation -------------------------------------------------------- */

.tabs {
  display: flex;
  gap: 8px;
  margin: 32px 0 40px;
}

.tabs a {
  display: inline-block;
  padding: 15px 32px;
  border-radius: var(--radius-ui);
  font-size: 1rem;
  text-decoration: none;
  color: var(--navy);
}

.tabs a[aria-current="page"] {
  background: var(--pink-deep);
  color: var(--pink);
}

/* ---- Link-Buttons ----------------------------------------------------------- */

.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.links a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 65px;
  padding: 10px 64px;
  background: var(--navy);
  border-radius: var(--radius-ui);
  color: var(--pink);
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease;
}

.links a:hover,
.links a:focus-visible {
  transform: scale(1.02);
}

.links svg {
  position: absolute;
  left: 18px;
  top: 50%;
  translate: 0 -50%;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.links .title {
  font-size: 1rem;
  font-weight: 500;
}

.links .subtitle {
  font-size: 0.75rem;
}

/* ---- Footer ------------------------------------------------------------------ */

.footer {
  margin: 56px 0 36px;
  text-align: center;
  font-size: 0.85rem;
}

.footer a {
  color: var(--navy);
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  opacity: 1;
}

/* ---- Impressum / Datenschutz --------------------------------------------------- */

.legal-card {
  background: var(--pink-deep);
  border-radius: var(--radius-ui);
  padding: 28px 24px;
  color: var(--pink);
  overflow-wrap: break-word;
}

.legal-card + .legal-card {
  margin-top: 20px;
}

.legal-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 24px 0 10px;
}

.legal-card p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.legal-card a {
  color: var(--pink);
}

/* Klar gekennzeichnete Platzhalter – vor Veröffentlichung ersetzen! */
.platzhalter {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed var(--pink);
  border-radius: 4px;
  background: rgba(14, 23, 44, 0.25);
  font-style: italic;
}

.back-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--navy);
  text-underline-offset: 3px;
}

/* ---- Desktop ---------------------------------------------------------------------- */

@media (min-width: 768px) {
  .card {
    min-height: calc(100vh - 128px);
    margin: 64px auto;
  }
}
