/* konsult iT · Startseite v2
   Farben aus den Tokens des Design-Systems, Hausschrift Punktum.
   Bühne und Leistungen liegen über einer fixierten WebGL-Szene (assets/js/szene.js);
   alle folgenden Abschnitte haben deckende Flächen und schieben sich darüber. */

@font-face { font-family: "Punktum"; font-style: normal; font-weight: 300; font-display: swap; src: url("../../fonts/Punktum-Light.woff2") format("woff2"); }
@font-face { font-family: "Punktum"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../fonts/Punktum-Regular.woff2") format("woff2"); }
@font-face { font-family: "Punktum"; font-style: normal; font-weight: 500; font-display: swap; src: url("../../fonts/Punktum-Medium.woff2") format("woff2"); }
@font-face { font-family: "Punktum"; font-style: normal; font-weight: 700; font-display: swap; src: url("../../fonts/Punktum-Bold.woff2") format("woff2"); }

:root {
  --signal: #ff3c00;
  --glut: #b52a00;
  --tinte: #141210;
  --leinen: #f4f0e6;
  --aprikose: #f6decd;
  --weiss: #ffffff;
  --stein: #8a8276;
  --schiefer: #655e55;
  --linie: #ddd6c7;
  --text: var(--tinte);
  --font-marke: "Punktum", Arial, "Helvetica Neue", sans-serif;
  --rand: clamp(20px, 4.4vw, 64px);
  --breite: 1320px;
  --seite: max(var(--rand), calc((100% - var(--breite)) / 2));
  --kurve: cubic-bezier(.2, 0, 0, 1);
  --ueber: clamp(96px, 13vw, 240px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--leinen);
  color: var(--tinte);
  font-family: var(--font-marke);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; text-wrap: balance; }
p, ul, ol, figure, blockquote { margin: 0; }

:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; }
.erfahrung :focus-visible, .fuss :focus-visible { outline-color: var(--leinen); }

.sprung { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 10px 16px; background: var(--weiss); color: var(--tinte); border-radius: 4px; }
.sprung:focus { top: 16px; }

/* ---------- Szene ---------- */
.szene {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s var(--kurve);
  display: none;
}
html.webgl .szene { display: block; }
html.szene-bereit .szene { opacity: 1; }
html.szene-pause .szene { visibility: hidden; }

.kopf, main, .fuss { position: relative; z-index: 1; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--seite);
}
.kopf-logo { display: inline-flex; border-radius: 2px; }
.kopf-logo .logo { width: 165px; height: auto; display: block; }
.kopf-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.kopf-nav a { font-size: 16px; line-height: 20px; font-weight: 500; text-decoration: none; }
.kopf-nav a:not(.kopf-kontakt):hover { text-decoration: underline; text-underline-offset: 5px; }
.kopf-kontakt { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--tinte); color: var(--leinen); transition: background-color .2s var(--kurve), color .2s var(--kurve); }
.kopf-kontakt:hover { background: var(--signal); color: var(--tinte); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .2s var(--kurve), color .2s var(--kurve), border-color .2s var(--kurve);
}
.knopf-signal { background: var(--signal); color: var(--tinte); }
.knopf-signal:hover { background: var(--tinte); color: var(--leinen); }
.knopf-kontur { border-color: var(--tinte); color: var(--tinte); }
.knopf-kontur:hover { background: var(--tinte); color: var(--weiss); }
.knopf-tinte { background: var(--tinte); color: var(--leinen); }
.knopf-tinte:hover { background: var(--leinen); color: var(--tinte); }

/* ---------- Bühne ---------- */
.buehne {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--seite) clamp(40px, 9vh, 112px);
}
.buehne h1 {
  font-size: clamp(2.375rem, 1rem + 4.3vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -.032em;
  max-width: min(9.4em, 100%);
}
.buehne-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(28px, 4.5vh, 52px); }
.buehne-zeile { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--schiefer); }

.buehne-ersatz { position: absolute; display: none; }
.buehne-ersatz svg { width: 100%; height: auto; display: block; }
html:not(.js) .buehne-ersatz, html.ohne-webgl .buehne-ersatz { display: block; }

/* ---------- Leistungen ---------- */
.leistungen { position: relative; padding: clamp(72px, 12vh, 140px) var(--seite) clamp(24px, 6vh, 72px); }
.leistungen-kopf { max-width: 36rem; }
.leistungen h2 { font-size: clamp(2.25rem, 1rem + 3.4vw, 4.25rem); line-height: 1.04; letter-spacing: -.028em; }
.einleitung { margin-top: 24px; font-size: clamp(1.125rem, 1rem + .35vw, 1.375rem); line-height: 1.5; color: var(--schiefer); }
.schritte { list-style: none; padding: 0; margin-top: clamp(16px, 4vh, 48px); }
.schritt { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }
.schritt-inhalt { max-width: min(36rem, 44vw); }
.schritt h3 {
  display: flex;
  align-items: center;
  gap: .4em;
  font-size: clamp(2rem, 1rem + 2.8vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.022em;
  font-weight: 400;
}
.schritt h3::before {
  content: "";
  flex: none;
  width: .3em;
  height: .3em;
  background: var(--linie);
  transition: background-color .45s var(--kurve);
}
.schritt.aktiv h3::before { background: var(--signal); }
.schritt p { margin-top: 20px; font-size: clamp(1.125rem, 1rem + .45vw, 1.5rem); line-height: 1.6; color: var(--schiefer); max-width: 28em; }

/* ---------- Erfahrung und Berater ---------- */
.erfahrung { position: relative; z-index: 2; background: var(--tinte); color: var(--leinen); }
.erfahrung-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 4.4vw, 72px);
  row-gap: 32px;
  align-items: end;
  padding: clamp(96px, 16vh, 190px) var(--seite) clamp(72px, 11vh, 128px);
}
.erfahrung h2 { grid-column: 1; font-size: clamp(2.5rem, 1rem + 4.6vw, 5.75rem); line-height: .98; letter-spacing: -.034em; }
.erfahrung-absatz { grid-column: 2; font-size: clamp(1.125rem, 1rem + .4vw, 1.4375rem); line-height: 1.55; }
.erfahrung-absatz p + p { margin-top: 1em; }

.berater {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4.4vw, 72px);
  padding: 0 var(--seite) clamp(96px, 14vh, 168px);
  background: linear-gradient(to bottom, var(--tinte) var(--ueber), var(--weiss) var(--ueber));
  color: var(--tinte);
}
.berater-karte { display: flex; flex-direction: column; min-width: 0; }
.berater-bild { perspective: 1100px; }
.berater-bild img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--schiefer);
  box-shadow: 0 0 0 1px rgba(244, 240, 230, .22);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--kurve), box-shadow .6s var(--kurve);
}
.berater-bild.kippt img { transition-duration: .12s, .6s; box-shadow: 0 0 0 1px rgba(244, 240, 230, .22), 0 40px 60px -36px rgba(20, 18, 16, .55); }
.berater-text { padding-top: 32px; }
.berater-text h3 { font-size: clamp(1.75rem, 1rem + 1.5vw, 2.5rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.liste { list-style: none; padding: 0; margin: 24px 0 36px; display: grid; gap: 10px; }
.liste li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.5; }
.liste li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--signal); }

/* ---------- Zitat ---------- */
.zitat { position: relative; z-index: 2; background: var(--leinen); padding: clamp(96px, 16vh, 200px) var(--seite); }
.zitat blockquote p { font-size: clamp(1.875rem, 1rem + 2.9vw, 3.5rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 300; max-width: 20em; text-indent: -0.42em; text-wrap: pretty; }
.zitat figcaption { display: flex; align-items: center; gap: 12px; margin-top: 40px; font-size: 19px; color: var(--schiefer); }
.zitat figcaption::before { content: ""; width: 12px; height: 12px; background: var(--signal); }

/* ---------- Kontaktaufruf ---------- */
.aufruf {
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  background: var(--signal);
  color: var(--tinte);
  padding: clamp(96px, 16vh, 200px) var(--seite);
}
.aufruf h2 { font-size: clamp(3rem, 1rem + 6vw, 7.25rem); line-height: .95; letter-spacing: -.04em; max-width: 8em; }
.aufruf p { margin-top: 28px; font-size: clamp(1.125rem, 1rem + .45vw, 1.5rem); line-height: 1.5; max-width: 24em; }
.aufruf .knopf { margin-top: 40px; }
.aufruf :focus-visible { outline-color: var(--tinte); }

.aufruf-grafik { width: min(30vw, 400px); margin-right: clamp(0px, 4vw, 64px); }
.aufruf-grafik svg { display: block; width: 100%; height: auto; }

/* ---------- Fußzeile ---------- */
.fuss {
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 48px;
  column-gap: clamp(32px, 4.4vw, 72px);
  background: var(--tinte);
  color: var(--leinen);
  padding: clamp(64px, 10vh, 112px) var(--seite) 56px;
  font-size: 15px;
  line-height: 1.65;
}
.fuss-marke { grid-column: span 2; }
.fuss-marke .logo { width: min(260px, 100%); height: auto; display: block; }
.fuss h2 { margin: 0 0 12px; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .04em; color: var(--stein); }
.fuss a { color: var(--leinen); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fuss a:hover { text-decoration-thickness: 2px; }
.fuss-klein { margin-top: 12px; color: var(--leinen); }
.fuss-klein a { white-space: nowrap; }

/* ---------- Breite Ansicht: Text links, Szene rechts ---------- */
@media (min-width: 900px) {
  .buehne h1 { max-width: min(9.4em, 50vw); }
  .buehne-ersatz { right: var(--seite); top: 50%; width: min(36vw, 460px); transform: translateY(-46%); }
}
@media (min-width: 1200px) {
  .buehne { justify-content: center; padding-top: 140px; }
  .buehne h1 { font-size: clamp(3.25rem, 1rem + 3.1vw, 3.75rem); max-width: none; width: fit-content; }
  .buehne h1 .zeile { display: block; }
}

/* ---------- Schmale Ansicht: Szene oben, Text unten ---------- */
@media (max-width: 899px) {
  body { font-size: 17px; }
  .kopf { padding-top: 16px; padding-bottom: 16px; }
  .kopf-logo .logo { width: 132px; }
  .kopf-kontakt { padding: 0 16px; }
  .buehne { padding-top: 96px; }
  .buehne-ersatz { left: 50%; top: 84px; width: min(62vw, 300px); transform: translateX(-50%); }
  .leistungen-kopf { background: var(--leinen); padding-bottom: 8px; }
  .schritt { min-height: 80vh; min-height: 80svh; justify-content: flex-end; padding-bottom: 6vh; }
  .schritt-inhalt { background: var(--leinen); padding-top: 24px; max-width: 100%; }
  .erfahrung-text { grid-template-columns: minmax(0, 1fr); }
  .erfahrung h2, .erfahrung-absatz { grid-column: 1; }
  .berater { grid-template-columns: minmax(0, 1fr); }
  .aufruf { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .aufruf-grafik { width: min(62vw, 240px); margin: 0 auto; }
  .fuss { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fuss-marke { grid-column: auto; }
}

/* ---------- Ohne Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .szene, .knopf, .kopf-kontakt, .schritt h3::before, .berater-bild img { transition: none; }
}
