/* === News (Startseite, /news/, Beiträge) === */
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-title a:hover, .wp-block-post-title a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.ei-news-loop .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.ei-news-loop .wp-block-post-title { margin: 0; }
.ei-news-loop .ei-news-head { gap: 1.5rem; }
.ei-news-loop .ei-news-head .wp-block-post-title { flex: 1 1 auto; min-width: 0; }
.ei-news-loop .wp-block-read-more { flex: none; white-space: nowrap; text-decoration: none; font-size: var(--wp--preset--font-size--small); letter-spacing: .06em; text-transform: uppercase; }
.ei-news-loop .wp-block-read-more:hover, .ei-news-loop .wp-block-read-more:focus-visible { text-decoration: none; opacity: .75; }
.ei-news-loop .wp-block-read-more::after { content: " \2192"; }
.ei-news-loop .more-link { display: none; }
@media (max-width: 600px) {
  .ei-news-loop .ei-news-head { flex-wrap: wrap !important; row-gap: .5rem; }
  .ei-news-loop .ei-news-head .wp-block-post-title { flex-basis: 100%; }
  .ei-news-loop .wp-block-read-more { margin-left: auto; }
}
.ei-post-date { opacity: .6; margin-bottom: .4rem; }
.ei-back-link a { text-decoration: none; }
.ei-back-link a:hover { text-decoration: underline; }
.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--40); }

/* Beitragstext */
.ei-post-body { margin-top: var(--wp--preset--spacing--50); line-height: 1.7; }
.ei-post-body .ei-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.5; opacity: .9; }
.ei-post-body h2 { margin-top: 2.4em; }
.ei-post-body h3 { margin-top: 1.8em; }
.ei-post-body ul { padding-left: 1.2em; }
.ei-post-body li::marker { color: #df2a2a; }
.ei-post-body .wp-block-quote { border-left: 3px solid #df2a2a; padding-left: 1.4em; margin-left: 0; font-style: italic; }
.ei-post-body .wp-block-quote cite { font-style: normal; font-size: var(--wp--preset--font-size--small); opacity: .7; }
.ei-news-loop .ei-news-head + .wp-block-post-content { margin-top: 1.2rem; }

/* Screenshot als Vorschaubild: dezenter Rahmen, damit es sich vom dunklen Hintergrund abhebt */
.ei-post-preview img { border: 1px solid rgba(235, 235, 245, .14); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.ei-post-preview a:hover img { border-color: rgba(235, 235, 245, .3); }
.ei-post-date, .ei-post-date a { color: inherit; }

/* Produktseiten: News-Abschnitt ganz unten (.ei-prod-news) */
.ei-prod-news { padding-top: 64px; padding-bottom: 96px; margin-top: 32px !important; border-top: 1px solid rgba(255, 255, 255, .08); }
.ei-prod-news > * { margin-block: 0 !important; }
.ei-prod-news .ei-prod-news-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 28px !important; }
.ei-prod-news .wp-block-post-template { gap: 24px; margin: 0; padding: 0; list-style: none; }
.ei-pn-card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 16px; background: #11111d; border: 1px solid rgba(255, 255, 255, .07); border-radius: 16px; padding: 14px 14px 22px; box-sizing: border-box; transition: border-color .2s; }
.ei-pn-card:hover { border-color: rgba(255, 255, 255, .2); }
.ei-pn-card > *, .ei-pn-text > * { margin-block: 0 !important; }
.ei-pn-card .wp-block-post-featured-image { position: relative; margin: 0; overflow: hidden; border-radius: 10px; background: #1b1b2c; }
.ei-pn-card .wp-block-post-featured-image img { display: block; border-radius: 10px; transition: transform .4s ease; }
.ei-pn-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.format-video .ei-pn-card .wp-block-post-featured-image::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%;
  background: #df2a2a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3l8 5-8 5z' fill='%23fff'/%3E%3C/svg%3E") 55% 50% / 18px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.ei-pn-text { display: flex; flex-direction: column; gap: 10px; padding: 0 6px; flex: 1; }
.ei-pn-type { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #9a9ab3; }
.ei-pn-type a { color: inherit; text-decoration: none; pointer-events: none; }
.ei-pn-title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 300; line-height: 1.25; }
.ei-pn-title a { color: #ebebf5; text-decoration: none; }
.ei-pn-title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; } /* ganze Karte klickbar */
.ei-pn-title a:hover { color: #fff; text-decoration: none; }
.ei-pn-date, .ei-pn-date a { margin-top: auto !important; font-size: var(--wp--preset--font-size--small); color: #9a9ab3; }
.ei-prod-news .ei-prod-news-all { margin-top: 28px !important; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.ei-prod-news .ei-prod-news-all a { color: #ebebf5; text-decoration: none; }
.ei-prod-news .ei-prod-news-all a:hover { color: #fff; }
@media (max-width: 900px) { .ei-prod-news .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .ei-prod-news .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; } }

/* Video-Beiträge: direkt in der Karte abspielen (Snippet "News: Videos direkt abspielen") */
figure[data-ei-video] { position: relative; }
figure[data-ei-video] .ei-play { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
figure[data-ei-video] .ei-play:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
figure[data-ei-video]::after { transition: transform .2s ease; }
figure[data-ei-video]:hover::after { transform: translate(-50%, -50%) scale(1.12) !important; }
figure[data-ei-video].is-playing img { visibility: hidden; }
figure[data-ei-video].is-playing::after, figure[data-ei-video].is-playing .ei-play { display: none; }
figure[data-ei-video] iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; border-radius: inherit; background: #000; }
.ei-hn-stack .wp-block-post:not(.is-big) { cursor: pointer; }
.ei-hp-news .wp-block-post { will-change: transform; }
