/* ============================================================
   newmind IT Consulting – Frame.io-inspired dark design
   ============================================================ */
:root {
  --bg: #0e0e10;
  --bg-elev: #17171b;
  --bg-elev-2: #1d1d22;
  --border: #27272e;
  --text: #f4f4f5;
  --text-dim: #9d9da6;
  --accent: #ff5a2e;
  --accent-hover: #ff6f47;
  --radius: 18px;
  --nav-h: 68px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 em { font-style: normal; color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { position: relative; overflow: hidden; background: var(--accent); color: #fff; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s ease;
}
.btn--primary:hover::after { left: 130%; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.22); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.9rem; }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(14,14,16,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }
.nav__logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.nav__logo-dot { color: var(--accent); }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 0.9rem; }

.nav__burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 7.5rem) 0 6.5rem; text-align: center; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,90,46,0.16), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 10%, rgba(255,255,255,0.05), transparent 70%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, auto, 54px 54px, 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 20%, #000 30%, transparent 82%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 20%, #000 30%, transparent 82%);
}
.hero__inner { position: relative; }
.hero h1 { margin-bottom: 1.6rem; }
.hero__sub {
  max-width: 620px; margin: 0 auto 2.6rem;
  color: var(--text-dim); font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__chips {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 4rem;
}
.hero__chips span {
  padding: 0.5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text-dim); font-size: 0.88rem; font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }
.section__head { max-width: 720px; margin-bottom: 3.5rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background-color: var(--bg-elev);
  background-image: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(255,90,46,0.12), transparent 65%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,90,46,0.45); background-color: var(--bg-elev-2); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255,90,46,0.12); color: var(--accent);
  margin-bottom: 1.4rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: 0.8rem; }
.card p { color: var(--text-dim); font-size: 0.97rem; flex: 1; }
.card__link { margin-top: 1.4rem; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.card__link:hover { color: var(--accent-hover); }

/* ---------- Quote ---------- */
.quote { padding: 7rem 0; text-align: center; position: relative; }
.quote__text {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.12;
  background: linear-gradient(100deg, #ffffff 25%, #8f8f98 45%, #ffffff 65%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.quote__sub { margin-top: 1.2rem; color: var(--text-dim); font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  margin: 0 4%;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 120% at 50% -20%, rgba(255,90,46,0.28), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--border);
  padding: 5.5rem 2rem;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; pointer-events: none;
  inset: auto -25% -70% -25%; height: 90%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255,90,46,0.30), transparent 70%);
  filter: blur(24px);
  animation: ctaGlow 7s ease-in-out infinite alternate;
}
@keyframes ctaGlow {
  from { opacity: 0.45; transform: translateX(-7%); }
  to { opacity: 1; transform: translateX(7%); }
}
.cta-band h2 { margin-bottom: 1.1rem; }
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 0 auto 2.4rem; }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.kontakt__info h2 { margin-bottom: 1rem; }
.kontakt__lead { color: var(--text-dim); margin-bottom: 2.2rem; max-width: 400px; }
.kontakt__list { list-style: none; display: grid; gap: 1.5rem; }
.kontakt__list li { display: grid; gap: 0.2rem; }
.kontakt__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); font-weight: 600; }
.kontakt__list a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
.kontakt__list a:hover { border-color: var(--accent); color: var(--accent); }

.kontakt__form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: grid; gap: 1.2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit; font-size: 0.97rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,90,46,0.18);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6d6d76; }
.form-note { color: var(--text-dim); font-size: 0.82rem; }
.kontakt__form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 6.5rem; padding: 4rem 0 1.5rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__brand p { color: var(--text-dim); font-size: 0.92rem; margin-top: 1rem; }
.footer__col { display: grid; gap: 0.7rem; align-content: start; }
.footer__col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 0.4rem; }
.footer__col a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.footer__col a:hover { color: var(--accent); }
.footer__legal { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.footer__legal p { color: #6d6d76; font-size: 0.85rem; }

/* ---------- KI & Agenten ---------- */
.accent { color: var(--accent); }

.ki-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: center;
  margin-bottom: 3.2rem;
}
.ki-text h2 { margin-bottom: 1.1rem; }
.ki-text > p { color: var(--text-dim); max-width: 480px; margin-bottom: 1.8rem; }
.ki-list { list-style: none; display: grid; gap: 0.85rem; margin-bottom: 2.4rem; }
.ki-list li { position: relative; padding-left: 2rem; color: var(--text); font-size: 0.98rem; }
.ki-list li::before {
  content: ""; position: absolute; left: 0; top: 0.32rem;
  width: 1.1rem; height: 1.1rem; border-radius: 4px;
  background: rgba(255,90,46,0.15);
  border: 1px solid rgba(255,90,46,0.5);
}
.ki-list li::after {
  content: ""; position: absolute; left: 0.34rem; top: 0.62rem;
  width: 0.4rem; height: 0.24rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.ki-visual {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,90,46,0.10), transparent 65%), var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8);
}
.ki-visual svg { width: 100%; height: auto; display: block; }

/* animierte Datenflüsse */
.flow { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* pulsierender Orchestrator-Kern */
.pulse { animation: pulse 2.8s ease-in-out infinite; transform-origin: 320px 130px; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .flow, .pulse { animation: none; }
}

.ki-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* ---------- Neue Animationen ---------- */

/* Scroll-Fortschritt */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), #ff8a5e);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* Nav beim Scrollen */
.nav { transition: background 0.3s ease, border-color 0.3s ease; }
.nav.scrolled { background: rgba(14,14,16,0.94); border-bottom-color: rgba(255,255,255,0.12); }

/* Hero: gestaffelte Entrance */
.hero-anim {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Hero: Zeilen-Masken-Reveal */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line__inner {
  display: block; transform: translateY(115%);
  animation: rise 1s cubic-bezier(0.2, 0.65, 0.2, 1) 0.05s forwards;
}
.hero h1 .line:nth-child(2) .line__inner { animation-delay: 0.2s; }
@keyframes rise { to { transform: none; } }

/* Laufband */
.marquee {
  overflow: hidden; padding: 1.1rem 0;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; gap: 2.8rem; padding-right: 2.8rem; }
.marquee__set span {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
}
.marquee__set i { font-style: normal; color: var(--accent); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* schwebende Agenten in der Grafik */
.float { animation: floaty 5s ease-in-out infinite; }
.f2 { animation-delay: 0.9s; }
.f3 { animation-delay: 1.8s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-anim, .hero h1 .line__inner, .marquee__track, .flow, .pulse,
  .float, .quote__text, .cta-band::before { animation: none; }
  .hero-anim { opacity: 1; transform: none; }
  .hero h1 .line__inner { transform: none; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .ki-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ki-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .kontakt { grid-template-columns: 1fr; gap: 3rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(14,14,16,0.97);
    border-bottom: 1px solid var(--border);
    padding: 1.4rem 5%; gap: 1.2rem;
  }
  .hero { padding-top: calc(var(--nav-h) + 5rem); }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}
