/* Articles, home page, article cards, Georgia box and article lists. */

/* ── Article Preview Bar ───────────────────── */
.article-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    background-color: var(--color-orange);
    color: var(--color-bg-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: var(--spacing-md);
}

.article-preview-bar a {
    color: var(--color-bg-white);
    text-decoration: underline;
}

.article-meta {
    color: var(--color-text-muted);
    font-size: 0.9em;
    margin-top: 0;
    margin-bottom: 2em;
    padding-bottom: 1.25em;
    border-bottom: 1px solid var(--color-hairline);
    font-variant-numeric: tabular-nums;
}

/* Reading column: ~70 characters instead of the full 1200px width, centered in the tile */
.sectionbox:has(> .article-body) > *,
.sectionbox:has(> .article-donate-btns) > * {
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.article-body {
    font-size: 1.05em;
    line-height: 1.65;
}

.article-body img {
    display: block;
    margin: 1.5em 0;
}

/* Don't break "(aktualisiert am …)" in the middle of the date */
.article-updated { white-space: nowrap; }

/* Article text (from Markdown). Its own container, because .sectionbox > :first-child
   does not apply here and "#" in Markdown would otherwise give a second, orange title h1. */
.article-body > :first-child { margin-top: 0; }
.article-body > :last-child { margin-bottom: 0; }

.article-body h1 {
    margin: 1.4em 0 0.35em;
    color: var(--color-brown);
    font-size: clamp(1.4em, 1.2em + 0.6vw, 1.75em);
}

.article-donate-btns {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.article-donate-btns a {
    width: 15%;
    min-width: 72px;
    transition: transform 0.3s var(--ease-out);
}

.article-donate-btns a:hover {
    transform: translateY(-2px);
}

.article-donate-btns img {
    border-radius: 0;
}

.article-donate-btns img {
    width: 100%;
    height: auto;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    align-items: flex-start;
}

.image-grid img {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    border-radius: 10px;
}

/* ── Home page (index.html) ─────────────────────────────────────── */
.home-hero {
    display: grid;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    align-items: center;
}

/* Long Gagalin line (capitals only): one step smaller than h1 */
.home-hero h1 {
    margin-bottom: 0.3em;
    font-size: clamp(1.75em, 1.25em + 1.8vw, 2.6em);
}

/* "Gerade in …": .pill with a pulsing dot
   (prefers-reduced-motion stops the animation globally) */
.home-live {
    margin: 0 0 1em;
}

.home-live-dot {
    flex-shrink: 0;
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    background: var(--color-orange);
    animation: home-live-pulse 2.4s var(--ease-out) infinite;
}

@keyframes home-live-pulse {
    0%       { box-shadow: 0 0 0 0 rgba(255, 77, 6, 0.45); }
    70%, 100% { box-shadow: 0 0 0 0.6em rgba(255, 77, 6, 0); }
}

.home-hero-media img { display: block; }

/* Three entry points: travel reports · Georgia · Simba */
.home-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1.25rem;
}

.home-path {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-card);
    background: var(--color-bg-sand);
    overflow: hidden;
    transition: box-shadow 0.35s var(--ease-out);
}

.home-path:hover,
.article-card:hover {
    box-shadow: 0 1px 2px rgba(31, 23, 18, 0.04), 0 16px 36px -14px rgba(31, 23, 18, 0.25);
}

.home-path-cover,
.article-card-cover {
    display: block;
    overflow: hidden;
    background: var(--color-bg-sand);
}

.home-path-cover { aspect-ratio: 4 / 3; }
.article-card-cover { aspect-ratio: 3 / 2; }

.home-path-cover img,
.article-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s var(--ease-out);
}

.home-path:hover .home-path-cover img,
.article-card:hover .article-card-cover img {
    transform: scale(1.04);
}

.home-path-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.1rem 1.25rem 1.3rem;
}

.home-path h3 {
    margin: 0 0 0.35em;
    font-size: 1.2em;
}

.home-path h3 a { color: var(--color-ink); }
.home-path h3 a:hover { color: var(--color-orange-ink); }

.home-path p { margin: 0; }

.home-path .home-path-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em 1.25em;
    margin-top: auto;
    padding-top: 0.9em;
    font-weight: 600;
}

.home-social {
    margin-top: 1.5em;
    color: var(--color-text-muted);
    font-size: 0.95em;
}

/* Tile header: heading left, "Alle … →" right (wraps on phones) */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4em 1.5em;
    margin-bottom: 1.25rem;
}

.section-head h2 { margin: 0; }

.link-more {
    font-weight: 600;
    white-space: nowrap;
}

/* "Alle Artikel aus A · B →": only the country names are links */
p.link-more {
    margin: 0;
    color: var(--color-text-muted);
    white-space: normal;
}

.section-subhead {
    margin: 1.75em 0 0;
}

/* ── Article cards (home page, "Mehr aus …", album page) ─────────── */
/* 280px: exactly three columns in the 1200px tile (250px would give four,
   and three cards would leave a gap on the right) */
.article-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.25rem;
}

.article-card {
    border-radius: var(--radius-card);
    background: var(--color-bg-sand);
    overflow: hidden;
    transition: box-shadow 0.35s var(--ease-out);
}

.article-card-link,
.article-card-link:hover {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

/* Articles without their own image: logo instead of a photo */
.article-card-cover .article-card-logo {
    object-fit: contain;
    padding: 12%;
}

.article-card-body {
    padding: 0.9rem 1.1rem 1.1rem;
}

.article-card-meta {
    margin: 0 0 0.3em;
    color: var(--color-text-muted);
    font-size: 0.85em;
    font-variant-numeric: tabular-nums;
}

/* Also as h2 (lists right below the page h1): text font instead of Gagalin */
.article-card-title {
    margin: 0;
    font-family: var(--font-family-base);
    letter-spacing: -0.012em;
    font-size: 1.08em;
    font-weight: 650;
    line-height: 1.3;
    color: var(--color-ink);
    transition: color var(--transition-fast);
}

.article-card-link:hover .article-card-title {
    color: var(--color-orange-ink);
}

.article-card-teaser {
    margin: 0.45em 0 0;
    font-size: 0.92em;
    line-height: 1.5;
}

/* ── Article end: Georgia offers ───────────────────────────────── */
.article-cta {
    display: grid;
    gap: 1.25rem 2rem;
    align-items: center;
    max-width: 44rem;
    margin: 0 auto;
}

.article-cta-cover {
    display: block;
    width: 120px;
}

.article-cta-cover img {
    display: block;
    border-radius: 6px;
    box-shadow: 0 14px 30px -14px rgba(31, 23, 18, 0.45);
}

.article-cta h2 { margin-top: 0; }

/* Phones: flatter images, otherwise the card list gets very long */
@media screen and (max-width: 650px) {
    .home-path-cover,
    .article-card-cover { aspect-ratio: 16 / 9; }
}

@media screen and (min-width: 651px) {
    .article-cta { grid-template-columns: 150px minmax(0, 1fr); }
    .article-cta-cover { width: 150px; }
}

@media screen and (min-width: 820px) {
    .home-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

/* ── Articles list page ─────────────────────────────────────────── */

.articles-list-header {
    margin-bottom: 1.25rem;
}

.articles-filter-label {
    color: var(--color-text-muted);
    font-size: 0.95em;
    margin: 0;
}

.articles-empty {
    color: var(--color-text-muted);
}
