/* ── Serien-Kacheln ────────────────────────────────────────────────────────── */
/* Vorlage X-Serie: großer Kopf unter dem Header, knapper Abstand zum Einstieg */
.ed-section.ed-serie-kacheln {
  padding: clamp(112px, 15vh, 150px) var(--ed-pad-h) clamp(30px, 4vh, 44px);
}

.ed-serie-kacheln__grid {
  display: grid;
  grid-template-columns: repeat(var(--ed-kachel-cols, 8), 1fr);
  gap: 0;
  background: var(--ed-white);
  border-top: 1px solid var(--ed-line-1);
  border-left: 1px solid var(--ed-line-1);
}

.ed-kachel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 22px 12px 18px;
  text-decoration: none;
  background: var(--ed-white);
  border-right: 1px solid var(--ed-line-1);
  border-bottom: 1px solid var(--ed-line-1);
  transition: background .35s;
  cursor: pointer;
}
.ed-kachel:hover              { background: #F1F3F5; }
.ed-kachel--active            { background: var(--ed-blue); }
.ed-kachel--active:hover      { background: #3578b0; }
.ed-kachel--active .ed-kachel__icon img,
.ed-kachel--active .picon {
  filter: brightness(0) invert(1);
}

.ed-kachel__icon {
  height: 48px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 12px;
  flex: none;
}
.ed-kachel__icon img {
  max-height: 40px;
  max-width: 80px;
  width: auto;
  height: auto;
  display: block;
  transition: transform .45s var(--ed-ease);
}
.ed-kachel:hover .ed-kachel__icon img,
.ed-kachel:hover .picon { transform: scale(1.08); }

.ed-kachel__icon--placeholder {
  width: 40px;
  height: 40px;
  background: var(--ed-line-1);
  border-radius: 2px;
}

.ed-kachel__label {
  font-family: var(--ed-font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .06em;
  text-align: center;
  color: var(--ed-text);
  text-transform: uppercase;
  white-space: normal;
  min-height: 2.5em;
}
.ed-kachel--active .ed-kachel__label { color: var(--ed-white); }

.ed-serie-kacheln__check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.ed-serie-kacheln__toggle {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(26px, 4vh, 38px);
  cursor: default;
}
.ed-serie-kacheln__eyebrow {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  color: #97A2AD;
  white-space: nowrap;
}
.ed-serie-kacheln__rule {
  flex: 1;
  height: 1px;
  background: #E4E8EC;
}
.ed-serie-kacheln__chevron {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ed-blue);
  position: relative;
  flex: none;
}
.ed-serie-kacheln__chevron::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -70%) rotate(45deg);
}

@media (max-width: 920px) { .ed-serie-kacheln__grid { grid-template-columns: repeat(4, 1fr) !important; } }

@media (max-width: 720px) {
  .ed-section.ed-serie-kacheln {
    padding-top: 104px;
    padding-bottom: 20px;
  }
  .ed-serie-kacheln__toggle {
    cursor: pointer;
    margin-bottom: 0;
    min-height: 44px;
    position: relative;
    z-index: 2;
  }
  .ed-serie-kacheln__chevron { display: block; }
  .ed-serie-kacheln__grid { display: none; }
  .ed-serie-kacheln__check:checked ~ .ed-serie-kacheln__toggle {
    margin-bottom: 18px;
  }
  .ed-serie-kacheln__check:checked ~ .ed-serie-kacheln__toggle .ed-serie-kacheln__chevron::before {
    top: 54%;
    transform: translate(-50%, -40%) rotate(225deg);
  }
  .ed-serie-kacheln__check:checked ~ .ed-serie-kacheln__grid {
    display: grid;
  }
}

@media (max-width: 560px) { .ed-serie-kacheln__grid { grid-template-columns: repeat(2, 1fr) !important; } }
