/*
Theme Name: Ayurveda Berit Scholz
Theme URI: https://ayurveda-berit-scholz.de
Description: Individuelles Divi Child Theme für Ayurveda-Massagen & Coaching Berit Scholz, Nürnberg. Basiert auf dem statischen Prototyp in Claude/prototype/.
Author: Noah Scholz
Template: Divi
Version: 1.0.0
*/

/* ==========================================================================
   Design-Tokens — 1:1 übernommen aus Claude/design-system/ayurveda-berit-scholz/MASTER.md
   Bei Änderungen dort (Style-Picker-Ergebnis) auch hier synchron halten.
   ========================================================================== */

:root {
  --color-primary: #BD5B2C;
  --color-on-primary: #FBF7F0;
  --color-secondary: #B8862A;
  --color-on-secondary: #2B211B;
  --color-background: #FBF7F0;
  --color-foreground: #2B211B;
  --color-card: #FFFFFF;
  --color-muted: #F1E7D8;
  --color-muted-foreground: #6B5D4F;
  --color-border: #E4D5C0;
  --color-tertiary: #7A2E22;

  --font-heading: 'Lora', serif;
  --font-body: 'Raleway', sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
}

/* ==========================================================================
   Basis-Typografie — überschreibt Divis Standard-Fonts/Farben global,
   damit auch native Divi-Module (Text/Button/Heading) automatisch zum
   Design-System passen, ohne dass jedes Modul einzeln gestylt werden muss.
   ========================================================================== */

body, .et_pb_text_inner, p, li {
  font-family: var(--font-body);
  color: var(--color-foreground);
}

h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3 {
  font-family: var(--font-heading);
  color: var(--color-foreground);
}

body {
  background-color: var(--color-background);
}

a {
  color: var(--color-primary);
}

/* Divi-Standardbuttons an das Design-System angleichen */
.et_pb_button,
.et_pb_module .et_pb_button {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: 4px;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 200ms ease;
}
.et_pb_button:hover {
  background-color: var(--color-primary);
  opacity: 0.9;
}

/* Sekundärer/Outline-Button-Stil — auf Buttons mit Divi-CSS-Klasse "btn-outline" anwenden */
.btn-outline.et_pb_button {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

/* ==========================================================================
   Utility-Klassen für Code-Module — identisch zu Claude/prototype/css/style.css,
   damit die dort gebauten Sektionen (Hero, Massage-Grid, Raum-Galerie) 1:1
   in ein Code-Modul eingesetzt werden können, ohne die Klassennamen anzupassen.
   ========================================================================== */

.ayb-section-muted { background-color: var(--color-muted); }
.ayb-section-dark   { background-color: var(--color-foreground); color: var(--color-background); }
.ayb-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Aus Claude/prototype/css/style.css übernommen — wird von js/main.js
   vorausgesetzt (Header-Scroll-Zustand, Reveal-Fallback, Scroll-Indikator).
   Das Header-Markup (#site-header, .nav-link, #lang-toggle) entsteht im
   Divi Theme Builder, siehe pages/theme-builder-header-footer.md.
   ========================================================================== */

html { scroll-behavior: smooth; }
body { font-feature-settings: "liga" 1; }
.text-balance { text-wrap: balance; }

#site-header { color: #FBF7F0; }
#site-header.is-scrolled {
  background: #FBF7F0;
  color: #2B211B;
  box-shadow: 0 1px 0 #E4D5C0;
}
#site-header.is-scrolled .nav-link { color: #2B211B; }
#site-header .nav-link { color: inherit; opacity: 0.85; transition: opacity 200ms ease; }
#site-header .nav-link:hover { opacity: 1; }
#site-header #lang-toggle { color: inherit; }

.scroll-line { position: relative; overflow: hidden; }
.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FBF7F0;
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

.icon-mark { color: #BD5B2C; }

.reveal { opacity: 1; }
.js-ready .reveal { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-line::after { animation: none; }
}
