/* =====================================================================
   Theme „Ruby G – Wüstensand“
   Baut auf theme-ruby.css auf: Nachthimmel, Vollmond, Sandwirbel,
   Bernstein-Gold, Pinselschrift-Titel, Cinzel für Untertitel.
   Wird nur geladen, wenn der Shop das Design „sand“ nutzt.
   ===================================================================== */
@font-face { font-family: "RGBrush"; src: url("fonts/brush.ttf") format("truetype"); font-display: swap; }

body:has(.theme-sand) {
  background:
    radial-gradient(1.5px 1.5px at 14% 22%, #f3c77acc 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 64%, #ffe1a6aa 50%, transparent 51%),
    radial-gradient(2px 2px at 61% 38%, #e8a94f99 50%, transparent 51%),
    radial-gradient(1px 1px at 79% 81%, #ffd99099 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 91% 14%, #f3c77a99 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 92%, #ffe1a699 50%, transparent 51%),
    radial-gradient(circle at 82% -4%, #f0b05a2e 0, transparent 38%),
    radial-gradient(ellipse at 50% 120%, #8a5a2a40 0, transparent 55%),
    linear-gradient(180deg, #120c08 0%, #0d0906 55%, #170f09 100%);
  background-attachment: scroll;
}
/* Seite ist bereits dunkel: verhindert, dass der Browser-Dunkelmodus Bilder grau/bläulich färbt */
html:has(.theme-sand) { color-scheme: dark; }
.theme-sand {
  --bg: #0d0906; --surface: #18110b; --surface-2: #20170f; --line: #3a2a1b;
  --text: #f6ead6; --text-2: #e3d2b6; --muted: #bba68a;
  --gold: #e3a94f; --gold-light: #f7d8a0; --gold-deep: #a8702c;
  --lavender: #d98b4a; --sage: #c9b27a; --rose: #e0704f; --pearl: #f6ead6;
  --accent: var(--gold); --accent-ink: #1c1006;
  --good: #cfe3a0; --good-bg: #c9b27a1c; --warn: #f5c873; --warn-bg: #e3a94f1c;
  --bad: #ff9e85; --bad-bg: #e0704f1c; --info-bg: #d98b4a1c;
  --brush: "RGBrush", "Brush Script MT", "Segoe Print", cursive;
}
.theme-sand ::selection { background: #e3a94f55; color: #fff; }

/* Titel in Pinselschrift mit Goldverlauf */
.theme-sand h1 {
  font-family: var(--brush); font-weight: 400; letter-spacing: .02em; text-transform: uppercase;
  background: linear-gradient(175deg, #fff1cf 0%, #f7d8a0 30%, #e3a94f 60%, #a8702c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #2a1708) drop-shadow(0 0 22px #e3a94f40); animation: none !important;
}
.theme-sand h2 { color: var(--pearl); }

/* Kopfzeile */
.store.theme-sand header.rg-head { background: #0d0906e0; border-bottom: 1px solid #e3a94f33; }
.store.theme-sand header.rg-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, #f7d8a0 50%, transparent); opacity: .5; }
.theme-sand .rg-brand span { font-family: var(--brush); font-weight: 400; letter-spacing: .06em; font-size: 1.6rem;
  background: linear-gradient(175deg, #fff1cf, #e3a94f 60%, #a8702c); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 2px 0 #2a1708); }
.theme-sand .rg-nav a { font-family: "Cinzel", Georgia, serif; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; }
.theme-sand .rg-nav a:hover { color: var(--gold-light); }
.theme-sand .rg-search { background: #120c08; border-color: #3a2a1b; }

/* Buttons: Bernstein-Gold */
.theme-sand .rg-btn, .theme-sand .btn.primary {
  background: linear-gradient(135deg, #f7d8a0 0%, #e3a94f 45%, #a8702c 100%) !important; border-color: #f7d8a0 !important;
  color: #1c1006 !important; box-shadow: 0 8px 28px #e3a94f33; border-radius: 4px; text-transform: uppercase; letter-spacing: .12em;
  font-family: "Cinzel", Georgia, serif; font-weight: 700; }
.theme-sand .rg-btn:disabled { background: #241a11 !important; border-color: #3a2a1b !important; color: var(--muted) !important; box-shadow: none; }
.theme-sand .btn { background: #20170f; border-color: #3a2a1b; }
.theme-sand .btn:hover { background: #2a1e13; border-color: var(--gold); }

/* Hero: Vollmond, Sandwirbel, Pinsel-Titel */
.theme-sand .rg-hero { border-bottom: 1px solid #e3a94f26; isolation: isolate;
  background:
    radial-gradient(ellipse at 70% 110%, #b9772f55 0, transparent 50%),
    radial-gradient(ellipse at 15% 100%, #7a4b1f44 0, transparent 45%),
    linear-gradient(180deg, #1a110a 0%, #120c08 60%, #24170c 100%); }
.theme-sand .rg-hero::before { content: ""; position: absolute; z-index: -1; width: min(42vw, 460px); aspect-ratio: 1; right: 4%; top: -6%;
  border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 38% 40%, #d99a5333 0 8%, transparent 9%),
    radial-gradient(circle at 62% 58%, #c9874233 0 6%, transparent 7%),
    radial-gradient(circle at 55% 28%, #d99a5326 0 4%, transparent 5%),
    radial-gradient(circle at 40% 40%, #ffe7bf 0%, #f6c987 45%, #e0a25a 75%, #b87a3c 100%);
  box-shadow: 0 0 80px 20px #f0b05a40, 0 0 220px 60px #f0b05a1f; opacity: .55; }
.theme-sand .rg-hero::after { mix-blend-mode: normal; opacity: .9; background:
  radial-gradient(2px 2px at 12% 30%, #ffd990 50%, transparent 51%), radial-gradient(1.5px 1.5px at 24% 76%, #f7d8a0 50%, transparent 51%),
  radial-gradient(2.5px 2.5px at 41% 18%, #e3a94f 50%, transparent 51%), radial-gradient(1.5px 1.5px at 57% 66%, #fff1cf 50%, transparent 51%),
  radial-gradient(2px 2px at 73% 84%, #e3a94f 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 52%, #ffd990 50%, transparent 51%),
  repeating-linear-gradient(-12deg, transparent 0 46px, #e3a94f0d 47px, transparent 49px, transparent 120px); }
.theme-sand .rg-hero-in { position: relative; }
.theme-sand .rg-hero-in::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 120px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 100% at 20% 100%, #6b411d88, transparent 70%),
    radial-gradient(ellipse 45% 90% at 75% 100%, #8a552488, transparent 70%); }
.theme-sand .rg-hero h1 { filter: none; background: none; }
.theme-sand .rg-hero h1 span { font-family: "Cinzel", Georgia, serif; font-weight: 600; text-transform: uppercase;
  font-size: clamp(.78rem, 1.1vw, .95rem); letter-spacing: .32em; line-height: 1.5; color: var(--gold-light); text-shadow: none;
  display: flex; align-items: center; gap: 1rem; }
.theme-sand .rg-hero h1 span::before, .theme-sand .rg-hero h1 span::after { content: ""; height: 1px; flex: 0 0 40px;
  background: linear-gradient(90deg, transparent, var(--gold)); }
.theme-sand .rg-hero h1 span::after { background: linear-gradient(90deg, var(--gold), transparent); }
.theme-sand .rg-hero h1 em { font-family: var(--brush); font-weight: 400; text-transform: uppercase; line-height: 1;
  font-size: clamp(3rem, 7.5vw, 6.4rem); margin-top: .6rem; transform: rotate(-3deg); transform-origin: left center;
  background: linear-gradient(175deg, #fff1cf 0%, #f7d8a0 30%, #e3a94f 62%, #9c6526 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #2a1708) drop-shadow(0 0 26px #e3a94f55); animation: none !important; }
.theme-sand .rg-hero-copy > p { color: var(--text-2); }
.theme-sand .rg-benefits b { color: var(--gold); border-color: #e3a94f66; background: #e3a94f12; }
.theme-sand .rg-hero-art { background: radial-gradient(circle at center, #e3a94f2a, transparent 65%); }

/* Pinselstrich-Banner (dunkler Strich mit goldenem Rand) */
.theme-sand .rg-section-head > div:first-child {
  padding: 1.1rem 2.6rem 1.2rem 2rem; margin-left: -1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M10 20 L38 11 L70 16 L112 7 L150 13 L196 5 L240 12 L286 4 L330 11 L372 6 L394 9 L386 28 L397 47 L389 66 L395 84 L356 93 L318 87 L270 96 L226 89 L180 95 L134 88 L92 95 L52 88 L6 93 L15 72 L3 54 L13 36 Z' fill='%230b0705' fill-opacity='.92' stroke='%23e3a94f' stroke-width='1.6' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 24px #000a); }
.theme-sand .rg-section-head h2 { font-family: var(--brush); font-weight: 400; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(2rem, 3.6vw, 2.9rem); transform: rotate(-1.5deg);
  background: linear-gradient(175deg, #fff1cf, #f7d8a0 35%, #e3a94f 70%, #a8702c);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-sand .rg-section-head p { font-family: "Cinzel", Georgia, serif; text-transform: uppercase; letter-spacing: .3em; font-size: .72rem; color: var(--gold-light); }

/* Laufband */
.theme-sand .rg-ticker { border-color: #e3a94f44; background: linear-gradient(90deg, #120c08, #24170c 50%, #120c08); }
.theme-sand .rg-ticker-track { color: var(--gold-light); }
.theme-sand .rg-ticker-track span::after { content: "⧗"; color: var(--gold); }

/* Kacheln */
.theme-sand .rg-tile { background: linear-gradient(145deg, #1c130c, #120c08); border-radius: 6px; }
.theme-sand .rg-tile.gold { color: var(--gold); border-color: #e3a94f66; box-shadow: 0 0 22px #e3a94f1a; }
.theme-sand .rg-tile.lavender { color: #d98b4a; border-color: #d98b4a66; box-shadow: 0 0 22px #d98b4a1a; }
.theme-sand .rg-tile.rose { color: #e0704f; border-color: #e0704f66; box-shadow: 0 0 22px #e0704f1a; }

/* Kategorien-Chips */
.theme-sand .rg-chips a { border-radius: 3px; border-color: #3a2a1b; font-family: "Cinzel", Georgia, serif; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; background: #120c08cc; }
.theme-sand .rg-chips a.on, .theme-sand .rg-chips a:hover { background: #e3a94f22; border-color: var(--gold); color: var(--gold-light); }

/* Produktkarten */
.theme-sand .rg-card { border-radius: 6px; border-color: color-mix(in srgb, var(--tone) 35%, #3a2a1b);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 8%, #1a120b), #0f0a06); }
.theme-sand .rg-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid #e3a94f1f; border-radius: 3px; pointer-events: none; z-index: 2; }
.theme-sand .rg-card h3 { font-family: "Cinzel", Georgia, serif; letter-spacing: .06em; }
.theme-sand .rg-badge { background: linear-gradient(135deg, #f7d8a0, #e3a94f); color: #1c1006; border-radius: 3px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }

/* Unterseiten */
.theme-sand .card, .theme-sand .checkout aside { background: linear-gradient(145deg, #1a120b, #100a06); border-color: var(--line); border-radius: 6px; }
.theme-sand th { background: #1c140c; }
.theme-sand input, .theme-sand select, .theme-sand textarea { background: #120c08; border-color: #3a2a1b; }
.theme-sand input:focus, .theme-sand select:focus, .theme-sand textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #e3a94f22; }
.theme-sand .pdp .img, .theme-sand .pcard .img { background: radial-gradient(circle at 50% 55%, #e3a94f22, transparent 65%), #120c08;
  border-color: #e3a94f33; border-radius: 6px; box-shadow: 0 20px 50px #0008, 0 0 30px #e3a94f14; }
.theme-sand .thumb { background: #120c08; }
.theme-sand .badge { background: #2a1e13; }

/* Fußzeile */
.store.theme-sand footer.rg-foot { background: linear-gradient(180deg, #0d0906, #080503); border-top: 1px solid #e3a94f33; }
.theme-sand .rg-foot-main p { color: #a88d6a; font-family: "Cinzel", Georgia, serif; }
.theme-sand .rg-foot-bottom { border-color: #2a1e13; color: #a88d6a; }

@media (max-width: 800px) {
  .theme-sand .rg-hero::before { width: 60vw; right: -10%; top: -4%; opacity: .4; }
  .theme-sand .rg-hero h1 span { letter-spacing: .28em; }
  .theme-sand .rg-hero h1 span::before, .theme-sand .rg-hero h1 span::after { flex-basis: 20px; }
  .theme-sand .rg-section-head > div:first-child { padding: .9rem 1.8rem 1rem 1.4rem; margin-left: -.4rem; }
  .theme-sand .rg-nav { background: #0d0906f2; }
  .theme-sand .rg-brand span { font-size: 1.3rem; }
}

/* =====================================================================
   Szene im Stil des Stream-Artworks: Figur, Banner, Festung, Sandwind
   ===================================================================== */
.sd-hero::before { display: none; }
.sd-hero { min-height: 640px; }
.sd-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 640px; padding-block: 2rem 0; align-items: end; z-index: 2; }
.sd-hero .rg-hero-copy { align-self: center; padding-bottom: 2.5rem; }

/* Figur: läuft zu den Rändern in den Hintergrund aus */
.sd-art { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; margin-right: -4vw; }
.sd-art img { width: 100%; max-height: 700px; object-fit: cover; object-position: 50% 20%;
  -webkit-mask-image: radial-gradient(ellipse 52% 66% at 58% 44%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 66% at 58% 44%, #000 50%, transparent 100%); filter: saturate(1.05) contrast(1.03); }
.sd-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 60% 25%, #f0b05a14, transparent 55%); }

/* Hängende Banner mit Sanduhr */
.sd-banner { position: absolute; top: 0; z-index: 1; width: 58px; height: 270px; pointer-events: none; }
.sd-banner.sd-left { left: 1.2%; } .sd-banner.sd-right { right: 1.2%; }
.sd-banner i { position: absolute; top: 14px; left: -10px; right: -10px; height: 6px; border-radius: 3px;
  background: linear-gradient(180deg, #8a6a3e, #3b2a17); box-shadow: 0 2px 6px #000a; }
.sd-banner::before { content: ""; position: absolute; top: 18px; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #120a05, #2a1a0e 50%, #120a05);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%); box-shadow: inset 0 0 0 1px #e3a94f33; opacity: .95; }
.sd-banner::after { content: ""; position: absolute; top: 26px; left: 6px; right: 6px; bottom: 12px;
  border-left: 1px solid #e3a94f44; border-right: 1px solid #e3a94f44; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%); }
.sd-banner b { position: absolute; left: 0; right: 0; top: 46%; display: grid; place-items: center; color: var(--gold); filter: drop-shadow(0 0 8px #e3a94f66); }

/* Festung / Felsen-Silhouette */
.sd-fort { position: absolute; left: 0; bottom: 0; width: 72%; height: 230px; z-index: 0; pointer-events: none; fill: #0a0603; opacity: .7;
  }

/* Sandwind */
.sd-drift { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .55;
  background:
    repeating-linear-gradient(-14deg, transparent 0 60px, #f0b05a10 62px, transparent 66px, transparent 150px),
    radial-gradient(1.5px 1.5px at 20% 40%, #ffd990 50%, transparent 51%), radial-gradient(1px 1px at 45% 75%, #f7d8a0 50%, transparent 51%),
    radial-gradient(2px 2px at 70% 20%, #e3a94f 50%, transparent 51%), radial-gradient(1px 1px at 85% 60%, #ffd990 50%, transparent 51%);
  background-size: 900px 600px, 400px 300px, 520px 380px, 600px 420px, 460px 340px; }

/* Titelblock wie im Artwork: Kicker, Pinsel-Titel, Unterzeile mit Sanduhr */
.sd-kicker { display: flex; align-items: center; gap: .8rem; margin: 0 0 .6rem; color: var(--gold-light);
  font-family: "Cinzel", Georgia, serif; font-weight: 600; text-transform: uppercase; letter-spacing: .3em; font-size: clamp(.7rem, .95vw, .85rem); }
.sd-kicker span { color: var(--gold); display: grid; }
.theme-sand .rg-hero h1.sd-title {
  background: linear-gradient(175deg, #fff1cf 0%, #f7d8a0 30%, #e3a94f 62%, #9c6526 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .2em; font-size: clamp(3.6rem, 8.5vw, 7.4rem); line-height: .95; margin: .1em 0 .25em; transform: rotate(-3deg); transform-origin: left center;
  filter: drop-shadow(0 5px 0 #2a1708) drop-shadow(0 0 30px #e3a94f55); }
.sd-sub { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.4rem; color: var(--gold-light);
  font-family: "Cinzel", Georgia, serif; text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; }
.sd-sub span { color: var(--gold); display: grid; }
.sd-desc { color: var(--text-2); font-size: 1.08rem; line-height: 1.6; max-width: 520px; margin: 0 0 1.8rem; }
.sd-ctas { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }

/* Twitch-Banner im Pinselstrich */
.sd-twitch { display: inline-flex; align-items: center; gap: .7rem; padding: .8rem 1.8rem .85rem 1.5rem; color: var(--pearl) !important;
  font-weight: 700; letter-spacing: .06em; font-size: 1.05rem; text-decoration: none !important; transform: rotate(-1.5deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath d='M8 12 L40 6 L90 9 L150 4 L210 8 L262 3 L294 7 L288 22 L297 38 L290 54 L240 57 L180 52 L120 58 L60 53 L4 56 L12 40 L3 26 Z' fill='%230b0705' fill-opacity='.95' stroke='%23e3a94f' stroke-width='1.6' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 18px #000a); transition: transform .2s, filter .2s; }
.sd-twitch svg { color: var(--gold); }
.sd-twitch:hover { transform: rotate(-1.5deg) scale(1.04); filter: drop-shadow(0 8px 18px #000a) drop-shadow(0 0 12px #e3a94f55); }
.sd-twitch.sm { margin-top: 1rem; font-size: .9rem; padding: .6rem 1.4rem .65rem 1.1rem; }

/* Trenner mit Fächer-Wirbel */
.sd-divider { display: flex; align-items: center; justify-content: center; gap: 1.2rem; color: var(--gold); margin: 3rem auto 0; max-width: 620px; padding: 0 1.5rem; }
.sd-divider::before, .sd-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #e3a94f99); }
.sd-divider::after { background: linear-gradient(90deg, #e3a94f99, transparent); }
.sd-divider svg { filter: drop-shadow(0 0 10px #e3a94f66); }

/* Kollektion: Text + gerahmtes Bild, kompakt */
.sd-collection { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; max-width: 1080px; margin-top: 2rem; }
.sd-coll-text h2 { font-family: var(--brush); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; margin: .2rem 0 .8rem;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; transform: rotate(-2deg); transform-origin: left center;
  background: linear-gradient(175deg, #fff1cf, #f7d8a0 35%, #e3a94f 70%, #a8702c); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #2a1708); }
.sd-coll-text > p:not(.sd-kicker) { color: var(--text-2); line-height: 1.6; margin: 0 0 1.4rem; max-width: 380px; }
.sd-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-light) !important; font-family: "Cinzel", Georgia, serif;
  text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; padding-bottom: .35rem; border-bottom: 1px solid #e3a94f66; text-decoration: none !important; }
.sd-link:hover { border-color: var(--gold); }
.sd-frame { position: relative; margin: 0; padding: 10px; justify-self: end; max-width: 560px; width: 100%;
  background: linear-gradient(145deg, #2a1c10, #120c07); border: 1px solid #e3a94f55; border-radius: 4px;
  box-shadow: 0 24px 50px #000b, 0 0 50px #e3a94f1a; transform: rotate(1deg); }
.sd-frame::before { content: ""; position: absolute; inset: 4px; border: 1px solid #e3a94f22; border-radius: 2px; pointer-events: none; }
.sd-frame::after { content: ""; position: absolute; inset: -9px; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 26px 2px, linear-gradient(var(--gold), var(--gold)) top left / 2px 26px,
    linear-gradient(var(--gold), var(--gold)) top right / 26px 2px, linear-gradient(var(--gold), var(--gold)) top right / 2px 26px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 26px 2px, linear-gradient(var(--gold), var(--gold)) bottom left / 2px 26px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 26px 2px, linear-gradient(var(--gold), var(--gold)) bottom right / 2px 26px;
  background-repeat: no-repeat; opacity: .8; }
.sd-frame { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(1deg);
  transition: transform .5s ease, box-shadow .5s ease; will-change: transform; }
.sd-frame.sd-tilt { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 34px 70px #000c, 0 0 70px #e3a94f33; }
.sd-frame-in { position: relative; overflow: hidden; border-radius: 2px; }
.sd-frame img { display: block; width: 100%; height: auto; border-radius: 2px; transform-origin: 50% 60%; filter: saturate(1.1) contrast(1.05); }
.sd-shine { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 46%, #fff4d926 49.3%, #ffffff55 50%, #fff4d926 50.7%, transparent 54%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0; }
.sd-frame.sd-tilt .sd-shine { animation: none !important; background-position: calc(130% - var(--gx, 50%) * 1.6) 0; opacity: .45; }

/* Sandsturm über der ganzen Seite (Canvas aus sand/sandstorm.js) */
.sd-storm { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.sd-storm-haze { position: fixed; top: -40%; left: -40%; width: 180%; height: 180%; z-index: 39; pointer-events: none; opacity: .5; will-change: transform;
  background:
    radial-gradient(ellipse 35% 22% at 30% 35%, #ffd7781a, transparent 70%),
    radial-gradient(ellipse 30% 20% at 70% 60%, #f7c85f14, transparent 70%),
    radial-gradient(ellipse 25% 18% at 50% 80%, #ffe7a012, transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes sdFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
  @keyframes sdKen { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06) translate(-1%, -1%); } }
  @keyframes sdShine { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
  @keyframes sdHaze { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-18%, 12%, 0); } }
  .sd-frame { animation: sdFloat 6s ease-in-out infinite; }
  .sd-frame img { animation: sdKen 14s ease-in-out infinite; }
  .sd-shine { animation: sdShine 6s ease-in-out infinite; }
  .sd-storm-haze { animation: sdHaze 26s ease-in-out infinite alternate; }
}

/* Angebote-Reiter */
.theme-sand .rg-nav a.rg-nav-sale { color: var(--gold); position: relative; }
.theme-sand .rg-nav a.rg-nav-sale::after { content: ""; position: absolute; top: -3px; right: -9px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.sd-empty { text-align: center; padding: 3rem 1rem; font-family: "Cinzel", Georgia, serif; letter-spacing: .08em; }

/* Produktkarten mit Papier-/Sandtextur und gerissener Goldkante */
.theme-sand .rg-card-body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M0 4 L12 2 L25 5 L38 1 L52 4 L66 2 L80 6 L95 2 L110 5 L124 1 L140 4 L155 2 L170 6 L186 2 L200 4' fill='none' stroke='%23e3a94f' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") top / 100% 8px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .7 0 0 0 0 .4 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding-top: 1.2rem; }
.theme-sand .rg-card::before { inset: 5px; border-color: #e3a94f26; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes sdWind { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: -900px 200px, -400px 120px, -520px 160px, -600px 140px, -460px 110px; } }
  @keyframes sdSway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(1.6deg); } }
  .sd-banner { transform-origin: 50% 16px; animation: sdSway 7s ease-in-out infinite; }
  .sd-banner.sd-right { animation-delay: -3.5s; }
}

@media (max-width: 1100px) { .sd-banner { display: none; } }
@media (max-width: 800px) {
  .sd-hero, .sd-hero-in { min-height: 0; }
  .sd-hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .sd-art { order: -1; margin: 0 -1.5rem; max-height: 440px; overflow: hidden; }
  .sd-art img { max-height: 440px; }
  .sd-hero .rg-hero-copy { padding-bottom: 2rem; margin-top: -3rem; position: relative; }
  .sd-fort { width: 120%; height: 140px; }
  .sd-kicker { letter-spacing: .22em; }
  .sd-sub { letter-spacing: .18em; }
  .sd-collection { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .sd-frame { justify-self: center; }
}

/* keine Überblend-Effekte im Wüstensand-Design (führten in manchen Browsern zu weißen/grauen Flächen) */
.theme-sand .rg-card::after { mix-blend-mode: normal; }
.theme-sand .sd-art img { filter: none; }

/* Flüssiges Scrollen: keine Glas-Unschärfe hinter dem Menü (wird sonst bei jedem Bild neu berechnet) */
.store.theme-sand header.rg-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0d0906f2; }
.sd-storm { will-change: contents; }

/* Ältere Browser ohne :has() – trotzdem dunkler Hintergrund */
@supports not selector(:has(a)) { .store.theme-sand { background: #0d0906; min-height: 100vh; } }

/* Adventskalender: Menüpunkt + Banner auf der Startseite */
.theme-ruby .rg-nav a.rg-nav-advent { color: var(--gold-light); }
.adv-banner { display: flex !important; align-items: center; gap: 16px; margin-top: 22px; padding: 16px 22px !important; border-radius: 10px; text-decoration: none !important;
  background: linear-gradient(120deg, #1c130c, #2a1b0e 50%, #1c130c); border: 1px solid #e3a94f66; box-shadow: 0 0 30px #e3a94f1f; color: var(--text) !important; }
.adv-banner:hover { border-color: var(--gold); box-shadow: 0 0 40px #e3a94f40; }
.adv-banner-ic { font-size: 2rem; }
.adv-banner > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.adv-banner b { font-family: var(--brush, inherit); font-weight: 400; font-size: 1.4rem; color: var(--gold-light); letter-spacing: .03em; }
.adv-banner small { color: var(--muted); }
.adv-banner-go { font-family: "Cinzel", Georgia, serif; text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; color: var(--gold); white-space: nowrap; }
@media (max-width: 640px) { .adv-banner-go { display: none; } }
