/* JagdIQ Library Premium IA — additive only, keeps existing app styles intact */

.library-premium-overview {
  margin: 4px 0 22px;
  padding: 20px;
  border: 1px solid rgba(14, 74, 55, .12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(178, 132, 61, .13), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(246,238,226,.92));
  box-shadow: 0 10px 30px rgba(43, 48, 43, .06);
}

.library-premium-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #a2702c;
  font: 800 10px/1.2 system-ui, sans-serif;
  letter-spacing: .13em;
}

.library-premium-overview h2 {
  margin: 0;
  max-width: 660px;
  color: #113f32;
  font: 700 clamp(23px, 4vw, 34px)/1.08 Georgia, serif;
  letter-spacing: -.025em;
}

.library-premium-overview p {
  margin: 10px 0 0;
  max-width: 690px;
  color: #646159;
  font: 500 14px/1.55 system-ui, sans-serif;
}

.library-premium-stats {
  display: flex;
  gap: 10px;
  margin-top: 17px;
}

.library-premium-stats > span {
  min-width: 96px;
  padding: 10px 13px;
  border-radius: 14px;
  background: rgba(11, 74, 56, .065);
}

.library-premium-stats strong,
.library-premium-stats small {
  display: block;
}

.library-premium-stats strong {
  color: #0b4a38;
  font: 800 17px/1 system-ui, sans-serif;
}

.library-premium-stats small {
  margin-top: 5px;
  color: #77736b;
  font: 700 10px/1 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.library-shortcuts-section {
  margin-bottom: 22px;
}

.library-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.library-shortcuts > button {
  min-width: 0;
  min-height: 112px;
  padding: 14px 12px;
  border: 1px solid rgba(16, 71, 55, .11);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  text-align: left;
  box-shadow: 0 7px 20px rgba(44, 49, 43, .045);
}

.library-shortcuts > button:active {
  transform: translateY(1px);
}

.library-shortcut-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  margin-bottom: 11px;
  border-radius: 11px;
  background: #edf2ed;
  color: #0b4a38;
}

.library-shortcut-icon svg {
  width: 22px;
  height: 22px;
}

.library-shortcuts strong,
.library-shortcuts small {
  display: block;
}

.library-shortcuts strong {
  overflow: hidden;
  color: #173d32;
  font: 800 13px/1.15 system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-shortcuts small {
  margin-top: 5px;
  overflow: hidden;
  color: #77736b;
  font: 600 10px/1.15 system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-topic-groups {
  display: grid;
  gap: 16px;
}

.library-topic-group {
  overflow: hidden;
  border: 1px solid rgba(17, 68, 52, .1);
  border-radius: 21px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 26px rgba(47, 52, 46, .045);
}

.library-topic-group-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 17px 18px 14px;
  background: linear-gradient(135deg, rgba(14, 74, 55, .065), rgba(178, 132, 61, .045));
}

.library-topic-group-head h3 {
  margin: 0;
  color: #153f33;
  font: 700 18px/1.15 Georgia, serif;
}

.library-topic-group-head p {
  margin: 5px 0 0;
  color: #716e67;
  font: 550 11px/1.35 system-ui, sans-serif;
}

.library-topic-group-head > span {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #0b4a38;
  font: 800 10px/1 system-ui, sans-serif;
}

.library-topic-group-list {
  display: grid;
}

.library-category-card--premium {
  border: 0 !important;
  border-top: 1px solid rgba(17, 68, 52, .075) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.library-topic-group-list .library-category-card--premium:first-child {
  border-top: 0 !important;
}

.library-category-count {
  flex: 0 0 auto;
  margin-left: auto;
  color: #8a857d;
  font: 750 10px/1 system-ui, sans-serif;
}

.library-category-search {
  margin-bottom: 14px;
}

.library-article-toc {
  position: sticky;
  z-index: 3;
  top: 0;
  margin: 0 0 16px;
  padding: 12px 0 11px;
  border-bottom: 1px solid rgba(20, 69, 54, .09);
  background: color-mix(in srgb, #f5e6d4 92%, transparent);
  backdrop-filter: blur(12px);
}

.library-article-toc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 2px 9px;
}

.library-article-toc-head strong {
  color: #153f33;
  font: 800 12px/1 system-ui, sans-serif;
}

.library-article-toc-head span {
  color: #8a857d;
  font: 700 10px/1 system-ui, sans-serif;
}

.library-article-toc-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 2px 2px;
  scrollbar-width: none;
}

.library-article-toc-scroll::-webkit-scrollbar {
  display: none;
}

.library-article-toc a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(15, 73, 56, .1);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #31594d;
  font: 750 10px/1 system-ui, sans-serif;
  text-decoration: none;
}

.library-learning-bridge {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(14, 74, 55, .11);
  border-radius: 20px;
  background: linear-gradient(145deg, #0f4a39, #164f40);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 74, 57, .14);
}

.library-learning-bridge-head span,
.library-learning-bridge-head strong {
  display: block;
}

.library-learning-bridge-head span {
  color: #d9bd87;
  font: 800 9px/1 system-ui, sans-serif;
  letter-spacing: .13em;
}

.library-learning-bridge-head strong {
  margin-top: 5px;
  font: 700 16px/1.2 Georgia, serif;
}

.library-learning-bridge-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.library-learning-bridge-actions button {
  position: relative;
  min-width: 0;
  min-height: 68px;
  padding: 11px 30px 10px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.09);
  color: #fff;
  text-align: left;
}

.library-learning-bridge-actions button > span,
.library-learning-bridge-actions button > small {
  display: block;
}

.library-learning-bridge-actions button > span {
  font: 800 11px/1.2 system-ui, sans-serif;
}

.library-learning-bridge-actions button > small {
  margin-top: 4px;
  color: rgba(255,255,255,.69);
  font: 600 9px/1.25 system-ui, sans-serif;
}

.library-learning-bridge-actions button > svg {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 16px;
  transform: translateY(-50%);
}

.library-info-card--premium {
  scroll-margin-top: 104px;
}

.library-highlight-card--premium {
  scroll-margin-top: 104px;
}

@media (max-width: 720px) {
  .library-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-shortcuts > button {
    min-height: 100px;
  }

  .library-premium-overview {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .library-learning-bridge-actions {
    grid-template-columns: 1fr;
  }
}

.library-quality-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.library-quality-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 6px 9px;
  border: 1px solid rgba(14, 74, 55, .1);
  border-radius: 999px;
  background: rgba(14, 74, 55, .065);
  color: #31594d;
  font: 750 9px/1.1 system-ui, sans-serif;
  letter-spacing: .02em;
}

.library-info-card--premium[id="library-section-quellenbasis"] {
  background: rgba(255,255,255,.64);
}

.library-info-card--premium[id="library-section-quellenbasis"] li {
  color: #706c64;
  font-size: 12px;
  line-height: 1.45;
}


.library-category-facets {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 0 14px;
  padding: 1px 0 3px;
  scrollbar-width: none;
}

.library-category-facets::-webkit-scrollbar {
  display: none;
}

.library-category-facets button {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  white-space: nowrap;
}

.library-category-facets button span {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(14, 74, 55, .07);
  color: #6f756f;
  font: 800 9px/1 system-ui, sans-serif;
}

.library-category-facets button.active span {
  background: rgba(255,255,255,.22);
  color: inherit;
}


.library-crosslinks-head {
  padding: 15px 16px 11px;
  border-bottom: 1px solid rgba(121,86,47,.08);
  background: rgba(14, 74, 55, .035);
}

.library-crosslinks-head span,
.library-crosslinks-head strong {
  display: block;
}

.library-crosslinks-head span {
  color: #a2702c;
  font: 800 8px/1 system-ui, sans-serif;
  letter-spacing: .13em;
}

.library-crosslinks-head strong {
  margin-top: 5px;
  color: #173d32;
  font: 700 16px/1.15 Georgia, serif;
}

.library-crosslink-copy {
  min-width: 0;
}

.library-crosslink-copy strong,
.library-crosslink-copy small {
  display: block;
}

.library-crosslink-copy strong {
  overflow: hidden;
  color: #173d32;
  font: 700 14px/1.2 Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-crosslink-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: #817a70;
  font: 650 9px/1.15 system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* LIBRARY-HERO-AUERHAHN-02 */
.library-premium-overview{
  position:relative;
  margin:6px 0 20px;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(21,66,51,.08);
  border-radius:21px;
  background:#fffaf3;
  box-shadow:0 8px 22px rgba(78,54,31,.07);
}
.library-premium-media{
  position:relative;
  height:138px;
  background-image:url('/assets/images/library/library-hero-auerhahn.jpg?v=4');
  background-size:cover;
  background-position:center 47%;
  background-repeat:no-repeat;
}
.library-premium-media::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:30px;
  background:linear-gradient(180deg,rgba(255,250,243,0),rgba(255,250,243,.18));
  pointer-events:none;
}
.library-premium-overview-copy{
  position:relative;
  z-index:2;
  margin-top:-18px;
  padding:17px 19px 18px;
  border:0;
  border-radius:21px 21px 0 0;
  background:#fffaf3;
  box-shadow:none;
}
.library-premium-eyebrow{
  display:block;
  margin:0 0 7px;
  color:#a2702c;
  font:800 8px/1.2 system-ui,sans-serif;
  letter-spacing:1.35px;
}
.library-premium-overview h2{
  margin:0;
  max-width:315px;
  color:#113f32;
  font:700 28px/1.02 Georgia,"Times New Roman",serif;
  letter-spacing:-.45px;
}
.library-premium-overview p{
  margin:11px 0 0;
  max-width:340px;
  color:#625f59;
  font:500 11px/1.46 system-ui,sans-serif;
}
.library-premium-stats{
  display:flex;
  gap:8px;
  margin-top:14px;
}
.library-premium-stats>span{
  min-width:0;
  padding:9px 14px 8px;
  border-radius:13px;
  background:#f0f0e9;
}
.library-premium-stats strong,
.library-premium-stats small{
  display:block;
}
.library-premium-stats strong{
  color:#0b4a38;
  font:700 20px/.95 Georgia,"Times New Roman",serif;
}
.library-premium-stats small{
  margin-top:5px;
  color:#77736b;
  font:800 8px/1 system-ui,sans-serif;
  text-transform:uppercase;
  letter-spacing:1px;
}
@media(max-width:380px){
  .library-premium-media{height:128px;background-position:center 47%}
  .library-premium-overview-copy{margin-top:-16px;padding:16px 16px 17px}
  .library-premium-overview h2{font-size:26px}
}
