/* EC SPLIT 2026-11-13 | ec-blog.css | Originalzeilen: 9521-11030, 16157-16901 | Keine Regeln verändert. */
/* =========================================================
   EC BLOG ÜBERSICHT
========================================================= */

/* ------------------------------------------------
/* =========================================================
   EC BLOG – BREITER SEITENCONTAINER

   Nur Blogübersicht.
   Hauptinhalt + rechte Sidebar gemeinsam.

   Einzelne Beiträge bleiben 
   auf der schmalen Lesebreite.
------------------------------------------------ */

#t4-main-body
.t4-section-inner.container:has(.ec-blog) {
  width: calc(100% - 64px) !important;
  max-width: 1380px !important;

  margin-left: auto !important;
  margin-right: auto !important;
}



/* ------------------------------------------------
   Seitenrahmen
------------------------------------------------ */

.ec-blog {
  width: 100%;
  margin: 0;
  padding-block: 0 clamp(3.5rem, 5vw, 5.75rem);
  color: var(--ec-text);
  background: transparent;
}


/* ------------------------------------------------
   Einleitung
------------------------------------------------ */

.ec-blog__header {
  position: relative;
  min-height: 118px;
  margin-bottom: clamp(2rem, 3vw, 3rem);
}

.ec-blog__eyebrow {
  position: relative;
  z-index: 3;
  margin: 0 0 .65rem;
  color: var(--ec-orange);
  font-family: var(--ec-font-nav);
  font-size: var(--ec-fs-kicker);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--ec-letter-kicker);
  text-transform: uppercase;
}

.ec-blog__heading {
  position: relative;
  z-index: 3;
  max-width: 560px;
  margin: 0;
  color: var(--ec-green);
  font-family: var(--ec-font-headline);
  font-size: clamp(1.6rem, 1.68vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: var(--ec-letter-headline);
}

.ec-blog__description {
  position: relative;
  z-index: 3;
  max-width: 520px;
  margin-top: 1rem;
  color: var(--ec-text-soft);
  font-family: var(--ec-font-body);
  font-size: clamp(.76rem, .08vw + .75rem, .84rem);
  line-height: 1.65;
}

.ec-blog__description > :last-child {
  margin-bottom: 0;
}


/* ------------------------------------------------
   Routenlinie und Flugzeug
------------------------------------------------ */

.ec-blog__route {
  position: absolute;
  top: 1.45rem;
  right: 0;
  left: clamp(15rem, 35%, 19rem);
  z-index: 1;
  height: 100px;
  pointer-events: none;
}

.ec-blog__route-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ec-blog__route-path {
  fill: none;
  stroke: var(--ec-orange);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 7;
  opacity: .78;
  vector-effect: non-scaling-stroke;
}

.ec-blog__route-plane {
  pointer-events: none;
}


/* ------------------------------------------------
   Beitragsstrom
------------------------------------------------ */

.ec-blog__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 2.75rem;
}

.ec-blog__timeline::before {
  content: "";
  position: absolute;
  top: .45rem;
  bottom: 0;
  left: .45rem;
  width: 1px;
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--ec-green) 24%, transparent) 0%,
      color-mix(in srgb, var(--ec-green) 24%, transparent) 88%,
      transparent 100%
    );
}


/* ------------------------------------------------
   Dynamisch verborgene Beiträge
------------------------------------------------ */

.ec-blog-item[hidden] {
  display: none !important;
}


/* ------------------------------------------------
   Einzelner Beitrag
------------------------------------------------ */

.ec-blog-item {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1.75rem, 2.75vw, 3rem);
  margin-bottom: clamp(2.5rem, 3.5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 3.5vw, 3.5rem);
  border-bottom: 1px solid
    color-mix(
      in srgb,
      var(--ec-green) 12%,
      transparent
    );
}

.ec-blog-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ec-blog-item__content {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
}

.ec-blog-item__timeline-dot {
  position: absolute;
  top: .3rem;
  left: -2.72rem;
  display: block;
  width: .78rem;
  height: .78rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 .78rem;
  box-sizing: border-box;
  background: var(--ec-bg);
  border: 2px solid var(--ec-green);
  border-radius: 50%;
}

.ec-blog-item__timeline-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--ec-green);
  border-radius: 50%;
}


/* ------------------------------------------------
   Wechsel der Bildposition
------------------------------------------------ */

.ec-blog-item--image-right
.ec-blog-item__media {
  order: 2;
}

.ec-blog-item--image-right
.ec-blog-item__content {
  order: 1;
}


/* ------------------------------------------------
   Bild
------------------------------------------------ */

.ec-blog-item__media {
  min-width: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.ec-blog-item__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.ec-blog-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: var(--ec-radius-sm);
}


/* ------------------------------------------------
   Metadaten
------------------------------------------------ */

.ec-blog-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: .7rem;
  font-family: var(--ec-font-nav);
  font-size: clamp(.58rem, .08vw + .57rem, .66rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.ec-blog-item__label {
  color: var(--ec-orange);
}

.ec-blog-item__separator {
  color: var(--ec-sand);
}

.ec-blog-item__date {
  color: var(--ec-text-soft);
}


/* ------------------------------------------------
   Titel
------------------------------------------------ */

.ec-blog-item__title {
  margin: 0 0 .65rem;
  color: var(--ec-green);
  font-family: var(--ec-font-headline);
  font-size: clamp(1.22rem, 1.18vw, 1.5rem);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: var(--ec-letter-headline);
}

.ec-blog-item__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ec-transition);
}

.ec-blog-item__title a:hover,
.ec-blog-item__title a:focus-visible {
  color: var(--ec-orange);
}


/* ------------------------------------------------
   Introtext
------------------------------------------------ */

.ec-blog-item__intro {
  max-width: 38rem;
  margin-bottom: 1.25rem;
  color: var(--ec-text-soft);
  font-family: var(--ec-font-body);
  font-size: clamp(.72rem, .09vw + .71rem, .8rem);
  line-height: 1.58;
}

.ec-blog-item__intro > :first-child {
  margin-top: 0;
}

.ec-blog-item__intro > :last-child {
  margin-bottom: 0;
}


/* ------------------------------------------------
   Footer
------------------------------------------------ */

.ec-blog-item__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.25rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.ec-blog-item__reading-time {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--ec-text-soft);
  font-family: var(--ec-font-body);
  font-size: .68rem;
  line-height: 1.4;
}

.ec-blog-item__reading-icon {
  position: relative;
  width: .7rem;
  height: .7rem;
  flex: 0 0 auto;
  border: 1.15px solid currentColor;
  border-radius: 50%;
}

.ec-blog-item__reading-icon::before {
  content: "";
  position: absolute;
  top: .12rem;
  left: 50%;
  width: 1px;
  height: .21rem;
  background: currentColor;
  transform: translateX(-50%);
}

.ec-blog-item__reading-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .17rem;
  height: 1px;
  background: currentColor;
  transform: rotate(25deg);
  transform-origin: left center;
}

.ec-blog-item__readmore {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ec-orange);
  font-family: var(--ec-font-nav);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color var(--ec-transition),
    gap var(--ec-transition);
}

.ec-blog-item__readmore:hover,
.ec-blog-item__readmore:focus-visible {
  gap: .65rem;
  color: var(--ec-orange-hover);
}


/* ------------------------------------------------
   Pagination
------------------------------------------------ */

.ec-blog__navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  margin-top: clamp(3rem, 5vw, 5rem);
}


/* ------------------------------------------------
   Weitere Geschichten
------------------------------------------------ */

.ec-blog__load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-width: 250px;
  padding: .9rem 1.5rem;
  color: var(--ec-orange);
  font-family: var(--ec-font-nav);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--ec-orange);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    color var(--ec-transition),
    background-color var(--ec-transition),
    border-color var(--ec-transition);
}

.ec-blog__load-more:hover,
.ec-blog__load-more:focus-visible {
  color: var(--ec-white);
  background: var(--ec-orange-hover);
  border-color: var(--ec-orange-hover);
  box-shadow: none;
  outline: none;
}

.ec-blog__load-more.is-loading {
  cursor: wait;
  opacity: .65;
  pointer-events: none;
}

.ec-blog__load-more.is-loading
.ec-blog__load-more-icon {
  animation:
    ec-blog-load-arrow
    .75s
    ease-in-out
    infinite alternate;
}


/* ------------------------------------------------
   Sichtbarkeit der Seitennavigation
------------------------------------------------ */

.ec-blog__pagination-wrap[hidden] {
  display: none !important;
}

.ec-blog__pagination-wrap {
  width: 100%;
  text-align: center;
}

.ec-blog__pagination-wrap.is-visible {
  animation:
    ec-blog-pagination-in
    .45s
    var(--ec-ease)
    both;
}


/* ------------------------------------------------
   Seitenzähler
------------------------------------------------ */

.ec-blog__counter {
  margin: 0 0 1rem;
  color: var(--ec-text-soft);
  font-family: var(--ec-font-body);
  font-size: .7rem;
  line-height: 1.4;
}


/* ------------------------------------------------
   Joomla Pagination
------------------------------------------------ */

.ec-blog__pagination {
  display: flex;
  justify-content: center;
}

.ec-blog
.ec-blog__pagination
.pagination {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.ec-blog
.ec-blog__pagination
.page-item {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

.ec-blog
.ec-blog__pagination
.page-item > .page-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  min-width: 2.45rem;
  height: 2.45rem;
  padding: 0 !important;
  color: var(--ec-green) !important;
  font-family: var(--ec-font-nav);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  background: transparent !important;
  border: 1px solid
    color-mix(
      in srgb,
      var(--ec-green) 20%,
      transparent
    ) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition:
    color var(--ec-transition),
    background-color var(--ec-transition),
    border-color var(--ec-transition);
}

.ec-blog
.ec-blog__pagination
.page-item > .page-link:hover,
.ec-blog
.ec-blog__pagination
.page-item > .page-link:focus-visible {
  color: var(--ec-orange) !important;
  background: transparent !important;
  border-color: var(--ec-orange) !important;
  box-shadow: none !important;
  outline: none;
}

.ec-blog
.ec-blog__pagination
.page-item.active > .page-link {
  color: var(--ec-white) !important;
  background: var(--ec-orange) !important;
  border-color: var(--ec-orange) !important;
}

.ec-blog
.ec-blog__pagination
.page-item.disabled > .page-link {
  color:
    color-mix(
      in srgb,
      var(--ec-text-soft) 42%,
      transparent
    ) !important;
  background: transparent !important;
  border-color:
    color-mix(
      in srgb,
      var(--ec-green) 12%,
      transparent
    ) !important;
  opacity: 1;
  pointer-events: none;
}


/* ------------------------------------------------
   Joomla-Pfeile
------------------------------------------------ */

.ec-blog
.ec-blog__pagination
.page-item:first-child .page-link > *,
.ec-blog
.ec-blog__pagination
.page-item:nth-child(2) .page-link > *,
.ec-blog
.ec-blog__pagination
.page-item:nth-last-child(2) .page-link > *,
.ec-blog
.ec-blog__pagination
.page-item:last-child .page-link > * {
  display: none !important;
}

.ec-blog
.ec-blog__pagination
.page-item:first-child > .page-link::before {
  content: "«";
}

.ec-blog
.ec-blog__pagination
.page-item:nth-child(2) > .page-link::before {
  content: "‹";
}

.ec-blog
.ec-blog__pagination
.page-item:nth-last-child(2) > .page-link::before {
  content: "›";
}

.ec-blog
.ec-blog__pagination
.page-item:last-child > .page-link::before {
  content: "»";
}

.ec-blog
.ec-blog__pagination
.page-item:first-child > .page-link::before,
.ec-blog
.ec-blog__pagination
.page-item:nth-child(2) > .page-link::before,
.ec-blog
.ec-blog__pagination
.page-item:nth-last-child(2) > .page-link::before,
.ec-blog
.ec-blog__pagination
.page-item:last-child > .page-link::before {
  display: block;
  color: currentColor;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
}


/* ------------------------------------------------
   Statusmeldung
------------------------------------------------ */

.ec-blog__load-status:not(.visually-hidden) {
  margin: 0;
  color: var(--ec-text-soft);
  font-family: var(--ec-font-body);
  font-size: .7rem;
}


/* ------------------------------------------------
   Animationen
------------------------------------------------ */

@keyframes ec-blog-load-arrow {
  from {
    transform: translateY(-2px);
  }

  to {
    transform: translateY(3px);
  }
}

@keyframes ec-blog-pagination-in {
  from {
    opacity: 0;
    transform: translateY(.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ------------------------------------------------
   Responsive – Desktop / Tablet
------------------------------------------------ */

@media (max-width: 1100px) {

  .ec-blog__header {
    min-height: 160px;
  }

  .ec-blog__route {
    top: 3.8rem;
    right: 0;
    left: 9rem;
    height: 92px;
  }

  .ec-blog-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ec-blog-item--image-right
  .ec-blog-item__media,
  .ec-blog-item--image-right
  .ec-blog-item__content {
    order: initial;
  }

  .ec-blog-item__media {
    order: 1 !important;
  }

  .ec-blog-item__content {
    order: 2 !important;
  }

  .ec-blog-item__footer {
    margin-top: 0;
  }
}


/* ------------------------------------------------
   Responsive – Tablet
------------------------------------------------ */

@media (max-width: 900px) {

  .ec-blog__header {
    min-height: 175px;
  }

  .ec-blog__route {
    top: 4.8rem;
    left: 3rem;
    height: 90px;
  }
}


/* ------------------------------------------------
   Responsive – Mobil
------------------------------------------------ */

@media (max-width: 600px) {

  .ec-blog__header {
    min-height: 195px;
    margin-bottom: 2.5rem;
  }

  .ec-blog__heading {
    max-width: 100%;
    font-size: clamp(1.3rem, 7vw, 1.58rem);
  }

  .ec-blog__route {
    top: 6.5rem;
    right: 0;
    left: 0;
    height: 86px;
  }

  .ec-blog__route-plane {
    width: 1.7rem;
    height: 1.7rem;
  }

  .ec-blog__timeline {
    padding-left: 1.7rem;
  }

  .ec-blog__timeline::before {
    left: .3rem;
  }

  .ec-blog-item {
    gap: 1.25rem;
    margin-bottom: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .ec-blog-item__timeline-dot {
    left: -1.68rem;
  }

  .ec-blog-item__title {
    font-size: clamp(1.2rem, 6vw, 1.45rem);
  }

  .ec-blog-item__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
  }

  .ec-blog__load-more {
    width: 100%;
    min-width: 0;
  }

  .ec-blog__footer-separator {
    margin-top: 3.5rem;
    margin-bottom: 4.5rem;
  }
}


/* ------------------------------------------------
   Reduced Motion
------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

  .ec-blog__load-more,
  .ec-blog__pagination-wrap {
    animation: none;
  }
}

/* eof EC BLOG ÜBERSICHT */



/* =========================================================
   EC SIDEBAR
========================================================= */

/* ------------------------------------------------
   Grundaufbau / Box
------------------------------------------------ */

.ec-sidebar-box {
  width: 100%;
  padding: clamp(1.15rem, 1.6vw, 1.5rem);
  color: var(--ec-text);
  background: transparent;
  border: 1px solid
    color-mix(
      in srgb,
      var(--ec-green) 12%,
      transparent
    );
  border-radius: var(--ec-radius-sm);
}


/* ------------------------------------------------
   Modulüberschrift
------------------------------------------------ */

.ec-sidebar-box__header {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.15rem;
}

.ec-sidebar-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  color: var(--ec-green);
}

.ec-sidebar-box__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ec-sidebar-box__title {
  margin: 0;
  color: var(--ec-text);
  font-family: var(--ec-font-nav);
  font-size: clamp(.67rem, .08vw + .65rem, .74rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* =========================================================
   Neueste Geschichten / Beliebte Beiträge
========================================================= */

/* ------------------------------------------------
   Listen
------------------------------------------------ */

.ec-latest__list,
.ec-popular__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ec-latest__item,
.ec-popular__item {
  margin: 0;
  padding: 0;
}


/* ------------------------------------------------
   Einträge
------------------------------------------------ */

.ec-latest__article,
.ec-popular__article {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: .8rem;
  margin: -.45rem;
  padding: .45rem;
  border-radius: var(--ec-radius-sm);
  transition: background-color var(--ec-transition);
}

.ec-latest__article {
  align-items: start;
}

.ec-popular__article {
  align-items: center;
}

.ec-latest__article:hover,
.ec-latest__article:focus-within,
.ec-popular__article:hover,
.ec-popular__article:focus-within {
  background:
    color-mix(
      in srgb,
      #d7c8ad 42%,
      transparent
    );
}


/* ------------------------------------------------
   Vorschaubilder
------------------------------------------------ */

.ec-latest__media,
.ec-popular__media {
  display: block;
  width: 4rem;
  overflow: hidden;
  background: var(--ec-white);
  border-radius: var(--ec-radius-sm);
}

.ec-latest__media {
  aspect-ratio: 1 / 1;
}

.ec-popular__media {
  aspect-ratio: 3 / 2;
}

.ec-latest__media img,
.ec-popular__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* ------------------------------------------------
   Inhalte
------------------------------------------------ */

.ec-latest__content,
.ec-popular__content {
  min-width: 0;
}

.ec-latest__date {
  display: block;
  margin: 0 0 .25rem;
  color: var(--ec-text-soft);
  font-family: var(--ec-font-body);
  font-size: clamp(.61rem, .06vw + .6rem, .67rem);
  font-weight: 400;
  line-height: 1.4;
}

.ec-latest__title,
.ec-popular__title {
  margin: 0;
  color: var(--ec-text);
  font-family: var(--ec-font-body);
  font-size: clamp(.7rem, .08vw + .68rem, .78rem);
  font-weight: 600;
  line-height: 1.45;
}

.ec-latest__title a,
.ec-popular__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ec-transition);
}

.ec-latest__title a:hover,
.ec-latest__title a:focus-visible,
.ec-popular__title a:hover,
.ec-popular__title a:focus-visible {
  color: var(--ec-orange);
}


/* ------------------------------------------------
   Einträge ohne Vorschaubild
------------------------------------------------ */

.ec-latest__article:not(:has(.ec-latest__media)),
.ec-popular__article:not(:has(.ec-popular__media)) {
  grid-template-columns: 1fr;
}


/* =========================================================
   Frühere Geschichten
========================================================= */

/* ------------------------------------------------
   Grundstruktur
------------------------------------------------ */

.ec-history {
  width: 100%;
}

.ec-history__switcher {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0;
}


/* ------------------------------------------------
   Umschaltung Monate / Jahre
------------------------------------------------ */

.ec-history__switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ec-history__switch-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  margin: 0 0 1rem;
  padding: .55rem .75rem;
  color: var(--ec-text-soft);
  font-family: var(--ec-font-nav);
  font-size: clamp(.64rem, .07vw + .63rem, .71rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid
    color-mix(
      in srgb,
      var(--ec-green) 14%,
      transparent
    );
  cursor: pointer;
  transition:
    color var(--ec-transition),
    border-color var(--ec-transition),
    background-color var(--ec-transition);
}

.ec-history__switch-label:hover {
  color: var(--ec-orange);
}

.ec-history__switch-input:first-of-type:checked
+ .ec-history__switch-label,
.ec-history__switch-input:nth-of-type(2):checked
+ .ec-history__switch-label {
  color: var(--ec-orange);
  border-bottom-color: var(--ec-orange);
}

.ec-history__switch-input:focus-visible
+ .ec-history__switch-label {
  outline: 2px solid var(--ec-orange);
  outline-offset: -2px;
}


/* ------------------------------------------------
   Ansichtsbereiche – Monate / Jahre
------------------------------------------------ */

.ec-history__panel {
    grid-column: 1 / -1;
    min-width: 0;
}

/* Beide Ansichten zunächst ausblenden */
.ec-history__panel--months,
.ec-history__panel--years {
    display: none;
}

/* Monatsansicht bei ausgewähltem Monatsreiter */
.ec-history__switch-input[id*="months"]:checked
~ .ec-history__panel--months {
    display: block;
}

/* Jahresansicht bei ausgewähltem Jahresreiter */
.ec-history__switch-input[id*="years"]:checked
~ .ec-history__panel--years {
    display: block;
}

/* Einzelansicht ohne Umschaltung */
.ec-history__panel--single {
    display: block;
    grid-column: 1 / -1;
}

.ec-history__panel--single {
  display: block;
  grid-column: 1 / -1;
}


/* ------------------------------------------------
   Monats- und Jahresgruppen
------------------------------------------------ */

.ec-history__group {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid
    color-mix(
      in srgb,
      var(--ec-green) 10%,
      transparent
    );
}

.ec-history__group:first-child {
  border-top: 1px solid
    color-mix(
      in srgb,
      var(--ec-green) 10%,
      transparent
    );
}


/* ------------------------------------------------
   Zeitraum-Zeile
------------------------------------------------ */

.ec-history__summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.8rem;
  margin: 0;
  padding: .7rem 1.7rem .7rem .15rem;
  color: var(--ec-text);
  list-style: none;
  cursor: pointer;
  transition:
    color var(--ec-transition),
    background-color var(--ec-transition);
}

.ec-history__summary::-webkit-details-marker {
  display: none;
}

.ec-history__summary::marker {
  content: "";
}

.ec-history__summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .25rem;
  width: .42rem;
  height: .42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform:
    translateY(-65%)
    rotate(45deg);
  transition:
    transform var(--ec-transition),
    color var(--ec-transition);
}

.ec-history__group[open]
> .ec-history__summary::after {
  transform:
    translateY(-25%)
    rotate(225deg);
}

.ec-history__summary:hover,
.ec-history__summary:focus-visible {
  color: var(--ec-orange);
  background:
    color-mix(
      in srgb,
      #d7c8ad 42%,
      transparent
    );
  outline: none;
}


/* ------------------------------------------------
   Zeitraum und Zähler
------------------------------------------------ */

.ec-history__period {
  min-width: 0;
  color: inherit;
  font-family: var(--ec-font-body);
  font-size: clamp(.69rem, .08vw + .68rem, .77rem);
  font-weight: 600;
  line-height: 1.45;
}

.ec-history__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 .38rem;
  color: var(--ec-text-soft);
  background:
    color-mix(
      in srgb,
      var(--ec-sand) 46%,
      transparent
    );
  border-radius: 999px;
  font-family: var(--ec-font-nav);
  font-size: .62rem;
  font-weight: 600;
  line-height: 1;
  transition:
    color var(--ec-transition),
    background-color var(--ec-transition);
}

.ec-history__summary:hover
.ec-history__count,
.ec-history__summary:focus-visible
.ec-history__count,
.ec-history__group[open]
.ec-history__count {
  color: var(--ec-white);
  background: var(--ec-orange);
}


/* ------------------------------------------------
   Geöffnete Beitragsliste
------------------------------------------------ */

.ec-history__articles {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: 0;
  padding: .15rem 1.5rem 1rem .75rem;
  list-style: none;
}

.ec-history__article {
  position: relative;
  margin: 0;
  padding: 0 0 0 .85rem;
}

.ec-history__article::before {
  content: "";
  position: absolute;
  top: .32em;
  left: 0;
  width: .27rem;
  height: .27rem;
  background: var(--ec-orange);
  border-radius: 50%;
}

.ec-history__article a {
  display: block;
  color: var(--ec-text-soft);
  font-family: var(--ec-font-body);
  font-size: clamp(.65rem, .07vw + .64rem, .72rem);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--ec-transition);
}

.ec-history__article a:hover,
.ec-history__article a:focus-visible {
  color: var(--ec-orange);
  outline: none;
}


/* ------------------------------------------------
   Öffnungsanimation
------------------------------------------------ */

.ec-history__group[open]
.ec-history__articles {
  animation:
    ec-history-open
    .32s
    var(--ec-ease)
    both;
}

@keyframes ec-history-open {
  from {
    opacity: 0;
    transform: translateY(-.35rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   Responsive
========================================================= */

/* ------------------------------------------------
   Bis 1100px
------------------------------------------------ */

@media (max-width: 1100px) {

  .ec-latest__article,
  .ec-popular__article {
    grid-template-columns: 3.7rem minmax(0, 1fr);
  }

  .ec-latest__media,
  .ec-popular__media {
    width: 3.7rem;
  }

  .ec-history__summary {
    padding-right: 1.55rem;
  }

  .ec-history__articles {
    padding-right: 1rem;
  }
}


/* ------------------------------------------------
   Bis 850px
------------------------------------------------ */

@media (max-width: 850px) {

  .ec-sidebar-box {
    padding: 1.25rem;
  }

  .ec-latest__article,
  .ec-popular__article {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .ec-latest__media,
  .ec-popular__media {
    width: 4rem;
  }

  .ec-history__switch-label {
    min-height: 2.5rem;
  }

  .ec-history__summary {
    min-height: 3rem;
  }
}


/* ------------------------------------------------
   Reduced Motion
------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

  .ec-history__summary,
  .ec-history__summary::after,
  .ec-history__count,
  .ec-history__article a {
    transition: none;
  }

  .ec-history__group[open]
  .ec-history__articles {
    animation: none;
  }
}

/* eof EC SIDEBAR */


/* ==========================================================
   EC BLOG – EINZELBEITRAG
   ========================================================== */



/* 1. T4: Sidebar nur bei EC-Blog-Einzelartikeln ausblenden */

.t4-main-body .t4-row:has(.ec-blog-article) > .t4-col.sidebar-r,

.t4-main-body .t4-row:has(.ec-blog-article) > .t4-col.sidebar-l {

    display: none !important;

}



.t4-main-body .t4-row:has(.ec-blog-article) > .t4-col.component {

    flex: 0 0 100%;

    width: 100%;

    max-width: 100%;

}



/* 2. Artikel und Artikelkopf */

.ec-blog-article {

    width: 100%;

    max-width: 100%;

    color: var(--ec-text, #18231f);

}



.ec-blog-article__header {

    /* Oberen Abstand übernimmt zentral #t4-main-body. */
    padding: 0 0 30px;

    border-bottom: 1px solid rgba(32, 56, 47, .15);

}



.ec-blog-article__meta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 18px;

    font-family: var(--ec-font-body, Montserrat, sans-serif);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: .07em;

    text-transform: uppercase;

}



.ec-blog-article__date {

    color: var(--ec-orange, #d46f32);

    font-weight: 700;

}



.ec-blog-article__meta-separator {

    color: #9b9b91;

    font-weight: 400;

}



.ec-blog-article__reading {

    display: inline-flex;

    align-items: center;

    gap: 7px;

}



.ec-blog-article__meta .ec-blog-article__reading {

    color: var(--ec-text-soft, #4e5a55);

    font-size: 12px;

    font-weight: 400;

    letter-spacing: 0;

    text-transform: none;

}



.ec-blog-article__title {

    margin: 0;

    color: var(--ec-green, #20382f);

    font-family: var(--ec-font-headline, Georgia, serif);


    font-weight: 400;

    line-height: 1.02;

    letter-spacing: -.025em;

}



/* 3. Geschichten-Navigation: äußerer Bereich */

.ec-blog-article__explore {

    margin: 28px 0 56px;

    padding: 24px;

    background: #f0eee8;

    border: 1px solid rgba(32, 56, 47, .09);

    border-radius: 8px;

}



.ec-blog-article__explore-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 22px;

}



.ec-blog-article__back {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;

    color: var(--ec-green, #20382f);

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

}



.ec-blog-article__back > span {

    color: var(--ec-orange, #d46f32);

    font-size: 22px;

}



.ec-blog-article__explore-heading {

    display: flex;

    flex-direction: column;

    gap: 4px;

    text-align: right;

}



.ec-blog-article__explore-heading strong {

    color: var(--ec-orange, #d46f32);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;

}



.ec-blog-article__explore-heading > span {

    color: var(--ec-text-soft, #4e5a55);

    font-size: 12px;

}



/* 4. Drei aufklappbare Karten */

.ec-blog-article__explore-options {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 14px;

}



.ec-blog-article__tab-card {

    display: flex;

    align-items: center;

    gap: 13px;

    min-width: 0;

    padding: 18px 16px;

    color: var(--ec-green, #20382f);

    background: #fbf8f1;

    border: 1px solid rgba(32, 56, 47, .14);

    border-radius: 6px;

    cursor: pointer;

    transition: border-color .2s ease, background-color .2s ease;

}



.ec-blog-article__tab-card:hover {

    background: #fff;

    border-color: var(--ec-orange, #d46f32);

}



.ec-blog-article__tab-card > span:last-child {

    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;

}



.ec-blog-article__option-icon {

    flex: 0 0 30px;

    color: var(--ec-orange, #d46f32);

    font-size: 25px;

    text-align: center;

}



.ec-blog-article__tab-card strong {

    font-size: 13px;

    font-weight: 700;

    line-height: 1.35;

}



.ec-blog-article__tab-card small {

    color: var(--ec-text-soft, #4e5a55);

    font-size: 11px;

    line-height: 1.4;

}



/* 5. Auswahl und Modulbereiche */

.ec-blog-article__discover-panels > input[type="radio"] {

    position: absolute;

    width: 1px;

    height: 1px;

    opacity: 0;

    pointer-events: none;

}



.ec-blog-article__discover-panel {

    display: none;

    position: relative;

    margin-top: 20px;

    padding: 25px;

    background: #fbf8f1;

    border: 1px solid rgba(32, 56, 47, .12);

    border-radius: 6px;

}



#ec-discover-latest:checked ~ .ec-blog-article__discover-panel--latest,

#ec-discover-popular:checked ~ .ec-blog-article__discover-panel--popular,

#ec-discover-archive:checked ~ .ec-blog-article__discover-panel--archive {

    display: block;

}



.ec-blog-article__discover-close {

    position: absolute;

    top: 12px;

    right: 16px;

    color: var(--ec-orange, #d46f32);

    font-size: 26px;

    line-height: 1;

    cursor: pointer;

}



/* 6. Nur die INNEREN Modulboxen neutralisieren.

      Äußere aufklappbare Fläche bleibt bestehen.

      Klassen aus den vorhandenen Modul-Layouts. */

.ec-blog-article__discover-panel .ec-sidebar-box.ec-latest,

.ec-blog-article__discover-panel .ec-sidebar-box.ec-popular,

.ec-blog-article__discover-panel--archive .ec-sidebar-box.ec-history {

    width: 100%;

    max-width: none;

    margin: 0;

    padding: 0;

    background: transparent;

    border: 0;

    border-radius: 0;

    box-shadow: none;

}



/* 7. Artikelinhalt und breiter Einleitungstext */

.ec-blog-article__body {

    width: 100%;

    min-width: 0;

}



.ec-blog-article__body .ec-story-block--intro .ec-story-lead {

    display: block;

    float: none;

    clear: both;

    width: 100%;

    max-width: none;

    margin: 0 0 2rem;

    padding: 0 0 0 20px;

    border-left: 2px solid var(--ec-orange, #d46f32);

    box-sizing: border-box;

    font-size: var(--ec-fs-body);
    font-weight: 400;
    line-height: 1.7;

}



/* 8. Artikelabschluss */

.ec-blog-article__footer {

    margin-top: 60px;

    padding-top: 24px;

    border-top: 1px solid rgba(32, 56, 47, .15);

}



.ec-blog-article__footer a {

    color: var(--ec-green, #20382f);

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

}



.ec-blog-article__footer a:hover {

    color: var(--ec-orange, #d46f32);

}



/* 9. Responsive */

@media (max-width: 991px) {

    .ec-blog-article__explore-options {

        gap: 10px;

    }



    .ec-blog-article__tab-card {

        padding: 14px 12px;

    }

}



@media (max-width: 767px) {

    .ec-blog-article__header {

        padding-top: 25px;

    }




    .ec-blog-article__explore {

        padding: 16px;

        margin-bottom: 36px;

    }



    .ec-blog-article__explore-top {

        flex-direction: column;

        align-items: flex-start;

    }



    .ec-blog-article__explore-heading {

        text-align: left;

    }



    .ec-blog-article__explore-options {

        grid-template-columns: 1fr;

    }



    .ec-blog-article__discover-panel {

        padding: 20px 15px;

    }

}


/* 10. Neueste und beliebte Geschichten: gemeinsames 2 × 2-Raster */
.ec-blog-article__discover-panel--latest .ec-latest__list,
.ec-blog-article__discover-panel--popular .ec-popular__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ec-blog-article__discover-panel--latest .ec-latest__article,
.ec-blog-article__discover-panel--popular .ec-popular__article {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.ec-blog-article__discover-panel--popular .ec-popular__item {
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* 10.1. Vorschaubilder */
.ec-blog-article__discover-panel--latest .ec-latest__media,
.ec-blog-article__discover-panel--popular .ec-popular__media {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 3;
    margin-bottom: .85rem;
    overflow: hidden;
}

.ec-blog-article__discover-panel--latest .ec-latest__media img,
.ec-blog-article__discover-panel--popular .ec-popular__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

/* 10.2. Gemeinsamer Karten-Hover ohne Hintergrundwechsel */
.ec-blog-article__discover-panel--latest .ec-latest__article:hover,
.ec-blog-article__discover-panel--latest .ec-latest__article:focus-within,
.ec-blog-article__discover-panel--popular .ec-popular__article:hover,
.ec-blog-article__discover-panel--popular .ec-popular__article:focus-within {
    background: transparent;
    box-shadow: none;
}

.ec-blog-article__discover-panel--latest .ec-latest__article:hover .ec-latest__media img,
.ec-blog-article__discover-panel--popular .ec-popular__article:hover .ec-popular__media img {
    transform: scale(1.04);
}

/* 10.3. Datum und Titel */
.ec-blog-article__discover-panel--latest .ec-latest__content,
.ec-blog-article__discover-panel--popular .ec-popular__content {
    width: 100%;
    min-width: 0;
}

.ec-blog-article__discover-panel--latest .ec-latest__date {
    margin-bottom: .35rem;
}

.ec-blog-article__discover-panel--latest .ec-latest__title,
.ec-blog-article__discover-panel--popular .ec-popular__title {
    margin: 0;
    font-size: clamp(.9rem, 1vw, 1.1rem);
    line-height: 1.4;
}

.ec-blog-article__discover-panel--latest .ec-latest__title,
.ec-blog-article__discover-panel--latest .ec-latest__title a,
.ec-blog-article__discover-panel--popular .ec-popular__title,
.ec-blog-article__discover-panel--popular .ec-popular__title a {
    transition: color .25s ease;
}

.ec-blog-article__discover-panel--latest .ec-latest__article:hover .ec-latest__title,
.ec-blog-article__discover-panel--latest .ec-latest__article:hover .ec-latest__title a,
.ec-blog-article__discover-panel--latest .ec-latest__article:focus-within .ec-latest__title a,
.ec-blog-article__discover-panel--popular .ec-popular__article:hover .ec-popular__title,
.ec-blog-article__discover-panel--popular .ec-popular__article:hover .ec-popular__title a,
.ec-blog-article__discover-panel--popular .ec-popular__article:focus-within .ec-popular__title a {
    color: var(--ec-orange, #d46f32);
}

/* 11. Frühere Geschichten: ausschließlich optischer Feinschliff */
/* Die bestehenden :checked-Regeln und die Modulumschaltung bleiben unverändert. */
.ec-blog-article__discover-panel--archive .ec-history__group {
    border-bottom: 1px solid rgba(32, 56, 47, .11);
}

.ec-blog-article__discover-panel--archive .ec-history__summary {
    padding-top: 13px;
    padding-bottom: 13px;
}

.ec-blog-article__discover-panel--archive .ec-history__articles {
    padding-bottom: 12px;
}

.ec-blog-article__discover-panel--archive .ec-history__articles a {
    transition: color .2s ease;
}

.ec-blog-article__discover-panel--archive .ec-history__articles a:hover,
.ec-blog-article__discover-panel--archive .ec-history__articles a:focus-visible {
    color: var(--ec-orange, #d46f32);
}

/* 12. Responsive: Beitragsraster */
@media (max-width: 600px) {
    .ec-blog-article__discover-panel--latest .ec-latest__list,
    .ec-blog-article__discover-panel--popular .ec-popular__list {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* Ende: EC BLOG – EINZELBEITRAG */
