/* Persönliche Landingpage – Stephan Jordan. Eigenes CSS, Systemschriften, keine externen Ressourcen. */
:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --bg-2: #12151a;
  --card: #171b21;
  --card-2: #1e232b;
  --line: #2a303a;
  --text: #f2f3f5;
  --muted: #aab0bc;
  --yellow: #f5c518;
  --yellow-2: #ffd84a;
  --on-yellow: #0d0f12;
  --focus: #ffd84a;
  --radius: 28px;
  --radius-sm: 18px;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1180px;
  --font: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--yellow-2); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--yellow); color: var(--on-yellow); font-weight: 700;
  padding: 12px 18px; border-radius: 12px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; background: #000;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__photo {
  position: absolute; inset: 0; z-index: -3;
  background: #000 url("foto.jpg") 62% 18% / cover no-repeat;
  filter: grayscale(1) contrast(1.15) brightness(.78);
}
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .86) 28%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(90deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .7) 38%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 22%);
}
.hero__net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .55; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 18px var(--gutter); position: relative; z-index: 10;
}
.logo {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 2px solid var(--yellow); border-radius: 14px;
  color: var(--yellow); font-weight: 800; letter-spacing: .02em; text-decoration: none;
  background: rgba(0, 0, 0, .35);
}
.logo:hover { background: var(--yellow); color: var(--on-yellow); }
.menu { display: flex; gap: 4px; align-items: center; }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--text); text-decoration: none; border-radius: 999px; font-size: .98rem;
}
.menu a:hover { color: var(--yellow); background: rgba(255, 255, 255, .08); }
.menu a[aria-current="true"] { color: var(--yellow); }
.menu-toggle {
  display: none; width: 48px; height: 48px; padding: 0; cursor: pointer;
  background: rgba(0, 0, 0, .5); color: var(--text);
  border: 2px solid var(--line); border-radius: 14px; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s, opacity .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.hero__body {
  flex: 1; display: flex; align-items: flex-end;
  padding-block: 48px clamp(40px, 8vh, 96px);
}
.hero__text { max-width: 640px; }
.kicker {
  color: var(--yellow); text-transform: uppercase; letter-spacing: .22em;
  font-size: .85rem; font-weight: 700; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); font-weight: 800; letter-spacing: -.025em; }
.typed { font-size: clamp(1.35rem, 4.2vw, 2rem); font-weight: 600; margin: 14px 0 18px; min-height: 1.4em; }
.typed [data-typed] { color: var(--yellow); }
.typed .cursor {
  display: inline-block; width: .55ch; height: 1.05em; margin-left: 3px; vertical-align: -.15em;
  background: var(--yellow); animation: blink 1s steps(2, start) infinite;
}
.typed .cursor[hidden] { display: none; }
@keyframes blink { to { visibility: hidden; } }
.lead { color: #e1e4ea; font-size: 1.12rem; max-width: 56ch; margin-bottom: 28px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--yellow); transition: background .15s, color .15s;
}
.btn--primary { background: var(--yellow); color: var(--on-yellow); }
.btn--primary:hover { background: var(--yellow-2); color: var(--on-yellow); }
.btn--ghost { background: rgba(0, 0, 0, .35); color: var(--yellow); }
.btn--ghost:hover { background: var(--yellow); color: var(--on-yellow); }

/* ---------- Sektionen ---------- */
section.sec { padding-block: clamp(64px, 11vw, 128px); }
section.sec + section.sec { padding-top: 0; }
.eyebrow { color: var(--yellow); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; margin-bottom: 12px; }
.sec h2 { font-size: clamp(1.9rem, 5vw, 3.1rem); margin-bottom: 28px; }
.sec h3 { font-size: 1.3rem; margin-bottom: 10px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 38px);
}
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.about p { color: #d7dbe3; font-size: 1.15rem; margin: 0; }
.facts { display: grid; gap: 14px; margin: 0; }
.facts dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.tile .icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px;
  background: var(--yellow); color: var(--on-yellow); font-weight: 800; margin-bottom: 18px;
}
.tile p { color: var(--muted); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.chip {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line);
  color: #e6e9ef; font-size: .88rem; line-height: 1.5;
}

/* Projekte */
.projects { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project { display: flex; flex-direction: column; }
.project p { color: var(--muted); }
.project .links { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.project .links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.project--main {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, rgba(245, 197, 24, .16), rgba(245, 197, 24, .04) 60%), var(--card);
  border-color: rgba(245, 197, 24, .45);
}
.project--main h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.project--main p { color: #d7dbe3; max-width: 70ch; }
.project .note { font-size: .92rem; }

/* Zeitleiste */
.timeline { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-left: 28px; }
.card, .chip, .skillgroups { overflow-wrap: anywhere; }
.skillgroups, .stations, .facts { grid-template-columns: minmax(0, 1fr); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.job { position: relative; }
.job::before {
  content: ""; position: absolute; left: -28px; top: 34px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--yellow);
}
.job .when { color: var(--yellow); font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.job .who { color: var(--muted); margin: 4px 0 14px; font-weight: 600; }
.job ul { display: grid; gap: 8px; color: #d7dbe3; }
.job li { position: relative; padding-left: 20px; }
.job li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.stations { display: grid; gap: 14px; margin-top: 16px; }
.station { border-top: 1px solid var(--line); padding-top: 14px; }
.station h4 { margin: 0 0 4px; font-size: 1.05rem; }
.station .when { font-size: .88rem; }
.station p { color: #d7dbe3; margin: 6px 0 0; }

/* Kompetenzen */
.skills { display: grid; gap: 20px; grid-template-columns: 1.7fr 1fr; align-items: start; }
.skillgroups { display: grid; gap: 22px; }
.skillgroups h3 { font-size: 1.05rem; margin-bottom: 0; }
.skillgroups .chips { margin-top: 10px; }
.edu ul { display: grid; gap: 16px; }
.edu li { color: #d7dbe3; }
.edu strong { color: var(--text); }

/* Kontakt */
.contact { text-align: center; background: linear-gradient(180deg, rgba(245, 197, 24, .12), rgba(245, 197, 24, .03)), var(--card); }
.contact p { color: #d7dbe3; font-size: 1.15rem; }
.contact .btns { justify-content: center; margin-top: 8px; }

.foot { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); font-size: .92rem; }
.foot p { margin: 0 0 6px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot p a { display: inline; min-height: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0 0 4px; }

/* Unterseiten (Impressum, Datenschutz) */
.subhead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
}
.subhead .back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.legal { padding-block: 24px clamp(48px, 9vw, 96px); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: 28px; overflow-wrap: anywhere; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p, .legal li, .legal dd { color: #d7dbe3; overflow-wrap: anywhere; }
.legal dl { display: grid; gap: 16px; margin: 0 0 8px; }
.legal dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.legal dd { margin: 2px 0 0; }
.legal ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; margin: 0 0 1em; }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px var(--gutter); }
.nf h1 { font-size: clamp(3rem, 14vw, 7rem); color: var(--yellow); }
.nf p { color: #d7dbe3; font-size: 1.15rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .skills { grid-template-columns: 1fr; }
}
@media (min-width: 761px) {
  /* Desktop: Foto rechts, Gesicht nicht überdimensioniert */
  .hero__photo { inset: 0 0 0 auto; width: min(68%, 1000px); }
  .hero__shade {
    background:
      linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .8) 24%, rgba(0, 0, 0, 0) 55%),
      linear-gradient(90deg, #000 0%, #000 22%, rgba(0, 0, 0, .75) 42%, rgba(0, 0, 0, 0) 70%),
      linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 20%);
  }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .menu {
    display: none; position: absolute; right: var(--gutter); top: 74px; min-width: 220px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    background: rgba(13, 15, 18, .97); border: 1px solid var(--line); border-radius: 20px;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 0 16px; }
  .hero__photo { background-position: 62% 8%; }
  .hero__shade {
    background:
      linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .92) 42%, rgba(0, 0, 0, .35) 72%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 20%);
  }
  .grid--2, .projects { grid-template-columns: 1fr; }
  .project--main { grid-column: auto; }
  .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  body { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typed .cursor { animation: none; }
  .hero__net { display: none; }
  * { transition: none !important; }
}
