:root {
  --sage:        #c1cbb8;
  --sage-20:     rgba(193, 203, 184, 0.2);
  --sage-40:     rgba(193, 203, 184, 0.4);
  --cobalt:      #2933ba;
  --cobalt-10:   rgba(41, 51, 186, 0.1);
  --cobalt-20:   rgba(41, 51, 186, 0.2);
  --shark:       #252c37;
  --shark-60:    rgba(37, 44, 55, 0.6);
  --shark-15:    rgba(37, 44, 55, 0.15);
  --shark-08:    rgba(37, 44, 55, 0.08);
  --white:       #ffffff;
  --off-white:   #f8f6f3;
}



.corp-label {
  display: block;
  font-family: 'Thirsty Rough', Georgia, serif;
  font-size: clamp(1.25rem, 1vw + 0.85rem, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--sage);
  margin-bottom: 1rem;
}

.corp-section-headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(1.75rem, 2.5vw + 0.75rem, 2.75rem);
  font-weight: 800;
  color: var(--shark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.corp-section-intro {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--shark-60);
  line-height: 1.7;
  max-width: 560px;
}

.corp-section-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.corp-section-actions .btn--primary {
  background: var(--sage);
  color: var(--shark);
  box-shadow: 0 4px 15px rgba(193, 203, 184, 0.35);
}

@media (hover: hover) { .corp-section-actions .btn--primary:hover {
  background: var(--cobalt);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(41, 51, 186, 0.35);
} }

.btn--ghost {
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--shark-60);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  text-decoration: none;
}
@media (hover: hover) { .btn--ghost:hover { color: var(--cobalt); } }

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
[data-reveal].revealed { opacity: 1; transform: none; }

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
[data-reveal-stagger].revealed > * { opacity: 1; transform: none; }
[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 90ms; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 180ms; }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 270ms; }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 360ms; }
[data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 450ms; }


.corp-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.corp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.corp-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

@media (hover: hover) { .corp-hero:hover .corp-hero__bg-image {
  transform: scale(1.02);
} }

.corp-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(37, 44, 55, 0.2)  0%,
      rgba(37, 44, 55, 0.55) 40%,
      rgba(37, 44, 55, 0.88) 100%
    );
}

.corp-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 65% 15%,
    rgba(193, 203, 184, 0.15) 0%,
    transparent 65%
  );
}

.corp-hero__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 60% at 10% 90%,
    rgba(193, 203, 184, 0.06) 0%,
    transparent 70%
  );
}

.corp-hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.corp-hero__particle {
  position: absolute;
  border-radius: 50%;
  background: var(--sage);
  animation: corpFloat var(--duration, 10s) var(--delay, 0s) ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes corpFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(var(--tx, 50px), var(--ty, -50px)); }
}

.corp-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 0 clamp(2rem, 4vw, 4rem);
  width: 100%;
  height: 100%;
  padding-inline: clamp(2rem, 5vw, 6rem);
}

.corp-hero__right {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: flex;
  flex-direction: column;
}

.corp-hero__line {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
  border-radius: 2px;
  transform-origin: left;
  animation: hero-line-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.corp-hero__desc {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.85rem, 1vw + 0.3rem, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 1.5rem;
}

.corp-hero__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(2.5rem, 4.5vw + 0.5rem, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.025em;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: start;
  text-align: left;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Die Schlagzeile ist rechtsbündig (justify-self:end). Zeilen mit
   .hero-slide--right starten global bei translateX(120px) und würden so
   über den rechten Rand hinaus beginnen und von overflow:hidden
   abgeschnitten. Hier lassen wir sie stattdessen von links einfliegen,
   damit die Animation innerhalb des Layouts bleibt. */
.corp-hero__headline .hero-slide--right {
  transform: translateX(-120px);
  animation-name: hero-slide-left;
}

.corp-hero__headline em {
  font-family: 'Thirsty Rough', Georgia, serif;
  font-style: normal;
  font-weight: 700;
  color: var(--sage);
  position: relative;
  display: inline-block;
}

.corp-hero__headline em::after {
  content: '';
  position: absolute;
  bottom: 0.04em;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sage);
  opacity: 0.55;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1) 1s;
}

.corp-hero__headline em.revealed-em::after {
  transform: scaleX(1);
}


.corp-hero__actions {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  margin-top: 1.75rem;
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem;
  align-items: center;
}

.corp-hero__actions .btn--primary {
  background: var(--sage);
  color: var(--shark);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(193, 203, 184, 0.35);
}

@media (hover: hover) { .corp-hero__actions .btn--primary:hover {
  background: var(--cobalt);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(41, 51, 186, 0.35);
  transform: translateY(-2px);
} }

.btn--hero-outline {
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.25);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) { .btn--hero-outline:hover {
  background: var(--shark);
  border-color: var(--shark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 44, 55, 0.4);
} }

.corp-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.5rem, 4vw, 3.5rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.3s;
}

@media (hover: hover) { .corp-hero__scroll:hover { opacity: 1; } }

.corp-hero__scroll-line {
  width: 1px;
  height: 65px;
  background: linear-gradient(to bottom, transparent, var(--sage));
  animation: corpScrollPulse 2.5s ease-in-out infinite;
}

@keyframes corpScrollPulse {
  0%, 100% { transform: scaleY(1);   opacity: 0.5; }
  50%       { transform: scaleY(0.6); opacity: 1;   }
}

.corp-hero .corp-hero__headline[data-reveal] { transition-delay: 260ms; }
.corp-hero .corp-hero__subtitle[data-reveal] { transition-delay: 460ms; }
.corp-hero .corp-hero__actions[data-reveal]  { transition-delay: 660ms; }


.corp-ueberblick {
  background: var(--shark);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.corp-ueberblick__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: center;
}

.corp-ueberblick .corp-label {
  color: var(--sage);
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 0;
}

.corp-ueberblick__text {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.2rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 640px;
}


.corp-struktur {
  background: var(--white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-struktur__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.corp-struktur__left {
  position: sticky;
  top: 100px;
}


.corp-struktur__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 800;
  color: var(--shark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.corp-struktur__text {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--shark-60);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.corp-struktur__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.corp-struktur__actions .btn--primary {
  background: var(--sage);
  color: var(--shark);
  border: 2px solid var(--sage);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(193, 203, 184, 0.35);
}
@media (hover: hover) { .corp-struktur__actions .btn--primary:hover {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 51, 186, 0.35);
} }

.corp-struktur__right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.corp-struktur-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--shark-08);
}
.corp-struktur-item:first-child { padding-top: 0; }
.corp-struktur-item:last-child { border-bottom: none; }

.corp-struktur-item__image {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #d8d8d8;
  position: relative;
}

.corp-struktur-item__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative; z-index: 1;
}

.corp-struktur-item__image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #e0e0e0, #c8c8c8);
  z-index: 0;
}

.corp-struktur-item__title {
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--shark);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.corp-struktur-item__text {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: var(--shark-60);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .corp-struktur__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .corp-struktur__left { position: static; }
}

@media (max-width: 640px) {
  .corp-struktur-item { grid-template-columns: 1fr; gap: 1rem; }
}


.corp-leistungen {
  background: var(--white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-leistungen__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.corp-leistungen__header .corp-section-intro { margin-inline: auto; }

.corp-leistungen__header .corp-label {
  letter-spacing: -0.01em;
  margin-top: 0.6rem;
  margin-bottom: 0.35rem;
}

.corp-leistungen__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg, 2rem);
}

.corp-leistung-card {
  flex: 0 1 calc(25% - (var(--space-lg, 2rem) * 3 / 4));
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: var(--off-white);
  border: 1px solid var(--shark-08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) { .corp-leistung-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,44,55,0.09);
  border-color: transparent;
} }

.corp-leistung-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sage-20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt);
  margin-bottom: 1.1rem;
  transition: background 0.25s;
}
@media (hover: hover) { .corp-leistung-card:hover .corp-leistung-card__icon { background: var(--sage-40); } }
.corp-leistung-card__icon svg { width: 22px; height: 22px; }

.corp-leistung-card__title {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--shark);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.corp-leistung-card__text {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--shark-60);
  line-height: 1.7;
}

/* KNX-Zertifikat-Zeile: sitzt ganz unten in der Box, klickbar -> Popup */
.corp-leistung-card__cert {
  margin-top: auto;
  padding-top: 1.15rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--shark);
  text-decoration: none;
  cursor: pointer;
}
.corp-leistung-card__cert svg { width: 15px; height: 15px; flex-shrink: 0; }
.corp-leistung-card__cert span {
  border-bottom: 1px solid var(--shark-15);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}
@media (hover: hover) { .corp-leistung-card__cert:hover span { border-bottom-color: var(--shark); } }

/* Zertifikat-Popup (KNX Advanced) */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cert-modal[hidden] { display: none; }
.cert-modal.is-open { opacity: 1; visibility: visible; }
.cert-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 24, 33, 0.72); }
.cert-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  width: auto;
  max-width: min(680px, 94vw);
  max-height: 92vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
}
.cert-modal.is-open .cert-modal__dialog { transform: none; }
.cert-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--shark-60);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.cert-modal__close svg { width: 22px; height: 22px; }
@media (hover: hover) { .cert-modal__close:hover { background: var(--shark-08); color: var(--shark); } }
.cert-modal__img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 4rem);
  width: auto;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--shark-08);
}

/* Grosse Bildschirme: Sektion verbreitern und 5 Karten pro Reihe (10 = 5 + 5).
   Darunter greifen die 4er- (Basis), 2er- (<=1024) und Scroll-Regeln (<=768). */
@media (min-width: 1200px) {
  .corp-leistungen .container { max-width: min(1560px, 95vw); }
  .corp-leistungen__grid { gap: 1.5rem; }
  .corp-leistung-card { flex-basis: calc(20% - 1.2rem); }
}


.corp-branchen {
  background: var(--off-white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-branchen__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.corp-branchen__header .corp-section-intro { margin-inline: auto; }

.corp-branchen__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.corp-branchen-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--shark-08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) { .corp-branchen-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,44,55,0.09);
} }

.corp-branchen-card__image {
  aspect-ratio: 16/9;
  background: #d8d8d8;
  overflow: hidden;
  position: relative;
}

.corp-branchen-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
@media (hover: hover) { .corp-branchen-card:hover .corp-branchen-card__image img { transform: scale(1.04); } }

.corp-branchen-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
  z-index: 0;
}
.corp-branchen-card__image img { position: relative; z-index: 1; }

.corp-branchen-card__title {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--shark);
  padding: 1rem 1.25rem 0.4rem;
  line-height: 1.35;
}

.corp-branchen-card__text {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: var(--shark-60);
  line-height: 1.65;
  padding: 0 1.25rem 1.25rem;
}


.corp-vorgehen {
  position: relative;
  background: var(--white);
  margin-top: -2rem;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.corp-vorgehen__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.corp-vorgehen__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  font-weight: 800;
  color: var(--shark);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: 0.5rem;
}

.corp-vorgehen__intro-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--shark-60);
  line-height: 1.75;
}

.corp-timeline {
  padding-bottom: 3.5rem;
}

.corp-timeline__track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 32px;
}

.corp-timeline__line {
  position: absolute;
  top: 56px;
  left: 28px;
  right: 28px;
  height: 3px;
  background: var(--shark-08);
  border-radius: 2px;
  overflow: hidden;
}

.corp-timeline__line-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--cobalt));
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.corp-timeline.is-revealed .corp-timeline__line-fill {
  width: 100%;
}

.corp-timeline__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 200px;
  z-index: 1;
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.corp-timeline__node.tl-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.corp-timeline__dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--shark-08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s ease, background 0.3s ease, color 0.3s ease;
  position: relative;
  z-index: 2;
  cursor: default;
  color: var(--shark-60);
}

.corp-timeline__dot svg {
  width: 22px;
  height: 22px;
}

.corp-timeline__node.tl-visible .corp-timeline__dot {
  border-color: var(--sage);
  box-shadow: 0 0 0 6px var(--sage-20);
  color: var(--cobalt);
}

@media (hover: hover) { .corp-timeline__node:hover .corp-timeline__dot {
  transform: scale(1.12);
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: var(--white);
  box-shadow: 0 0 0 8px var(--cobalt-20), 0 6px 20px rgba(41,51,186,0.15);
} }

.corp-timeline__label {
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--shark);
  text-align: center;
  line-height: 1.35;
  transition: color 0.25s;
}

@media (hover: hover) { .corp-timeline__node:hover .corp-timeline__label {
  color: var(--cobalt);
} }

.corp-timeline__detail {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  text-align: center;
  pointer-events: none;
  padding-top: 0.5rem;
}

.corp-timeline__detail > p {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  color: var(--shark-60);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) { .corp-timeline__node:hover .corp-timeline__detail > p {
  opacity: 1;
  transform: translateY(0);
} }



.corp-kompetenz {
  background: var(--off-white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-kompetenz__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.corp-kompetenz__header .corp-section-intro { margin-inline: auto; }

.corp-kompetenz__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.corp-kompetenz__features-left,
.corp-kompetenz__features-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.corp-feature {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem 1.35rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--shark-08);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

@media (hover: hover) { .corp-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,44,55,0.09);
  border-color: transparent;
} }

.corp-feature__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.corp-feature__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--sage-20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt);
  transition: background 0.25s, color 0.25s;
}
@media (hover: hover) { .corp-feature:hover .corp-feature__icon {
  background: var(--cobalt);
  color: var(--white);
} }
.corp-feature__icon svg { width: 17px; height: 17px; }

.corp-feature__title {
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--shark);
  line-height: 1.3;
}

.corp-feature__text {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: var(--shark-60);
  line-height: 1.65;
  padding-left: calc(36px + 0.75rem);
}

.corp-kompetenz__image-wrap {
  position: relative;
  flex-shrink: 0;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotateBorder {
  to { --angle: 360deg; }
}

.corp-kompetenz__image-wrap::before {
  display: none;
}

.corp-kompetenz__image {
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  background: #d0d0d0;
  position: relative;
}

.corp-kompetenz__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.corp-kompetenz__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #e0e0e0 0%, #c4c4c4 100%);
  z-index: 0;
}


.corp-vertrauen {
  background: var(--white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-vertrauen__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.corp-vertrauen__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  font-weight: 800;
  color: var(--shark);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.corp-vertrauen__sub {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--shark-60);
}

.corp-vertrauen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.corp-testimonial {
  padding: 2rem 1.75rem;
  border-radius: 12px;
  background: var(--off-white);
  border: 1px solid var(--shark-08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) { .corp-testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37,44,55,0.09);
} }

.corp-testimonial__logo {
  margin-bottom: 1.25rem;
  color: var(--shark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.corp-testimonial__logo::before {
  content: '';
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--sage-40);
  display: block;
}

.corp-testimonial__quote {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--shark);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.corp-testimonial__name {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--shark);
}

.corp-testimonial__role {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: var(--shark-60);
  margin-top: 0.15rem;
}


.corp-faq {
  background: var(--off-white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.corp-faq > .container {
  max-width: 700px;
}

.corp-faq__header {
  margin-bottom: 2.5rem;
}

.corp-faq__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  font-weight: 800;
  color: var(--shark);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.corp-faq__intro {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--shark-60);
}

.corp-faq__list {
  border-top: 1px solid var(--shark-15);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.faq-item {
  border-bottom: 1px solid var(--shark-15);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-item__trigger span {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--shark);
  transition: color 0.2s;
  line-height: 1.4;
}

@media (hover: hover) { .faq-item__trigger:hover span { color: var(--cobalt); } }

.faq-item__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--shark-60);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), color 0.2s;
}
.faq-item--open .faq-item__icon { transform: rotate(45deg); color: var(--cobalt); }
.faq-item--open .faq-item__trigger span { color: var(--cobalt); }

.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.faq-item--open .faq-item__body { grid-template-rows: 1fr; }

.faq-item__body > p {
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--shark-60);
  line-height: 1.75;
  transition: padding-bottom 0.38s cubic-bezier(0.4,0,0.2,1);
}
.faq-item--open .faq-item__body > p { padding-bottom: 1.25rem; }

.corp-faq__cta {
  text-align: center;
  padding: 2.5rem;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--shark-08);
}

.corp-faq__cta-title {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--shark);
  margin-bottom: 0.4rem;
}

.corp-faq__cta-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--shark-60);
  margin-bottom: 1.25rem;
}

.corp-faq__cta .btn--primary {
  background: var(--shark);
  color: var(--white);
  border: 2px solid var(--shark);
}
@media (hover: hover) { .corp-faq__cta .btn--primary:hover {
  background: #1a2030;
  border-color: #1a2030;
  transform: translateY(-2px);
} }


.corp-closing {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.corp-closing__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.corp-closing__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.corp-closing__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(25, 35, 65, 0.88) 0%,
      rgba(37, 44, 55, 0.75) 50%,
      rgba(37, 44, 55, 0.65) 100%
    );
}

.corp-closing__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 20% 60%,
    rgba(193, 203, 184, 0.06) 0%,
    transparent 70%
  );
}

.corp-closing__inner {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: none;
  margin-inline: 0;
}

.corp-closing__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}

.corp-closing__line {
  display: block;
  width: 3rem;
  height: 1px;
  background: rgba(255,255,255,0.4);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.corp-closing__label.revealed .corp-closing__line {
  width: 5rem;
}

.corp-closing__headline {
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: clamp(3rem, 6vw + 1rem, 6.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0;
  text-shadow: 0 4px 40px rgba(0,0,0,0.3);
  max-width: 900px;
  overflow: hidden;
}

.corp-closing__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.corp-closing__headline.closing-revealed .corp-closing__word {
  opacity: 1;
  transform: translateY(0);
}

.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(1) { transition-delay: 0ms; }
.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(2) { transition-delay: 80ms; }
.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(3) { transition-delay: 160ms; }
.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(4) { transition-delay: 240ms; }
.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(5) { transition-delay: 320ms; }
.corp-closing__headline.closing-revealed .corp-closing__word:nth-child(6) { transition-delay: 400ms; }

.corp-closing__bottom {
  margin-left: auto;
  margin-right: 0;
  max-width: 440px;
  padding-top: 2.5rem;
}

.corp-closing__divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.5), transparent);
  margin-bottom: 2rem;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.corp-closing__bottom.revealed .corp-closing__divider {
  width: 100%;
}

.corp-closing__text {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.15);
}

.corp-closing__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn--primary-cobalt {
  background: var(--sage);
  color: var(--shark);
  border: 2px solid var(--sage);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
@media (hover: hover) { .btn--primary-cobalt:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(41, 51, 186, 0.35);
  transform: translateY(-2px);
} }

.btn--outline-white {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.3);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
@media (hover: hover) { .btn--outline-white:hover {
  background: var(--shark);
  border-color: var(--shark);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(37, 44, 55, 0.4);
  transform: translateY(-2px);
} }


@media (max-width: 1200px) {
  .corp-kompetenz__layout { grid-template-columns: 1fr 1.2fr 1fr; gap: 1.75rem; }
}

@media (max-width: 1024px) {
  .corp-leistung-card { flex-basis: calc(50% - (var(--space-lg, 2rem) / 2)); }
  .corp-vorgehen__intro { grid-template-columns: 1fr; gap: 1rem; }
  .corp-kompetenz__layout {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-inline: auto;
  }
  .corp-kompetenz__image-wrap { order: -1; max-height: 300px; aspect-ratio: 16/9; }
  .corp-kompetenz__features-left,
  .corp-kompetenz__features-right { gap: 1.75rem; }
  .corp-vertrauen__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

@media (max-width: 768px) {
  .corp-hero__content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.5rem; padding-inline: var(--container-padding, 1.25rem); }
  .corp-hero__headline { grid-column: auto; grid-row: auto; align-self: flex-start; justify-self: auto; text-align: left; padding-top: 0; font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .corp-hero__right    { grid-column: auto; grid-row: auto; align-self: stretch; max-width: 24rem; margin-top: clamp(2.5rem, 12vh, 7rem); }
  .corp-hero__actions { grid-column: auto; grid-row: auto; margin-top: 0; flex-direction: column; align-items: stretch; width: 100%; max-width: 22rem; gap: 0.6rem; }
  .corp-hero__actions .btn { width: 100%; justify-content: center; text-align: center; padding: 0.7rem 1.2rem; font-size: 0.85rem; white-space: normal; }
  .corp-hero__scroll { display: none; }
  .corp-ueberblick__inner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .corp-leistungen__grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--container-padding, 1.25rem);
    padding: 0.25rem var(--container-padding, 1.25rem) 0.75rem;
    margin-inline: calc(var(--container-padding, 1.25rem) * -1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .corp-leistungen__grid::-webkit-scrollbar { display: none; }
  .corp-leistung-card {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: start;
  }
  .corp-branchen__grid { grid-template-columns: 1fr; }
  .corp-vorgehen-wrap { height: auto; }
  .corp-vorgehen-spacer { display: none; }
  .corp-vorgehen__sticky { position: relative; height: auto; padding-block: clamp(4rem, 8vw, 7rem); }
  .corp-vorgehen__intro { grid-template-columns: 1fr; gap: 1rem; }
  .corp-timeline__track { flex-direction: column; align-items: flex-start; padding-top: 0; }
  .corp-timeline__line { top: 0; bottom: 0; left: 25px; right: auto; width: 3px; height: 100%; }
  .corp-timeline__line-fill { width: 100% !important; height: 100%; background: linear-gradient(180deg, var(--sage), var(--cobalt)); }
  .corp-timeline__node { flex-direction: row; align-items: flex-start; max-width: 100%; gap: 1rem; padding: 1.25rem 0; opacity: 1; transform: none; flex-wrap: wrap; }
  .corp-timeline__dot { flex-shrink: 0; margin-bottom: 0; border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-20); color: var(--cobalt); cursor: pointer; }
  .corp-timeline__label { text-align: left; flex: 1; align-self: center; }
  /* Linker Einzug = Dot-Breite (52px) + gap (1rem), damit der Text
     buendig unter dem Label statt unter dem Icon steht. */
  .corp-timeline__detail {
    position: static;
    transform: none;
    width: auto;
    text-align: left;
    padding-top: 0;
    padding-left: calc(52px + 1rem);
    flex-basis: 100%;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding-top 0.35s ease;
    overflow: hidden;
  }
  .corp-timeline__detail > p {
    opacity: 0;
    transform: none;
    min-height: 0;
    transition: opacity 0.25s ease 0.05s;
  }
  .corp-timeline__node.tl-open .corp-timeline__detail {
    grid-template-rows: 1fr;
    padding-top: 0.6rem;
  }
  .corp-timeline__node.tl-open .corp-timeline__detail > p {
    opacity: 1;
  }
  @media (hover: hover) { .corp-timeline__node:hover .corp-timeline__detail > p {
    opacity: 0;
  } }
  @media (hover: hover) { .corp-timeline__node.tl-open:hover .corp-timeline__detail > p {
    opacity: 1;
  } }
  .corp-section-actions { flex-direction: column; align-items: flex-start; }
  .corp-closing { min-height: auto; }
  .corp-closing__headline { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .corp-closing__bottom { max-width: 100%; margin-left: 0; }
  .corp-closing__actions { flex-direction: column; }
  .corp-closing__actions .btn { width: 100%; justify-content: center; }
  .corp-faq > .container { margin-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .corp-hero__bg-image { transition: none; }
  .corp-hero__scroll-line { animation: none; }
  .corp-hero__particle { animation: none; }
  .corp-vorgehen-wrap { height: auto; }
  .corp-vorgehen-spacer { display: none; }
  .corp-vorgehen__sticky { position: relative; height: auto; padding-block: clamp(4rem, 8vw, 7rem); }
  .corp-timeline__node { opacity: 1; transform: none; }
  .corp-timeline__line-fill { width: 100% !important; }
}