/* [Stand: 2026-10-22 | Deckung: Rechnung] */

/* Schriften lokal im Root: Dateien aus @fontsource 5.3.0 (Google-Fonts-Build, Subset latin),
   SIL OFL 1.1 — Lizenztexte LICENSE-*.txt daneben. Kein Abruf von Drittservern. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('cormorant-garamond-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('libre-franklin-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('libre-franklin-latin-700-normal.woff2') format('woff2');
}

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

:root {
  --bg: #0a1a0f;
  --text: #e8e4df;
  --accent: #c9b99a;
  --muted: #6b6560;
  --orange: #c4652a;
}

html {
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0;
}

/* Grain-Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
}

/* Hamburger-Menü (Checkbox-Hack, kein JS). Checkbox visuell verborgen, bleibt fokussierbar:
   Tab erreicht sie als erstes Element, Leertaste schaltet das Menü; Fokusring am Button. */
.menu-checkbox {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.menu-checkbox:focus-visible ~ .menu-btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-btn {
  position: fixed;
  top: 0.8rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  transition: all 0.35s ease;
}

.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}
.menu-icon::before { top: -7px; }
.menu-icon::after  { top: 7px; }

.menu-checkbox:checked ~ .menu-btn .menu-icon { background: transparent; }
.menu-checkbox:checked ~ .menu-btn .menu-icon::before {
  top: 0; transform: rotate(45deg); background: #fff;
}
.menu-checkbox:checked ~ .menu-btn .menu-icon::after {
  top: 0; transform: rotate(-45deg); background: #fff;
}

.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 50;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;   /* geschlossen: Links nicht in der Tab-Reihenfolge */
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, visibility 0s linear 0.4s;
  padding: 0 1.5rem;
}

.menu-checkbox:checked ~ .top-nav {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, visibility 0s;
  padding: 3.5rem 1.5rem 1.5rem;
}

.top-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.top-nav a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Inhalt */
.container {
  text-align: center;
  max-width: 540px;
  padding: 2rem;
  animation: fadeUp 1.2s ease-out both;
}

.portrait-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.portrait {
  width: 260px;
  height: 340px;
  object-fit: cover;
  display: block;
  border: 2px solid #ffffff;
  padding: 20px;
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.6s ease;
}

.portrait:hover {
  filter: grayscale(0%) contrast(1.1);
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 1.8rem;
  animation: expandLine 1s ease-out 0.6s both;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: var(--text);
  animation: fadeUp 1s ease-out 0.3s both;
}

/* .subtitle: derzeit ungenutzt — für eine optionale Zeile „Titel · Firma" unter dem Namen */
.subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
  animation: fadeUp 1s ease-out 0.5s both;
}

.tagline {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0.4rem auto 0.9rem;
  animation: fadeUp 1s ease-out 0.5s both;
}

.bio {
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: 0.7;
  max-width: 440px;
  margin: 0 auto;
  animation: fadeUp 1s ease-out 0.7s both;
}

.links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 1.6rem;
  animation: fadeUp 1s ease-out 0.9s both;
}

/* Links in Inhalt und Textseiten */
.links a,
.bio a,
.mail,
.page a {
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.links a:hover,
.links a:focus-visible,
.bio a:hover,
.bio a:focus-visible,
.mail:hover,
.mail:focus-visible,
.page a:hover,
.page a:focus-visible {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* E-Mail-Adresse: steht in keiner Datei zusammengesetzt. Anzeige aus data-user/data-domain
   als generierter Inhalt — nicht im DOM-Text, nicht per Textauswahl kopierbar.
   Das mailto-Ziel setzt site.js erst bei Hover/Fokus/Klick; der Klick kopiert die Adresse
   zusätzlich in die Zwischenablage, site.js setzt dafür 2 s lang .copied (Rückmeldung). */
.mail-show::after {
  content: attr(data-user) "@" attr(data-domain);
}

.mail-show.copied::after {
  content: "copied to clipboard";
}

.top-nav a.mail.copied::after {
  content: " · copied";
}

/* Textseiten (legal-notice.html, privacy.html): body.page */
body.page { align-items: flex-start; }

.page .container {
  max-width: 640px;
  text-align: left;
}

.page h1 {
  font-size: 1.9rem;
  margin-bottom: 1.6rem;
}

.page h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin: 1.8rem 0 0.5rem;
}

.page p {
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: 0.8;
  margin-bottom: 0.8rem;
}

/* Platzhalter — sichtbar markiert, bis Inhalt eingesetzt ist */
.todo {
  color: var(--orange);
  opacity: 1;
  border-left: 2px solid var(--orange);
  padding-left: 0.8rem;
}

/* Imprint-Leiste */
.imprint-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: var(--orange);
  color: #0a0a0a;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  z-index: 50;
}

.imprint-bar a {
  color: #0a0a0a;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.imprint-bar a:hover { opacity: 0.6; }

/* Animationen */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to   { width: 40px; opacity: 1; }
}

/* Responsive */
@media (max-width: 520px) {
  body {
    align-items: flex-start;
    padding: 2rem 0 4rem;
  }

  .container { padding: 1.2rem; max-width: 100%; }

  .portrait {
    width: 75vw;
    max-width: 260px;
    height: auto;
    aspect-ratio: 3 / 4;
    padding: 12px;
  }

  .portrait-wrapper { margin-bottom: 1.8rem; }

  h1 { font-size: 1.6rem; letter-spacing: 0.05em; }

  .divider { margin: 0 auto 1.2rem; }

  .subtitle { font-size: 0.6rem; margin-bottom: 1rem; }
  .tagline { font-size: 0.9rem; }
  .bio { font-size: 0.85rem; line-height: 1.7; max-width: 90vw; }
  .links { gap: 0.6rem 1.4rem; margin-top: 1.3rem; padding: 0 0.5rem; }
  .links a { font-size: 0.8rem; }

  .page h1 { font-size: 1.5rem; }
  .page p { font-size: 0.85rem; max-width: 90vw; }

  .top-nav { gap: 1rem; }
  .top-nav a { font-size: 0.8rem; }

  .menu-btn {
    top: 0.6rem; right: 0.8rem;
    width: 44px; height: 44px;
  }

  .imprint-bar {
    font-size: 0.6rem;
    padding: 0.5rem 0.8rem;
  }
}

@media (max-width: 360px) {
  .portrait { width: 70vw; padding: 8px; }

  h1 { font-size: 1.35rem; }
}
