/* ===========================================================
   AI Partner 24 — Stylesheet
   Konzept: „Präzision trifft Intelligenz"
   Marke: Crimson #C01540 · Navy #0D1B2E
   Type:  Space Grotesk (Display) · Inter (Body) · IBM Plex Mono (Technik-Labels)
   =========================================================== */

:root {
  --magenta: #C01540;        /* Akzent — Oxblood-Crimson (vertieft von #E6195C) */
  --magenta-600: #A10F33;    /* Hover / Press — Wein */
  --magenta-400: #F0567E;    /* nur auf dunklen Flächen — Himbeer-Pop */
  --magenta-50: #FBE9EE;     /* zarter Crimson-Tint */

  --navy: #0d1b2e;
  --navy-900: #0a1422;   /* tiefere Variante für Panels */
  --ink: #16233b;
  --body: #4a5568;
  --muted: #7c8aa0;

  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --nav-h: 76px;

  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', 'Menlo', monospace;

  --shadow: 0 22px 60px -28px rgba(13, 27, 46, 0.34);
  --shadow-sm: 0 10px 30px -18px rgba(13, 27, 46, 0.32);

  /* dezentes Blueprint-Raster für dunkle Flächen */
  --grid: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { scroll-margin-top: var(--nav-h); }

::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Technik-Label (Signatur) ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--magenta-600); margin-bottom: 18px;
}
.kicker::before {
  content: ''; width: 26px; height: 1.5px; background: var(--magenta); flex: none;
}
.section-head.center .kicker { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: 15.5px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 14px 30px -12px rgba(192, 21, 64, 0.50); }
.btn-primary:hover { background: var(--magenta-600); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #d6dbe5; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--magenta); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(0,0,0,.4); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink);
  font-family: var(--font-display); position: relative;
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--magenta); transition: width .25s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links .btn { display: none; } /* CTA im Menü nur auf Mobil sichtbar */
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 44px); padding-bottom: 64px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -12%; right: -6%; width: 62vw; height: 62vw; max-width: 840px; max-height: 840px;
  background: radial-gradient(circle at center, rgba(192,21,64,.13), rgba(192,21,64,0) 62%); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: calc(86vh - var(--nav-h)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-weight: 500;
  font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--magenta-600); background: var(--magenta-50);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 4px rgba(192,21,64,.18); }

.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.15rem); letter-spacing: -2px; color: var(--navy); margin-bottom: 24px; font-weight: 600; }
.hero h1 .accent { color: var(--magenta); }
.hero-sub { font-size: clamp(1.04rem, 1.4vw, 1.22rem); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .3px; color: var(--muted); }
.hero-trust svg { width: 17px; height: 17px; color: var(--magenta); flex: none; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; }
#hero-canvas { width: 100%; height: 100%; display: block; }
.hero-visual-fallback {
  position: absolute; inset: 16%; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, rgba(192,21,64,.5), rgba(160,15,51,.3) 52%, rgba(160,15,51,0) 78%);
  filter: blur(14px); opacity: .8; z-index: -1;
}

/* ---------- Kennzahlen ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 18px; text-align: center; border-left: 1px solid var(--line); position: relative; }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--magenta); letter-spacing: -1.2px; }
.stat .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(1.95rem, 3.6vw, 2.9rem); letter-spacing: -1.4px; color: var(--ink); margin-bottom: 16px; }
.section-lead { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--body); }

/* ---------- Leistungs-/Methoden-Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--magenta-50); color: var(--magenta); margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--ink); font-weight: 600; letter-spacing: -.4px; }
.card p { font-size: 15.5px; }

/* ---------- Prozess (echte Sequenz → Nummerierung) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; }
.step-num {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 1.15rem;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.step h4 { font-size: 1.22rem; margin-bottom: 8px; color: var(--ink); font-weight: 600; letter-spacing: -.4px; }
.step p { font-size: 15px; }
.step::after {
  content: ''; position: absolute; top: 27px; left: 64px; right: -12px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }

/* ---------- Über uns / Why ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text p { margin-bottom: 18px; }
.why-list { list-style: none; display: grid; gap: 16px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-check {
  flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--magenta-50); color: var(--magenta);
  display: flex; align-items: center; justify-content: center;
}
.why-check svg { width: 18px; height: 18px; }
.why-list strong { font-family: var(--font-display); color: var(--ink); font-weight: 600; display: block; font-size: 1.05rem; letter-spacing: -.2px; }
.why-list span { font-size: 14.5px; color: var(--body); }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--navy-900); color: #fff; border-radius: 26px; padding: clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: 0; background-image: var(--grid); background-size: 46px 46px; opacity: .5; pointer-events: none; }
.cta-band::before { content: ''; position: absolute; top: -40%; right: -10%; width: 480px; height: 480px; background: radial-gradient(circle, rgba(192,21,64,.38), transparent 65%); }
.cta-band-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.45rem); letter-spacing: -1px; margin-bottom: 10px; }
.cta-band p { color: #c4cdda; font-size: 1.08rem; max-width: 520px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 22px; margin-top: 30px; }
.contact-item { display: flex; gap: 16px; align-items: center; }
.contact-item .ci-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--magenta-50); color: var(--magenta); display: flex; align-items: center; justify-content: center; }
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item .ci-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-item .ci-value { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 1.06rem; }
.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15.5px; color: var(--ink); background: #fcfdff; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(192,21,64,.13); }
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #aeb8c7; padding: 72px 0 30px; position: relative; overflow: hidden; }
.footer::after { content: ''; position: absolute; inset: 0; background-image: var(--grid); background-size: 46px 46px; opacity: .35; pointer-events: none; }
.footer .container { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 40px; margin-bottom: 20px; }
.footer-brand p { font-size: 14.5px; max-width: 280px; }
.footer h5 { font-family: var(--font-mono); color: #fff; font-weight: 500; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer ul a { font-size: 14.5px; transition: color .2s ease; }
.footer ul a:hover { color: var(--magenta-400); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .3px; }
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a:hover { color: #fff; }

/* ---------- Wirkung / Impact ---------- */
.impact { background: var(--navy-900); border-radius: 26px; padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.impact::after { content: ''; position: absolute; inset: 0; background-image: var(--grid); background-size: 46px 46px; opacity: .5; pointer-events: none; }
.impact::before { content: ''; position: absolute; top: -30%; left: -8%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(192,21,64,.30), transparent 65%); }
.impact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.impact-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px 26px; backdrop-filter: blur(2px); }
.impact-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(192,21,64,.16); color: var(--magenta-400); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.impact-icon svg { width: 24px; height: 24px; }
.impact-metric { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: #fff; letter-spacing: -.8px; }
.impact-card h4 { color: #fff; font-size: 1.08rem; margin: 4px 0 10px; font-weight: 500; }
.impact-card p { color: #b8c2d2; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: #d8dde7; box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; color: var(--ink); letter-spacing: -.2px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { flex: none; width: 24px; height: 24px; color: var(--magenta); transition: transform .25s ease; }
.faq-item[open] .faq-ic { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--magenta); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { font-size: 15.5px; color: var(--body); margin: 0; }

/* ---------- Rechtstexte ---------- */
.legal-page { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 80px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); margin-bottom: 30px; letter-spacing: -1.4px; }
.legal-page h2 { font-size: 1.4rem; color: var(--ink); margin: 38px 0 14px; letter-spacing: -.4px; }
.legal-page h3 { font-size: 1.1rem; color: var(--ink); margin: 24px 0 10px; }
.legal-page p, .legal-page li { font-size: 16px; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }
.legal-page a { color: var(--magenta); }
.legal-date { font-family: var(--font-mono); font-size: 13px; letter-spacing: .3px; color: var(--muted); margin-bottom: 30px; }
.legal-page h3 + p .legal-date { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--magenta); font-weight: 500; margin-bottom: 30px; }
.back-link svg { width: 18px; height: 18px; }
.placeholder-note {
  background: #fff7e6; border: 1px solid #f3d999; color: #8a5a00; border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: 14.5px; margin-bottom: 36px;
}
.placeholder-note strong { color: #6b4500; }
mark.ph { background: var(--magenta-50); color: var(--magenta-600); padding: 1px 6px; border-radius: 5px; font-style: normal; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .hero-visual { max-width: 440px; margin: 0 auto; order: -1; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px; }
  .step::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 24px; transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow); }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { display: inline-flex; margin-top: 14px; justify-content: center; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 820px) { .impact-grid { grid-template-columns: 1fr; } }

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