/* ==========================================================================
   Felix Semmler – Bewerbungsprofil
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #faf7f3;
  --paper-2: #f3eee8;
  --card: #ffffff;
  --ink: #16120f;
  --ink-2: #2b2521;
  --muted: #645b54;
  --line: #e7e0d8;

  --red: #d92f35;
  --red-hover: #c1262c;
  --red-ink: #c62229;
  --red-bright: #ff5a5f;
  --red-soft: #fdecea;
  --red-line: #f5cfcb;

  --dark-2: #1f1915;
  --dark-3: #2a231f;
  --dark-line: #3a332e;
  --dark-text: #f4efea;
  --dark-muted: #b8afa7;

  --ok: #1f9d63;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(22 18 15 / 0.05), 0 12px 32px -12px rgb(22 18 15 / 0.18);
  --shadow-float: 0 22px 44px -18px rgb(22 18 15 / 0.45);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--red);
  color: #fff;
}

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

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.nw {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.print-only {
  display: none;
}

.skip {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn:hover .icon--down {
  transform: translateY(2px);
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(217 47 53 / 0.7);
}

.btn--primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--outline-light {
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: var(--red);
}

.btn--small {
  height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgb(250 247 243 / 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgb(22 18 15 / 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}

.brand:hover .brand__mark {
  transform: rotate(-8deg);
  background: var(--ink);
}

.nav__links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav__links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav__links a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.nav__links a.is-active {
  color: var(--ink);
  background: var(--paper-2);
}

.nav__cta {
  margin-left: 8px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(32px, 6vw, 80px) clamp(48px, 6vw, 72px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(217 47 53 / 0.1), transparent);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
}

.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(31 157 99 / 0.45);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgb(31 157 99 / 0);
  }
}

.hello {
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
}

.hero h1 {
  margin-top: 4px;
  font-size: clamp(3.1rem, 8.2vw, 6.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.dot {
  color: var(--red);
}

.role {
  max-width: 28ch;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.role mark {
  background: linear-gradient(transparent 60%, rgb(217 47 53 / 0.2) 0);
  color: inherit;
}

.lead {
  max-width: 56ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.fact__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.fact__label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Portrait */

.portrait {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 470px;
  margin: 0;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.portrait__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(120% 80% at 50% 0%, #ea4a4f 0%, transparent 60%),
    var(--red);
}

.portrait__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.2) 1.3px, transparent 1.6px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

.portrait__frame::after {
  content: "";
  position: absolute;
  top: 13%;
  left: 50%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.13);
  box-shadow: 0 0 0 26px rgb(255 255 255 / 0.06), 0 0 0 54px rgb(255 255 255 / 0.03);
  transform: translateX(-50%);
}

.portrait__frame img {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 116%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

.float {
  position: absolute;
  z-index: 2;
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  animation: bob 7s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-7px);
  }
}

.float--badge {
  top: 26px;
  left: -26px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  background: var(--card);
  line-height: 1.25;
}

.float--badge .float__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red);
}

.float--badge .icon {
  width: 21px;
  height: 21px;
}

.float--badge small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.float--badge strong {
  display: block;
  font-size: 0.9375rem;
}

.float--term {
  bottom: -26px;
  left: -56px;
  min-width: 262px;
  padding: 13px 18px 15px;
  background: var(--ink);
  color: #ede6df;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  animation-delay: -3.5s;
}

.term__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 9px;
}

.term__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a423c;
}

.term__bar i:first-child {
  background: var(--red-bright);
}

.term__prompt {
  color: var(--red-bright);
}

.term__out li::before {
  content: "› ";
  color: var(--red-bright);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 18px 0;
  background: var(--ink);
  color: #ede6df;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee ul {
  display: flex;
  align-items: center;
}

.marquee li {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee li::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline: 26px;
  border-radius: 50%;
  background: var(--red-bright);
}

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

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}

.kicker span {
  color: var(--red-ink);
}

.section-title {
  max-width: 20ch;
  margin-top: 18px;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Profil ---------- */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.statement {
  margin-top: 20px;
  font-size: clamp(2rem, 4.3vw, 3.3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.statement em {
  position: relative;
  color: var(--red);
  font-style: normal;
  white-space: nowrap;
}

.statement em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.14em;
  left: 0;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10C55 3 140 2 197 8' fill='none' stroke='%23d92f35' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.profile > :first-child {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.profile__text {
  padding-top: 8px;
}

.profile__text > p {
  color: var(--ink-2);
  font-size: 1.125rem;
}

.profile__text > p + p {
  margin-top: 16px;
}

.highlights {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.highlight {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.highlight__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
}

.highlight h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.highlight p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- Schwerpunkte ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  border-color: var(--red-line);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  transition: background-color 0.3s, color 0.3s;
}

.card:hover .card__icon {
  background: var(--red);
  color: #fff;
}

.card__num {
  color: #b9b0a8;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.card h3 {
  margin-top: 6px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.tags li {
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

.wide {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--red-line);
  border-radius: var(--radius);
  background: var(--red-soft);
}

.wide__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
}

.wide h3 {
  margin-top: 18px;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  letter-spacing: -0.025em;
}

.wide p {
  margin-top: 10px;
  color: var(--ink-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
}

.wide .chips li {
  border: 1px solid var(--red-line);
  background: var(--card);
}

/* ---------- Arbeitsweise (dark) ---------- */

.section--dark {
  background: var(--ink);
  color: var(--dark-text);
}

.section--dark .kicker {
  color: var(--dark-muted);
}

.section--dark .kicker span {
  color: var(--red-bright);
}

.section--dark .section-title {
  color: #fff;
}

.section--dark .section-intro {
  color: var(--dark-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 28px;
  margin-top: 56px;
}

.step {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--red-bright);
}

.step__num {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.step h3 {
  margin-top: 10px;
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.step p {
  margin-top: 6px;
  color: var(--dark-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.trace {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: 80px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--dark-line);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--dark-2), #1a1512);
}

.trace h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
}

.trace__text p {
  margin-top: 12px;
  color: var(--dark-muted);
}

.trace__path {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 22px;
  color: #ede6df;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.trace__path li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trace__path li + li::before {
  content: "›";
  color: var(--red-bright);
}

.chain {
  --track-inset: 28px;
  --t: 4.8s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chain::before {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--track-inset);
  left: var(--track-inset);
  height: 2px;
  background: var(--dark-line);
  transform: translateY(-50%);
}

.chain::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--track-inset);
  width: 64px;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--red-bright));
  animation: trace-h var(--t) linear infinite;
}

@keyframes trace-h {
  0% {
    left: var(--track-inset);
    opacity: 0;
  }
  8%,
  92% {
    opacity: 1;
  }
  100% {
    left: calc(100% - var(--track-inset) - 64px);
    opacity: 0;
  }
}

.chain li {
  position: relative;
  z-index: 1;
}

.chain__node {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  background: var(--dark-3);
  color: #ede6df;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
  animation: node var(--t) linear infinite;
}

.chain li:nth-child(2) .chain__node { animation-delay: calc(var(--t) * 0.21); }
.chain li:nth-child(3) .chain__node { animation-delay: calc(var(--t) * 0.42); }
.chain li:nth-child(4) .chain__node { animation-delay: calc(var(--t) * 0.63); }
.chain li:nth-child(5) .chain__node { animation-delay: calc(var(--t) * 0.84); }

@keyframes node {
  0%,
  16%,
  100% {
    border-color: var(--dark-line);
    box-shadow: none;
    color: #ede6df;
  }
  5% {
    border-color: var(--red-bright);
    box-shadow: 0 0 0 4px rgb(255 90 95 / 0.16);
    color: #fff;
  }
}

/* ---------- Werdegang ---------- */

.timeline {
  margin-top: 56px;
}

.tl {
  display: grid;
  grid-template-columns: 170px 24px minmax(0, 1fr);
  gap: 0 24px;
}

.tl__date {
  padding-top: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
}

.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tl__rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.tl__rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}

.tl:first-child .tl__rail::before {
  top: 28px;
}

.tl:last-child .tl__rail::before {
  bottom: auto;
  height: 28px;
}

.tl__dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 25px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.tl--current .tl__dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 6px rgb(217 47 53 / 0.16);
}

.tl--break .tl__dot {
  border-color: #c9c0b8;
}

.tl__body {
  margin-bottom: 20px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.tl--current .tl__body {
  border-color: var(--red-line);
  box-shadow: var(--shadow);
}

.tl--break .tl__body {
  border-style: dashed;
  background: transparent;
}

.tl__body h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.tl__org {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.tl__body > p:not(.tl__org) {
  margin-top: 10px;
  color: var(--ink-2);
}

.tl__list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.tl__list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tl__list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--red);
}

.edu-title {
  margin-top: 64px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.edu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.edu li {
  padding: 22px;
  border-radius: 18px;
  background: var(--paper-2);
}

.edu__date {
  color: var(--red-ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.edu h4 {
  margin: 8px 0 0;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.edu p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* ---------- Zitat ---------- */

.quote {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 112px);
  background: var(--red);
  color: #fff;
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: -0.02em;
  right: 3%;
  color: rgb(255 255 255 / 0.1);
  font-family: var(--font-display);
  font-size: clamp(16rem, 34vw, 30rem);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.quote figure {
  position: relative;
  margin: 0;
}

.quote blockquote {
  max-width: 32ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.7vw, 2.85rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote figcaption::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #fff;
}

/* ---------- Skills ---------- */

.tiers {
  display: grid;
  gap: 14px;
  margin-top: 48px;
}

.tier {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.tier h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}

.tier__label p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.meter {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.meter i {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}

.meter i.on {
  background: var(--red);
}

.tier--core .chips li {
  background: var(--ink);
  color: #fff;
}

.tier--good .chips li {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.tier--focus .chips li {
  background: var(--red-soft);
  color: var(--red-ink);
}

.stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stack > div {
  padding: 24px 26px;
  background: var(--card);
}

.stack h3 {
  color: var(--red-ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.96875rem;
  line-height: 1.7;
}

.also {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.also strong {
  color: var(--ink-2);
}

/* ---------- Kontakt ---------- */

.contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 11vw, 140px) 32px;
  background: var(--ink);
  color: var(--dark-text);
}

.contact::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -220px;
  width: 680px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(217 47 53 / 0.38), transparent);
  pointer-events: none;
}

.contact .container {
  position: relative;
}

.contact .kicker {
  color: var(--dark-muted);
}

.contact .kicker span {
  color: var(--red-bright);
}

.contact h2 {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(2.75rem, 7.5vw, 5.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.contact h2 .dot {
  color: var(--red-bright);
}

.contact__text {
  max-width: 54ch;
  margin-top: 22px;
  color: var(--dark-muted);
  font-size: 1.125rem;
}

.mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 40px;
}

.mail__link {
  padding-bottom: 4px;
  border-bottom: 3px solid var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s, border-color 0.2s;
}

.mail__link:hover {
  border-color: #fff;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: transparent;
  color: #ede6df;
  font: 600 0.875rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.copy:hover {
  border-color: #fff;
}

.copy .icon {
  width: 17px;
  height: 17px;
}

.copy.is-done {
  border-color: var(--ok);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.contact__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 56px;
  color: var(--dark-muted);
  font-size: 0.9375rem;
}

.contact__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact__meta .icon {
  width: 19px;
  height: 19px;
  color: var(--red-bright);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
  color: #998f87;
  font-size: 0.875rem;
}

.footer a {
  color: #cfc6be;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 1100px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 960px) {
  .nav__links {
    display: none;
  }

  .nav__cta {
    margin-left: auto;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait {
    order: -1;
    justify-self: stretch;
    max-width: 560px;
    aspect-ratio: 6 / 5;
  }

  .portrait__frame img {
    width: 76%;
  }

  .portrait__frame::after {
    top: 8%;
    width: 52%;
  }

  .float--badge {
    top: 18px;
    left: 18px;
  }

  .float--term {
    right: 18px;
    bottom: 18px;
    left: auto;
  }

  .profile,
  .trace {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile > :first-child {
    position: static;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tier {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media screen and (max-width: 700px) {
  .chain {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .chain::before {
    top: var(--track-inset);
    bottom: var(--track-inset);
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .chain::after {
    top: var(--track-inset);
    left: 50%;
    width: 2px;
    height: 56px;
    margin: 0 0 0 -1px;
    background: linear-gradient(180deg, transparent, var(--red-bright));
    animation-name: trace-v;
  }

  .chain__node {
    text-align: center;
  }

  .tl {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0 16px;
  }

  .tl__date {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
    padding-bottom: 10px;
    text-align: left;
  }

  .tl__rail {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .tl__body {
    grid-column: 2;
    grid-row: 2;
    padding: 22px;
  }

  .tl__dot {
    margin-top: 3px;
  }

  .tl:first-child .tl__rail::before {
    top: 8px;
  }

  .tl:last-child .tl__rail::before {
    height: 8px;
  }

  .badge {
    margin: 0 0 0 8px;
  }
}

@keyframes trace-v {
  0% {
    top: var(--track-inset);
    opacity: 0;
  }
  8%,
  92% {
    opacity: 1;
  }
  100% {
    top: calc(100% - var(--track-inset) - 56px);
    opacity: 0;
  }
}

@media screen and (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .brand__name {
    font-size: 1.0625rem;
  }

  .cards,
  .stack,
  .edu {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 24px;
  }

  .chips li {
    padding: 6px 12px;
    font-size: 0.875rem;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .facts {
    gap: 24px 16px;
    margin-top: 40px;
  }

  .portrait {
    aspect-ratio: 1 / 1;
  }

  .portrait__frame {
    border-radius: 26px;
  }

  .portrait__frame img {
    width: 98%;
  }

  .portrait__frame::after {
    top: 10%;
    width: 64%;
  }

  .float--badge {
    top: 14px;
    left: 14px;
    padding: 8px 14px 8px 8px;
  }

  .float--badge .float__icon {
    width: 32px;
    height: 32px;
  }

  .float--term {
    display: none;
  }

  .tier {
    padding: 22px;
  }
}

@media screen and (max-width: 420px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav__cta .btn-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status__dot,
  .float,
  .chain::after,
  .chain__node {
    animation: none;
  }

  .chain::after {
    display: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    padding-inline: var(--gutter);
    animation: none;
  }

  .marquee ul[aria-hidden="true"] {
    display: none;
  }

  .marquee ul {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }
}

/* ---------- Print / PDF ---------- */

@media print {
  @page {
    size: A4;
    margin: 12mm 13mm 12mm;
  }

  :root {
    --paper: #fff;
  }

  html {
    font-size: 11.5px;
  }

  body {
    background: #fff;
    line-height: 1.5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header,
  .skip,
  .marquee,
  .status,
  .hello,
  .hero__actions,
  .float,
  .section--dark,
  .copy,
  .contact__actions,
  .contact .kicker,
  .footer__top,
  .card__head,
  .wide__icon,
  .meter,
  .hero::before,
  .quote::before,
  .contact::before {
    display: none !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .container {
    width: 100%;
  }

  .print-only {
    display: block;
  }

  .print-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--red);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
  }

  /* Kopf */

  .hero {
    padding: 14px 0 0;
    overflow: visible;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 38mm;
    gap: 8mm;
    align-items: center;
  }

  .hero h1 {
    margin-top: 0;
    font-size: 3.4rem;
  }

  .role {
    max-width: none;
    margin-top: 8px;
    font-size: 1.4rem;
  }

  .lead {
    max-width: none;
    margin-top: 8px;
    color: var(--ink-2);
    font-size: 1rem;
  }

  .portrait {
    justify-self: end;
    width: 38mm;
    max-width: none;
  }

  .portrait__frame {
    border-radius: 14px;
  }

  .portrait__frame::after {
    box-shadow: none;
  }

  .facts {
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
  }

  .fact__num {
    font-size: 1.3rem;
  }

  .fact__label {
    margin-top: 2px;
    font-size: 0.82rem;
  }

  /* Abschnitte */

  .section,
  #schwerpunkte {
    padding: 16px 0 0 !important;
  }

  .kicker {
    gap: 8px;
    font-size: 0.75rem;
  }

  .kicker::before {
    width: 18px;
  }

  .section-title,
  .statement {
    max-width: none;
    margin-top: 4px;
    font-size: 1.7rem;
    letter-spacing: -0.025em;
  }

  .section-intro {
    margin-top: 4px;
    font-size: 1rem;
  }

  /* Profil */

  .profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .profile__text {
    padding-top: 0;
  }

  .profile__text > p {
    font-size: 1rem;
  }

  .profile__text > p + p {
    margin-top: 5px;
  }

  .highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .highlight {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .highlight__icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .highlight__icon .icon {
    width: 15px;
    height: 15px;
  }

  .highlight h3 {
    font-size: 0.95rem;
  }

  .highlight p {
    margin-top: 1px;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  /* Schwerpunkte */

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .card {
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .card h3 {
    margin-top: 0;
    font-size: 1.05rem;
  }

  .card p {
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .tags {
    gap: 3px;
    padding-top: 3px;
  }

  .tags li {
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.68rem;
  }

  .wide {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .wide h3 {
    margin-top: 0;
    font-size: 1.05rem;
  }

  .wide p {
    margin-top: 3px;
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .chips {
    gap: 4px;
  }

  .chips li {
    padding: 3px 8px;
    font-size: 0.76rem;
  }

  /* Werdegang */

  .timeline {
    margin-top: 10px;
  }

  .tl {
    grid-template-columns: 25mm 14px minmax(0, 1fr);
    gap: 0 10px;
  }

  .tl__date {
    padding-top: 9px;
    font-size: 0.78rem;
  }

  .badge {
    margin-top: 3px;
    padding: 1px 6px;
    font-size: 0.6rem;
  }

  .tl__dot {
    width: 10px;
    height: 10px;
    margin-top: 12px;
    border-width: 2px;
  }

  .tl--current .tl__dot {
    box-shadow: none;
  }

  .tl:first-child .tl__rail::before {
    top: 16px;
  }

  .tl:last-child .tl__rail::before {
    height: 16px;
  }

  .tl__body {
    margin-bottom: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: none !important;
  }

  .tl__body h3 {
    font-size: 1.1rem;
  }

  .tl__org {
    margin-top: 1px;
    font-size: 0.84rem;
  }

  .tl__body > p:not(.tl__org) {
    margin-top: 3px;
    font-size: 0.9rem;
  }

  .tl__list {
    gap: 1px;
    margin-top: 4px;
  }

  .tl__list li {
    padding-left: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .tl__list li::before {
    width: 7px;
  }

  .edu-title {
    margin-top: 10px;
    font-size: 1.15rem;
  }

  .edu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
  }

  .edu li {
    padding: 8px 10px;
    border-radius: 10px;
  }

  .edu__date {
    font-size: 0.72rem;
  }

  .edu h4 {
    margin-top: 2px;
    font-size: 0.9rem;
  }

  .edu p {
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  /* Zitat */

  .quote {
    margin-top: 14px;
    padding: 10px 14px;
    border-left: 3px solid var(--red);
    border-radius: 0 10px 10px 0;
    background: var(--red-soft);
    color: var(--ink);
  }

  .quote .container {
    width: 100%;
  }

  .quote blockquote {
    max-width: none;
    font-size: 1.15rem;
  }

  .quote figcaption {
    margin-top: 4px;
    color: var(--red-ink);
    font-size: 0.68rem;
  }

  .quote figcaption::before {
    width: 14px;
    background: var(--red);
  }

  /* Skills */

  .tiers {
    gap: 6px;
    margin-top: 10px;
  }

  .tier {
    grid-template-columns: 34mm minmax(0, 1fr);
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .tier h3 {
    font-size: 0.95rem;
  }

  .tier__label p {
    margin-top: 0;
    font-size: 0.76rem;
  }

  .stack {
    margin-top: 8px;
    border-radius: 10px;
  }

  .stack > div {
    padding: 8px 12px;
  }

  .stack h3 {
    font-size: 0.68rem;
  }

  .stack p {
    margin-top: 3px;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .also {
    margin-top: 6px;
    font-size: 0.84rem;
  }

  /* Kontakt */

  .contact {
    padding: 16px 0 0;
    overflow: visible;
    background: #fff;
    color: var(--ink);
  }

  .contact h2 {
    margin-top: 0;
    color: var(--ink);
    font-size: 1.7rem;
  }

  .contact__text {
    max-width: none;
    margin-top: 4px;
    color: var(--muted);
    font-size: 1rem;
  }

  .mail {
    margin-top: 8px;
  }

  .mail__link {
    border-bottom-width: 2px;
    color: var(--ink);
    font-size: 1.3rem;
  }

  .contact__meta {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.88rem;
  }

  .footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top-color: var(--line);
    color: var(--muted);
    font-size: 0.78rem;
  }

  /* Seitenumbrüche */

  .hero,
  .facts,
  .highlight,
  .card,
  .wide,
  .tl,
  .edu li,
  .quote,
  .tier,
  .stack > div,
  .contact {
    break-inside: avoid;
  }

  h2,
  h3,
  .kicker {
    break-after: avoid;
  }

  #werdegang,
  #skills {
    break-before: page;
  }

  .footer__note {
    display: none;
  }
}
