/* Web, IT & Design: scoped presentation using the shared SP design system. */
.wid-page .wid-hero > .container {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}
.wid-page .wid-hero__copy { position: relative; z-index: 1; }
.wid-page .wid-hero .eyebrow { color: #a9e2e8; margin-bottom: 20px; }
.wid-page .wid-hero .hero-lead p { margin: 0; }
.wid-page .wid-hero .button-row { margin-top: 28px; }
.wid-page .wid-hero .button-row p { margin: 0; }
.wid-page .wid-hero__art {
  position: relative;
  min-height: 240px;
  border: 1px solid rgba(169, 226, 232, .27);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(112,191,203,.18), rgba(1,42,56,.18));
  box-shadow: 0 22px 60px rgba(1,25,36,.22);
}
.wid-page .wid-hero__art::before,
.wid-page .wid-hero__art::after,
.wid-page .wid-hero__art span {
  content: "";
  position: absolute;
  display: block;
  border: 1px solid rgba(177,232,237,.45);
  border-radius: 16px;
  transform: rotate(-12deg);
}
.wid-page .wid-hero__art::before { inset: 20% 16% 22% 18%; background: rgba(112,191,203,.1); }
.wid-page .wid-hero__art::after { inset: 31% 25% 33% 27%; background: rgba(112,191,203,.16); }
.wid-page .wid-hero__art span:nth-child(1) { inset: 8% 7% 13% 9%; border-color: rgba(177,232,237,.18); }
.wid-page .wid-hero__art span:nth-child(2) { width: 12px; height: 12px; top: 23%; right: 20%; border: 0; border-radius: 50%; background: #a9e2e8; box-shadow: 0 0 24px #70bfcb; }
.wid-page .wid-hero__art span:nth-child(3) { width: 7px; height: 7px; left: 20%; bottom: 24%; border: 0; border-radius: 50%; background: #70bfcb; }
.wid-page .wid-section-heading { display: block; margin-bottom: clamp(30px, 4vw, 48px); }
.wid-page .wid-section-heading h2 { margin-bottom: 0; }
.wid-page .wid-grid { gap: clamp(18px, 2vw, 28px); }
.wid-page .wid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: clamp(25px, 2.5vw, 34px);
  border: 1px solid #c8dee4;
  border-radius: 16px;
  background: linear-gradient(155deg, #fff 52%, #f2f8f9);
  box-shadow: 0 2px 3px rgba(18,59,78,.06), 0 16px 32px rgba(18,59,78,.12), inset 0 1px 0 rgba(255,255,255,.95);
  transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}
.wid-page .wid-card h3 { margin: 0 0 14px; color: #123b4e; }
.wid-page .wid-card p { margin: 0; color: #405967; line-height: 1.65; }
.wid-page .wid-card__arrow { align-self: flex-end; display: grid; place-items: center; width: 38px; height: 38px; margin-top: auto; border-radius: 50%; color: #fff; background: #227296; font-size: 1.1rem; }
.wid-page a.wid-card:hover,
.wid-page a.wid-card:focus-visible {
  transform: translateY(-6px);
  border-color: #70bfcb;
  box-shadow: 0 5px 8px rgba(18,59,78,.07), 0 24px 42px rgba(18,59,78,.19), inset 0 1px 0 rgba(255,255,255,.95);
}
.wid-page a.wid-card:focus-visible { outline: 3px solid #003cff; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .wid-page .wid-card { transition: none; }
  .wid-page a.wid-card:hover, .wid-page a.wid-card:focus-visible { transform: none; }
}
.wid-page .wid-followup { margin-top: clamp(60px, 8vw, 110px); padding: clamp(28px, 4vw, 54px); border-radius: 18px; background: #eef6f7; }
.wid-page .wid-followup h2 { margin-bottom: 18px; }
.wid-page .wid-followup h2:not(:first-child) { margin-top: clamp(38px, 5vw, 64px); }
.wid-page .wid-followup h3 { margin-top: 28px; margin-bottom: 8px; }
.wid-page .wid-followup > p { max-width: 72ch; line-height: 1.7; }
.wid-page .wid-related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.wid-page .wid-related__link { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid #b5d2d9; border-radius: 999px; background: #fff; color: #155570; font-weight: 700; text-decoration: none; }
.wid-page .wid-related__link:hover { border-color: #227296; background: #f6fbfc; }
.wid-page .wid-related__link:focus-visible { outline: 3px solid #003cff; outline-offset: 3px; }
@media (max-width: 900px) {
  .wid-page .wid-hero > .container { grid-template-columns: 1fr; }
  .wid-page .wid-hero__art { min-height: 160px; max-width: 560px; width: 100%; }
  .wid-page .wid-card { min-height: 220px; }
}
@media (max-width: 660px) {
  .wid-page .wid-hero__art { min-height: 130px; }
  .wid-page .wid-followup { margin-top: 54px; }
  .wid-page .wid-card { min-height: 0; }
  .wid-page .wid-card__arrow { margin-top: 22px; }
}

/* Abschluss: Kontakt links, die verknüpften Leistungen als eigene rechte Spalte. */
.wid-page main > .breadcrumb-after-hero{width:min(var(--content-wide),calc(100% - (2 * var(--page-gutter))));padding-top:18px!important}
.wid-page .wid-followup{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);column-gap:clamp(32px,6vw,90px);align-items:start}
.wid-page .wid-followup__main,.wid-page .wid-followup__aside{min-width:0}
.wid-page .wid-followup__main > p,.wid-page .wid-followup__aside > p{max-width:72ch;line-height:1.7}
.wid-page .wid-followup > .wid-related,.wid-page .wid-followup__aside{border-left:1px solid #bfdbe0;padding-left:clamp(24px,3vw,42px)}
.wid-page .wid-followup > .wid-related{margin-top:0}
.wid-page .wid-related{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.wid-page .wid-related__link{max-width:100%}
.wid-page .wid-followup__aside h2{margin-top:0}
@media(max-width:760px){
 .wid-page .wid-followup{grid-template-columns:minmax(0,1fr);row-gap:28px}
 .wid-page .wid-followup > .wid-related,.wid-page .wid-followup__aside{border-left:0;border-top:1px solid #bfdbe0;padding:24px 0 0}
}

/* Consistent, centred related-service links on narrow screens. */
@media (max-width: 900px) {
  .wid-page .wid-related__link { width: min(100%, 320px); justify-content: center; text-align: center; text-wrap: balance; }
}
/* Only photo-based heroes: the interactive 3D stage keeps its existing layout. */
@media (max-width: 767px) {
  .wid-page .wid-hero > .container:has(> .wid-hero__art:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wid-page .wid-hero__copy:has(+ .wid-hero__art:not([hidden])) { display: contents; }
  .wid-page .wid-hero__copy:has(+ .wid-hero__art:not([hidden])) > .eyebrow { order: 0; margin-bottom: 0; }
  .wid-page .wid-hero__copy:has(+ .wid-hero__art:not([hidden])) > h1 { order: 1; margin-bottom: 0; }
  .wid-page .wid-hero__art:not([hidden]) { order: 2; width: 100%; max-width: 100%; min-height: 0; }
  .wid-page .wid-hero__art:not([hidden]) img { display: block; width: 100%; height: clamp(170px, 50vw, 220px); object-fit: cover; object-position: 68% center; }
  .wid-page .wid-hero__copy:has(+ .wid-hero__art:not([hidden])) > .hero-lead { order: 3; }
  .wid-page .wid-hero__copy:has(+ .wid-hero__art:not([hidden])) > .button-row { order: 4; margin-top: 4px; }
}
