/* ==========================================================================
   fkuenzel – Stylesheet
   Aufbau:
   1. Schrift
   2. Tokens (Farben, Radien, Schatten, Abstände)
   3. Reset und Basis
   4. Layout
   5. Bausteine (Buttons, Badges, Chips, Überschriften)
   6. Seitenbereiche (Kopfzeile, Hero, Projekte, Über mich, Profile, Fußzeile)
   7. Lebenslauf
   8. Rechtstexte (Impressum, Datenschutz)
   9. Barrierefreiheit, Bewegung, Druck
   ========================================================================== */


/* 1. Schrift (lokal eingebunden, keine externen Anfragen)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}


/* 2. Tokens
   ========================================================================== */

:root {
  /* Farben */
  --bg:            #f6f5f0;
  --surface:       #ffffff;
  --tint:          #eef1ea;
  --text:          #171a16;
  --muted:         #5d6358;
  --line:          #e1dfd4;
  --accent:        #1f5a3a;   /* Flächen */
  --accent-strong: #1f5a3a;   /* Text und Links auf hellem Grund */
  --accent-soft:   #e0eee5;   /* Hintergrund für Badges und Hinweise */
  --on-accent:     #ffffff;
  --amber:         #b7791f;

  /* Schrift */
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Größen */
  --text-xs:   clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --text-sm:   clamp(0.92rem, 0.9rem + 0.1vw, 0.99rem);
  --text-base: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  --text-xl:   clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  --text-h2:   clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
  --text-hero: clamp(3.5rem, 1.2rem + 9.5vw, 8.5rem);

  /* Form */
  --radius:    clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
  --radius-sm: clamp(0.625rem, 0.55rem + 0.3vw, 0.875rem);
  --shadow-sm: 0 0.0625rem 0.125rem rgb(23 26 22 / 0.06);
  --shadow-md: 0 0.875rem 2.125rem -0.875rem rgb(23 26 22 / 0.28);

  /* Abstände */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --space-5: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  --space-6: clamp(3.5rem, 2rem + 6vw, 6rem);

  --gutter: clamp(1.25rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #101310;
    --surface:       #181c17;
    --tint:          #1f251e;
    --text:          #ecede6;
    --muted:         #9aa092;
    --line:          #2b312a;
    --accent:        #7cc79a;
    --accent-strong: #8fd3aa;
    --accent-soft:   #1f3427;
    --on-accent:     #0d1a12;
    --amber:         #e0a94a;

    --shadow-sm: 0 0.0625rem 0.125rem rgb(0 0 0 / 0.4);
    --shadow-md: 0 0.875rem 2.125rem -0.875rem rgb(0 0 0 / 0.7);
  }
}


/* 3. Reset und Basis
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, address, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent-strong) 50%, transparent);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}


/* 4. Layout
   ========================================================================== */

.page {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-6);
}

.section--tight {
  padding-block: var(--space-4);
}


/* 5. Bausteine
   ========================================================================== */

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.heading {
  margin-top: var(--space-1);
  font-size: var(--text-h2);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 0.0625rem solid var(--line);
  border-radius: 100vmax;
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  color: var(--text);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-md);
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn--solid:hover {
  color: var(--on-accent);
}

/* Status-Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.7rem;
  border-radius: 100vmax;
  background: var(--tint);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--muted);
}

.badge[data-state="live"]    { background: var(--accent-soft); color: var(--accent-strong); }
.badge[data-state="live"]::before    { background: var(--accent); }
.badge[data-state="einsatz"]::before { background: var(--accent); }
.badge[data-state="arbeit"]::before  { background: var(--amber); }
.badge[data-state="planung"] { color: var(--muted); }
.badge[data-state="planung"]::before { background: transparent; border: 0.09375rem solid var(--muted); }

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

.chips li {
  padding: 0.3rem 0.8rem;
  border: 0.0625rem solid var(--line);
  border-radius: 100vmax;
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 500;
}


/* 6. Seitenbereiche
   ========================================================================== */

/* --- Kopfzeile --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(0.875rem);
  backdrop-filter: blur(0.875rem);
  border-bottom: 0.0625rem solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.8rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header__brand::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav a {
  display: block;
  padding: 0.35rem 0.8rem;
  border-radius: 100vmax;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

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

.hero {
  padding-block: var(--space-5) var(--space-5);
}

.hero__grid {
  display: grid;
  gap: var(--space-4);
}

.hero__title {
  margin-top: var(--space-2);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero__title span {
  display: block;
}

.hero__title span:last-child {
  color: var(--accent-strong);
}

.hero__lead {
  max-width: 30ch;
  margin-top: var(--space-4);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Kurzprofil-Karte */
.sheet {
  align-self: end;
  padding: var(--space-3);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.sheet__title {
  margin-bottom: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.sheet__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-2);
  padding-block: 0.7rem;
  border-top: 0.0625rem solid var(--line);
  font-size: var(--text-sm);
}

.sheet__row:first-of-type {
  border-top: 0;
}

.sheet dt {
  color: var(--muted);
}

.sheet dd {
  font-weight: 500;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr);
    gap: var(--space-5);
    align-items: end;
  }
}

/* --- Technologien ------------------------------------------------------ */

.stack {
  padding-block: 0 var(--space-4);
}

/* --- Projekte ---------------------------------------------------------- */

.projects__head {
  max-width: 44rem;
  margin-bottom: var(--space-5);
}

.projects__intro {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--muted);
}

.group + .group {
  margin-top: var(--space-5);
}

.group__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: 0.7rem;
  border-bottom: 0.0625rem solid var(--line);
}

.group__title {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.group__count {
  font-size: var(--text-sm);
  color: var(--muted);
}

.cards {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 52rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-0.1875rem);
  box-shadow: var(--shadow-md);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.card__kind {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
}

.card__name {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card__text {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: var(--space-1);
}

.card__tags li {
  padding: 0.15rem 0.65rem;
  border-radius: 100vmax;
  background: var(--tint);
  font-size: var(--text-xs);
  font-weight: 500;
}

.card__link {
  align-self: flex-start;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
}

.card__link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* --- Über mich --------------------------------------------------------- */

.about {
  padding: var(--space-4);
  border: 0.0625rem solid var(--line);
  border-radius: calc(var(--radius) + 0.5rem);
  background: var(--surface);
}

.about__grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.about__text p {
  max-width: 40rem;
  font-size: var(--text-lg);
  line-height: 1.55;
}

.about__text p + p {
  margin-top: var(--space-3);
}

.about__text strong {
  font-weight: 650;
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
}

.facts {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.facts__item {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--tint);
}

.facts__item dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.facts__item dd {
  margin-top: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.55;
}

@media (min-width: 60rem) {
  .about {
    padding: var(--space-5);
  }

  .about__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--space-5);
  }
}

/* --- Lebenslauf-Teaser ------------------------------------------------- */

.teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: calc(var(--radius) + 0.5rem);
  background: var(--accent);
  color: var(--on-accent);
}

.teaser__title {
  font-size: var(--text-h2);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.035em;
}

.teaser__text {
  max-width: 30rem;
  margin-top: var(--space-2);
  font-size: var(--text-lg);
  line-height: 1.35;
  opacity: 0.92;
}

.teaser .btn {
  border-color: transparent;
  background: var(--on-accent);
  color: var(--accent);
}

.teaser .btn:hover {
  color: var(--accent);
}

@media (min-width: 60rem) {
  .teaser {
    padding: var(--space-5);
  }
}

/* --- Profile ----------------------------------------------------------- */

.profiles__grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 48rem) {
  .profiles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.profile {
  display: grid;
  gap: 0.35rem;
  padding: var(--space-3);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile:hover {
  color: var(--text);
  transform: translateY(-0.1875rem);
  box-shadow: var(--shadow-md);
}

.profile__name {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.profile__hint {
  font-size: var(--text-sm);
  color: var(--muted);
}

.profile__go {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-strong);
}

/* --- Fußzeile ---------------------------------------------------------- */

.site-footer {
  margin-top: var(--space-4);
  padding-block: var(--space-5) var(--space-4);
  border-top: 0.0625rem solid var(--line);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-4);
}

.site-footer__mark {
  font-size: var(--text-lg);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.site-footer__note {
  max-width: 44ch;
  margin-top: 0.3rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

.site-footer__disclaimer {
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.site-footer__disclaimer strong {
  font-weight: 700;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
}

.site-footer__meta {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--muted);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}


/* 7. Lebenslauf
   ========================================================================== */

.cv-hero {
  padding-block: var(--space-5) var(--space-4);
}

.cv-hero__title {
  margin-top: var(--space-1);
  font-size: clamp(3rem, 1.2rem + 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.cv-hero__lead {
  max-width: 36rem;
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--muted);
}

.cv-block {
  padding-block: var(--space-5);
  border-top: 0.0625rem solid var(--line);
}

.cv-block__grid {
  display: grid;
  gap: var(--space-3) var(--space-5);
}

.cv-block__title {
  font-size: var(--text-xl);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

@media (min-width: 60rem) {
  .cv-block__grid {
    grid-template-columns: 14rem minmax(0, 1fr);
  }

  .cv-block__title {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }
}

.timeline {
  border-left: 0.125rem solid var(--line);
}

.entry {
  position: relative;
  display: grid;
  gap: 0.25rem var(--space-3);
  padding: 0 0 var(--space-4) var(--space-3);
}

.entry:last-child {
  padding-bottom: 0;
}

.entry::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0.4rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 0.125rem solid var(--muted);
  border-radius: 50%;
  background: var(--bg);
}

.entry[data-current]::before {
  border-color: var(--accent);
  background: var(--accent);
}

.entry__period {
  padding-top: 0.3rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-strong);
}

.entry__role {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.entry__org {
  font-size: var(--text-sm);
  color: var(--muted);
}

.entry__text {
  max-width: 40rem;
  margin-top: 0.4rem;
  font-size: var(--text-sm);
  line-height: 1.65;
}

@media (min-width: 48rem) {
  .entry {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

.skills {
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 40rem) {
  .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.skills__item {
  padding: var(--space-2) var(--space-3);
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.skills__item dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.skills__item dd {
  margin-top: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.55;
}


/* 8. Rechtstexte
   ========================================================================== */

.legal {
  padding-block: var(--space-5) var(--space-6);
}

.legal__title {
  margin-top: var(--space-1);
  font-size: clamp(2.5rem, 1.2rem + 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.legal__body {
  max-width: 44rem;
  margin-top: var(--space-4);
}

.legal__body h2 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal__body p,
.legal__body address {
  font-size: var(--text-base);
}

.legal__body p + p {
  margin-top: var(--space-2);
}

.legal__body ul {
  margin-top: var(--space-1);
  padding-left: 1.25rem;
  list-style: disc;
}

.legal__body li + li {
  margin-top: 0.3rem;
}


/* 9. Barrierefreiheit, Bewegung, Druck
   ========================================================================== */

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

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -5rem;
  z-index: 20;
  padding: var(--space-1) var(--space-2);
  border-radius: 100vmax;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--text-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-1);
}

:focus-visible {
  outline: 0.1875rem solid var(--accent);
  outline-offset: 0.1875rem;
}

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

  .btn,
  .card,
  .profile {
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .card:focus-within,
  .profile:hover {
    transform: none;
  }
}

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --tint: #fff;
    --text: #000;
    --muted: #333;
    --line: #bbb;
    --accent-strong: #000;
    --shadow-sm: none;
    --shadow-md: none;
  }

  .site-header,
  .skip-link,
  .site-footer,
  .btn {
    display: none;
  }

  body {
    font-size: 10.5pt;
  }

  .cv-hero__title {
    font-size: 34pt;
  }

  .cv-block,
  .entry {
    break-inside: avoid;
  }

  .cv-block {
    padding-block: 1rem;
  }

  a {
    text-decoration: none;
  }
}
