/*
 * Bebelplatz FASE 17.2 — Collection Detail Experience
 */

body.bp172-collection-detail .bp132-term-hero {
  min-height: 0;
}

.bp172-term-hero-grid {
  min-height: 640px;
}

.bp172-term-copy {
  max-width: 790px;
}

.bp172-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
  max-width: 650px;
}

.bp172-stat {
  min-width: 0;
  padding: 16px 17px 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(6px);
}

.bp172-stat strong,
.bp172-stat span {
  display: block;
}

.bp172-stat strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  font-weight: 500;
}

.bp172-stat span {
  margin-top: 7px;
  color: rgba(255,250,245,.63);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.bp172-theme-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.bp172-theme-label {
  color: rgba(255,250,245,.52);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bp172-theme-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: rgba(255,250,245,.86) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
}

.bp172-theme-links a:hover {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}

.bp172-term-actions {
  margin-top: 20px;
}

.bp172-context-band {
  padding: 78px 0 84px;
  background: #211e1b;
  color: #fffaf5;
}

.bp172-context-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.bp172-context-heading > div {
  max-width: 880px;
}

.bp172-context-heading h2 {
  margin: 0 0 12px;
  color: #fffaf5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.035em;
}

.bp172-context-heading > div > p:last-child {
  margin: 0;
  max-width: 760px;
  color: rgba(255,250,245,.62);
  font-size: 15px;
  line-height: 1.65;
}

.bp172-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 18px;
}

.bp172-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}

.bp172-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.bp172-kicker {
  margin: 0 0 6px;
  color: #e69a68;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bp172-panel-heading h3 {
  margin: 0;
  color: #fffaf5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.05;
  font-weight: 500;
}

.bp172-panel-heading > span {
  flex: 0 0 auto;
  color: rgba(255,250,245,.45);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.bp172-author-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}

.bp172-author-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 68px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: inherit !important;
  text-decoration: none !important;
}

.bp172-author-item:hover {
  background: rgba(255,255,255,.065);
}

.bp172-author-monogram {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0e4d9;
  color: #3a2b22;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.bp172-author-copy {
  min-width: 0;
}

.bp172-author-copy strong,
.bp172-author-copy small {
  display: block;
}

.bp172-author-copy strong {
  overflow: hidden;
  color: #fffaf5;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp172-author-copy small {
  margin-top: 3px;
  color: rgba(255,250,245,.47);
  font-size: 10px;
}

.bp172-arrow {
  color: rgba(255,250,245,.38);
  font-size: 15px;
}

.bp172-related-list {
  display: grid;
  gap: 9px;
}

.bp172-related-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) 118px;
  align-items: center;
  gap: 18px;
  min-height: 65px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: inherit !important;
  text-decoration: none !important;
}

.bp172-related-item:hover {
  background: rgba(255,255,255,.065);
}

.bp172-related-main strong,
.bp172-related-main small {
  display: block;
}

.bp172-related-main strong {
  color: #fffaf5;
  font-size: 14px;
}

.bp172-related-main small {
  margin-top: 3px;
  color: rgba(255,250,245,.47);
  font-size: 10px;
}

.bp172-related-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}

.bp172-related-meter > span {
  display: block;
  height: 100%;
  min-width: 4%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8753e, #e9a06f);
}

.bp172-books-section {
  padding-top: 82px;
}

.bp172-books-section .bp132-pagination-wrap {
  clear: both;
  width: 100%;
}

.bp172-route-nav {
  clear: both;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 58px;
  padding-top: 30px;
  border-top: 1px solid var(--bp132-line);
}

.bp172-route-link,
.bp172-route-center {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 17px;
  border: 1px solid #cfc4ba;
  border-radius: 8px;
  background: #fff;
  color: #2c2723 !important;
  text-decoration: none !important;
}

.bp172-route-link--next {
  text-align: right;
  align-items: flex-end;
}

.bp172-route-link strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.05;
}

.bp172-route-direction {
  color: #8a7a6e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.bp172-route-center {
  min-width: 160px;
  align-items: center;
  text-align: center;
  background: transparent;
  color: #514942 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.bp172-route-link:hover,
.bp172-route-center:hover {
  border-color: #9e8c7f;
  background: #fffaf5;
}

.bp172-context-links {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.bp172-main a:focus-visible {
  outline: 3px solid #e5884c !important;
  outline-offset: 3px !important;
}

@media (max-width: 1080px) {
  .bp172-context-grid {
    grid-template-columns: 1fr;
  }

  .bp172-author-list {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 820px) {
  .bp172-term-hero-grid {
    min-height: 0;
  }

  .bp172-context-band {
    padding: 62px 0 68px;
  }

  .bp172-author-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .bp172-route-nav {
    grid-template-columns: 1fr 1fr;
  }

  .bp172-route-center {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 54px;
    order: 3;
  }
}

@media (max-width: 560px) {
  .bp172-stat-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 7px;
  }

  .bp172-stat {
    padding: 13px 10px 12px;
  }

  .bp172-stat strong {
    font-size: 23px;
  }

  .bp172-stat span {
    font-size: 9px;
    letter-spacing: .04em;
  }

  .bp172-theme-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .bp172-theme-links a {
    min-height: 42px;
  }

  .bp172-context-band {
    padding: 54px 0 58px;
  }

  .bp172-panel {
    padding: 18px;
  }

  .bp172-author-list {
    grid-template-columns: 1fr;
  }

  .bp172-related-item {
    grid-template-columns: minmax(0,1fr) 76px;
    gap: 12px;
  }

  .bp172-route-nav {
    grid-template-columns: 1fr;
  }

  .bp172-route-link,
  .bp172-route-link--next {
    min-height: 70px;
    align-items: flex-start;
    text-align: left;
  }

  .bp172-route-center {
    grid-column: auto;
    grid-row: auto;
    order: initial;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp172-author-item,
  .bp172-related-item,
  .bp172-route-link,
  .bp172-route-center {
    transition: none !important;
  }
}
