/* maxnowotny.de · Lebenslauf-Raster mit großem Einstieg, Palette B, automatischer Dunkelmodus */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Farben hell */
  --papier: #f5f4ef;
  --text: #1b1a17;
  --leise: #625f57;
  --linie: #dcd9cf;
  --petrol: #1d6a73;

  /* Schrift */
  --schrift: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text-groesse: 1.0625rem;
  --zeilenhoehe: 1.7;
  --lead-groesse: 1.25rem;
  --h2-groesse: 0.9375rem;
  --mail-groesse: clamp(1.5rem, 1.1rem + 2vw, 2.125rem);

  /* Maße und Abstände */
  --spalte: 52rem;
  --label: 11rem;
  --luecke: 2.5rem;
  --rand: 1rem;
  --oben: clamp(2rem, 1rem + 4vw, 4rem);
  --abschnitt: 3rem;
  --name-hoehe: 1.5rem;

  /* Foto */
  --foto-breite: 6.5rem;
  --foto-format: 3 / 4;
  --foto-radius: 6px;

  /* Links */
  --unterstrich: 1.5px;
  --unterstrich-hover: 2.5px;
  --unterstrich-abstand: 0.28em;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #151615;
    --text: #ecebe6;
    --leise: #a3a199;
    --linie: #2e2f2c;
    --petrol: #5fb0ba;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 2rem;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--papier);
  color: var(--text);
  font-family: var(--schrift);
  font-size: var(--text-groesse);
  line-height: var(--zeilenhoehe);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--petrol);
  color: var(--papier);
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--petrol);
  text-decoration-thickness: var(--unterstrich);
  text-underline-offset: var(--unterstrich-abstand);
  transition: text-decoration-thickness 0.15s ease-out;
}

a:hover {
  text-decoration-thickness: var(--unterstrich-hover);
}

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

.sprunglink {
  position: absolute;
  left: var(--rand);
  top: -3rem;
  padding: 0.25rem 0.5rem;
  background: var(--papier);
}

.sprunglink:focus {
  top: 0.5rem;
}

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

/* Gerüst */

.seite {
  position: relative;
  width: min(100% - 2 * var(--rand), var(--spalte));
  margin-inline: auto;
  padding-top: var(--oben);
}

/* Einstieg: Foto links, Name und Vorstellung rechts */

.einstieg {
  display: grid;
  grid-template-columns: var(--foto-breite) minmax(0, 1fr);
  column-gap: 1.25rem;
  row-gap: 1.75rem;
  align-items: start;
}

.foto {
  grid-column: 1;
  grid-row: 1;
}

.foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--foto-format);
  object-fit: cover;
  border-radius: var(--foto-radius);
  background: var(--linie);
}

.name {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

h1 {
  margin: 0;
  line-height: 0;
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

h1 svg {
  display: block;
  height: var(--name-hoehe);
  width: auto;
  max-width: 100%;
  color: var(--text);
}

.rolle {
  margin: 0.55rem 0 0;
  color: var(--leise);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.intro {
  grid-column: 1 / -1;
}

.intro p:not(.lead) {
  max-width: 34rem;
}

.intro .lead {
  font-size: var(--lead-groesse);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 1.1em;
}

/* Abschnitte: Überschrift links, Inhalt rechts */

.zeile {
  margin-top: var(--abschnitt);
}

h2 {
  margin: 0 0 0.5rem;
  font-size: var(--h2-groesse);
  font-weight: 700;
  line-height: 1.5;
}

ul {
  margin: 0;
  padding-left: 1.1em;
}

li {
  margin-bottom: 0.35em;
  padding-left: 0.2em;
}

li::marker {
  color: var(--leise);
}

.stationen {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.7rem 1rem;
  margin: 0;
}

.stationen dt {
  color: var(--leise);
  font-variant-numeric: tabular-nums;
}

.stationen dd {
  margin: 0;
}

.werkzeuge li {
  margin-bottom: 0.7rem;
}

/* Leise Zusatzzeile: Firma bei Stationen, Tools im Werkzeugkasten */
.bei {
  display: block;
  color: var(--leise);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Kontakt: ruhiger Abschluss mit feiner Linie */

.kontakt {
  margin-top: calc(var(--abschnitt) + 1.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--linie);
}

.kontakt p {
  margin-bottom: 0;
}

.kontakt .mail {
  margin: 0.9rem 0 1rem;
  font-size: var(--mail-groesse);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.mail a {
  text-underline-offset: 0.18em;
}

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

/* Fußzeile */

.fuss {
  padding: 2rem 0 3rem;
  font-size: 0.875rem;
  color: var(--leise);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

/* Rechtstexte (eigener schlichter Kopf) */

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.kopf .logo {
  display: block;
  color: var(--text);
  text-decoration: none;
  line-height: 0;
}

.kopf .logo svg {
  height: 1.25rem;
  width: auto;
}

.kopf nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.recht {
  max-width: 36rem;
}

.recht h1 {
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-size: 1.625rem;
  font-weight: 500;
}

.recht h2 {
  margin-top: 2rem;
}

/* Breite Bildschirme: Raster mit Label-Spalte */

@media (min-width: 48rem) {
  :root {
    --name-hoehe: 2rem;
    --lead-groesse: 1.4375rem;
    --foto-breite: var(--label);
  }

  .einstieg {
    column-gap: var(--luecke);
    row-gap: 0;
  }

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

  .name {
    align-self: end;
    padding-bottom: 1.75rem;
  }

  .intro {
    grid-column: 2;
    grid-row: 2;
  }

  .zeile,
  .kontakt-inhalt {
    display: grid;
    grid-template-columns: var(--label) minmax(0, 1fr);
    column-gap: var(--luecke);
    align-items: start;
  }

  .zeile > h2,
  .kontakt-inhalt > h2 {
    grid-column: 1;
    grid-row: 1 / span 5;
    margin: 0;
    padding-top: 0.1rem;
  }

  .zeile > :not(h2),
  .kontakt-inhalt > :not(h2) {
    grid-column: 2;
  }

  .fuss {
    padding-left: calc(var(--label) + var(--luecke));
  }

  .recht .fuss {
    padding-left: 0;
  }
}
