@import url("styles/header.css");

/* =========================================================
   HERO-BEREICH
   ========================================================= */

.hero-section {
  position: relative;
  isolation: isolate;
  /* FIX: overflow: hidden war doppelt definiert — einmal entfernt */
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 76% 48%,
      rgba(29, 255, 159, 0.05),
      transparent 33%
    ),
    #020302;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.4),
    transparent
  );
}

/* =========================================================
   CANVAS MIT DEN DOPPELTEN LINIENKREISEN
   ========================================================= */

.hero-background-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* =========================================================
   HERO-INHALT
   ========================================================= */

.hero-container {
  position: relative;
  z-index: 3;
  width: min(100% - 180px, 1540px);
  margin: 0 auto;
  padding-top: 130px;
  padding-bottom: 80px;
}

.hero-content {
  width: min(760px, 58vw);
  position: relative;
  z-index: 4;
}

.hero-eyebrow {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.62);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 810px;
  margin: 0;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3rem, 4vw, 6.5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero-typewriter-line {
  min-height: 1em;
  display: flex;
  align-items: center;
  margin: 5px 0;
  white-space: nowrap;
}

.hero-typewriter-text {
  display: inline-block;
  color: #4affae;
  transition:
    color 0.4s ease,
    text-shadow 0.4s ease;
  text-shadow: 0 0 22px color-mix(in srgb, currentColor 28%, transparent);
}

.hero-typewriter-cursor {
  width: 4px;
  height: 0.82em;
  margin-left: 11px;
  display: inline-block;
  background: currentColor;
  border-radius: 999px;
  animation: heroCursorBlink 0.8s steps(1) infinite;
}

@keyframes heroCursorBlink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

.hero-description {
  max-width: 680px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.63);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
}

/* =========================================================
   HERO-BUTTONS
   ========================================================= */

.hero-actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-primary-button {
  min-height: 62px;
  padding: 0 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  /* FIX: font-weight 750 ist kein valider CSS-Wert — korrigiert zu 800 */
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.hero-primary-button:hover,
.hero-primary-button:focus-visible {
  color: #041009;
  background: #4affae;
  border-color: #4affae;
  box-shadow:
    0 0 0 7px rgba(74, 255, 174, 0.08),
    0 18px 50px rgba(74, 255, 174, 0.16);
  transform: translateY(-3px);
}

.hero-button-arrow {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.hero-primary-button:hover .hero-button-arrow {
  transform: translate(4px, -4px);
}

.hero-secondary-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

.hero-secondary-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s ease;
}

.hero-secondary-link:hover {
  gap: 15px;
  color: #4affae;
}

.hero-secondary-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* =========================================================
   SCROLL-ANZEIGE LINKS
   ========================================================= */

.hero-scroll-indicator {
  position: absolute;
  top: 50%;
  left: 25px;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  color: rgba(255, 255, 255, 0.52);
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  transform: translateY(-35%);
}

.hero-scroll-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-scroll-line {
  position: relative;
  width: 1px;
  height: 115px;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.26);
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -45%;
  left: 0;
  width: 100%;
  height: 45%;
  background: #ffffff;
  animation: heroScrollLine 2.2s ease-in-out infinite;
}

@keyframes heroScrollLine {
  0% {
    top: -45%;
  }
  55%,
  100% {
    top: 100%;
  }
}

.hero-scroll-arrow {
  display: block;
  font-size: 1rem;
  line-height: 1;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.hero-scroll-indicator:hover {
  color: #4affae;
}
.hero-scroll-indicator:hover .hero-scroll-arrow-up {
  transform: translateY(-4px);
}
.hero-scroll-indicator:hover .hero-scroll-arrow-down {
  transform: translateY(4px);
}

/* =========================================================
   RESPONSIVE – TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .hero-container {
    width: min(100% - 100px, 1540px);
  }
  .hero-content {
    width: min(700px, 67vw);
  }
  .hero-background-overlay {
    background: linear-gradient(
      90deg,
      #020302 0%,
      rgba(2, 3, 2, 0.96) 34%,
      rgba(2, 3, 2, 0.54) 68%,
      transparent 100%
    );
  }
}

/* =========================================================
   RESPONSIVE – HANDY
   ========================================================= */

@media (max-width: 760px) {
  .hero-section {
    min-height: 100svh;
    align-items: flex-end;
  }
  .hero-container {
    width: min(100% - 40px, 1540px);
    padding-top: 135px;
    padding-bottom: 68px;
  }
  .hero-content {
    width: 100%;
  }
  .hero-title {
    font-size: clamp(2rem, 7vw, 4rem);
    line-height: 0.98;
  }
  .hero-typewriter-line {
    min-height: 1em;
    align-items: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }
  .hero-typewriter-cursor {
    margin-top: 0.08em;
  }
  .hero-description {
    margin-top: 25px;
    font-size: 1rem;
    line-height: 1.6;
  }
  .hero-actions {
    margin-top: 31px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .hero-primary-button {
    width: 100%;
    box-sizing: border-box;
  }
  .hero-secondary-link {
    margin-left: 4px;
  }
  .hero-scroll-indicator {
    display: none;
  }
  .hero-background-overlay {
    background: linear-gradient(
      180deg,
      rgba(2, 3, 2, 0.15) 0%,
      rgba(2, 3, 2, 0.55) 38%,
      #020302 75%
    );
  }
}

@media (max-width: 430px) {
  .hero-container {
    width: min(100% - 28px, 1540px);
  }
  .hero-eyebrow {
    margin-bottom: 18px;
    font-size: 0.7rem;
  }
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .hero-description {
    color: rgba(255, 255, 255, 0.69);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-typewriter-cursor,
  .hero-scroll-line::after {
    animation: none;
  }
  .hero-primary-button,
  .hero-button-arrow,
  .hero-secondary-link,
  .hero-secondary-link::after,
  .hero-scroll-arrow {
    transition: none;
  }
}

/* =========================================================
   SERVICE-KARTEN
   ========================================================= */

.mae-services {
  position: relative;
  z-index: 5;
  padding: 0 20px 20px;
  color: #ffffff;
  background: #020202;
}

.mae-services-container {
  width: min(100%, 1580px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.mae-service-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  isolation: isolate;
  min-height: 305px;
  /* FIX: padding-right war 3× definiert — einmal konsolidiert */
  padding: 28px 42px 42px 28px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 27px;
  text-decoration: none;
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.mae-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
    550px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.13),
    rgba(255, 255, 255, 0.045) 27%,
    transparent 63%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mae-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.012) 38%,
    rgba(255, 132, 0, 0.035) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mae-service-card:hover,
.mae-service-card:focus-visible {
  background-color: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 28px 75px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  transform: translateY(-4px);
}

.mae-service-card:hover::before,
.mae-service-card:hover::after,
.mae-service-card:focus-visible::before,
.mae-service-card:focus-visible::after {
  opacity: 1;
}

/* Icon */
.mae-service-icon {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 12px 30px rgba(0, 0, 0, 0.15);
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.mae-service-icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mae-service-card:hover .mae-service-icon,
.mae-service-card:focus-visible .mae-service-icon {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 15px 35px rgba(0, 0, 0, 0.22),
    0 0 25px rgba(255, 255, 255, 0.055);
  transform: translateY(-3px);
}

/* Texte */
.mae-service-content {
  margin-top: auto;
  padding-top: 34px;
}

.mae-service-title {
  max-width: 570px;
  margin: 0;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.035em;
}

.mae-service-description {
  max-width: 840px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.61);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.17rem);
  font-weight: 400;
  line-height: 1.6;
}

/* FIX: Pfeil-Element ausgeblendet (kein Link, keine Aktion) */
.mae-service-arrow {
  display: none;
}

.mae-service-card:focus-visible {
  outline: 3px solid #ff8700;
  outline-offset: 5px;
}

/* Tablet */
@media (max-width: 900px) {
  .mae-services {
    padding: 60px 18px 90px;
  }
  .mae-services-container {
    gap: 24px;
  }
  .mae-service-card {
    min-height: 285px;
    padding: 26px 34px 34px 26px;
  }
}

/* Handy */
@media (max-width: 620px) {
  .mae-services {
    padding: 45px 14px 75px;
  }
  .mae-services-container {
    gap: 18px;
  }
  .mae-service-card {
    min-height: 320px;
    padding: 22px 22px 29px;
    border-radius: 22px;
  }
  .mae-service-icon {
    width: 59px;
    height: 59px;
    border-radius: 14px;
  }
  .mae-service-icon svg {
    width: 30px;
    height: 30px;
  }
  .mae-service-content {
    width: 100%;
    padding-top: 32px;
  }
  .mae-service-title {
    font-size: 1.48rem;
    line-height: 1.33;
  }
  .mae-service-description {
    margin-top: 15px;
    font-size: 0.98rem;
    line-height: 1.58;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mae-service-card,
  .mae-service-card::before,
  .mae-service-card::after,
  .mae-service-icon {
    transition: none;
  }
  .mae-service-card:hover {
    transform: none;
  }
}

/* =========================================================
   CASE STUDIES
   ========================================================= */

.case-studies-section {
  position: relative;
  overflow: hidden;
  padding: 25px 0 0;
  color: #ffffff;
  background: #000000;
}

.case-studies-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 30%;
  width: 60%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.035),
    transparent 68%
  );
}

.case-studies-header {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1100px);
  margin: 0 auto 85px;
  text-align: center;
}

.case-studies-heading {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.case-studies-subtitle {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.42rem);
  line-height: 1.55;
}

.case-studies-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 25px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-inline: contain;
}

.case-studies-slider::-webkit-scrollbar {
  display: none;
}

.case-studies-slider.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.case-studies-track {
  width: max-content;
  min-height: 650px;
  padding: 0 max(0px, calc((90vw - 1320px) / 2));
  display: flex;
  align-items: flex-start;
  gap: clamp(38px, 4vw, 62px);
}

.case-study-card {
  position: relative;
  width: clamp(300px, 24vw, 390px);
  flex: 0 0 auto;
  margin-top: var(--case-offset);
  scroll-snap-align: start;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.35s ease;
}

.case-study-card:hover {
  transform: translateY(-7px);
}

.case-study-media {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  background: #121212;
  border-radius: 22px;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    box-shadow 0.5s ease,
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-study-card:hover .case-study-media {
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.5),
    0 0 55px rgba(var(--case-color-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: scale(1.012);
}

.case-study-background {
  position: absolute;
  inset: -16%;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 48%,
    rgba(var(--case-color-rgb), 0.95) 0%,
    rgba(var(--case-color-rgb), 0.62) 24%,
    rgba(var(--case-color-rgb), 0.26) 48%,
    transparent 72%
  );
  opacity: 0;
  transform: scale(0.75) rotate(-5deg);
  filter: blur(22px);
  transition:
    opacity 0.65s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-study-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(var(--case-color-rgb), 0.5),
    rgba(var(--case-color-rgb), 0.12) 48%,
    transparent 78%
  );
  opacity: 0;
  transition: opacity 0.55s ease;
}

.case-study-card:hover .case-study-background {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.case-study-card:hover .case-study-media::before {
  opacity: 1;
}

.case-study-images {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.case-study-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-study-image.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.case-study-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) saturate(0) contrast(1.06) brightness(0.76);
  transform: scale(1.015);
  transition:
    filter 0.75s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-study-card:hover .case-study-image.is-active img {
  filter: grayscale(0) saturate(1.08) contrast(1.02) brightness(0.96);
  transform: scale(1.055);
}

.case-study-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04) 35%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

/* Galerie-Navigation */
.case-study-gallery-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  opacity: 0;
  cursor: pointer;
  transform: translateY(-50%) scale(0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.case-study-gallery-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-study-gallery-previous {
  left: 14px;
}
.case-study-gallery-next {
  right: 14px;
}

.case-study-card:hover .case-study-gallery-button,
.case-study-gallery-button:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.case-study-gallery-button:hover {
  color: #ffffff;
  background: rgba(var(--case-color-rgb), 0.72);
  border-color: rgba(var(--case-color-rgb), 0.95);
  transform: translateY(-50%) scale(1.08);
}

.case-study-gallery-dots {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-study-card:hover .case-study-gallery-dots {
  opacity: 1;
}

.case-study-gallery-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    width 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.case-study-gallery-dot.is-active {
  width: 27px;
  background: var(--case-color);
  box-shadow: 0 0 13px rgba(var(--case-color-rgb), 0.75);
}

/* Projekttext */
.case-study-content {
  padding-top: 29px;
}

.case-study-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #ffffff;
  text-decoration: none;
  cursor: help;
}

.case-study-link span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.65rem, 2.1vw, 2.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

/* FIX: SVG-Pfeil im case-study-link ausgeblendet (kein Link) */
.case-study-link svg {
  display: none;
}

.case-study-description {
  max-width: 355px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.97rem, 1.2vw, 1.14rem);
  line-height: 1.55;
  transition: color 0.3s ease;
}

.case-study-card:hover .case-study-description {
  color: rgba(255, 255, 255, 0.92);
}

/* Focus */
.case-studies-slider:focus-visible,
.case-study-link:focus-visible,
.case-study-gallery-button:focus-visible,
.case-study-gallery-dot:focus-visible {
  outline: 3px solid var(--case-color, #ff9100);
  outline-offset: 4px;
}

/* Tablet */
@media (max-width: 1024px) {
  .case-studies-section {
    padding: 95px 0 105px;
  }
  .case-studies-header {
    margin-bottom: 65px;
  }
  .case-studies-track {
    min-height: 585px;
    padding-right: 35px;
    padding-left: 35px;
  }
  .case-study-card {
    width: clamp(290px, 38vw, 370px);
  }
}

/* Handy */
@media (max-width: 700px) {
  .case-studies-section {
    padding: 75px 0 82px;
  }
  .case-studies-header {
    width: min(100% - 28px, 1100px);
    margin-bottom: 45px;
  }
  .case-studies-heading {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }
  .case-studies-subtitle {
    margin-top: 18px;
    font-size: 1rem;
  }
  .case-studies-track {
    min-height: auto;
    padding: 0 14px 35px;
    gap: 18px;
  }
  .case-study-card {
    width: calc(100vw - 48px);
    max-width: 380px;
    margin-top: 0;
  }
  .case-study-media {
    border-radius: 19px;
  }
  .case-study-content {
    padding-top: 22px;
  }
  .case-study-description {
    font-size: 0.98rem;
  }
  .case-study-gallery-button {
    width: 43px;
    height: 43px;
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  .case-study-gallery-dots {
    opacity: 1;
  }
  .case-study-image.is-active img {
    filter: grayscale(0.35) saturate(0.8) contrast(1.03) brightness(0.88);
  }
  .case-study-background {
    opacity: 0.42;
    transform: scale(1);
  }
  .case-study-media::before {
    opacity: 0.32;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-studies-slider {
    scroll-behavior: auto;
  }
  .case-study-card,
  .case-study-media,
  .case-study-background,
  .case-study-media::before,
  .case-study-image,
  .case-study-image img,
  .case-study-gallery-button,
  .case-study-gallery-dot {
    transition: none;
  }
  .case-study-card:hover {
    transform: none;
  }
}

/* =========================================================
   STATISTIKEN
   ========================================================= */

.mae-statistics {
  --statistics-mouse-x: 50%;
  --statistics-mouse-y: 52%;
  position: relative;
  isolation: isolate;
  min-height: 620px;
  padding: 10px 60px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #000000;
}

.mae-statistics::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #000000 0%,
      transparent 18%,
      transparent 82%,
      #000000 100%
    ),
    linear-gradient(
      180deg,
      #000000 0%,
      transparent 28%,
      transparent 72%,
      #000000 100%
    );
}

.mae-statistics::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 70px 70px;
}

.mae-statistics-glow {
  position: absolute;
  top: var(--statistics-mouse-y);
  left: var(--statistics-mouse-x);
  z-index: -2;
  width: min(70vw, 1080px);
  height: 330px;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(167, 144, 255, 0.56) 0%,
    rgba(137, 112, 226, 0.36) 28%,
    rgba(93, 73, 170, 0.19) 52%,
    rgba(45, 35, 86, 0.08) 68%,
    transparent 82%
  );
  opacity: 0.9;
  filter: blur(31px);
  transform: translate(-50%, -50%) scaleX(1.08);
  transition:
    top 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    left 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: maeStatisticsGlow 5.5s ease-in-out infinite alternate;
}

@keyframes maeStatisticsGlow {
  from {
    opacity: 0.7;
    transform: translate(-50%, -50%) scaleX(1.02) scaleY(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1.12) scaleY(1.06);
  }
}

.mae-statistics-container {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(45px, 7vw, 115px);
}

.mae-statistic {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mae-statistic.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mae-statistic:nth-child(2) {
  transition-delay: 120ms;
}
.mae-statistic:nth-child(3) {
  transition-delay: 240ms;
}

.mae-statistic-number {
  flex: 0 0 auto;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3.1rem, 5vw, 5.3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.055em;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.06),
    0 0 55px rgba(167, 144, 255, 0.13);
}

.mae-statistic-label {
  max-width: 180px;
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.mae-statistic:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(clamp(45px, 7vw, 115px) / -2);
  width: 1px;
  height: 58px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
  transform: translateY(-50%);
}

/* Tablet */
@media (max-width: 1050px) {
  .mae-statistics {
    min-height: 560px;
    padding: 90px 40px;
  }
  .mae-statistics-container {
    gap: 45px;
  }
  .mae-statistic {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .mae-statistic-label {
    max-width: none;
  }
  .mae-statistic:not(:last-child)::after {
    right: -22px;
  }
}

/* Handy */
@media (max-width: 700px) {
  .mae-statistics {
    min-height: auto;
    padding: 105px 24px 125px;
  }
  .mae-statistics-glow {
    top: 50%;
    left: 50%;
    width: 125vw;
    height: 600px;
    background: radial-gradient(
      ellipse at center,
      rgba(167, 144, 255, 0.42) 0%,
      rgba(114, 90, 202, 0.24) 36%,
      rgba(63, 48, 118, 0.11) 58%,
      transparent 78%
    );
  }
  .mae-statistics-container {
    width: min(100%, 440px);
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mae-statistic {
    min-height: 140px;
    padding: 28px 0;
    align-items: baseline;
    flex-direction: row;
    justify-content: flex-start;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }
  .mae-statistic:last-child {
    border-bottom: 0;
  }
  .mae-statistic:not(:last-child)::after {
    display: none;
  }
  .mae-statistic-number {
    min-width: 130px;
    font-size: clamp(3rem, 15vw, 4.5rem);
  }
  .mae-statistic-label {
    max-width: 160px;
    font-size: 1rem;
  }
}

@media (max-width: 410px) {
  .mae-statistic {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .mae-statistic-number {
    min-width: 0;
  }
  .mae-statistic-label {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mae-statistics-glow {
    animation: none;
    transition: none;
  }
  .mae-statistic {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   WHAT WE DO
   ========================================================= */

.mae-work {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 125px 0 145px;
  color: #ffffff;
  background: #000000;
}

.mae-work-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.mae-work-bg::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 28%;
  width: 760px;
  height: 560px;
  background: radial-gradient(
    ellipse at center,
    var(--work-bg-color),
    transparent 68%
  );
  filter: blur(75px);
  transform: translate(-50%, -50%);
}

.mae-work-bg[data-work-bg="0"] {
  --work-bg-color: rgba(58, 133, 198, 0.38);
}
.mae-work-bg[data-work-bg="1"] {
  --work-bg-color: rgba(197, 102, 134, 0.36);
}
.mae-work-bg[data-work-bg="2"] {
  --work-bg-color: rgba(255, 146, 0, 0.32);
}
.mae-work-bg[data-work-bg="3"] {
  --work-bg-color: rgba(0, 158, 137, 0.34);
}
.mae-work-bg-active {
  opacity: 1;
}

.mae-work::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #000000 0%,
      rgba(0, 0, 0, 0.55) 35%,
      rgba(0, 0, 0, 0.86) 100%
    ),
    linear-gradient(180deg, #000000 0%, transparent 28%, #000000 100%);
}

.mae-work-container {
  width: min(100% - 64px, 1560px);
  margin: 0 auto;
}

.mae-work-header {
  margin-bottom: 72px;
  text-align: center;
}

.mae-work-title {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.5rem, 4.2vw, 4.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.mae-work-subtitle {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  line-height: 1.55;
}

.mae-work-body {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.15fr);
  gap: clamp(55px, 7vw, 120px);
  align-items: start;
}

/* Tabs */
.mae-work-tabs {
  display: flex;
  flex-direction: column;
}

.mae-work-tab {
  position: relative;
  width: 100%;
  min-height: 135px;
  padding: 27px 0 31px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 18px;
  color: rgba(255, 255, 255, 0.22);
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    padding-left 0.3s ease;
}

.mae-work-tab:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.mae-work-tab::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--tab-color);
  transition: width 0.35s ease;
}

.mae-work-tab::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--tab-color);
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: top;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.mae-work-tab:hover,
.mae-work-tab-active {
  color: #ffffff;
  border-top-color: var(--tab-color);
  padding-left: 18px;
}

.mae-work-tab:hover::before,
.mae-work-tab-active::before {
  width: 100%;
}

.mae-work-tab:hover::after,
.mae-work-tab-active::after {
  opacity: 1;
  transform: scaleY(1);
}

.mae-work-tab-index {
  color: var(--tab-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mae-work-tab-title {
  max-width: 480px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.045em;
}

/* Panels */
.mae-work-panels {
  position: relative;
  min-height: 760px;
}

.mae-work-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mae-work-panel-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Karten */
.mae-work-card {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  padding: 38px 48px 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.012)
    ),
    #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 27px;
  cursor: help;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.mae-work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: radial-gradient(
    circle at 25% 15%,
    rgba(var(--card-rgb), 0.24),
    transparent 36%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mae-work-card-gradient {
  position: absolute;
  inset: -25%;
  z-index: -2;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(var(--card-rgb), 0.56),
    rgba(var(--card-rgb), 0.18) 34%,
    transparent 67%
  );
  opacity: 0;
  filter: blur(32px);
  transform: scale(0.8);
  transition:
    opacity 0.5s ease,
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mae-work-card:hover {
  border-color: rgba(var(--card-rgb), 0.55);
  box-shadow:
    0 36px 105px rgba(0, 0, 0, 0.48),
    0 0 70px rgba(var(--card-rgb), 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
}

.mae-work-card:hover::before,
.mae-work-card:hover .mae-work-card-gradient {
  opacity: 1;
}

.mae-work-card:hover .mae-work-card-gradient {
  transform: scale(1);
}

.mae-work-card-icon {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.mae-work-card-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mae-work-card:hover .mae-work-card-icon {
  color: #ffffff;
  background: rgba(var(--card-rgb), 0.12);
  border-color: rgba(var(--card-rgb), 0.55);
  box-shadow: 0 0 30px rgba(var(--card-rgb), 0.16);
  transform: translateY(-3px);
}

.mae-work-card-tag {
  position: absolute;
  top: 42px;
  right: 46px;
  padding: 8px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
}

.mae-work-card-title {
  max-width: 620px;
  margin: 15px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 2vw, 3.25rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.mae-work-card-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.mae-work-card-bottom p {
  max-width: 590px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.58;
}

/* Responsive */
@media (max-width: 1050px) {
  .mae-work {
    padding: 95px 0 110px;
  }
  .mae-work-container {
    width: min(100% - 40px, 1560px);
  }
  .mae-work-body {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .mae-work-tabs {
    overflow-x: auto;
    flex-direction: row;
    gap: 16px;
    scrollbar-width: none;
  }
  .mae-work-tabs::-webkit-scrollbar {
    display: none;
  }
  .mae-work-tab {
    min-width: 280px;
    min-height: 150px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
  }
  .mae-work-tab:hover,
  .mae-work-tab-active {
    padding-left: 24px;
    border-color: var(--tab-color);
  }
  .mae-work-panels {
    min-height: 760px;
  }
}

@media (max-width: 700px) {
  .mae-work {
    padding: 75px 0 90px;
  }
  .mae-work-container {
    width: min(100% - 28px, 1560px);
  }
  .mae-work-header {
    margin-bottom: 42px;
    text-align: left;
  }
  .mae-work-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }
  .mae-work-subtitle {
    font-size: 1rem;
  }
  .mae-work-tabs {
    margin-right: -14px;
    padding-right: 14px;
  }
  .mae-work-tab {
    min-width: 235px;
    min-height: 130px;
  }
  .mae-work-tab-title {
    font-size: 1.35rem;
  }
  .mae-work-panels {
    min-height: 760px;
  }
  .mae-work-panel {
    gap: 22px;
  }
  .mae-work-card {
    min-height: 345px;
    padding: 26px 23px 30px;
    border-radius: 22px;
  }
  .mae-work-card-icon {
    width: 64px;
    height: 64px;
  }
  .mae-work-card-icon svg {
    width: 34px;
    height: 34px;
  }
  .mae-work-card-tag {
    top: 28px;
    right: 22px;
    font-size: 0.88rem;
  }
  .mae-work-card-title {
    margin-top: 46px;
    font-size: clamp(1.75rem, 8vw, 2.55rem);
  }
  .mae-work-card-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mae-work-card-bottom p {
    margin-top: 25px;
    font-size: 0.97rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mae-work-bg,
  .mae-work-tab,
  .mae-work-tab::before,
  .mae-work-tab::after,
  .mae-work-panel,
  .mae-work-card,
  .mae-work-card::before,
  .mae-work-card-gradient,
  .mae-work-card-icon {
    transition: none;
  }
  .mae-work-card:hover {
    transform: none;
  }
}

/* =========================================================
   TECH EXPERTISE
   ========================================================= */

.mae-tech {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 125px 0 145px;
  color: #ffffff;
  background: #000000;
}

.mae-tech::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #000000 0%,
      transparent 18%,
      transparent 82%,
      #000000 100%
    ),
    linear-gradient(
      180deg,
      #000000 0%,
      transparent 22%,
      transparent 78%,
      #000000 100%
    );
}

.mae-tech-section-glow {
  position: absolute;
  top: 60%;
  left: 50%;
  z-index: -3;
  width: min(100vw, 1500px);
  height: 750px;
  pointer-events: none;
  opacity: 0;
  filter: blur(65px);
  transform: translate(-50%, -50%) scale(0.82);
  transition:
    opacity 0.55s ease,
    background 0.45s ease,
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mae-tech.has-tech-active .mae-tech-section-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mae-tech-container {
  position: relative;
  z-index: 2;
  width: min(100% - 64px, 1540px);
  margin: 0 auto;
}

.mae-tech-header {
  width: min(100%, 1040px);
  margin: 0 auto 82px;
  text-align: center;
}

.mae-tech-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mae-tech-heading {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.8rem, 5vw, 5.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.mae-tech-subtitle {
  max-width: 900px;
  margin: 25px auto 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.32rem);
  line-height: 1.55;
}

.mae-tech-grid {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.mae-tech-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 285px;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.018),
    rgba(255, 255, 255, 0.004)
  );
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-align: left;
  cursor: help;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.mae-tech-card:nth-child(1) {
  border-top-left-radius: 27px;
}
.mae-tech-card:nth-child(3) {
  border-top-right-radius: 27px;
}
.mae-tech-card:nth-last-child(3) {
  border-bottom-left-radius: 27px;
}
.mae-tech-card:last-child {
  border-bottom-right-radius: 27px;
}

.mae-tech-card-glow {
  position: absolute;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(var(--tech-rgb), 0.72) 0%,
    rgba(var(--tech-rgb), 0.32) 30%,
    rgba(var(--tech-rgb), 0.11) 52%,
    transparent 72%
  );
  opacity: 0;
  filter: blur(35px);
  transform: scale(0.68);
  transition:
    opacity 0.5s ease,
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mae-tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(var(--tech-rgb), 0.34),
    rgba(var(--tech-rgb), 0.1) 48%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}

.mae-tech-card:hover,
.mae-tech-card:focus-visible,
.mae-tech-card.is-tech-active {
  background-color: rgba(var(--tech-rgb), 0.055);
  box-shadow:
    inset 0 0 0 1px rgba(var(--tech-rgb), 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 20px 65px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.mae-tech-card:hover::before,
.mae-tech-card:focus-visible::before,
.mae-tech-card.is-tech-active::before {
  opacity: 1;
}

.mae-tech-card:hover .mae-tech-card-glow,
.mae-tech-card:focus-visible .mae-tech-card-glow,
.mae-tech-card.is-tech-active .mae-tech-card-glow {
  opacity: 1;
  transform: scale(1);
}

.mae-tech-icon {
  position: absolute;
  top: 45px;
  left: 39px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition:
    top 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    left 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.mae-tech-icon svg {
  width: 39px;
  height: 39px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    width 0.35s ease,
    height 0.35s ease;
}

.mae-tech-card:hover .mae-tech-icon,
.mae-tech-card:focus-visible .mae-tech-icon,
.mae-tech-card.is-tech-active .mae-tech-icon {
  top: 35px;
  left: 38px;
  width: 55px;
  height: 55px;
  color: var(--tech-color);
  background: rgba(var(--tech-rgb), 0.18);
  border-color: rgba(var(--tech-rgb), 0.42);
  box-shadow:
    0 0 28px rgba(var(--tech-rgb), 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mae-tech-card:hover .mae-tech-icon svg,
.mae-tech-card:focus-visible .mae-tech-icon svg,
.mae-tech-card.is-tech-active .mae-tech-icon svg {
  width: 27px;
  height: 27px;
}

.mae-tech-card-title {
  position: absolute;
  right: 38px;
  bottom: 43px;
  left: 39px;
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.35rem, 1.7vw, 1.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
  transition:
    top 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    right 0.38s ease,
    bottom 0.38s ease,
    left 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.3s ease,
    font-size 0.35s ease;
}

.mae-tech-card:hover .mae-tech-card-title,
.mae-tech-card:focus-visible .mae-tech-card-title,
.mae-tech-card.is-tech-active .mae-tech-card-title {
  top: 45px;
  right: 90px;
  bottom: auto;
  left: 111px;
  color: #ffffff;
  font-size: clamp(1.22rem, 1.45vw, 1.52rem);
}

/* FIX: Info-Badge ersetzt den alten Pfeil */
.mae-tech-card-arrow {
  position: absolute;
  top: 49px;
  right: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 30px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.74;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

/* SVG im Pfeil-Element ausblenden — wird durch Text ersetzt */
.mae-tech-card-arrow svg {
  display: none;
}

.mae-tech-card:hover .mae-tech-card-arrow,
.mae-tech-card:focus-visible .mae-tech-card-arrow,
.mae-tech-card.is-tech-active .mae-tech-card-arrow {
  opacity: 1;
  color: #080808;
  background: var(--tech-color);
  border-color: var(--tech-color);
  transform: translateY(-2px);
}

.mae-tech-card-description {
  position: absolute;
  top: 126px;
  right: 38px;
  left: 38px;
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.94rem, 1.05vw, 1.06rem);
  font-weight: 400;
  line-height: 1.55;
  opacity: 0;
  visibility: hidden;
  transform: translateY(17px);
  transition:
    opacity 0.35s ease 0.05s,
    visibility 0.35s ease,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mae-tech-card:hover .mae-tech-card-description,
.mae-tech-card:focus-visible .mae-tech-card-description,
.mae-tech-card.is-tech-active .mae-tech-card-description {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  color: rgba(255, 255, 255, 0.86);
}

.mae-tech-card:focus-visible {
  outline: 3px solid var(--tech-color);
  outline-offset: -5px;
}

/* Tablet */
@media (max-width: 1050px) {
  .mae-tech {
    padding: 100px 0 115px;
  }
  .mae-tech-container {
    width: min(100% - 40px, 1540px);
  }
  .mae-tech-header {
    margin-bottom: 60px;
  }
  .mae-tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mae-tech-card {
    min-height: 275px;
  }
  .mae-tech-card:nth-child(3) {
    border-top-right-radius: 0;
  }
  .mae-tech-card:nth-child(2) {
    border-top-right-radius: 27px;
  }
  .mae-tech-card:nth-last-child(3) {
    border-bottom-left-radius: 0;
  }
  .mae-tech-card:nth-last-child(2) {
    border-bottom-left-radius: 27px;
  }
}

/* Handy */
@media (max-width: 680px) {
  .mae-tech {
    padding: 78px 0 90px;
  }
  .mae-tech-container {
    width: min(100% - 28px, 1540px);
  }
  .mae-tech-header {
    margin-bottom: 42px;
    text-align: left;
  }
  .mae-tech-heading {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }
  .mae-tech-subtitle {
    margin-top: 18px;
    font-size: 1rem;
  }
  .mae-tech-grid {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .mae-tech-card {
    min-height: 315px;
  }
  .mae-tech-card:nth-child(1) {
    border-top-left-radius: 21px;
    border-top-right-radius: 21px;
  }
  .mae-tech-card:nth-child(2),
  .mae-tech-card:nth-child(3),
  .mae-tech-card:nth-last-child(2),
  .mae-tech-card:nth-last-child(3) {
    border-radius: 0;
  }
  .mae-tech-card:last-child {
    border-bottom-right-radius: 21px;
    border-bottom-left-radius: 21px;
  }
  /* Auf Mobile: aktiver Zustand dauerhaft anzeigen */
  .mae-tech-card .mae-tech-icon {
    top: 27px;
    left: 25px;
    width: 49px;
    height: 49px;
    color: var(--tech-color);
    background: rgba(var(--tech-rgb), 0.18);
    border-color: rgba(var(--tech-rgb), 0.42);
  }
  .mae-tech-card .mae-tech-icon svg {
    width: 27px;
    height: 27px;
  }
  .mae-tech-card .mae-tech-card-title {
    top: 37px;
    right: 80px;
    bottom: auto;
    left: 88px;
    font-size: 1.2rem;
  }
  .mae-tech-card .mae-tech-card-description {
    top: 108px;
    right: 25px;
    left: 25px;
    opacity: 1;
    visibility: visible;
    transform: none;
    color: rgba(255, 255, 255, 0.78);
  }
  .mae-tech-card-arrow {
    top: 37px;
    right: 22px;
  }
  .mae-tech-section-glow {
    width: 150vw;
    height: 800px;
  }
}

@media (max-width: 430px) {
  .mae-tech-card {
    min-height: 350px;
  }
  .mae-tech-card .mae-tech-card-title {
    top: 92px;
    right: 25px;
    left: 25px;
  }
  .mae-tech-card .mae-tech-card-description {
    top: 150px;
  }
  .mae-tech-card-arrow {
    top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mae-tech-section-glow,
  .mae-tech-card,
  .mae-tech-card::before,
  .mae-tech-card-glow,
  .mae-tech-icon,
  .mae-tech-icon svg,
  .mae-tech-card-title,
  .mae-tech-card-arrow,
  .mae-tech-card-description {
    transition: none;
  }
}

/* =========================================================
   DOMAIN / BRANCHEN
   ========================================================= */

.mae-domain {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 125px 0 145px;
  color: #ffffff;
  background: #000000;
}

.mae-domain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 65%,
      rgba(255, 255, 255, 0.025),
      transparent 55%
    ),
    #000000;
}

.mae-domain-container {
  position: relative;
  z-index: 2;
  width: min(100% - 60px, 1560px);
  margin: 0 auto;
}

.mae-domain-header {
  width: min(100%, 970px);
  margin: 0 auto 95px;
  text-align: center;
}

.mae-domain-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mae-domain-title {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.8rem, 5vw, 5.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.mae-domain-subtitle {
  max-width: 880px;
  margin: 25px auto 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.mae-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}

.mae-domain-card {
  min-width: 0;
}

.mae-domain-card-link {
  position: relative;
  isolation: isolate;
  min-height: 610px;
  padding: 58px 50px 47px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  color: #ffffff;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.013)
    ),
    #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 29px;
  cursor: help;
  text-decoration: none;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    border-color 0.4s ease,
    box-shadow 0.45s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.4s ease;
}

.mae-domain-gradient {
  position: absolute;
  inset: -20%;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(
    circle at 68% 48%,
    rgba(var(--domain-rgb), 0.72) 0%,
    rgba(var(--domain-rgb), 0.31) 26%,
    rgba(var(--domain-rgb), 0.1) 48%,
    transparent 72%
  );
  opacity: 0;
  filter: blur(37px);
  transform: scale(0.72) translateX(10%);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mae-domain-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(var(--domain-rgb), 0.17),
    rgba(var(--domain-rgb), 0.055) 47%,
    transparent 78%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}

.mae-domain-shine {
  position: absolute;
  top: -35%;
  left: -80%;
  z-index: 7;
  width: 42%;
  height: 175%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  opacity: 0;
  transform: rotate(18deg);
  transition:
    left 0.85s ease,
    opacity 0.3s ease;
}

.mae-domain-card-link:hover,
.mae-domain-card-link:focus-visible,
.mae-domain-card.is-domain-active .mae-domain-card-link {
  background-color: rgba(var(--domain-rgb), 0.055);
  border-color: rgba(var(--domain-rgb), 0.62);
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.52),
    0 0 65px rgba(var(--domain-rgb), 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-7px);
}

.mae-domain-card-link:hover::before,
.mae-domain-card-link:focus-visible::before,
.mae-domain-card.is-domain-active .mae-domain-card-link::before {
  opacity: 1;
}

.mae-domain-card-link:hover .mae-domain-gradient,
.mae-domain-card-link:focus-visible .mae-domain-gradient,
.mae-domain-card.is-domain-active .mae-domain-gradient {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.mae-domain-card-link:hover .mae-domain-shine,
.mae-domain-card-link:focus-visible .mae-domain-shine,
.mae-domain-card.is-domain-active .mae-domain-shine {
  left: 130%;
  opacity: 1;
}

.mae-domain-number {
  position: relative;
  z-index: 5;
  color: rgba(255, 255, 255, 0.57);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition:
    color 0.3s ease,
    transform 0.35s ease;
}

.mae-domain-card-link:hover .mae-domain-number,
.mae-domain-card-link:focus-visible .mae-domain-number,
.mae-domain-card.is-domain-active .mae-domain-number {
  color: var(--domain-color);
  transform: translateX(5px);
}

.mae-domain-heading-row {
  position: relative;
  z-index: 5;
  min-height: 66px;
  margin-top: 39px;
  display: flex;
  align-items: center;
}

.mae-domain-icon {
  width: 0;
  height: 54px;
  margin-right: 0;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--domain-color);
  background: rgba(var(--domain-rgb), 0.15);
  border: 1px solid rgba(var(--domain-rgb), 0.35);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 28px rgba(var(--domain-rgb), 0.15);
  transform: scale(0.5) translateX(-15px);
  transition:
    width 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    margin-right 0.38s ease,
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mae-domain-icon svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mae-domain-card-title {
  margin: 0;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 2vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
  transition:
    color 0.3s ease,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    text-shadow 0.3s ease;
}

.mae-domain-card-link:hover .mae-domain-icon,
.mae-domain-card-link:focus-visible .mae-domain-icon,
.mae-domain-card.is-domain-active .mae-domain-icon {
  width: 54px;
  margin-right: 5px;
  opacity: 1;
  transform: scale(1) translateX(0);
}

.mae-domain-card-link:hover .mae-domain-card-title,
.mae-domain-card-link:focus-visible .mae-domain-card-title,
.mae-domain-card.is-domain-active .mae-domain-card-title {
  text-shadow: 0 0 24px rgba(var(--domain-rgb), 0.23);
  transform: translateX(2px);
}

.mae-domain-description {
  position: relative;
  z-index: 5;
  max-width: 350px;
  margin: 37px 0 0;
  color: rgba(255, 255, 255, 0.61);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.12vw, 1.14rem);
  font-weight: 400;
  line-height: 1.6;
  transition:
    color 0.3s ease,
    transform 0.4s ease;
}

.mae-domain-card-link:hover .mae-domain-description,
.mae-domain-card-link:focus-visible .mae-domain-description,
.mae-domain-card.is-domain-active .mae-domain-description {
  color: rgba(255, 255, 255, 0.88);
  transform: translateY(-3px);
}

.mae-domain-image-wrap {
  position: absolute;
  right: 0%;
  bottom: 0%;
  z-index: 3;
  width: 62%;
  height: 52%;
  pointer-events: none;
  opacity: 0;
  transform: translate(34px, 38px) scale(0.82);
  transition:
    opacity 0.55s ease,
    transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mae-domain-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: right bottom;
  filter: grayscale(1) brightness(0.7)
    drop-shadow(0 25px 35px rgba(0, 0, 0, 0.46));
  transition:
    filter 0.55s ease,
    transform 0.7s ease;
}

.mae-domain-card-link:hover .mae-domain-image-wrap,
.mae-domain-card-link:focus-visible .mae-domain-image-wrap,
.mae-domain-card.is-domain-active .mae-domain-image-wrap {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.mae-domain-card-link:hover .mae-domain-image,
.mae-domain-card-link:focus-visible .mae-domain-image,
.mae-domain-card.is-domain-active .mae-domain-image {
  filter: grayscale(0) saturate(1.06) brightness(0.92)
    drop-shadow(0 28px 40px rgba(0, 0, 0, 0.5));
  transform: scale(1.03);
}

.mae-domain-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 8, 0.96) 0%,
    rgba(8, 8, 8, 0.82) 48%,
    rgba(8, 8, 8, 0.18) 82%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}

.mae-domain-card-link:hover::after,
.mae-domain-card-link:focus-visible::after,
.mae-domain-card.is-domain-active .mae-domain-card-link::after {
  opacity: 0.58;
}

/* Branchen-Liste */
.mae-domain-list {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  overflow: hidden;
}

.mae-domain-list-item {
  min-height: 145px;
  padding: 28px 25px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.014);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  cursor: help;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.mae-domain-list-item span {
  color: rgba(255, 255, 255, 0.38);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
}

.mae-domain-list-item strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  font-weight: 600;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.mae-domain-list-item:hover {
  color: #ff9200;
  background: rgba(255, 146, 0, 0.07);
}

/* Focus */
.mae-domain-card-link:focus-visible {
  outline: 3px solid var(--domain-color);
  outline-offset: 5px;
}

.mae-domain-list-item:focus-visible {
  outline: 3px solid #ff9200;
  outline-offset: -4px;
}

/* Tablet */
@media (max-width: 1100px) {
  .mae-domain {
    padding: 100px 0 115px;
  }
  .mae-domain-container {
    width: min(100% - 40px, 1560px);
  }
  .mae-domain-grid {
    gap: 24px;
  }
  .mae-domain-card-link {
    min-height: 570px;
    padding: 45px 35px 40px;
  }
  .mae-domain-image-wrap {
    width: 70%;
  }
  .mae-domain-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Handy */
@media (max-width: 760px) {
  .mae-domain {
    padding: 78px 0 90px;
  }
  .mae-domain-container {
    width: min(100% - 28px, 1560px);
  }
  .mae-domain-header {
    margin-bottom: 48px;
    text-align: left;
  }
  .mae-domain-title {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }
  .mae-domain-subtitle {
    margin-top: 18px;
    font-size: 1rem;
  }
  .mae-domain-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mae-domain-card-link {
    min-height: 510px;
    padding: 35px 27px 32px;
    border-radius: 23px;
  }
  .mae-domain-heading-row {
    margin-top: 27px;
  }
  .mae-domain-card-title {
    font-size: 2.25rem;
  }
  .mae-domain-description {
    max-width: 76%;
    margin-top: 27px;
    font-size: 0.98rem;
  }
  .mae-domain-image-wrap {
    right: -8%;
    bottom: -5%;
    width: 62%;
    height: 45%;
  }
  .mae-domain-card-link:hover {
    transform: none;
  }
  .mae-domain-list {
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
  }
  .mae-domain-list-item {
    min-height: 120px;
  }
}

@media (max-width: 470px) {
  .mae-domain-description {
    max-width: 100%;
  }
  .mae-domain-image-wrap {
    width: 68%;
    opacity: 0.76;
  }
  .mae-domain-card-link::after {
    opacity: 0.72;
  }
  .mae-domain-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mae-domain-card-link,
  .mae-domain-card-link::before,
  .mae-domain-card-link::after,
  .mae-domain-gradient,
  .mae-domain-shine,
  .mae-domain-number,
  .mae-domain-icon,
  .mae-domain-card-title,
  .mae-domain-description,
  .mae-domain-image-wrap,
  .mae-domain-image,
  .mae-domain-list-item strong {
    transition: none;
  }
  .mae-domain-card-link:hover {
    transform: none;
  }
}

/* =========================================================
   KONTAKT
   ========================================================= */

.mae-contact {
  --contact-orange: #ff9200;
  --contact-orange-rgb: 255, 146, 0;
  --contact-cyan: #20d7c7;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 135px 0 150px;
  color: #ffffff;
  background: #000000;
}

.mae-contact-background {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.mae-contact-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(85px);
}

.mae-contact-orb-primary {
  top: 45%;
  left: 65%;
  width: 750px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(var(--contact-orange-rgb), 0.32),
    rgba(var(--contact-orange-rgb), 0.12) 42%,
    transparent 72%
  );
  transform: translate(-50%, -50%);
}

.mae-contact-orb-secondary {
  right: -180px;
  bottom: -220px;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle,
    rgba(32, 215, 199, 0.17),
    transparent 70%
  );
}

.mae-contact-grid {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000000 25%,
    #000000 80%,
    transparent
  );
}

.mae-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(0, 0, 0, 0.46) 48%,
      rgba(0, 0, 0, 0.72) 100%
    ),
    linear-gradient(
      180deg,
      #000000 0%,
      transparent 22%,
      transparent 80%,
      #000000 100%
    );
}

.mae-contact-container {
  position: relative;
  z-index: 2;
  width: min(100% - 64px, 1560px);
  margin: 0 auto;
}

.mae-contact-header {
  max-width: 1130px;
  margin-bottom: 85px;
}

.mae-contact-eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--contact-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mae-contact-title {
  max-width: 1100px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3.4rem, 7vw, 7.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.mae-contact-title span {
  display: block;
  color: transparent;
  /* FIX: -webkit-background-clip muss vor background-clip stehen */
  -webkit-background-clip: text;
  background-clip: text;
  background: linear-gradient(90deg, #ffffff 0%, #ffb35c 45%, #ff7a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.mae-contact-intro {
  max-width: 780px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.65;
}

.mae-contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(55px, 7vw, 120px);
  align-items: start;
}

.mae-contact-information {
  position: sticky;
  top: 145px;
}

.mae-contact-statement {
  padding-top: 27px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mae-contact-statement-number {
  color: var(--contact-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.mae-contact-statement p {
  margin: 27px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.mae-contact-benefits {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mae-contact-benefit {
  display: grid;
  grid-template-columns: 57px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.mae-contact-benefit-icon {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.mae-contact-benefit-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mae-contact-benefit strong,
.mae-contact-benefit span {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
}

.mae-contact-benefit strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.3;
}

.mae-contact-benefit div > span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.91rem;
  line-height: 1.45;
}

.mae-contact-direct {
  margin-top: 62px;
  padding-top: 29px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mae-contact-direct-label {
  display: block;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mae-contact-direct a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

.mae-contact-direct a span {
  color: var(--contact-orange);
}
.mae-contact-direct a:hover {
  gap: 18px;
  color: var(--contact-orange);
}

/* Formular */
.mae-contact-form {
  position: relative;
  isolation: isolate;
  padding: 48px;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.015)
    ),
    rgba(10, 10, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.mae-contact-form::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -220px;
  z-index: -1;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(var(--contact-orange-rgb), 0.21),
    transparent 70%
  );
  pointer-events: none;
}

.mae-contact-form-top {
  margin-bottom: 51px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.mae-contact-form-label {
  display: block;
  margin-bottom: 13px;
  color: var(--contact-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.mae-contact-form-top h3 {
  max-width: 580px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 3.1vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.mae-contact-form-number {
  color: rgba(255, 255, 255, 0.28);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.mae-contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 31px 27px;
}

.mae-contact-field {
  position: relative;
}
.mae-contact-field-full {
  grid-column: 1 / -1;
}

.mae-contact-field label {
  display: block;
  margin-bottom: 11px;
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.mae-contact-field:focus-within label {
  color: var(--contact-orange);
}

.mae-contact-field input,
.mae-contact-field select,
.mae-contact-field textarea {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  outline: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.mae-contact-field input,
.mae-contact-field select {
  height: 50px;
}

.mae-contact-field textarea {
  min-height: 150px;
  padding-top: 12px;
  resize: vertical;
  line-height: 1.55;
}

.mae-contact-field input::placeholder,
.mae-contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.mae-contact-field input:focus,
.mae-contact-field select:focus,
.mae-contact-field textarea:focus {
  border-bottom-color: var(--contact-orange);
  box-shadow: 0 1px 0 var(--contact-orange);
}

.mae-contact-field input[aria-invalid="true"],
.mae-contact-field select[aria-invalid="true"],
.mae-contact-field textarea[aria-invalid="true"] {
  border-bottom-color: #ff5f5f;
}

.mae-contact-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.mae-contact-select-wrap {
  position: relative;
}

.mae-contact-select-wrap > span {
  position: absolute;
  top: 50%;
  right: 2px;
  color: var(--contact-orange);
  pointer-events: none;
  transform: translateY(-50%);
}

.mae-contact-message-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.mae-contact-message-heading > span {
  color: rgba(255, 255, 255, 0.34);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
}

.mae-field-error,
.mae-contact-privacy-error {
  min-height: 18px;
  margin-top: 7px;
  display: block;
  color: #ff7474;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
}

/* Honeypot vollständig versteckt */
.mae-contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Checkbox */
.mae-contact-consent {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  color: rgba(255, 255, 255, 0.51);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.83rem;
  line-height: 1.55;
  cursor: pointer;
}

.mae-contact-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mae-contact-checkbox {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050505;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.mae-contact-checkbox svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.mae-contact-consent input:checked + .mae-contact-checkbox {
  background: var(--contact-orange);
  border-color: var(--contact-orange);
  box-shadow: 0 0 20px rgba(var(--contact-orange-rgb), 0.23);
}

.mae-contact-consent input:checked + .mae-contact-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.mae-contact-consent input:focus-visible + .mae-contact-checkbox {
  outline: 3px solid rgba(var(--contact-orange-rgb), 0.42);
  outline-offset: 3px;
}

.mae-contact-consent a {
  color: #ffffff;
}

/* Submit */
.mae-contact-submit-row {
  margin-top: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.mae-contact-submit {
  min-height: 64px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #070707;
  background: var(--contact-orange);
  border: 1px solid var(--contact-orange);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(var(--contact-orange-rgb), 0.16);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.mae-contact-submit svg {
  width: 35px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.mae-contact-submit:hover:not(:disabled) {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow:
    0 23px 65px rgba(0, 0, 0, 0.3),
    0 0 0 8px rgba(255, 255, 255, 0.05);
}

.mae-contact-submit:hover svg {
  transform: translateX(5px);
}
.mae-contact-submit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.mae-submit-loading {
  display: none;
}

.mae-contact-submit.is-loading .mae-submit-default,
.mae-contact-submit.is-loading > svg {
  display: none;
}

.mae-contact-submit.is-loading .mae-submit-loading {
  display: inline-flex;
}

.mae-submit-dots {
  min-width: 17px;
  animation: maeContactDots 1.2s steps(4, end) infinite;
}

@keyframes maeContactDots {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.mae-contact-submit-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.34);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
}

.mae-contact-status {
  margin-top: 27px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

.mae-contact-status.is-success {
  color: #8fffc6;
  background: rgba(30, 211, 132, 0.08);
  border-color: rgba(30, 211, 132, 0.35);
}

.mae-contact-status.is-error {
  color: #ff9191;
  background: rgba(255, 80, 80, 0.08);
  border-color: rgba(255, 80, 80, 0.35);
}

/* Responsive */
@media (max-width: 1050px) {
  .mae-contact {
    padding: 105px 0 120px;
  }
  .mae-contact-container {
    width: min(100% - 40px, 1560px);
  }
  .mae-contact-layout {
    grid-template-columns: 1fr;
    gap: 65px;
  }
  .mae-contact-information {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  .mae-contact-benefits,
  .mae-contact-direct {
    margin-top: 0;
  }
  .mae-contact-direct {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .mae-contact {
    padding: 80px 0 90px;
  }
  .mae-contact-container {
    width: min(100% - 28px, 1560px);
  }
  .mae-contact-header {
    margin-bottom: 55px;
  }
  .mae-contact-title {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }
  .mae-contact-intro {
    margin-top: 24px;
    font-size: 1rem;
  }
  .mae-contact-information {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mae-contact-form {
    padding: 30px 22px;
    border-radius: 23px;
  }
  .mae-contact-form-top {
    margin-bottom: 40px;
  }
  .mae-contact-form-top h3 {
    font-size: 2rem;
  }
  .mae-contact-form-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .mae-contact-field-full {
    grid-column: auto;
  }
  .mae-contact-submit-row {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .mae-contact-submit {
    width: 100%;
  }
  .mae-contact-submit-note {
    text-align: center;
  }
  .mae-contact-orb-primary {
    width: 130vw;
    height: 700px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mae-contact-submit,
  .mae-contact-submit svg,
  .mae-contact-checkbox,
  .mae-contact-checkbox svg {
    transition: none;
  }
  .mae-submit-dots {
    animation: none;
  }
}

/* =========================================================
   MINIMALER FOOTER
   ========================================================= */

.mae-footer {
  --footer-orange: #ff9200;
  --footer-orange-rgb: 255, 146, 0;
  --footer-cyan: #20d7c7;

  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: 75px 0 30px;

  color: #ffffff;
  background: linear-gradient(180deg, #000000 0%, #050505 45%, #080808 100%);

  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hintergrund-Leuchten */
.mae-footer-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  z-index: -2;

  width: min(1100px, 100vw);
  height: 620px;

  pointer-events: none;

  background: radial-gradient(
    ellipse at center,
    rgba(var(--footer-orange-rgb), 0.15),
    rgba(32, 215, 199, 0.055) 42%,
    transparent 72%
  );

  filter: blur(70px);
  transform: translateX(-50%);
}

/* Dezentes Hintergrundraster */
.mae-footer::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -3;

  pointer-events: none;
  opacity: 0.18;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);

  background-size: 70px 70px;

  -webkit-mask-image: linear-gradient(to bottom, #000000, transparent 90%);

  mask-image: linear-gradient(to bottom, #000000, transparent 90%);
}

/* Hauptcontainer */
.mae-footer-container {
  position: relative;
  z-index: 2;

  width: min(100% - 64px, 1560px);
  margin: 0 auto;
}

/* =========================================================
   OBERER BEREICH
   ========================================================= */

.mae-footer-main {
  display: grid;
  grid-template-columns:
    minmax(260px, 0.8fr)
    minmax(300px, 1.3fr)
    minmax(220px, auto);

  align-items: center;

  gap: clamp(35px, 6vw, 100px);
}

/* Logo und Firmenname */
.mae-footer-brand {
  display: inline-flex;
  align-items: center;

  width: fit-content;
  gap: 14px;

  color: #ffffff;
  text-decoration: none;
}

.mae-footer-logo {
  display: block;

  width: 52px;
  height: 52px;

  object-fit: contain;
}

.mae-footer-brand-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

/* Kurzbeschreibung */
.mae-footer-intro {
  max-width: 620px;
  margin: 0;

  color: rgba(255, 255, 255, 0.58);

  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}

/* Kontakt */
.mae-footer-contact {
  display: flex;
  align-items: flex-start;
  flex-direction: column;

  gap: 12px;
}

.mae-footer-contact a {
  position: relative;

  color: rgba(255, 255, 255, 0.76);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;

  text-decoration: none;
  overflow-wrap: anywhere;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.mae-footer-contact a::before {
  content: "";

  position: absolute;
  top: 50%;
  left: -16px;

  width: 7px;
  height: 1px;

  background: var(--footer-orange);

  opacity: 0;
  transform: translate(-5px, -50%);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.mae-footer-contact a:hover {
  color: var(--footer-orange);
  transform: translateX(16px);
}

.mae-footer-contact a:hover::before {
  opacity: 1;
  transform: translate(0, -50%);
}

/* =========================================================
   ANIMIERTE TRENNLINIE
   ========================================================= */

.mae-footer-divider {
  position: relative;

  width: 100%;
  height: 1px;

  margin: 55px 0 30px;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.13);
}

.mae-footer-divider span {
  position: absolute;
  top: 0;
  left: -35%;

  width: 35%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    var(--footer-orange),
    var(--footer-cyan),
    transparent
  );

  filter: drop-shadow(0 0 8px rgba(var(--footer-orange-rgb), 0.7));

  animation: maeFooterDividerMove 6s linear infinite;
}

@keyframes maeFooterDividerMove {
  from {
    left: -35%;
  }

  to {
    left: 100%;
  }
}

/* =========================================================
   UNTERER BEREICH
   ========================================================= */

.mae-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;

  gap: 25px;
}

/* Copyright */
.mae-footer-copyright {
  margin: 0;

  color: rgba(255, 255, 255, 0.42);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Rechtliche Links */
.mae-footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 20px;
}

.mae-footer-legal a,
.mae-footer-cookie-button {
  padding: 0;

  color: rgba(255, 255, 255, 0.52);
  background: transparent;
  border: 0;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.3;

  text-decoration: none;
  cursor: pointer;

  transition: color 0.25s ease;
}

.mae-footer-legal a:hover,
.mae-footer-cookie-button:hover {
  color: #ffffff;
}

/* SharkzSystem-Hinweis */
.mae-footer-development {
  margin: 0;

  color: rgba(255, 255, 255, 0.43);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.6;

  text-align: right;
  white-space: nowrap;
}

.mae-footer-development a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-decoration: none;

  transition: color 0.25s ease;
}

.mae-footer-development a:hover {
  color: var(--footer-orange);
}

/* Verantwortungshinweis */
.mae-footer-responsibility {
  max-width: 1050px;

  margin: 28px 0 0;
  padding-top: 22px;

  color: rgba(255, 255, 255, 0.3);

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  line-height: 1.65;
}

/* =========================================================
   FOKUS / BARRIEREFREIHEIT
   ========================================================= */

.mae-footer a:focus-visible,
.mae-footer button:focus-visible {
  outline: 3px solid var(--footer-orange);
  outline-offset: 4px;
  border-radius: 3px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {
  .mae-footer {
    padding-top: 65px;
  }

  .mae-footer-container {
    width: min(100% - 40px, 1560px);
  }

  .mae-footer-main {
    grid-template-columns: 1fr 1.2fr;
  }

  .mae-footer-contact {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;

    gap: 15px 30px;
  }

  .mae-footer-bottom {
    grid-template-columns: 1fr auto;
  }

  .mae-footer-development {
    text-align: right;
  }

  .mae-footer-legal {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* =========================================================
   HANDY
   ========================================================= */

@media (max-width: 680px) {
  .mae-footer {
    padding: 55px 0 25px;
  }

  .mae-footer-container {
    width: min(100% - 28px, 1560px);
  }

  .mae-footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mae-footer-logo {
    width: 48px;
    height: 48px;
  }

  .mae-footer-brand-name {
    font-size: 1.35rem;
  }

  .mae-footer-contact {
    grid-column: auto;
    flex-direction: column;

    gap: 11px;
  }

  .mae-footer-divider {
    margin: 42px 0 27px;
  }

  .mae-footer-bottom {
    grid-template-columns: 1fr;
    justify-items: start;

    gap: 19px;
  }

  .mae-footer-legal {
    grid-column: auto;
    grid-row: auto;

    gap: 14px 20px;
  }

  .mae-footer-development {
    text-align: left;
    white-space: normal;
  }

  .mae-footer-responsibility {
    margin-top: 22px;
    padding-top: 18px;

    font-size: 0.68rem;
  }
}

/* =========================================================
   REDUZIERTE BEWEGUNG
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .mae-footer-divider span {
    left: 0;
    width: 100%;

    animation: none;
  }

  .mae-footer-contact a,
  .mae-footer-contact a::before,
  .mae-footer-legal a,
  .mae-footer-cookie-button,
  .mae-footer-development a {
    transition: none;
  }
}
/* =========================================================
   INFO-KARTEN: TEXTWECHSEL-ANIMATION
   Normaler Text → Kurzinfo beim Hover/Fokus
   ========================================================= */

.mae-info-card {
  cursor: help;
  -webkit-tap-highlight-color: transparent;
}

.mae-info-card:focus-visible {
  outline: 3px solid rgba(255, 146, 0, 0.9);
  outline-offset: 5px;
}

/* Info-Badge (ersetzt Pfeil-SVGs) */
.mae-work-card-link,
.mae-info-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  cursor: help;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* SVGs in Info-Badges ausblenden */
.mae-work-card-link svg,
.mae-domain-more svg,
.mae-service-arrow,
.case-study-link svg {
  display: none;
}

/* Hover-Zustand der Badges */
.mae-work-card:hover .mae-work-card-link,
.mae-work-card:focus-visible .mae-work-card-link {
  color: #080808;
  background: var(--card-color);
  border-color: var(--card-color);
  box-shadow: 0 0 26px rgba(var(--card-rgb), 0.22);
  transform: translateY(-2px);
}

/* =========================================================
   SWAP-TEXT: Zwei Texte übereinander im Grid
   ========================================================= */

.mae-swap-text {
  position: relative;
  display: grid;
  min-height: 5em;
  overflow: hidden;
}

.mae-swap-front,
.mae-swap-info {
  grid-area: 1 / 1;
  display: block;
  will-change: transform, opacity;
  transition:
    opacity 0.38s ease,
    visibility 0.38s ease,
    transform 0.44s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.38s ease;
}

.mae-swap-front {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.mae-swap-info {
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  visibility: hidden;
  /* FIX: margin-top entfernt — beide Texte liegen auf grid-area 1/1, margin erzeugt falschen Versatz */
  transform: translateY(22px) scale(0.98);
  filter: blur(8px);
}

.mae-info-card:hover .mae-swap-front,
.mae-info-card:focus-visible .mae-swap-front,
.mae-info-card.is-tech-active .mae-swap-front,
.mae-info-card.is-domain-active .mae-swap-front {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-22px) scale(0.98);
  filter: blur(8px);
}

.mae-info-card:hover .mae-swap-info,
.mae-info-card:focus-visible .mae-swap-info,
.mae-info-card.is-tech-active .mae-swap-info,
.mae-info-card.is-domain-active .mae-swap-info {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Min-Höhen je Kontext */
.mae-service-description.mae-swap-text {
  min-height: 5.2em;
}
.mae-work-card-bottom p.mae-swap-text {
  min-height: 5.5em;
}
.mae-tech-card-description.mae-swap-text {
  min-height: 7em;
}
.mae-domain-description.mae-swap-text {
  min-height: 8em;
}
.mae-domain-list-item strong.mae-swap-text {
  min-height: 3.8em;
}
.mae-case-study-description.mae-swap-text {
  min-height: 5.4em;
}

/* Cursor für echte Aktionen */
.hero-primary-button,
.header-contact-button,
.mobile-contact-button,
.mae-contact-submit,
.mae-footer-project-link,
.mae-footer-cookie-button,
.case-study-gallery-button,
.case-study-gallery-dot,
.mobile-menu-button,
.mae-work-tab,
.mae-footer-scroll-top,
.mae-contact-direct a,
.mae-footer-contact-link,
.mae-footer-navigation a,
.mae-footer-legal a {
  cursor: pointer;
}

/* =========================================================
   MOBILE: kein Hover — beide Texte sichtbar
   ========================================================= */

@media (max-width: 760px) {
  .mae-swap-text {
    min-height: auto !important;
    overflow: visible;
    gap: 10px;
  }
  .mae-swap-front,
  .mae-swap-info {
    grid-area: auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
  }
  .mae-swap-info {
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .mae-work-card-link,
  .mae-info-pill {
    font-size: 0.7rem;
  }
  /* Tech-Karten auf Mobile dauerhaft offen */
  .mae-tech-card .mae-tech-card-description {
    opacity: 1;
    visibility: visible;
    transform: none;
    color: rgba(255, 255, 255, 0.78);
  }
}

@media (max-width: 430px) {
  .mae-tech-card {
    min-height: 350px;
  }
  .mae-tech-card .mae-tech-card-title {
    top: 92px;
    right: 25px;
    left: 25px;
  }
  .mae-tech-card .mae-tech-card-description {
    top: 150px;
  }
  .mae-tech-card-arrow {
    top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mae-swap-front,
  .mae-swap-info,
  .mae-work-card-link,
  .mae-info-pill {
    transition: none;
  }
}

/* =========================================================
   FOOTER LEGAL LINKS
   ========================================================= */

.mae-footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.mae-footer-legal-link,
.mae-footer-cookie-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.mae-footer-legal-link::after,
.mae-footer-cookie-button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: #4affae;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s ease;
}

.mae-footer-legal-link:hover,
.mae-footer-legal-link:focus-visible,
.mae-footer-cookie-button:hover,
.mae-footer-cookie-button:focus-visible {
  color: #4affae;
  transform: translateY(-2px);
}

.mae-footer-legal-link:hover::after,
.mae-footer-legal-link:focus-visible::after,
.mae-footer-cookie-button:hover::after,
.mae-footer-cookie-button:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.mae-footer-responsibility {
  max-width: 980px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  line-height: 1.7;
}

/* =========================================================
   LEGAL MODAL
   ========================================================= */

.legal-modal[hidden] {
  display: none;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(74, 255, 174, 0.12),
    rgba(0, 0, 0, 0.82) 45%,
    rgba(0, 0, 0, 0.95) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: legalFadeIn 0.25s ease forwards;
}

.legal-modal-box {
  position: relative;
  isolation: isolate;
  width: min(100%, 920px);
  max-height: min(84vh, 860px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.018)
    ),
    #050705;
  box-shadow:
    0 35px 110px rgba(0, 0, 0, 0.72),
    0 0 70px rgba(74, 255, 174, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: legalModalIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.legal-modal-box:focus {
  outline: none;
}

.legal-modal-glow {
  position: absolute;
  top: -160px;
  right: -120px;
  z-index: -1;
  width: 420px;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(74, 255, 174, 0.22),
    rgba(0, 170, 255, 0.08) 38%,
    transparent 70%
  );
  filter: blur(45px);
}

.legal-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.legal-modal-close:hover,
.legal-modal-close:focus-visible {
  color: #041009;
  background: #4affae;
  border-color: #4affae;
  box-shadow: 0 0 0 7px rgba(74, 255, 174, 0.08);
  transform: rotate(90deg) scale(1.04);
}

.legal-modal-content {
  max-height: min(84vh, 860px);
  overflow-y: auto;
  padding: clamp(34px, 5vw, 64px);
  padding-right: clamp(28px, 5vw, 72px);
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 255, 174, 0.65) rgba(255, 255, 255, 0.08);
}

.legal-modal-content::-webkit-scrollbar {
  width: 8px;
}

.legal-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.legal-modal-content::-webkit-scrollbar-thumb {
  background: rgba(74, 255, 174, 0.65);
  border-radius: 999px;
}

.legal-modal-eyebrow {
  margin: 0 0 18px;
  color: #4affae;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-modal-content h2 {
  margin: 0 0 26px;
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-modal-content h3 {
  margin: 34px 0 12px;
  color: #ffffff;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.legal-modal-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-modal-content strong {
  color: #ffffff;
  font-weight: 800;
}

.legal-modal-content a {
  color: #4affae;
  font-weight: 700;
  text-decoration: none;
}

.legal-modal-content a:hover,
.legal-modal-content a:focus-visible {
  text-decoration: underline;
}

body.legal-modal-is-open {
  overflow: hidden;
}

@keyframes legalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes legalModalIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {
  .legal-modal {
    padding: 14px;
    align-items: flex-end;
  }

  .legal-modal-box {
    width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
  }

  .legal-modal-content {
    max-height: 88vh;
    padding: 34px 22px 42px;
  }

  .legal-modal-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }

  .mae-footer-legal {
    gap: 14px;
  }

  .mae-footer-responsibility {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-modal-backdrop,
  .legal-modal-box {
    animation: none;
  }

  .legal-modal-close,
  .mae-footer-legal-link,
  .mae-footer-cookie-button,
  .mae-footer-legal-link::after,
  .mae-footer-cookie-button::after {
    transition: none;
  }
}
