/* ===============================
   CSS RESET & BASE 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;
}
article, aside, details, figcaption, figure,  
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FFF;
  color: #253441;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #253441;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #D68A25;
  outline: none;
}

/* ===============================
   VARIABLES & BRAND COLORS
   =============================== */
:root {
  --color-primary: #253441;
  --color-secondary: #F4C95D;
  --color-secondary-dark: #D68A25;
  --color-accent: #E6F0ED;
  --color-background: #FFF8F1;
  --color-card-bg: #FFF;
  --color-shadow: 0 2px 16px 0 rgba(36,30,11,0.10);
  --color-shadow-soft: 0 2px 8px 0 rgba(36,30,11,0.08);
  --color-footer-bg: #253441;
  --color-footer-text: #fff;
  --color-btn-primary: #F4C95D;
  --color-btn-hover: #EABB53;
  --color-btn-secondary: #253441;
  --color-btn-secondary-hover: #19242C;
  --color-cta-text: #253441;
  --border-radius: 16px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ===============================
   TYPOGRAPHY
   =============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
}
p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
ul, ol {
  margin-left: 24px;
}
.text-section ul, .text-section ol {
  margin-bottom: 18px;
  padding-left: 22px;
}

/* ===============================
   LAYOUT & SECTION SPACING
   =============================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 22px;
  padding-right: 22px;
  margin-left: auto;
  margin-right: auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  .section {
    padding: 30px 10px;
    margin-bottom: 40px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.text-section {
  margin-bottom: 18px;
}

/* ===============================
   HEADER & NAVIGATION
   =============================== */
header {
  background: #FFF;
  box-shadow: var(--color-shadow-soft);
  position: relative;
  z-index: 90;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 18px;
}
header img {
  max-height: 48px;
  border-radius: 0;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  padding: 8px 0 8px 0;
  border-radius: 8px;
  transition: color 0.14s, background 0.16s;
}
header nav a:hover, header nav a.active {
  color: var(--color-secondary-dark);
  background: var(--color-accent);
}
.cta.primary {
  background: var(--color-btn-primary);
  color: var(--color-cta-text);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 32px;
  border: none;
  font-size: 1.1rem;
  margin-left: 24px;
  box-shadow: 0 2px 10px 0 rgba(244,201,93,0.10);
  transition: background 0.16s, color 0.20s, box-shadow 0.24s;
  cursor: pointer;
  outline: none;
  text-align: center;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-btn-hover);
  color: var(--color-btn-secondary);
  box-shadow: 0 6px 20px 0 rgba(244,201,93,0.15);
}
.cta {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-btn-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 32px;
  font-size: 1rem;
  text-align: center;
  border: none;
  transition: background 0.14s, color 0.18s, box-shadow 0.2s;
  cursor: pointer;
  margin-top: 10px;
}
.cta:hover, .cta:focus {
  background: var(--color-secondary);
  color: var(--color-btn-secondary);
  box-shadow: 0 4px 12px 0 rgba(36,30,11,0.11);
}

/* Mobile Hamburger */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  padding: 2px 12px;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 10px;
  z-index: 999;
  border-radius: 12px;
  transition: background 0.12s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-btn-secondary);
}
@media (max-width: 950px) {
  header nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* ===============================
   MOBILE NAVIGATION OVERLAY
   =============================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 248, 241, 0.98);
  box-shadow: 0 4px 42px 0 rgba(37,52,65,0.16);
  z-index: 999;
  transform: translateX(102vw);
  transition: transform 0.32s cubic-bezier(.81,.1,.26,.97);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.4rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 18px 24px 10px 0px;
  margin: 0;
  z-index: 2000;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
  padding: 0 22px 22px 22px;
  gap: 12px;
}
.mobile-nav a {
  display: block;
  font-size: 1.15rem;
  font-family: var(--font-body);
  padding: 18px 0 10px 0;
  color: var(--color-primary);
  background: transparent;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 4px;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--color-secondary);
  color: var(--color-btn-secondary);
}
@media (min-width: 951px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ===============================
   MAIN CONTENT LAYOUTS
   =============================== */
/* Feature grid (index)
------------------ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 18px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 200px;
  background: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--color-shadow);
  padding: 26px 20px 30px;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.14s, transform 0.14s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px 0 rgba(37,52,65,0.13);
  transform: translateY(-3px) scale(1.03);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--color-secondary);
  padding: 6px;
  box-shadow: 0 2px 6px 0 rgba(244,201,93,0.08);
}
@media (max-width: 800px) {
  .feature-grid { flex-direction: column; }
  .feature-grid > div { width: 100%; }
}

/* Service Cards Preview (index) */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  justify-content: space-between;
}
.service-cards > div {
  flex: 1 1 210px;
  min-width: 200px;
  max-width: 300px;
  background: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--color-shadow);
  padding: 24px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  gap: 8px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.service-cards > div:hover {
  box-shadow: 0 10px 32px 0 rgba(244,201,93,0.14);
  transform: translateY(-4px) scale(1.035);
}
.service-cards strong {
  color: var(--color-secondary-dark);
  font-size: 1.08rem;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .service-cards { flex-direction: column; gap: 20px; }
  .service-cards > div { max-width: 100%; width: 100%; }
}

/* Service List (angebote.html) */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-list > div {
  flex: 1 1 240px;
  min-width: 218px;
  max-width: 340px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--color-shadow);
  padding: 24px 18px 20px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.13s, box-shadow 0.14s;
}
.service-list > div:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 6px 22px 0 rgba(244,201,93,0.11);
}
.service-list strong {
  color: var(--color-secondary-dark);
  font-size: 1.03rem;
}
@media (max-width: 900px) {
  .service-list { flex-direction: column; gap: 20px; }
  .service-list > div { max-width: 100%; width: 100%; }
}

/* Info / Card Utilities */
.infoboxes, .movement-hacks, .resilience-infoboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 8px;
}
.infoboxes > div, .movement-hacks > div, .resilience-infoboxes > div {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 12px;
  box-shadow: var(--color-shadow-soft);
  padding: 14px 16px 12px 14px;
  font-size: 1rem;
  flex: 1 1 200px;
  min-width: 185px;
  margin-bottom: 0;
}

/* Card container rules (universal) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  box-shadow: var(--color-shadow);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  transition: box-shadow 0.16s;
}
.card:hover {
  box-shadow: 0 10px 36px 0 rgba(244,201,93,0.13);
}

/* content-grid, used for features/preview cards */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* Testimonial styles */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  box-shadow: var(--color-shadow);
  border-radius: 20px;
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: 1.05rem;
  position: relative;
  transition: box-shadow 0.13s, transform 0.13s;
}
.testimonial-card p {
  color: var(--color-primary);
}
.testimonial-card:hover {
  box-shadow: 0 9px 38px 0 rgba(244,201,93,0.12);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card strong {
  color: var(--color-secondary-dark);
  font-size: 0.97rem;
}
@media (max-width: 700px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; }
}

/* Features list "feature-item" */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Custom cards e.g. sleep, mindfulness */
.sleep-tip-grid, .mindfulness-tip-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.sleep-tip-grid > div, .mindfulness-tip-cards > div {
  flex: 1 1 190px;
  min-width: 170px;
  background: var(--color-card-bg);
  border-radius: 14px;
  box-shadow: var(--color-shadow-soft);
  padding: 16px 16px 12px 16px;
  font-size: 1rem;
  color: var(--color-primary);
  transition: box-shadow 0.12s, transform 0.12s;
}
.sleep-tip-grid > div:hover, .mindfulness-tip-cards > div:hover {
  box-shadow: 0 8px 20px 0 rgba(37,52,65,0.11);
  transform: scale(1.025);
}
@media (max-width: 700px) {
  .sleep-tip-grid, .mindfulness-tip-cards {
    flex-direction: column;
    gap: 16px;
  }
}

/* ===============================
   BUTTONS, FORMS, CTAs
   =============================== */
button, input[type="submit"] {
  font-family: var(--font-display);
  background: var(--color-btn-primary);
  color: var(--color-btn-secondary);
  border: none;
  border-radius: 32px;
  padding: 10px 22px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(244,201,93,0.07);
  outline: none;
  margin-bottom: 6px;
}
button:hover, button:focus {
  background: var(--color-btn-hover);
  color: var(--color-btn-secondary);
  box-shadow: 0 8px 16px 0 rgba(244,201,93,0.19);
}
input, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #dde5e5;
  background: #FFF;
  margin-bottom: 14px;
}
input:focus, textarea:focus {
  outline: 2px solid var(--color-secondary);
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-top: 36px;
  padding-bottom: 32px;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}
footer img {
  max-height: 44px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 18px;
}
footer nav a {
  color: var(--color-footer-text);
  opacity: 0.92;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.12s, color 0.14s;
}
footer nav a:hover, footer nav a:active {
  background: var(--color-secondary);
  color: var(--color-btn-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.96rem;
  opacity: 0.85;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #FFF8F1;
  color: #253441;
  box-shadow: 0 -2px 26px 0 rgba(37,52,65,0.13);
  border-radius: 16px 16px 0 0;
  width: 96%;
  max-width: 560px;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  z-index: 2500;
  animation: cookieBannerIn 0.55s cubic-bezier(.8,.1,.5,.94);
}
@keyframes cookieBannerIn {
  0% { opacity:0; transform: translateY(60px) translateX(-50%); }
  100% { opacity:1; transform: translateY(0) translateX(-50%); }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 7px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--color-secondary);
  color: var(--color-btn-secondary);
  border: none;
  margin-right: 8px;
  margin-bottom: 0;
  box-shadow: 0 1px 8px 0 rgba(244,201,93,0.08);
  transition: background 0.15s, color 0.14s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-btn-hover);
  color: var(--color-btn-secondary);
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-btn-secondary);
  color: #fff;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--color-secondary-dark);
  color: #fff;
}

/* Cookie preferences modal */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,52,65,0.29);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: cookieModalIn 0.44s cubic-bezier(.8,.05,.5,.97);
}
@keyframes cookieModalIn {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal-content {
  background: #FFF;
  color: var(--color-primary);
  padding: 38px 30px 28px 30px;
  border-radius: 22px;
  max-width: 490px;
  width: 94vw;
  min-width: 0;
  box-shadow: 0 8px 44px 0 rgba(37,52,65,0.18);
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.28rem;
  margin-bottom: 2px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-toggle {
  margin-left: auto;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-secondary-dark);
}
/* Toggle switches for cookies */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  margin-bottom: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 22px;
  transition: background-color 0.19s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 1px 4px 0 rgba(37,52,65,0.06);
}
.switch input:checked + .slider {
  background-color: var(--color-secondary);
}
.switch input:checked + .slider:before {
  transform: translateX(16px);
}

/* ===============================
   MISC: SPACING, UTILITIES, ANIMATION
   =============================== */
@media (max-width: 700px) {
  .infoboxes, .movement-hacks, .resilience-infoboxes {
    flex-direction: column;
    gap: 14px;
  }
}
[tabindex]:focus, button:focus, a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 8px;
  background: #F9F5ED;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 8px;
}

/* Subtle fade animation for cards and sections */
@media (prefers-reduced-motion: no-preference) {
  .feature-grid > div, .service-cards > div, .service-list > div, .testimonial-card, .card {
    animation: fadeInSection 0.72s cubic-bezier(.6,.15,.13,1) both;
  }
  @keyframes fadeInSection {
    from {
      opacity:0; transform: translateY(40px) scale(0.97);
    } to {
      opacity:1; transform: translateY(0) scale(1);
    }
  }
}

/* Responsive adjustments (Mobile-first) */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.03rem; }
  .container { padding-left: 4px; padding-right: 4px; }
  .section { padding: 22px 2px; }
}

/* ========== END OF CSS FILE ========== */
