/* ============================================================
   Compass Treuhand — Hexagon Wabe (7-Hex Honeycomb Cluster)
   Echte Bienenwabe mit Logo im Zentrum, 6 Services drumherum
   Brand-Farben: #046390 (Blau), #A88802 (Gold)
   ============================================================ */

.ct-hexcomb {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 10px 0;
  max-width: 540px;
}

.ct-hexcomb-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* Tight vertical overlap creates the honeycomb stagger */
.ct-hexcomb-row + .ct-hexcomb-row {
  margin-top: -36px;
}

.ct-hex {
  position: relative;
  width: 145px;
  height: 167px;
  cursor: default;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.5s ease;
  filter: drop-shadow(0 4px 14px rgba(4, 99, 144, 0.18));
}

.ct-hex::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: background 0.5s ease, clip-path 0.5s ease;
}

.ct-hex__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: #046390;
  padding: 0 18px;
  line-height: 1.2;
  transition: color 0.4s ease;
  z-index: 1;
}

.ct-hex:hover {
  transform: translateY(-4px) scale(1.06);
  filter: drop-shadow(0 10px 24px rgba(168, 136, 2, 0.42));
  z-index: 9;
}

.ct-hex:hover::before {
  background: #fdfaee;
}

.ct-hex:hover .ct-hex__label {
  color: #A88802;
}

/* Logo Hex (center) */
.ct-hex--logo::before {
  background: linear-gradient(135deg, #046390 0%, #034f73 100%);
  box-shadow: inset 0 0 30px rgba(168, 136, 2, 0.18);
}

.ct-hex--logo .ct-hex__label {
  padding: 18px;
}

.ct-hex--logo .ct-hex__label img {
  max-width: 78%;
  max-height: 60%;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.ct-hex--logo:hover::before {
  background: linear-gradient(135deg, #034f73 0%, #046390 100%);
}

.ct-hex--logo:hover .ct-hex__label {
  color: #ffffff;
}

/* Entrance Animation */
@keyframes ctHexFadeIn {
  0%   { opacity: 0; transform: scale(0.6) rotate(-10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.ct-hex {
  animation: ctHexFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.ct-hexcomb-row:nth-child(1) .ct-hex:nth-child(1) { animation-delay: 0.10s; }
.ct-hexcomb-row:nth-child(1) .ct-hex:nth-child(2) { animation-delay: 0.20s; }
.ct-hexcomb-row:nth-child(2) .ct-hex:nth-child(1) { animation-delay: 0.30s; }
.ct-hexcomb-row:nth-child(2) .ct-hex:nth-child(2) { animation-delay: 0.40s; }
.ct-hexcomb-row:nth-child(2) .ct-hex:nth-child(3) { animation-delay: 0.50s; }
.ct-hexcomb-row:nth-child(3) .ct-hex:nth-child(1) { animation-delay: 0.60s; }
.ct-hexcomb-row:nth-child(3) .ct-hex:nth-child(2) { animation-delay: 0.70s; }

/* Responsive */
@media screen and (max-width: 1199px) {
  .ct-hex { width: 130px; height: 150px; }
  .ct-hexcomb-row + .ct-hexcomb-row { margin-top: -32px; }
  .ct-hex__label { font-size: 14px; padding: 0 14px; }
}

@media screen and (max-width: 991px) {
  .ct-hexcomb { padding-top: 30px; }
  .ct-hex { width: 140px; height: 162px; }
  .ct-hexcomb-row + .ct-hexcomb-row { margin-top: -35px; }
  .ct-hex__label { font-size: 14px; padding: 0 16px; }
}

@media screen and (max-width: 549px) {
  .ct-hex { width: 110px; height: 127px; }
  .ct-hexcomb-row + .ct-hexcomb-row { margin-top: -27px; }
  .ct-hexcomb-row { gap: 8px; }
  .ct-hex__label { font-size: 12px; padding: 0 8px; letter-spacing: 0.1px; }

  .ct-hex:hover {
    transform: none;
  }
}
