/**
 * FachTap · Feature-Bento für die "02 · Karte, Portfolio & Termin"-Sektion.
 *
 * 2x2 Bento-Grid mit vier Feature-Kacheln:
 *   ┌────────────────┬──────────┐
 *   │   Portfolio    │  Termin  │
 *   │   (2x1)        │          │
 *   ├────────────────┼──────────┤
 *   │   Bewertung    │  Zertif. │
 *   └────────────────┴──────────┘
 *
 * Alle Kacheln haben abstrakte visuelle Inhalte — keine echten Screenshots.
 * Sanfte Hover-States + reveal-freundlich (staggered opacity im Group-Reveal).
 */

.cine__slot--bento {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  min-height: 60vh;
}

.bento {
  width: 100%;
  max-width: 460px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 1 / 1.05;
}

/* Kachel-Basis */
.bento__tile {
  position: relative;
  background: linear-gradient(160deg, rgba(28, 25, 17, 0.95) 0%, rgba(20, 18, 12, 0.9) 100%);
  border: 1px solid rgba(212, 160, 23, 0.18);
  border-radius: 22px;
  padding: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  isolation: isolate;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bento__tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top left,
    rgba(212, 160, 23, 0.12) 0%,
    transparent 55%
  );
  pointer-events: none;
  z-index: -1;
}

.bento__tile:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 160, 23, 0.4);
}

.bento__eyebrow {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 230, 184, 0.55);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* ── Portfolio-Kachel (groß) ─────────────────────── */
.bento__tile--portfolio {
  grid-row: 1 / span 1;
  grid-column: 1 / span 1;
}

/* Portfolio-Stage: großes Bild mit cross-fade */
.bento__pf-stage {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
  background: rgba(10, 10, 8, 0.6);
  border: 1px solid rgba(212, 160, 23, 0.12);
}

/* Abstract-Gold-Fläche statt Bild — mit gestapelten Formen für Tiefe */
.bento__pf-abstract {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(245, 230, 184, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, rgba(212, 160, 23, 0.42) 0%, rgba(138, 104, 0, 0.18) 100%);
  overflow: hidden;
}

/* Drei überlappende Formen deuten Bild-Kompositions-Ebenen an */
.bento__pf-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 230, 184, 0.22), rgba(212, 160, 23, 0.12));
  filter: blur(1px);
  opacity: 0.85;
}

.bento__pf-shape--1 {
  width: 60%;
  height: 90%;
  top: 8%;
  left: -15%;
  transform: rotate(-8deg);
  border-radius: 40%;
  animation: pfShape 12s ease-in-out infinite;
}

.bento__pf-shape--2 {
  width: 50%;
  height: 70%;
  top: 20%;
  right: -10%;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.28), rgba(138, 104, 0, 0.14));
  border-radius: 45%;
  transform: rotate(12deg);
  animation: pfShape 12s ease-in-out infinite reverse;
  animation-delay: -3s;
}

.bento__pf-shape--3 {
  width: 40%;
  height: 40%;
  bottom: 15%;
  left: 30%;
  background: radial-gradient(circle, rgba(245, 230, 184, 0.3), transparent 70%);
  border-radius: 50%;
  filter: blur(4px);
  animation: pfShape 12s ease-in-out infinite;
  animation-delay: -6s;
}

@keyframes pfShape {
  0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  50%      { transform: translate(4px, -4px) rotate(calc(var(--r, 0deg) + 4deg)); }
}

/* Textbadge unten-links auf dem Bild */
.bento__pf-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: #f5e6b8;
  font-family: 'Cormorant Garamond', serif;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 0, 0, 0.55);
}

.bento__pf-title {
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.bento__pf-date {
  display: inline-block;
  margin-left: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  color: rgba(245, 230, 184, 0.7);
  font-style: normal;
  padding: 2px 7px;
  background: rgba(10, 10, 8, 0.55);
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 999px;
  letter-spacing: 0.05em;
  vertical-align: middle;
  backdrop-filter: blur(4px);
}

/* Timeline-Dots unter dem Bild (wie im echten Portfolio-Popup) */
.bento__pf-timeline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 12px;
  padding: 0 4px;
}

.bento__pf-timeline span:not(.bento__pf-line) {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 230, 184, 0.25);
  transition: background 400ms;
  z-index: 1;
  position: relative;
}

.bento__pf-timeline span.is-active {
  background: linear-gradient(135deg, #f5e6b8, #D4A017);
  box-shadow: 0 0 8px rgba(212, 160, 23, 0.6);
  width: 10px;
  height: 10px;
}

.bento__pf-line {
  position: absolute !important;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px !important;
  width: auto !important;
  transform: translateY(-50%);
  background: linear-gradient(to right, rgba(212, 160, 23, 0.35), rgba(212, 160, 23, 0.08)) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 0 !important;
}

/* ── Termin-Kachel (Kalender) ─────────────────────── */
.bento__tile--termin {
  grid-row: 1 / span 1;
  grid-column: 2 / span 1;
}

.bento__cal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.bento__cal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(245, 230, 184, 0.5);
  letter-spacing: 0.05em;
}

.bento__cal-row--dates {
  font-size: 0.85rem;
  color: rgba(245, 230, 184, 0.75);
  font-weight: 500;
}

.bento__cal-row--dates span {
  padding: 6px 0;
  border-radius: 8px;
  border: 1px solid transparent;
}

.bento__cal-row--dates .is-picked {
  background: linear-gradient(135deg, #D4A017, #8a6800);
  color: #0a0a08;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.45);
}

.bento__slots {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}

.bento__slots span {
  padding: 6px 10px;
  background: rgba(10, 10, 8, 0.5);
  border: 1px solid rgba(212, 160, 23, 0.14);
  border-radius: 7px;
  font-size: 0.72rem;
  color: rgba(245, 230, 184, 0.55);
  text-align: center;
  letter-spacing: 0.02em;
}

.bento__slots .is-booked {
  color: #f5e6b8;
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(212, 160, 23, 0.14);
  font-weight: 600;
}

/* ── Bewertungs-Kachel ─────────────────────────────── */
.bento__tile--review {
  grid-row: 2 / span 1;
  grid-column: 1 / span 1;
  align-items: flex-start;
}

.bento__stars {
  font-size: 1.15rem;
  color: #D4A017;
  letter-spacing: 0.15em;
  text-shadow: 0 0 12px rgba(212, 160, 23, 0.4);
  line-height: 1;
}

.bento__review-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 500;
  color: #f5e6b8;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.bento__review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 999px;
  font-size: 0.7rem;
  color: #f5e6b8;
  font-family: 'Inter', sans-serif;
  margin-top: auto;
}

.bento__review-badge svg { color: #D4A017; }

/* ── Zertifikat-Kachel ─────────────────────────────── */
.bento__tile--cert {
  grid-row: 2 / span 1;
  grid-column: 2 / span 1;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bento__seal {
  display: grid;
  place-items: center;
  animation: sealGlow 4s ease-in-out infinite;
}

@keyframes sealGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(212, 160, 23, 0.35)); }
  50%      { filter: drop-shadow(0 0 12px rgba(212, 160, 23, 0.7)); }
}

.bento__cert-text {
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bento__cert-text strong {
  color: #f5e6b8;
  font-size: 0.85rem;
  font-weight: 600;
}

.bento__cert-text span {
  font-size: 0.7rem;
  color: rgba(245, 230, 184, 0.55);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .bento { max-width: 400px; }
  .bento__tile { padding: 18px; border-radius: 18px; }
  .bento__review-num { font-size: 2.6rem; }
}

@media (max-width: 640px) {
  .cine__slot--bento { padding: 2rem 1rem; }
  .bento {
    max-width: 340px;
    gap: 10px;
  }
  .bento__tile { padding: 15px; border-radius: 16px; gap: 8px; }
  .bento__eyebrow { font-size: 0.6rem; }
  .bento__review-num { font-size: 2.2rem; }
  .bento__seal svg { width: 56px; height: 56px; }
  .bento__slots span { padding: 5px 8px; font-size: 0.68rem; }
}

/* Reduced-Motion */
@media (prefers-reduced-motion: reduce) {
  .bento__pf-shape,
  .bento__seal {
    animation: none;
  }
}
