:root {
  --papier: #F3F0E8;
  --papier-2: #EAE5D8;
  --tinte: #13294B;
  --t1: rgba(19, 41, 75, .92);
  --t2: rgba(19, 41, 75, .68);
  --t3: rgba(19, 41, 75, .48);
  --linie: rgba(19, 41, 75, .14);
  --orange: #F39200;
  --orange-dunkel: #D97F00;
  --hell: #F3F0E8;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --rand: 20px;
  --luft: 72px;
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
  --radius: 4px;
}
@media (min-width: 900px) {
  :root { --rand: 40px; --luft: 128px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--t1);
  font: 400 17px/1.5 var(--sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; max-width: 62ch; }
figure { margin: 0; }

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; line-height: 1.4; }
.klein { color: var(--t3); margin-bottom: 8px; }
.platzhalter { color: var(--t3); border-bottom: 1px dashed var(--t3); }
.platzhalter-text { color: var(--t3); font-style: italic; font-size: 15px; }

.rahmen { max-width: 1200px; margin: 0 auto; padding: 0 var(--rand); }
.abschnitt { padding: var(--luft) 0; }

.h2 {
  font: 500 40px/1.05 var(--serif);
  letter-spacing: -0.025em;
  color: var(--tinte);
  margin: 0 0 24px;
}
@media (min-width: 900px) { .h2 { font-size: 64px; } }
.h3 { font: 500 24px/1.2 var(--serif); letter-spacing: -0.01em; color: var(--tinte); margin: 40px 0 16px; }
.lead { font: 400 21px/1.4 var(--serif); color: var(--tinte); margin-bottom: 24px; }
@media (min-width: 900px) { .lead { font-size: 26px; } }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--orange); color: #1E1405;
  font: 600 16px/1 var(--sans); text-decoration: none;
  border-radius: 999px;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.knopf:hover { background: var(--orange-dunkel); }
.knopf:active { transform: scale(.98); }
.knopf-klein { min-height: 40px; padding: 0 16px; font-size: 14px; }
.textlink { display: inline-block; padding: 8px 0; color: var(--tinte); font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color 150ms ease-out; }
.textlink:hover { color: var(--t2); }

/* Kopf */
.kopf {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 var(--rand);
  transition: background-color 250ms ease-out, box-shadow 250ms ease-out;
}
.kopf.gescrollt { background: rgba(243, 240, 232, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--linie); }
.kopf-name { padding: 8px 0; font: 500 20px/1 var(--serif); letter-spacing: -0.01em; color: var(--tinte); text-decoration: none; margin-right: auto; }
.kopf-nav { display: none; gap: 24px; }
.kopf-nav a { font-size: 15px; color: var(--t2); text-decoration: none; transition: color 150ms ease-out; }
.kopf-nav a:hover { color: var(--tinte); }
@media (min-width: 900px) { .kopf-nav { display: flex; } }

/* Einstieg: Andreas vor Ballwil im Morgennebel */
.einstieg { background: var(--tinte); }
.einstieg-buehne {
  position: relative;
  height: 68svh; min-height: 520px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.einstieg-landschaft {
  position: absolute; inset: 0;
  width: 100%; height: 115%;
  object-fit: cover; object-position: 54% 30%;
  will-change: transform;
}
.einstieg-buehne::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 55%;
  background: linear-gradient(to bottom, rgba(24, 20, 12, .5), rgba(24, 20, 12, 0));
  pointer-events: none;
}
.einstieg-kopf { position: relative; z-index: 2; padding: 88px var(--rand) 0; }
.einstieg-zeile { color: rgba(246, 241, 228, .8); margin-bottom: 16px; }
.titel {
  font: 500 64px/0.95 var(--serif);
  letter-spacing: -0.035em;
  color: #F6F1E4;
  margin: 0;
}
.zeile { display: block; overflow: hidden; padding-bottom: .06em; }
.zeile > span { display: block; }

.einstieg-bild {
  position: absolute; z-index: 1;
  bottom: -2px; right: -12px;
  width: min(84vw, 380px);
}
.einstieg-bild img { width: 100%; filter: drop-shadow(0 -8px 40px rgba(14, 31, 58, .35)); }
.einstieg-ort {
  display: none;
  position: absolute; z-index: 2; left: var(--rand); bottom: 16px;
  margin: 0; font-size: 12px; color: rgba(246, 241, 228, .7);
}

.einstieg-karte {
  position: relative; z-index: 3;
  background: var(--tinte); color: var(--hell);
  padding: 24px var(--rand) 40px;
}
.einstieg-satz { font-size: 17px; color: rgba(243, 240, 232, .9); max-width: 40ch; margin-bottom: 24px; }
.einstieg-aktion { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.einstieg-karte .textlink { color: var(--hell); }
.einstieg-karte .textlink:hover { color: var(--orange); }
.einstieg-fakten { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 0; padding: 0; }
.einstieg-fakten div { padding: 8px 16px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(243, 240, 232, .25); }
.einstieg-fakten dt { display: none; }
.einstieg-fakten dd { margin: 0; color: var(--hell); }
.einstieg-fakten .platzhalter { color: rgba(243, 240, 232, .6); border-color: rgba(243, 240, 232, .5); }

@media (min-width: 900px) {
  .einstieg { position: relative; }
  .einstieg-kopf { padding: 128px max(var(--rand), calc((100vw - 1200px) / 2 + var(--rand))) 0; }
  .titel { font-size: clamp(96px, 10vw, 152px); letter-spacing: -0.045em; }
  .einstieg-bild { right: 0; width: auto; height: calc(100% - 104px); }
  .einstieg-bild img { width: auto; height: 100%; }
  .einstieg-ort { left: auto; right: var(--rand); bottom: 24px; }
  .einstieg-buehne { height: calc(100svh - 168px); min-height: 560px; }
  .einstieg-karte {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 64px;
    min-height: 168px;
    padding: 40px max(var(--rand), calc((100vw - 1200px) / 2 + var(--rand)));
    box-shadow: 0 -1px 0 rgba(243, 240, 232, .12);
  }
  .einstieg-satz { font-size: 19px; margin: 0; max-width: 58ch; }
  .einstieg-fakten { display: none; }
}

/* Themen */
.themen { background: var(--papier); }
.themen .lead { color: var(--t2); }
.themen-liste { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--linie); }
.thema {
  display: grid; gap: 16px;
  padding: 40px 0;
  border-bottom: 1px solid var(--linie);
}
.thema-titel { font: 500 28px/1.12 var(--serif); letter-spacing: -0.015em; color: var(--tinte); margin: 0; max-width: 18ch; }
.thema-bezug p:not(.klein) { color: var(--t2); }
@media (min-width: 900px) {
  .thema { grid-template-columns: 1.2fr 1fr; gap: 64px; padding: 40px 0; }
  .thema-titel { font-size: 40px; }
}
.kernthema {
  margin-top: 64px; padding: 40px 24px;
  background: var(--tinte); color: var(--hell);
  border-radius: var(--radius);
}
.kernthema .klein { color: rgba(243, 240, 232, .6); }
.kernthema-satz { font: 400 26px/1.25 var(--serif); letter-spacing: -0.01em; margin: 0; max-width: 32ch; }
@media (min-width: 900px) {
  .kernthema { padding: 64px; }
  .kernthema-satz { font-size: 40px; }
}

/* Über mich */
.ueber { background: var(--papier-2); }
.ueber-raster { display: grid; gap: 40px; }
.ueber-bild { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; max-width: 480px; }
.ueber-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ueber-text p:not(.lead) { color: var(--t2); }
@media (min-width: 900px) {
  .ueber-raster { grid-template-columns: 5fr 6fr; gap: 104px; align-items: start; }
  .ueber-bild { position: sticky; top: 104px; }
}
.engagement { width: 100%; border-collapse: collapse; }
.engagement th, .engagement td { text-align: left; padding: 16px 0; border-top: 1px solid var(--linie); vertical-align: baseline; }
.engagement th { font-weight: 500; color: var(--tinte); padding-right: 16px; }
.engagement td { color: var(--t3); white-space: nowrap; text-align: right; }

/* So wählen Sie mich */
.waehlen-raster { display: grid; gap: 64px; }
.waehlen-text p:not(.lead) { color: var(--t2); }
@media (min-width: 900px) {
  .waehlen-raster { grid-template-columns: 1fr 1fr; gap: 104px; align-items: center; }
}
.zettel {
  background: #FBF9F3;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 0 var(--linie), 0 24px 40px -24px rgba(19, 41, 75, .25);
  transform: rotate(-1.2deg);
}
@media (min-width: 900px) { .zettel { padding: 40px; } }
.zettel-kopf { border-bottom: 2px solid var(--tinte); padding-bottom: 16px; margin-bottom: 8px; }
.zettel-kopf .mono { color: var(--t2); margin-bottom: 8px; }
.zettel-liste { font: 500 22px/1.2 var(--serif); color: var(--tinte); margin: 0; }
.zettel-zeilen { list-style: none; margin: 0; padding: 0; counter-reset: z; }
.zettel-zeilen li {
  counter-increment: z;
  position: relative;
  display: flex; align-items: center; gap: 16px;
  min-height: 48px;
  border-bottom: 1px solid var(--linie);
  font-size: 15px;
}
.zettel-zeilen li::before { content: counter(z) "."; font: 400 13px/1 var(--mono); color: var(--t3); width: 24px; flex: none; }
.gedruckt { color: var(--tinte); }
.gedruckt.leer { color: var(--t3); }
.markiert .gedruckt { font-weight: 600; }
.gestrichen::after {
  content: ""; position: absolute; left: 40px; right: 16px; top: 50%;
  height: 2px; background: var(--tinte); transform: rotate(-1deg);
}
.hand .geschrieben {
  font: italic 400 24px/1 var(--serif);
  color: #1F4FA0;
  display: inline-block;
  white-space: nowrap;
  clip-path: inset(0 0 0 0);
}
.haken {
  margin-left: auto;
  font: 500 13px/1 var(--mono);
  color: #1E1405; background: var(--orange);
  padding: 8px; border-radius: 999px;
}
.zettel-fuss { color: var(--t3); margin: 16px 0 0; }

/* Kontakt */
.kontakt { background: var(--tinte); color: var(--hell); padding: var(--luft) 0; }
.kontakt-titel {
  font: 500 64px/0.95 var(--serif); letter-spacing: -0.035em;
  margin: 0 0 24px; color: var(--hell);
}
@media (min-width: 900px) { .kontakt-titel { font-size: 128px; letter-spacing: -0.045em; } }
.kontakt-satz { font: 400 22px/1.35 var(--serif); color: rgba(243, 240, 232, .8); max-width: 30ch; margin-bottom: 40px; }
@media (min-width: 900px) { .kontakt-satz { font-size: 30px; } }
.kontakt-aktion { margin-bottom: 40px; }
.kontakt-kanaele { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(243, 240, 232, .18); }
.kontakt-kanaele a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-bottom: 1px solid rgba(243, 240, 232, .18);
  font: 400 28px/1 var(--serif); letter-spacing: -0.01em;
  color: var(--hell); text-decoration: none;
  transition: color 150ms ease-out, padding-left 250ms var(--expo);
}
.kontakt-kanaele a::after { content: "↗"; font: 400 20px/1 var(--sans); color: rgba(243, 240, 232, .5); }
.kontakt-kanaele a:hover { color: var(--orange); padding-left: 8px; }
@media (min-width: 900px) { .kontakt-kanaele a { font-size: 40px; } }

/* Fuss */
.fuss { background: #0E1F3A; color: rgba(243, 240, 232, .6); padding: 40px 0; }
.fuss-raster { display: grid; gap: 8px; }
.fuss-name { font: 500 24px/1 var(--serif); color: var(--hell); margin: 0 0 8px; }
.fuss .mono { margin: 0; }
.fuss-entwurf { margin-top: 16px !important; }
.fuss-foto { margin-top: 16px !important; }
.fuss a { color: var(--hell); display: inline-block; padding: 8px 0; }
.themen-hinweis { margin-top: 24px; }

/* Bewegung */
.js .zeile > span { transform: translateY(105%); }
.js.bereit .zeile > span { transform: none; transition: transform 1000ms var(--expo); }
.js.bereit .zeile:nth-child(2) > span { transition-delay: 90ms; }

.js .einstieg-bild { clip-path: inset(100% 0 0 0); }
.js .einstieg-bild img { transform: scale(1.15); transform-origin: 50% 100%; }
.js.bereit .einstieg-bild { clip-path: inset(0 0 0 0); transition: clip-path 1200ms var(--expo) 150ms; }
.js.bereit .einstieg-bild img { transform: none; transition: transform 1400ms var(--expo) 150ms; }

.js .hand .geschrieben { clip-path: inset(0 100% 0 0); }
.js .hand .haken { opacity: 0; transform: scale(.6); }
.js .zettel.sichtbar .geschrieben { clip-path: inset(0 0 0 0); transition: clip-path 1400ms cubic-bezier(.45, .05, .35, 1) 200ms; }
.js .zettel.sichtbar .haken { opacity: 1; transform: none; transition: opacity 250ms ease-out 1500ms, transform 600ms var(--expo) 1500ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .zeile > span, .js .einstieg-bild, .js .einstieg-bild img,
  .js .hand .geschrieben, .js .hand .haken {
    transform: none !important; clip-path: none !important; opacity: 1 !important; transition: none !important;
  }
}

/* Kopf über dem Foto hell */
.kopf:not(.gescrollt) .kopf-name { color: #F6F1E4; }
.kopf:not(.gescrollt) .kopf-nav a { color: rgba(246, 241, 228, .8); }
.kopf:not(.gescrollt) .kopf-nav a:hover { color: #F6F1E4; }

.nur-gross { display: none; }
@media (min-width: 900px) { .nur-gross { display: inline; } }
.einstieg-zeile { max-width: none; }
.einstieg-satz { text-wrap: pretty; }
