/* 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, .haltung {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand) clamp(80px, 11vw, 144px);
}

.apps h2, .haltung 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; }

/* Haltung */

.haltung__liste { margin: 0; border-bottom: 1px solid var(--linie); }
.haltung__liste > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 8px clamp(20px, 3vw, 48px);
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-top: 1px solid var(--linie);
}
.haltung__liste > div:first-child { border-top-color: var(--tinte); }
.haltung__liste dt { font-family: "Inter Display", "Inter", sans-serif; font-weight: 500; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.haltung__liste dd { grid-column: 2 / 4; margin: 0; color: #2b2b2b; max-width: 58ch; padding-top: 2px; text-wrap: pretty; }

/* ---------- 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;
}
.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; }
  .haltung__liste > div { grid-template-columns: 1fr; }
  .haltung__liste dd { grid-column: auto; }
  .fuss { grid-template-columns: 1fr; }
  .fuss__recht { text-align: left; }
  .fuss__recht a { margin: 0 18px 0 0; }
}
