/* mindsquare.com – Gestaltung nach entwurf/Com.dc.html
   Farben laut Markenplattform:
   Orange #EA5B0C (einziger Akzent), Gelb #FDC300 (sparsam),
   Dunkelgrau #575756, Hellgrau #A8A8A7 (nur Linien), Text #232322,
   Blau #1B365D aus der CI-Tabelle von mindsquare.de (dunkle Flächen: Problem, Schichten, Kontakt, Fuß) */

@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #EA5B0C;
  --yellow: #FDC300;
  --grey-dark: #575756;
  --grey-line: #A8A8A7;
  --text: #232322;
  --blue: #1B365D;
  --bg-soft: #F5F5F4;
  --bg-dark: #232322;
  --text-on-dark: #DADAD8;
  --gutter: clamp(20px, 5.6vw, 80px);
  --section-space: clamp(72px, 9vw, 136px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #FFFFFF;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
}

a {
  color: var(--text);
}

a:hover {
  color: var(--grey-dark);
}

/* Sichtbarer Tastaturfokus */
a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

.dark a:focus-visible,
.site-footer a:focus-visible {
  outline-color: #FFFFFF;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.soft {
  background: var(--bg-soft);
}

.dark {
  background: var(--blue);
}

/* Überschriften und Einleitungen */
.h2 {
  margin: 0;
  max-width: 960px;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

.dark .h2 {
  color: #FFFFFF;
}

.lead {
  margin: 20px 0 0;
  max-width: 820px;
  font-size: clamp(18px, 1.45vw, 20px);
  line-height: 1.6;
  color: var(--grey-dark);
  text-wrap: pretty;
}

.dark .lead {
  margin: 0;
  color: var(--text-on-dark);
}

.body-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-dark);
  text-wrap: pretty;
}

/* Kontakt-Knopf */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 28px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
}

.button:hover {
  background: #C94D08;
  color: #FFFFFF;
}

/* Kopf */
.site-header {
  border-bottom: 1px solid var(--grey-line);
}

.site-header .wrap {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 48px;
}

.logo {
  width: 135px;
  height: auto;
}

/* Einstieg */
.hero {
  padding-top: clamp(64px, 7.2vw, 104px);
  padding-bottom: clamp(64px, 7.8vw, 112px);
}

.eyebrow {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.eyebrow-bar {
  display: block;
  flex: none;
  width: 32px;
  height: 4px;
  background: var(--yellow);
}

.hero h1 {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-sub {
  margin: 32px 0 0;
  max-width: 780px;
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.55;
  color: var(--grey-dark);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

/* Produktleiste */
.product-bar .wrap {
  padding-top: 22px;
  padding-bottom: 22px;
}

.product-bar p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey-dark);
}

.product-bar strong {
  color: var(--text);
}

.product-bar a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Angebot: drei Teile */
.pillars {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px 40px;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding-top: 28px;
  border-top: 4px solid var(--orange);
}

.pillar h3 {
  margin: 0;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.25;
  font-weight: 700;
}

/* Produkte */
.product-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.product-list li {
  min-width: 0;
  padding: 28px;
  background: #FFFFFF;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-dark);
}

.product-list a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Beispielablauf */
.example-figure {
  margin: 48px 0 0;
  padding: 0;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  column-gap: 48px;
  row-gap: 24px;
  padding-top: 18px;
  overflow: hidden;
}

.flow-step {
  position: relative;
  flex: 1 1 170px;
  min-width: 0;
  margin: 24px 0;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: rgba(234, 91, 12, 0.12);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.flow-arrow {
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -6px;
  width: 48px;
  height: 12px;
  overflow: visible;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-approval {
  position: relative;
  flex: 2 1 436px;
  min-width: 0;
  display: flex;
  padding: 22px;
  border: 2px solid var(--orange);
  border-radius: 14px;
  background: rgba(234, 91, 12, 0.06);
  box-shadow: 0 10px 30px rgba(234, 91, 12, 0.12);
}

.flow-approval-badge {
  position: absolute;
  left: 22px;
  top: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
}

.flow-approval-badge svg {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-approval-inner {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  column-gap: 48px;
  row-gap: 24px;
  overflow: hidden;
}

.flow-approval-inner .flow-step {
  margin: 0;
}

.example-figure figcaption {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey-dark);
}

/* Zusammenarbeit (hellgrauer Abschnitt, daher keine Trennlinie mehr nötig) */

.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 48px 32px;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-num {
  flex: none;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.step-line {
  display: block;
  flex: 1 1 auto;
  height: 1px;
  background: var(--grey-line);
}

.steps h3,
.case h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

/* Aus unserer Arbeit */
.cases {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(560px, 100%), 1fr));
  gap: 24px;
  align-items: stretch;
}

.case {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 32px;
  background: #FFFFFF;
  border: 1px solid var(--grey-line);
  border-radius: 8px;
}

.case-status {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
}

.case-links {
  margin: auto 0 0;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
}

.case-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.case-links svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-links .sep {
  color: var(--grey-dark);
}

/* Zweispaltige dunkle Abschnitte (Why, Kontakt) */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 80px;
}

.split .h2 {
  flex: 1 1 380px;
  min-width: 0;
}

.split-body {
  flex: 1.4 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.contact-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.contact-person p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-dark);
}

.contact-person strong {
  color: #FFFFFF;
}

/* Sichtbare Mail-Adresse unter dem Kontakt-Knopf */
.contact-mail a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-mail a:hover {
  color: var(--text-on-dark);
}

/* Fuß */
.site-footer {
  background: var(--blue);
}

.footer-inner {
  border-top: 1px solid var(--grey-dark);
  padding-top: 40px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.footer-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-on-dark);
}

.footer-links a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

/* Textseiten (privacy.html) */
.logo-link {
  display: inline-block;
}

.legal {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: var(--section-space);
}

.legal-body {
  max-width: 780px;
}

.legal h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.legal h2 {
  margin: 56px 0 0;
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.3;
  font-weight: 700;
}

.legal p,
.legal ul {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-dark);
}

.legal .lead {
  margin-top: 20px;
  font-size: clamp(18px, 1.45vw, 20px);
}

.legal ul {
  padding-left: 1.4em;
}

.legal li + li {
  margin-top: 4px;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .updated {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-line);
  font-size: 15px;
}

/* Kopf mit Film über die ganze Breite */
.hero.hero-film {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 86vh, 900px);
  padding: 0;
  overflow: hidden;
  background: var(--bg-dark);
  color: #FFFFFF;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media > video,
.hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-film::after {
  content: "";
  position: absolute;
  inset: 0;
  /* so dunkel, dass die Schrift über allen Filmszenen mindestens 4,5 : 1 Kontrast hat
     (nachgemessen 16.11.2026 an allen Szenen, Desktop und Handy) */
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.28) 0%, rgba(20, 20, 20, 0.65) 45%, rgba(20, 20, 20, 0.9) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 120px;
  padding-bottom: clamp(40px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px 64px;
}

.hero-film .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: #FFFFFF;
}

.hero-film h1 {
  color: #FFFFFF;
}

.hero-side .hero-sub {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--text-on-dark);
}

.hero-side .hero-actions {
  margin-top: 28px;
}

.hero-film a:focus-visible {
  outline-color: #FFFFFF;
}

/* Knopf zum Anhalten des Films (WCAG 2.2.2), unten rechts auf Höhe des Kontakt-Knopfs.
   Erscheint nur mit JavaScript; ohne Skript läuft der Film gar nicht erst an. */
.hero-pause {
  position: absolute;
  z-index: 2;
  right: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  bottom: calc(clamp(40px, 6vw, 88px) + 13px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* klein und zurückhaltend, aber über der Mindestgröße von 24 px (WCAG 2.5.8) */
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.35);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.hero-pause[hidden] {
  display: none;
}

.hero-pause:hover {
  border-color: #FFFFFF;
  background: rgba(20, 20, 20, 0.75);
  color: #FFFFFF;
}

.hero-pause:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

.hero-pause svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.hero-pause .icon-play,
.hero-pause.is-paused .icon-pause {
  display: none;
}

.hero-pause.is-paused .icon-play {
  display: block;
}

/* Platz neben dem Kontakt-Knopf freihalten */
.hero-side .hero-actions {
  padding-right: 48px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Problem: großer Satz ohne Bild (direkt nach dem Film wäre ein Foto zu unruhig).
   Grund im CI-Blau wie alle dunklen Flächen der Seite,
   weiße Schrift Kontrast etwa 12 : 1. */
.problem {
  position: relative;
  overflow: hidden;
  background: var(--blue);
}

.problem .wrap {
  position: relative;
}

.statement {
  margin: 40px 0 0;
  max-width: 1120px;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-wrap: balance;
}

.problem .lead {
  margin-top: 40px;
  max-width: 780px;
  color: var(--text-on-dark);
}

/* Plattform: heller Abschnitt mit feinem Punktraster, die vier Schichten als dunkle Bänder */
.products {
  background:
    radial-gradient(ellipse 55% 40% at 50% 34%, rgba(234, 91, 12, 0.1), rgba(234, 91, 12, 0) 70%),
    radial-gradient(rgba(35, 35, 34, 0.1) 1px, transparent 1.5px) 0 0 / 22px 22px,
    #FFFFFF;
  /* Kein waagerechter Scrollbalken, solange Bänder beim Einblenden noch verschoben sind.
     clip schneidet nur seitlich ab (hidden als Rückfall für ältere Browser). */
  overflow-x: hidden;
  overflow-x: clip;
}

.products .lead {
  margin-top: 20px;
}

.layers {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.layer {
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) minmax(0, 2.25fr);
  gap: 16px 40px;
  align-items: start;
  padding: 28px 32px;
  background: var(--blue);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  color: var(--text-on-dark);
}

.layer-name small {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.layer-name strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  color: #FFFFFF;
}

.layer-body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.layer-chips {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layer-chips li {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.4;
  color: #FFFFFF;
}

/* Die Foundation trägt alles: orange Rahmen wie der frühere Hub */
.layer-foundation {
  border: 3px solid var(--orange);
  box-shadow: 0 0 40px rgba(234, 91, 12, 0.25);
}

@media (max-width: 760px) {
  .layer {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }
}

/* Bild in der Fallbeispiel-Karte: echtes Foto aus dem Team, als Symbolbild gekennzeichnet */
.case-figure {
  margin: 0;
}

.case-media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: -32px -32px 8px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.case-photo-note {
  margin: 0;
  font-size: 13px;
  color: var(--grey-dark);
}

/* Zahlen */
.stats {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
}

.stats li {
  padding-top: 20px;
  border-top: 4px solid var(--orange);
}

.stat-num {
  display: block;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Zahl unsichtbar, bis das Hochzählen beginnt (motion.js) */
.count-wait {
  visibility: hidden;
}

.stat-num .plus {
  color: var(--orange);
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  color: var(--grey-dark);
}

.stats + .lead {
  margin-top: 48px;
}

@media (max-width: 700px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Bewegung: nur wenn motion.js läuft (Klasse .motion am <html>).
   Ohne Skript oder bei „weniger Bewegung“ ist alles sichtbar. */
.motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

.motion .statement .w {
  /* auch vor dem Aufleuchten mindestens 3 : 1 auf Blau (große Schrift) */
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.35s ease;
}

.motion .statement .w.lit {
  color: #FFFFFF;
}

/* Schichten: die Bänder schieben sich von oben nach unten nacheinander ein,
   zum Schluss leuchtet die Foundation einmal auf */
.motion .layers.reveal {
  opacity: 1;
  transform: none;
}

.motion .layers .layer {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i) * 160ms + 150ms);
}

.motion .layers.is-in .layer {
  opacity: 1;
  transform: none;
}

.motion .layers.is-in .layer-foundation {
  animation: hub-glow 1.2s ease 1.2s 1;
}

@keyframes hub-glow {
  50% {
    box-shadow: 0 0 72px rgba(234, 91, 12, 0.6);
  }
}

/* Beispiel Auftragseingang: Schritte erscheinen nacheinander, der orange Pfeil wächst zum nächsten Schritt,
   die Nummer färbt sich, dann leuchtet der Freigabe-Bereich auf und sein Symbol springt ein */
.motion .example-figure .flow-step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--n) * 420ms + 200ms);
}

.motion .example-figure.is-in .flow-step {
  opacity: 1;
  transform: none;
}

.motion .example-figure .flow-num {
  border-color: var(--grey-line);
  background: transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  transition-delay: calc(var(--n) * 420ms + 450ms);
}

.motion .example-figure.is-in .flow-num {
  border-color: var(--orange);
  background: rgba(234, 91, 12, 0.12);
}

.motion .example-figure .flow-arrow path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.35s ease;
  transition-delay: calc(var(--n) * 420ms + 480ms);
}

.motion .example-figure.is-in .flow-arrow path {
  stroke-dashoffset: 0;
}

.motion .example-figure .flow-approval {
  border-color: rgba(234, 91, 12, 0);
  background: rgba(234, 91, 12, 0);
  box-shadow: none;
  transition: border-color 0.5s ease, background-color 0.5s ease, box-shadow 0.6s ease;
  transition-delay: calc(var(--n) * 420ms + 150ms);
}

.motion .example-figure.is-in .flow-approval {
  border-color: var(--orange);
  background: rgba(234, 91, 12, 0.06);
  box-shadow: 0 10px 30px rgba(234, 91, 12, 0.12);
}

.motion .example-figure .flow-approval-badge {
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
  transition-delay: calc(var(--n) * 420ms + 300ms);
}

.motion .example-figure.is-in .flow-approval-badge {
  transform: none;
  animation: badge-pulse 1s ease 2.7s 1;
}

@keyframes badge-pulse {
  50% {
    box-shadow: 0 0 0 10px rgba(234, 91, 12, 0.2);
  }
}

.step-line {
  position: relative;
  overflow: hidden;
}

.motion .steps .step-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s ease;
  transition-delay: calc(var(--d, 0s) + 0.3s);
}

.motion .steps .is-in .step-line::after {
  transform: scaleX(1);
}

/* Bildband zwischen Angebot und Produkten: die Branchen aus dem Film nacheinander, nie hinter Text.
   Ohne Skript oder bei „weniger Bewegung“ bleibt das erste Bild stehen. */
.image-band-wrap {
  position: relative;
}

.image-band {
  position: relative;
  /* hoch genug, dass die Motive erkennbar sind (am Desktop etwa 2,7 : 1, auf dem Handy etwa 1,4 : 1) */
  height: clamp(260px, 40vw, 720px);
  overflow: hidden;
  background: var(--bg-dark);
}

.image-band img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bild 2–5 liegen über Bild 1 und blenden nacheinander ein (je etwa 4 s, Zyklus 20 s) */
.image-band img + img {
  opacity: 0;
}

.motion .image-band img + img {
  animation: band-slide 20s ease-in-out infinite;
  animation-delay: calc(var(--s) * 4s);
}

.image-band-wrap.is-paused .image-band img {
  animation-play-state: paused;
}

@keyframes band-slide {
  0% { opacity: 0; }
  6% { opacity: 1; }
  20% { opacity: 1; }
  26% { opacity: 0; }
  100% { opacity: 0; }
}

/* Knopf zum Anhalten, gleiche Gestaltung wie im Seitenkopf */
.band-pause {
  bottom: 16px;
}

/* Bildband: kein Hochschieben (sonst Lücke), nur Einblenden und ein langsames Heranzoomen */
.motion .image-band.reveal {
  transform: none;
}

.motion .image-band img {
  transform: scale(1.06);
  transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion .image-band.is-in img {
  transform: none;
}

/* Foto im Fallbeispiel */
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Problem: die vier Punkte unter dem großen Satz (weiß auf Blau) */
.points {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 40px 32px;
}

.points li {
  min-width: 0;
  padding-top: 20px;
  border-top: 4px solid var(--orange);
}

.point-num {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
}

.points h3 {
  margin: 6px 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #FFFFFF;
}

.points p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-dark);
}

/* Produktleiste: jetzt Hinweis auf den AI Pilot mit Sprung zur Plattform */
.product-bar p > span {
  padding: 8px 0;
}

/* Sicher betrieben: sieben kleinere Kacheln */
.pillars-compact {
  margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 44px 32px;
}

.pillars-compact .pillar {
  gap: 10px;
  padding-top: 20px;
}

.pillars-compact .pillar h3 {
  font-size: 20px;
  line-height: 1.35;
}

/* Beispiel Auftragseingang: Freigabe-Bereich nur um Schritt 4, Pfeil weiter zu Schritt 5 */
.flow-approval-single {
  flex: 1.3 1 230px;
}

.example-link {
  margin-top: 20px;
}

/* Häufige Fragen: aufklappbar, ohne Skript */
.faq {
  margin-top: 40px;
  max-width: 980px;
  border-bottom: 1px solid var(--grey-line);
}

.faq details {
  border-top: 1px solid var(--grey-line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 20px 48px 20px 0;
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--orange);
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq summary:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

.faq details p {
  margin: 0;
  padding: 0 48px 24px 0;
  max-width: 820px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-dark);
}
