/* ==========================================================================
   Matthias Wiesenauer – private Homepage
   Ein Stylesheet, keine externen Ressourcen, kein JavaScript.
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, SIL Open Font License) ---------- */
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f2f4f3;      /* kühles Weiß */
  --ink: #15302e;        /* tiefes Petrol – Text, Name */
  --ink-soft: #4d605d;   /* Fließtext gedämpft */
  --rule: #c9d4d1;       /* Linien */
  --accent: #2b6762;     /* Links, Fokus */
  --frame: #dbe4e1;      /* Porträt-Hintergrund */

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.125rem;
  --display: clamp(3rem, 1.6rem + 6.4vw, 6.75rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0 0 1em; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; color: var(--paper); }

/* ---------- Kopfzeile ---------- */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}
.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
}
.site-nav a,
.lang a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover,
.lang a:hover { color: var(--ink); text-decoration: underline; }

.lang {
  display: flex;
  gap: 0.25rem;
  font-size: var(--step--1);
  margin-left: auto;
}
.lang a,
.lang span { padding: 0.25rem 0.4rem; }
.lang [aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}

.home-link {
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding-block: clamp(2.5rem, 8vw, 6.5rem) clamp(3rem, 8vw, 6rem);
}

.hero h1 {
  font-weight: 300;
  font-size: var(--display);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero h1 span { display: block; }
.hero h1 span + span { padding-left: 0.6em; }

.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  line-height: 1.45;
  max-width: 30em;
  color: var(--ink);
  margin-bottom: 2rem;
}

.roles {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.roles li + li { margin-top: 0.35rem; }
.roles strong { color: var(--ink); font-weight: 600; }

/* Das Porträt im Bogen – das eine prägende Element der Seite */
.portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 50vw 50vw 0 0;
  overflow: hidden;
  background: var(--frame);
  max-width: 24rem;
  justify-self: end;
  width: 100%;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* ---------- Abschnitte ---------- */
.section .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  /* Trennlinie nur über der Inhaltsbreite, nicht über dem Seitenrand */
  background: linear-gradient(var(--rule), var(--rule)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px;
}
.section h2 {
  font-size: var(--step-3);
  letter-spacing: -0.01em;
}
.section .body { max-width: 40rem; }
.section .body p { color: var(--ink-soft); }
.section .body p.strong { color: var(--ink); font-size: var(--step-1); line-height: 1.5; }

/* Schwerpunkte */
.focus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem clamp(1.5rem, 4vw, 3rem);
  max-width: none;
}
.focus h3 {
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}
.focus p { color: var(--ink-soft); margin: 0; }

/* Beirat */
.points {
  margin: 0 0 1em;
  padding-left: 1.1em;
  color: var(--ink-soft);
}
.points li { padding-left: 0.3em; }
.points li + li { margin-top: 0.4rem; }
.points li::marker { color: var(--accent); }

/* Kontakt */
.section .body .contact-line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.button:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Rechtstexte ---------- */
.legal .wrap {
  max-width: 48rem;
  padding-block: clamp(2rem, 6vw, 4.5rem) 4rem;
}
.legal h1 {
  font-weight: 300;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: var(--step-2);
  margin: 2.5rem 0 0.75rem;
}
.legal h3 {
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.legal p,
.legal li { color: var(--ink-soft); }
.legal address { font-style: normal; color: var(--ink); margin-bottom: 1em; }
.legal .note { font-size: var(--step--1); }

/* Platzhalter, die vor dem Upload ersetzt werden müssen */
.todo {
  background: #fdf2c4;
  color: #5a4500;
  padding: 0 0.25em;
  border-radius: 2px;
}

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem 2.5rem;
}
.site-footer ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.disclaimer {
  flex-basis: 100%;
  max-width: 44rem;
  margin: 0;
}

/* ---------- Responsiv ---------- */
@media (max-width: 52rem) {
  .site-nav { display: none; }
  .hero .wrap {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .portrait {
    order: -1;
    max-width: 14rem;
    justify-self: start;
  }
  .hero h1 span + span { padding-left: 0; }
  .section .wrap { grid-template-columns: 1fr; gap: 1.25rem; }
  .focus { grid-template-columns: 1fr; gap: 1.75rem; }
  .focus h3 { font-size: var(--step-1); }
}

@media print {
  .site-nav, .lang, .skip { display: none; }
  body { background: #fff; }
  a { color: inherit; }
}
