/* Eigenständige IME-Komponente: keine globalen Elementor-/Footer-Selektoren. */
.ime-tipps-links,
.ime-tipps-links *,
.ime-tipps-notice,
.ime-tipps-notice * {
  box-sizing: border-box;
}
.ime-tipps-links,
.ime-tipps-notice {
  /* Dieselbe Inhaltsbreite wie beim IME-Kalender. */
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto !important;
  /* Feste Vereinsfarbe, auch wenn Elementor Hintergrundstile setzt. */
  background-color: #202020 !important;
  background-image: none !important;
  border: 1px solid #666666;
  border-radius: 10px;
  color: #ffffff;
}
.ime-tipps-links {
  padding: 17px;
}
/* Der Hinweis ist eine separate Box auf derselben Breitenbasis wie die Kacheln. */
.ime-tipps-notice {
  margin-top: 19px !important;
  padding: 15px 22px;
  text-align: center;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
}
.ime-tipps-notice p {
  margin: 0 !important;
  padding: 0;
  color: #ffffff;
  font: inherit;
  overflow-wrap: break-word;
}
.ime-tipps-notice strong { font-weight: 700; }
.ime-tipps-links .ime-tipps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 17px;
}
.ime-tipps-links .ime-tipps-card {
  width: 100%;
  min-width: 0;
  min-height: 216px;
  padding: 17px 14px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background-color: #282828 !important;
  background-image: none !important;
  color: #ffffff;
  border: 1px solid #666666;
  border-radius: 12px;
  text-align: center;
  font-family: inherit;
  text-decoration: none !important;
  transition: border-color .2s ease, background-color .2s ease;
}
.ime-tipps-links a.ime-tipps-card:visited,
.ime-tipps-links a.ime-tipps-card:link,
.ime-tipps-links a.ime-tipps-card:hover {
  color: #ffffff;
  text-decoration: none !important;
}
.ime-tipps-links a.ime-tipps-card:hover,
.ime-tipps-links a.ime-tipps-card:focus-visible {
  background-color: #333333 !important;
  border-color: #888888;
}
.ime-tipps-links a.ime-tipps-card:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.ime-tipps-links .ime-tipps-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 49px;
  line-height: 1;
}
.ime-tipps-links .ime-tipps-icon {
  display: block;
}
.ime-tipps-links .ime-tipps-title {
  display: block;
  color: #ffffff;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
}
.ime-tipps-links .ime-tipps-description {
  display: block;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 100%;
}
.ime-tipps-links .ime-tipps-card--graphic {
  min-height: 240px;
}
.ime-tipps-links .ime-tipps-picture {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ime-tipps-links .ime-tipps-picture img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 155px;
  max-height: 155px;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
}
.ime-tipps-links .ime-tipps-action {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  min-width: 162px;
  min-height: 46px;
  padding: 10px 24px;
  margin-top: auto;
  background: #111111;
  color: #ffffff;
  border: 1px solid #666666;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease;
}
.ime-tipps-links a.ime-tipps-card:hover .ime-tipps-action,
.ime-tipps-links a.ime-tipps-card:focus-visible .ime-tipps-action {
  background: #A71E1E;
}
.ime-tipps-links .ime-tipps-card--not-linked .ime-tipps-action {
  opacity: .7;
  cursor: not-allowed;
}
@media (max-width: 650px) {
  .ime-tipps-links {
    padding: 11px;
    border-radius: 9px;
  }
  .ime-tipps-notice {
    padding: 13px 14px;
    border-radius: 9px;
    font-size: 14px;
  }
  .ime-tipps-links .ime-tipps-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .ime-tipps-links .ime-tipps-card,
  .ime-tipps-links .ime-tipps-card--graphic {
    min-height: 195px;
    padding: 14px 12px;
  }
  .ime-tipps-links .ime-tipps-picture img {
    height: 143px;
    max-height: 143px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ime-tipps-links .ime-tipps-card,
  .ime-tipps-links .ime-tipps-action { transition: none; }
}

/* Größere Inhalte am Desktop ab 1101 px. */
@media (min-width: 1101px) {
  .ime-tipps-links .ime-tipps-card {
    min-height: 258px;
    padding: 21px 17px 19px;
    gap: 11px;
  }
  .ime-tipps-links .ime-tipps-card--graphic {
    min-height: 282px;
  }
  .ime-tipps-links .ime-tipps-icon-wrap {
    height: 65px;
  }
  .ime-tipps-links .ime-tipps-icon {
    width: 51px;
    height: 61px;
  }
  .ime-tipps-links .ime-tipps-title {
    font-size: 32px;
  }
  .ime-tipps-links .ime-tipps-description {
    font-size: 19px;
    line-height: 1.4;
  }
  .ime-tipps-links .ime-tipps-picture img {
    height: 190px;
    max-height: 190px;
  }
  .ime-tipps-links .ime-tipps-action {
    min-width: 194px;
    min-height: 54px;
    padding: 12px 28px;
    font-size: 19px;
  }
  .ime-tipps-notice {
    font-size: 18px;
    line-height: 1.55;
    padding: 20px 24px;
  }
}
