/* CONTRIX – Soft UI card system. Load after responsive.css. */
:root {
  --cx-card-radius: 22px;
  --cx-card-surface: linear-gradient(155deg, #fff 0%, #f5f8fc 100%);
  --cx-card-border: #e6edf5;
  --cx-card-shadow: 0 2px 6px rgba(27,59,101,.035), 0 14px 36px -9px rgba(48,85,135,.17), inset 0 1px 0 #fff;
  --cx-card-shadow-hover: 0 5px 12px rgba(27,59,101,.05), 0 20px 42px -10px rgba(48,85,135,.23), inset 0 1px 0 #fff;
}
.cx-home #start .hero-service-card,
.cx-home #leistungen .card,
.cx-home #leistungen .cx-service-feature,
.cx-home #projekte .cx-project,
.cx-contact .contact-option,
.cx-contact .contact-form-wrap,
.cx-assessment .contact-form-wrap,
.contrix-examples .examples-items li {
  border: 1px solid var(--cx-card-border);
  border-radius: var(--cx-card-radius);
  background: var(--cx-card-surface);
  box-shadow: var(--cx-card-shadow);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
/* Retain the three service colors, with a softer illuminated surface. */
.cx-home #leistungen .cx-service-feature {
  background: radial-gradient(ellipse at 75% 35%, var(--surface) 0%, transparent 68%), linear-gradient(150deg,#fff,var(--surface));
}
.cx-home #leistungen .cx-service-feature--2 {
  background: radial-gradient(ellipse at 25% 35%, var(--surface) 0%, transparent 68%), linear-gradient(150deg,#fff,var(--surface));
}
/* Give the technical illustrations depth without changing their animation. */
.cx-home #leistungen .cx-service-art svg {
  filter: none; /* Individual SVG elements now carry their own soft shadows. */
}
.cx-home #projekte .cx-project-flow {
  border-radius: 14px;
  border-color: #e8eef6;
  background: linear-gradient(150deg,#edf3fa,#f8fafd);
  box-shadow: inset 0 2px 7px rgba(39,70,111,.045);
}
.cx-home #projekte .cx-flow-icon {
  border-radius: 12px;
  border-color: #fff;
  background: linear-gradient(145deg,#fff,#f4f8fc);
  box-shadow: 0 5px 12px rgba(38,77,124,.13), inset 0 1px 0 #fff;
}
/* Keep the portrait image and dark CTA backgrounds. */
.cx-home #warum-contrix .visual,
.cx-home #kontakt .cx-contact-panel {
  border-radius: var(--cx-card-radius);
  box-shadow: var(--cx-card-shadow);
}
/* Keep the hero accent at the bottom. */
.cx-home #start .hero-service-card::before { top:auto; bottom:0; }
@media (hover:hover) and (pointer:fine) {
  .cx-home #start .hero-service-card:hover,
  .cx-home #leistungen .card:hover,
  .cx-home #projekte .cx-project:hover,
  .cx-contact .contact-option:hover,
  .contrix-examples .examples-items li:hover {
    transform: translateY(-3px);
    border-color: #d7e4f2;
    box-shadow: var(--cx-card-shadow-hover);
  }
}
@media (max-width:620px) {
  :root {
    --cx-card-radius: 18px;
    --cx-card-shadow: 0 2px 5px rgba(27,59,101,.035), 0 9px 23px -7px rgba(48,85,135,.14), inset 0 1px 0 #fff;
  }
}
@media (prefers-reduced-motion:reduce) {
  .cx-home #start .hero-service-card,
  .cx-home #leistungen .card,
  .cx-home #leistungen .cx-service-feature,
  .cx-home #projekte .cx-project,
  .cx-contact .contact-option,
  .contrix-examples .examples-items li { transition:none; }
  .cx-home #start .hero-service-card:hover,
  .cx-home #leistungen .card:hover,
  .cx-home #projekte .cx-project:hover,
  .cx-contact .contact-option:hover,
  .contrix-examples .examples-items li:hover { transform:none; }
}
