/* =========================================================
   KI Institut — Neon Pulse
   Design tokens + global styles
   ========================================================= */

:root {
  /* Backgrounds */
  --bg-page: #141720;
  --bg-surface: #1C1F2A;
  --bg-alt: #111419;

  /* Accent — Lime */
  --color-primary: #A3E635;
  --color-primary-hover: #93D025;

  /* Semantic */
  --color-success: #10B981;
  --color-amber: #F59E0B;

  /* Text */
  --text-primary: #F1F1F3;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* Borders */
  --border-default: rgba(255, 255, 255, 0.08);
  --border-lime: rgba(163, 230, 53, 0.15);

  /* Fonts — Satoshi & DM Sans described in brief; using Fontshare web loader
     (free, DSGVO self-hosting would be done server-side in production). */
  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Inter', system-ui, sans-serif;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-2: 0 8px 24px rgba(0,0,0,0.25);
  --shadow-3: 0 18px 40px rgba(0,0,0,0.35);
  --shadow-4: 0 28px 60px rgba(0,0,0,0.45);
  --shadow-lime: 0 14px 34px rgba(163, 230, 53, 0.25);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  color: var(--text-primary);
}
p { margin: 0; color: var(--text-secondary); }

/* ===== Grain overlay ===== */
.grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== Layout ===== */
.ki-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.ki-section { padding: 120px 0; position: relative; }
.ki-section-alt { background: var(--bg-alt); }
.ki-section-surface { background: var(--bg-surface); }

/* ===== Header ===== */
.ki-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px 0;
  background: rgba(20, 23, 32, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-default);
}
.ki-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ki-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: -0.03em; }
.ki-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), #c4f55c);
  position: relative; display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(163,230,53,0.35), 0 8px 24px rgba(163,230,53,0.2);
}
.ki-logo-mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 4px;
  background: var(--bg-page);
}
.ki-logo-mark::before {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 2px;
  background: var(--color-primary); z-index: 1;
}
.ki-logo-text span { color: var(--color-primary); }
.ki-nav { display: flex; gap: 28px; font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.ki-nav a { transition: color .18s ease; }
.ki-nav a:hover { color: var(--text-primary); }
.ki-nav a.active { color: var(--color-primary); }
.ki-header-cta { display: flex; gap: 10px; align-items: center; }

/* ===== Mobile menu toggle ===== */
.ki-menu-toggle {
  display: none; width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0; z-index: 60;
}
.ki-menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
body.menu-open .ki-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .ki-menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .ki-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .ki-menu-toggle { display: flex; }
  .ki-header-cta { display: none; }
  .ki-nav {
    position: fixed; inset: 0; top: 62px; z-index: 49;
    background: rgba(20,23,32,0.97); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 28px; font-size: 22px;
    display: none;
  }
  body.menu-open .ki-nav { display: flex; }
  body.menu-open .ki-header-cta { display: flex; position: fixed; bottom: 40px; left: 28px; right: 28px; z-index: 49; justify-content: center; }
}

/* ===== Buttons ===== */
.ki-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 900;
  font-size: 14px; letter-spacing: -0.01em;
  transition: transform .22s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .22s ease;
  white-space: nowrap;
}
.ki-btn-primary {
  background: var(--color-primary); color: #0b0e14;
  box-shadow: var(--shadow-lime);
}
.ki-btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(163,230,53,0.35);
}
.ki-btn-ghost {
  background: transparent; color: var(--text-primary);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.ki-btn-ghost:hover {
  border-color: var(--color-primary);
  background: rgba(163,230,53,0.08);
  color: var(--color-primary);
  transform: translateY(-3px);
}
.ki-btn-dark { background: #0b0e14; color: #fff; }
.ki-btn-dark:hover { background: #000; transform: translateY(-3px); }
.ki-btn-green { background: var(--color-success); color: #fff; }
.ki-btn-green:hover { background: #0fa874; transform: translateY(-3px); }
.ki-btn-small { padding: 10px 16px; font-size: 12px; }
.ki-btn svg { width: 16px; height: 16px; }

.ki-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-primary); font-weight: 600; font-size: 14px;
  transition: gap .2s ease;
}
.ki-link:hover { gap: 14px; }

/* ===== Badges ===== */
.ki-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 900;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em;
  background: rgba(163,230,53,0.1); color: var(--color-primary);
  border: 1px solid var(--border-lime);
}
.ki-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}
.ki-badge-hero {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
}
.ki-badge-hero .ki-badge-dot { animation: pulse 2.2s ease-in-out infinite; }
.ki-badge-green { background: rgba(16,185,129,0.1); color: var(--color-success); border-color: rgba(16,185,129,0.22); }
.ki-badge-amber { background: rgba(245,158,11,0.1); color: var(--color-amber); border-color: rgba(245,158,11,0.22); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(163,230,53,0.7); }
  50% { box-shadow: 0 0 0 10px rgba(163,230,53,0); }
}

/* ===== Hero (2-column) ===== */
.ki-hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.ki-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 85% 15%, rgba(163,230,53,0.14), transparent 60%),
              radial-gradient(700px 400px at 10% 85%, rgba(88,120,200,0.15), transparent 55%),
              linear-gradient(180deg, #0f1218 0%, #141720 100%);
}
.ki-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><path d='M40 0H0V40' fill='none' stroke='rgba(255,255,255,0.035)' stroke-width='1'/></svg>");
  opacity: 0.8;
}
.ki-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px;
  align-items: center;
}
.ki-hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a2340 0%, #0c1020 60%, #141720 100%);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(163,230,53,0.18), 0 30px 80px rgba(163,230,53,0.12), var(--shadow-4);
}
.ki-hero-photo-inner {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(163,230,53,0.18), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(16,185,129,0.1), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 16px);
}
.ki-hero-photo-inner::before {
  /* stylized "AI face" placeholder */
  content: ""; position: absolute; top: 50%; left: 60%; transform: translate(-50%, -50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(163,230,53,0.18) 0%, transparent 70%);
  filter: blur(8px);
}
.ki-hero-photo-label {
  position: absolute; bottom: 24px; right: 32px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px; color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}
.ki-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,23,32,1) 0%, rgba(20,23,32,0.85) 50%, rgba(20,23,32,0.55) 100%);
}

.ki-hero-content { position: relative; z-index: 2; }
.ki-hero h1 {
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 0.98; margin: 24px 0 24px;
}
.ki-hero h1 .lime {
  background: linear-gradient(135deg, #d5fa7b 0%, #a3e635 70%, #7fbb24 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ki-hero p {
  font-size: 19px; max-width: 580px; color: var(--text-secondary);
}
.ki-hero-cta { display: flex; gap: 14px; margin: 36px 0 56px; flex-wrap: wrap; }

.ki-hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  border-top: 1px solid var(--border-default);
  padding-top: 32px;
}
.ki-stat-hero { position: relative; padding-right: 20px; }
.ki-stat-hero:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 10%; bottom: 10%; width: 1px;
  background: var(--border-default);
}
.ki-stat-hero .num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2.4rem; color: var(--color-primary);
  text-shadow: 0 0 22px rgba(163,230,53,0.35);
  letter-spacing: -0.03em; line-height: 1;
}
.ki-stat-hero .label {
  display: block; margin-top: 10px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted); font-weight: 600;
}

/* ===== Section heads ===== */
.ki-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ki-eyebrow .line { height: 1px; width: 40px; background: var(--color-primary); }
.ki-section-head { max-width: 720px; margin-bottom: 64px; }
.ki-section-head h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 18px; }
.ki-section-head h2 .lime { color: var(--color-primary); }
.ki-section-head p { font-size: 17px; }
.ki-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.ki-section-head.center .ki-eyebrow { justify-content: center; }

/* ===== Cards ===== */
.ki-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .35s ease, border-color .25s ease, box-shadow .35s ease;
  overflow: hidden;
}
.ki-card::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.ki-card:hover {
  transform: translateY(-8px);
  border-color: rgba(163,230,53,0.25);
  box-shadow: var(--shadow-4);
}
.ki-card:hover::before { opacity: 1; }

.ki-card-photo {
  aspect-ratio: 16 / 10; border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 22px;
  background: #0b0e14;
  position: relative;
}
.ki-card-photo .img-placeholder {
  position: absolute; inset: 0;
  transition: transform .6s ease;
}
.ki-card:hover .ki-card-photo .img-placeholder { transform: scale(1.06); }

.img-placeholder {
  background-size: cover; background-position: center;
  position: relative;
}
.img-placeholder::after {
  content: attr(data-label);
  position: absolute; bottom: 10px; left: 12px;
  font-family: ui-monospace, 'SF Mono', monospace; font-size: 10px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.08em;
}

/* Stylized placeholder backgrounds per topic */
.img-analytics { background:
  radial-gradient(circle at 30% 30%, rgba(163,230,53,0.22), transparent 50%),
  linear-gradient(135deg, #1a2140 0%, #0e1320 100%); }
.img-analytics::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 28px, rgba(163,230,53,0.08) 28px 29px),
              repeating-linear-gradient(0deg, transparent 0 28px, rgba(255,255,255,0.04) 28px 29px);
}
.img-strategy { background:
  radial-gradient(circle at 70% 40%, rgba(16,185,129,0.18), transparent 50%),
  linear-gradient(135deg, #24293d 0%, #12151f 100%); }
.img-strategy::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 24%; bottom: 24%;
  border: 1px dashed rgba(255,255,255,0.18); border-radius: 8px;
}
.img-coding { background:
  radial-gradient(circle at 50% 50%, rgba(163,230,53,0.14), transparent 60%),
  linear-gradient(180deg, #0c0f16 0%, #1a1f2c 100%); }
.img-coding::before {
  content: "const future = ai.deploy();"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-family: ui-monospace, 'SF Mono', monospace; font-size: 13px;
  color: rgba(163,230,53,0.6);
}
.img-office { background:
  linear-gradient(135deg, #1a2134 0%, #0c0f16 100%),
  radial-gradient(circle at 50% 50%, rgba(88,120,200,0.2), transparent 60%); }
.img-office::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 60px);
}
.img-handshake { background:
  radial-gradient(circle at 50% 60%, rgba(163,230,53,0.2), transparent 55%),
  linear-gradient(135deg, #241d35 0%, #0f1220 100%); }
.img-workshop { background:
  radial-gradient(circle at 30% 70%, rgba(245,158,11,0.14), transparent 55%),
  linear-gradient(135deg, #1e2336 0%, #0f131d 100%); }

.ki-card h3 { font-size: 22px; margin-bottom: 12px; }
.ki-card p { font-size: 15px; margin-bottom: 20px; }

/* ===== Feature cards ===== */
.ki-feature {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .3s ease, border-color .25s ease, box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.ki-feature:hover {
  transform: translateY(-6px);
  border-color: rgba(163,230,53,0.25);
  box-shadow: var(--shadow-3);
}
.ki-feature .icon-box {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: grid; place-items: center; margin-bottom: 22px;
  transition: background .25s ease, color .25s ease;
}
.ki-feature .icon-box svg { width: 24px; height: 24px; }
.ki-feature:hover .icon-box { background: var(--color-primary) !important; color: #0b0e14 !important; }
.ki-feature:hover .icon-box svg { color: #0b0e14 !important; }
.icon-lime { background: rgba(163,230,53,0.12); color: var(--color-primary); }
.icon-green { background: rgba(16,185,129,0.14); color: var(--color-success); }
.icon-amber { background: rgba(245,158,11,0.14); color: var(--color-amber); }
.ki-feature h3 { font-size: 20px; margin-bottom: 10px; }
.ki-feature p { font-size: 15px; }

/* ===== Problem section ===== */
.ki-problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ===== Leistungen grid ===== */
.ki-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ===== Image divider ===== */
.ki-divider {
  position: relative; min-height: 50vh;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--bg-alt);
}
.ki-divider-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(163,230,53,0.15), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(88,120,200,0.18), transparent 50%),
    linear-gradient(135deg, #0c0f16 0%, #1a2134 100%);
}
.ki-divider-bg::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><path d='M40 0H0V40' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/></svg>");
}
.ki-divider-overlay { position: absolute; inset: 0; background: rgba(20,23,32,0.72); }
.ki-divider-content { position: relative; z-index: 1; text-align: center; max-width: 760px; padding: 60px 28px; }
.ki-divider-content .big {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(72px, 10vw, 148px); line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #d5fa7b 0%, #a3e635 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ki-divider-content .sub { margin-top: 18px; font-size: 18px; color: var(--text-secondary); }

/* ===== Ablauf ===== */
.ki-ablauf { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ki-ablauf-photo {
  aspect-ratio: 4/5; border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(163,230,53,0.18), 0 30px 80px rgba(163,230,53,0.12), var(--shadow-4);
}
.ki-ablauf-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-xl);
  box-shadow: inset 0 0 80px rgba(163,230,53,0.12);
}
.ki-steps { display: flex; flex-direction: column; gap: 8px; }
.ki-step {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--border-default);
  transition: padding-left .25s ease;
}
.ki-step:first-child { border-top: none; }
.ki-step:hover { padding-left: 8px; }
.ki-step-num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 44px; letter-spacing: -0.04em; line-height: 1;
  color: var(--color-primary);
  text-shadow: 0 0 22px rgba(163,230,53,0.25);
}
.ki-step h4 { font-size: 22px; margin-bottom: 8px; }
.ki-step p { font-size: 15px; }

/* ===== ROI box ===== */
.ki-roi {
  position: relative;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(163,230,53,0.06));
  border: 1px solid rgba(16,185,129,0.28);
  border-radius: var(--radius-xl);
  padding: 56px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(16,185,129,0.12), 0 40px 90px rgba(16,185,129,0.18);
}
.ki-roi::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.35), transparent 60%);
  filter: blur(40px); left: -140px; top: -180px;
}
.ki-roi::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(163,230,53,0.3), transparent 60%);
  filter: blur(50px); right: -180px; bottom: -220px;
}
.ki-roi-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.ki-roi-grid h2 { font-size: clamp(32px, 3.4vw, 44px); margin: 18px 0 18px; }
.ki-roi-calc {
  background: rgba(11,14,20,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.ki-roi-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.ki-roi-row:last-child { border-bottom: none; }
.ki-roi-row .label { color: var(--text-secondary); font-size: 14px; }
.ki-roi-row .val { font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: -0.02em; }
.ki-roi-total { padding-top: 20px; border-top: 1px solid rgba(16,185,129,0.4); margin-top: 8px; }
.ki-roi-total .val { color: var(--color-success); font-size: 28px; text-shadow: 0 0 20px rgba(16,185,129,0.4); }

/* ===== Trust / Stats ===== */
.ki-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ki-trust-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--border-default); border-left: 1px solid var(--border-default); }
.ki-stat {
  padding: 32px 28px;
  border-right: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}
.ki-stat .num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 3.2rem; color: var(--color-primary);
  text-shadow: 0 0 24px rgba(163,230,53,0.35);
  line-height: 1; letter-spacing: -0.04em;
}
.ki-stat .label {
  display: block; margin-top: 12px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted); font-weight: 600;
}
.ki-trust-photo {
  aspect-ratio: 4/5; border-radius: var(--radius-xl);
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-4);
}

/* ===== Branchen ===== */
.ki-branchen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== FAQ ===== */
.ki-faq { max-width: 820px; margin: 0 auto; }
.ki-faq-item {
  border-top: 1px solid var(--border-default);
  padding: 24px 0;
  transition: padding .2s ease;
}
.ki-faq-item:hover { padding-left: 12px; }
.ki-faq-item:last-child { border-bottom: 1px solid var(--border-default); }
.ki-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left;
  font-family: var(--font-display); font-weight: 900;
  font-size: 18px; letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: color .2s ease;
}
.ki-faq-item.open .ki-faq-q { color: var(--color-primary); }
.ki-faq-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-default);
  display: grid; place-items: center;
  font-size: 20px; color: var(--text-secondary);
  transition: transform .3s ease, border-color .2s ease, color .2s ease;
  flex-shrink: 0; margin-left: 20px;
}
.ki-faq-item.open .ki-faq-toggle {
  transform: rotate(45deg);
  border-color: var(--color-primary); color: var(--color-primary);
}
.ki-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding-top .35s ease;
  color: var(--text-secondary); font-size: 15px;
  padding-right: 54px;
}
.ki-faq-item.open .ki-faq-a {
  max-height: 400px; padding-top: 16px;
}

/* ===== CTA ===== */
.ki-cta {
  position: relative;
  background: var(--color-primary);
  padding: 100px 0;
  overflow: hidden;
}
.ki-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(11,14,20,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(11,14,20,0.12), transparent 40%);
}
.ki-cta-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.ki-cta h2 { color: #0b0e14; font-size: clamp(36px, 4vw, 56px); line-height: 1.02; }
.ki-cta p { color: rgba(11,14,20,0.75); font-size: 17px; margin-top: 20px; }
.ki-cta-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ===== Footer ===== */
.ki-footer { background: var(--bg-alt); padding: 80px 0 40px; border-top: 1px solid var(--border-default); }
.ki-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; margin-bottom: 56px; }
.ki-footer h5 { font-family: var(--font-display); font-weight: 900; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.ki-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ki-footer a { color: var(--text-secondary); font-size: 14px; transition: color .2s ease; }
.ki-footer a:hover { color: var(--color-primary); }
.ki-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border-default); font-size: 13px; color: var(--text-muted); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Subpage hero (compact) ===== */
.ki-hero-mini {
  position: relative; padding: 170px 0 80px;
  background: var(--bg-page);
  overflow: hidden;
  border-bottom: 1px solid var(--border-default);
}
.ki-hero-mini-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 75% 20%, rgba(163,230,53,0.12), transparent 60%),
    radial-gradient(600px 350px at 10% 80%, rgba(88,120,200,0.12), transparent 55%),
    linear-gradient(180deg, #0f1218 0%, #141720 100%);
}
.ki-hero-mini-bg::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><path d='M40 0H0V40' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/></svg>");
}
.ki-hero-mini-inner { position: relative; z-index: 1; max-width: 820px; }
.ki-hero-mini h1 {
  font-size: clamp(38px, 4.4vw, 64px); line-height: 1;
  margin: 20px 0 20px;
}
.ki-hero-mini h1 .lime {
  background: linear-gradient(135deg, #d5fa7b 0%, #a3e635 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ki-hero-mini p { font-size: 18px; max-width: 620px; }
.ki-breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 8px;
}
.ki-breadcrumb a { color: var(--text-muted); transition: color .18s ease; }
.ki-breadcrumb a:hover { color: var(--color-primary); }
.ki-breadcrumb .sep { opacity: 0.5; }

/* ===== Two-col prose ===== */
.ki-prose { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; }
.ki-prose h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.ki-prose h3 { font-size: 20px; margin: 28px 0 10px; }
.ki-prose p { margin-bottom: 16px; }
.ki-prose ul { padding-left: 0; list-style: none; }
.ki-prose li { padding: 10px 0 10px 28px; position: relative; color: var(--text-secondary); font-size: 15px; }
.ki-prose li::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 14px; height: 2px;
  background: var(--color-primary);
}
.ki-prose-sticky { position: sticky; top: 110px; align-self: start; }

@media (max-width: 1024px) {
  .ki-prose { grid-template-columns: 1fr; gap: 32px; }
  .ki-prose-sticky { position: static; }
}

/* ===== Pricing table ===== */
.ki-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ki-price-card {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 36px 32px;
  position: relative; transition: transform .3s ease, border-color .25s ease;
}
.ki-price-card:hover { transform: translateY(-6px); border-color: rgba(163,230,53,0.25); }
.ki-price-card.featured { border-color: rgba(163,230,53,0.35); background: linear-gradient(180deg, rgba(163,230,53,0.05), var(--bg-surface)); }
.ki-price-card.featured::before {
  content: "Empfohlen"; position: absolute; top: -12px; left: 32px;
  background: var(--color-primary); color: #0b0e14;
  font-family: var(--font-display); font-weight: 900;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.ki-price-card h3 { font-size: 22px; margin-bottom: 6px; }
.ki-price-card .sub { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.ki-price-card .amount { font-family: var(--font-display); font-weight: 900; font-size: 48px; letter-spacing: -0.03em; margin-bottom: 4px; }
.ki-price-card .amount .cur { color: var(--text-muted); font-size: 24px; margin-right: 4px; }
.ki-price-card .amount-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.ki-price-card ul { padding: 0; list-style: none; margin: 0 0 28px; }
.ki-price-card li { padding: 10px 0 10px 28px; position: relative; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border-default); }
.ki-price-card li:last-child { border-bottom: none; }
.ki-price-card li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 16px; height: 10px;
  border-left: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}
.ki-price-card .ki-btn { width: 100%; justify-content: center; }

/* ===== Form ===== */
.ki-form { display: grid; gap: 16px; max-width: 640px; }
.ki-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ki-field { display: flex; flex-direction: column; gap: 6px; }
.ki-field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 700; font-family: var(--font-display); }
.ki-field input, .ki-field textarea, .ki-field select {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 14px 16px;
  color: var(--text-primary); font-family: var(--font-body); font-size: 15px;
  transition: border-color .18s ease, background .18s ease;
}
.ki-field input:focus, .ki-field textarea:focus, .ki-field select:focus {
  outline: none; border-color: var(--color-primary);
  background: rgba(163,230,53,0.04);
}
.ki-field textarea { min-height: 140px; resize: vertical; }
.ki-checkbox { display: flex; gap: 12px; align-items: start; font-size: 13px; color: var(--text-secondary); }
.ki-checkbox input { width: 18px; height: 18px; accent-color: var(--color-primary); margin-top: 2px; }

/* ===== Timeline (for Über uns) ===== */
.ki-timeline { position: relative; padding-left: 32px; }
.ki-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--border-default); }
.ki-timeline-item { position: relative; padding: 12px 0 32px; }
.ki-timeline-item::before {
  content: ""; position: absolute; left: -32px; top: 18px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg-page); border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 4px var(--bg-page), 0 0 16px rgba(163,230,53,0.4);
}
.ki-timeline-item .year { font-family: var(--font-display); font-weight: 900; font-size: 14px; color: var(--color-primary); letter-spacing: 0.04em; }
.ki-timeline-item h4 { font-size: 18px; margin: 6px 0 6px; }
.ki-timeline-item p { font-size: 14px; }

/* ===== Legal content ===== */
.ki-legal { max-width: 760px; font-size: 15px; line-height: 1.75; }
.ki-legal h2 { font-size: 26px; margin: 40px 0 14px; }
.ki-legal h3 { font-size: 18px; margin: 28px 0 10px; }
.ki-legal p, .ki-legal li { color: var(--text-secondary); }
.ki-legal ul { padding-left: 20px; }
.ki-legal a { color: var(--color-primary); }

@media (max-width: 768px) {
  .ki-pricing-grid { grid-template-columns: 1fr; }
  .ki-form-row { grid-template-columns: 1fr; }
}

/* ===== Tweaks panel ===== */
.ki-tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 300px; background: rgba(28,31,42,0.92);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px; color: var(--text-primary);
  box-shadow: var(--shadow-4);
  display: none;
  font-size: 13px;
}
.ki-tweaks.active { display: block; }
.ki-tweaks h5 { font-family: var(--font-display); font-weight: 900; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; color: var(--color-primary); }
.ki-tweaks-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ki-tweaks-row label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; }
.ki-tweaks-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ki-chip {
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-default);
  color: var(--text-secondary); font-size: 12px; font-weight: 500;
  transition: all .18s ease;
}
.ki-chip:hover { color: var(--text-primary); }
.ki-chip.on { background: rgba(163,230,53,0.14); border-color: rgba(163,230,53,0.4); color: var(--color-primary); }
.ki-tweaks input[type="color"] { width: 100%; height: 34px; border-radius: 6px; border: 1px solid var(--border-default); background: transparent; padding: 2px; }

/* ===== Theme variations via [data-accent] ===== */
body[data-accent="blue"] { --color-primary: #60A5FA; --color-primary-hover: #3B82F6; --border-lime: rgba(96,165,250,0.18); --shadow-lime: 0 14px 34px rgba(96,165,250,0.25); }
body[data-accent="magenta"] { --color-primary: #F0ABFC; --color-primary-hover: #E879F9; --border-lime: rgba(240,171,252,0.18); --shadow-lime: 0 14px 34px rgba(240,171,252,0.25); }
body[data-accent="amber"] { --color-primary: #FBBF24; --color-primary-hover: #F59E0B; --border-lime: rgba(251,191,36,0.18); --shadow-lime: 0 14px 34px rgba(251,191,36,0.25); }

body[data-density="cozy"] .ki-section { padding: 88px 0; }
body[data-density="cozy"] .ki-section-head { margin-bottom: 44px; }

body[data-hero="split"] .ki-hero-grid { grid-template-columns: 1.05fr 1fr; }
body[data-hero="split"] .ki-hero-photo-col { display: block; }
body[data-hero="centered"] .ki-hero-grid { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; text-align: center; }
body[data-hero="centered"] .ki-hero-photo-col { display: none; }
body[data-hero="centered"] .ki-hero-cta { justify-content: center; }
body[data-hero="centered"] .ki-hero-stats { grid-template-columns: repeat(4, 1fr); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .ki-services-grid { grid-template-columns: repeat(2, 1fr); }
  .ki-problem-grid { grid-template-columns: 1fr; }
  .ki-ablauf, .ki-trust, .ki-roi-grid, .ki-cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .ki-branchen { grid-template-columns: repeat(2, 1fr); }
  .ki-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .ki-hero-photo { aspect-ratio: 16/10; max-width: 560px; }
  .ki-nav { display: none; }
  .ki-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ki-section { padding: 72px 0; }
  .ki-services-grid { grid-template-columns: 1fr; }
  .ki-branchen { grid-template-columns: 1fr; }
  .ki-hero-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ki-stat-hero::after { display: none !important; }
  .ki-footer-grid { grid-template-columns: 1fr; }
  .ki-footer-bottom { flex-direction: column; gap: 12px; }
  .ki-roi { padding: 32px 24px; }
  .ki-cta-actions { justify-content: flex-start; }
}

/* ===== Production images ===== */
.img-analytics {
  background: url('/wp-content/uploads/2026/04/analytics-dashboard-1.jpg') center/cover no-repeat !important;
}
.img-strategy {
  background: url('/wp-content/uploads/2026/04/strategy-meeting-1.jpg') center/cover no-repeat !important;
}
.img-coding {
  background: url('/wp-content/uploads/2026/04/coding-dark-1.jpg') center/cover no-repeat !important;
}
.img-office {
  background: url('/wp-content/uploads/2026/04/modern-office-1.jpg') center/cover no-repeat !important;
}
.img-handshake {
  background: url('/wp-content/uploads/2026/04/business-handshake-1.jpg') center/cover no-repeat !important;
}
.img-workshop {
  background: url('/wp-content/uploads/2026/04/workshop-presentation-1.jpg') center/cover no-repeat !important;
}
.img-brain {
  background: url('/wp-content/uploads/2026/04/ai-brain-1.jpg') center/cover no-repeat !important;
}
.img-server {
  background: url('/wp-content/uploads/2026/04/server-room-1.jpg') center/cover no-repeat !important;
}
.img-consulting {
  background: url('/wp-content/uploads/2026/04/consulting-meeting-1.jpg') center/cover no-repeat !important;
}
.img-team {
  background: url('/wp-content/uploads/2026/04/team-collab-1.jpg') center/cover no-repeat !important;
}

/* Hide placeholder labels and decorative pseudo-elements on real images */
.img-placeholder::after { display: none !important; }
.img-analytics::before,
.img-strategy::before,
.img-coding::before,
.img-office::before,
.img-handshake::before,
.img-workshop::before,
.img-brain::before,
.img-server::before,
.img-consulting::before,
.img-team::before { display: none !important; }

/* Hero photo with real image */
.ki-hero-photo-real {
  background-size: cover !important;
  background-position: center !important;
}
.ki-hero-photo-real .ki-hero-photo-inner {
  background: rgba(20,23,32,0.25) !important;
}
.ki-hero-photo-real .ki-hero-photo-label { display: none; }

/* ===== WordPress admin bar fix ===== */
body.admin-bar .ki-header { top: 32px; }
body.admin-bar .ki-hero { padding-top: 172px; }
body.admin-bar .ki-hero-mini { padding-top: 202px; }

@media (max-width: 782px) {
  body.admin-bar .ki-header { top: 46px; }
}

/* ===== Override any Elementor global styles ===== */
.ki-design-active .elementor-page,
.ki-design-active .elementor,
.ki-design-active .elementor-element { all: unset; }

/* Ensure our body styles take priority */
body.ki-design-page {
  font-family: var(--font-body) !important;
  background: var(--bg-page) !important;
  color: var(--text-primary) !important;
  line-height: 1.65 !important;
  font-size: 16px !important;
}
