/* ============ Schmuckwissen (hub, rubrics, articles) ============
   Content and data come from the mu-plugin 160-sg-wissen. Loaded only on
   those views (inc/enqueue.php). */

/* Rubric and article pages share one 1040px column so head, text and
   sections line up. */
.container.wissen-narrow { max-width: 1136px; }

/* ---------- breadcrumb ----------
   The base rules live in cart.css (shop and product views), which is not
   loaded here; the home icon and mobile rules come from base.css. */
.pdp-breadcrumb {
  background: var(--white);
  border-bottom: 1px solid rgba(26,23,20,0.06);
  padding: 18px 0;
}
.pdp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26,23,20,0.55);
}
.pdp-breadcrumb a { color: rgba(26,23,20,0.7); text-decoration: none; transition: color .2s; }
.pdp-breadcrumb a:hover { color: var(--gold); }
.pdp-breadcrumb .sep { color: rgba(26,23,20,0.3); }
.pdp-breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- page head ---------- */
.wissen-head {
  padding: 72px 0 40px;
  border-bottom: 1px solid rgba(26,23,20,0.08);
}
.wissen-head .eyebrow { display: inline-block; text-decoration: none; }
.wissen-head a.eyebrow:hover { color: var(--gold-text); }
.wissen-h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 18px 0 26px;
  max-width: 22ch;
  text-wrap: balance;
}
.wissen-byline {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26,23,20,0.72);
}
.wissen-byline span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--gold);
}
.wissen-dates {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(26,23,20,0.6);
}

/* ---------- article layout ---------- */
.wissen-layout {
  padding-top: 56px;
  padding-bottom: 88px;
}
.wissen-layout--toc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
}
.wissen-main { max-width: 720px; }

.wissen-toc {
  position: sticky;
  top: 120px;
  align-self: start;
}
.wissen-toc ol {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-left: 1px solid rgba(26,23,20,0.12);
}
.wissen-toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(26,23,20,0.7);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.wissen-toc a:hover { color: var(--ink); border-left-color: var(--gold); }

.wissen-answer {
  background: var(--cream);
  border-left: 2px solid var(--gold);
  padding: 24px 28px 26px;
  margin-bottom: 44px;
}
.wissen-answer p {
  margin-top: 10px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
}
.wissen-origin {
  margin-bottom: 32px;
  font-size: 16px;
}
.wissen-origin .eyebrow { margin-right: 10px; }

/* ---------- running text ---------- */
.wissen-prose {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(26,23,20,0.86);
}
.wissen-prose > * + * { margin-top: 18px; }
.wissen-prose h2 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
  color: var(--ink);
  margin-top: 56px;
  scroll-margin-top: 130px;
}
.wissen-prose > h2:first-child { margin-top: 0; }
.wissen-prose h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 30px;
}
.wissen-prose h2 + *,
.wissen-prose h3 + * { margin-top: 10px; }
.wissen-prose ul,
.wissen-prose ol { padding-left: 1.2em; }
.wissen-prose li + li { margin-top: 8px; }
.wissen-prose li::marker { color: var(--gold); }
.wissen-prose strong { font-weight: 600; color: var(--ink); }
.wissen-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.wissen-prose a:hover { color: var(--gold-text); }

.wissen-table {
  overflow-x: auto;
  margin: 28px 0 32px;
  -webkit-overflow-scrolling: touch;
}
.wissen-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.wissen-table th {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: rgba(26,23,20,0.65);
  padding: 0 14px 12px 0;
  border-bottom: 1px solid rgba(26,23,20,0.3);
}
.wissen-table td {
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid rgba(26,23,20,0.1);
  vertical-align: top;
}
/* Short value cells ("22 Karat") stay on one line; the last column wraps. */
.wissen-table td:not(:last-child) { white-space: nowrap; }
.wissen-table td:first-child {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.1;
  color: var(--gold-text);
}

/* Topic list of a rubric: written topics link, planned ones stay plain. */
.wissen-prose--rubrik { max-width: 720px; padding: 48px 0 64px; }
.wissen-prose #themen-dieser-rubrik + ul {
  list-style: none;
  padding: 0;
  border-top: 1px solid rgba(26,23,20,0.12);
}
.wissen-prose #themen-dieser-rubrik + ul li {
  margin: 0;
  border-bottom: 1px solid rgba(26,23,20,0.12);
}
.wissen-prose #themen-dieser-rubrik + ul li > a,
.wissen-prose #themen-dieser-rubrik + ul li > .wissen-geplant,
.wissen-prose #themen-dieser-rubrik + ul li:not(:has(> a, > .wissen-geplant)) {
  display: block;
  padding: 13px 0;
}
.wissen-prose #themen-dieser-rubrik + ul li > a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  font-weight: 500;
}
.wissen-prose #themen-dieser-rubrik + ul li > a::after {
  content: "→";
  color: var(--gold);
  transition: transform .3s;
}
.wissen-prose #themen-dieser-rubrik + ul li > a:hover::after { transform: translateX(4px); }
.wissen-geplant { color: rgba(26,23,20,0.6); }

/* ---------- section titles, article cards ---------- */
.wissen-section-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.08;
  margin-bottom: 28px;
}
.wissen-section-title em { font-style: italic; color: var(--gold-text); }

.wissen-cards { padding: 0 0 80px; }
.wissen-card-list {
  list-style: none;
  padding: 0;
  display: grid;
  /* auto-fit with an upper bound: a rubric with a single article gets a card of
     readable width instead of a narrow column next to empty space. */
  grid-template-columns: repeat(auto-fit, minmax(300px, 510px));
  gap: 20px;
}
.wissen-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 28px 24px;
  border: 1px solid rgba(26,23,20,0.14);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .3s;
}
.wissen-card:hover { border-color: var(--gold); }
.wissen-card-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.12;
}
.wissen-card-text {
  margin-top: 12px;
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(26,23,20,0.72);
}
.wissen-card-more,
.wissen-author-link,
.wissen-brand-more {
  margin-top: 20px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  text-decoration: none;
}
.wissen-card .arr,
.wissen-related .arr,
.wissen-guide .arr,
.wissen-area .arr { display: inline-block; transition: transform .3s; }
.wissen-card:hover .arr,
.wissen-related a:hover .arr,
.wissen-guide:hover .arr,
.wissen-area:hover .arr { transform: translateX(4px); }

/* ---------- brand profiles on the rubric page ---------- */
.wissen-brands {
  padding: 72px 0 96px;
  background: var(--cream);
}
.wissen-brand-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.wissen-brand-nav a {
  padding: 8px 14px;
  border: 1px solid rgba(26,23,20,0.18);
  border-radius: 2px;
  background: var(--white);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.wissen-brand-nav a:hover { border-color: var(--gold); color: var(--gold-text); }

.wissen-brand {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid rgba(26,23,20,0.14);
  scroll-margin-top: 110px;
}
.wissen-brand-name {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
}
.wissen-brand-origin {
  margin-top: 10px;
  font-size: 15px;
  color: rgba(26,23,20,0.8);
}
.wissen-brand-origin span,
.wissen-brand-body h4 {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.wissen-brand-origin span { margin-right: 8px; }
.wissen-brand-more { display: inline-block; }
.wissen-brand-body { max-width: 720px; }
.wissen-brand-body h4 { margin: 24px 0 6px; }
.wissen-brand-body h4:first-child { margin-top: 4px; }
.wissen-brand-body p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(26,23,20,0.84);
}

.wissen-guide {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  padding: 26px 28px;
  border: 1px solid rgba(26,23,20,0.16);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .3s;
}
.wissen-guide:hover { border-color: var(--gold); }
.wissen-guide-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.15;
}
.wissen-guide .arr { margin-left: auto; color: var(--gold); font-size: 20px; }

/* ---------- related links ---------- */
.wissen-related {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(26,23,20,0.14);
}
.wissen-related ul { list-style: none; padding: 0; margin-top: 8px; }
.wissen-related a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26,23,20,0.1);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
}
.wissen-related a:hover { color: var(--gold-text); }
.wissen-related .arr { color: var(--gold); font-size: 17px; }

/* ---------- author ---------- */
.wissen-author {
  padding: 64px 0;
  border-top: 1px solid rgba(26,23,20,0.08);
}
.wissen-author-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}
/* The portrait is a half-length shot; enlarge and offset it so the face
   fills the circle. */
.wissen-author picture {
  display: block;
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
}
.wissen-author-photo {
  display: block;
  width: 180%;
  max-width: none;
  height: auto;
  margin: -10% 0 0 -40%;
}
.wissen-author-lead {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.15;
}
.wissen-author-text p:not(.wissen-author-lead) {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(26,23,20,0.72);
}
.wissen-author-link { display: inline-block; margin-top: 12px; }

/* ---------- closing call to action (reuses section.cta-final) ---------- */
/* The shared grid sizes the middle column "auto", which squeezes the address
   column next to this longer text; fix the tracks instead. Below 1100px the
   side columns have no room and go, as base.css does from 720px. */
@media (min-width: 1101px) {
  .wissen-cta .cta-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .wissen-cta .cta-inner { grid-template-columns: 1fr; }
  .wissen-cta .cta-inner .cta-left,
  .wissen-cta .cta-inner .cta-right { display: none; }
  .wissen-cta .cta-main { width: 100%; max-width: 700px; margin: 0 auto; }
}
/* Longer labels than elsewhere: slightly tighter, so both secondary buttons
   share one row below the primary one. */
.wissen-cta .cta-actions { gap: 14px 16px; }
.wissen-cta .cta-actions .btn-ghost { padding: 18px 24px; letter-spacing: 0.12em; }
.wissen-cta .cta-main h2 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.02; text-wrap: balance; }
.wissen-cta-text { margin: 28px auto 40px; max-width: 600px; }
.wissen-cta .wissen-cta-text p { margin: 0; font-size: 17px; }
.wissen-cta .wissen-cta-text p + p { margin-top: 14px; }

/* ---------- hub ---------- */
/* The headline runs across the full width, text and portrait share the row
   below it, and the portrait is as tall as the text - no taller. As a 4:5
   picture next to the headline it made the head 800px high and pushed the
   rubrics, the actual content of this page, below the first screen. */
.wissen-hero { padding: 48px 0 64px; }
.wissen-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  align-items: stretch;
}
.wissen-hero .h1 { margin: 18px 0 28px; }
.wissen-hero-lede { max-width: 760px; }
.wissen-hero-lede p {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.5;
  color: rgba(26,23,20,0.8);
}
.wissen-hero-lede p + p { margin-top: 16px; }
.wissen-hero-image {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
}
.wissen-hero-image picture {
  position: relative;
  display: block;
  min-height: 0;
}
.wissen-hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.wissen-hero-image figcaption {
  margin-top: 12px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26,23,20,0.6);
}

.wissen-areas {
  padding: 88px 0;
  background: var(--cream);
}
.wissen-area-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(26,23,20,0.12);
  border: 1px solid rgba(26,23,20,0.12);
}
.wissen-area {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 26px 24px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: background .3s;
}
.wissen-area:hover { background: #fdfbf6; }
.wissen-area-num {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
}
.wissen-area-title {
  margin: 16px 0 12px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.08;
  transition: color .3s;
}
.wissen-area:hover .wissen-area-title { color: var(--gold-text); }
.wissen-area-text {
  flex-grow: 1;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(26,23,20,0.72);
}
.wissen-area-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(26,23,20,0.1);
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26,23,20,0.68);
}
.wissen-area-meta .arr { color: var(--gold); font-size: 15px; }

.wissen-hub-text { padding: 88px 0 24px; }
.wissen-hub-text .wissen-prose { max-width: 720px; margin: 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .wissen-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wissen-hero-grid { gap: 48px; }
}

@media (max-width: 900px) {
  /* The short answer comes straight after the heading, the contents list
     below it: flatten .wissen-main so its children can be ordered. */
  .wissen-layout--toc { display: flex; flex-direction: column; gap: 0; }
  .wissen-layout--toc .wissen-main { display: contents; }
  .wissen-layout--toc .wissen-answer { order: -1; }
  .wissen-toc {
    position: static;
    margin-bottom: 40px;
    padding: 20px 22px 14px;
    border: 1px solid rgba(26,23,20,0.12);
  }
  .wissen-toc ol { border-left: 0; margin-top: 8px; }
  .wissen-toc a { padding: 6px 0; border-left: 0; }
  .wissen-brand { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .wissen-hero-grid { grid-template-columns: 1fr; }
  .wissen-hero-image { max-width: 420px; }
  /* stacked, the portrait has no text beside it to take its height from */
  .wissen-hero-image picture { aspect-ratio: 4 / 5; }
}

@media (max-width: 720px) {
  .wissen-head { padding: 36px 0 28px; }
  .wissen-h1 { font-size: clamp(34px, 9vw, 44px); margin: 14px 0 20px; }
  .wissen-byline span { display: block; }
  .wissen-byline span + span::before { content: none; }
  .wissen-byline span + span { margin-top: 4px; }
  .wissen-layout { padding-top: 32px; padding-bottom: 56px; }
  .wissen-prose { font-size: 16px; }
  /* Let the table wrap instead of scrolling sideways unnoticed. */
  .wissen-table table { min-width: 0; font-size: 14px; }
  .wissen-table th { letter-spacing: 0.06em; padding-right: 10px; }
  .wissen-table td { padding-right: 10px; }
  .wissen-table td:last-child { hyphens: auto; overflow-wrap: anywhere; }
  .wissen-table td:first-child { font-size: 21px; }
  .wissen-prose h2 { margin-top: 44px; }
  .wissen-answer { padding: 20px 20px 22px; margin-bottom: 32px; }
  .wissen-answer p { font-size: 20px; }
  .wissen-prose--rubrik { padding: 32px 0 48px; }
  .wissen-cards { padding-bottom: 56px; }
  .wissen-card-list { grid-template-columns: 1fr; }
  .wissen-brands { padding: 48px 0 64px; }
  .wissen-brand-name { font-size: 30px; }
  .wissen-guide { padding: 20px; }
  .wissen-guide-title { font-size: 22px; }
  .wissen-related a { font-size: 20px; }
  .wissen-author { padding: 44px 0; }
  .wissen-author-inner { gap: 18px; align-items: flex-start; }
  .wissen-author picture { flex-basis: 72px; width: 72px; height: 72px; }
  .wissen-author-lead { font-size: 23px; }
  .wissen-cta .cta-main h2 { font-size: clamp(30px, 8.4vw, 38px) !important; } /* base.css sets it with !important */
  .wissen-cta-text { margin: 20px auto 28px; }
  .wissen-cta .wissen-cta-text p { font-size: 16px; }
  .wissen-hero { padding: 36px 0 56px; }
  .wissen-hero-grid { gap: 32px; }
  .wissen-hero .h1 { margin-bottom: 22px; }
  .wissen-hero-lede p { font-size: 19px; }
  .wissen-hero-image { max-width: none; }
  .wissen-hero-image picture { aspect-ratio: 4 / 3; }
  .wissen-areas { padding: 56px 0; }
  .wissen-area-grid { grid-template-columns: 1fr; }
  .wissen-area { padding: 24px 20px 20px; }
  .wissen-area-title { font-size: 26px; }
  .wissen-hub-text { padding: 56px 0 8px; }
}
