/* ------------------------------------------------------------------
   kaspair.ch — Stilblatt
   Farben und Typografie 1:1 aus dem Phronesis Styleguide.
   Diese Datei ist sprachunabhaengig und wird von allen Sprachfassungen
   gemeinsam genutzt. Aenderungen hier wirken auf alle Sprachen.
   ------------------------------------------------------------------ */

:root{
  /* Farben */
  --tinte:      #23262D;
  --dunkel:     #22232B;
  --papier:     #F8F6F2;
  --linie:      #E4E0D6;
  --linie-fein: #EEEBE2;
  --leise:      #6B6459;

  --aletheia:   #C0851F;   /* Gold */
  --mnemosyne:  #4076B9;   /* Blau */
  --methodos:   #439458;   /* Gruen */
  --kairon:     #D15D51;   /* Terrakotta */

  /* Typografie */
  --serif:  "EB Garamond", Georgia, "Iowan Old Style", serif;
  --sans:   "Hanken Grotesk", -apple-system, "Segoe UI", system-ui, sans-serif;

  /* Raster */
  --maxw: 780px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------- Kopf */
.absender{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.absender-marke{
  display: flex;
  align-items: center;
  gap: 14px;
}
.absender-logo{
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.absender-logo img{
  width: 100%; height: 100%;
  display: block;
  border-radius: 50%;
}
.absender-name{
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--tinte);
}
.absender-name .cap{ font-variant: small-caps; letter-spacing: 0.02em; }

/* --------------------------------------------------------------- Sprachwahl */
.sprachwahl{
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
}
.sprachwahl a,
.sprachwahl span.aktiv{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.sprachwahl a{
  color: var(--leise);
  transition: color .2s, border-color .2s;
}
.sprachwahl a:hover{
  color: var(--tinte);
  border-color: var(--linie);
}
.sprachwahl span.aktiv{
  color: var(--tinte);
  border-color: var(--tinte);
}
.sprachwahl .trenner{
  color: var(--linie);
  font-size: 12px;
  user-select: none;
}

/* --------------------------------------------------------------- Hero */
.hero{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 32px 100px;
}
.hero-signet{
  width: 96px; height: 96px;
  margin: 0 0 44px;
  display: block;
}
img.hero-signet{ height: auto; }
.hero h1{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: var(--tinte);
}
.hero-lead{
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--leise);
  max-width: 52ch;
  margin: 0 0 40px;
}
.hero-cta{
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 1.5px solid var(--tinte);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.hero-cta:hover{
  color: var(--methodos);
  border-color: var(--methodos);
}
.hero-cta::after{
  content: " \2192";
  font-family: var(--sans);
}

/* --------------------------------------------------------------- Sektion */
section{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 32px;
  border-top: 1px solid var(--linie);
}
.eyebrow{
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leise);
  margin: 0 0 20px;
}
section h2{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--tinte);
}
section p{
  max-width: 62ch;
  margin: 0 0 16px;
}
section p:last-child{ margin-bottom: 0; }

/* --------------------------------------------------------------- Ueber mich */
.about p{
  font-size: 17px;
  color: var(--tinte);
}

/* --------------------------------------------------------------- Werkzeuge */
.werkzeuge{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 32px;
}
.werkzeug{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--linie-fein);
}
.werkzeug:first-child{ border-top: none; padding-top: 8px; }
.werkzeug-glyph{
  width: 56px; height: 56px;
  display: block;
  margin-top: 4px;
}
.werkzeug-glyph svg,
.werkzeug-glyph img{ width: 100%; height: 100%; display: block; }
.werkzeug-body h3{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--tinte);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.werkzeug-body h3 .rolle{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leise);
  position: relative;
  top: -2px;
}
.werkzeug-body .beschreibung{
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinte);
  margin: 0 0 8px;
  max-width: 54ch;
}
.werkzeug-body .auspraegung{
  font-size: 14px;
  font-family: var(--sans);
  font-style: italic;
  color: var(--leise);
  margin: 0;
}

/* --------------------------------------------------------------- Publikationen */
.pubs{ list-style: none; padding: 0; margin: 32px 0 0; }
.pubs li{
  padding: 20px 0;
  border-top: 1px solid var(--linie-fein);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
}
.pubs li:first-child{ border-top: none; padding-top: 8px; }
.pubs .titel{
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  color: var(--tinte);
}
.pubs .titel a{
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
  padding-bottom: 1px;
  transition: border-color .2s;
}
.pubs .titel a:hover{ border-color: var(--tinte); }
.pubs .meta{
  font-family: var(--sans);
  font-size: 13px;
  color: var(--leise);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pubs .untertitel{
  font-family: var(--sans);
  font-size: 15px;
  color: var(--leise);
  margin: 6px 0 0;
  line-height: 1.5;
  grid-column: 1 / -1;
  max-width: 62ch;
}
/* Hinweis, wenn ein Dokument nicht in der gelesenen Sprache vorliegt */
.pubs .sprachhinweis{
  font-family: var(--sans);
  font-size: 13px;
  color: var(--leise);
  margin: 6px 0 0;
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pubs .sprachhinweis::before{
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--linie);
  flex-shrink: 0;
}

/* --------------------------------------------------------------- Fuss */
footer{
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 40px 32px 60px;
  border-top: 1px solid var(--linie);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--leise);
}
footer a{
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
  padding-bottom: 1px;
}
footer a:hover{ border-color: var(--tinte); }
footer .rechts{ font-size: 12px; }

/* --------------------------------------------------------------- Sprachweiche */
.weiche{
  max-width: 520px;
  margin: 0 auto;
  padding: 120px 32px;
  font-family: var(--sans);
}
.weiche h1{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 20px;
}
.weiche ul{ list-style: none; padding: 0; margin: 28px 0 0; }
.weiche li{ padding: 12px 0; border-top: 1px solid var(--linie-fein); }
.weiche li:first-child{ border-top: none; }
.weiche a{
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
  padding-bottom: 1px;
  font-size: 18px;
}
.weiche a:hover{ border-color: var(--tinte); }

/* --------------------------------------------------------------- Mobil */
@media (max-width: 620px){
  .hero{ padding: 60px 24px 80px; }
  section{ padding: 48px 24px; }
  .absender{ padding: 28px 24px 0; }
  .werkzeug{
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }
  .werkzeug-glyph{ width: 44px; height: 44px; }
  .pubs li{ grid-template-columns: 1fr; }
  .pubs .meta{ white-space: normal; }
  footer{ padding: 32px 24px 48px; }
  .weiche{ padding: 80px 24px; }
}

/* ==================================================================
   Leseseiten der Dokumente
   Eigene Massverhaeltnisse: laengere Zeilen als auf der Startseite
   waeren hier ermuedend, kuerzere zerhacken die Argumentation.
   ================================================================== */

.dokument{
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.dokument .zurueck{
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leise);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 44px;
}
.dokument .zurueck:hover{ color: var(--tinte); }
.dokument .zurueck::before{ content: "\2190\00a0\00a0"; }

.dokument h1{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--tinte);
}
.dokument .untertitel{
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--leise);
  margin: 0 0 32px;
  max-width: 46ch;
}
.dokument .vorspann{
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--leise);
  margin: 0 0 8px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--linie);
}
.dokument .vorspann span{ display: block; }

/* --------------------------------------------------------------- Inhalt */
.inhalt{
  margin: 40px 0 56px;
  padding: 26px 28px;
  background: rgba(228, 224, 214, 0.28);
  border-radius: 2px;
}
.inhalt p{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leise);
  margin: 0 0 14px;
}
.inhalt ol{
  list-style: none;
  counter-reset: kapitel;
  padding: 0;
  margin: 0;
}
.inhalt li{
  counter-increment: kapitel;
  margin: 0 0 7px;
  padding-left: 30px;
  position: relative;
  line-height: 1.45;
}
.inhalt li::before{
  content: counter(kapitel);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--leise);
  font-variant-numeric: tabular-nums;
}
.inhalt a{
  font-family: var(--serif);
  font-size: 17px;
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.inhalt a:hover{ border-color: var(--linie); }

/* --------------------------------------------------------------- Fliesstext */
.text h2{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
  margin: 56px 0 18px;
  color: var(--tinte);
  scroll-margin-top: 24px;
}
.text h3{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  margin: 40px 0 14px;
  color: var(--tinte);
  scroll-margin-top: 24px;
}
.text h4{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin: 32px 0 10px;
  color: var(--leise);
  scroll-margin-top: 24px;
}
.text h2:first-child, .text h3:first-child{ margin-top: 0; }

.text p{
  font-size: 17px;
  line-height: 1.68;
  margin: 0 0 18px;
  color: var(--tinte);
}
.text ul, .text ol{
  margin: 0 0 20px;
  padding-left: 22px;
}
.text li{
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 8px;
}
.text strong{ font-weight: 600; }
.text em{ font-style: italic; }

/* Abbildungen: nie vergroessern. Ein Diagramm von 900 Pixeln darf die
   Spalte fuellen, ein Zeichen von 40 Pixeln nicht — sonst wird es unscharf
   und nimmt eine Bedeutung ein, die es nicht hat. */
.text figure{
  margin: 36px 0;
}
.text figure img{
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--linie-fein);
}
.text figcaption{
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--leise);
  margin-top: 10px;
  max-width: 60ch;
}

/* Das Signet eines Werkzeugs, unmittelbar vor seinem Kapitel. */
.text .signet{
  margin: 52px 0 -8px;
}
.text .signet img{
  display: block;
  width: 64px;
  height: 64px;
}

/* Breite Tabellen duerfen scrollen, die Seite nicht. */
.tabelle-rahmen{
  overflow-x: auto;
  margin: 28px 0 32px;
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.text table{
  border-collapse: collapse;
  width: 100%;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
}
.text th, .text td{
  text-align: left;
  vertical-align: top;
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--linie-fein);
}
.text th{
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leise);
}
.text tr:last-child td{ border-bottom: none; }

/* --------------------------------------------------------------- Dokumentfuss */
.dokument-fuss{
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--linie);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--leise);
}
.dokument-fuss a{
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
  padding-bottom: 1px;
}
.dokument-fuss a:hover{ border-color: var(--tinte); }

/* --------------------------------------------------------------- Publikationsverweise */
.pubs .wege{
  font-family: var(--sans);
  font-size: 13px;
  color: var(--leise);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pubs .wege a{
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
  padding-bottom: 1px;
}
.pubs .wege a:hover{ border-color: var(--tinte); }
.pubs .wege .trenner{ color: var(--linie); }

@media (max-width: 620px){
  .dokument{ padding: 28px 24px 64px; }
  .inhalt{ padding: 20px 20px; }
  .text h2{ font-size: 24px; margin-top: 44px; }
  .text h3{ font-size: 19px; }
  .pubs .wege{ white-space: normal; }
}

/* ------------------------------------------------------------------
   Eingebettete Zeichen der Logofamilie
   Die SVG stehen direkt in der Seite, statt einzeln geladen zu werden —
   auf diesem Hosting kostet jede Anfrage Sekunden. Quelle bleibt
   vorlage/assets/logos/; build.py liest sie beim Bauen ein.
   ------------------------------------------------------------------ */
.werkzeug-zeichen{ width: 100%; height: 100%; display: block; }
.signet-zeichen{ width: 64px; height: 64px; display: block; }
svg.hero-signet{ width: 96px; height: 96px; display: block; margin: 0 0 44px; }
