/*
Layer: 04-components
Zweck: Technologie-Detailseiten (/technologien/<slug>/) – Header + Angebots-Kacheln.
*/

/* Erster Block in site-main (header.php): unter fixen Header gezogen – Abstand = Headerhöhe + Luft */
.site-main > .adiumento-tech-hero:first-child,
body.single-adiumento_technology .site-main > .adiumento-tech-hero:first-child {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  margin-inline: 0;
  min-height: 280px;
  overflow-x: clip;
  padding-top: calc(var(--decor-height, 160px) + 6px + 2.5rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  padding-bottom: 3rem;
  padding-left: clamp(1rem, 4vw, 2rem);
  background: linear-gradient(135deg, rgba(16, 45, 68, 0.06), rgba(0, 102, 179, 0.05), rgba(240, 90, 40, 0.04));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

body.logged-in.admin-bar .site-main > .adiumento-tech-hero:first-child {
  padding-top: calc(var(--decor-height, 160px) + 6px + 32px + 2.5rem);
}

@media (max-width: 768px) {
  .site-main > .adiumento-tech-hero:first-child {
    padding-top: calc(var(--decor-height-mobile, 110px) + 6px + 2rem);
  }

  body.logged-in.admin-bar .site-main > .adiumento-tech-hero:first-child {
    padding-top: calc(var(--decor-height-mobile, 110px) + 6px + 32px + 2rem);
  }
}

.adiumento-tech-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 174, 239, 0.18), transparent 55%),
    radial-gradient(circle at 85% 35%, rgba(0, 102, 179, 0.14), transparent 60%),
    radial-gradient(circle at 65% 95%, rgba(240, 90, 40, 0.10), transparent 55%);
  pointer-events: none;
}

.adiumento-tech-hero .container {
  position: relative;
  z-index: 1;
  width: min(var(--page-width, 85%), var(--max-width, 1200px));
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.adiumento-tech {
  margin: 1.5rem 0 4rem;
}

.adiumento-tech__head {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 2.5rem;
}

.adiumento-tech__logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}

.adiumento-tech__logo {
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.adiumento-tech__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}

.adiumento-tech__desc {
  margin: 0 auto;
  font-size: var(--adi-font-lead);
  line-height: 1.6;
  color: rgba(14, 42, 60, 0.78);
}

.adiumento-tech__long {
  max-width: 52rem;
  margin: 0 auto 2.25rem;
}

.adiumento-tech__long :is(h2, h3) {
  text-align: center;
}

.adiumento-tech__long p {
  text-align: center;
}

.adiumento-tech__related {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.25rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
  border: 1px solid var(--color-neutral-border, #e8eef3);
  border-radius: 1.25rem;
}

.adiumento-tech__related-title {
  margin: 0 0 1.25rem;
  text-align: center;
}

.adiumento-tech__related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adiumento-tech__card {
  display: block;
  padding: 1.1rem 1.1rem 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 102, 179, 0.14);
  border-radius: 0.85rem;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(16, 45, 68, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.adiumento-tech__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--color-primary, #0066b3), var(--color-secondary, #f05a28));
}

.adiumento-tech__card-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary, #0066b3);
}

.adiumento-tech__card-meta {
  margin: 0;
  font-size: var(--adi-font-caption);
  color: rgba(14, 42, 60, 0.7);
}

@media (hover: hover) {
  .adiumento-tech__card:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 90, 40, 0.35);
    box-shadow: 0 18px 36px rgba(16, 45, 68, 0.12);
  }
}

.adiumento-tech__card:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.5);
  outline-offset: 3px;
}

@media (max-width: 992px) {
  .adiumento-tech__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .adiumento-tech__related-grid {
    grid-template-columns: 1fr;
  }
}

