/* =====================================================================
   Namaste India – Design-Update (Dezember 2026)
   Wird nach style.css / apple.css geladen und überschreibt nur gezielt:
   1. Buttons: weiches Gold statt harter 3D-Kante, feiner Linienpfeil,
      beim Hover laufendes Goldlicht am Rand (Lichtlinien per refresh.js)
   2. Menü: Diya (Öllampe) statt Krone, Gold statt Orange
   3. Scroll-Animationen mit GSAP (Code in assets/js/refresh.js)
   4. Schwebende Buttons im gleichen Stil
   ===================================================================== */

:root{
  --ni-gold-1:#e2c98f; --ni-gold-2:#c9ae78; --ni-gold-3:#a98d55;
  --ni-gold-grad:linear-gradient(110deg,var(--ni-gold-1) 0%,var(--ni-gold-2) 45%,var(--ni-gold-3) 100%);
  --ni-ink:#1f1f1f;
}

/* ---------- 1. Buttons ---------- */
.btn{ text-transform:none; letter-spacing:.01em; }
.btn.btn-primary,
.btn-secondary{
  position:relative; overflow:visible; isolation:isolate;
  font-weight:600;
  transition:transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease, border-color .35s ease;
}
.btn.btn-primary{
  background:var(--ni-gold-grad); color:var(--ni-ink);
  -webkit-box-shadow:0 10px 26px -10px rgba(149,122,67,.7), inset 0 1px 0 rgba(255,255,255,.4);
          box-shadow:0 10px 26px -10px rgba(149,122,67,.7), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn.btn-primary:hover, .btn.btn-primary:focus-visible{
  background:var(--ni-gold-grad); color:var(--ni-ink);
  transform:translateY(-2px);
  box-shadow:0 18px 34px -12px rgba(149,122,67,.85), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn.btn-primary:active{ transform:translateY(0); box-shadow:0 8px 18px -10px rgba(149,122,67,.7); }

/* Zweitbutton: Gold-Rahmen, füllt sich beim Hover */
.btn-secondary{
  background:#fff; color:#6b5626; border:1.5px solid var(--ni-gold-2);
  box-shadow:0 8px 22px -12px rgba(149,122,67,.45);
}
.btn-secondary:hover, .btn-secondary:focus-visible{
  background:var(--ni-gold-grad); color:var(--ni-ink); border-color:transparent;
  transform:translateY(-2px); box-shadow:0 16px 30px -12px rgba(149,122,67,.75);
}
.btn-secondary:active{ transform:translateY(0); }

/* Schräger Pfeil (altes SVG) wird durch einen feinen Linienpfeil ersetzt */
.btn > svg{ display:none; }
.btn:has(> svg)::after{
  content:""; flex:none; width:22px; height:12px; margin-left:2px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 12'%3E%3Cpath d='M0 6h32M27 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / auto 100% no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 12'%3E%3Cpath d='M0 6h32M27 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / auto 100% no-repeat;
  transition:width .35s ease;
}
.btn:has(> svg):hover::after, .btn:has(> svg):focus-visible::after{ width:32px; }

/* Laufendes Licht am Rand (SVG-Linien werden von refresh.js eingefügt) */
.ni-lines{ position:absolute; inset:-1px; pointer-events:none; z-index:2; mix-blend-mode:screen; }
.ni-lines svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; fill:none; opacity:0; transition:opacity .3s ease; }
.ni-lines rect{ stroke-dasharray:9 41; stroke-dashoffset:0; }
.ni-lines .l1 rect{ stroke:#fff7e2; stroke-width:1.6; }
.ni-lines .l2 rect{ stroke:#ffd98a; stroke-width:5; filter:blur(5px); }
.ni-lines .l3 rect{ stroke:#f3c56b; stroke-width:9; filter:blur(16px); }
.btn:hover > .ni-lines svg, .btn:focus-visible > .ni-lines svg,
.button-nav:hover > .ni-lines svg{ opacity:1; }
.btn:hover > .ni-lines rect, .btn:focus-visible > .ni-lines rect,
.button-nav:hover > .ni-lines rect{ animation:niRun 1.6s linear infinite; }
@keyframes niRun{ to{ stroke-dashoffset:-50; } }

/* Reservierung-Button im Kopf: gleicher Stil.
   Höhere Spezifität (html body …), weil functions.php per wp_head einen älteren Stil mit !important nachlädt. */
html body a.button.button-nav{
  position:relative; isolation:isolate;
  background:var(--ni-gold-grad) !important; color:var(--ni-ink) !important;
  box-shadow:0 10px 24px -10px rgba(149,122,67,.75), inset 0 1px 0 rgba(255,255,255,.4) !important;
  transition:transform .35s ease, box-shadow .35s ease;
}
html body a.button.button-nav:hover,
html body a.button.button-nav:focus-visible{
  background:var(--ni-gold-grad) !important;
  transform:translateY(-2px);
  box-shadow:0 16px 30px -12px rgba(149,122,67,.9), inset 0 1px 0 rgba(255,255,255,.5) !important;
}
html body a.button.button-nav:active{ transform:translateY(0); box-shadow:0 8px 18px -10px rgba(149,122,67,.7) !important; }

/* „Buchung anfragen" (Reservierungsformular) */
html body .rtb-booking-form button[type="submit"]{
  position:relative; isolation:isolate; overflow:visible;
  background:var(--ni-gold-grad) !important; color:var(--ni-ink) !important;
  border:0 !important; border-radius:999px !important;
  font-weight:600; letter-spacing:.01em; min-height:52px;
  box-shadow:0 10px 26px -10px rgba(149,122,67,.7), inset 0 1px 0 rgba(255,255,255,.4) !important;
  transition:transform .35s ease, box-shadow .35s ease;
}
html body .rtb-booking-form button[type="submit"]:hover,
html body .rtb-booking-form button[type="submit"]:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 18px 34px -12px rgba(149,122,67,.85), inset 0 1px 0 rgba(255,255,255,.5) !important;
}

/* „Schicken" (Newsletter im Fußbereich) */
html body .newsletter_wrap .link-b{
  position:relative; isolation:isolate; overflow:visible;
  background:var(--ni-gold-grad); color:var(--ni-ink);
  box-shadow:0 6px 16px -8px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.4);
  transition:transform .3s ease, box-shadow .3s ease;
}
html body .newsletter_wrap .link-b:hover,
html body .newsletter_wrap .link-b:focus-visible{ transform:translateY(-1px); box-shadow:0 10px 22px -10px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.rtb-booking-form button[type="submit"]:hover > .ni-lines svg,
.newsletter_wrap .link-b:hover > .ni-lines svg{ opacity:1; }
.rtb-booking-form button[type="submit"]:hover > .ni-lines rect,
.newsletter_wrap .link-b:hover > .ni-lines rect{ animation:niRun 1.6s linear infinite; }

/* Hinweis im Reservierungsformular (z. B. „keine Uhrzeiten frei"): ruhig statt grell orange */
html body .rtb-booking-form .rtb-error{
  position:relative;
  background:#fdf4e3 !important; color:#4f4020 !important;
  border:1px solid #ecd9b0; border-left:4px solid #BDA26B;
  border-radius:14px; padding:12px 16px 12px 46px !important;
  font-size:15px; line-height:1.45; margin:8px 0 12px;
  box-shadow:0 8px 20px -14px rgba(149,122,67,.6);
}
html body .rtb-booking-form .rtb-error::before{
  content:""; position:absolute; left:16px; top:13px; width:20px; height:20px;
  border:0 !important; transform:none !important;
  background:#a98d55;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M12 10.5v6' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7.4' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M12 10.5v6' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7.4' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .rtb-booking-form .rtb-error a{ color:#6b5626; font-weight:600; text-decoration:underline; }

@media (prefers-contrast: more){
  .btn.btn-primary{ background:#7a5f2c; color:#fff; box-shadow:none; }
}
@media (prefers-reduced-motion: reduce){
  .ni-lines{ display:none; }
  .btn.btn-primary:hover, .btn-secondary:hover, a.button.button-nav:hover{ transform:none; }
}

/* ---------- 2. Menü: Diya statt Krone, Gold statt Orange ---------- */
.nav-links li a.active,
.nav-links li a:hover,
.nav-links li.current-menu-item.page_item a{ color:#E2C88F; }
.nav-links li a::before{
  background-image:url(../img/diya-vec.svg);
  width:22px; height:20px; top:-4px;
  filter:drop-shadow(0 0 6px rgba(226,200,143,.55));
}
.nav-links li a.active::before,
.nav-links li.current-menu-item.page_item a::before{ animation:niFlicker 3.2s ease-in-out infinite; }
@keyframes niFlicker{ 0%,100%{ filter:drop-shadow(0 0 5px rgba(226,200,143,.45)); } 50%{ filter:drop-shadow(0 0 10px rgba(255,214,140,.8)); } }
@media (prefers-reduced-motion: reduce){ .nav-links li a::before{ animation:none !important; } }

/* ---------- 3. Scroll-Animationen: siehe assets/js/refresh.js (GSAP, nur mit JavaScript, nie bei „Bewegung reduzieren“) ---------- */

/* ---------- 4. Schwebende Buttons (inc/order-button.php): gleicher Stil ---------- */
.ni-order-fab{ overflow:visible !important; isolation:isolate; }
.ni-order-fab, .ni-order-fab--reserve, .ni-order-fab--call{
  box-shadow:0 10px 26px -10px rgba(20,22,15,.55) !important;
}
.ni-order-fab:hover, .ni-order-fab--reserve:hover, .ni-order-fab--call:hover{
  box-shadow:0 16px 32px -12px rgba(20,22,15,.6) !important;
}
.ni-order-fab:active{ box-shadow:0 8px 18px -10px rgba(20,22,15,.5) !important; }
.ni-order-fab--reserve{ background:var(--ni-gold-grad) !important; }
.ni-order-fab__arrow{ background:transparent !important; border-left:0 !important; width:40px !important; color:inherit !important; }
.ni-order-fab__arrow svg{ display:none; }
.ni-order-fab__arrow::after{
  content:""; width:20px; height:11px; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 12'%3E%3Cpath d='M0 6h32M27 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / auto 100% no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 12'%3E%3Cpath d='M0 6h32M27 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / auto 100% no-repeat;
  transition:width .3s ease;
}
.ni-order-fab:hover .ni-order-fab__arrow::after{ width:26px; }
.ni-order-fab:hover > .ni-lines svg{ opacity:1; }
.ni-order-fab:hover > .ni-lines rect{ animation:niRun 1.6s linear infinite; }
