/* === noir-base.css === */
/* Bei.Gretel "Luxury Wellness Noir" Theme */
/* Base: Dark Theme, Utilities, Glass-Card, Buttons, Section-BGs, Glow, Ornament, Reveal, Keyframes */
/* All styles scoped to body.noir for instant rollback */

/* ========================================================
   0. ACCESSIBILITY
   ======================================================== */

body.noir .skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

body.noir .skip-link:focus {
  top: 1rem;
}

/* ========================================================
   1. BASE DARK THEME
   ======================================================== */

body.noir {
  background-color: var(--bg-noir);
  color: var(--text-primary);
  padding: 0;
}

body.noir::before {
  display: none;
}

body.noir div#parent {
  background-color: var(--bg-noir);
  background-image: none;
  min-height: 100vh;
}

body.noir div#parent::before,
body.noir div#parent::after {
  display: none;
}

body.noir main {
  background: transparent;
}

/* Typography: Serif headlines for luxury feel */
body.noir h1, body.noir h2 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 400;
}

body.noir h3, body.noir h4, body.noir h5, body.noir h6 {
  color: var(--text-primary);
}

body.noir p {
  color: var(--text-secondary);
}

body.noir a {
  color: var(--gold);
  transition: color var(--dur-fast) ease;
}

body.noir a:hover {
  color: var(--gold-light);
}

/* Content element overrides */
body.noir div.ce h2.ce-headline {
  color: var(--text-primary);
}

body.noir div.ce.ce-style1,
body.noir div.ce.ce-style1 * {
  color: var(--text-primary);
}

body.noir div.ce.ce-style2 > div.wrapper {
  background-color: var(--bg-deep);
}

body.noir div.ce.ce-style2 > div.wrapper h2 {
  color: var(--text-primary);
}

/* ========================================================
   1b. SHARED UTILITIES — Konsolidierte Patterns
   Reduziert Duplikation über 28 Glass-Selektoren, 10+ Eyebrows, 5+ Hover-Lifts
   ======================================================== */

/* --- Glass Surface Base (28 Selektoren) --- */
body.noir .glass-card,
body.noir #content > .ce.ce-heading-section > div.wrapper,
body.noir #content > .ce.ce-style2 > div.wrapper,
body.noir #content > .ce.ce-type-text > div.wrapper,
body.noir .ce-type-rooms_overview li.room,
body.noir .room-stats,
body.noir .room-features,
body.noir .room-card,
body.noir .highlight-item,
body.noir .kontakt-quick .quick-card,
body.noir .anreise-card,
body.noir #content > .ce.ce-width-narrow > div.wrapper,
body.noir blockquote.featured-quote,
body.noir .trust-item,
body.noir div.ce-type-contacts div.contacts.grid > section,
body.noir .retreat-card,
body.noir .retreat-stat,
body.noir .retreat-pricing,
body.noir .credential-item,
body.noir .retreat-link-card,
body.noir .retreat-program-card,
body.noir .ce-type-text_with_image div.text .hint,
body.noir div.ce-type-page_preview ul li,
body.noir .ce-type-gallery .gallery ul.slideshow li figure,
body.noir .ce-type-gallery .gallery ul:not(.slideshow) li,
body.noir .ce blockquote {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

/* --- Eyebrow Text (10 Selektoren) --- */
body.noir .section-eyebrow,
body.noir .hero-eyebrow,
body.noir .subpage-eyebrow,
body.noir .room-eyebrow,
body.noir .booking-eyebrow,
body.noir .noir-footer-nav h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Hover Lift (5 Selektoren) --- */
body.noir .glass-card:hover,
body.noir .ce-type-rooms_overview li.room:hover,
body.noir div.ce-type-page_preview ul li:hover {
  transform: translateY(-4px);
}

/* --- Layout Utilities --- */
body.noir .text-center { text-align: center; }
body.noir .mt-2 { margin-top: 2rem; }
body.noir .mt-2-5 { margin-top: 2.5rem; }
body.noir .mt-3 { margin-top: 3rem; }
body.noir .mb-1-5 { margin-bottom: 1.5rem; }
body.noir .ml-1 { margin-left: 1rem; }
body.noir .max-w-600 { max-width: 600px; margin-inline: auto; }
body.noir .max-w-700 { max-width: 700px; margin-inline: auto; }
body.noir .leading-relaxed { line-height: 1.7; }
body.noir .flex-center-wrap { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
body.noir .card-link { text-decoration: none; color: inherit; display: block; }

/* --- Section Description (Intro-Text unter Überschriften) --- */
body.noir .section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
body.noir .section-desc-wide {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-align: center;
}

/* ========================================================
   2. GLASS CARD COMPONENT
   ======================================================== */

body.noir .glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--card-padding);
  box-shadow: var(--shadow-glass);
  transition: all var(--dur-base) var(--ease-out);
}

body.noir .glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass), var(--shadow-glow);
}

body.noir .glass-card h3 {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

body.noir .glass-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

body.noir .glass-card .detail {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ========================================================
   3. BUTTONS
   ======================================================== */

body.noir .btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  background: var(--gold);
  color: var(--text-dark);
  font-family: 'JosefinSans-Bold', 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

body.noir .btn-gold:hover {
  background: var(--gold-light);
  color: var(--text-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

body.noir .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  background: transparent;
  color: var(--gold);
  font-family: 'JosefinSans-Bold', 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

body.noir .btn-ghost:hover {
  background: var(--gold);
  color: var(--text-dark);
  box-shadow: var(--shadow-glow);
}

/* Override existing .button.gold for noir */
body.noir .button.gold,
body.noir a.button.gold {
  background: var(--gold);
  color: var(--text-dark);
  border: none;
}

body.noir .button.gold:hover,
body.noir a.button.gold:hover {
  background: var(--gold-light);
  color: var(--text-dark);
}

/* ========================================================
   4. SECTION BACKGROUNDS WITH ANIMATED GRADIENTS
   ======================================================== */

body.noir .section {
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  overflow: hidden;
}

body.noir .section-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

body.noir .section-noir {
  background: var(--bg-noir);
}

body.noir .section-forest {
  background: var(--bg-forest);
  position: relative;
}

body.noir .section-forest::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(45,90,63,0.4) 0%, transparent 70%);
  animation: gradient-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

body.noir .section-crimson {
  background: var(--bg-crimson);
  position: relative;
}

body.noir .section-crimson::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(139,34,50,0.35) 0%, transparent 65%);
  animation: gradient-drift 15s ease-in-out infinite alternate;
  pointer-events: none;
}

body.noir .section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

body.noir .section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* Cards grid */
body.noir .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-md);
  position: relative;
  z-index: 1;
}

/* Split layout */
body.noir .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

body.noir .split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-deep);
}

body.noir .split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stats bar — inside hero section, Glass am unteren Rand */
body.noir .hero-section .stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin-top: 3rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}

/* Fallback: stats-bar outside hero */
body.noir .stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

body.noir .stat {
  text-align: center;
  flex: 1;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--glass-border);
}

body.noir .stat:last-child {
  border-right: none;
}

body.noir .stat-value {
  font-family: 'Caveat-Bold', 'Caveat', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  line-height: 1;
}

body.noir .stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* ========================================================
   5. GLOW PULSE EFFECT
   ======================================================== */

body.noir .glow-pulse {
  position: relative;
}

body.noir .glow-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold-muted) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* ========================================================
   6. ORNAMENT
   ======================================================== */

body.noir .ornament {
  width: 60px;
  height: 60px;
  opacity: var(--ornament-opacity);
  animation: ornament-spin 30s linear infinite;
  margin: 2rem auto;
}

/* ========================================================
   7. SCROLL REVEAL
   ======================================================== */

/* reveal only activates when JS adds .js-reveal to <html> */
html.js-reveal body.noir .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

html.js-reveal body.noir .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body.noir .reveal-d1 { transition-delay: 100ms; }
body.noir .reveal-d2 { transition-delay: 200ms; }
body.noir .reveal-d3 { transition-delay: 300ms; }

/* Reveal Variant: Fade only (no translateY) */
html.js-reveal body.noir .reveal-fade {
  opacity: 0;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease-out);
}

html.js-reveal body.noir .reveal-fade.visible {
  opacity: 1;
}

/* Reveal Variant: Scale up */
html.js-reveal body.noir .reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

html.js-reveal body.noir .reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Reveal Variant: Stagger Group — Kinder werden gestaffelt eingeblendet */
html.js-reveal body.noir .reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}

html.js-reveal body.noir .reveal-group.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   8. KEYFRAMES
   ======================================================== */

@keyframes gradient-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, -3%) scale(1.1); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.45; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes ornament-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Sections 9 + 10 (Header + Nav Overlay) → ausgelagert in noir-nav.css */
