/* Ergaenzungen fuer die Kirby-Fassung (10.11.2026). styles.css bleibt 1:1 aus der Vorschau. */

/* Startseite: Titelbild-Slider, harter Bildwechsel, Schrift blendet weich ein/aus, duenne Pfeile ohne Punkte */
.home-slider { position: relative; }
.home-slider .home-hero[hidden] { display: none; }
.home-slider .home-hero__text { animation: gtw-text-in .7s ease-in-out both; }
.home-slider.is-leaving .home-hero__text { animation: gtw-text-out .35s ease-in-out both; }
@keyframes gtw-text-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gtw-text-out { from { opacity: 1; } to { opacity: 0; } }
.home-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 3rem; height: 5rem;
  padding: .5rem; border: 0; background: none; color: inherit; cursor: pointer; }
.home-slider__arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1; }
.home-slider__arrow--prev { left: 1.2rem; }
.home-slider__arrow--next { right: 1.2rem; }
.home-slider { color: #fff; }
@media (max-width: 760px) { .home-slider__arrow { width: 2rem; height: 3.5rem; } }

/* Satz unter dem Titelbild (fuehrt zu About) */
.home-about { max-width: 1400px; margin: 3rem auto 0; padding: 0 var(--pad, 35px); font-size: var(--fs-medium, 1.28rem); font-weight: 700; }
.home-about a { color: inherit; text-decoration: none; }

/* Biografie: ein Textfeld, im Browser in 3 Spalten umbrochen (vorher feste Spalten aus Visual Composer) */
.artist-bio__cols.gtw-cols-3 { display: block; column-count: 3; column-gap: 3rem; }
.artist-bio__cols.gtw-cols-3 .artist-bio__col { display: contents; }
.artist-bio__cols.gtw-cols-3 h3, .artist-bio__cols.gtw-cols-3 h4 { break-after: avoid; }
.artist-bio__cols.gtw-cols-3 p, .artist-bio__cols.gtw-cols-3 img { break-inside: avoid; }
@media (max-width: 900px) { .artist-bio__cols.gtw-cols-3 { column-count: 2; } }
@media (max-width: 560px) { .artist-bio__cols.gtw-cols-3 { column-count: 1; } }

/* News: Jahresfilter (10.11.2026) – fette Fassung reservieren wie beim Kuenstler-Filter */
.ev-filter[data-filter="year"] .fl { display: inline-flex; flex-direction: column; align-items: center; }
.ev-filter[data-filter="year"] .fl::after { content: attr(data-l); font-weight: 900; height: 0; overflow: hidden; visibility: hidden; }
.news-filters .ev-filter + .ev-filter { margin-top: .9rem; }
.news-empty { margin: 0 0 4rem; color: #6b6b6b; }
.ev-filter[data-filter="year"] { gap: .3rem 0; max-width: 1040px; margin: 0 auto; }
.ev-filter[data-filter="year"] button {
  font-size: var(--fs-medium); font-weight: 400; letter-spacing: .01em; text-transform: none;
  color: #8a8a8a; border-bottom-width: 2px; line-height: 1.3; white-space: nowrap;
}
.ev-filter[data-filter="year"] button:not(:last-child)::after { content: "/"; display: inline-block; color: #c8c8c8; margin: 0 .55em; font-weight: 400; }
.ev-filter[data-filter="year"] button:hover { color: #111; border-bottom-color: transparent; }
.ev-filter[data-filter="year"] button[aria-pressed="true"] { color: #111; font-weight: 900; border-bottom-color: transparent; }

/* Exhibitions-Seite: immer 3 Spalten; nur 1 oder 2 Ausstellungen im Reiter -> gleich gross, zentriert (12.11.2026).
   Raster mit 6 halben Spalten, jede Kachel belegt 2; die erste sichtbare Kachel wird bei 1/2 Kacheln eingerueckt. */
.ex-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ex-grid > .card { grid-column: span 2; }
.ex-grid[data-count="1"] > .card.is-first { grid-column: 3 / span 2; }
.ex-grid[data-count="2"] > .card.is-first { grid-column: 2 / span 2; }
@media (max-width: 900px) {
  .ex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ex-grid[data-count="2"] > .card.is-first { grid-column: span 2; }
  .ex-grid[data-count="1"] > .card.is-first { grid-column: 2 / span 2; }
}

/* ---------- Events als Raster mit Filtern (12.11.2026) ---------- */
.ev-bar { position: relative; }
.ev-bar[hidden], .ev-panel[hidden], .ev-dd__list[hidden], .ev-empty[hidden], .ev-toggle__n[hidden] { display: none; }
.ev-tabs a[hidden] { display: none; }
.ev-toggle { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: .4rem; background: none; border: 0; padding: .2rem; color: #111; cursor: pointer; }
.ev-toggle svg { width: 28px; height: 22px; }
.ev-toggle__n { min-width: 1.3em; height: 1.3em; border-radius: 50%; background: #111; color: #fff; font-size: .75rem; font-weight: 900; line-height: 1.3em; text-align: center; }
.ev-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.25rem; margin: 2.5rem 0 0; padding: 1.5rem 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.ev-panel__label, .ev-dd__btn, .ev-clear { font: inherit; font-size: .9rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ev-panel__label { margin-right: .5rem; }
.ev-dd { position: relative; }
.ev-dd__btn { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-width: 17rem; padding: .95rem 1.2rem; background: #fff; border: 1px solid #111; color: #111; cursor: pointer; text-align: left; }
.ev-dd__chev { width: 14px; height: 9px; flex: none; transition: transform .2s; }
.ev-dd__btn[aria-expanded="true"] .ev-dd__chev { transform: rotate(180deg); }
.ev-dd.is-set .ev-dd__btn { background: #111; color: #fff; }
.ev-dd__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 1px); max-height: 22rem; overflow-y: auto; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid #111; }
.ev-dd__list button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .85rem 1.2rem; background: none; border: 0; border-bottom: 1px solid #eee; font: inherit; font-size: .9rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: #111; text-align: left; cursor: pointer; }
.ev-dd__list li:last-child button { border-bottom: 0; }
.ev-dd__list button:hover:not(:disabled) { background: #f4f4f4; }
.ev-dd__list button[aria-selected="true"] { font-weight: 900; }
.ev-dd__list button:disabled { color: #c4c4c4; cursor: default; }
.ev-dd__list button:disabled .ev-dot { opacity: .35; }
.ev-dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; flex: none; }
.ev-clear { background: none; border: 0; padding: .4rem 0; color: #111; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; margin-left: .5rem; }
.ev-clear:disabled { color: #c4c4c4; cursor: default; }
.ev-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1rem; }
.ev-card .card__media { position: relative; }
.ev-card__tag { position: absolute; left: 0; top: 0; padding: .45em .8em; font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.ev-card__venue { color: #6b6b6b; }
.ev-empty { text-align: center; color: #6b6b6b; margin: 2rem 0 5rem; }
@media (max-width: 1100px) { .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-toggle { position: static; margin: 1.5rem auto 0; }
  .ev-dd, .ev-dd__btn { width: 100%; min-width: 0; }
  .ev-panel { flex-direction: column; align-items: stretch; }
  .ev-panel__label { text-align: center; margin: 0; }
}
@media (max-width: 560px) { .ev-tabs { gap: 1.4rem; } .ev-tabs a { font-size: 14px; } }

/* Biografie: Ueberschriften immer gleich, auch wenn im Panel fett markiert (13.11.2026) */
.artist-bio__col h4 strong, .artist-bio__col h4 b { font-weight: inherit; }
.artist-bio__col h3 { font-size: 1rem; font-weight: 700; text-transform: none; margin: 2rem 0 .8rem; }
.artist-bio__col h3:first-child { margin-top: 0; }

/* Abstand vor Related News / Related Exhibitions (17.11.2026): etwa doppelter Innenabstand,
   die Ueberschrift bleibt auf ueblichen Bildschirmen unten angeschnitten sichtbar */
.related { margin-top: clamp(5rem, 8vw, 8rem); }

/* 17.11.2026: Menue offen bei eingerastetem Untermenue -> Kopf trotzdem schwarz (header-docked gewann sonst) */
html.menu-open.header-docked .site-head { background: #000; color: #fff; }

/* 20.11.2026: Zusatzzeile unter dem Ausstellungstitel (Panel "Subtitle", alt: ACF "description") */
.ex-hero__desc { margin: 1.6rem auto 0; max-width: 46rem; font-size: 1.1rem; font-weight: 400; line-height: 1.45; text-wrap: balance; }
.ex-hero__desc + .ex-hero__dates { margin-top: 1.4rem; }

/* 23.11.2026: Werk-Kachel mit farbigem Grund (Feld "Tile background"), wie die frueheren Indexbilder:
   ganze Arbeit sichtbar, mittig im 3:2-Feld, kein zusaetzlicher Rand (nur der Rand des Fotos) */
.ex-section--works .ex-figure__img--tile { box-sizing: border-box; padding: 0; }
