.d35-card-icon-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
}

.d35-card-icon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--d35-radius);
  background: var(--d35-color-surface);
  color: var(--d35-color-text);
  height: 100%;
  min-height: 100%;
  align-self: stretch;
}

.d35-card-icon--layout-stacked {
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.brxe-shortcode:has(> .d35-card-icon-wrap) {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.brxe-shortcode > .d35-card-icon-wrap {
  flex: 1 1 auto;
  height: 100%;
}

.d35-card-icon__content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  flex-direction: column;
  gap: 0.75rem;
}

.d35-card-icon__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--d35-color-primary);
}

.d35-card-icon__icon-svg {
  width: 2rem;
  height: 2rem;
}

/* Hersteller-Logo statt Phosphor-Icon (name="brand:<slug>"): das Logo bringt
   seine eigene, breitenvariable Größe mit — das feste 2rem-Quadrat des
   Icon-SVG aufheben, Höhe über die Brand-Logo-Variable steuern. */
.d35-card-icon__brand.d35-card-icon__icon-svg {
  width: auto;
  height: auto;
  --d35-brand-logo-height: 2rem;
}

.d35-card-icon__heading {
  margin: 0;
  max-width: 100%;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.d35-card-icon__text {
  margin: 0;
  max-width: 100%;
  color: inherit;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.d35-card-icon__footer {
  margin-top: auto;
  max-width: 100%;
}

.d35-card-icon__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.d35-card-icon__link::after {
  content: "\2192";
  font-size: 1em;
  line-height: 1;
}

.d35-card-icon__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.d35-card-icon--clickable {
  transition:
    box-shadow 160ms ease,
    background-color 160ms ease;
}

/* Kein Lift (schnitt die Karte in overflow-Slidern ab) — stattdessen ein
   dezenter Rand in der Primärfarbe. inset → bleibt in den Card-Grenzen. */
.d35-card-icon--clickable:hover,
.d35-card-icon--clickable:focus-within {
  box-shadow: inset 0 0 0 3px var(--d35-color-primary);
  background-color: color-mix(in srgb, var(--d35-color-primary) 8%, var(--d35-color-surface));
}

.d35-card-icon--layout-stacked .d35-card-icon__text {
  max-width: 100%;
}

.d35-card-icon--layout-stacked .d35-card-icon__content {
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
}

.d35-card-icon__text > :first-child {
  margin-top: 0;
}

.d35-card-icon__text > :last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .d35-card-icon {
    gap: 1rem;
    padding: 0.9rem 1rem;
  }
}
