/* Aktuelles: Übersicht, einzelner Beitrag und der Block auf der Startseite. */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 26px); }
.blog-card { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.blog-card > a { display: grid; height: 100%; grid-template-rows: auto 1fr; color: var(--ink); text-decoration: none; }
.blog-card > a:focus-visible { outline: 2px solid var(--warm); outline-offset: -2px; border-radius: 22px; }
.blog-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(255, 255, 255, .05); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.03); }
.blog-card-body { display: grid; gap: 10px; align-content: start; padding: clamp(18px, 2vw, 26px); }
.blog-card h2, .blog-card h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(25px, 2.2vw, 31px); line-height: 1.1; overflow-wrap: anywhere; }
.blog-date { color: var(--warm); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.blog-teaser { color: var(--muted); font-size: 16px; line-height: 1.6; }
.blog-card .link-arrow { margin-top: 4px; }

/* the newest post is shown large on wide screens */
@media (min-width: 900px) {
    .blog-grid.has-lead .blog-card:first-child { grid-column: 1 / -1; }
    .blog-grid.has-lead .blog-card:first-child:has(.blog-card-image) > a { grid-template-rows: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .blog-grid.has-lead .blog-card:first-child .blog-card-image { aspect-ratio: auto; min-height: 360px; }
    .blog-grid.has-lead .blog-card:first-child .blog-card-body { align-content: center; padding: clamp(28px, 3.4vw, 52px); }
    .blog-grid.has-lead .blog-card:first-child h2 { font-size: clamp(34px, 3.4vw, 52px); }
    .blog-grid.has-lead .blog-card:first-child .blog-teaser { max-width: 70ch; font-size: 18px; }
}

.blog-empty { text-align: left; }
.blog-empty h1, .blog-empty h2 { margin-top: 0; }
.blog-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }

.blog-article { max-width: 760px; margin: 0 auto; width: 100%; }
.blog-article-head { display: grid; gap: 14px; }
.blog-article-head .link-arrow { justify-self: start; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.blog-article-head h1 { margin: 0; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.03; overflow-wrap: anywhere; }
.blog-article-head .blog-date { margin: 0; }
.blog-article-image { margin: clamp(22px, 3vw, 36px) 0 0; }
.blog-article-image img { width: 100%; height: auto; max-height: 78svh; object-fit: cover; border-radius: 22px; display: block; }
.blog-article-text { margin-top: clamp(22px, 3vw, 36px); font-size: clamp(17px, 1.25vw, 19px); line-height: 1.8; color: #FFFFFF; overflow-wrap: anywhere; }
.blog-article-text p { margin: 0 0 1.25em; }
.blog-article-text a { color: var(--warm); }
.blog-draft { margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--line-strong); background: rgba(247, 150, 58, .1); }
.blog-draft a { color: var(--warm); font-weight: 600; }
.blog-more { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 48px); }
.blog-more > h2 { margin: 0 0 20px; font-size: clamp(28px, 2.6vw, 40px); }

/* Startseite */
.news { padding: clamp(56px, 8vw, 120px) var(--gutter); }
.news .section-head { margin-bottom: clamp(22px, 3vw, 36px); }

@media (prefers-reduced-motion: reduce) {
    .blog-card, .blog-card-image img { transition: none; }
}
