/* ==========================================================
   Services – ergänzt css/produkteStyles.css (Registerleiste, Panels, Fuß)
   ========================================================== */

.services-page .prod-hero h1 {
  max-width: 980px;
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
}

.services-page .subnav-track {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-page .subnav-tab {
  min-height: 62px;
  font-size: 0.95rem;
}

.services-page .panel-banner {
  height: clamp(150px, 22vw, 300px);
}

.services-page .panel-banner img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-page .prod-panel:not([hidden]) .panel-banner img {
  animation: banner-zoom 1.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes banner-zoom {
  from {
    transform: scale(1.12);
  }
}

.lead-strong {
  color: var(--ink) !important;
  font-size: 1.12rem;
  font-weight: 700;
}

/* ---------- Abschnitte ---------- */
.svc-section {
  margin-top: 46px;
}

.svc-section > .eyebrow {
  margin-bottom: 18px;
}

.svc-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.svc-title .eyebrow {
  margin: 0;
}

.mehrweg {
  width: 96px;
  height: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(9, 41, 69, 0.08);
}

.svc-closing {
  margin: 26px 0 0;
  padding: 18px 24px;
  border-left: 4px solid var(--brand);
  border-radius: 6px 18px 18px 6px;
  background: linear-gradient(90deg, var(--brand-soft), rgba(255, 255, 255, 0.4));
  color: var(--ink);
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- Glasveredelung: Techniken ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(9, 41, 69, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(9, 41, 69, 0.14);
}

.tech-media {
  height: 250px;
  overflow: hidden;
  background: var(--surface-soft);
}

.tech-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.tech-card:hover .tech-media img {
  transform: scale(1.06);
}

.tech-body {
  position: relative;
  flex: 1;
  padding: 26px 28px 30px;
}

.tech-no {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.tech-body h3,
.svc-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.tech-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- Karten (Leistungen) ---------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, #fff, var(--surface-soft));
  box-shadow: 0 14px 28px rgba(9, 41, 69, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 46px rgba(9, 41, 69, 0.12);
}

.svc-card ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.svc-card li {
  position: relative;
  padding: 7px 0 7px 24px;
  color: var(--text);
  line-height: 1.55;
}

.svc-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 92, 161, 0.12);
}

.svc-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
}

.svc-card h4 {
  margin: 16px 0 6px;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.svc-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 6px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.svc-link:hover {
  border-bottom-color: var(--brand);
}

/* ---------- Logistik: Kacheln ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  min-height: 190px;
  padding: 24px 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 92, 161, 0.22);
  transition: transform 0.3s ease;
}

.tile:hover {
  transform: translateY(-5px);
}

.tile-no {
  position: absolute;
  right: 14px;
  top: -2px;
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.14);
}

.tile p {
  position: relative;
  margin: 46px 0 0;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 12px 24px rgba(9, 41, 69, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(9, 41, 69, 0.14);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(0, 92, 161, 0.5);
  outline-offset: 2px;
}

.gallery-zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom {
  opacity: 1;
  transform: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(960px, calc(100% - 28px));
  max-height: 96vh;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(4, 26, 46, 0.45);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  animation: dialog-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox::backdrop {
  background: rgba(6, 28, 48, 0.62);
  backdrop-filter: blur(6px);
}

.lightbox img {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  max-height: calc(96vh - 66px);
  object-fit: contain;
  background: #0b1b2a;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tech-grid,
  .duo {
    grid-template-columns: 1fr;
  }

  .services-page .subnav-track {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .services-page .subnav-tab {
    flex: 0 0 auto;
    width: 200px;
  }
}

@media (max-width: 480px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 140px;
  }
}
