/* ============================================================
   GOLDEN BROTHERS — components.css
   Nav-Pill, Buttons, Double-Bezel, Siegel, Ornamente, Preiszeilen
   ============================================================ */

/* ---------- Floating Pill-Nav ---------- */
.pill-nav {
  position: fixed; top: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px);
  padding: 9px 9px 9px 20px;
  border-radius: 999px;
  max-width: min(760px, 94vw);
  background: rgba(5, 4, 3, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(246, 227, 169, 0.12), 0 14px 44px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease-luxe), border-color 0.4s var(--ease-luxe);
}
.pill-nav.scrolled {
  transform: translateX(-50%) scale(0.96);
  border-color: rgba(212, 175, 55, 0.5);
}
.nav-brand { display: grid; place-items: center; width: 34px; height: 34px; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.nav-links a {
  position: relative;
  font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 0.35s var(--ease-luxe);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-star {
  position: absolute; left: 50%; bottom: -7px;
  width: 9px; height: 9px; color: var(--gold);
  transform: translateX(-50%) scale(0.3); opacity: 0;
  transition: transform 0.4s var(--ease-luxe), opacity 0.4s var(--ease-luxe);
}
.nav-links a.active .nav-star { opacity: 1; transform: translateX(-50%) scale(1); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-gold); color: #050403;
  font-weight: 500; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 999px;
  transition: transform 0.4s var(--ease-luxe), box-shadow 0.4s var(--ease-luxe);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(212, 175, 55, 0.3); }
.nav-cta:active { transform: scale(0.97); }
.nav-cta svg { width: 14px; height: 14px; }

/* Burger (mobil) */
.burger {
  display: none;
  position: relative; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--hairline);
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--gold); border-radius: 2px;
  transition: transform 0.45s var(--ease-luxe), top 0.45s var(--ease-luxe);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 105;
  display: grid; place-items: center;
  background: rgba(5, 4, 3, 0.88);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease-luxe), visibility 0s linear 0.5s;
}
.menu-overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-overlay .ar-shadow {
  font-size: 34vw; top: 50%; left: 50%;
  transform: translate(-50%, -50%); opacity: 0.07;
}
.menu-overlay ul { display: grid; gap: 1.4rem; text-align: center; position: relative; }
.menu-overlay a {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 7vw, 2.6rem); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
}
.menu-overlay a:hover { color: var(--gold-light); }
.menu-overlay li {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s var(--ease-luxe), transform 0.55s var(--ease-luxe);
}
.menu-overlay.open li { opacity: 1; transform: none; }
.menu-overlay.open li:nth-child(1) { transition-delay: 0.08s; }
.menu-overlay.open li:nth-child(2) { transition-delay: 0.14s; }
.menu-overlay.open li:nth-child(3) { transition-delay: 0.20s; }
.menu-overlay.open li:nth-child(4) { transition-delay: 0.26s; }
.menu-overlay.open li:nth-child(5) { transition-delay: 0.32s; }

/* ---------- Buttons (Button-in-Button) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  border-radius: 999px;
  padding: 9px 9px 9px 26px;
  font-weight: 500; font-size: 0.92rem; letter-spacing: 0.08em;
  transition: transform 0.5s var(--ease-luxe), box-shadow 0.5s var(--ease-luxe), border-color 0.5s var(--ease-luxe);
}
.btn:active { transform: scale(0.98); }
.btn-ic {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  transition: transform 0.5s var(--ease-luxe);
}
.btn-ic svg { width: 15px; height: 15px; }
.btn .arr svg { transform: rotate(-45deg); transition: transform 0.5s var(--ease-luxe); }
.btn:hover .arr svg { transform: rotate(0deg); }
.btn:hover .btn-ic { transform: translate(2px, -1px) scale(1.05); }

.btn-gold {
  background: var(--grad-gold); color: #0A0805;
  box-shadow: 0 12px 34px rgba(212, 175, 55, 0.18);
}
.btn-gold:hover { box-shadow: 0 16px 44px rgba(212, 175, 55, 0.3); transform: translateY(-2px); }
.btn-gold .btn-ic { background: rgba(5, 4, 3, 0.92); color: var(--gold-light); }

.btn-ghost {
  border: 1px solid var(--hairline);
  background: rgba(15, 11, 7, 0.35); color: var(--text);
}
.btn-ghost:hover { border-color: rgba(212, 175, 55, 0.6); transform: translateY(-2px); }
.btn-ghost .btn-ic { background: rgba(212, 175, 55, 0.12); color: var(--gold); }

/* Kontakt-Reihen: volle Breite */
.btn-row { width: 100%; justify-content: space-between; padding: 10px 10px 10px 24px; }
.btn-row .btn-label { display: grid; gap: 1px; text-align: left; }
.btn-row .btn-label small {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.66; font-weight: 400;
}
.btn-row:hover .btn-ic svg { transform: rotate(315deg); }
.btn-row .btn-ic svg { transition: transform 0.7s var(--ease-luxe); }

/* ---------- Double-Bezel-System ---------- */
.bezel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-shell);
  padding: 8px;
}
.bezel-core {
  position: relative; overflow: hidden; height: 100%;
  background: var(--surface-core);
  border-radius: var(--radius-core);
  box-shadow: inset 0 1px 1px rgba(246, 227, 169, 0.08), inset 0 0 46px rgba(0, 0, 0, 0.55);
  padding: clamp(1.5rem, 3vw, 2.3rem);
}
.bezel-core::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--jali);
  background-size: 56px 56px;
  opacity: 0.05; pointer-events: none;
}
.bezel-core > * { position: relative; }

/* Cursor-Licht auf Hairlines (Preiskarten) */
.glow-card::after {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius-shell);
  padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(246, 227, 169, 0.95), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-luxe);
}
.glow-card.lit::after { opacity: 1; }
.glow-card.flash::after { animation: card-flash 1.4s var(--ease-luxe) both; }
@keyframes card-flash { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }

/* Juwelenkarte: rotierender conic-Goldrand */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.jewel::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius-shell);
  padding: 1.5px;
  background:
    conic-gradient(from var(--angle),
      transparent 0turn 0.35turn, rgba(246, 227, 169, 0.9) 0.48turn,
      transparent 0.62turn 1turn),
    linear-gradient(rgba(212, 175, 55, 0.4), rgba(140, 100, 32, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: jewel-spin 8s linear infinite;
  pointer-events: none;
}
.jewel:hover::before { animation-duration: 16s; }
@keyframes jewel-spin { to { --angle: 360deg; } }

/* ---------- Preiszeilen (Menuekarte mit Leader-Dots) ---------- */
.price-group-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 0.9rem;
}
.price-group-title svg { width: 11px; height: 11px; flex: none; }
.price-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 0.85rem 0;
  transition: transform 0.4s var(--ease-luxe);
}
.price-row:hover { transform: translateY(-2px); }
.price-name { font-weight: 500; font-size: 1rem; letter-spacing: 0.02em; }
.price-note {
  display: block; color: var(--muted);
  font-size: 0.85rem; font-weight: 300; letter-spacing: 0.01em;
}
.price-lead {
  flex: 1; height: 3px; align-self: center; transform: translateY(2px);
  background-image: radial-gradient(circle, rgba(212, 175, 55, 0.5) 1px, transparent 1.6px);
  background-size: 11px 3px; background-repeat: repeat-x; background-position: 0 50%;
}
.price-row:hover .price-lead { animation: lead-run 0.7s linear infinite; }
@keyframes lead-run { to { background-position: 11px 50%; } }
.price-val {
  font-family: var(--font-edit); font-weight: 600;
  font-size: 1.45rem; color: var(--gold-light);
  font-feature-settings: 'lnum';
  white-space: nowrap;
}

/* ---------- Siegel / Medaillon ---------- */
.seal { color: var(--gold); }
.seal .draw {
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.js.loaded .seal .draw, .no-js .seal .draw {
  animation: seal-draw 2.2s var(--ease-luxe) forwards;
}
.seal .draw:nth-of-type(2) { animation-delay: 0.25s; }
.seal .draw:nth-of-type(3) { animation-delay: 0.45s; }
@keyframes seal-draw { to { stroke-dashoffset: 0; } }
.seal .seal-text { opacity: 0; transition: opacity 1.2s var(--ease-luxe) 1.5s; }
.js.loaded .seal .seal-text, .no-js .seal .seal-text { opacity: 1; }

/* Lebendes Siegel (fixiert, Scroll-Progress) */
.seal-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 100;
  width: 66px; height: 66px; display: none;
  color: var(--gold);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s var(--ease-luxe);
}
.seal-fab:hover { transform: scale(1.07); }
@media (min-width: 900px) { .js .seal-fab { display: block; } }
.seal-fab .ring-bg { stroke: rgba(212, 175, 55, 0.2); }
.seal-fab .ring-fill {
  stroke: var(--gold);
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--prog, 0));
  transition: stroke-dashoffset 0.2s linear;
}
.seal-fab .fab-star { animation: slow-rotate 60s linear infinite; transform-origin: 50% 50%; }
@keyframes slow-rotate { to { transform: rotate(360deg); } }

/* ---------- Barber-Pole (Mini) ---------- */
.pole {
  width: 13px; height: 44px; border-radius: 8px;
  border: 1px solid var(--hairline);
  background: repeating-linear-gradient(135deg,
    var(--gold) 0 6px, #F2EADC 6px 11px, var(--oxblood) 11px 17px);
  animation: pole-run 1.6s linear infinite;
}
@keyframes pole-run { to { background-position: 0 24px; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(64px, 8vh, 92px);
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  color: var(--muted); font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  z-index: 3;
}

/* ---------- Rasiermesser-Divider ("Der Schnitt") ---------- */
.razor-divider {
  position: relative; height: 90px;
  display: grid; place-items: center;
  overflow: clip;
}
.razor-divider svg { width: 210px; height: 34px; color: var(--gold); position: relative; z-index: 1; }
.js .razor-divider .draw { stroke-dasharray: 100; stroke-dashoffset: 100; }
.razor-divider.in .draw { animation: seal-draw 1.4s var(--ease-wipe) forwards; }
.razor-divider::before, .razor-divider::after {
  content: ''; position: absolute; top: 50%; height: 1px; width: calc(50% - 130px);
  background: linear-gradient(90deg, transparent, var(--hairline));
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-wipe) 0.7s;
}
.razor-divider::before { left: 0; transform-origin: right; }
.razor-divider::after {
  right: 0; transform-origin: left;
  background: linear-gradient(90deg, var(--hairline), transparent);
}
.razor-divider.in::before, .razor-divider.in::after { transform: scaleX(1); }

/* ---------- Girih-Fries (Sektions-/Footer-Borduere) ---------- */
.fries {
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-opacity='.4'%3E%3Cpath d='M30 4 37 8l4 7-4 7-7 4-7-4-4-7 4-7zM30 8l5 7-5 7-5-7z'/%3E%3Cpath d='M0 15h19M41 15h19'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 30px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.55;
}

/* ---------- Kielbogen-Fenster (Galerie) ---------- */
.arch {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px 999px 26px 26px;
  padding: 8px;
}
.arch-finial {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; color: var(--gold);
  background: var(--bg); border-radius: 50%; padding: 2px;
}
.arch-core {
  position: relative; overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  aspect-ratio: 3 / 4.1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(140, 100, 32, 0.22), transparent 55%),
    linear-gradient(180deg, #1A130B, #0B0805 74%);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 1px rgba(246, 227, 169, 0.07), inset 0 0 50px rgba(0, 0, 0, 0.55);
}
.arch-core::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--jali); background-size: 56px 56px;
  opacity: 0.07;
  transition: transform 0.9s var(--ease-luxe);
}
.arch-core::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 50% 45%, rgba(212, 175, 55, 0.14), transparent 70%);
  opacity: 0; transition: opacity 0.7s var(--ease-luxe);
}
.arch:hover .arch-core::after { opacity: 1; }
.arch:hover .arch-core::before { transform: translateY(-8px); }
.arch-icon { position: relative; z-index: 1; width: clamp(52px, 6vw, 72px); aspect-ratio: 1; color: var(--gold); opacity: 0.9; }
.arch-caption {
  margin-top: 14px; text-align: center;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Ordinale 01–04 (scrollgefuellt) ---------- */
.ord {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.35);
  color: transparent;
  background: var(--grad-gold) no-repeat 0 100% / 100% var(--fill, 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Ticker & Marquee ---------- */
.ticker-wrap, .marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track, .marquee-track {
  display: flex; align-items: center; gap: 3.2rem;
  width: max-content;
  animation: tick 46s linear infinite;
}
/* Periode = 50 % plus halber Gap, sonst ruckt der Loop */
@keyframes tick { to { transform: translateX(calc(-50% - 1.6rem)); } }
.outline-word {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.42);
  white-space: nowrap;
}
.tick-star { width: 13px; height: 13px; color: var(--gold); opacity: 0.7; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .marquee-track, .pole, .jewel::before, .seal-fab .fab-star { animation: none !important; }
}

/* ---------- SVG-Stroke-Kalibrierung (Symbole erben stroke-width) ---------- */
.btn-ic svg, .nav-cta svg { stroke-width: 1.7; }
.nav-star { stroke-width: 2.2; }
.nav-brand svg { stroke-width: 1.3; }
.tick-star { stroke-width: 1.5; }
.mini-arch svg { stroke-width: 1.2; }
.arch-icon { stroke-width: 0.6; }
.arch-finial { stroke-width: 1.6; }
.price-group-title svg { stroke-width: 2; }
.seal use { stroke-width: 2.4; }
.seal-fab use { stroke-width: 1.2; }
.err-star { stroke-width: 1; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .pill-nav { gap: 12px; padding: 8px 8px 8px 14px; }
  .seal-fab { display: none !important; }
}
