/* ================================================================
   ibelsa Content Hub
   Zusatzlayout fuer Blog und Versionshinweise
   ================================================================ */

.ib-hub {
  position: relative;
}

.ib-hub__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: var(--ib-gap-xl);
  align-items: stretch;
  margin-bottom: var(--ib-gap-lg);
}

.ib-hub__hero-main,
.ib-hub__hero-feature,
.ib-hub-filter,
.ib-hub-card,
.ib-single-hub__content {
  border: 1px solid var(--ib-c-border);
  border-radius: var(--ib-radius-lg);
  box-shadow: var(--ib-shadow-sm);
}

.ib-hub__hero-main {
  background: #fff;
  padding: clamp(30px, 5vw, 64px);
}

.ib-hub__hero-main h1 {
  max-width: 13ch;
}

.ib-hub__hero-main .ib-lead {
  max-width: 62ch;
  margin-bottom: 0;
}

/* Eyebrow im Content Hub bewusst ohne vorangestellten Strich */
.ib-hub .ib-eyebrow,
.ib-single-hub .ib-eyebrow {
  font-size: var(--ib-text-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ib-hub .ib-eyebrow::before,
.ib-single-hub .ib-eyebrow::before {
  display: none;
}

.ib-hub__hero-feature {
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.ib-hub__hero-feature-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
}

.ib-hub__hero-feature-media {
  aspect-ratio: 16 / 10;
  background: var(--ib-c-night);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}

.ib-hub__hero-feature-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ib-trans-slow);
  width: 100%;
}

.ib-hub__hero-feature:hover .ib-hub__hero-feature-media img {
  transform: scale(1.04);
}

.ib-hub__hero-feature-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
}

.ib-hub__hero-feature-label,
.ib-hub__hero-feature-date {
  font-size: var(--ib-text-xs);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ib-hub__hero-feature-label {
  color: var(--ib-c-teal);
  margin-bottom: 8px;
}

.ib-hub__hero-feature-date {
  color: var(--ib-c-muted);
  margin-bottom: 16px;
}

.ib-hub__hero-feature h2 {
  color: #fff !important;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.08;
  margin-bottom: 18px;
}

.ib-hub__hero-feature-more {
  color: var(--ib-c-pink);
  display: inline-flex;
  font-size: var(--ib-text-sm);
  font-weight: 800;
  margin-top: auto;
  text-transform: lowercase;
}

.ib-hub__hero-feature--blog {
  background: var(--ib-c-night);
  color: #fff;
}

.ib-hub__hero-feature--blog .ib-hub__hero-feature-link {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.ib-hub__hero-feature--blog .ib-hub__hero-feature-media {
  aspect-ratio: auto;
  min-height: 0;
}

.ib-hub__hero-feature--blog .ib-hub__hero-feature-body {
  background: var(--ib-c-night);
  flex: none;
  padding: clamp(24px, 3vw, 34px);
}

.ib-hub__hero-feature--blog .ib-hub__hero-feature-date {
  color: rgba(255, 255, 255, .62);
  margin-bottom: 12px;
}

.ib-hub__hero-feature--blog h2 {
  margin-bottom: 0;
}

.ib-hub__hero-feature--changelog {
  background: var(--ib-c-night);
  color: #fff;
}

.ib-hub__hero-feature--changelog .ib-hub__hero-feature-link {
  isolation: isolate;
}

.ib-hub__hero-feature--changelog .ib-cloudmark {
  opacity: .12;
  position: absolute;
  right: -42px;
  top: -34px;
  width: 230px;
  z-index: 0;
}

.ib-hub__hero-feature--changelog .ib-hub__hero-feature-body {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 4vw, 44px);
}

.ib-hub__hero-feature--changelog .ib-hub__hero-feature-label,
.ib-hub__hero-feature--changelog .ib-hub__hero-feature-more {
  color: var(--ib-c-teal);
}

.ib-hub__hero-feature--changelog .ib-hub__hero-feature-date {
  color: rgba(255, 255, 255, .58);
}

.ib-hub__hero-feature--changelog p {
  color: rgba(255, 255, 255, .74);
  margin-bottom: 26px;
}

.ib-hub-filter {
  background: #fff;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.ib-hub-filter input,
.ib-hub-filter select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--ib-c-border);
  border-radius: var(--ib-r-pill);
  background: #fff;
  color: var(--ib-c-night);
  font: inherit;
  padding: 0 18px;
  outline: none;
}

.ib-hub-filter input:focus,
.ib-hub-filter select:focus {
  border-color: var(--ib-c-teal);
  box-shadow: 0 0 0 4px rgba(43, 169, 199, .14);
}

.ib-hub-filter__reset {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ib-c-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0 8px;
  text-transform: lowercase;
}

.ib-hub-filter__reset:hover {
  color: var(--ib-c-pink);
}

.ib-hub-results-meta {
  color: var(--ib-c-muted);
  font-size: var(--ib-text-sm);
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 0 18px;
  text-transform: lowercase;
}

.ib-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ib-gap);
}

.ib-hub-grid--list {
  grid-template-columns: 1fr;
  max-width: 980px;
}

.ib-hub-card {
  background: #fff;
  overflow: hidden;
  position: relative;
  transition: transform var(--ib-trans), box-shadow var(--ib-trans), border-color var(--ib-trans);
}

.ib-hub-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--ib-c-pink);
  opacity: 0;
  transition: opacity var(--ib-trans);
}

.ib-hub-card--changelog::before {
  background: var(--ib-c-teal);
  opacity: 1;
}

.ib-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ib-shadow-lg);
  border-color: rgba(28, 24, 37, .18);
}

.ib-hub-card:hover::before {
  opacity: 1;
}

.ib-hub-card__link {
  color: inherit;
  display: block;
  height: 100%;
  text-decoration: none;
}

.ib-hub-card__media {
  aspect-ratio: 16 / 9;
  background: var(--ib-c-night);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}

.ib-hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ib-trans-slow);
}

.ib-hub-card:hover .ib-hub-card__media img {
  transform: scale(1.04);
}

.ib-hub-card__media .ib-cloudmark {
  opacity: .85;
}

.ib-hub-card__body {
  padding: clamp(24px, 3vw, 34px);
}

.ib-hub-card--changelog .ib-hub-card__body {
  padding-left: clamp(30px, 4vw, 46px);
}

.ib-hub-card__meta,
.ib-single-hub__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ib-c-teal);
  font-size: var(--ib-text-xs);
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.ib-hub-card h3 {
  margin-bottom: 12px;
}

.ib-hub-card p {
  color: var(--ib-c-muted);
  margin-bottom: 22px;
}

.ib-hub-card__more {
  color: var(--ib-c-pink);
  display: inline-flex;
  font-size: var(--ib-text-sm);
  font-weight: 800;
  text-transform: lowercase;
}

.ib-hub-card--changelog .ib-hub-card__more {
  color: var(--ib-c-teal);
}

.ib-hub-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--ib-gap-lg);
}

.ib-hub-empty {
  background: #fff;
  border: 1px dashed var(--ib-c-border);
  border-radius: var(--ib-radius-lg);
  color: var(--ib-c-muted);
  padding: 34px;
  text-align: center;
}

.ib-hub.is-loading .ib-hub-grid {
  opacity: .45;
  pointer-events: none;
}

.ib-single-hub__hero {
  padding-top: clamp(70px, 9vw, 130px);
  padding-bottom: clamp(70px, 9vw, 120px);
}

.ib-single-hub__back {
  color: rgba(255, 255, 255, .72);
  display: inline-flex;
  font-size: var(--ib-text-sm);
  font-weight: 800;
  margin-bottom: 26px;
  text-decoration: none;
  text-transform: lowercase;
}

.ib-single-hub__back:hover {
  color: #fff;
}

.ib-single-hub__meta {
  color: var(--ib-c-yellow);
  margin-top: 22px;
  margin-bottom: 0;
}

.ib-single-hub__content-section {
  background: #fff;
}

.ib-single-hub__image {
  border-radius: var(--ib-radius-lg);
  box-shadow: var(--ib-shadow-md);
  margin: -120px 0 34px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.ib-single-hub__image img {
  width: 100%;
}

.ib-single-hub__content {
  background: #fff;
  padding: clamp(30px, 5vw, 62px);
}

.ib-single-hub__content > *:first-child {
  margin-top: 0;
}

.ib-single-hub__content p,
.ib-single-hub__content li {
  color: var(--ib-c-night);
  font-size: var(--ib-text-base);
  line-height: var(--ib-lh-base);
}

.ib-single-hub__content a {
  color: var(--ib-c-pink);
  font-weight: 700;
}

.ib-single-hub__content img {
  border-radius: var(--ib-r-lg);
  height: auto;
  margin: 26px 0;
}

@media (max-width: 1100px) {
  .ib-hub__hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: var(--ib-gap);
  }

  .ib-hub-filter {
    grid-template-columns: 1fr;
  }

  .ib-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ib-hub-grid--list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ib-hub__hero {
    grid-template-columns: 1fr;
  }

  .ib-hub__hero-feature {
    display: none;
  }

  .ib-hub-grid {
    grid-template-columns: 1fr;
  }

  .ib-hub-filter .ib-btn,
  .ib-hub-filter__reset {
    width: 100%;
  }

  .ib-hub__hero-main,
  .ib-hub__hero-feature,
  .ib-single-hub__content {
    border-radius: var(--ib-r-xl);
  }

  .ib-single-hub__image {
    margin-top: -80px;
  }
}

/* ================================================================
   UX-Update: Jahresnavigation, zweispaltige Softwareupdates,
   keine Unterstreichung / keine Textmarkierung auf Cards
   ================================================================ */

.ib-hub-years {
  background: #fff;
  border: 1px solid var(--ib-c-border);
  border-radius: var(--ib-radius-lg);
  box-shadow: var(--ib-shadow-sm);
  margin-bottom: 22px;
  padding: 18px;
}

.ib-hub-years__label {
  color: var(--ib-c-muted);
  font-size: var(--ib-text-xs);
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ib-hub-years__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ib-hub-year {
  appearance: none;
  background: #fff;
  border: 1px solid var(--ib-c-border);
  border-radius: var(--ib-r-pill);
  color: var(--ib-c-night);
  cursor: pointer;
  font: inherit;
  font-size: var(--ib-text-sm);
  font-weight: 800;
  min-height: 42px;
  padding: 0 18px;
  transition: background var(--ib-trans), border-color var(--ib-trans), color var(--ib-trans), transform var(--ib-trans);
}

.ib-hub-year:hover,
.ib-hub-year.is-active {
  background: var(--ib-c-night);
  border-color: var(--ib-c-night);
  color: #fff;
}

.ib-hub-year:active {
  transform: translateY(1px);
}

.ib-hub-grid--changelog {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

.ib-hub-card__link,
.ib-hub-card__link:hover,
.ib-hub-card__link:focus,
.ib-hub-card__link:active,
.ib-hub-card__link *,
.ib-hub-card__link:hover *,
.ib-hub-card__link:focus *,
.ib-hub-card__link:active * {
  text-decoration: none !important;
}

.ib-hub-card,
.ib-hub-card * {
  -webkit-user-select: none;
  user-select: none;
}

.ib-hub-card__link {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1100px) {
  .ib-hub-grid--changelog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ib-hub-grid--changelog {
    grid-template-columns: 1fr;
  }

  .ib-hub-years {
    border-radius: var(--ib-r-xl);
  }

  .ib-hub-year {
    flex: 1 1 auto;
  }
}



/* Single: Beitragsbild rechts im Hero statt riesig zwischen Hero und Content */
.ib-single-hub__hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ib-gap-xl);
	align-items: center;
}

.ib-single-hub__hero-grid.has-image {
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
}

.ib-single-hub__hero-copy {
	max-width: 820px;
}

.ib-single-hub__hero-image {
	margin: 0;
	border-radius: var(--ib-radius-lg);
	overflow: hidden;
	box-shadow: var(--ib-shadow-lg);
	border: 1px solid rgba(255, 255, 255, .16);
	background: rgba(255, 255, 255, .06);
}

.ib-single-hub__hero-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

/* Alte große Zwischenbild-Optik entschärfen, falls irgendwo noch im Markup vorhanden */
.ib-single-hub__image {
	margin: 0 0 34px;
}

@media (max-width: 980px) {
	.ib-single-hub__hero-grid.has-image {
		grid-template-columns: 1fr;
	}

	.ib-single-hub__hero-image {
		max-width: 680px;
	}
}

@media (max-width: 680px) {
	.ib-single-hub__hero-image img {
		aspect-ratio: 16 / 11;
	}
}





/* ================================================================
   Blog Hub: Ab Karte 7 kompakte Textkarten ohne Bild
   ================================================================ */

.ib-hub-card--blog.ib-hub-card--compact .ib-hub-card__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ib-hub-card--blog.ib-hub-card--compact .ib-hub-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ib-hub-card--blog.ib-hub-card--compact h3 {
  font-size: clamp(20px, 1.45vw, 25px);
}

.ib-hub-card--blog.ib-hub-card--compact p {
  font-size: var(--ib-text-sm);
}

.ib-hub-card--blog.ib-hub-card--compact .ib-hub-card__more {
  margin-top: auto;
}

/* etwas andere Akzentfläche für reine Textkarten */
.ib-hub-card--blog.ib-hub-card--compact {
  background:
    radial-gradient(circle at 92% 8%, rgba(43, 169, 199, .10), transparent 34%),
    #fff;
}

.ib-hub-card--blog.ib-hub-card--compact::before {
  content: "";
  display: block;
  height: 5px;
  background: var(--ib-c-teal);
}
/* ================================================================
   Blog Hub Hero: ab 1280px 40/60 mit festem Teamfoto
   Changelog bleibt unverändert
   ================================================================ */

.ib-hub__hero-static--blog {
  display: none;
}

@media (max-width: 1279px) {
  .ib-hub--blog .ib-hub__hero {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  .ib-hub--blog .ib-hub__hero {
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  }

  .ib-hub--blog .ib-hub__hero-static--blog {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ib-c-border);
    border-radius: var(--ib-radius-lg);
    box-shadow: var(--ib-shadow-sm);
    background: var(--ib-c-night);
  }

  .ib-hub--blog .ib-hub__hero-static--blog img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}




/*HACK SCHLEIER*/

.ib-hub__hero-static--blog {
	position: relative;
	overflow: hidden;
}

.ib-hub__hero-static--blog::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(28, 24, 37, 0.28);
	pointer-events: none;
}
/* Einzelkarte: neuester Blogbeitrag via [ibelsa_latest_blog] */
.ib-hub-latest-blog {
  width: 100%;
  max-width: 760px;
}

.ib-hub-latest-blog .ib-hub-card {
  width: 100%;
}
