/* intelliz — Stylesheet */

:root {
  --ink: #1A2B33;
  --ink-soft: #46606C;
  --paper: #FFFFFF;
  --mist: #F2F6F6;
  --petrol: #0E6E6E;
  --petrol-bright: #12A594;
  --petrol-deep: #0A5252;
  --line: #DCE6E6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: var(--petrol); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }

/* ---------- Navigation ---------- */
nav {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--ink); }
.logo span { color: var(--petrol); }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--ink-soft); position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--petrol); transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--petrol); }
.nav-links a:hover::after { width: 100%; }
.nav-back { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.nav-back:hover { color: var(--petrol); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer; border-radius: 8px; }
.menu-btn .cross { display: none; }
nav.open .menu-btn .bars { display: none; }
nav.open .menu-btn .cross { display: block; }

/* ---------- Hero ---------- */
header.hero {
  padding: 80px 0 72px;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(18, 165, 148, 0.10), transparent 65%),
    radial-gradient(600px 300px at 0% 100%, rgba(14, 110, 110, 0.07), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hero p.lead { margin-top: 22px; font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 8px;
  font-weight: 700; font-size: 1rem; border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary { background: var(--petrol); color: #fff; box-shadow: 0 6px 18px rgba(14, 110, 110, 0.25); }
.btn-primary:hover { background: var(--petrol-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 110, 110, 0.3); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--petrol); color: var(--petrol); transform: translateY(-2px); }
.hero-facts { margin-top: 38px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.hero-facts div { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { color: var(--petrol-bright); flex: none; }

/* Einstiegssequenz: eine orchestrierte Animation beim Laden */
.intro-seq > * { opacity: 0; transform: translateY(14px); animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.intro-seq > *:nth-child(1) { animation-delay: 0.05s; }
.intro-seq > *:nth-child(2) { animation-delay: 0.18s; }
.intro-seq > *:nth-child(3) { animation-delay: 0.31s; }
.intro-seq > *:nth-child(4) { animation-delay: 0.44s; }
.hero-visual { opacity: 0; animation: rise 0.7s 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Terminal */
.term-kicker { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; }
.term { background: #10222B; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 56px rgba(16, 34, 43, 0.30); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #0B1920; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #FF5F57; }
.term-bar i:nth-child(2) { background: #FEBC2E; }
.term-bar i:nth-child(3) { background: #28C840; }
.term-bar span { margin-left: 10px; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: #5E7D86; }
.term-body {
  padding: 20px 22px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; line-height: 2.15; color: #B9D2D2;
  min-height: 248px;
}
.term-body .ln { opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s; }
.term-body .ln.show { opacity: 1; transform: none; }
.term-body .ok { color: #2EE6A8; }
.term-body .dim { color: #5E7D86; }
.term-body .hl { color: #fff; font-weight: 600; }
.cursor { display: inline-block; width: 8px; height: 14px; background: #2EE6A8; vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Sektionen ---------- */
section { padding: 76px 0; }
section.tinted { background: var(--mist); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.section-intro { margin-top: 12px; color: var(--ink-soft); max-width: 38em; font-size: 1.05rem; }

/* ---------- Leistungen ---------- */
.leistungen { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.leistung { padding: 28px 32px 28px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.leistung:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); padding-right: 0; }
.leistung .icon {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: rgba(14, 110, 110, 0.09); color: var(--petrol);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.leistung:hover .icon { background: var(--petrol); color: #fff; transform: rotate(-6deg) scale(1.06); }
.leistung h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.leistung p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Vorher / Nachher ---------- */
section.vergleich { padding: 60px 0; }
.vn { max-width: 720px; margin: 36px auto 0; }
.vn .row { margin-bottom: 26px; }
.vn .label { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; margin-bottom: 10px; font-size: 0.98rem; }
.vn .label .time { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.vn .track { height: 18px; border-radius: 9px; background: #E6EEEE; overflow: hidden; }
.vn .bar { height: 100%; border-radius: 9px; width: 0; }
.vn .bar.alt { background: #9FB4BC; }
.vn .bar.neu { background: linear-gradient(90deg, var(--petrol), var(--petrol-bright)); }
.vn.play .bar.alt { animation: grow-alt 1.6s 0.2s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.vn.play .bar.neu { animation: grow-neu 1.2s 1.8s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes grow-alt { to { width: 92%; } }
@keyframes grow-neu { to { width: 4%; } }
.vn .punch { margin-top: 10px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; opacity: 0; }
.vn .punch em { font-style: normal; color: var(--petrol); }
.vn .punchsub { color: var(--ink-soft); font-size: 0.92rem; opacity: 0; }
.vn.play .punch { animation: fadeup 0.6s 2.9s forwards; }
.vn.play .punchsub { animation: fadeup 0.6s 3.1s forwards; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Projekte ---------- */
.projekte { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.projekt {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.projekt::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--petrol), var(--petrol-bright));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.projekt:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(26, 43, 51, 0.12); border-color: rgba(14, 110, 110, 0.4); }
.projekt:hover::before { transform: scaleX(1); }
.projekt .status { font-size: 0.85rem; font-weight: 700; color: var(--petrol); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.projekt .status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--petrol-bright); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18, 165, 148, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(18, 165, 148, 0); }
}
.projekt h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.projekt p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.projekt .facts { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft); }
.projekt .facts strong { color: var(--ink); font-weight: 600; }
.projekt a.more { margin-top: 14px; font-weight: 700; font-size: 0.95rem; }
.projekt a.more:hover { text-decoration: underline; }

/* ---------- Erfahrung (dunkle Sektion) ---------- */
section.dark {
  background:
    radial-gradient(700px 360px at 90% 10%, rgba(18, 165, 148, 0.14), transparent 60%),
    var(--ink);
  color: #E8EFF1;
}
section.dark h2 { color: #fff; }
.erfahrung-grid { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-content: start; }
.zahl strong { display: block; font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.zahl > span { color: #9FB8C0; font-size: 0.95rem; }
.zahl strong .count { color: inherit; font-size: inherit; }
.arbeitsweise li { list-style: none; display: flex; gap: 16px; margin-bottom: 24px; }
.arbeitsweise .step {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--petrol); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.arbeitsweise h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.arbeitsweise p { color: #9FB8C0; font-size: 0.97rem; }

/* ---------- Kontakt ---------- */
.kontakt-box {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 40px; flex-wrap: wrap;
}
.kontakt-box .details { color: var(--ink-soft); font-size: 1rem; line-height: 1.9; }
.kontakt-box .details strong { color: var(--ink); }
.kontakt-box .details a { color: var(--ink-soft); }
.kontakt-box .details a:hover { color: var(--petrol); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.92rem; color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner a { color: var(--ink-soft); margin-left: 20px; }
.footer-inner a:hover { color: var(--petrol); }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
main.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
main.legal h1 { font-size: 2rem; margin-bottom: 24px; }
main.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
main.legal p, main.legal li { color: var(--ink-soft); margin-bottom: 12px; }
main.legal ul { padding-left: 22px; }
main.legal .todo { background: #FFF4E0; border: 1px solid #F0D9A8; border-radius: 8px; padding: 10px 14px; color: #7A5A17; font-size: 0.95rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .leistungen { grid-template-columns: 1fr; }
  .leistung, .leistung:nth-child(even) { padding-left: 0; padding-right: 0; border-left: none; }
  .projekte { grid-template-columns: 1fr; }
  .erfahrung-grid { grid-template-columns: 1fr; gap: 40px; }
  .menu-btn { display: flex; align-items: center; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(26, 43, 51, 0.10);
  }
  .nav-links a { padding: 15px 24px; border-top: 1px solid var(--line); color: var(--ink); }
  .nav-links a::after { display: none; }
  nav.open .nav-links { display: flex; }
  .term-body { font-size: 0.74rem; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-seq > *, .hero-visual { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .projekt .status .dot, .cursor { animation: none; }
  .vn .bar.alt, .vn.play .bar.alt { width: 92%; animation: none; }
  .vn .bar.neu, .vn.play .bar.neu { width: 4%; animation: none; }
  .vn .punch, .vn .punchsub, .vn.play .punch, .vn.play .punchsub { opacity: 1; animation: none; }
}
