@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2-variations"), url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --beton: #eceeef;
  --white: #ffffff;
  --anthrazit: #262c31;
  --anthrazit-hell: #2f363c;
  --schiefer: #5b646b;
  --tinte: #171b1e;
  --gelb: #ffc21a;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--beton);
  color: var(--tinte);
  font: 400 18px/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
::selection { background: var(--gelb); color: var(--tinte); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Typo-System: Schrift über Schrift */
.display {
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.005em;
}
.sub {
  font-weight: 600;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
}
.head { margin-bottom: clamp(40px, 5vw, 64px); }
.head .display { font-size: clamp(48px, 7vw, 96px); }
.head .sub { font-size: clamp(15px, 1.4vw, 19px); color: var(--schiefer); margin-top: 10px; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--schiefer); max-width: 56ch; }
.muted { color: var(--schiefer); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--gelb); color: var(--tinte);
  font: 700 15px/1 "Archivo", sans-serif; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  border: 0; border-radius: 2px; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { background: #ffd04d; }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--anthrazit); color: var(--white); }
.btn-dark:hover { background: var(--tinte); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13px; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.header.solid, .header.always { background: var(--white); color: var(--tinte); box-shadow: 0 1px 0 rgba(23,27,30,.08); }
.brand {
  font-weight: 900; font-stretch: 125%; font-size: 22px; letter-spacing: -.01em;
  text-transform: uppercase; text-decoration: none; line-height: 1;
}
.brand span { color: var(--gelb); }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-stretch: 112%; font-size: 14px;
  text-transform: uppercase; letter-spacing: .05em; opacity: .85;
}
.nav a:not(.btn):hover { opacity: 1; }

/* Abschnitte */
.section { padding: clamp(80px, 10vw, 144px) 0; }
.section.white { background: var(--white); }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.step { counter-increment: s; }
.step::before {
  content: counter(s); display: block;
  font-weight: 900; font-stretch: 125%; font-size: clamp(64px, 7vw, 104px); line-height: .85;
  color: var(--beton); margin-bottom: 18px;
}
.step.on::before { color: var(--gelb); }
.step h3 { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 30px; line-height: 1; margin-bottom: 10px; }
.step p { color: var(--schiefer); font-size: 17px; }

/* CTA + Footer */
.cta { background: var(--anthrazit); color: var(--white); position: relative; overflow: hidden; }
.cta .wrap { position: relative; }
.cta .display { font-size: clamp(48px, 8vw, 120px); }
.cta .display .y { color: var(--gelb); }
.cta .lead { color: #c3cace; margin-top: 24px; }
.cta .hero-actions { margin-top: 40px; }
.footer { background: var(--tinte); color: #98a1a8; font-size: 15px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.footer .brand { color: var(--white); font-size: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

/* Unterseiten */
.page-top { padding-top: 84px; }
.page-head { background: var(--anthrazit); color: var(--white); padding: clamp(64px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.page-head .display { font-size: clamp(52px, 8vw, 112px); }
.page-head .display .y { color: var(--gelb); }
.page-head .lead { color: #c3cace; margin-top: 20px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); }
.channel { display: block; padding: 24px 0; border-bottom: 2px solid var(--beton); text-decoration: none; }
.channel small { display: block; color: var(--schiefer); font-weight: 600; font-stretch: 112%; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; margin-bottom: 4px; }
.channel strong { font-weight: 800; font-stretch: 85%; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
a.channel:hover strong { color: #b38200; }
.form { background: var(--beton); border-radius: 4px; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--tinte); padding: 13px 14px;
  border: 0; border-radius: 2px; background: var(--white); box-shadow: inset 0 0 0 1px #d3d7da;
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--anthrazit); }
.field textarea { min-height: 140px; resize: vertical; }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--schiefer); }
.check input { margin-top: 4px; accent-color: var(--anthrazit); }

/* Tally-Formular (Einbettung auf Klick) */
.tally-box { background: var(--beton); border-radius: 4px; padding: clamp(24px, 3vw, 40px); align-self: start; }
.tally-gate { display: grid; gap: 20px; justify-items: start; }
.tally-gate p { color: var(--schiefer); font-size: 16px; max-width: 46ch; }
.tally-gate a { text-decoration-color: var(--gelb); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tally-frame { display: block; width: 100%; min-height: 420px; border: 0; }
.tally-frame[hidden], .tally-gate[hidden] { display: none; }

.legal { max-width: 780px; }
.legal h2 { font-weight: 800; font-stretch: 85%; font-size: 24px; margin: 40px 0 10px; line-height: 1.2; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #2f363c; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin-top: 8px; }
.todo { background: #fff1c4; padding: 0 4px; }

/* Reinkommen beim Scrollen */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .contact-grid, .split, .cases { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .header .wrap { height: 68px; }
  .page-top { padding-top: 68px; }
  .steps, .form { grid-template-columns: 1fr; }
}
.legal h1 { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(48px, 7vw, 88px); line-height: .92; margin-bottom: 48px; }
.btn { text-align: center; }


/* Navigation: Hover hebt an */
.nav a:not(.btn) { position: relative; display: inline-block; opacity: 1; transition: transform .35s var(--ease), font-weight .35s var(--ease), color .35s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--gelb);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover { transform: translateY(-3px); font-weight: 800; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { transition: transform .35s var(--ease), background-color .2s, box-shadow .35s; }
.nav .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23,27,30,.18); }

/* ===== Hero (Stand v9): hellblaue Bühne mit Projektteilen, dunkle Fläche mit Schräge ===== */
.header { color: var(--tinte); }
.hero { position: relative; background: #a3d4fb; color: var(--white); overflow: hidden; }
.stage {
  position: relative; height: min(70vh, 720px); min-height: 520px; overflow: hidden;
  background: radial-gradient(90% 80% at 50% 40%, #f4fbff 0%, #cfeaff 45%, #9fd2fb 100%);
  perspective: 1000px;
}
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(163,212,251,0) 78%, #a3d4fb 100%);
}
.world { position: absolute; inset: 0; transform-style: preserve-3d; }

/* Projektteile, fest im Ring angeordnet */
.shard {
  position: absolute; left: 50%; top: 50%;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  backface-visibility: hidden;
}
.shard img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shard.ico { background: none; box-shadow: none; overflow: visible; color: var(--tinte); border-radius: 0; }
.shard.ico svg { width: 100%; height: 100%; filter: drop-shadow(0 18px 22px rgba(18, 60, 110, .28)); }
.shard.ico svg [opacity] { fill: var(--gelb); opacity: 1; }
.shard.ico.white { color: var(--white); }
.shard.ico.white svg [opacity] { fill: var(--anthrazit); }
.shard.mascot { background: none; box-shadow: none; overflow: visible; }
.shard.mascot video { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(18, 60, 110, .35)); }
.shard.card { box-shadow: 0 30px 60px rgba(18, 60, 110, .3); border: 4px solid var(--white); }
.shard.win { background: var(--white); padding-top: 22px; box-shadow: 0 30px 60px rgba(18, 60, 110, .3); }
.shard.win::before { content: ""; position: absolute; top: 8px; left: 10px; width: 34px; height: 6px; border-radius: 3px; background: radial-gradient(circle at 3px 3px, #ff5f57 3px, transparent 3.5px), radial-gradient(circle at 15px 3px, #febc2e 3px, transparent 3.5px), radial-gradient(circle at 27px 3px, #28c840 3px, transparent 3.5px); }

/* Dunkle Fläche: Schräge schneidet die Headline an, dünne Kante darüber */
.cut {
  position: relative; z-index: 2; background: var(--anthrazit);
  clip-path: polygon(0 14.4vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -8.8vw; padding: 9.4vw 0 clamp(64px, 8vw, 112px);
}
.cut::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--anthrazit);
  clip-path: polygon(0 14.4vw, 100% 0, 100% .765vw, 0 15.165vw);
}
.hero-text { --mega: min(11.2vw, 172px); position: relative; z-index: 1; }
.hero-text h1 { position: relative; display: inline-block; line-height: 1; padding-bottom: calc(var(--mega) * .9); }
.hero-text .mega {
  display: block; color: var(--white);
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: var(--mega); line-height: .82; letter-spacing: -.02em; margin-left: -.04em;
}
.hero-text .stack { position: absolute; right: 0; top: calc(var(--mega) * .44); text-align: right; }
.hero-text .stack .ws {
  display: block; color: var(--gelb); white-space: nowrap;
  font-weight: 800; font-stretch: 75%; text-transform: uppercase;
  font-size: clamp(48px, 7.7vw, 114px); line-height: .9;
  text-shadow: 0 2px 0 rgba(23,27,30,.35), 0 10px 28px rgba(23,27,30,.55);
}
.hero-text .stack .kg {
  display: block; margin-top: 5px; color: var(--white);
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(15px, 1.7vw, 24px); line-height: 1.2;
}
.hero-text .lead { color: var(--white); margin-top: 14px; font-size: 21px; font-weight: 500; }
.hero-text .hero-actions { margin-top: 32px; }
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .stage { min-height: 420px; }
  .cut { clip-path: polygon(0 18vw, 100% 0, 100% 100%, 0 100%); margin-top: -12vw; padding-top: 13vw; }
  .cut::after { clip-path: polygon(0 18vw, 100% 0, 100% 1.36vw, 0 19.36vw); }
  .hero-text { --mega: 12.4vw; }
  .hero-text h1 { padding-bottom: calc(var(--mega) * 1.25); }
  .hero-text .stack { top: calc(var(--mega) * .5); }
  .hero-text .stack .ws { font-size: 9.9vw; }
  .hero-text .stack .kg { margin-top: 1px; font-size: 3.6vw; }
  .hero-text .lead { font-size: 19px; }
}

/* ===== Startseite: Fallstudien, Angebot, Ablauf ===== */
.title {
  font-weight: 500; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(32px, 4.4vw, 64px); line-height: 1; letter-spacing: -.01em;
}
.title em { font-style: normal; color: var(--gelb); }
.night { background: #050912; color: #f2f5fa; }
.night .intro { color: #a9b6c9; font-size: clamp(18px, 1.5vw, 21px); max-width: 58ch; margin-top: 28px; text-wrap: pretty; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); margin-top: clamp(48px, 6vw, 88px); }
.case-shot { display: block; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px rgba(200,220,255,.14), 0 40px 80px rgba(0,0,0,.45); }
.case-shot img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.case-shot:hover img { transform: scale(1.03); }
.case-meta {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 22px;
  font-weight: 600; font-stretch: 112%; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9fb0c8;
}
.case h3 { font-weight: 500; font-stretch: 125%; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; margin-top: 14px; }
.case p { color: #c9d3e2; margin-top: 14px; max-width: 52ch; }
.case-link {
  display: inline-block; margin-top: 20px; font-weight: 700; font-stretch: 112%; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px;
  text-decoration-color: var(--gelb); text-decoration-thickness: 2px; color: #f2f5fa;
}
.case-link:hover { color: var(--gelb); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.offer { list-style: none; }
.offer li { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; padding: 26px 0; border-top: 1px solid rgba(23,27,30,.14); }
.offer li:last-child { border-bottom: 1px solid rgba(23,27,30,.14); }
.offer h3 { font-weight: 700; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; font-size: 20px; line-height: 1.2; }
.offer p { color: var(--schiefer); font-size: 17px; }
#ablauf .steps { list-style: none; margin-top: clamp(48px, 6vw, 80px); }
.step::before { color: #b9c1c7; }
#ueber-mich .lead { color: var(--tinte); }
#ueber-mich p + p { margin-top: 16px; }
.cta .title { font-size: clamp(40px, 6.4vw, 96px); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #050912; }
::-webkit-scrollbar-thumb { background: #3a4558; border-radius: 6px; border: 3px solid #050912; }
.btn:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 6px var(--tinte); }
@media (max-width: 640px) {
  .offer li { grid-template-columns: 1fr; gap: 6px; }
  .case-meta { flex-direction: column; gap: 4px; }
}
.offer p, #ueber-mich p, .case p, .step p { text-wrap: pretty; }
.step h3 { font-weight: 700; font-stretch: 112%; letter-spacing: .02em; font-size: 20px; line-height: 1.2; }
.cta { background: #050912; }
@media (max-width: 960px) {
  .cases, .split { grid-template-columns: 1fr; }
  #ablauf .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  #ablauf .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .cta .title { font-size: 9vw; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 640px) { .legal h1 { font-size: 8.6vw; hyphens: auto; } }

/* ===== Termin buchen (Cal.com) – kontakt.html, #termin ===== */
.termin { background: var(--beton); }
.termin-title { font-weight: 800; font-stretch: 85%; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; text-transform: uppercase; }
.termin-lead { color: var(--schiefer); margin-top: 12px; max-width: 56ch; }
.termin-box { margin-top: clamp(28px, 4vw, 48px); background: var(--white); border-left: 6px solid var(--gelb); min-height: 220px; }
.termin-box.is-live { border-left: 0; min-height: 520px; overflow: auto; }
.termin-fallback { padding: clamp(24px, 4vw, 48px); }
.termin-fallback p { max-width: 52ch; font-size: 20px; line-height: 1.45; }
.termin-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
@media (max-width: 640px) { .termin-actions .btn { width: 100%; } }
