/* ===========================
   Lush Glow Wissenschaft – Scandinavian Clean Style
   Comprehensive Responsive Flexbox-Only CSS
   =========================== */

/* --------------
   CSS Reset / Normalize
   -------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #23436B;
  background: #F7F7F2;
  min-height: 100vh;
  font-size: 16px;
}
*, *:before, *:after { box-sizing: inherit; }
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
strong, b { font-weight: 600; }

/* --------------
   Brand Variables (with fallback)
   -------------- */
:root {
  --color-primary: #23436B;
  --color-secondary: #7AB466;
  --color-accent: #F7F7F2;
  --color-black: #18243a;
  --color-gray: #E6E9ED;
  --color-deepgray: #A9B7C7;
  --color-white: #fff;
  --shadow-card: 0 2px 10px rgba(35,67,107,0.06), 0 0.5px 1px rgba(122,180,102,0.05);
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* --------------
   Layout Containers
   -------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
main {
  padding-top: 32px;
  padding-bottom: 32px;
  background: var(--color-accent);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-grid, .services-grid, .features, .testimonials, .services-overview, .contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(35,67,107,0.12), 0 1px 2px rgba(122,180,102,0.03);
  transform: translateY(-3px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
ul {
  padding-left: 18px;
  margin-bottom: 12px;
}
ul li {
  list-style: disc inside;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 16px;
}

/* --------------
   Typography
   -------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
p, address, li {
  color: var(--color-black);
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.7;
}
address {
  font-style: normal;
  color: var(--color-black);
  font-size: 1rem;
}

/* Quote styles for testimonials */
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 6px;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: 0.98rem;
  font-style: italic;
  font-family: var(--font-body);
}

/******
 * Button / Link Styles
******/
.cta-button,
button,
input[type="submit"] {
  font-family: var(--font-display);
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 12px 26px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgba(122,180,102,0.11);
  letter-spacing: 0.06em;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.18s, transform 0.13s;
  outline: none;
  text-align: center;
  display: inline-block;
}
.cta-button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.04);
}
.cta-button:focus,
button:focus,
input[type="submit"]:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Inline links */
a:not(.cta-button):hover, .footer-nav a:hover, .mobile-nav a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/******
 * Header & Main Navigation
******/
header {
  width: 100%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  box-shadow: 0 1px 8px rgba(35,67,107,0.03);
  position: relative;
  z-index: 40;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.16s, color 0.14s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
header .cta-button {
  margin-left: 28px;
}

/******
 * Mobile Navigation
******/
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  outline: none;
  transition: color 0.19s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,67,107,0.96);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.46,1.04,.53,.99);
  box-shadow: 2px 0 12px 0 rgba(46,46,46,0.07);
  padding-top: 24px;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  position: absolute;
  top: 28px;
  right: 28px;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.13s;
}
.mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 70px 30px 0 30px;
  width: 100vw;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 0;
  border-radius: var(--radius-md);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/******
 * Layout/Semantic Section Spacing
******/
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:last-of-type {
  margin-bottom: 0;
}

/******
 * Cards & Features
******/
.services-grid > div, .feature-grid > div, .features > div, .services-overview > div, .features > ul, .features > h3, .features > .icon-highlights, .testimonial-card {
  flex: 1 1 260px;
  max-width: 330px;
  min-width: 220px;
}
@media (max-width: 900px) {
  .services-grid > div, .feature-grid > div, .features > div, .services-overview > div, .features > ul, .features > h3, .features > .icon-highlights, .testimonial-card {
    max-width: 100%;
    flex-basis: 100%;
  }
}

.card, .testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 20px 22px;
  transition: box-shadow 0.2s, transform 0.14s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(35,67,107,0.14), 0 1px 2px rgba(122,180,102,0.06);
  transform: translateY(-2px) scale(1.01);
}

/******
 * Features Lists, Icon Highlights and Overviews
******/
.icon-highlights, .benefit-icons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
}
.icon-highlights img, .benefit-icons img {
  background: var(--color-accent);
  border-radius: 50%;
  padding: 10px;
  height: 50px;
  box-shadow: var(--shadow-card);
}
.topics-overview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.editorial-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

/******
 * Pricing / Cta Area
******/
.pricing-summary, .cta-area {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

/******
 * Footer
******/
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 34px 0 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}
.footer-nav {
  display: flex;
  gap: 32px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
}
.footer-brand img {
  height: 28px;
  width: auto;
}

/******
 * Cookie Consent Banner
******/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray);
  box-shadow: 0 -4px 22px rgba(35,67,107,0.08);
  z-index: 10010;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px;
  font-family: var(--font-body);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.23,1,.32,1);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  max-width: 600px;
  color: var(--color-black);
  font-size: 1rem;
  margin-bottom: 10px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-buttons .cookie-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  border: none;
  padding: 9px 23px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.17s, color 0.14s, box-shadow 0.2s;
}
.cookie-buttons .cookie-btn:focus,
.cookie-buttons .cookie-btn:hover {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(35,67,107,0.07);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
  padding: 9px 18px;
  transition: background 0.16s, color 0.15s, border 0.14s;
}
.cookie-btn.settings:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

/******
 * Cookie Modal
******/
.cookie-modal-overlay {
  position: fixed;
  z-index: 11000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,67,107,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s cubic-bezier(.23,1,.32,1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 38px rgba(35,67,107,0.11);
  max-width: 480px;
  width: 100%;
  padding: 30px 26px 26px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
}
.cookie-category .toggle {
  min-width: 44px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  color: var(--color-primary);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.cookie-category.essential label {
  color: var(--color-primary);
  opacity: 0.68;
  cursor: not-allowed;
}
/* Toggle Switch */
.toggle {
  position: relative;
  width: 44px;
  height: 22px;
  display: inline-block;
}
.toggle input {
  display: none;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-gray);
  border-radius: 22px;
  transition: background 0.15s;
}
.toggle input:checked + .slider {
  background: var(--color-secondary);
}
.slider:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 1px 8px rgba(35,67,107,0.08);
  transition: transform 0.18s;
}
.toggle input:checked + .slider:before {
  transform: translateX(22px);
}

/******
 * Utility: Hide visually
******/
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/******
 * Responsive Design
******/
@media (max-width: 1100px) {
  .container {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 14px;
  }
  .feature-grid, .services-grid, .features, .services-overview, .testimonials, .contact-section {
    gap: 15px;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 95%;
  }
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 9px;
  }
  header {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 8px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
    margin-left: 10px;
  }
  header .cta-button {
    margin-left: 8px;
    padding: 10px 18px;
    font-size: 1rem;
  }
  .section, section {
    margin-bottom: 35px;
    padding: 28px 0 18px 0;
  }
  .content-wrapper, .pricing-summary, .cta-area {
    gap: 16px;
    padding: 14px 8px;
  }
  .feature-grid, .services-grid, .features, .testimonials, .contact-section, .content-grid {
    flex-direction: column;
    gap: 14px !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card, .card {
    padding: 13px 10px;
    max-width: 100%;
  }
  .editorial-highlights, .icon-highlights, .benefit-icons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 13px;
  }
  .footer-nav {
    gap: 13px;
    flex-wrap: wrap;
    font-size: 0.96rem;
  }
  .footer-brand {
    font-size: 0.91rem;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 16px 10px;
    font-size: 0.97rem;
  }
  .cookie-buttons {
    flex-direction: column;
    gap: 9px;
  }
  .cookie-modal {
    padding: 20px 10px 10px 10px;
    max-width: 97vw;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 0.99rem; }
  .logo img { height: 33px; }
  .testimonial-card, .card {
    font-size: 0.98rem;
  }
}

/******
 * Animations
******/
@keyframes slideInMenu {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutMenu {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-100%); opacity: 0; }
}
@keyframes slideUpBanner {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes bannerDisappear {
  from { opacity: 1; }
  to { opacity: 0; }
}

.mobile-menu.open {
  animation: slideInMenu 0.33s cubic-bezier(.23,1,.32,1) forwards;
}
.mobile-menu:not(.open) {
  animation: slideOutMenu 0.33s cubic-bezier(.23,1,.32,1) forwards;
}
.cookie-banner.visible {
  animation: slideUpBanner 0.4s cubic-bezier(.23,1,.32,1) forwards;
}
.cookie-banner:not(.visible) {
  animation: bannerDisappear 0.18s ease-out forwards;
}

/******
 * Misc
******/
::-webkit-scrollbar {
  width: 7px;
  background: var(--color-gray);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 5px;
}

a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Prevent content overlap, add vertical spacing */
.content-wrapper > * { margin-top: 0; margin-bottom: 0; }
.content-wrapper > * + * { margin-top: 12px; }
.services-overview ul li,
.features ul li {
  margin-bottom: 8px;
}

/******
 * Forms (if extended in future)
******/
input, textarea {
  border: 1px solid var(--color-gray);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--color-white);
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
  outline: none;
}

/******
 * Visually Distinctive Sections
******/
section {
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 8px rgba(35,67,107,0.02);
}

/******
 * Modal overlay fix for high z-index
******/
body.modal-open {
  overflow: hidden;
}

/******
 * Accessibility
******/
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
