/* ==========================================================================
   Power Yoga mit Melanie – Gemeinsame Styles (seitenübergreifend)

   Wird auf allen Seiten via <link> eingebunden. Seitenspezifische Regeln
   stehen weiterhin in den jeweiligen <style>-Blöcken NACH diesem Stylesheet,
   damit Overrides (z. B. abweichende h2-Größen) weiterhin greifen.
   Maßgebliche Quelle der Werte: index.html.
   ========================================================================== */

/* ==============================
   SCHRIFTEN – lokal eingebunden, keine Google-Server-Verbindung
   URLs relativ zu styles.css (Root) -> gelten für Root- UND aktuelles/-Seiten
============================== */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/PlayfairDisplay-400-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/PlayfairDisplay-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/PlayfairDisplay-600-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/PlayfairDisplay-700-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Inter-300-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-400-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-500-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-600-regular.woff2') format('woff2');
}

/* ==============================
   CSS VARIABLEN
============================== */
:root {
  --color-accent:        #FF4D00;
  --color-accent-hover:  #CC3D00;
  --color-primary:       #1C3A0E;
  --color-secondary:     #7A9E6E;
  --color-sprout:        #A8C47A;
  --color-bg:            #F7F0E3;
  --color-stone:         #E2D9C8;
  --color-text:          #1C1C1A;
  --color-white:         #FFFFFF;

  --font-heading: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;

  --max-width: 1200px;
  --section-padding: 5rem 1.5rem;
  --radius: 12px;
  --transition: 0.25s ease;
}

/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==============================
   TYPOGRAFIE (Basis)
============================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

/* ==============================
   BUTTONS
============================== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* ==============================
   NAVIGATION
============================== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo .dot {
  color: var(--color-accent);
}

/* Desktop Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--color-accent);
}

.nav-cta {
  margin-left: 1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--color-white);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 600;
}

.mobile-menu a:hover {
  color: var(--color-accent);
}

.mobile-menu .btn {
  font-size: 1rem;
}

/* ==============================
   FOOTER
============================== */
#footer {
  background-color: var(--color-text);
  padding: 1.75rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-stone);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-stone);
  opacity: 0.7;
}

/* ==============================
   RESPONSIVE – Navigation & Footer (768px)
============================== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo {
    font-size: 1.05rem;
  }

  .nav-inner {
    gap: 0.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
