/* Steckbrief Felix Arnold – eigenes CSS, keine Bibliotheken, kein JavaScript */

@font-face { font-family: 'Roboto'; font-weight: 300; font-display: swap; src: url('../fonts/roboto/roboto-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 400; font-display: swap; src: url('../fonts/roboto/roboto-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 500; font-display: swap; src: url('../fonts/roboto/roboto-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #ffffff;
  --bg-alt: #f7f9f8;
  --card: #ffffff;
  --text: #22272b;
  --muted: #646d75;
  --line: #e4e6e3;
  --accent: #127369;          /* Kupfergrün der Speicherstadt-Dächer */
  --accent-soft: rgba(18, 115, 105, 0.09);
  --shadow: 0 1px 2px rgba(20, 30, 35, 0.04), 0 4px 16px rgba(20, 30, 35, 0.05);
  --radius: 10px;
  --hero-tint: #7c8f8c;        /* leicht gesättigtes Kupfergrün für das Kopfbild */
  --hero-shade: radial-gradient(ellipse at 50% 50%, rgba(10, 22, 21, 0.42) 0%, rgba(10, 22, 21, 0.30) 70%, rgba(10, 22, 21, 0.22) 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 400; letter-spacing: 1px; line-height: 1.3; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Kopfbereich */
.hero {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 80px 16px 72px;
  text-align: center;
  color: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero-tint);
}
/* Bild: Ostsee (eigenes Foto), eingefärbt, weicher und kontrastärmer, damit es ruhig wirkt */
.hero::before {
  content: "";
  position: absolute; inset: -16px;
  z-index: -2;
  background: url('../img/kopf-ostsee.jpg') center 58% / cover no-repeat, var(--hero-tint);
  background-blend-mode: luminosity;
  filter: blur(3px) contrast(0.78) brightness(1.06);
}
/* gleichmäßiger Schleier für lesbaren Text */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--hero-shade);
}
.avatar {
  width: 128px; height: 128px;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 300; letter-spacing: 2px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
.role-main, .role-sub { margin: 0 auto; max-width: 36rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.role-main { margin-top: 16px; font-size: 18px; font-weight: 400; letter-spacing: 1px; }
.role-main span { display: inline-block; }   /* Titel nur als Ganzes umbrechen */
.role-sub { margin-top: 6px; font-size: 15px; font-weight: 300; letter-spacing: 1px; opacity: 0.9; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
}
.nav a { color: var(--muted); }
.nav a:hover, .nav a:focus-visible { color: var(--accent); text-decoration: none; }

/* Abschnitte als Bänder */
.band { padding: 72px 16px; scroll-margin-top: 48px; }
.band-alt { background: var(--bg-alt); }
.wrap { max-width: 900px; margin: 0 auto; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
}
.band h2 { font-size: 28px; font-weight: 300; margin-bottom: 28px; }
.band h2::after {
  content: ""; display: block;
  width: 40px; height: 2px; margin-top: 14px;
  background: var(--accent);
}
.lead { color: var(--muted); margin-bottom: 28px; }
.prose { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.prose p { margin-bottom: 1.1em; }

/* Schwerpunkte */
.focus {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.focus li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 500; letter-spacing: 0.5px; line-height: 1.4;
}
.icon-wrap {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft);
}
.icon {
  width: 24px; height: 24px;
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Karten (Skills, Ausbildung, Kontakt) – gleich hohe Zeilen */
.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
.card {
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card a { overflow-wrap: anywhere; }
.cards-edu .card h3 { margin-bottom: 4px; }

/* Erfahrung als Zeitleiste */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline li:nth-child(-n+3)::before { background: var(--accent); }   /* aktuelle Rollen */
.timeline h3 { font-size: 17px; font-weight: 500; }
.timeline li > p:last-child { color: var(--muted); max-width: 46rem; }
.when {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px; font-weight: 500; letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.org { color: var(--muted); font-size: 14px; letter-spacing: 0.5px; margin: 2px 0 8px; }
.cards-edu .org { margin-bottom: 0; }

.fp { font-family: ui-monospace, Consolas, Monaco, monospace; font-size: 14px; letter-spacing: 0.5px; }

.footer {
  padding: 28px 16px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.footer a { color: var(--muted); }

@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .band { padding: 52px 16px; }
  .hero { min-height: 48vh; padding-top: 64px; }
  /* Menü in einer Zeile; passt es nicht, lässt es sich seitlich wischen */
  .nav {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    gap: 14px; font-size: clamp(10px, 2.9vw, 12px); letter-spacing: 0.6px; white-space: nowrap;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a:first-child { margin-left: auto; }
  .nav a:last-child { margin-right: auto; }
  .role-main { font-size: 17px; }
  .role-sub { font-size: 14px; }
}

@media print {
  .nav { display: none; }
  .hero { color: var(--text); background: none; min-height: 0; padding: 0 0 24px; }
  .hero::before, .hero::after { display: none; }
  .role-main, .role-sub, .hero h1 { text-shadow: none; }
  .band { padding: 24px 0; }
  .card, .focus li { box-shadow: none; }
}

/* Rechtsseiten (Impressum, Datenschutz) */
.legal-page { max-width: 760px; margin: 0 auto; padding: 48px 16px 64px; }
.legal-page .zurueck {
  display: inline-block; margin-bottom: 32px;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
}
.legal-page h1 { font-size: 32px; font-weight: 300; margin-bottom: 8px; }
.legal-page h1::after {
  content: ""; display: block;
  width: 40px; height: 2px; margin: 14px 0 8px;
  background: var(--accent);
}
.legal-page h2 { font-size: 18px; font-weight: 500; margin: 32px 0 8px; }
.legal-page p { color: var(--text); }
