/* ═══════════════════════════════════════════
   Können Intelligence — Shared Styles
   Design System v3 (Multi-page, Refreshed)
   ═══════════════════════════════════════════ */

/* ── COLOR TOKENS ── */
:root {
  --bg:         #070d16;
  --bg2:        #0c1520;
  --bg3:        #111d2d;
  --surface:    #162236;
  --accent:     #00c9a7;
  --accent-dim: rgba(0,201,167,0.10);
  --accent-mid: rgba(0,201,167,0.25);
  --accent-glow:rgba(0,201,167,0.15);
  --blue:       #3b82f6;
  --blue-dim:   rgba(59,130,246,0.10);
  --text:       #edf2f8;
  --muted:      #b0c4d8;
  --faint:      #6b8099;
  --border:     #1a2a3e;
  --heading:    #f0f4fa;
  --white:      #ffffff;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-hover: 0 8px 32px rgba(0,201,167,0.08);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --max-w:      1120px;
  --nav-h:      64px;
}

/* ── LIGHT MODE ── */
body.light-mode {
  --bg:         #f6f8fb;
  --bg2:        #eef1f6;
  --bg3:        #ffffff;
  --surface:    #f0f3f8;
  --accent:     #009e85;
  --accent-dim: rgba(0,158,133,0.08);
  --accent-mid: rgba(0,158,133,0.20);
  --accent-glow:rgba(0,158,133,0.06);
  --blue:       #2563eb;
  --blue-dim:   rgba(37,99,235,0.08);
  --text:       #1e293b;
  --muted:      #475569;
  --faint:      #7c8ea1;
  --border:     #e2e8f0;
  --heading:    #0f172a;
  --white:      #0f172a;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 32px rgba(0,158,133,0.06);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  color: var(--heading);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
h4 { font-size: 1rem; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 36px;
  height: 1px;
  background: var(--accent-mid);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 48px);
  background: rgba(7,13,22,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
body.light-mode nav { background: rgba(246,248,251,0.92); }

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--heading);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--heading);
  background: var(--accent-dim);
}
.nav-links a.active {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px;
  gap: 0;
}
.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block !important;
}
.lang-btn.active {
  background: var(--accent);
  color: #070d16;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  padding: 0;
  color: var(--muted);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent-mid);
  color: var(--accent);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
body.light-mode .theme-toggle .icon-sun { display: block; }
body.light-mode .theme-toggle .icon-moon { display: none; }

.nav-cta {
  background: var(--accent);
  color: #070d16;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: none;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* Mobile menu toggle */
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  padding: 4px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .nav-left { gap: 16px; }
}

/* ── HERO ── */
.hero {
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 56px;
}
/* Only homepage gets full-height hero (it has metric cards) */
.hero-full {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}

h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero h1 {
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.08s ease both;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
  animation: fadeUp 0.6s 0.16s ease both;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp 0.6s 0.24s ease both;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-trust span::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}
.hero-trust .sep { color: var(--border); }

/* Hero visual (right column) */
.hero-visual {
  animation: fadeUp 0.7s 0.2s ease both;
}
.metric-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metric-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.metric-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-hover);
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}
.metric-card.blue::before { background: var(--blue); }
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 6px;
}
.metric-label { font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.metric-before { font-size: 0.86rem; color: var(--faint); text-decoration: line-through; }
.metric-after {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}
.metric-card.blue .metric-after { color: var(--blue); }
.metric-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #070d16;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  width: fit-content;
  box-shadow: 0 0 32px var(--accent-glow);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(0,201,167,0.2);
}
.btn-primary svg { flex-shrink: 0; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  color: var(--heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}
.btn-secondary:hover {
  border-color: var(--accent-mid);
  background: var(--accent-dim);
}

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
}
.section-pad {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg2);
}

/* ── CARDS ── */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-text {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.75;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── QUOTE BLOCK ── */
.quote-block {
  border-left: 3px solid var(--accent);
  padding: 28px 36px;
  background: linear-gradient(135deg, var(--accent-dim), var(--bg3));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
  overflow: hidden;
}
.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -16px; right: 24px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 8rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.06;
  line-height: 1;
}
.quote-block p {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
}
.quote-block .quote-author {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 12px;
}

/* ── FLOW DIAGRAM ── */
.flow {
  display: flex;
  align-items: stretch;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.flow-node {
  flex: 1;
  padding: 18px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.flow-node:last-child { border-right: none; }
.flow-node.highlight { background: var(--accent-dim); }
.flow-node-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.flow-node-main {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}
.flow-node.highlight .flow-node-main { color: var(--accent); }
.flow-node-sub { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 3px;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--bg3);
  border-right: 1px solid var(--border);
}

/* ── VERTICAL FLOW DIAGRAM ── */
.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.flow-diagram .flow-node {
  border-right: none;
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  flex: none;
}
.flow-diagram .flow-node:last-child {
  border-bottom: none;
}
.flow-diagram .flow-connector {
  height: 1px;
  background: var(--border);
  display: none;
}
.flow-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
  display: block;
}
.flow-description {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 100%;
}

/* ── FLOW STEPS (Compliance Anonymization Pipeline) ── */
.flow-step {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.flow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent-mid);
  color: var(--accent);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.flow-step .flow-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0;
}

/* ── COMPLIANCE HERO ICONS ── */
.compliance-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.icon-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.icon-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.icon-card .icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  line-height: 1;
}
.icon-card .icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  margin: 0 auto 12px;
}
.icon-card .label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
}
/* Override data-lang display:contents inside icon-card labels */
.icon-card .label[data-lang="de"] { display: block; }
.icon-card .label[data-lang="en"] { display: none; }
body.lang-en .icon-card .label[data-lang="en"] { display: block; }
body.lang-en .icon-card .label[data-lang="de"] { display: none; }

/* Compliance note under icons */
.compliance-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  margin-bottom: 0;
}
.compliance-note[data-lang="de"] { display: block; }
.compliance-note[data-lang="en"] { display: none; }
body.lang-en .compliance-note[data-lang="en"] { display: block; }
body.lang-en .compliance-note[data-lang="de"] { display: none; }

/* ── SCROLL HINT ── */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 32px auto 0;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  animation: fadeUp 0.6s 0.4s ease both;
  width: fit-content;
}
.scroll-hint:hover {
  background: var(--accent-dim);
}
.scroll-hint-text {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.scroll-hint:hover .scroll-hint-text {
  color: var(--accent);
}
.scroll-hint-arrow {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  display: block;
  color: var(--accent);
  animation: scrollBounce 2s infinite;
  flex-shrink: 0;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ── ANONYMIZATION PIPELINE ── */
.anon-pipeline {
  max-width: 680px;
  margin: 0 auto;
}
.pipeline-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pipeline-step:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-hover);
}
.pipeline-step-highlight {
  background: var(--accent-dim);
  border-color: var(--accent-mid);
}
.pipeline-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent-mid);
  color: var(--accent);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 2px;
}
.pipeline-step-highlight .pipeline-num {
  background: var(--accent);
  color: #070d16;
  border-color: var(--accent);
}
.pipeline-content h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}
.pipeline-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.pipeline-connector {
  display: flex;
  justify-content: center;
  padding: 2px 0;
}

/* ── COMPLIANCE STANDARDS GRID ── */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.standard-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.standard-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.standard-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #070d16;
  font-weight: 800;
  font-size: 0.9rem;
  margin-top: 2px;
}
.standard-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}
.standard-info p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── COMPARISON TABLE ── */
.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.9rem;
}
.comp-table th {
  background: var(--bg3);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--heading);
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comp-table th:first-child { color: var(--muted); }
.comp-table th.highlight { color: var(--accent); background: var(--accent-dim); }
.comp-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table td:first-child { font-weight: 600; color: var(--heading); }
.comp-table td.highlight { background: var(--accent-dim); }
.comp-table .check { color: var(--accent); font-weight: 700; }
.comp-table .cross { color: var(--faint); }

/* ── FAQ ACCORDION ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1.4;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--faint);
  transition: transform var(--transition), color var(--transition);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}
.faq-preview {
  display: block;
  font-size: 0.84rem;
  color: var(--faint);
  line-height: 1.5;
  padding: 0 0 16px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}
.faq-item.open .faq-preview {
  display: none;
}

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; }
.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
  margin: 0;
}
.step-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  transition: color var(--transition);
}
.step:hover .step-num { color: var(--accent-mid); }
.step-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}
.step-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 100%;
}
.step p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 100%;
  margin: 0;
}
.step-badge {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  width: fit-content;
}

/* ── BADGES / TAGS ── */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--accent-mid);
  color: var(--accent);
  background: var(--accent-dim);
}
.badge-blue {
  border-color: rgba(59,130,246,0.3);
  color: var(--blue);
  background: var(--blue-dim);
}

/* ── FOUNDER / TEAM ── */
.founder-block {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  align-items: center;
}
.founder-photo {
  width: 160px; height: 200px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent-mid);
  filter: grayscale(15%);
}
.founder-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-dim), var(--bg3));
  border: 2px solid var(--accent-mid);
}
.founder-initials {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.founder-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 4px;
}
.founder-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.founder-bio { font-size: 0.93rem; color: var(--muted); line-height: 1.75; }
.founder-refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.founder-ref {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 11px;
  border-radius: 100px;
}

/* ── FORM ── */
.form-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
}
.form-group { margin-bottom: 16px; }
label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}
.req { color: var(--accent); }
input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  color: var(--text);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.93rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-legal { font-size: 0.78rem; color: var(--faint); margin-top: 10px; text-align: center; }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #070d16;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: var(--radius-md);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 0 32px var(--accent-glow);
}
.btn-submit:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* Calendly note */
.calendly-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 16px;
}
.calendly-note strong { color: var(--blue); }
.calendly-link { color: var(--blue); font-weight: 600; }
.calendly-link:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px clamp(20px, 5vw, 48px) 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--faint);
  position: relative;
  z-index: 1;
}
.footer-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: var(--heading);
  font-size: 0.92rem;
}
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ── DIVIDER ── */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.will-animate {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.will-animate.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── STAT HIGHLIGHT ── */
.stat-box {
  text-align: center;
  padding: 24px;
}
.stat-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}
.stat-source {
  font-size: 0.72rem;
  color: var(--faint);
  margin-top: 4px;
}

/* ── TRUST TESTIMONIAL ── */
.testimonial-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.testimonial-text {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial-author {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--heading);
}
.testimonial-role {
  font-size: 0.78rem;
  color: var(--faint);
}

/* ── COMPLIANCE CARDS ── */
.compliance-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.compliance-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-3px);
}
.compliance-card-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compliance-card-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent-mid);
}

/* ── USE CASE CARDS ── */
.uc-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.uc-card:hover { transform: translateY(-3px); border-color: var(--accent-mid); }
.uc-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.uc-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.uc-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
}
.uc-body { padding: 18px 22px; }
.uc-stat { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.uc-before { font-size: 0.95rem; color: var(--faint); text-decoration: line-through; }
.uc-after {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}
.uc-quote {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

/* ── STICKY CTA ── */
.sticky-cta {
  position: fixed;
  bottom: -70px;
  left: 0; right: 0;
  z-index: 99;
  background: rgba(7,13,22,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px clamp(20px, 5vw, 48px);
  transition: bottom 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-cta.visible { bottom: 0; }
body.light-mode .sticky-cta { background: rgba(246,248,251,0.95); }
.sticky-cta-text { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #070d16;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: opacity var(--transition);
}
.sticky-cta-btn:hover { opacity: 0.88; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .founder-block { grid-template-columns: 1fr; text-align: center; }
  .founder-photo { margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
  .step { padding: 32px 0; gap: 12px; }
  .step-header h2 { font-size: 1.2rem; }
  .step-num { font-size: 2rem; }
  .flow { flex-direction: column; }
  .flow-node { border-right: none; border-bottom: 1px solid var(--border); }
  .flow-step { padding: 18px 12px; }
  .flow-arrow { display: none; }
  .compliance-icons { grid-template-columns: 1fr 1fr; gap: 10px; }
  .comp-table { font-size: 0.82rem; }
  .comp-table th, .comp-table td { padding: 10px 12px; }
  /* KI-Potenzial-Check responsive */
  #potenzial-check [style*="grid-template-columns: 1fr 1fr"] { display: flex !important; flex-direction: column !important; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .section-pad { padding: 64px 0; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
}

/* ── LANGUAGE TOGGLE CONTENT ── */
[data-lang="en"] { display: none; }
[data-lang="de"] { display: contents; }
body.lang-en [data-lang="en"] { display: contents; }
body.lang-en [data-lang="de"] { display: none; }

/* Fix table tbody — must use table-row-group, not contents */
tbody[data-lang="de"] { display: table-row-group; }
tbody[data-lang="en"] { display: none; }
body.lang-en tbody[data-lang="en"] { display: table-row-group; }
body.lang-en tbody[data-lang="de"] { display: none; }

/* Fix thead tr lang toggle — must use table-row */
thead tr[data-lang="de"] { display: table-row; }
thead tr[data-lang="en"] { display: none; }
body.lang-en thead tr[data-lang="en"] { display: table-row; }
body.lang-en thead tr[data-lang="de"] { display: none; }

/* Inline lang elements (for spans, etc.) */
span[data-lang="de"],
a[data-lang="de"] { display: inline; }
span[data-lang="en"],
a[data-lang="en"] { display: none; }
body.lang-en span[data-lang="en"],
body.lang-en a[data-lang="en"] { display: inline; }
body.lang-en span[data-lang="de"],
body.lang-en a[data-lang="de"] { display: none; }

/* Block-level lang toggle */
div[data-lang="de"],
section[data-lang="de"],
p[data-lang="de"],
li[data-lang="de"],
h1[data-lang="de"],
h2[data-lang="de"],
h3[data-lang="de"] { display: block; }
div[data-lang="en"],
section[data-lang="en"],
p[data-lang="en"],
li[data-lang="en"],
h1[data-lang="en"],
h2[data-lang="en"],
h3[data-lang="en"] { display: none; }
body.lang-en div[data-lang="en"],
body.lang-en section[data-lang="en"],
body.lang-en p[data-lang="en"],
body.lang-en li[data-lang="en"],
body.lang-en h1[data-lang="en"],
body.lang-en h2[data-lang="en"],
body.lang-en h3[data-lang="en"] { display: block; }
body.lang-en div[data-lang="de"],
body.lang-en section[data-lang="de"],
body.lang-en p[data-lang="de"],
body.lang-en li[data-lang="de"],
body.lang-en h1[data-lang="de"],
body.lang-en h2[data-lang="de"],
body.lang-en h3[data-lang="de"] { display: none; }

/* ── LEGAL CONTENT ── */
.legal-content {
  max-width: 780px;
}
.legal-content h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child,
.legal-content > div > h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.legal-content h3 {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-content p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content p strong {
  color: var(--text);
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover {
  opacity: 0.8;
}
