/* ============================================================
   Bento Grid — Vergangene Events (asymmetrisches Tile-Layout)
   ============================================================ */

.bento {
  --bg: var(--color-anthrazit);
  --next-bg: var(--color-sand);
  background: var(--bg);
  color: var(--color-sand);
  padding: clamp(4rem, 9vw, 7rem) 0;
  overflow: hidden;
  position: relative;
}
.bento .eyebrow { color: var(--color-gold); }
.bento h2 { color: var(--color-sand); }
.bento h2 em { color: var(--color-gold); }
.bento .section-head p { color: rgba(234,228,211,0.75); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(180px, 22vw, 240px);
  gap: 4px;
  position: relative;
  z-index: 2;
}
.bento-tile {
  position: relative;
  overflow: hidden;
  background: rgba(234,228,211,0.03);
}
.bento-tile-1 { grid-column: span 2; grid-row: span 2; }
.bento-tile-2 { grid-column: span 1; grid-row: span 1; }
.bento-tile-3 { grid-column: span 1; grid-row: span 2; }
.bento-tile-4 { grid-column: span 1; grid-row: span 1; }
.bento-tile-5 { grid-column: span 2; grid-row: span 1; }
.bento-tile-6 { grid-column: span 2; grid-row: span 1; }

.bento-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.78);
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .bento-tile:hover img {
    filter: grayscale(0) brightness(0.95);
    transform: scale(1.05);
  }
  .bento-tile:hover .bento-caption { padding-bottom: var(--space-lg); }
  .bento-tile:hover .bento-text {
    max-height: 120px;
    opacity: 1;
    margin-top: 0.6em;
  }
}

.bento-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  color: var(--color-sand);
  transition: padding 0.4s cubic-bezier(0.22,1,0.36,1);
}

.bento-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5em;
}
.bento-tile-1 .bento-date,
.bento-tile-3 .bento-date { font-size: 0.78rem; }

.bento-title {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0;
  color: var(--color-sand);
}
.bento-tile-1 .bento-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); max-width: 16ch; }
.bento-tile-3 .bento-title { font-size: 1.25rem; }

.bento-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(234,228,211,0.85);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.5s cubic-bezier(0.22,1,0.36,1),
              opacity 0.4s ease 0.1s,
              margin-top 0.4s ease;
}
@media (max-width: 1080px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(160px, 22vw, 220px); }
  .bento-tile-1 { grid-column: span 2; grid-row: span 2; }
  .bento-tile-2 { grid-column: span 1; grid-row: span 1; }
  .bento-tile-3 { grid-column: span 1; grid-row: span 2; }
  .bento-tile-4 { grid-column: span 1; grid-row: span 1; }
  .bento-tile-5 { grid-column: span 2; grid-row: span 1; }
  .bento-tile-6 { grid-column: span 3; grid-row: span 1; }
}

@media (max-width: 880px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(180px, 30vw, 220px); }
  .bento-tile-1 { grid-column: span 2; grid-row: span 2; }
  .bento-tile-2,
  .bento-tile-3,
  .bento-tile-4 { grid-column: span 1; grid-row: span 1; }
  .bento-tile-5,
  .bento-tile-6 { grid-column: span 2; grid-row: span 1; }
  /* Auf Touch: Caption immer aufgeklappt zeigen, kein Hover-State erwartbar */
  .bento-text { max-height: 120px; opacity: 1; margin-top: 0.6em; }
}
