/* ============================================================
   Lebenslauf — Christoph Gerdon
   Design: "Nachtfahrt-Telemetrie" — Asphalt, Amber, Monospace
   ============================================================ */

:root {
  --bg:      #0A0D14;
  --bg-2:    #0E1220;
  --card:    rgba(255, 255, 255, 0.025);
  --card-hi: rgba(255, 255, 255, 0.05);
  --line:    rgba(148, 163, 199, 0.14);
  --line-hi: rgba(148, 163, 199, 0.28);
  --text:    #EDF1F7;
  --muted:   #97A1B4;
  --amber:   #FFAE3D;
  --amber-2: #FF7847;
  --amber-soft: rgba(255, 174, 61, 0.12);
  --amber-line: rgba(255, 174, 61, 0.35);
  --glow-blue: rgba(77, 124, 254, 0.10);

  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body:    "Instrument Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --radius:    18px;
  --radius-sm: 10px;
  --wrap:      1160px;
  --pad:       clamp(1.25rem, 4vw, 3rem);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: var(--amber); color: #171003; }

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: #171003;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Hintergrund-Aurora ---------- */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 82% 6%,  rgba(255, 174, 61, 0.09), transparent 70%),
    radial-gradient(42% 36% at 8% 88%,  var(--glow-blue), transparent 70%),
    radial-gradient(30% 26% at 50% 46%, rgba(255, 120, 71, 0.045), transparent 70%);
  animation: auroraDrift 34s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(1.5%, 1.5%, 0) scale(1.05); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 13, 20, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #171003;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(255, 174, 61, 0.25);
}

.brand-name { font-size: 0.95rem; }

.nav-links {
  display: flex;
  gap: 1.9rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(7rem, 14vh, 9rem) 0 4rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(75% 62% at 60% 34%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 62% at 60% 34%, #000 0%, transparent 100%);
  opacity: 0.5;
  animation: gridPan 70s linear infinite;
}

@keyframes gridPan {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 58px 116px, 58px 116px; }
}

.hero-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  color: var(--amber);
  margin-bottom: 1.4rem;
}

.display-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 100%;
  font-size: clamp(2.9rem, 8.4vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.display-name .line { display: block; }
.dot { color: var(--amber); }

.role {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text);
}

.role strong { font-weight: 600; }
.role .sep { color: var(--amber); margin: 0 0.35rem; }

.intro {
  margin-top: 1rem;
  max-width: 56ch;
  color: var(--muted);
}

.statusline {
  margin-top: 1.6rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.sl-sep { color: var(--amber); }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 174, 61, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 174, 61, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 174, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 174, 61, 0); }
}

.cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s, background 0.25s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #171003;
  box-shadow: 0 6px 24px rgba(255, 138, 61, 0.28);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 138, 61, 0.4);
}

.btn.ghost {
  border: 1px solid var(--line-hi);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--amber-line);
  transform: translateY(-2px);
}

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn.ghost:hover .arrow { transform: translateY(3px); }

.btn.big {
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  padding: 1.05rem 1.9rem;
}

/* Portrait */
.hero-photo { justify-self: end; }

.photo-frame {
  position: relative;
  margin: 0;
  width: clamp(215px, 24vw, 330px);
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  transform: rotate(-2.5deg);
  transition: transform 0.5s var(--ease);
  border: 1px solid var(--line-hi);
  background: var(--bg-2);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 174, 61, 0.05),
    0 8px 40px rgba(255, 138, 61, 0.07);
}

.photo-frame:hover { transform: rotate(0deg) scale(1.02); }

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px);
  filter: saturate(0.92) contrast(1.04);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.tick {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--amber);
  pointer-events: none;
}
.t1 { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.t2 { top: -7px; right: -7px; border-left: 0; border-bottom: 0; }
.t3 { bottom: -7px; left: -7px; border-right: 0; border-top: 0; }
.t4 { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.012);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track i { color: var(--amber); font-style: normal; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sektionen ---------- */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 7.5rem) var(--pad) 0;
}

.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }

.kicker {
  color: var(--amber);
  margin-bottom: 0.7rem;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--amber);
  margin-right: 0.7rem;
  vertical-align: middle;
  border-radius: 2px;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ---------- Laufbahn / Rail ---------- */
.rail {
  position: relative;
  padding-left: clamp(2.4rem, 5vw, 3.4rem);
  display: grid;
  gap: 1.15rem;
}

.rail-line {
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.rail-progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0%;
  background: linear-gradient(180deg, var(--amber), var(--amber-2));
  box-shadow: 0 0 14px rgba(255, 160, 61, 0.7);
  transition: height 0.15s linear;
}

.station { position: relative; }

.node {
  position: absolute;
  left: calc(-1 * clamp(2.4rem, 5vw, 3.4rem) + 4px);
  top: 1.9rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-hi);
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}

.station.lit .node {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-soft), 0 0 18px rgba(255, 160, 61, 0.55);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.7rem) clamp(1.3rem, 3.4vw, 2rem);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.station:hover .card,
.station.lit .card {
  border-color: rgba(255, 174, 61, 0.25);
  background: var(--card-hi);
}

.station:hover .card { transform: translateX(6px); }

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.period {
  display: inline-block;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(255, 174, 61, 0.25);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  border: 1px solid var(--line-hi);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}

.job-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.2;
}

.job-company {
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 500;
}

.job-desc {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 68ch;
}

.tags {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

/* ---------- Ausbildung ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.15rem;
}

.edu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.edu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 174, 61, 0.25);
  background: var(--card-hi);
}

.edu-card h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: 1.25rem;
  line-height: 1.25;
}

.edu-inst { margin-top: 0.4rem; color: var(--muted); font-weight: 500; }
.edu-desc { margin-top: 0.8rem; color: var(--muted); }

/* ---------- Skills / Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}

.skill-card:hover {
  border-color: rgba(255, 174, 61, 0.25);
  background: var(--card-hi);
  transform: translateY(-4px);
}

.skill-card.wide { grid-column: span 2; }

.skill-card h3 {
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.chips li:hover {
  border-color: var(--amber-line);
  transform: translateY(-2px);
}

/* ---------- Sprachen & Hobbys ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.6rem, 6vw, 4rem);
}

.langs { display: grid; gap: 1.5rem; }

.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.lang-name { font-weight: 600; font-size: 1.05rem; }
.lang-label { color: var(--muted); }

.gauge {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.gauge span {
  height: 7px;
  border-radius: 4px;
  background: var(--line);
  transition: background 0.4s;
}

.gauge span.on {
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
  box-shadow: 0 0 10px rgba(255, 160, 61, 0.35);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-content: flex-start;
}

.pills li {
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease), border-color 0.25s;
}

.pills li:nth-child(odd)  { transform: rotate(-1.2deg); }
.pills li:nth-child(even) { transform: rotate(1.2deg); }

.pills li:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #171003;
  transform: rotate(0deg) translateY(-2px);
}

/* ---------- Kontakt ---------- */
.contact { padding-bottom: clamp(4rem, 9vw, 6.5rem); }

.contact-line { font-size: clamp(2.4rem, 7.2vw, 5rem); }

.facts {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1.6rem 2.4rem;
  border-top: 1px solid var(--line);
  padding-top: 2.2rem;
}

.facts dt { color: var(--muted); margin-bottom: 0.35rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--amber-line); transition: color 0.25s, border-color 0.25s; }
.facts a:hover { color: var(--amber); border-color: var(--amber); }
.profile-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.8rem var(--pad) 2.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.admin-link {
  color: var(--muted);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.25s, color 0.25s;
}

.admin-link:hover { opacity: 1; color: var(--amber); }

/* ---------- Reveal-Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }
  .hero-photo { justify-self: start; }
  .photo-frame { width: clamp(200px, 42vw, 280px); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-card.wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 66px;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 13, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 0 1rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    padding: 0.95rem var(--pad);
    font-size: 1.05rem;
  }
  .nav-links a::after { display: none; }
  .burger { display: flex; }
  .brand-name { display: none; }
  .duo { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .skill-card.wide { grid-column: auto; }
  .station:hover .card { transform: none; }
  .btn.big {
    width: 100%;
    justify-content: center;
    word-break: break-all;
  }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .hero-grid, .marquee-track { animation: none; }
  .pulse { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { transition-duration: 0.01ms !important; }
  .rail-progress { height: 100% !important; }
}
