/* Digital Workhorse – Firmenseite
   Farben und Schrift aus firma/marke. Farbe nur dort, wo das Logo sie hat. */

@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --tinte: #0a0a0a;
  --papier: #ffffff;
  --grau: #595959;        /* 7:1 auf Weiß */
  --linie: #e4e4e4;
  --cyan: #00b3ff;
  --violett: #7a5cff;
  --pink: #ff3d8b;
  --amber: #ffb300;

  --rand: clamp(20px, 4.5vw, 56px);
  --breite: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #bdbdbd var(--papier); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 400 1.0625rem/1.6 "Inter", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

::selection { background: var(--pink); color: var(--tinte); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color 0.2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--violett); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: "Inter Display", "Inter", system-ui, sans-serif; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

.skip { position: absolute; left: var(--rand); top: -100px; background: var(--tinte); color: var(--papier); padding: 8px 14px; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- Kopf ---------- */

.kopf {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 22px var(--rand);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9375rem;
}
.kopf__name { font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.kopf__nav { display: flex; gap: 28px; }
.kopf__nav a { text-decoration: none; color: var(--grau); }
.kopf__nav a:hover { color: var(--tinte); }

/* ---------- Auftakt ---------- */

.auftakt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--rand) clamp(64px, 10vw, 128px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(82svh, 760px);
}

.auftakt h1 {
  font-weight: 600;
  font-size: clamp(3rem, 7.4vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.038em;
}

.auftakt__satz {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  text-wrap: balance;
  line-height: 1.45;
  color: #2b2b2b;
}

.auftakt__marke { align-self: center; justify-self: end; width: 100%; max-width: 680px; }

.einhorn { display: block; width: 100%; height: auto; overflow: visible; }
.einhorn .koerper { color: var(--tinte); fill: var(--tinte); }
.einhorn .versatz { --vx: 5; --vy: 3; }
.versatz--pink { fill: var(--pink); transform: translate(calc(var(--vx) * 1px), calc(var(--vy) * 1px)); }
.einhorn .band { opacity: 0; animation: band-an 0.45s var(--ease) forwards; }
.einhorn .band:nth-of-type(1) { animation-delay: 0.2s; }
.einhorn .band:nth-of-type(2) { animation-delay: 0.35s; }
.einhorn .band:nth-of-type(3) { animation-delay: 0.5s; }
.einhorn .band:nth-of-type(4) { animation-delay: 0.65s; }
@keyframes band-an { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .einhorn .band { animation: none; opacity: 1; } }
.versatz--cyan { fill: var(--cyan); transform: translate(calc(var(--vx) * -1px), calc(var(--vy) * -0.66px)); }

/* ---------- Abschnitte ---------- */

.apps {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand) clamp(80px, 11vw, 144px);
}

.apps h2 {
  font-weight: 500;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  letter-spacing: -0.025em;
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* App-Liste: Zeilen mit Haarlinie statt Karten */

.apps__liste { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--linie); }

.app {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 12px clamp(20px, 3vw, 48px);
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--tinte);
}
.app + .app { border-top-color: var(--linie); }

.app__kopf { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 22px); align-self: start; }
.app__icon {
  flex: none;
  width: clamp(56px, 5.2vw, 72px);
  height: clamp(56px, 5.2vw, 72px);
  border-radius: 22.5%;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 6px 16px -6px rgb(0 0 0 / 0.25);
}

.app__name {
  font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.app__name a { text-decoration: none; transition: text-shadow 0.35s var(--ease); }
.app__name a:hover,
.app__name a:focus-visible { text-shadow: -2px -1px 0 var(--cyan), 2px 1.5px 0 var(--pink); }

.app__text { max-width: 46ch; color: #2b2b2b; padding-top: 6px; }

.app__daten { margin: 0; padding-top: 8px; display: grid; gap: 12px; align-content: start; font-size: 0.9375rem; }
.app__daten dt { color: var(--grau); font-size: 0.8125rem; }
.app__daten dd { margin: 0; }

/* ---------- Wie wir arbeiten: das Horn lädt sich beim Scrollen auf ---------- */

.prinzip {
  background: var(--tinte);
  color: var(--papier);
  padding: clamp(72px, 10vw, 140px) 0 clamp(24px, 4vw, 56px);
}
.prinzip ::selection { background: var(--cyan); color: var(--tinte); }

.prinzip__titel {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  letter-spacing: -0.025em;
  color: #9a9a9a;
}

.prinzip__buehne {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(20px, 3vw, 48px);
}

.prinzip__horn {
  position: sticky;
  top: 14svh;
  align-self: start;
  height: 72svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.prinzip__horn svg { height: 100%; width: auto; max-width: 100%; max-height: 640px; overflow: visible; }
.prinzip__horn--quer { display: none; }
.prinzip__horn .b { fill: #1f1f1f; stroke: #0a0a0a; stroke-width: 1; transition: fill 0.6s var(--ease); }
.prinzip__horn .b0.an { fill: var(--cyan); }
.prinzip__horn .b1.an { fill: var(--violett); }
.prinzip__horn .b2.an { fill: var(--pink); }
.prinzip__horn .b3.an { fill: var(--amber); }
.prinzip__horn.voll svg { animation: voll 0.5s steps(1) 1; }
@keyframes voll {
  0% { transform: translate(-3px, 1px); }
  25% { transform: translate(4px, -2px); }
  50% { transform: translate(-2px, 2px); }
  75%, 100% { transform: none; }
}

.prinzip__liste { list-style: none; margin: 0; padding: 0; }

.prinzip__punkt {
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 2.4vw, 32px);
  position: relative;
}

.prinzip__punkt h3 {
  font-weight: 600;
  font-size: clamp(2.6rem, 7.2vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 11ch;
  transition: color 0.5s var(--ease), text-shadow 0.5s var(--ease);
}
.prinzip__punkt p {
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: #c8c8c8;
  transition: color 0.5s var(--ease);
}

/* Mit JS: nur der Grundsatz in der Bildschirmmitte ist hell */
.js .prinzip__punkt h3 { color: #3b3b3b; }
.js .prinzip__punkt p { color: #6b6b6b; }
.js .prinzip__punkt.aktiv h3 { color: var(--papier); }
.js .prinzip__punkt.aktiv p { color: #c8c8c8; }
.prinzip__punkt.zuckt h3 { animation: zucken 0.4s steps(1) 1; }
@keyframes zucken {
  0% { text-shadow: -0.09em 0.02em 0 var(--cyan), 0.07em -0.03em 0 var(--pink); }
  30% { text-shadow: 0.06em -0.02em 0 var(--cyan), -0.08em 0.03em 0 var(--pink); }
  60% { text-shadow: -0.04em 0.03em 0 var(--cyan), 0.05em -0.01em 0 var(--pink); }
  80% { text-shadow: -0.02em 0 0 var(--cyan), 0.02em 0.01em 0 var(--pink); }
  100% { text-shadow: none; }
}

/* Feedback-Schleife */
.schleife {
  position: absolute;
  right: 0;
  top: 50%;
  width: clamp(120px, 15vw, 210px);
  translate: 0 -50%;
  animation: drehen 28s linear infinite;
  opacity: 0.9;
}
.schleife text {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--violett);
}
.js .prinzip__punkt:not(.aktiv) .schleife { opacity: 0.25; }
@keyframes drehen { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .schleife, .prinzip__horn.voll svg, .prinzip__punkt.zuckt h3 { animation: none; }
}

/* ---------- Fuß ---------- */

.fuss {
  background: var(--tinte);
  color: var(--papier);
  --innen: max(var(--rand), (100% - var(--breite)) / 2 + var(--rand));
  padding: clamp(48px, 7vw, 88px) var(--innen) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  font-size: 0.9375rem;
  border-top: 1px solid #262626;
}
.fuss h2 { font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.fuss address { font-style: normal; line-height: 1.7; color: #e6e6e6; }
.fuss__recht { text-align: right; color: #a6a6a6; display: grid; gap: 6px; }
.fuss__recht a { color: var(--papier); margin-left: 18px; }
.fuss ::selection { background: var(--cyan); color: var(--tinte); }

/* Platzhalter: vor dem Livegang ersetzen */
.platzhalter {
  background: var(--amber);
  color: var(--tinte) !important;
  padding: 0 5px;
  border-radius: 2px;
  white-space: nowrap;
  text-decoration: none;
}
.platzhalter::after { content: " ← Platzhalter"; font-size: 0.8em; font-weight: 500; }

/* ---------- Rechtstexte ---------- */

.recht {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--rand) clamp(80px, 10vw, 128px);
}
.recht > * { max-width: 68ch; }
.recht h1 { font-weight: 600; font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.035em; line-height: 1; margin-bottom: 40px; }
.recht h2 { font-weight: 500; font-size: 1.375rem; letter-spacing: -0.015em; margin: 44px 0 10px; }
.recht p, .recht ul { margin: 0 0 14px; }
.recht ul { padding-left: 1.2em; }
.recht address { font-style: normal; }

/* ---------- Schmal ---------- */

@media (max-width: 820px) {
  .kopf__nav { gap: 18px; }
  .auftakt { grid-template-columns: 1fr; min-height: 0; align-items: start; gap: 40px; }
  .auftakt__marke { justify-self: center; max-width: 520px; padding-right: 4%; }
  .app { grid-template-columns: 1fr; }
  .app__daten { grid-template-columns: repeat(2, max-content); column-gap: 40px; }
  .prinzip__buehne { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prinzip__horn--hoch { display: none; }
  .prinzip__horn--quer {
    display: block;
    position: sticky;
    top: 0;
    z-index: 2;
    height: auto;
    margin: 0 calc(var(--rand) * -1);
    padding: 18px var(--rand) 14px;
    background: var(--tinte);
  }
  .prinzip__horn--quer svg { display: block; width: 100%; height: 22px; max-height: none; }
  .prinzip__punkt { min-height: 64svh; }
  .schleife { position: static; translate: none; width: 120px; align-self: flex-end; margin-top: 8px; }
  .fuss { grid-template-columns: 1fr; }
  .fuss__recht { text-align: left; }
  .fuss__recht a { margin: 0 18px 0 0; }
}
