/* ========================================
   Scandinavian Clean Spa Website CSS
   Brand: WärmeQuadrant Spa Leipzig
   ========================================
   1. CSS Reset & Normalize
   2. Brand Colors & Font Variables
   3. Typography
   4. Layout Utilities (Flexbox only)
   5. Header & Navigation
   6. Hero Section
   7. Features/Highlight Grid
   8. Cards & Testimonials
   9. Section, List & Container Layouts
   10. Footer
   11. Buttons, Links & Interactions
   12. Responsive Breakpoints
   13. Mobile Navigation (Burger/Overlay)
   14. Cookie Consent Banner & Modal
   ======================================== */

/* 1. RESET & NORMALIZE */
html {
  box-sizing: border-box;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
html, body {
  padding: 0;
  margin: 0;
  background: #F8F6F3;
  color: #4F382C;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,h5,h6 {
  margin: 0 0 10px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: 2rem; margin-bottom: 16px; }
h2 { font-size: 1.5rem; margin-bottom: 14px; }
h3 { font-size: 1.18rem; }
@media (min-width:600px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}
p, ul, ol {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.7;
  color: #4F382C;
}
ul, ol { padding-left: 1.2em; }
img, svg { max-width: 100%; height: auto; display: inline-block; }
a {
  color: #794831;
  text-decoration: none;
  transition: color .17s;
}
a:hover, a:focus {
  color: #A06A4A;
  outline: none;
}
body {
  font-size: 16px;
  background-color: #F8F6F3;
}

/* 2. BRAND COLORS & FONT VARIABLES */
:root {
  --color-primary: #794831;
  --color-primary-light: #A06A4A;
  --color-accent: #F3E8D9;
  --color-bg: #F8F6F3;
  --color-card: #FFF;
  --color-text: #4F382C;
  --color-grey: #D7CCC0;
  --color-border: #ECE6E0;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(120, 95, 65, 0.06);
  --shadow-md: 0 4px 18px rgba(120, 95, 65, 0.12);
  --transition: all .25s cubic-bezier(.6,.06,.3,1);
}

/* 3. TYPOGRAPHY */
.section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary-light);
  margin-bottom: 8px;
}
.content-wrapper, .container {
  font-family: var(--font-body);
}

/* 4. FLEXBOX LAYOUT & UTILITIES */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container,
.card-grid,
.feature-grid,
.features,
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid {
  gap: 28px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
  flex: 1 1 200px;
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s;
}
.feature-item:hover {
  box-shadow: var(--shadow-md);
}

/* Lists in features */
.features ul, .section ul, .about ul, .pricing ul, .services ul {
  padding-left: 22px;
  margin: 0 0 12px 0;
}
.features ul li, .section ul li {
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
}

/* 5. HEADER & TOP NAVIGATION */
header {
  width: 100%;
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 14px 0 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo-header {
  margin-left: 18px;
  margin-right: 24px;
  display: flex;
  align-items: center;
}
.logo-header img {
  height: 44px;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .17s, border-bottom .17s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-primary-light);
  border-bottom: 2px solid var(--color-primary-light);
}

.cta-primary {
  background: var(--color-primary);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-sm);
  text-align: center;
  margin-left: 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform .22s cubic-bezier(.6,.06,.3,1);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.025);
}

/* Hide mobile toggle desktop */
.mobile-menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 2.2rem;
  margin-right: 14px;
  margin-left: 6px;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 1001;
  transition: color .2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--color-primary-light);
}

/* 6. HERO SECTION */
.hero {
  background: linear-gradient(140deg, var(--color-accent) 90%, var(--color-bg) 100%);
  border-radius: var(--radius);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  box-shadow: var(--shadow-sm);
  padding: 44px 0 32px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  gap: 14px;
}
.hero h1 {
  color: var(--color-primary);
}

/* 7. TESTIMONIALS & CARDS */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.testimonials h2 {
  color: var(--color-primary);
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border-left: 5px solid var(--color-primary-light);
  max-width: 650px;
  transition: box-shadow .17s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}
.testimonial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.testimonial-content p {
  font-size: 1.1rem;
  color: #3C2B1B;
  margin-bottom: 8px;
}
.testimonial-author {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary-light);
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}
.star-rating img {
  height: 19px;
  width: 19px;
}

/* 8. CONTACT & MAP */
.contact .text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.location-map {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-accent);
  padding: 10px 16px;
  border-radius: var(--radius);
}

/* 9. FORM (Stub for future) */
.form .cta-primary {
  margin-top: 16px;
}

/* 10. FOOTER */
footer {
  width: 100%;
  background: var(--color-accent);
  box-shadow: 0 -2px 10px rgba(120, 95, 65, 0.04);
  padding: 28px 0 12px 0;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.footer-nav a {
  font-size: 0.97rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  opacity: 0.87;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
  transition: color .17s, border-bottom .22s;
}
.footer-nav a:hover {
  color: var(--color-primary-light);
  border-bottom: 2px solid var(--color-primary-light);
}
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}
.footer-logo img {
  height: 40px;
}
.footer-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2px;
  color: var(--color-primary);
  font-size: 0.98rem;
  opacity: 0.9;
}
.footer-contact a {
  color: var(--color-primary);
  border-bottom: 1px dotted var(--color-primary-light);
}
.footer-contact a:hover {
  color: var(--color-primary-light);
  border-bottom: 1px solid var(--color-primary-light);
}
.footer-bottom {
  text-align: center;
  color: #9C846B;
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 10px;
}

/* 11. BUTTONS, LINKS, INTERACTIONS */
button, .cta-primary {
  font-family: var(--font-display);
  cursor: pointer;
  outline: none;
}
button:focus-visible,
.cta-primary:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* Inline-link highlight */
.text-section a {
  color: var(--color-primary-light);
  border-bottom: 1px dotted var(--color-primary-light);
  font-weight: 500;
  transition: border-color .15s;
}
.text-section a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Misc: Card utility for about/team/services grids */
.card {
  padding: 26px 18px;
  background: var(--color-card);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* 12. RESPONSIVE BREAKPOINTS */
@media (max-width: 990px) {
  .main-nav {
    gap: 20px;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 790px) {
  .container {
    max-width: 97vw;
    padding: 0 6vw;
  }
  header, footer {
    flex-direction: column;
    gap: 14px;
    min-height: unset;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
  }
  .logo-header {
    margin-left: 10px;
    margin-right: 0;
  }
  .hero {
    padding: 28px 0 20px 0;
    border-radius: 0;
    margin-bottom: 40px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .features, .card-container, .testimonials {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 38px;
  }
  .content-wrapper, .content-grid {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 11px;
    max-width: 100%;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.15rem; }
  .footer-contact { flex-direction: column; gap: 2px; align-items: center; }
  .footer-nav { font-size: 0.94rem; gap: 14px; }
}

/* 13. MOBILE NAV OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(243,232,217, .98);
  z-index: 1100;
  transform: translateX(100vw);
  transition: transform .33s cubic-bezier(.55,0,.24,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  margin: 24px 28px 6px 0;
  cursor: pointer;
  border-radius: 50%;
  transition: background .14s, color .14s;
  padding: 3px 9px;
  z-index: 1102;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-grey);
  color: var(--color-primary-light);
}
.mobile-nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 90vw;
  max-width: 330px;
  padding: 8px 28px 0 34px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-primary);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  border-radius: 4px;
  transition: background .13s, color .15s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-primary-light);
  background: var(--color-accent);
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* 14. COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2px solid var(--color-grey);
  box-shadow: 0 -5px 28px rgba(120,95,65,.13);
  z-index: 1080;
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-banner__text {
  font-size: 1rem;
  color: #4F382C;
  line-height: 1.5;
  margin-right: 18px;
  flex: 1 1 160px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 500;
  padding: 9px 19px;
  border-radius: 23px;
  margin: 0 2px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color .18s;
}
.cookie-btn--accept {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.cookie-btn--accept:hover, .cookie-btn--accept:focus {
  background: var(--color-primary-light);
}
.cookie-btn--reject {
  background: #fff;
  border: 1.5px solid #B89C83;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.cookie-btn--reject:hover, .cookie-btn--reject:focus {
  background: var(--color-accent);
}
.cookie-btn--settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn--settings:hover, .cookie-btn--settings:focus {
  background: var(--color-grey);
  color: #43261C;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 8px 16px 10px;
  }
  .cookie-banner__actions { gap: 6px; }
  .cookie-banner__text { margin-right: 0; }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 93vw;
  max-width: 410px;
  padding: 34px 26px 28px 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 46px rgba(120,95,65,.19);
  z-index: 2000;
  transform: translate(-50%,-50%) scale(.92);
  transition: opacity .18s, transform .28s;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cookie-modal__close {
  border: none;
  background: none;
  font-size: 1.35rem;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 50%;
  padding: 1px 10px;
  transition: background .14s, color .13s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: var(--color-accent);
  color: var(--color-primary-light);
}
.cookie-modal__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 14px 0;
}
.cookie-category {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cookie-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-toggle {
  margin-left: auto;
}
.cookie-toggle input[type='checkbox'] { display: none; }
.cookie-switch {
  display: inline-block;
  width: 38px;
  height: 21px;
  background: var(--color-grey);
  border-radius: 14px;
  position: relative;
  vertical-align: middle;
  transition: background .15s;
}
.cookie-switch::before {
  content: '';
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform .2s, background .16s;
  box-shadow: 0 1px 4px rgba(140,100,70,.08);
}
.cookie-toggle input[type='checkbox']:checked + .cookie-switch {
  background: var(--color-primary-light);
}
.cookie-toggle input[type='checkbox']:checked + .cookie-switch::before {
  transform: translateX(17px);
  background: var(--color-primary);
}
.cookie-category-desc {
  font-size: 0.97rem;
  opacity: 0.84;
  color: var(--color-text);
}
.cookie-category--essential .cookie-switch,
.cookie-category--essential .cookie-switch::before {
  background: #E3DACF !important;
  cursor: not-allowed !important;
}
.cookie-category--essential .cookie-category-header {
  opacity: 0.64;
}

.cookie-modal__footer {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .cookie-btn {
  font-size: 0.97rem;
}

/* MODAL OVERLAY */
.cookie-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(60,39,19,0.20);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s;
}
.cookie-overlay.active { opacity: 1; pointer-events: all; }

/* 15. MICRO-INTERACTIONS & TRANSITIONS */
.card, .section, .feature-item, .testimonial-card, .cta-primary, .cookie-btn {
  transition: box-shadow .20s, background .20s, border .16s, transform .19s;
}

/* A11Y: visually hidden for cookie banner/modal if needed */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ENSURE NO GRID/COLUMNS USAGE: ONLY FLEXBOX USED */
