/* ===================================================================
   kursiv. — Design System v0.1
   Ink #111111 · Paper #F8F8F6 · Accent #8B6CF6
   90% neutral · 10% accent · viel Weißraum · editorial
=================================================================== */

:root {
  --ink: #111111;
  --paper: #f8f8f6;
  --white: #ffffff;
  --accent: #8b6cf6;
  --accent-soft: #ece6ff;

  --grey-900: #1a1a1a;
  --grey-600: #6b6b6b;
  --grey-400: #9a9a9a;
  --grey-200: #e4e3df;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --f-display: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.dot { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.4em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  transition: transform 0.45s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { transition: transform 0.45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--accent); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { font-size: 1.05rem; padding: 1em 1.7em; }

/* ---------- Wordmark / Logo (Quicksand) ---------- */
.wordmark {
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: flex-end;
  line-height: 1;
}
.wordmark__text { display: inline-block; }
.wordmark__dot {
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-left: 0.07em;
  margin-bottom: 0.04em;
}
/* Echtes vektorisiertes Logo */
.wordmark__img { height: 26px; width: auto; display: block; }
.footer__brand .wordmark__img { height: 30px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--grey-600);
  transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { font-size: 0.9rem; padding: 0.7em 1.2em; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 12vh, 150px) var(--gutter) clamp(50px, 9vh, 110px);
}
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hero__sub {
  max-width: 540px;
  margin-top: 36px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--grey-600);
  line-height: 1.5;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.accent-underline { position: relative; white-space: nowrap; }
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.07em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
  animation: underline 1s var(--ease) 0.8s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

/* ---------- Strip / Marquee ---------- */
.strip {
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  overflow: hidden;
  padding: 22px 0;
}
.strip__track {
  display: flex;
  align-items: center;
  gap: 38px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.strip__dot { color: var(--accent); font-size: 0.5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: 56px; }
.section-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-num--light { color: var(--accent); }
.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

/* ---------- Leistungen ---------- */
.services { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 12vh, 140px) var(--gutter); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--grey-200);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease);
}
.service:hover { background: var(--white); }
.service__num { font-size: 0.85rem; font-weight: 600; color: var(--grey-400); }
.service h3 {
  margin-top: auto;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.service p { margin-top: 14px; color: var(--grey-600); max-width: 42ch; }

/* ---------- Arbeiten ---------- */
.works { max-width: var(--maxw); margin: 0 auto; padding: clamp(20px, 4vh, 50px) var(--gutter) clamp(70px, 12vh, 140px); }
.works__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work { display: block; }
.work__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.work:hover .work__media { transform: scale(0.985); }
.work__media--a { background: linear-gradient(135deg, var(--accent-soft), #d9f57a 120%); }
.work__media--a { background: radial-gradient(120% 120% at 20% 20%, var(--accent) 0%, #c6ff00 60%, var(--ink) 130%); }
.work__media--b { background: linear-gradient(135deg, var(--grey-200), var(--grey-400)); }
.work__meta { display: flex; justify-content: space-between; margin-top: 16px; font-weight: 600; }
.work__meta span:last-child { color: var(--grey-600); font-weight: 500; }

/* ---------- CTA / Agentur ---------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 16vh, 180px) var(--gutter);
}
.cta__inner { max-width: var(--maxw); margin: 0 auto; }
.cta__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin-top: 20px;
}
.accent-italic { color: var(--accent); font-style: italic; }
.cta__text { margin-top: 30px; max-width: 48ch; color: var(--grey-400); font-size: 1.15rem; }

/* ---------- Kontakt ---------- */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 16vh, 180px) var(--gutter);
  text-align: center;
}
.contact__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-top: 18px;
}
.contact__mail {
  display: inline-block;
  margin: 32px 0 36px;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 500;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: opacity 0.25s var(--ease);
}
.contact__mail:hover { opacity: 0.6; }

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--grey-200);
  padding: clamp(50px, 8vh, 90px) var(--gutter) 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 50px;
}
.footer__brand p { margin-top: 16px; color: var(--grey-600); max-width: 30ch; }
.footer__cols { display: flex; gap: clamp(30px, 6vw, 90px); }
.footer__cols > div { display: flex; flex-direction: column; gap: 12px; }
.footer__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-400); margin-bottom: 4px; }
.footer__cols a { color: var(--grey-600); transition: color 0.2s var(--ease); }
.footer__cols a:hover { color: var(--ink); }
.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  margin-top: 14px;
  border-top: 1px solid var(--grey-200);
  font-size: 0.85rem;
  color: var(--grey-400);
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); animation: reveal 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 0.12s + 0.1s); }
@keyframes reveal { to { opacity: 1; transform: none; } }

.section-head, .service, .work, .cta__inner, .contact { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.is-in { opacity: 1 !important; transform: none !important; }
.service { transition-delay: calc(var(--i, 0) * 0.05s); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .services__grid, .works__grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .section-head, .service, .work, .cta__inner, .contact { opacity: 1; transform: none; }
}
