/* Blog-Index, Einzelbeitrag, Pagination — nur im Energiewissen. */

/* ————————————————————————————————————————————— Blog / Energiewissen */

.blog-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  align-items: stretch;
}
.blog-grid--compact { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shade);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shade-lg);
  border-color: var(--accent-line);
}
.blog-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--s3);
  padding: var(--s5);
}
.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  color: var(--ink-3);
}
.blog-card__cat {
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
}
.blog-card__title {
  font-size: var(--t-lg);
  line-height: 1.25;
  text-wrap: balance;
}
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--accent); }
.blog-card__excerpt {
  flex: 1;
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.55;
}
.blog-card__link {
  margin-top: auto;
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  color: var(--accent);
}
.blog-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-card--compact .blog-card__body { padding: var(--s4); }
.blog-card--compact .blog-card__title { font-size: var(--t-md); }

/* Einzelbeitrag — Titel über Bild (NEW-inspiriert) */
.article-lead {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  background: var(--surface);
}
.article-lead__head {
  padding-bottom: var(--s6);
}
.article-lead__head h1 {
  max-width: 22ch;
  margin-top: 0;
}
.article__path {
  margin: 0 0 var(--s4);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.article__path a {
  color: var(--accent);
  font-weight: var(--w-bold);
}
.article-lead .article__meta {
  margin-top: var(--s5);
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  color: var(--ink-3);
}
.article-lead__figure {
  margin: 0 auto;
  padding-bottom: var(--s7);
}
.article-lead__figure img {
  width: 100%;
  max-height: clamp(16rem, 42vw, 28rem);
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shade);
}

/* Legacy overlay hero — falls noch in Previews referenziert */
.article-hero {
  position: relative;
  min-height: clamp(18rem, 42vw, 28rem);
  display: grid;
  align-items: end;
  color: var(--on-deep);
}
.article-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.article-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 48, 63, 0.35) 0%,
    rgba(18, 48, 63, 0.72) 55%,
    rgba(18, 48, 63, 0.92) 100%
  );
}
.article-hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.article-hero .section-label,
.article-hero .section-label a { color: var(--accent-on-deep); }
.article-hero .section-label a:hover { color: var(--on-deep); }
.article-hero h1 {
  max-width: 22ch;
  color: var(--on-deep);
  margin-top: var(--s3);
}
.article__meta {
  margin-top: var(--s5);
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  color: var(--on-deep-2);
}

/* Fließtext im Beitrag */
.article__body {
  max-width: 68ch;
  margin-inline: auto;
  font-size: var(--t-md);
  line-height: 1.7;
}
.article__body > * + * { margin-top: var(--s5); }
.article__body h2 {
  margin-top: var(--s9);
  margin-bottom: var(--s4);
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
  font-size: var(--t-xl);
  max-width: 28ch;
}
.article__body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.article__body h3 {
  margin-top: var(--s7);
  margin-bottom: var(--s3);
  font-size: var(--t-lg);
}
.article__body p,
.article__body li { color: var(--ink-2); }
.article__body strong { color: var(--ink); font-weight: var(--w-bold); }
.article__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article__body ul,
.article__body ol {
  display: grid;
  gap: var(--s3);
  padding-left: var(--s5);
}
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li::marker { color: var(--accent); }

.article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  margin-block: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.article__body thead { background: var(--surface-2); }
.article__body th,
.article__body td {
  padding: var(--s3) var(--s4);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article__body th {
  font-weight: var(--w-bold);
  color: var(--ink);
  font-size: var(--t-xs);
}
.article__body tbody tr:last-child td { border-bottom: 0; }
.article__body tbody tr:hover td { background: var(--surface-2); }

.article__body details {
  margin-top: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.article__body details[open] {
  border-color: var(--accent-line);
  box-shadow: var(--shade);
}
.article__body details + details { margin-top: var(--s3); }
.article__body summary {
  padding: var(--s4) var(--s5);
  font-weight: var(--w-bold);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.article__body summary::-webkit-details-marker { display: none; }
.article__body summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--t-md);
  font-weight: var(--w-black);
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.article__body details[open] summary::after {
  content: "−";
  background: var(--accent);
  color: var(--on-accent);
}
.article__body details p {
  padding: 0 var(--s5) var(--s5);
  margin-top: 0;
  font-size: var(--t-sm);
}

.article__author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s5);
  align-items: start;
  max-width: 68ch;
  margin: var(--s9) auto 0;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.article__author img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
}
.article__author strong { display: block; margin-bottom: var(--s2); }
.article__author p { font-size: var(--t-sm); color: var(--ink-2); }
.article__author a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.article__related {
  margin-top: var(--s9);
  padding-top: var(--s8);
  border-top: 1px solid var(--line);
}
.article__related h2 {
  margin-bottom: var(--s6);
  font-size: var(--t-xl);
}

.article-related-band {
  margin-top: var(--s9);
  padding-block: var(--s9);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.article-related-band h2 {
  margin-bottom: var(--s7);
  font-size: var(--t-2xl);
}
.article-related-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
@media (min-width: 768px) {
  .article-related-grid { grid-template-columns: repeat(3, 1fr); }
}
.article-related-card {
  display: grid;
  gap: var(--s4);
}
.article-related-card__media {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shade);
}
.article-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}
.article-related-card:hover .article-related-card__media img {
  transform: scale(1.04);
}
.article-related-card__cat {
  font-size: var(--t-xs);
  font-weight: var(--w-bold);
  color: var(--accent);
}
.article-related-card__title {
  font-size: var(--t-md);
  line-height: 1.25;
}
.article-related-card__title a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
}
.article-related-card__title a:hover {
  text-decoration-color: var(--accent);
  color: var(--accent);
}

.navigation.pagination {
  margin-top: var(--s8);
  display: flex;
  justify-content: center;
  gap: var(--s4);
}
.navigation.pagination a,
.navigation.pagination span {
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
}
.navigation.pagination a {
  background: var(--surface-2);
  color: var(--ink);
}
.navigation.pagination a:hover { background: var(--accent-soft); color: var(--accent); }
.navigation.pagination .current {
  background: var(--accent);
  color: var(--on-accent);
}

/* Podcast-Video im Beitrag: eigene Vorschau, YouTube erst nach Klick (ebs_youtube_shortcode).
   #131313 ist der Hintergrund des Porträts — in beiden Farbmodi gleich, sonst sieht man die Bildkante. */
.podcast-video { margin-block: var(--s7); }
.podcast-video__frame { background: #131313; }
.podcast-video__portrait {
  position: absolute;
  inset-block: 0;
  right: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  z-index: 0;
}
.podcast-video__portrait[hidden] { display: none !important; }
.podcast-video__facade {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s6);
  background: linear-gradient(90deg, #131313 0%, #131313 38%, rgba(19, 19, 19, 0.6) 62%, rgba(19, 19, 19, 0) 82%);
}
.podcast-video__facade[hidden] { display: none !important; }
.article__body .podcast-video__facade p { margin: 0; max-width: 26ch; color: #d5d9d5; }
.article__body .podcast-video__facade .podcast-video__show {
  font-size: var(--t-xs);
}
.article__body .podcast-video__facade .podcast-video__title {
  margin-bottom: var(--s2);
  color: #f2f3f1;
  font-size: var(--t-lg);
  font-weight: var(--w-bold);
  line-height: 1.3;
}
.article__body .podcast-video__facade .podcast-video__show,
.article__body .podcast-video__facade .podcast-video__note { max-width: none; }
.article__body .podcast-video__facade .podcast-video__action { max-width: none; }
.podcast-video__play { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.article__body .podcast-video__facade .podcast-video__note { margin-top: var(--s1); font-size: var(--t-xs); }
.article__body .podcast-video__note a { color: inherit; }
.podcast-video figcaption { margin-top: var(--s3); font-size: var(--t-sm); color: var(--ink-3); }

@media (max-width: 600px) {
  .podcast-video__facade {
    gap: var(--s1);
    padding: var(--s4);
    background: linear-gradient(90deg, #131313 0%, #131313 45%, rgba(19, 19, 19, 0.55) 70%, rgba(19, 19, 19, 0) 92%);
  }
  .article__body .podcast-video__facade .podcast-video__show { max-width: 20ch; }
  .article__body .podcast-video__facade .podcast-video__title,
  .podcast-video__len { display: none; }
}
