/* =====================================================================
   Theme „Ruby G – Dark Enchantment“
   Dunkler Perlgrund, Champagner-Gold, Lavendel, Salbei, Rosé, Cinzel-Schrift.
   Wird nur geladen, wenn der Shop das Design „ruby“ nutzt.
   ===================================================================== */
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }

body:has(.theme-ruby) {
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, #f1dfb599 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 62%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 44%, #f08fb099 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 88%, #b89cf299 50%, transparent 51%),
    radial-gradient(circle at 85% -5%, #d9b36c1f 0, transparent 34%),
    radial-gradient(circle at 5% 25%, #b89cf214 0, transparent 30%),
    radial-gradient(circle at 95% 70%, #f08fb012 0, transparent 32%),
    #0c0a10;
  background-attachment: fixed;
}
.theme-ruby {
  --bg: #0c0a10; --surface: #15111a; --surface-2: #1c1623; --line: #2f2638;
  --text: #f7f1ea; --text-2: #d6cbdf; --muted: #b8adc2;
  --gold: #d9b36c; --gold-light: #f1dfb5; --gold-deep: #a97c35;
  --lavender: #b89cf2; --sage: #8fcf8a; --rose: #f08fb0; --pearl: #f7f1ea;
  --accent: var(--gold); --accent-ink: #1a1208;
  --good: #a8e3a4; --good-bg: #8fcf8a1c; --warn: #f1cf86; --warn-bg: #d9b36c1c;
  --bad: #ff9ab5; --bad-bg: #f08fb01c; --info-bg: #b89cf21c;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  background: transparent; color: var(--text);
}
.theme-ruby ::selection { background: #d9b36c55; color: #fff; }
.theme-ruby a { color: var(--gold-light); }
.theme-ruby .wrap { max-width: 1280px; padding: 0 1.5rem; }
.theme-ruby svg.ic { flex: 0 0 auto; }

/* Überschriften */
.theme-ruby h1, .theme-ruby h2, .theme-ruby .rg-brand span, .theme-ruby .rg-card h3 {
  font-family: var(--display); font-weight: 600; letter-spacing: .05em;
}
.theme-ruby h1 {
  background: linear-gradient(100deg, #f7f1ea 0%, #f1dfb5 30%, #d9b36c 50%, #f1dfb5 70%, #f7f1ea 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px #d9b36c33);
}

/* Kopfzeile */
.rg-head { position: sticky; top: 0; z-index: 20; background: #0c0a10d9; backdrop-filter: blur(12px);
  border-bottom: 1px solid #d9b36c26; box-shadow: 0 8px 35px #0009; }
.rg-head .wrap { height: 76px; display: flex; align-items: center; gap: 2rem; }
.rg-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none !important; }
.rg-brand img { width: 44px; height: 44px; object-fit: contain; }
.rg-brand span { color: var(--gold); text-shadow: 0 0 16px #d9b36c55; font-size: 1.35rem; letter-spacing: .22em; }
.rg-nav { display: flex; gap: 1.6rem; margin: 0 auto; }
.rg-nav a { color: var(--muted); font-size: .92rem; letter-spacing: .04em; }
.rg-nav a:hover { color: var(--pearl); text-decoration: none; }
.rg-actions { display: flex; align-items: center; gap: 1rem; }
.rg-search { display: flex; align-items: center; background: #0f0c13; border: 1px solid #342a3e; border-radius: 99px; padding: 0 4px 0 14px; }
.rg-search input { background: transparent; border: 0; color: var(--text); width: 150px; padding: 8px 0; outline: none !important; }
.rg-search button { background: none; border: 0; color: var(--gold-light); padding: 6px 8px; cursor: pointer; display: grid; }
.rg-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px #d9b36c22; }
.rg-cart { position: relative; color: var(--gold-light) !important; display: grid; padding: 6px; }
.rg-cart:hover svg { filter: drop-shadow(0 0 7px #d9b36c); }
.rg-cart b { position: absolute; top: -4px; right: -6px; background: var(--gold); color: #1a1208; border-radius: 99px;
  font-size: 11px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; }
.rg-burger { display: none; }

/* Buttons */
.theme-ruby .btn { background: #1c1623; border-color: #3a2f45; color: var(--text); }
.theme-ruby .btn:hover { border-color: var(--gold); background: #231b2b; }
.rg-btn, .theme-ruby .btn.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer; font: inherit; font-weight: 700;
  background: linear-gradient(135deg, #f1dfb5 0%, #d9b36c 45%, #b8893d 100%) !important; border: 1px solid #f1dfb5 !important;
  color: #1a1208 !important; box-shadow: 0 8px 28px #d9b36c33; border-radius: 10px; padding: .8rem 1.4rem;
  text-decoration: none !important; transition: box-shadow .2s, filter .2s, transform .2s;
}
.rg-btn:hover, .theme-ruby .btn.primary:hover { box-shadow: 0 10px 34px #d9b36c55; filter: brightness(1.06); }
.rg-btn:disabled { background: #241d2b !important; border-color: #3a2f45 !important; color: var(--muted) !important; box-shadow: none; cursor: not-allowed; filter: none; }
.theme-ruby .btn.danger { color: var(--bad); border-color: #f08fb055; }

/* Hero */
.rg-hero { position: relative; overflow: hidden; border-bottom: 1px solid #d9b36c1a;
  background: radial-gradient(ellipse at 18% 40%, #b89cf21f 0, transparent 45%), radial-gradient(ellipse at 40% 85%, #f08fb014 0, transparent 40%),
              radial-gradient(ellipse at 30% 10%, #d9b36c1a 0, transparent 42%); }
.rg-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background:
  radial-gradient(2px 2px at 14% 22%, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 31% 70%, #f1dfb5 50%, transparent 51%),
  radial-gradient(2px 2px at 48% 14%, #f08fb0 50%, transparent 51%), radial-gradient(1.5px 1.5px at 62% 58%, #fff 50%, transparent 51%),
  radial-gradient(2.5px 2.5px at 78% 30%, #b89cf2 50%, transparent 51%), radial-gradient(2px 2px at 90% 76%, #f1dfb5 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 22% 88%, #8fcf8a 50%, transparent 51%); }
.rg-hero-in { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 2rem; min-height: 560px; padding-block: 3rem; position: relative; z-index: 1; }
.rg-hero h1 { margin: 0 0 1.2rem; line-height: 1.05; background: none; filter: none; color: var(--pearl); }
.rg-hero h1 span { display: block; font-size: clamp(2rem, 4.4vw, 3.6rem); color: var(--pearl); text-shadow: 0 2px 0 #3a2d24, 0 0 30px #f7f1ea22; }
.rg-hero h1 em { display: block; font-style: normal; font-size: clamp(2.4rem, 6vw, 5rem); margin-top: .3rem;
  background: linear-gradient(100deg, #f08fb0 0%, #f1dfb5 35%, #d9b36c 50%, #b89cf2 80%, #f08fb0 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px #d9b36c44); }
.rg-hero-copy > p { color: var(--muted); font-size: 1.1rem; max-width: 520px; line-height: 1.6; margin: 0 0 1.8rem; }
.rg-benefits { display: flex; gap: 2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.rg-benefits span { display: flex; align-items: center; gap: .7rem; color: var(--pearl); font-weight: 600; font-size: .9rem; max-width: 140px; line-height: 1.25; }
.rg-benefits b { color: var(--gold); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid #d9b36c55; background: #d9b36c10; flex: 0 0 52px; }
.rg-hero-art { display: grid; place-items: center; background: radial-gradient(circle at center, #d9b36c22, transparent 65%); }
.rg-hero-art img { width: 100%; max-height: 520px; object-fit: contain; filter: drop-shadow(0 30px 50px #000c); }

/* Laufband */
.rg-ticker { overflow: hidden; padding: .8rem 0; border-block: 1px solid #d9b36c33;
  background: linear-gradient(90deg, #120e17, #1d1622 50%, #120e17); mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent); }
.rg-ticker-track { display: flex; gap: 1.4rem; width: max-content; white-space: nowrap; font-family: var(--display);
  font-size: 1.05rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-light); }
.rg-ticker-track span::after { content: "✦"; margin-left: 1.4rem; color: var(--gold); font-size: .8em; }

/* Kacheln */
.rg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
.rg-tile { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: 16px; border: 1px solid;
  background: linear-gradient(145deg, #17121d, #110d16); text-decoration: none !important; transition: transform .25s, filter .25s; }
.rg-tile:hover { transform: translateY(-3px); filter: brightness(1.12); }
.rg-tile.gold { color: var(--gold); border-color: #d9b36c66; box-shadow: 0 0 22px #d9b36c1a; }
.rg-tile.lavender { color: var(--lavender); border-color: #b89cf266; box-shadow: 0 0 22px #b89cf21a; }
.rg-tile.rose { color: var(--rose); border-color: #f08fb066; box-shadow: 0 0 22px #f08fb01a; }
.rg-tile div { flex: 1; display: grid; gap: .25rem; }
.rg-tile strong { font-family: var(--display); font-weight: 600; letter-spacing: .1em; color: var(--pearl); }
.rg-tile small { color: var(--muted); }

/* Produktbereich */
.rg-section { padding-top: 3rem; padding-bottom: 4rem; }
.rg-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.rg-section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.05; margin: 0 0 .4rem; color: var(--pearl); letter-spacing: .08em; }
.rg-section-head p { color: var(--muted); margin: 0; }
.rg-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.rg-chips a { padding: .45rem 1rem; border: 1px solid #3a2f45; border-radius: 99px; color: var(--muted); font-size: .88rem; }
.rg-chips a:hover { border-color: var(--gold); color: var(--pearl); text-decoration: none; }
.rg-chips a.on { background: #d9b36c1f; border-color: var(--gold); color: var(--gold-light); }
.rg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.rg-card { --tone: var(--gold); position: relative; overflow: hidden; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--tone) 30%, #2f2638);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 10%, #17121d), #110d16); display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s; }
.rg-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tone) 70%, transparent); box-shadow: 0 18px 40px #0009, 0 0 26px color-mix(in srgb, var(--tone) 22%, transparent); }
.rg-card::after { content: ""; position: absolute; inset: -60% -90%; pointer-events: none; transform: translateX(-45%) rotate(4deg); transition: transform .75s ease;
  background: linear-gradient(110deg, transparent 42%, #ffffff12 49%, #ffffff26 50%, #ffffff12 51%, transparent 58%); }
.rg-card:hover::after { transform: translateX(45%) rotate(4deg); }
.tone-gold { --tone: var(--gold); } .tone-lavender { --tone: var(--lavender); } .tone-sage { --tone: var(--sage); } .tone-rose { --tone: var(--rose); }
.rg-card-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 1.2rem;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 65%); font-size: 3rem; }
.rg-card-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px #000a); transition: transform .4s; }
.rg-card:hover .rg-card-img img { transform: scale(1.05) translateY(-4px); }
.rg-badge { position: absolute; top: 12px; left: 12px; background: var(--rose); color: #2a0d18; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 99px; }
.rg-card-body { padding: 0 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; position: relative; z-index: 1; }
.rg-card-body > small:first-child { color: var(--tone); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.rg-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.rg-card h3 a { color: var(--pearl); }
.rg-card strong { font-size: 1.3rem; color: var(--pearl); margin-top: .3rem; }
.rg-note { color: var(--muted); font-size: .68rem; }
.rg-card form { margin-top: auto; padding-top: .8rem; }
.rg-card-cart { width: 100%; padding: .7rem 1rem; font-size: .9rem; }

/* Fußzeile */
.rg-foot { border-top: 1px solid #d9b36c22; background: #09070c; padding: 2.6rem 0 1.5rem; margin-top: auto; color: var(--muted); }
.rg-foot-main { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.rg-foot-main p { margin: .8rem 0 0; font-size: .75rem; letter-spacing: .14em; color: #8f7ca6; }
.rg-foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 2rem; }
.rg-foot-links a { color: var(--muted); font-size: .85rem; }
.rg-foot-links a:hover { color: var(--gold-light); }
.rg-foot-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #261d33; font-size: .72rem; color: #8f7ca6; }

/* Unterseiten (Produkt, Warenkorb, Kasse, Bestellung) */
.theme-ruby .card, .theme-ruby .checkout aside { background: linear-gradient(145deg, #17121d, #110d16); border-color: var(--line); box-shadow: none; }
.theme-ruby th { background: #1a1520; color: var(--muted); }
.theme-ruby th, .theme-ruby td { border-color: var(--line); }
.theme-ruby .sum .total td { border-color: #d9b36c44; color: var(--gold-light); }
.theme-ruby input, .theme-ruby select, .theme-ruby textarea { background: #0f0c13; border-color: #342a3e; color: var(--text); }
.theme-ruby input:focus, .theme-ruby select:focus, .theme-ruby textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px #d9b36c22; }
.theme-ruby label { color: var(--text-2); }
.theme-ruby .muted, .theme-ruby .hint { color: var(--muted) !important; }
.theme-ruby .payopt { border-color: var(--line); }
.theme-ruby .payopt:has(input:checked) { border-color: var(--gold); background: #d9b36c10; }
.theme-ruby input[type=radio], .theme-ruby input[type=checkbox] { accent-color: var(--gold); }
.theme-ruby .price-sale { color: var(--rose); }
.theme-ruby s.old { color: var(--muted); }
.theme-ruby .pdp .img, .theme-ruby .pcard .img { background: radial-gradient(circle at 50% 55%, #d9b36c22, transparent 65%), #120e17; border: 1px solid var(--line); }
.theme-ruby .pdp .img img, .theme-ruby .pcard .img img { object-fit: contain; padding: 6%; filter: drop-shadow(0 20px 30px #000a); }
.theme-ruby .pdp h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.theme-ruby .pdp .price { color: var(--gold-light); font-weight: 800; }
.theme-ruby .pcard, .theme-ruby .pcard .t { color: var(--pearl); }
.theme-ruby .thumb { background: #120e17; border-color: var(--line); object-fit: contain; }
.theme-ruby .steps span { background: #1a1520; color: var(--muted); }
.theme-ruby .steps span.on { background: #8fcf8a1f; color: #a8e3a4; }
.theme-ruby .steps span.bad { background: #f08fb01f; color: var(--bad); }
.theme-ruby .card[style*="warn-bg"] { background: #d9b36c14 !important; border-color: #d9b36c55 !important; }
.theme-ruby .flash.ok { background: #8fcf8a14; border-color: #8fcf8a55; color: #a8e3a4; }
.theme-ruby .flash.error { background: #f08fb014; border-color: #f08fb055; color: #ff9ab5; }
.theme-ruby .badge { background: #2a2232; color: var(--text-2); }
.theme-ruby .badge.good { background: #8fcf8a1f; color: #a8e3a4; } .theme-ruby .badge.warn { background: #d9b36c1f; color: #f1cf86; }
.theme-ruby .badge.bad { background: #f08fb01f; color: #ff9ab5; }
.theme-ruby .empty { color: var(--muted); }
.theme-ruby .timeline li { border-color: var(--line); }

/* Bewegung nur, wenn erwünscht */
@keyframes rgShimmer { from { background-position: 0% 50%; } to { background-position: 250% 50%; } }
@keyframes rgTwinkle { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes rgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rgTicker { to { transform: translateX(-50%); } }
@keyframes rgGlow { 0%, 100% { box-shadow: 0 8px 28px #d9b36c33; } 50% { box-shadow: 0 8px 36px #d9b36c66; } }
@media (prefers-reduced-motion: no-preference) {
  .rg-hero h1 em, .theme-ruby h1:not(.rg-hero h1) { animation: rgShimmer 7s linear infinite; }
  .rg-hero::after { animation: rgTwinkle 3.2s ease-in-out infinite; }
  .rg-hero-art img { animation: rgFloat 6s ease-in-out infinite; }
  .rg-ticker-track { animation: rgTicker 32s linear infinite; }
  .rg-cta { animation: rgGlow 3.2s ease-in-out infinite; }
}

/* Mobil */
@media (max-width: 1000px) { .rg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rg-search input { width: 110px; } }
@media (max-width: 800px) {
  .rg-head .wrap { gap: 1rem; }
  .rg-burger { display: grid; gap: 5px; cursor: pointer; padding: 8px; order: 3; }
  .rg-burger span { width: 22px; height: 2px; background: var(--gold-light); border-radius: 2px; }
  .rg-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: #0c0a10f2; border-bottom: 1px solid #d9b36c26; }
  .rg-nav a { padding: 1rem 1.5rem; border-top: 1px solid #1f1926; }
  #rg-menu:checked ~ .rg-nav { display: flex; }
  .rg-actions { margin-left: auto; }
  .rg-search { display: none; }
  .rg-hero-in { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .rg-hero-art { order: -1; } .rg-hero-art img { max-height: 300px; }
  .rg-tiles { grid-template-columns: 1fr; }
  .rg-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .rg-card-body { padding: 0 .8rem 1rem; }
  .rg-foot-main { grid-template-columns: 1fr; gap: 1.6rem; }
  .rg-foot-bottom { flex-direction: column; gap: .5rem; }
}

/* --- Feinschliff --- */
.store.theme-ruby header.rg-head { background: #0c0a10d9; border-bottom: 1px solid #d9b36c26; }
.store.theme-ruby footer.rg-foot { background: #09070c; border-top: 1px solid #d9b36c22; padding: 2.6rem 0 1.5rem; }
.theme-ruby .rg-head .wrap { padding-block: 0; }
.rg-hero h1 span { font-size: clamp(1.5rem, 2.8vw, 2.4rem); letter-spacing: .08em; line-height: 1.2; }
.rg-hero h1 em { font-size: clamp(2.8rem, 6.5vw, 5.6rem); }
.rg-hero-art img { border-radius: 22px; -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%); }
.theme-ruby .rg-tiles { margin-top: 2.4rem; }
.theme-ruby .rg-section { padding-top: 3.5rem; padding-bottom: 4.5rem; }
.rg-card-img { aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border-bottom: 1px solid color-mix(in srgb, var(--tone) 25%, transparent); }
.rg-card-img img { object-fit: cover; filter: none; }
.rg-card:hover .rg-card-img img { transform: scale(1.05); }
.rg-card-body { padding-top: 1rem; }
.theme-ruby .pdp .img, .theme-ruby .pcard .img { aspect-ratio: 4 / 5; border-color: #d9b36c33; box-shadow: 0 20px 50px #0008, 0 0 30px #d9b36c14; }
.theme-ruby .pdp .img img, .theme-ruby .pcard .img img { object-fit: cover; padding: 0; filter: none; }
.theme-ruby .pdp { align-items: center; }
body:has(.theme-ruby) { overflow-x: hidden; }
.rg-hero-in, .rg-tiles, .rg-grid { min-width: 0; }
.rg-hero-in > *, .rg-grid > *, .rg-tiles > * { min-width: 0; }
.rg-hero-art img { max-width: 100%; height: auto; }
@media (max-width: 800px) {
  .rg-hero-in { grid-template-columns: minmax(0, 1fr); }
  .rg-tiles { grid-template-columns: minmax(0, 1fr); }
  .rg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-benefits { gap: 1rem; }
  .rg-card h3 { font-size: .92rem; } .rg-card strong { font-size: 1.1rem; }
  .rg-card-cart { font-size: .8rem; padding: .6rem .5rem; }
  .rg-brand span { font-size: 1.1rem; letter-spacing: .16em; }
}
@media (max-width: 800px) { .rg-hero-in { padding-bottom: 2.5rem; } }
