/* TL Sourcing — gemeinsames Stylesheet.
   Schriften liegen lokal unter assets/fonts/, nicht bei Google:
   fonts.googleapis.com ist in Festlandchina blockiert, und dort sitzt ein
   Teil der Leser. */

@font-face {
  font-family: 'Anton';
  src: url('/assets/fonts/anton-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper:    #faf8f5;
  --paper-2:  #f3f2f7;
  --paper-3:  #eae9f0;
  --ink:      #14161d;
  --ink-2:    #4c515f;
  --ink-3:    #62667a;   /* dunkler als optisch nötig — 4.5:1 auf dem Papierton */
  --line:     #dedce6;
  --line-2:   #c7c4d3;

  /* Ein einziger Akzent, sonst nichts — die Farbe wirkt nur, solange sie
     allein steht. Farbton kommt aus dem Logo (#B12DEA, Ton 282°), ist aber
     eine Spur dunkler: das Original schafft als Textfarbe nur 4,47:1 und
     fällt damit knapp durch WCAG AA. So sind es 5,35:1 auf dem Papierton
     und 5,68:1 als Fläche mit weißer Schrift, bei gleichem Farbeindruck.
     Im Logo selbst bleibt das Original — Logos sind von der Anforderung
     ausdrücklich ausgenommen. */
  --accent:      #a218dc;
  --accent-2:    #8a12bc;
  --accent-soft: #f7e8fd;
  --dark:        #0d0d14;
  --maxw:        1080px;

  /* Abstände auf 8er-Basis. Jeder Abstand im Blatt kommt aus dieser Reihe —
     das ist der Unterschied zwischen „wirkt ordentlich" und ordentlich. */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px;

  /* Kanten knapp halten: weiche Radien lesen sich als App, harte als Druck. */
  --r: 2px;

  --display: 'Anton', 'Arial Narrow', 'Haettenschweiler', Impact, sans-serif;
  --sans: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

a { color: var(--accent); }
/* Adressen nicht mitten im Wort umbrechen — „info@tl-" auf der einen und
   „sourcing.de" auf der nächsten Zeile liest sich wie ein Fehler. */
a[href^="mailto:"], a[href^="tel:"] { white-space: nowrap; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; }

/* Kurze Akzentlinie über der Rubrik — das klassische Schweizer Mittel, um
   einen Abschnitt zu eröffnen, ohne ein Ornament zu benutzen. */
.eyebrow {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin: 0 0 var(--s2);
}
.eyebrow::before {
  content: ""; display: block; width: 28px; height: 2px;
  background: var(--accent); margin-bottom: 12px;
}
.lead { font-size: 18px; line-height: 1.65; color: var(--ink-2); margin: 0 0 20px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* ---------- Kopf ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px; flex-wrap: wrap;
}
/* Bildmarke plus Schriftzug: Das Zeichen trägt die Farben, „Sourcing" bleibt
   Ink. Drei Farben in einem Wortzeichen von vier Zentimetern Breite wirken
   unruhig — bunt ist das Logo, nicht die Schrift daneben. */
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--display); font-size: 23px; font-weight: 400;
  color: var(--ink); text-decoration: none; letter-spacing: 0.02em;
  white-space: nowrap; margin-right: auto;
}
.brand img { height: 30px; width: auto; display: block; }

.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  font-size: 14.5px; color: var(--ink-2); text-decoration: none;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.lang {
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  border-left: 1px solid var(--line); padding-left: 20px;
}
.lang a { color: var(--ink-3); text-decoration: none; font-weight: 600; }
.lang a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  /* Flächig statt Verlauf. Der Schleier war Dekoration, und Dekoration nimmt
     einer Seite genau die Ruhe, die sie hier braucht. */
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: var(--s7) 0;
}
/* Breiten in px, nicht in ch: Anton ist schmal, ein ch misst dort deutlich
   weniger als bei der Fließschrift — in ch gerechnet werden Überschriften
   zu schmalen Säulen. */
.hero h1 {
  font-size: 52px; line-height: 1.08; margin: 0 0 20px; max-width: 700px;
}
.hero .lead { max-width: 60ch; font-size: 19px; }
.hero.compact { padding: var(--s6) 0; }
.hero.compact h1 { font-size: 42px; max-width: 660px; }

/* Kopf mit Bild: Text links, Aufnahme rechts. Das Bild steht im Markup
   hinter dem Text, damit auf dem Handy die Überschrift zuerst kommt. */
.hero-split { display: grid; grid-template-columns: 1fr 420px; gap: 52px; align-items: center; }
.hero-split img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r); border: 1px solid var(--line);
}

/* Kleines Porträt neben einer Zeile Text — „mit dieser Person sprechen Sie". */
.person { display: flex; gap: 20px; align-items: center; margin-top: 30px; }
.person img {
  width: 132px; height: auto; flex: none;
  border-radius: var(--r); border: 1px solid var(--line); display: block;
}
.person p { font-size: 15px; color: var(--ink-2); margin: 0; max-width: 44ch; }

/* ---------- Abschnitte ---------- */
section { padding: var(--s7) 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
section.tint { background: var(--paper-2); }
h2 { font-size: 34px; line-height: 1.16; margin: 0 0 var(--s2); max-width: 620px; }
h3 { font-size: 20px; line-height: 1.25; margin: 0 0 10px; }
p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  text-decoration: none; color: #fff; background: var(--accent);
  padding: 14px var(--s3); border-radius: var(--r);
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.cta-note { font-size: 14px; color: var(--ink-3); }

/* ---------- Karten & Raster ---------- */
.grid { display: grid; gap: var(--s3); margin-top: var(--s5); }
.grid.two   { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--s4);
}
section.tint .card { background: var(--paper); }
.card h3 { margin-top: 0; }
.card p { font-size: 15px; color: var(--ink-2); }
.card .num {
  font-family: var(--display); font-size: 15px; font-weight: 400;
  color: var(--accent); letter-spacing: 0.1em; display: block; margin-bottom: 10px;
  text-transform: uppercase;
}

a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease; }
a.card:hover { border-color: var(--accent); }
a.card .more { color: var(--accent); font-size: 14px; font-weight: 600; margin-top: 14px; display: block; }

/* Die zwei Türen auf der Startseite */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.door {
  border: 1px solid var(--line-2); border-radius: var(--r); padding: var(--s4);
  background: #fff; display: flex; flex-direction: column;
}
.door h3 { font-size: 21px; }
.door p { font-size: 15.5px; color: var(--ink-2); flex: 1; }
.door .btn { align-self: flex-start; margin-top: 20px; }

/* ---------- Bio mit Porträt ---------- */
.bio { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.bio figure { margin: 0; }
.bio img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r); border: 1px solid var(--line);
}
.bio figcaption { font-size: 13px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.bio .txt { max-width: 62ch; }

/* ---------- Werdegang ---------- */
.cv { margin-top: 38px; border-top: 1px solid var(--line); }
.cv-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 26px;
  padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.cv-label { font-family: var(--display); font-size: 18px; line-height: 1.2; color: var(--ink); }
.cv-item p { font-size: 15.5px; color: var(--ink-2); margin: 0; max-width: 60ch; }

/* ---------- Listen ---------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative; padding-left: 26px; margin-bottom: 13px;
  color: var(--ink-2); font-size: 15.5px; line-height: 1.6;
}
.ticks li::before {
  content: "—"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.ticks.check li::before { content: "✓"; }
.ticks.cross li::before { content: "✕"; color: var(--ink-3); }
.ticks li:last-child { margin-bottom: 0; }

/* ---------- Ablauf-Schritte ---------- */
.steps { margin-top: 40px; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 72px 1fr 200px; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.step-no {
  font-family: var(--display); font-size: 34px; color: var(--line-2);
  line-height: 1; font-weight: 400;
}
.step h3 { margin: 0 0 8px; }
.step p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.step-meta {
  font-size: 13.5px; color: var(--ink-3); border-left: 2px solid var(--line);
  padding-left: 16px; line-height: 1.55;
}

/* ---------- Formular ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--s5); align-items: start; }

/* Das Formular sitzt auf einer eigenen weißen Fläche: es hebt sich vom
   Papierton ab und liest sich dadurch als abgeschlossene Aufgabe. */
.form-panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--s4); margin-top: var(--s4);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field label {
  font-size: 13px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.field .hint {
  font-size: 12.5px; color: var(--ink-3); font-weight: 500;
  letter-spacing: 0; text-transform: none;
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  /* 16px ist kein Geschmack, sondern Pflicht: darunter zoomt iOS beim
     Antippen ins Feld hinein und der Nutzer landet verschoben auf der Seite. */
  font-size: 16px; line-height: 1.5; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 14px 16px; width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; background: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Der Fokusring muss auch bei erzwungenen Farben sichtbar bleiben. */
@media (forced-colors: active) {
  .field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid; }
}
.form-foot {
  margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center;
}
.form-foot .btn { padding: 16px var(--s4); font-size: 15.5px; }
.form-foot .consent { font-size: 13px; color: var(--ink-3); max-width: 44ch; line-height: 1.55; }
.req { color: var(--accent); }

/* ---------- Infografik ---------- */
.chart { margin: 42px 0 0; }
/* Auf dem Handy wäre die Grafik sonst so weit gestaucht, dass die Beschriftung
   unlesbar wird. Deshalb scrollt sie seitlich im eigenen Kasten — die Seite
   selbst bleibt frei von horizontalem Überlauf. */
.chart-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.chart svg { display: block; min-width: 660px; width: 100%; height: auto; }
.chart figcaption {
  font-size: 13.5px; color: var(--ink-3); line-height: 1.55;
  margin-top: 16px; max-width: 68ch;
}
.c-label { font-size: 13.5px; font-weight: 600; fill: var(--ink); }
.c-sub   { font-size: 12px; fill: var(--ink-3); }
.c-axis  { font-size: 12px; fill: var(--ink-3); }
.c-mark  { font-size: 12px; font-weight: 600; fill: var(--accent); }

/* ---------- Definitionsliste / FAQ ---------- */
.faq { margin-top: var(--s5); border-top: 1px solid var(--line); }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; }
/* Ohne Deckel läuft die Antwort über die volle Spaltenbreite — auf dem
   Desktop sind das rund 119 Zeichen je Zeile, das Doppelte des Lesbaren. */
.faq-item p { font-size: 15.5px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Datenblock (Kontakt, Impressum) ---------- */
.datablock { display: grid; grid-template-columns: 190px 1fr; gap: 12px 24px; margin: 0; }
.datablock dt { font-size: 14px; color: var(--ink-3); }
.datablock dd { margin: 0; font-size: 15.5px; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 54px 0 76px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; max-width: none; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15.5px; color: var(--ink-2); max-width: 62ch; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

/* ---------- Hinweiskasten ---------- */
.note {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: var(--s3); border-radius: 0; margin: var(--s4) 0;
}
.note p { font-size: 15px; color: var(--ink-2); }

/* Unübersehbarer Platzhalter — vor dem Livegang alle entfernen. */
.todo {
  background: #fff4d6; border: 1px dashed #c79a3a; color: #6b4a06;
  padding: 2px 7px; border-radius: var(--r); font-size: 14px;
  font-family: var(--sans); font-weight: 600;
}

/* ---------- Abschluss-Block ---------- */
/* Der eine dunkle Block je Seite. Ein Farbfeld mit Akzentkante wirkt
   entschiedener als ein Verlauf — und altert besser. */
.closing {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  border-radius: var(--r); padding: var(--s5); margin: var(--s7) 0;
}
.closing::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent);
}
.closing h2 { color: #fff; margin: 0 0 var(--s2); }
.closing p { color: #b9bacb; font-size: 18px; max-width: 56ch; }
.closing .btn { background: #fff; color: var(--dark); margin-top: var(--s3); }
.closing .btn:hover { background: var(--paper-3); }
.closing .btn:focus-visible { outline-color: #fff; }

/* ---------- Fuß ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-2); padding: 34px 0 46px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: baseline; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; align-items: center; }
/* Offizielles LinkedIn-Wortzeichen, lokal abgelegt — nicht vom LinkedIn-Server
   geladen, sonst wäre die Regel „null externe Requests" für ein Bildchen dahin.
   Klein und leicht zurückgenommen, damit es die Fußzeile nicht dominiert. */
.foot-links .li { display: inline-flex; align-items: center; line-height: 0; }
.foot-links .li img {
  width: 80px; height: auto; display: block;
  opacity: .78; transition: opacity .16s ease;
}
.foot-links .li:hover img, .foot-links .li:focus-visible img { opacity: 1; }
.foot-note { font-size: 13.5px; color: var(--ink-3); }

/* ---------- Klein ---------- */
@media (max-width: 860px) {
  .grid.three { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 48px 1fr; }
  .step-meta { grid-column: 2; border-left: none; padding-left: 0; padding-top: 4px; }
  .step-no { font-size: 24px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .bar { min-height: 0; padding-top: 14px; padding-bottom: 10px; row-gap: 6px; }
  /* Wortzeichen und Sprachschalter teilen sich eine Zeile — sonst kostet der
     Kopf auf dem Handy eine Zeile mehr, als er muss. */
  .brand { margin-right: auto; width: auto; gap: 9px; font-size: 21px; }
  .brand img { height: 26px; }
  /* Sieben Menüpunkte brechen auf 375 px auf drei Zeilen um — mit 44 px hohen
     Tap-Zielen wäre der Kopf 231 px hoch und der Einstieg wäre weg. Deshalb
     eine Zeile, die seitlich scrollt: Kopf bleibt bei rund 95 px, die
     Tap-Ziele bleiben groß. Der Überlauf liegt in der Leiste, nicht in der
     Seite — die Seite selbst scrollt weiterhin nur vertikal. */
  .site-nav {
    gap: 20px; order: 3; width: 100%;
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  /* Tap-Ziele: die Fußzeilen-Links lagen bei 23 px und damit unter den
     24 px, die WCAG 2.2 als Mindestgröße verlangt. */
  .site-nav a { font-size: 14px; padding: 9px 0; white-space: nowrap; }
  .site-nav a:last-child { padding-right: 24px; }
  .foot-links { gap: 18px; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .lang { border-left: none; padding-left: 0; margin-left: auto; }
  .hero { padding: var(--s5) 0; }
  .hero h1 { font-size: 38px; max-width: none; }
  .hero .lead { font-size: 17px; }
  .hero.compact { padding: var(--s5) 0; }
  .hero.compact h1 { font-size: 32px; max-width: none; }
  section { padding: var(--s5) 0; }
  h2 { font-size: 28px; max-width: none; }
  h3 { font-size: 20px; }
  .hero.compact h1 { max-width: none; }
  .grid.two, .grid.three, .doors { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; gap: 24px; }
  .bio figure { max-width: 260px; }
  .cv-item { grid-template-columns: 1fr; gap: 8px; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .form-layout { grid-template-columns: 1fr; gap: var(--s4); }
  .field-grid { grid-template-columns: 1fr; }
  .form-panel { padding: var(--s3); }
  .form-foot .btn { width: 100%; justify-content: center; }
  .person { gap: 16px; }
  .person img { width: 96px; }
  .datablock { grid-template-columns: 1fr; gap: 4px 0; }
  .datablock dd { margin-bottom: 12px; }
  .closing { padding: 34px 24px; margin: 46px 0; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
