/* pfitzi.ch – Swiss Style
   Papier, Schwarz und zwei Druckfarben (Grün, Lila). Helvetica, 12-Spalten-Raster, linksbündig.
   Keine Fremdschriften, keine externen Dateien. */

:root {
  --papier: #f2f2ee;
  --schwarz: #000;
  --gruen: #00a651;
  --lila: #5b2be0;
  --grau: #86868a;
  --linie: rgba(0, 0, 0, .9);

  --schrift: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rand: clamp(20px, 4vw, 56px);
  --luecke: clamp(16px, 2vw, 28px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--schwarz);
  font: 400 17px/1.45 var(--schrift);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lila); outline-offset: 3px; }

.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Raster */
.raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--luecke);
  padding-inline: var(--rand);
  max-width: 1440px;
  margin-inline: auto;
}

/* Kopf */
.kopf {
  padding-block: 22px;
  align-items: baseline;
  font-weight: 700;
  font-size: 15px;
}
.marke { grid-column: 1 / span 3; text-decoration: none; }
.navi { grid-column: 4 / -1; display: flex; gap: 28px; }
.navi a { text-decoration: none; }
.navi a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Held: Name, Kurztext, Regelkreis */
.held {
  padding-block: clamp(40px, 8vw, 110px) clamp(56px, 8vw, 120px);
  row-gap: clamp(28px, 4vw, 48px);
  border-bottom: 3px solid var(--schwarz);
}

.name {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 700;
  /* „Pfitzenmaier“ samt Einzug ist gut 6 Schrifthöhen breit: so bleibt es auf jeder Breite in einer Zeile. */
  font-size: clamp(40px, 13.6vw, 206px);
  line-height: .86;
  letter-spacing: -.04em;
  font-variant-ligatures: none;
}
.name span { display: block; white-space: nowrap; }
.name span:last-child { padding-left: .52em; }

.kurz {
  grid-column: 1 / span 5;
  align-self: start;
  margin: 0;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.35;
  font-weight: 500;
  max-width: 34ch;
}

.kreis { grid-column: 6 / -1; margin: 0; }
.kreis svg { width: 100%; height: auto; display: block; overflow: visible; }
.kreis figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--grau);
  max-width: 52ch;
}

.leitung path { fill: none; stroke: var(--schwarz); stroke-width: 4; }
.spitze path { fill: var(--schwarz); }
.summe { fill: var(--papier); stroke: var(--schwarz); stroke-width: 4; }
.vz { font: 700 22px var(--schrift); }
.block rect { stroke: none; }
.block text { font: 700 19px var(--schrift); letter-spacing: -.01em; }
.block.gruen rect { fill: var(--gruen); }
.block.lila rect { fill: var(--lila); mix-blend-mode: multiply; }
.block.lila text { fill: #fff; }
.block.hohl rect { fill: var(--papier); stroke: var(--schwarz); stroke-width: 4; }
.groesse { font: 700 17px var(--schrift); }
.puls { fill: var(--lila); }

/* Abschnitte */
.abschnitt {
  padding-block: clamp(44px, 6vw, 84px);
  border-bottom: 1px solid var(--linie);
}
.seitlich {
  grid-column: 1 / span 3;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}
.inhalt { grid-column: 4 / -1; }

.gross {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-size: clamp(26px, 3.1vw, 46px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.025em;
  max-width: 22ch;
}

/* Studium */
.fakten { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--luecke); }
.fakten div { border-top: 1px solid var(--linie); padding: 12px 0 22px; }
.fakten dt { font-size: 14px; color: var(--grau); }
.fakten dd { margin: 2px 0 0; font-size: 19px; font-weight: 500; }

/* Projektliste */
.liste { width: 100%; border-collapse: collapse; }
.liste thead th {
  text-align: left; font-size: 14px; font-weight: 400; color: var(--grau);
  padding: 0 var(--luecke) 10px 0; border-bottom: 3px solid var(--schwarz);
}
.liste tbody th, .liste td {
  text-align: left; vertical-align: top;
  padding: 16px var(--luecke) 18px 0;
  border-bottom: 1px solid var(--linie);
}
.liste tbody th { font-size: 21px; font-weight: 700; letter-spacing: -.01em; width: 26%; white-space: nowrap; }
.liste td:nth-child(2) { max-width: 52ch; }
.liste td:last-child { width: 18%; color: var(--grau); font-size: 15px; padding-right: 0; }
.liste tbody tr { transition: background-color .25s; }
.liste tbody tr:hover { background: linear-gradient(90deg, var(--gruen) 0 6px, transparent 6px); }
.liste tbody tr:hover th { padding-left: 16px; }
.liste tbody th { transition: padding-left .25s cubic-bezier(.2, .8, .2, 1); }

/* Werkzeug */
.spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--luecke); }
.spalten div { border-top: 3px solid var(--schwarz); padding-top: 12px; }
.spalten h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.spalten p { margin: 0; max-width: 24ch; }

/* Webseiten-Anfrage */
.anfrage {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 22px;
  background: var(--schwarz);
  color: var(--papier);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.anfrage:hover, .anfrage:focus-visible { background: var(--gruen); color: var(--schwarz); }

/* Kontakt: die eine schwarze Fläche */
.kontakt {
  max-width: none;
  background: var(--schwarz);
  color: var(--papier);
  padding-block: clamp(64px, 9vw, 140px);
  padding-inline: max(var(--rand), calc((100vw - 1440px) / 2 + var(--rand)));
}
.hell { color: var(--papier); }
.mail {
  display: inline-block;
  font-size: clamp(40px, 8.4vw, 132px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
  text-decoration: none;
  color: var(--gruen);
  background: linear-gradient(var(--lila), var(--lila)) 0 100% / 0 .12em no-repeat;
  transition: background-size .45s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: .06em;
  word-break: break-word;
}
.mail:hover, .mail:focus-visible { background-size: 100% .12em; }
.ort { margin: 22px 0 0; color: var(--grau); }

/* Kontaktformular: Linien statt Kästen, auf der schwarzen Fläche */
.formular {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--luecke);
  row-gap: 26px;
  max-width: 880px;
}
.formular .breit, .formular-titel { grid-column: 1 / -1; }
.formular-titel { margin: 0; font-weight: 700; color: var(--papier); }
.feld { display: grid; gap: 6px; }
.feld span { font-size: 14px; color: var(--grau); }
.feld input, .feld textarea {
  font: 500 19px/1.4 var(--schrift);
  color: var(--papier);
  background: transparent;
  border: 0;
  border-bottom: 2px solid #4a4a4d;
  border-radius: 0;
  padding: 6px 0 10px;
  resize: vertical;
  transition: border-color .2s;
}
.feld input:focus, .feld textarea:focus { outline: none; border-bottom-color: var(--gruen); }
.feld input:user-invalid, .feld textarea:user-invalid { border-bottom-color: #e0352b; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.absenden { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.absenden button {
  font: 700 17px var(--schrift);
  padding: 14px 22px;
  border: 0;
  border-radius: 0;
  background: var(--papier);
  color: var(--schwarz);
  cursor: pointer;
  transition: background-color .2s;
}
.absenden button:hover, .absenden button:focus-visible { background: var(--gruen); }
.absenden button:disabled { background: #4a4a4d; color: var(--papier); cursor: progress; }
.hinweis { margin: 0; font-size: 14px; color: var(--grau); max-width: 46ch; }
.status { margin: 0; font-weight: 700; min-height: 1.45em; }
.status.ok { color: var(--gruen); }
.status.fehler { color: #ff6b5e; }
.status a { color: inherit; }

/* Fuß */
.fuss { padding-block: 22px 30px; font-size: 14px; color: var(--grau); }
.fuss span { grid-column: 1 / span 3; }
.fuss a { grid-column: 4 / -1; }

/* Schmal */
@media (max-width: 860px) {
  .kurz, .kreis, .seitlich, .inhalt, .marke, .navi, .fuss span, .fuss a { grid-column: 1 / -1; }
  .navi { gap: 18px; margin-top: 6px; }
  .seitlich { margin-bottom: 18px; }
  .fakten, .spalten, .formular { grid-template-columns: 1fr; }
  .spalten div { margin-bottom: 20px; }
  .liste thead { display: none; }
  .liste, .liste tbody, .liste tr, .liste th, .liste td { display: block; width: auto !important; }
  .liste tbody th { padding-bottom: 4px; white-space: normal; }
  .liste td { border-bottom: 0; padding-block: 2px; }
  .liste tr { border-bottom: 1px solid var(--linie); padding-bottom: 14px; margin-bottom: 4px; }
  .liste tbody th { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .puls { display: none; }
  * { transition: none !important; }
}
