/* LMP Consulting — Gestaltung
   Ein Blickfang: der rote Faden. Alles andere bleibt ruhig. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --grund:     #eceff1;   /* Kühlgrau */
  --hell:      #ffffff;
  --anthrazit: #2b3236;   /* angelehnt an RAL 7016 Anthrazitgrau */
  --grau:      #575e63;
  --linie:     rgba(43, 50, 54, .16);
  --rot:       #c8161d;   /* angelehnt an RAL 3020 Verkehrsrot */
  --auf-dunkel:        #eef0f0;
  --auf-dunkel-grau:   #b9c0c3;
  --auf-dunkel-linie:  rgba(238, 240, 240, .16);

  --schrift: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --rail: clamp(56px, 11vw, 160px);   /* Spur links, in der der Faden läuft */
  --rand: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--anthrazit);
  font: 400 18px/1.6 var(--schrift);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 24px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--anthrazit); color: var(--hell); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--rand) 0 calc(var(--rand) + var(--rail)); position: relative; }

/* ---------- Faden ---------- */
#faden { position: absolute; top: 0; left: 0; width: 100%; height: 0; pointer-events: none; z-index: 3; overflow: visible; }
#faden path { fill: none; stroke: var(--rot); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#faden circle { fill: var(--rot); opacity: 0; transition: opacity .4s ease; }
#faden circle.an { opacity: 1; }
main, header, footer { position: relative; z-index: 2; }
header { z-index: 5; }   /* geöffnetes Mobilmenü liegt über dem Faden */

/* ---------- Kopf ---------- */
.kopf { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.marke svg { flex: none; }
.marke small { font-weight: 400; color: var(--grau); font-size: 15px; letter-spacing: 0; }
.nav { display: flex; gap: 32px; font-size: 16px; }
.nav a, .menu a { text-decoration: none; color: var(--grau); padding: 6px 0; }
.nav a:hover, .menu a:hover { color: var(--anthrazit); text-decoration: underline; text-decoration-color: var(--rot); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

/* Mobilmenü ohne JavaScript: <details> */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 500; font-size: 16px; border: 1px solid var(--linie); border-radius: 3px; padding: 8px 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--anthrazit); }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; display: flex; flex-direction: column; background: var(--hell); border: 1px solid var(--linie); padding: 10px 18px; z-index: 10; }
.menu nav a { padding: 10px 0; color: var(--anthrazit); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 760px) {
  :root { --rail: 26px; }
}

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 100px); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; gap: 24px; padding-bottom: 72px; }
.hero h1 {
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0 0 32px;
  text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 34em; margin: 0 0 40px; }
.lead span { color: var(--grau); }
.aktionen { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.btn { display: inline-block; background: var(--anthrazit); color: var(--hell); text-decoration: none; font-weight: 500; font-size: 17px; padding: 16px 24px; border-radius: 3px; transition: background-color .2s ease; }
.btn:hover { background: var(--rot); }
.textlink { font-weight: 500; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 6px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s ease; }
.textlink:hover { text-decoration-color: var(--rot); }
.knaeuel { aspect-ratio: 1; width: 100%; max-width: 420px; justify-self: end; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 24px; }
  .knaeuel { order: -1; max-width: 220px; justify-self: start; }
}

/* ---------- Abschnitte ---------- */
section { padding: clamp(72px, 12vw, 160px) 0 0; }
h2 {
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 clamp(32px, 5vw, 64px);
  max-width: 16em;
  text-wrap: balance;
}
h3 { font-weight: 600; font-size: 23px; line-height: 1.2; letter-spacing: -.012em; margin: 0 0 12px; }
p { margin: 0 0 1em; max-width: 36em; }
.grau { color: var(--grau); }

/* Leistungen: drei Schwerpunkte nebeneinander */
.leistungen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(28px, 4vw, 64px); }
.leistung p { color: var(--grau); }
.leistung ul { margin: 18px 0 0; padding: 0; list-style: none; font-size: 16px; }
.leistung li { padding: 9px 0; border-top: 1px solid var(--linie); }
@media (max-width: 1000px) { .leistungen { grid-template-columns: 1fr; max-width: 40em; } }

/* Vorgehen: echte Abfolge, deshalb mit Reihenfolge */
.schritte { list-style: none; margin: 0; padding: 0 72px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.schritt { position: relative; padding-top: 40px; }
.schritt .mark { position: absolute; top: 0; left: 0; width: 14px; height: 14px; }
.schritt h3 { font-size: 21px; }
.schritt h3::before { counter-increment: s; content: counter(s) ". "; color: var(--grau); font-weight: 400; }
.schritt p { font-size: 16px; color: var(--grau); }
@media (max-width: 900px) {
  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; padding-right: 0; }
  .schritt { padding-top: 0; }
  .schritt .mark { display: none; }
}
@media (max-width: 520px) { .schritte { grid-template-columns: 1fr; } }

/* Erfahrung: zwei lockere Wortwolken (Branchen, Themen), darunter drei zusammengerechnete Zahlen.
   Die Wörter verschieben sich beim Scrollen leicht gegeneinander (erfahrung.js), ohne Endlos-Animation. */
.wolken { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(40px, 5vw, 96px); align-items: start; }
.wolken-titel { font-size: 16px; font-weight: 400; color: var(--grau); margin: 0 0 18px; letter-spacing: 0; }
.wolke { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 22px 28px; }
.wolke li { white-space: nowrap; line-height: 1.15; letter-spacing: -.02em; transform: translate3d(0, calc(var(--y, 0px) + var(--p, 0px)), 0); will-change: transform; }
.wolke .g1 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; }
.wolke .g2 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; }
.wolke .g3 { font-size: clamp(17px, 1.3vw, 19px); font-weight: 400; color: var(--grau); letter-spacing: 0; }
.wolke li:nth-child(3n+2) { --y: 5px; }
.wolke li:nth-child(4n+3) { --y: -4px; }
.wolke li:nth-child(5n+4) { --y: 8px; }
/* versetzte Einzüge, damit die Wörter nicht an einer Kante kleben, sondern lose verteilt wirken */
.branchen-wolke li:nth-child(2) { margin-left: 22%; }
.branchen-wolke li:nth-child(3) { margin-left: 8%; }
.branchen-wolke li:nth-child(4) { margin-left: 16%; }
.branchen-wolke li:nth-child(5) { margin-left: 3%; }
.branchen-wolke li:nth-child(6) { margin-left: 7%; }
.themen-wolke li:nth-child(3) { margin-left: 6%; }
.themen-wolke li:nth-child(6) { margin-left: 14%; }
.themen-wolke li:nth-child(9) { margin-left: 4%; }
@media (max-width: 700px) {
  .wolke { gap: 16px 22px; }
  .wolke .g1 { font-size: 24px; }
  .wolke .g2 { font-size: 19px; }
  .branchen-wolke li:nth-child(n), .themen-wolke li:nth-child(n) { margin-left: 0; }
  .branchen-wolke li:nth-child(even), .themen-wolke li:nth-child(3n) { margin-left: 1em; }
}
.zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: clamp(64px, 8vw, 112px) 0 0; padding-top: 28px; border-top: 1px solid var(--linie); }
.zahlen div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
.zahlen dd { margin: 0; font-size: clamp(34px, 4.4vw, 72px); line-height: 1; letter-spacing: -.03em; font-weight: 500; white-space: nowrap; }
.zahlen .vor { display: block; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--grau); margin-bottom: 8px; }
.zahlen dt { color: var(--grau); font-size: 16px; max-width: 18em; }
@media (max-width: 860px) {
  .wolken { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .zahlen { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Kontakt und Fuß: dunkler Abschluss ---------- */
.kontakt { background: var(--anthrazit); color: var(--auf-dunkel); margin-top: clamp(72px, 12vw, 160px); padding: clamp(72px, 10vw, 140px) 0; }
.kontakt .grau { color: var(--auf-dunkel-grau); }
.kontakt .textlink { text-decoration-color: rgba(238, 240, 240, .35); }
.kontakt .textlink:hover { text-decoration-color: var(--rot); }
.mail {
  display: inline-block;
  font-weight: 500;
  font-size: clamp(28px, 5.4vw, 76px);
  letter-spacing: -.03em;
  line-height: 1.1;
  text-decoration: none;
  padding-bottom: 14px;
  word-break: break-word;
}
.mail:hover { color: #ff6b70; }

.fuss { background: var(--anthrazit); color: var(--auf-dunkel-grau); }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--auf-dunkel-linie); padding-top: 24px; padding-bottom: 40px; font-size: 15px; }
.fuss nav { display: flex; gap: 24px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--hell); text-decoration: underline; }

/* ---------- Unterseiten: Impressum, Datenschutz, 404 ---------- */
.recht { max-width: 720px; padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(72px, 10vw, 120px); }
.recht h1 { font-weight: 500; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 clamp(32px, 4vw, 48px); }
.recht h2 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin: 36px 0 8px; max-width: none; }
.recht p { color: var(--grau); }
.recht a { text-decoration-color: var(--linie); text-underline-offset: 4px; }
.recht a:hover { text-decoration-color: var(--rot); }
.unterseite .fuss .wrap { border-top: 0; }

.fehlerseite { min-height: calc(100svh - 220px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 72px; }
.fehlerseite h1 { font-weight: 500; font-size: clamp(44px, 7vw, 96px); line-height: .98; letter-spacing: -.035em; margin: 24px 0 24px; text-wrap: balance; }
.fehlerseite svg { width: min(420px, 80%); height: auto; }
.fehlerseite path { fill: none; stroke: var(--rot); stroke-width: 1.6; stroke-linecap: round; }

@media (prefers-reduced-motion: reduce) {
  #faden circle { transition: none; }
  .btn, .textlink { transition: none; }
}

@media print {
  #faden, .menu, .nav { display: none; }
  .kontakt, .fuss { background: none; color: #000; }
}
