/* --- Base ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f4;
  color: #271e11;
}
/* --- Site Frame ----------------------------------------------------- */
.site-header {
  padding: 1.5rem 2rem;
}
.site-title {
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #271e11;
}
.site-title:hover {
  opacity: 0.7;
}
.site-wrapper {
  max-width: min(80vh, calc(90vw - 0.5rem), 64rem);
  margin: 0 auto;
  padding: 0;
}
.site-wrapper--thing {
  max-width: min(80vh, calc(90vw - 0.5rem), 48rem);
}
.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #807a6b;
}
.site-footer__text {
  margin: 0;
  opacity: 0.8;
}
.site-footer__text a {
  color: #807a6b;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer__text a:hover {
  border-color: #807a6b;
}
.navicons {
  display: flex;
  gap: 0.5rem;
}
.navicons__icon {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.navicons__icon svg {
  width: 24px;
  height: 24px;
  display: block;
  transform: translateY(1px);
}
.navicons__icon:hover {
  opacity: 1;
  transform: translateY(1px);
}
.pagehead {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  margin-bottom: 1rem;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .pagehead {
    grid-template-columns: max-content 1fr;
    grid-template-rows: auto auto;
  }
  .pagehead__back-index {
    grid-column: 1;
    grid-row: 2;
  }
  .pagehead__meta-line {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .pagehead__navi {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}
.pagehead__meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  column-gap: 0.8rem;
  transform: translateX(2px);
}
.pagehead__title {
  font-weight: 500;
}
.pagehead__subtitle {
  font-weight: 400;
  color: #7a7568;
}
/* optional: kleine Unterschiede pro Kontext */
.pagehead--thing {
  min-width: 0;
}
.pagehead--tableau {
  min-width: 0;
}
/* --- thing Detail -------------------------------------------------- */
.thing {
  /* Sections */
  /* Meta */
  /* Resonance */
}
.thing__inner {
  margin-top: 1rem;
}
.thing__figure {
  margin: 0 0 1.75rem 0;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #e5e5e4;
}
.thing__image {
  display: block;
  width: 100%;
  height: auto;
}
.thing__section {
  margin-bottom: 1.75rem;
}
.thing__section-title {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #807a6b;
}
.thing__section--resonance {
  border-bottom: 1px solid #7a7568;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.thing__resonance-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #271e11;
}
.thing__meta-list {
  margin: 0;
  padding: 0;
}
.thing__meta-row {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  padding: 0.15rem 0;
}
.thing__meta-row dt {
  font-weight: 500;
  color: #7a7568;
  text-transform: lowercase;
}
.thing__meta-row dd {
  margin: 0;
  color: #271e11;
  text-transform: lowercase;
}
.thing__resonance-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #7a7568;
}
/* --- Gallery ------------------------------------------------ */
/* --- Gallery: ruhig, atmend -------------------------------- */
.thing__gallery {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.thing__gallery-item {
  margin: 0;
}
.thing__gallery-image {
  height: 240px;
  width: auto;
  display: block;
}
/* --- Tableau Layout ------------------------------------------------- */
.tableau__intro {
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #7a7568;
}
/* --- 2 × 2 Grid ----------------------------------------------------- */
.tableau__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #e5e5e4;
  /* 💡 Wichtig: Das Grid bleibt immer sichtbar */
  /* nach site-frame verschoben */
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  place-items: stretch;
}
/* Panels */
.tableau__panel {
  position: relative;
  margin: 0;
  /* Meta-Leiste im Bild */
  /* Detail-Link (Objektseite) */
}
.tableau__panel-main {
  display: block;
  width: 100%;
  height: 100%;
  /* Kleine Hover-Bewegung beim Hauptklick */
}
.tableau__panel-main:hover .tableau__panel-image {
  transform: scale(1.01);
  transition: transform 160ms ease-out;
  z-index: 1000;
}
.tableau__panel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tableau__panel-meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #f9fafb;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}
.tableau__panel-title {
  font-weight: 500;
}
.tableau__panel-detail {
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.65);
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tableau__panel-detail:hover {
  background: rgba(17, 24, 39, 0.9);
}
@media (max-width: 768px) {
  __nav {
    flex-direction: column;
    align-items: flex-start;
  }
  __nav-link--next {
    margin-left: 0;
  }
}
/* --- Responsive ----------------------------------------------------- */
.tableaux {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  /* List */
  /* Thumbnails */
}
.tableaux__header {
  margin-bottom: 2rem;
}
.tableaux__title {
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.tableaux__intro {
  max-width: 40rem;
  color: #7a7568;
  margin-bottom: 2rem;
}
.tableaux__list {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 1000px) 1fr;
  row-gap: 0.5rem;
  align-items: center;
  container: list / inline-size;
}
.tableaux__item {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 1rem;
  text-decoration: none;
  padding: 0.5rem;
  padding-left: 1.5rem;
  border-radius: 0.5rem;
  container: item / inline-size;
}
.tableaux__item:hover {
  background-color: #e5e5e4;
}
@container list (max-width: 600px) {
  .tableaux__item {
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
  }
}
.tableaux__item-index {
  font-size: 1.4rem;
  text-transform: uppercase;
  flex-shrink: 1;
  text-align: left;
  display: grid;
  grid-template-columns: max-content 1fr;
  min-width: 0;
}
@container item (max-width: 800px) {
  .tableaux__item-index {
    grid-template-columns: 1fr;
  }
}
.tableaux__item-title {
  margin: 0;
  letter-spacing: 0.08em;
  color: #271e11;
  font-weight: 500;
  padding-right: 2rem;
  white-space: nowrap;
}
.tableaux__item-title:hover {
  opacity: 1;
}
.tableaux__item-subtitle {
  margin: 0;
  font-size: 1.4rem;
  color: #7a7568;
  text-align: left;
  letter-spacing: 0.08em;
}
.tableaux__thumbs {
  flex-grow: 0;
  display: flex;
  gap: 0.4rem;
}
.tableaux__thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.4rem;
  background: #e5e5e4;
}
