/* henrikfrey.de */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --grund: oklch(0.20 0.008 55);
  --text: oklch(0.97 0.004 70);
  --gedaempft: oklch(0.73 0.012 60);
  --akzent: oklch(0.71 0.135 48);
  --linie: oklch(0.33 0.012 55);

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --aus: cubic-bezier(0.165, 0.84, 0.44, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--grund);
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--akzent); }

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Startseite ---------- */

.seite {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.bildseite {
  overflow: hidden;
  background: var(--grund);
}

.bildseite img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Beim Beschneiden bleibt oben Luft ueber dem Kopf, weggenommen
     wird unten. Sonst schneidet eine breite Spalte die Haare an. */
  object-position: 50% 16%;
}

.textseite {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 7vw, 3rem) clamp(1.5rem, 6vw, 2.5rem) clamp(2rem, 6vw, 3rem);
  gap: clamp(2rem, 6vw, 3rem);
}

.inhalt {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2rem);
}

.name {
  font-size: clamp(3.2rem, 11vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.zeilen {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.zeilen p { margin: 0; }

.rolle {
  font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.0625rem);
}

.rolle a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
  padding-bottom: 1px;
  transition: border-color 0.25s var(--aus), color 0.25s var(--aus);
}
.rolle a:hover { color: var(--akzent); border-bottom-color: var(--akzent); }

.werdegang {
  color: var(--gedaempft);
  font-size: 0.9375rem;
}

.haltung {
  font-size: clamp(1.1875rem, 3.2vw, 1.4375rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 30ch;
  border-top: 1px solid var(--linie);
  padding-top: clamp(1.25rem, 3.5vw, 1.75rem);
  text-wrap: pretty;
}

.verweise {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.verweise a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding: 0.4rem 0;
  transition: color 0.25s var(--aus);
}
.verweise a:hover { color: var(--akzent); }

.verweise svg {
  width: 1.0625rem;
  height: 1.0625rem;
  flex: none;
  transition: transform 0.3s var(--aus);
}
.verweise a:hover svg { transform: translateY(-2px); }

.fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--gedaempft);
  margin-top: 0.25rem;
}
.fuss a {
  color: var(--gedaempft);
  text-decoration: none;
  transition: color 0.25s var(--aus);
}
.fuss a:hover { color: var(--akzent); }

@media (min-width: 60rem) {
  .seite {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: 100svh;
  }
  .bildseite { height: 100svh; }
  .textseite {
    display: grid;
    grid-template-rows: 1fr auto;
    align-content: center;
    padding-inline: clamp(3rem, 5.5vw, 5.5rem);
    gap: 0;
  }
  /* Der Textblock steht mittig, die Fusszeile am unteren Rand. */
  .inhalt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.75rem, 2.5vw, 2.25rem);
  }
  .fuss { margin-top: 0; }
}

/* ---------- Seitenaufbau ---------- */

@media (prefers-reduced-motion: no-preference) {
  .bildseite img {
    animation: ruhe 1.1s var(--aus) backwards;
  }
  .inhalt > *,
  .fuss {
    animation: auftauchen 0.7s var(--aus) backwards;
  }
  .inhalt > *:nth-child(1) { animation-delay: 0.10s; }
  .inhalt > *:nth-child(2) { animation-delay: 0.18s; }
  .inhalt > *:nth-child(3) { animation-delay: 0.26s; }
  .inhalt > *:nth-child(4) { animation-delay: 0.34s; }
  .fuss { animation-delay: 0.42s; }

  @keyframes ruhe {
    from { transform: scale(1.04); opacity: 0.6; }
    to   { transform: none; opacity: 1; }
  }
  @keyframes auftauchen {
    from { opacity: 0; transform: translateY(0.6rem); }
    to   { opacity: 1; transform: none; }
  }
}

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

.dokument {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6rem) clamp(1.5rem, 6vw, 2rem) clamp(4rem, 9vw, 6rem);
}

.dokument h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 2.5rem;
  text-wrap: balance;
}

.dokument h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gedaempft);
  margin: 2.75rem 0 0.625rem;
}

.dokument p,
.dokument address {
  margin: 0 0 1rem;
  max-width: 68ch;
  text-wrap: pretty;
}

.dokument address { font-style: normal; }

.zurueck {
  display: inline-block;
  margin-bottom: 3rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gedaempft);
  text-decoration: none;
  transition: color 0.25s var(--aus);
}
.zurueck:hover { color: var(--akzent); }
