/* ==========================================================================
   artinfo24 – layout.css
   Seiten-Layout für die CMS-Templates (Header, Hero, Grids, Footer).
   Ergänzt styleguide.css (Design-Tokens) - beide Dateien werden zusammen
   eingebunden, siehe templates/layout.php.
   ========================================================================== */

/* Header */
header { border-bottom: var(--hairline); padding: 20px 0 0; }
header .top-row { display: flex; align-items: center; justify-content: center; padding-bottom: 20px; }
nav.main-nav { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 12px; gap: 32px; font-family: var(--font-ui); font-size: 15px; font-weight: 500; border-top: var(--hairline); padding: 16px 0; }
nav.main-nav a:hover { color: var(--oxblood); }
/* Menüpunkt ohne eigene URL (dient nur als Untermenü-Überschrift, z.B.
   "Verzeichnis") - optisch wie ein Link, aber nicht klickbar. */
.nav-label-only { color: var(--ink); cursor: default; }

/* Hamburger-Button - nur auf Mobile sichtbar (siehe Media Query unten).
   position/z-index HÖHER als das Overlay (unten), damit der Button beim
   geöffneten Menü sichtbar/klickbar bleibt (sonst läge das Overlay
   optisch darüber und man könnte nicht mehr schließen). */
.mobile-nav-toggle {
  display: none;
  position: relative;
  z-index: 101;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  margin-left: auto;
}
.mobile-nav-toggle-bar { display: block; width: 100%; height: 2px; background: var(--ink); }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-bar:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Vollbild-Menü-Overlay - liegt immer im DOM, standardmäßig unsichtbar.
   Wird nur über die .is-open-Klasse (per JS) eingeblendet. */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--gallery-white);
  overflow-y: auto;
  padding: 96px 24px 40px;
}
.mobile-nav-overlay.is-open { display: block; }
body.mobile-nav-locked { overflow: hidden; }

.mobile-nav-list { display: flex; flex-direction: column; font-family: var(--font-ui); }
.mobile-nav-item { border-bottom: var(--hairline); }
.mobile-nav-item-row { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-item-row a { display: block; padding: 16px 4px; font-size: 17px; font-weight: 500; flex: 1; }
.mobile-nav-item-row .nav-label-only { display: block; padding: 16px 4px; font-size: 17px; font-weight: 500; flex: 1; }
.mobile-nav-expand {
  border: none; background: none; padding: 16px 8px; cursor: pointer; color: var(--stone-text);
}
.mobile-nav-expand-icon { display: inline-block; font-size: 13px; transition: transform 0.15s ease; }
.mobile-nav-item.is-expanded .mobile-nav-expand-icon { transform: rotate(180deg); }
.mobile-submenu { display: none; flex-direction: column; padding: 0 0 12px 12px; }
.mobile-nav-item.is-expanded .mobile-submenu { display: flex; }
.mobile-submenu a { padding: 10px 4px; font-size: 15px; color: var(--stone-text); }
.nav-cta { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.5px; border: 1px solid var(--ink); padding: 6px 14px; }

/* Untermenüs (Hauptmenü) - klappt beim Überfahren mit der Maus aus */
.nav-item-wrap { position: relative; }
.nav-item-wrap.has-submenu > a::after { content: ' ▾'; font-size: 11px; vertical-align: middle; }
.nav-item-wrap .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: var(--gallery-white);
  border: var(--hairline);
  box-shadow: 0 8px 20px rgba(27, 27, 24, 0.08);
  padding: 8px 0;
  min-width: 200px;
  margin-top: 12px;
}
.nav-item-wrap.has-submenu:hover .submenu,
.nav-item-wrap.has-submenu:focus-within .submenu { display: block; }
.nav-item-wrap .submenu a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
  font-weight: 400;
}
.nav-item-wrap .submenu a:hover { background: var(--stone-light); }

/* Hero */
.hero { padding: 88px 0 72px; border-bottom: var(--hairline); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--oxblood); margin-bottom: 20px; }
.hero h1 { font-size: 52px; max-width: 720px; }
.hero-sub { font-family: var(--font-ui); font-size: 17px; color: var(--stone-text); max-width: 480px; margin: 24px 0 32px; }
.hero-actions { display: flex; gap: 16px; }
.btn { font-family: var(--font-ui); font-size: 15px; font-weight: 500; padding: 13px 24px; display: inline-block; }
.btn-primary { background: var(--ink); color: var(--gallery-white); }
.btn-secondary { border: 1px solid var(--stone-light); color: var(--ink); }

/* Section headings */
.section { padding: 64px 0; }
.section + .section { border-top: var(--hairline); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.section-head a { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.5px; color: var(--stone-text); }

.kat-tag { margin-bottom: 14px; }

/* News grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.news-img { background: var(--stone-light); margin-bottom: 16px; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.news-card h3 { margin-bottom: 10px; }
.news-card p { font-family: var(--font-content); font-size: 15px; color: var(--stone-text); line-height: 1.6; }
.news-date { font-family: var(--font-mono); font-size: 12px; color: var(--stone-text); margin-top: 12px; display: block; }

/* Provider cards */
.provider-card { border-top: var(--hairline); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
a.provider-card { color: inherit; text-decoration: none; }
.provider-card-premium { background: var(--oxblood-bg); padding-left: 16px; padding-right: 16px; margin: 0 -16px; border-top-color: transparent; }
.provider-card-premium + .provider-card-premium { border-top: 1px solid rgba(107, 20, 32, 0.15); }
.provider-info { display: flex; align-items: center; gap: 20px; }
.provider-avatar { width: 56px; height: 56px; background: var(--stone-light); flex-shrink: 0; display: block; object-fit: cover; }
.provider-name { font-family: var(--font-heading); font-weight: 500; font-size: 18px; letter-spacing: 0.2px; }
.provider-meta { font-family: var(--font-ui); font-size: 14px; color: var(--stone-text); margin-top: 3px; }

/* Footer */
footer { border-top: var(--hairline); padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer p { font-family: var(--font-ui); font-size: 14px; color: var(--stone-text); max-width: 260px; }
footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--stone-text); margin-bottom: 14px; }
footer ul { list-style: none; font-size: 14px; }
footer li { margin-bottom: 8px; }
.footer-bottom { font-family: var(--font-mono); font-size: 12px; color: var(--stone-text); margin-top: 48px; }

/* ---------- Anbieterprofil ---------- */
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--stone-text); padding: 20px 0; }
.breadcrumb a:hover { color: var(--oxblood); }

.profile-head {
  display: grid; grid-template-columns: 120px 1fr 280px; gap: 40px; align-items: start;
  text-align: left; padding-bottom: 40px; border-bottom: var(--hairline);
}
.logo-box { width: 120px; height: 120px; background: var(--stone-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; color: var(--gallery-white); object-fit: cover; }
.profile-head h1 { font-size: 2rem; margin-bottom: 6px; }
.profile-category { font-family: var(--font-ui); font-size: 15px; color: var(--stone-text); margin-bottom: 12px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--font-ui); font-size: 14px; margin-top: 12px; }
.profile-links a { color: var(--oxblood); }
.profile-links a:hover { text-decoration: underline; }
.profile-contact { font-family: var(--font-ui); font-size: 14px; color: var(--stone-text); line-height: 1.6; }
.profile-head-hours { border: var(--hairline); padding: 20px; }
.profile-head-hours h3 { font-size: 0.9375rem; margin-bottom: 10px; }
.profile-hours-text { font-family: var(--font-ui); font-size: 14px; color: var(--stone-text); line-height: 1.7; }

.profile-body { padding: 48px 0; }
.about-text { font-family: var(--font-content); font-size: 1rem; line-height: 1.7; color: var(--ink); margin-bottom: 40px; }
h2.block-title, h3.block-title { font-size: 1.375rem; margin-bottom: 20px; }

/* Künstlerverzeichnis: zweispaltige alphabetische Liste (Hauptseite und
   paginiertes Gesamtverzeichnis /kuenstler/{n}.html) */
.artist-columns { columns: 2; column-gap: 48px; margin-top: 8px; }
.artist-columns a {
  display: block; padding: 10px 0; border-top: var(--hairline); color: inherit;
  text-decoration: none; break-inside: avoid;
}
.artist-columns a:first-child { border-top: none; }
.artist-columns a:hover { color: var(--oxblood); }
@media (max-width: 600px) {
  .artist-columns { columns: 1; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Städte-Filter (Anbieter-Verzeichnis): 4-spaltiges Grid auf Desktop,
   fällt auf ein natives <select> zurück, sobald das Grid per Media Query
   ausgeblendet wird (siehe unten). */
.city-filter { margin-top: 40px; padding-bottom: 32px; border-bottom: var(--hairline); }
.city-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: column;
  column-gap: 32px; row-gap: 10px;
}
.city-grid-link {
  font-family: var(--font-ui); font-size: 15px; color: var(--ink); text-decoration: none;
  display: flex; justify-content: space-between; gap: 8px; padding: 4px 0;
}
.city-grid-link:hover { color: var(--oxblood); }
.city-select { display: none; }

/* Monats-Dropdown auf den Ausstellungsseiten (immer sichtbar, nicht nur
   mobil - anders als .city-select, das nur den Grid-Fallback ersetzt).
   Zentriert, mit eigenem Pfeil-Icon statt Browser-Default. */
.month-select-wrap { max-width: 380px; margin: 28px auto 0; text-align: center; }
.month-select {
  display: block; width: 100%; font-family: var(--font-ui); font-size: 15px; color: var(--ink);
  background-color: var(--gallery-white); border: var(--hairline); padding: 13px 40px 13px 18px;
  appearance: none; cursor: pointer; text-align: center; text-align-last: center;
  transition: border-color 0.2s ease, color 0.2s ease;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%231B1B18' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.month-select:hover { border-color: var(--oxblood); }
.month-select:focus { outline: none; border-color: var(--oxblood); }

/* "Weitere Städte"-Zeile auf den Ausstellungsseiten: auf Mobil als
   Dropdown statt der Inline-Linkliste (gleiches Muster wie city-grid /
   city-select auf der Anbieter-Kategorieseite). */
.side-links-select { display: none; }

/* Generisches Muster: eine .pagination-Zeile mit "pagination-with-select"
   bekommt auf Mobil ein <select data-navigate-select> als Ersatz (z.B.
   Künstlerverzeichnis-Buchstabenbereiche/-Seiten). Nur .pagination-with-
   select wird ausgeblendet, die normale .pagination (z.B. News-Archiv)
   bleibt davon unberührt. */
.nav-select { display: none; }

@media (max-width: 700px) {
  .city-grid { display: none; }
  .city-select {
    display: block; width: 100%; font-family: var(--font-ui); font-size: 15px; color: var(--ink);
    background: var(--gallery-white); border: var(--hairline); padding: 12px 14px; appearance: none;
  }
  .side-links-inline { display: none; }
  .side-links-select {
    display: block; width: 100%; font-family: var(--font-ui); font-size: 15px; color: var(--ink);
    background: var(--gallery-white); border: var(--hairline); padding: 12px 14px; appearance: none;
  }
  .pagination-with-select { display: none; }
  .nav-select {
    display: block; width: 100%; font-family: var(--font-ui); font-size: 15px; color: var(--ink);
    background: var(--gallery-white); border: var(--hairline); padding: 12px 14px; appearance: none;
  }
}

/* Anbieterliste (links) + Termine-Spalte (rechts) auf Kategorie-
   und Kategorie-Stadt-Seiten */
.category-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.category-sidebar .event-tabs { margin-bottom: 0; }
.event-sidebar-list { display: flex; flex-direction: column; gap: 20px; }
.event-sidebar-item { display: flex; gap: 14px; align-items: flex-start; color: inherit; text-decoration: none; }
.event-sidebar-img { width: 72px; height: 72px; background: var(--stone-light); object-fit: cover; flex-shrink: 0; display: block; }
.event-sidebar-title { font-family: var(--font-ui); font-size: 14px; font-weight: 500; line-height: 1.4; }
.event-sidebar-item:hover .event-sidebar-title { color: var(--oxblood); }
@media (max-width: 900px) {
  .category-layout { grid-template-columns: 1fr; gap: 40px; }
}

.event-tabs { display: flex; gap: 24px; border-bottom: var(--hairline); margin-bottom: 24px; }
.tab-btn {
  font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem; text-transform: uppercase;
  letter-spacing: 0.2px; background: none; border: none; border-bottom: 2px solid transparent;
  padding: 0 0 12px; margin-bottom: -1px; cursor: pointer; color: var(--stone-text);
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.is-active { color: var(--ink); border-bottom-color: var(--oxblood); }

.event-list-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: var(--hairline); align-items: baseline; }
.event-list-row:first-child { border-top: none; }
.event-list-date { font-family: var(--font-mono); font-size: 13px; color: var(--stone-text); min-width: 110px; flex-shrink: 0; }
.event-list-title { font-family: var(--font-ui); font-size: 15px; font-weight: 500; }

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }

/* Einheitliche Vorschaubild-Höhe für ALLE Bilder in Raster-Ansichten
   (Kunstshop, Anbieter-Profile, Künstlerseiten, Städte-Termine, Startseite,
   Auktionen-Übersicht usw.) - unabhängig vom Seitenverhältnis des
   Originalbilds (object-fit: cover schneidet passend zu). Bewusst nur
   INNERHALB von .work-grid, NICHT am allgemeinen .work-img selbst - auf
   Werk-/Termin-Detailseiten wird dieselbe Klasse für das große Hauptbild
   verwendet, das weiterhin sein natürliches Seitenverhältnis behalten soll. */
.work-grid .work-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.work-grid a { color: inherit; text-decoration: none; display: block; }
.work-img { background: var(--stone-light); margin: 0 auto 10px; display: block; max-width: 100%; height: auto; }
.work-title { font-family: var(--font-ui); font-size: 13px; font-weight: 500; }
.work-price { font-family: var(--font-mono); font-size: 12px; color: var(--stone-text); margin-top: 2px; }

/* Kunstshop-Kategorieseite: bewusst eigene, "luftigere" Variante statt die
   allgemeine .work-grid zu verändern (die wird auch auf Anbieterprofil,
   Künstler- und Ausstellungsseiten verwendet und soll dort unverändert
   bleiben). 3 statt 4 Spalten, mehr Abstand zwischen Einträgen/Zeilen,
   dezenter Hover statt hartem Kante-an-Kante-Raster. */
.work-grid.work-grid-airy { grid-template-columns: repeat(3, 1fr); gap: 56px 48px; margin-top: 56px; }
.work-grid-airy .work-img { margin-bottom: 20px; }
.work-grid-airy .work-title { font-size: 14.5px; letter-spacing: 0.2px; }
.work-grid-airy .work-price { margin-top: 5px; }
.work-grid-airy a { transition: opacity 0.2s ease; }
.work-grid-airy a:hover { opacity: 0.72; }
@media (max-width: 900px) {
  .work-grid.work-grid-airy { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}
@media (max-width: 600px) {
  .work-grid.work-grid-airy { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
}

/* ---------- Ausstellungstermin-Detailseite ---------- */
.event-past-banner {
  font-family: var(--font-ui); font-size: 14px; color: var(--stone-text);
  background: var(--paper-line); padding: 10px 16px; margin-bottom: 24px; display: inline-block;
}
.event-detail-head { padding-bottom: 32px; border-bottom: var(--hairline); }
.event-detail-head h1 { font-size: 2rem; margin: 8px 0; }
.event-h1-meta { font-family: var(--font-ui); font-weight: 400; font-size: 1.125rem; color: var(--stone-text); }
.event-top-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; padding: 40px 0; }
.event-content { padding: 0 10%; margin: 24px 0; }
.event-sidebar-date { font-family: var(--font-ui); font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.6; margin-bottom: 16px; }
.event-sidebar-artist { font-family: var(--font-ui); font-size: 14px; color: var(--stone-text); line-height: 1.6; margin-bottom: 20px; }
@media (max-width: 900px) {
  .event-top-grid { grid-template-columns: 1fr; gap: 32px; }
  .event-content, .topic-content { padding: 0; }
}

@media (max-width: 900px) {
  .profile-head { grid-template-columns: 100px 1fr; }
  .profile-head-hours { grid-column: 1 / -1; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .profile-head { grid-template-columns: 1fr; }
  .profile-head h1 { font-size: 1.625rem; }
  .profile-body { padding: 32px 0; }
  .work-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Responsiv: Tablet (≤ 900px) ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 38px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

/* ---------- Responsiv: Mobile (≤ 600px) ---------- */
@media (max-width: 600px) {
  .wordmark { font-size: 20px; }
  nav.main-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .grid-3 { grid-template-columns: 1fr; gap: 32px; }
  .provider-card { flex-wrap: wrap; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; row-gap: 28px; }
}

/* ---------- Modal (Kontaktformular) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal-overlay { position: absolute; inset: 0; background: rgba(27, 27, 24, 0.6); }
.modal-box {
  position: relative; max-width: 480px; margin: 6vh auto; background: var(--gallery-white);
  padding: 32px; max-height: 88vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  font-size: 24px; line-height: 1; cursor: pointer; color: var(--stone-text);
}
.modal-close:hover { color: var(--ink); }
.modal-box h3 { font-size: 1.25rem; margin-bottom: 20px; }
.modal-status { font-family: var(--font-ui); font-size: 14px; padding: 10px 14px; margin-bottom: 20px; }
.modal-status-ok { background: var(--patina-bg); color: var(--patina); }
.modal-status-error { background: var(--oxblood-bg); color: var(--oxblood); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-family: var(--font-ui); font-size: 13px; color: var(--stone-text); display: flex; flex-direction: column; gap: 6px; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-ui); font-size: 14px; color: var(--ink); padding: 10px 12px;
  border: var(--hairline); background: var(--gallery-white);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--oxblood); outline-offset: 1px; }
.contact-form-honeypot { position: absolute; left: -9999px; }

/* ---------- News-Detailseite ---------- */
.news-detail-head { text-align: center; }
.news-detail-img { margin: 0 auto 24px; display: block; }
.news-subheadline { font-family: var(--font-heading); font-weight: 500; font-size: 1.375rem; margin-bottom: 16px; }
.news-teaser { font-family: var(--font-content); font-style: italic; font-size: 1.0625rem; color: var(--stone-text); margin-bottom: 20px; }
.news-content { background: #fff; padding-top: 24px; padding-bottom: 24px; }
.news-content .content-text { font-size: 1.15rem; }
.event-content .content-text a { color: var(--oxblood); }
.event-content .content-text a:hover { text-decoration: underline; }
a.news-card { color: inherit; text-decoration: none; display: block; }

/* ---------- Startseite: Magazin-Layout ---------- */
.mag-heading { text-align: center; font-size: 1.75rem; }
.mag-hero-wrap { padding: 40px 0 56px; }
.mag-hero { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.mag-hero-text { align-self: center; font-size: 1.0625rem; }
.mag-hero-split { grid-template-columns: 1.2fr 1fr; align-items: center; }
.mag-hero-img-col .news-img { margin-bottom: 0; }
.mag-hero-text-col { display: flex; flex-direction: column; justify-content: center; }
.mag-hero-text-col h2 { margin: 0 0 16px; font-size: 1.9rem; line-height: 1.2; }
.mag-hero-text-col .eyebrow { margin-bottom: 14px; }
.mag-hero-text-col .mag-hero-text { margin: 0; align-self: auto; }
.mag-section-teaser { font-size: 1.0625rem; margin: -8px 0 32px; max-width: 640px; }
.mag-section { padding: 56px 0; border-top: var(--hairline); }
.mag-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.mag-news-list { display: flex; flex-direction: column; }
.mag-news-list a {
  display: block; padding: 14px 0; border-top: var(--hairline); color: inherit;
  text-decoration: none; font-family: var(--font-ui); font-size: 15px; font-weight: 500; line-height: 1.4;
}
.mag-news-list a:first-child { border-top: none; }
.mag-news-list a:hover { color: var(--oxblood); }

/* Dreispaltige alphabetische Listen (Kunstthemen, Künstler auf der
   Startseite) - gleiches Prinzip wie .artist-columns, nur 3 statt 2 Spalten. */
.list-columns-3 { columns: 3; column-gap: 48px; margin-top: 8px; }
.list-columns-3 a {
  display: block; padding: 10px 0; border-top: var(--hairline); color: inherit;
  text-decoration: none; break-inside: avoid;
}
.list-columns-3 a:first-child { border-top: none; }
.list-columns-3 a:hover { color: var(--oxblood); }

@media (max-width: 900px) {
  .mag-hero { grid-template-columns: 1fr; gap: 32px; }
  .mag-row { grid-template-columns: 1fr; gap: 24px; }
  .list-columns-3 { columns: 2; }
}
@media (max-width: 600px) {
  .list-columns-3 { columns: 1; }
}


/* ---------- Paginierung ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 48px; padding-top: 24px; border-top: var(--hairline); font-family: var(--font-mono); font-size: 13px; }
.pagination a { color: var(--stone-text); padding: 8px 14px; border: var(--hairline); transition: border-color 0.15s, color 0.15s; }
.pagination a:hover { color: var(--ink); border-color: var(--ink); }
.pagination-current { color: var(--gallery-white); background: var(--ink); border: 1px solid var(--ink); padding: 8px 14px; }

/* Zurück/Kategorie-Home/Weiter auf den Archiv-Seiten: eigenständige, etwas größere Buttons */
.pagination-btn { padding: 12px 24px; border: 1px solid var(--ink); font-weight: 500; }
.pagination-btn:hover { background: var(--ink); color: var(--gallery-white); }
.pagination-home { border-color: var(--oxblood); color: var(--oxblood) !important; }
.pagination-home:hover { background: var(--oxblood); color: var(--gallery-white) !important; }

/* ---------- Themenseite ---------- */
.topic-subheadline { font-family: var(--font-heading); font-weight: 500; font-size: 1.375rem; color: var(--stone-text); margin-top: 8px; }
.topic-content { padding: 0 10%; }
