/* ============================================================
   legal.css — Kivantis Legal One-Pager
   Self-contained stylesheet. Tokens, typography and component
   styles adapted from the Kivantis stripe.css design system so
   the page can move to its own domain without dependencies.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --page:        #ffffff;
  --band:        #f6f9fc;
  --ink:         #0a2540;
  --ink-hero:    #061b31;
  --slate:       #425466;
  --slate-soft:  #5c6b7f;
  --chip:        #e8e9ff;
  --hairline:    #e6ebf1;
  --card-shadow: 0 15px 35px rgba(8,37,64,.10);
  --card-shadow-sm: 0 2px 5px rgba(8,37,64,.08), 0 1px 1.5px rgba(8,37,64,.06);
  /* Kivantis brand palette */
  --kivantis:       #147B6C;
  --kivantis-hov:   #0F5C50;
  --kivantis-bright:#22D8BE;
  --kivantis-mid:   #1CB39D;
  --kivantis-dark:  #081E1B;
  --radius:      8px;
  --radius-btn:  6px;
  --maxw:        1240px;
  --pad:         24px;
  --nav-height:  66px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: 'Inter', -apple-system, "Segoe UI", system-ui, sans-serif;
  color: var(--slate);
  background: var(--page);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: 92px 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--kivantis); text-decoration: none; }

button {
  font-family: inherit;
  background: none;
  border: none;
}

/* Section headers */
.section-header { max-width: 720px; margin-bottom: 52px; }
.section-header h2 {
  font-size: clamp(28px, 3.4vw, 35px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink-hero);
  line-height: 1.2;
}
.section-header p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--slate);
  line-height: 1.6;
}

/* Background helpers */
.bg-band  { background: var(--band); }
.bg-white { background: var(--page); }

/* Subtle noise texture on dark sections */
.rc-noise { position: relative; }
.rc-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  pointer-events: none;
  z-index: 1;
}
.rc-noise > * { position: relative; z-index: 2; }

/* ============================================================
   NAV
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.nav-logo img { height: 32px; width: auto; display: block; }
.logo-text {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-hero);
}
.logo-text .logo-legal {
  color: var(--slate);
  font-weight: 500;
  margin-left: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--kivantis); }

.nav-cta {
  background: var(--kivantis);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 5px rgba(20,123,108,.30);
  transition: background .15s ease, transform .12s ease;
}
.nav-cta:hover {
  background: var(--kivantis-hov);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .12s ease, color .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--kivantis);
  color: #fff;
  box-shadow: 0 2px 5px rgba(20,123,108,.30);
}
.btn-primary:hover {
  background: var(--kivantis-hov);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20,123,108,.36);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--kivantis);
  box-shadow: var(--card-shadow-sm);
}
.btn-outline:hover {
  color: var(--kivantis-hov);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(8,37,64,.10);
}

/* ============================================================
   HERO — dark canvas background (Kivantis traffic animation)
   ============================================================ */
.hero {
  position: relative;
  background: var(--kivantis-dark);
  padding: 0;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

#trafficCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.traffic-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--kivantis-dark) 0%,
    var(--kivantis-dark) 42%,
    rgba(8,30,27,0.88) 53%,
    rgba(8,30,27,0.35) 65%,
    rgba(8,30,27,0.10) 80%,
    transparent 100%
  );
}

.hero > .container { position: relative; z-index: 2; width: 100%; }

.hero-content {
  max-width: 720px;
  padding: 110px 0 120px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #fff;
}
.hero h1 span {
  font-weight: 300;
  background: linear-gradient(95deg, var(--kivantis-bright) 0%, var(--kivantis-mid) 50%, var(--kivantis-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--kivantis-bright);
}

.hero-sub {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255,255,255,0.80);
  font-weight: 400;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}

/* Outline button adapts to dark hero */
.hero .btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  box-shadow: none;
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.80);
  color: #fff;
  box-shadow: none;
  transform: translateY(-1px);
}

/* ============================================================
   ANSATZ — copy + two effect cards
   ============================================================ */
.approach-copy {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate);
}
.approach-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
.effect-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.effect-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(8,37,64,.13);
}
.effect-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-hero);
  margin-bottom: 12px;
}
.effect-card p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   DEMO-VIDEO — centered 16:9 video, no supporting copy
   ============================================================ */
.demo-video-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--kivantis-dark);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}
.video-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 90% at 70% 10%, rgba(34,216,190,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.video-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play svg { display: block; margin-left: 4px; }
.video-hint {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

/* ============================================================
   MASSSCHNEIDERUNG — copy + chips row
   ============================================================ */
.custom-copy {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate);
}
.custom-chips {
  margin-top: 44px;
}
.custom-chips-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-soft);
  margin-bottom: 16px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--kivantis-hov);
  background: rgba(34,216,190,0.10);
  border: 1px solid rgba(34,216,190,0.35);
  padding: 9px 18px;
  border-radius: 20px;
  letter-spacing: -0.01em;
}

/* ============================================================
   USE CASES — vertical tab list + panel
   ============================================================ */
.usecase-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--card-shadow-sm);
}
.usecase-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--hairline);
  background: #fff;
}
.usecase-tab {
  text-align: left;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-hero);
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  user-select: none;
}
.usecase-tab:last-child { border-bottom: none; }
.usecase-tab:hover { background: #FAFAF7; }
.usecase-tab[aria-selected="true"] {
  background: rgba(20,123,108,0.08);
  font-weight: 600;
  color: var(--kivantis-hov);
}

.usecase-panels { position: relative; }
.usecase-panel {
  display: none;
  padding: 40px 44px;
  animation: legalFadeIn 0.3s ease;
}
.usecase-panel.active { display: block; }
@keyframes legalFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.usecase-panel h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-hero);
  margin-bottom: 12px;
}
.usecase-panel > p {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.usecase-visual {
  height: 240px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(34,216,190,0.22) 0%, rgba(34,216,190,0) 60%),
    linear-gradient(135deg, rgba(20,123,108,0.10) 0%, rgba(34,216,190,0.05) 100%);
  border: 1px dashed rgba(34,216,190,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
}
.usecase-visual span {
  font-size: 18px;
  font-weight: 500;
  color: var(--kivantis-hov);
  letter-spacing: -0.01em;
}
.usecase-visual--img {
  background: #fff;
  border: 1px solid #e6ebf1;
  overflow: hidden;
}
.usecase-visual--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   FEATURES — alternating rows, text beside dark visual tile
   ============================================================ */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 76px;
}
.feature-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
}
.feature-row:nth-child(even) { grid-template-columns: 7fr 5fr; }
.feature-row:nth-child(even) .feature-row-text   { order: 2; }
.feature-row:nth-child(even) .feature-row-visual { order: 1; }
.feature-row-text h3 {
  font-size: 25px;
  font-weight: 500;
  color: var(--ink-hero);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.feature-row-text p {
  font-size: 16.5px;
  color: var(--slate);
  line-height: 1.65;
  margin: 0;
}
.feature-tile {
  height: 400px;
  border-radius: 12px;
  background:
    radial-gradient(110% 95% at 88% 8%, rgba(34,216,190,0.16) 0%, rgba(34,216,190,0) 58%),
    radial-gradient(90% 80% at 8% 95%, rgba(20,123,108,0.28) 0%, rgba(20,123,108,0) 55%),
    var(--kivantis-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-tile-placeholder span {
  font-size: 15px;
  font-weight: 500;
  color: rgba(34,216,190,0.75);
  border: 1px dashed rgba(34,216,190,0.45);
  border-radius: var(--radius);
  padding: 14px 22px;
}
.feature-tile-shot {
  padding: 40px;
}
.feature-tile-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0,0,0,0.38);
}
.features-more {
  margin-top: 64px;
  text-align: center;
  font-size: 16.5px;
  color: var(--slate);
}
.features-more a { font-weight: 500; }
.features-more a:hover { color: var(--kivantis-hov); }

/* ------------------------------------------------------------
   FEATURE-GRAFIKEN — weiße Logo-Kacheln auf dunklem Grund
   (System-Anbindung + Freie Modellwahl)
   ------------------------------------------------------------ */
/* Logo-Reihen sind breiter als die Kachel — min-width:0 verhindert,
   dass ihre Mindestbreite die Grid-Spalte (und die Seite) aufbläht */
.feature-row-visual { min-width: 0; }
.tile-logo-grid {
  --tlg-card: 84px;
  --tlg-gap: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: 100%;
}
.tlg-row {
  position: relative;
  display: flex;
  gap: var(--tlg-gap);
  justify-content: center;
}
.tlg-row::before {
  content: '';
  position: absolute;
  top: calc(var(--tlg-card) / 2);
  left: -999px;
  right: -999px;
  height: 1px;
  background: rgba(34,216,190,0.25);
}
.tile-logo-grid-models .tlg-row:first-child {
  transform: translateX(calc((var(--tlg-card) + var(--tlg-gap)) / -4));
}
.tlg-row-shift {
  transform: translateX(calc((var(--tlg-card) + var(--tlg-gap)) / 4));
}
.tlg-card {
  position: relative;
  width: var(--tlg-card);
  height: var(--tlg-card);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(3,20,17,0.45);
}
.tlg-card img {
  width: 52%;
  height: 52%;
  object-fit: contain;
}
.tlg-card img.tlg-logo-wide { width: 68%; }
.tlg-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
}
.tlg-word {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.tile-logo-grid-models { gap: 22px; }
.tlg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: var(--tlg-card);
  flex: none;
}
.tlg-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tlg-slot {
  background: rgba(34,216,190,0.06);
  border: 1.5px dashed rgba(34,216,190,0.5);
  box-shadow: none;
}
.tlg-plus {
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: rgba(34,216,190,0.85);
  animation: tlg-pulse 3s ease-in-out infinite;
}
.tlg-label-slot { color: rgba(34,216,190,0.75); white-space: normal; text-align: center; line-height: 1.3; width: 100px; }
@keyframes tlg-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tlg-plus { animation: none; }
}
@media (max-width: 680px) {
  .tile-logo-grid { --tlg-card: 64px; --tlg-gap: 14px; gap: 18px; }
  .tile-logo-grid-models { gap: 14px; }
  .tlg-card { border-radius: 11px; }
  .tlg-word { font-size: 11px; }
  .tlg-item { gap: 7px; }
  .tlg-label { font-size: 11px; }
  .tlg-label-slot { white-space: normal; text-align: center; line-height: 1.3; width: 76px; }
  .tlg-plus { font-size: 20px; }
}

/* ============================================================
   DATENSICHERHEIT — dark trust section
   ============================================================ */
.security-section {
  background: var(--kivantis-dark);
  position: relative;
  overflow: hidden;
}
.security-section::after {
  content: '';
  position: absolute;
  top: -25%; right: -8%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(20,123,108,0.35) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.security-section .container { position: relative; z-index: 2; }
.security-section .section-header h2 { color: #fff; }
.security-section .section-header p { color: rgba(255,255,255,0.72); }

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.security-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(34,216,190,0.18);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .18s ease, background .18s ease;
}
.security-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(34,216,190,0.38);
}
.security-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 12px;
}
.security-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0;
}

.model-freedom {
  margin-top: 44px;
  background: rgba(34,216,190,0.07);
  border: 4px solid var(--kivantis-bright);
  border-radius: var(--radius);
  padding: 32px 36px;
}
.model-freedom h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.model-freedom p {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin: 0;
  max-width: 780px;
}

/* ============================================================
   ABLAUF — vertical step list, description beside the selection
   ============================================================ */
.phase-flow {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
  align-items: start;
}
.phase-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-hero);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  user-select: none;
}
.phase-tab:hover { background: #FAFAF7; }
.phase-tab[aria-selected="true"] {
  background: rgba(20,123,108,0.08);
  font-weight: 600;
  color: var(--kivantis-hov);
}
.phase-tab-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
  color: var(--kivantis);
  background: rgba(20,123,108,0.10);
  transition: background 0.25s ease, color 0.25s ease;
}
.phase-tab[aria-selected="true"] .phase-tab-num {
  color: #fff;
  background: var(--kivantis);
}
.phase-tab-label { text-align: left; }

/* min-height fits the longest description (Pilot) so switching steps never shifts the layout below */
.phase-panels { position: relative; min-height: 240px; }
.phase-panel { display: none; animation: legalFadeIn 0.3s ease; }
.phase-panel.active { display: block; }

.phase-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink-hero);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.phase-text {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.7;
  max-width: 760px;
  margin: 0;
}

.enablement-card {
  margin-top: 48px;
  max-width: 900px;
  background: var(--band);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--kivantis-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 32px 36px;
  box-shadow: var(--card-shadow-sm);
}
.enablement-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-hero);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.enablement-card p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.7;
  margin: 0;
  max-width: 760px;
}

/* ============================================================
   TEAM — magazine portrait grid (from main site)
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-sm);
  padding: 30px 28px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.team-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
}
.team-photo {
  position: relative;
  background: #fff;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.team-grid--magazine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-grid--magazine .team-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.team-grid--magazine .team-photo {
  width: 100%;
  border-radius: 0;
}
.team-grid--magazine .team-info {
  padding: 26px 28px 30px;
}
.team-grid--magazine .team-info h3 { font-size: 20px; }
.team-info h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-hero);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.team-role {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--kivantis);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.team-info p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}
.team-note {
  margin-top: 36px;
  text-align: center;
  font-size: 16px;
  color: var(--slate-soft);
}

/* ============================================================
   FAQ — 2-col: sticky header + accordion list
   ============================================================ */
.faq-section { background: var(--page); }
.faq-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.faq-header { position: sticky; top: 92px; }
.faq-header h2 {
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 400;
  color: var(--ink-hero);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.faq-list {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  padding: 22px 26px;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-question span:first-child {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-hero);
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.faq-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 400;
  color: var(--kivantis);
  transition: transform .25s ease;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .25s ease;
}
.faq-answer.is-open {
  max-height: 600px;
  padding: 0 26px 24px;
}
.faq-answer p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.62;
  margin: 0;
}

/* ============================================================
   FINALER CTA — dark banner
   ============================================================ */
.final-cta {
  background: var(--kivantis-dark);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.final-cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.final-cta h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}
.final-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 560px;
}
.final-cta-btn {
  display: inline-block;
  background: var(--kivantis);
  color: #fff;
  padding: 16px 40px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.final-cta-btn:hover {
  background: var(--kivantis-hov);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(20,123,108,0.3);
}
.final-cta-geo {
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  border: 1px solid rgba(34,216,190,0.06);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   FOOTER — continues the final-CTA's dark green gradient
   ============================================================ */
.footer {
  background: var(--kivantis-dark);
  padding: 56px 0 36px;
  position: relative;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.footer-brand-name span:first-child { color: var(--kivantis-bright); }
.footer-brand p {
  font-size: 15px;
  color: rgba(255,255,255,0.60);
  margin: 0;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--kivantis-bright); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-bottom span {
  font-size: 13px;
  color: rgba(255,255,255,0.40);
}

/* ============================================================
   LEGAL PAGES — Impressum / Datenschutz
   ============================================================ */
.legal-hero {
  background: var(--kivantis-dark);
  padding: 64px 0;
}
.legal-hero h1 {
  color: #fff;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.025em;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px var(--pad);
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-hero);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}
.legal-content p, .legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--slate);
}
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-placeholder {
  color: #b45309;
  background: rgba(217,119,6,0.10);
  padding: 1px 6px;
  border-radius: 4px;
  font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  section { padding: 72px 0; }
  .approach-cards { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; gap: 32px; }
  .faq-header { position: static; }
  .team-grid--magazine { grid-template-columns: 1fr; }

  /* Use-case tabs become a horizontal scroll strip above the panel */
  .usecase-grid { grid-template-columns: 1fr; }
  .usecase-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    -webkit-overflow-scrolling: touch;
  }
  .usecase-tab {
    flex: 0 0 auto;
    border-right: 1px solid var(--hairline);
    padding: 16px 20px;
    font-size: 15px;
    white-space: nowrap;
  }
  .usecase-tab:last-child { border-right: none; }
  .usecase-tab[aria-selected="true"] {
    background: rgba(20,123,108,0.08);
  }
  .usecase-panel { padding: 30px 26px; }

  .phase-flow { grid-template-columns: 260px 1fr; gap: 44px; }
  .phase-tab { font-size: 15px; padding: 10px 12px; gap: 10px; }
  .phase-tab-num { width: 30px; height: 30px; font-size: 13px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }

  .feature-rows { gap: 56px; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row:nth-child(even) { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-row-text   { order: 2; }
  .feature-row:nth-child(even) .feature-row-visual { order: 1; }
  .feature-row-visual { order: 1; }
  .feature-row-text   { order: 2; }
  .feature-tile { height: 280px; }
  .feature-tile-shot { padding: 22px; }
}

@media (max-width: 680px) {
  section { padding: 60px 0; }
  .section-header { margin-bottom: 36px; }
  .hero-content { padding: 80px 0 88px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .feature-tile { height: 220px; }
  .feature-tile-shot { padding: 16px; }
  .features-more { margin-top: 48px; }

  /* Steps collapse to a horizontal number row; the title lives in the panel below */
  .phase-flow { grid-template-columns: 1fr; gap: 28px; }
  .phase-tabs { flex-direction: row; gap: 10px; }
  .phase-tab { flex: 1 1 0; justify-content: center; padding: 10px 6px; border: 1px solid var(--hairline); }
  .phase-tab-label { display: none; }
  .phase-panels { min-height: 360px; }
  .enablement-card { padding: 26px 24px; }
  .model-freedom { padding: 26px 24px; }
  .usecase-visual { height: 180px; }

  .final-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 64px var(--pad);
  }
  .final-cta p { margin: 0 auto 24px; }

  .footer-top { flex-direction: column; }
  .footer-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 420px) {
  :root { --pad: 20px; }
}
