.ae-wrap { margin: 1em 0; }
.ae-ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; margin-right: .4em; }

.ae-nav ul { list-style: none; margin: 0 0 1.5em; padding: 0; display: flex; flex-wrap: wrap; gap: .5em; }
.ae-nav a { display: inline-block; padding: .25em .75em; border: 1px solid currentColor; border-radius: 3px; text-decoration: none; }
.ae-nav a.ae-aktiv { font-weight: 700; text-decoration: underline; }

.ae-show { margin: 0 0 2.5em; padding-bottom: 1.5em; border-bottom: 1px solid rgba(128, 128, 128, .35); }
.ae-titel { margin: 0 0 .5em; }

/* Kopfdaten: hervorgehoben vor dem Bericht. Farbe über --ae-akzent im Theme anpassbar. */
.ae-meta { display: flex; flex-wrap: wrap; gap: 1em 2.25em; margin: 0 0 1.75em; padding: 1.1em 1.4em; background: rgba(128, 128, 128, .09); border-left: 5px solid var(--ae-akzent, currentColor); border-radius: 0 4px 4px 0; }
.ae-meta-item { display: flex; flex-direction: column; gap: .15em; min-width: 8em; }
.ae-meta dt { display: flex; align-items: center; margin: 0; font-size: .75em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.ae-meta dd { margin: 0; font-size: 1.15em; font-weight: 600; line-height: 1.3; }

.ae-tabelle-wrap { overflow-x: auto; margin: 0 0 1em; }
.ae-tabelle { width: 100%; border-collapse: collapse; }
.ae-tabelle th, .ae-tabelle td { padding: .4em .6em; text-align: left; border-bottom: 1px solid rgba(128, 128, 128, .35); vertical-align: top; }
.ae-tabelle thead th { border-bottom-width: 2px; }

.ae-bericht { margin-top: 1em; }
.ae-bericht summary { cursor: pointer; font-weight: 700; }
.ae-bericht img { max-width: 100%; height: auto; }
.ae-bericht { display: flow-root; } /* Bilder mit Textumfluss bleiben im Bericht, Tabelle und Navigation beginnen darunter */

.ae-leer { font-style: italic; }

@media (max-width: 600px) {
	.ae-tabelle thead { position: absolute; left: -9999px; }
	.ae-tabelle, .ae-tabelle tbody, .ae-tabelle tr, .ae-tabelle td { display: block; width: 100%; }
	.ae-tabelle tr { margin-bottom: .75em; border-bottom: 2px solid rgba(128, 128, 128, .35); }
	.ae-tabelle td { border-bottom: 0; padding: .2em 0; }
	.ae-tabelle td::before { content: attr(data-label) ": "; font-weight: 700; }
}

/* Übersichtsliste mit Filtern */
.ae-filterbox { margin: 0 0 1.5em; border: 1px solid rgba(128, 128, 128, .35); border-radius: 6px; background: rgba(128, 128, 128, .06); }
.ae-filter-toggle { display: flex; align-items: center; gap: .5em; width: 100%; padding: .8em 1.1em; font: inherit; font-weight: 700; color: inherit; text-align: left; background: transparent; border: 0; cursor: pointer; }
.ae-filter-toggle .ae-ico { margin: 0; }
.ae-filter-toggle .ae-chevron { margin-left: auto; transition: transform .2s; }
.ae-filterbox.ae-offen .ae-chevron { transform: rotate(180deg); }
.ae-filter-zahl { display: inline-block; min-width: 1.5em; padding: 0 .4em; font-size: .85em; line-height: 1.5em; text-align: center; color: #fff; background: var(--ae-akzent, #2b2b2b); border-radius: 1em; }
.ae-filter-panel { display: none; padding: 0 1.1em 1.1em; }
.ae-filterbox.ae-offen .ae-filter-panel { display: block; }
.ae-filter { margin: 0; }
.ae-filter-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5em, 1fr)); gap: .9em 1.1em; }
.ae-feld { display: flex; flex-direction: column; gap: .35em; min-width: 0; }
.ae-feld label { display: flex; align-items: center; font-size: .75em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.ae-feld select, .ae-feld input[type="search"] { width: 100%; box-sizing: border-box; min-height: 2.6em; padding: .45em .7em; font: inherit; color: inherit; background-color: #fff; border: 1px solid rgba(128, 128, 128, .55); border-radius: 4px; }
.ae-feld select:focus, .ae-feld input[type="search"]:focus { outline: 2px solid var(--ae-akzent, currentColor); outline-offset: 1px; }
.ae-feld-suche { grid-column: span 2; }
.ae-filter-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: .75em 1.25em; margin-top: 1em; }
.ae-btn { display: inline-flex; align-items: center; min-height: 2.6em; padding: .45em 1.6em; font: inherit; font-weight: 700; color: #fff; background: var(--ae-akzent, #2b2b2b); border: 0; border-radius: 4px; cursor: pointer; }
.ae-btn:hover, .ae-btn:focus { filter: brightness(1.25); }
.ae-reset { display: inline-flex; align-items: center; font-size: .95em; }
@media (max-width: 600px) { .ae-feld-suche { grid-column: auto; } }
.ae-anzahl { margin: .75em 0 0; opacity: .8; font-size: .95em; }
.ae-seiten ul.page-numbers { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; margin: 1em 0; padding: 0; }
.ae-seiten .page-numbers { display: inline-block; padding: .2em .65em; border: 1px solid currentColor; border-radius: 3px; text-decoration: none; }
.ae-seiten .page-numbers.current { font-weight: 700; text-decoration: underline; }

/* Neueste Ausstellungen */
.ae-neueste { list-style: none; margin: 0 0 1em; padding: 0; }
.ae-neueste li { margin: 0 0 .6em; }
.ae-n-datum { font-weight: 700; }
.ae-n-art { opacity: .75; font-size: .9em; }
.ae-n-auszug { display: block; opacity: .85; }

/* Ergebnistabelle auf der eigenen Seite */
.ae-tabelle-titel { margin: 2em 0 .5em; }
.ae-mehr { white-space: nowrap; text-align: right; }
.ae-mehr a { font-weight: 600; }
.ae-liste-tabelle td:first-child a { font-weight: 600; }

/* Blättern zwischen Ausstellungen */
.ae-single::after, .ae-wrap::after { content: ""; display: table; clear: both; }
.ae-einzel-nav { clear: both; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1em; margin: 3em 0 1em; padding-top: 1.5em; border-top: 1px solid rgba(128, 128, 128, .35); }
.ae-einzel-nav a { display: flex; flex-direction: column; gap: .2em; text-decoration: none; }
.ae-nav-neu { text-align: right; }
.ae-nav-label { font-size: .75em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.ae-nav-titel { font-weight: 600; line-height: 1.3; }
.ae-nav-uebersicht { align-self: center; padding: .4em 1em; border: 1px solid currentColor; border-radius: 3px; text-align: center; }
@media (max-width: 600px) {
	.ae-einzel-nav { grid-template-columns: 1fr; }
	.ae-nav-neu { text-align: left; }
	.ae-nav-uebersicht { order: 3; }
	.ae-nav-leer { display: none; }
}

.ae-liste-tabelle .ae-sp-datum { white-space: nowrap; width: 8.5em; font-variant-numeric: tabular-nums; }
.ae-liste-tabelle thead th { white-space: nowrap; }
.ae-liste-tabelle thead .ae-ico { opacity: .7; }
.ae-liste-tabelle .ae-mehr a { display: inline-flex; align-items: center; }
.ae-liste-tabelle .ae-mehr .ae-ico { margin-left: .4em; margin-right: 0; }
.ae-n-datum { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ae-tabelle-titel { display: flex; align-items: center; }
.ae-einzel-nav .ae-nav-label { display: flex; align-items: center; }
.ae-nav-neu .ae-nav-label { justify-content: flex-end; }
.ae-nav-uebersicht { display: inline-flex; align-items: center; }
.ae-nav-uebersicht .ae-ico { margin-left: 0; margin-right: .4em; }
@media (prefers-reduced-motion: reduce) { .ae-filter-toggle .ae-chevron { transition: none; } }
.ae-nav-neu .ae-nav-label .ae-ico { margin: 0 0 0 .4em; }
.ae-nav-alt .ae-nav-label .ae-ico { margin: 0 .4em 0 0; }
