:root {
  --split-cols: 30;
  --v5-header-expanded: 208px;
  --v5-header-compact: 146px;
}

/* V5 sticky site chrome */
.site-header {
  position: sticky;
  top: 0;
  width: var(--content-width);
  margin-inline: auto;
  isolation: isolate;
  height: var(--v5-header-expanded);
  padding: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(250px, 1fr);
  grid-template-rows: minmax(100px, auto) 56px;
  grid-template-areas:
    "logo logo logo"
    "brand nav actions";
  align-items: center;
  row-gap: 14px;
  column-gap: 28px;
  background: rgba(255,255,255,.965);
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 0 rgba(17,17,17,0);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: height .32s cubic-bezier(.2,.7,.2,1), border-color .32s ease, box-shadow .32s ease, background .32s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1;
  background: rgba(255,255,255,.965);
  border-bottom: 1px solid transparent;
  transition: inherit;
  pointer-events: none;
}
.site-header.is-scrolled {
  height: var(--v5-header-compact);
  grid-template-rows: 82px 48px;
  row-gap: 6px;
  border-bottom-color: rgba(17,17,17,.16);
  box-shadow: 0 10px 28px rgba(17,17,17,.055);
  background: rgba(255,255,255,.94);
}
.site-header.is-scrolled::before { border-bottom-color: rgba(17,17,17,.13); background: rgba(255,255,255,.94); }
.brand {
  grid-area: brand;
  justify-self: start;
  align-self: center;
}
.header-logo {
  grid-area: logo;
  justify-self: center;
  align-self: end;
  position: static;
  left: auto;
  transform: none;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  transition: width .32s cubic-bezier(.2,.7,.2,1), height .32s cubic-bezier(.2,.7,.2,1), transform .32s cubic-bezier(.2,.7,.2,1);
}
.header-logo img {
  width: 120px;
  height: 120px;
  transition: width .32s cubic-bezier(.2,.7,.2,1), height .32s cubic-bezier(.2,.7,.2,1), filter .32s ease;
}
.site-header.is-scrolled .header-logo {
  width: 92px;
  height: 92px;
}
.site-header.is-scrolled .header-logo img { width: 84px; height: 84px; filter: drop-shadow(0 4px 8px rgb(6 17 44 / 8%)); }
.header-section-nav {
  grid-area: nav;
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  justify-self: center;
  align-self: center;
  display: flex;
  justify-content: center;
  gap: 28px;
  pointer-events: auto;
  opacity: .82;
  transition: opacity .25s ease, transform .25s ease;
}
.header-section-nav a { font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.header-section-nav a:hover,
.header-section-nav a.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-header.is-scrolled .header-section-nav { opacity: .9; }
.header-actions {
  grid-area: actions;
  justify-self: end;
  align-self: center;
}
.hero { padding-top: 46px; }

/* One physical two-row split-flap board for all messages */
.hero-title-stage { width: min(100%, 1180px); min-height: 132px; }
.split-flap-intro { width: min(100%, 1180px); }
.split-flap-board {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  min-height: 126px;
  align-items: stretch;
}
.split-flap-row {
  display: grid;
  grid-template-columns: repeat(var(--split-cols), minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  max-width: none;
}
.split-flap-cell,
.split-flap-space {
  width: auto;
  min-width: 0;
  height: 56px;
}
.split-flap-cell.is-blank { color: transparent; }
.split-flap-cell.is-blank .flap-front { opacity: 0; }
.flap-front { font-size: clamp(1.12rem, 1.75vw, 1.82rem); letter-spacing: -.05em; }

/* Deliberately asymmetric galleries */
#ki-agenten,
#ai-agents {
  width: min(1180px, calc(100% - 72px));
  margin-right: auto;
  margin-left: 0;
  transform: translateX(-44px);
}
#ki-bots,
#ai-bots {
  width: min(1180px, calc(100% - 72px));
  margin-left: auto;
  margin-right: 0;
  transform: translateX(44px);
  margin-top: 72px;
}

/* Directional reveal language */
.reveal { will-change: opacity, transform; }
.reveal[data-reveal-direction="left"] { transform: translate3d(-22px, 10px, 0); }
.reveal[data-reveal-direction="right"] { transform: translate3d(22px, 10px, 0); }
.reveal[data-reveal-direction="up"] { transform: translate3d(0, 18px, 0); }
.reveal.is-visible { opacity: 1; transform: translate3d(0,0,0); }
.reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.reveal[data-reveal-delay="2"] { transition-delay: .16s; }
.reveal[data-reveal-delay="3"] { transition-delay: .24s; }

/* Website Automation System */
.website-agent-section { overflow: hidden; }
.website-agent-section::before {
  content: "WEBSITE AUTOMATION SYSTEM";
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.website-system-grid article { position: relative; overflow: hidden; }
.website-system-grid article::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(17,17,17,.12);
  border-radius: 50%;
}
.website-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.website-outcomes span {
  border: 1px solid rgba(17,17,17,.28);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  font-size: .64rem;
  font-weight: 800;
}

/* V5 animated business timeline */
.service-overview { position: relative; margin-top: 88px; }
.service-overview > h2 { max-width: 780px; }
.service-timeline {
  position: relative;
  display: flow-root;
  margin-top: 34px;
  padding: 8px 0 12px;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(17,17,17,.13);
  transform: translateX(-50%);
}
.timeline-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(.02);
  transform-origin: top;
  transition: transform 1.8s cubic-bezier(.2,.7,.2,1);
}
.service-timeline.timeline-is-active .timeline-line::after { transform: scaleY(1); }
.timeline-item {
  position: relative;
  width: 43%;
  min-height: 190px;
  margin-bottom: 34px;
  border: 1px solid var(--ink);
  border-radius: 15px;
  background: #fff;
  padding: 22px;
  opacity: 0;
  transition: opacity .55s ease, transform .65s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px var(--surface);
  transition: background .35s ease, transform .35s ease;
}
.timeline-item:nth-child(odd) { margin-right: auto; transform: translate3d(-36px, 18px, 0); }
.timeline-item:nth-child(even) { margin-left: auto; transform: translate3d(36px, 18px, 0); }
.timeline-item:nth-child(2) { margin-top: 78px; }
.timeline-item:nth-child(3) { margin-top: 18px; }
.timeline-item:nth-child(4) { margin-top: 86px; }
.timeline-item:nth-child(odd)::before { right: calc(-16.3% - 8px); }
.timeline-item:nth-child(even)::before { left: calc(-16.3% - 8px); }
.service-timeline.timeline-is-active .timeline-item { opacity: 1; transform: translate3d(0,0,0); }
.service-timeline.timeline-is-active .timeline-item::before { background: var(--accent); transform: scale(1.05); }
.service-timeline.timeline-is-active .timeline-item:nth-child(1) { transition-delay: .12s; }
.service-timeline.timeline-is-active .timeline-item:nth-child(2) { transition-delay: .34s; }
.service-timeline.timeline-is-active .timeline-item:nth-child(3) { transition-delay: .56s; }
.service-timeline.timeline-is-active .timeline-item:nth-child(4) { transition-delay: .78s; }
.timeline-number { display: block; margin-bottom: 24px; color: var(--muted); font-size: .62rem; }
.timeline-item h3 { margin: 0 0 9px; font-size: 1.08rem; letter-spacing: -.04em; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.timeline-item a { display: inline-block; margin-top: 13px; font-size: .76rem; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

/* Compact executive trust architecture */
.security-section {
  margin-top: 80px;
  padding: clamp(24px, 3vw, 34px);
  background: #f8f9f6;
  box-shadow: none;
}
.security-intro { grid-template-columns: .95fr 1.05fr; gap: 14px 42px; }
.security-intro h2 { font-size: clamp(1.8rem, 3vw, 3.05rem); }
.security-intro > p:last-child { font-size: .8rem; line-height: 1.65; }
.security-pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.security-pillar {
  min-height: 148px;
  border: 1px solid rgba(17,17,17,.7);
  border-radius: 11px;
  background: #fff;
  padding: 14px;
}
.security-pillar span { display: block; margin-bottom: 22px; color: var(--muted); font-size: .56rem; }
.security-pillar h3 { margin: 0 0 7px; font-size: .78rem; letter-spacing: -.025em; }
.security-pillar p { margin: 0; color: var(--muted); font-size: .64rem; line-height: 1.52; }
.security-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid rgba(17,17,17,.18);
  padding-top: 16px;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .045em;
}
.security-flow b { color: var(--muted); }
.security-footnote { max-width: 960px; margin: 15px auto 0; color: var(--muted); text-align: center; font-size: .66rem; line-height: 1.55; }

/* Closing trust CTA */
.built-control {
  width: min(1180px, 100%);
  margin: 68px auto 0;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  padding: clamp(24px, 4vw, 44px);
}
.built-control .section-kicker { color: rgba(255,255,255,.62); }
.built-control h2 { margin: 0; max-width: 860px; font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1; letter-spacing: -.055em; }
.built-control > p { max-width: 760px; margin: 15px 0 0; color: rgba(255,255,255,.72); font-size: .82rem; line-height: 1.65; }
.control-labels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.control-labels span { border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 10px; font-size: .63rem; font-weight: 900; }
.built-control .btn { margin-top: 22px; border-color: #fff; background: #fff; color: var(--ink); }
.built-control .btn:hover { background: var(--accent); }

/* Footer + legal parity */
.site-footer { margin-top: 36px; }
.footer-brand { display: grid; gap: 5px; }
.footer-brand small { color: var(--muted); font-size: .62rem; }
.footer-nav-groups { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.legal-page .site-header {
  position: sticky;
  top: 0;
  width: var(--content-width);
  margin-inline: auto;
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,.965);
}
.legal-page .legal-main { padding-top: 34px; }
.legal-page .site-footer { margin-top: 0; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: minmax(140px, 1fr) auto minmax(220px, 1fr); column-gap: 20px; }
  .header-section-nav { gap: 16px; }
  #ki-agenten,
  #ai-agents { transform: translateX(-18px); width: min(100% - 32px, 980px); }
  #ki-bots,
  #ai-bots { transform: translateX(18px); width: min(100% - 32px, 980px); }
  .security-pillars { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .site-header {
    height: 174px;
    grid-template-columns: 1fr auto;
    grid-template-rows: 108px 52px;
    grid-template-areas:
      "logo logo"
      "brand actions";
    row-gap: 8px;
    column-gap: 18px;
  }
  .header-logo { width: 96px; height: 96px; }
  .header-logo img { width: 90px; height: 90px; }
  .site-header.is-scrolled {
    height: 136px;
    grid-template-rows: 78px 46px;
    row-gap: 4px;
  }
  .site-header.is-scrolled .header-logo { width: 74px; height: 74px; }
  .site-header.is-scrolled .header-logo img { width: 68px; height: 68px; }
  .header-section-nav { display: none; }
  .hero { padding-top: 32px; }
  .split-flap-cell, .split-flap-space { height: 46px; }
  .flap-front { font-size: clamp(.82rem, 2.7vw, 1.28rem); }
  .timeline-item { width: 45%; }
  .security-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .site-header,
  .legal-page .site-header {
    height: 152px;
    width: var(--content-width);
    grid-template-rows: 88px 50px;
    row-gap: 6px;
  }
  .site-header.is-scrolled,
  .legal-page .site-header.is-scrolled {
    height: 122px;
    grid-template-rows: 64px 46px;
    row-gap: 4px;
  }
  .brand { font-size: 1.05rem; }
  .header-logo { width: 72px; height: 72px; }
  .header-logo img { width: 68px; height: 68px; }
  .site-header.is-scrolled .header-logo { width: 58px; height: 58px; }
  .site-header.is-scrolled .header-logo img { width: 54px; height: 54px; }
  .header-actions { gap: 6px; }
  .header-contact { display: none; }
  .language-link,
  .instagram-link { min-height: 36px; }
  .instagram-link { width: 36px; height: 36px; padding: 8px; }
  .language-link { padding: 7px 11px; }
  .hero { padding-top: 24px; }
  .hero-title-stage { min-height: 86px; }
  .split-flap-board { gap: 4px; min-height: 80px; }
  .split-flap-row { gap: 1px; }
  .split-flap-cell, .split-flap-space { height: 37px; border-radius: 2px; }
  .flap-front { font-size: clamp(.52rem, 2.45vw, .82rem); letter-spacing: -.06em; }
  #ki-agenten,
  #ai-agents,
  #ki-bots,
  #ai-bots { transform: none; width: 100%; margin-left: 0; margin-right: 0; }
  .website-outcomes { gap: 6px; }
  .service-timeline { padding-left: 22px; }
  .timeline-line { left: 6px; transform: none; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    margin: 0 0 14px;
    transform: translate3d(14px, 8px, 0);
  }
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before { left: -23px; right: auto; top: 24px; }
  .security-intro { grid-template-columns: 1fr; }
  .security-intro .section-kicker { grid-column: auto; }
  .security-pillars { grid-template-columns: 1fr; }
  .security-pillar { min-height: auto; }
  .security-flow { justify-content: flex-start; }
  .built-control { margin-top: 52px; border-radius: 14px; }
  .footer-nav-groups { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .brand { font-size: .95rem; }
  .header-logo { width: 64px; height: 64px; }
  .header-logo img { width: 60px; height: 60px; }
  .split-flap-cell, .split-flap-space { height: 34px; }
  .flap-front { font-size: .48rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header::before,
  .header-logo,
  .header-logo img,
  .timeline-line::after,
  .timeline-item,
  .reveal,
  .reveal[data-reveal-direction="left"],
  .reveal[data-reveal-direction="right"],
  .reveal[data-reveal-direction="up"] { transition: none !important; animation: none !important; }
  .timeline-line::after { transform: scaleY(1); }
  .timeline-item { opacity: 1; transform: none !important; }
}
/* Configurator promotion — shared 1:1 structure on DE and EN homepages */
.configurator-promo{width:min(1120px,100%);margin:46px auto 34px;border:1px solid var(--ink);border-radius:22px;background:var(--accent);padding:clamp(22px,4vw,42px);display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:clamp(24px,5vw,64px);align-items:center;box-shadow:var(--shadow)}
.configurator-promo h2{margin:10px 0 12px;font-size:clamp(2rem,4.2vw,4.5rem);line-height:.97;letter-spacing:-.055em;max-width:820px}
.configurator-promo-copy>p{max-width:780px;margin:0;color:var(--muted);line-height:1.72}
.configurator-promo-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
.configurator-promo-steps{display:grid;gap:8px}
.configurator-promo-steps span{display:grid;grid-template-columns:38px 1fr;align-items:center;gap:10px;min-height:52px;border:1px solid var(--ink);border-radius:12px;background:#fff;padding:9px 12px;font-size:.78rem;font-weight:800}
.configurator-promo-steps b{display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:var(--ink);color:#fff;font-size:.65rem}
@media(max-width:820px){.configurator-promo{grid-template-columns:1fr;margin-top:30px}.configurator-promo-actions{display:grid}.configurator-promo-actions .btn{width:100%}.configurator-promo-steps{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.configurator-promo-steps{grid-template-columns:1fr}}
