/* ===================================================
   deredelsteineshop.de — Design System
   Hell & Elegant | Cormorant Garamond + Jost
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --cream:        #f7f4ee;
  --cream-deep:   #efe9dc;
  --cream-card:   #faf8f4;
  --navy:         #1b2a38;
  --navy-deep:    #111e2a;
  --gold:         #b8862a;
  --gold-light:   #c9a96e;
  --gold-pale:    #f2e8d5;
  --gold-shine:   #e8c97a;
  --ink:          #1a1814;
  --ink-muted:    #6b6560;
  --ink-light:    #9a9490;
  --line:         #ddd8ce;
  --white:        #ffffff;
  --accent-ruby:  #8b1a1a;
  --accent-sapph: #1a3a6b;
  --accent-emer:  #1a5c3a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 2px 8px rgba(26,24,20,.07);
  --shadow-md:  0 6px 24px rgba(26,24,20,.10);
  --shadow-lg:  0 16px 48px rgba(26,24,20,.13);

  --transition: .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 3px; }

/* ── Selection ── */
::selection { background: var(--gold-pale); color: var(--ink); }

/* ── Typography ── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.1em; color: var(--ink-muted); }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; font-family: var(--font-display); }

/* ── Container ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section spacing ── */
.section { padding: 80px 0; }
.section--lg { padding: 120px 0; }
.section--sm { padding: 48px 0; }

/* ── Gold divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.divider span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: .1em;
}

/* ── Section label ── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ── Section heading block ── */
.section-head {
  margin-bottom: 56px;
}
.section-head h2 {
  margin-bottom: 12px;
}
.section-head p {
  font-size: 1.05rem;
  max-width: 560px;
}
.section-head--center {
  text-align: center;
}
.section-head--center p {
  margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(247,244,238,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__logo-main {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .02em;
}
.nav__logo-sub {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--ink);
}
.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
}

.nav__cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-size: .75rem !important;
  letter-spacing: .12em !important;
  transition: background var(--transition) !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--gold) !important; color: var(--white) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: var(--transition);
}

/* ── Mobile Nav ── */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--cream);
  padding: 20px 24px 32px;
  border-top: 1px solid var(--line);
  gap: 4px;
}
.nav__mobile a {
  display: block;
  padding: 10px 0;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:last-child { border-bottom: none; }

@media(max-width:768px){
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile.open { display: flex; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn--outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card__img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card__body {
  padding: 24px;
}

.card__tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card__excerpt {
  font-size: .88rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  transition: gap var(--transition), color var(--transition);
}
.card__link:hover { gap: 10px; color: var(--gold); }
.card__link svg { width: 14px; height: 14px; }

/* ============================================
   ARTICLE LAYOUT
   ============================================ */
.article-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}

.article-hero__label {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.article-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  max-width: 780px;
  margin-bottom: 20px;
}

.article-hero__lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-muted);
  max-width: 640px;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--ink-light);
  letter-spacing: .04em;
}

.article-body {
  padding: 64px 0;
}

.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-size: 1.9rem;
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.article-content h3 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: var(--navy);
}

.article-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: #4a4742;
  margin-bottom: 1.4em;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.4em 1.5em;
  color: #4a4742;
  font-size: 1rem;
  line-height: 1.8;
}

.article-content li { margin-bottom: .5em; }

.info-box {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: .95rem;
  color: var(--ink);
}
.info-box strong { display: block; margin-bottom: 6px; font-size: 1rem; }

.highlight-box {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 40px 0;
}
.highlight-box h3 { color: var(--gold-light); margin-bottom: 12px; }
.highlight-box p { color: rgba(255,255,255,.8); }

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.sidebar-box__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc-list a {
  font-size: .82rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.toc-list a::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold-light);
  flex-shrink: 0;
}
.toc-list a:hover { color: var(--gold); }

.affiliate-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
}
.affiliate-box .stone-emoji { font-size: 2rem; margin-bottom: 12px; display: block; }
.affiliate-box h4 { color: var(--gold-light); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }
.affiliate-box p { color: rgba(255,255,255,.75); font-size: .85rem; margin-bottom: 16px; }

/* ============================================
   ARTICLE GRID LAYOUT
   ============================================ */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

@media(max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

/* ============================================
   STONE GRID
   ============================================ */
.stone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.stone-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.stone-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stone-card__gem {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.stone-card__gem::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
}

.stone-card__name {
  background: var(--cream-card);
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: none;
}
.stone-card__sub {
  font-size: .72rem;
  color: var(--ink-light);
  font-family: var(--font-body);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}
.footer__brand-sub {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 16px;
}
.footer__tagline {
  font-size: .88rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(255,255,255,.55);
}

.footer__heading {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

.footer__affiliate-note {
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  max-width: 420px;
  text-align: right;
}

@media(max-width:900px){
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer__affiliate-note { text-align: center; }
}
@media(max-width:480px){
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================
   ANIMATIONS & REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--ink-light);
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb__sep { color: var(--gold-light); }

/* ============================================
   COMPARE TABLE
   ============================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: .9rem;
}
.compare-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
}
.compare-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  vertical-align: top;
}
.compare-table tr:nth-child(even) td { background: var(--cream-deep); }
.compare-table tr:hover td { background: var(--gold-pale); }
.compare-table td:first-child { font-weight: 600; color: var(--ink); }

/* ============================================
   BADGE / TAG
   ============================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.badge--gold { background: var(--gold-pale); color: var(--gold); }
.badge--navy { background: rgba(27,42,56,.1); color: var(--navy); }
.badge--ruby { background: rgba(139,26,26,.1); color: var(--accent-ruby); }

/* ============================================
   RATING STARS
   ============================================ */
.stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }

/* ============================================
   PROGRESS BAR (für Qualitätsskala etc.)
   ============================================ */
.progress-bar {
  background: var(--line);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-shine));
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(.4,0,.2,1);
}
.progress-bar__fill.animated { transform: scaleX(1); }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
  z-index: 500;
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--gold);
  transform: translateY(-3px);
}
.back-to-top svg { width: 18px; height: 18px; }

/* ============================================
   UTILITY
   ============================================ */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.text-display { font-family: var(--font-display); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

@media(max-width:900px){
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:600px){
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section--lg { padding: 80px 0; }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy-deep);
  color: var(--white);
  padding: 20px 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transform: translateY(100%);
  transition: transform .5s ease;
  border-top: 2px solid var(--gold);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.8); }
.cookie-banner p a { color: var(--gold-light); }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }

@media(max-width:600px){
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
