/* CrystalChipset Ernährung - Vibrant Energetic CSS (Flexbox only, mobile-first) */

/* -----------------------------
   RESET & BASELINE NORMALIZE
------------------------------ */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F5F7F3;
  color: #245C43;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img, video {
  max-width: 100%;
  display: block;
}
a {
  color: #157688;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #3BA6B7;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
:focus {
  outline: 2px dashed #3BA6B7;
  outline-offset: 3px;
}

/* VISUAL SCROLLBAR for vibrance */
body::-webkit-scrollbar {
  width: 10px;
  background: #E3ECE8;
}
body::-webkit-scrollbar-thumb {
  background: #3BA6B7;
  border-radius: 5px;
}

/* -----------------------------
   TYPOGRAPHY SCALE
------------------------------ */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #157688;
  margin-bottom: 22px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #245C43;
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #245C43;
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
p, ul, ol {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #245C43;
  font-size: 1rem;
  margin-bottom: 11px;
}
.subheadline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  color: #3BA6B7;
  margin-bottom: 24px;
  font-weight: 500;
}
strong {
  font-weight: 700;
}
ul, ol {
  padding-left: 1.2em;
}

/* List items with vibrant accent */
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
}
ul li::marker { color:#3BA6B7; font-size:1em; }

/* Custom accent link */
a.cta-link {
  color: #fff;
  background: #3BA6B7;
  border-radius: 18px;
  padding: 6px 16px;
  font-weight: 700;
  transition: background 0.2s;
}
a.cta-link:hover {
  background: #245C43;
}
/* -----------------------------
   FLEX CONTAINER PATTERNS
------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(59,166,183,0.09);
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(36,92,67,0.19);
  transform: translateY(-3px) scale(1.01);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F5F7F3;
  border-radius: 16px;
  border: 2px solid #3BA6B7;
  box-shadow: 0 2px 14px rgba(36,92,67,0.07);
  font-size: 1.08rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.testimonial-card blockquote {
  font-style: italic;
  color: #1E3D35;
  margin-bottom: 6px;
  line-height: 1.4;
}
.testimonial-user {
  font-size: 0.95rem;
  color: #157688;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(36,92,67,0.07);
  padding: 24px 20px 24px 20px;
  width: 100%;
  min-width: 210px;
  max-width: 320px;
  flex: 1 1 220px;
  transition: box-shadow 0.16s, transform 0.15s;
}
.feature-item img {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
}
.feature-item:hover {
  box-shadow: 0 6px 24px rgba(59,166,183,0.19);
  transform: translateY(-3px) scale(1.025);
}

/* -----------------------------
   FLEX LAYOUTS FOR CUSTOM BLOCKS
------------------------------ */
.feature-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #fff;
  border-left: 5px solid #3BA6B7;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(59,166,183,0.05);
  margin-bottom: 20px;
  transition: box-shadow 0.15s, border-color 0.2s;
}
.faq-item:hover {
  box-shadow: 0 4px 18px rgba(36,92,67,0.11);
  border-color: #245C43;
}

.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 22px;
}
.pricing-option {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(36,92,67,0.10);
  padding: 22px 24px;
  min-width: 230px;
  flex: 1 1 240px;
  text-align: left;
  border: 2px solid #3BA6B7;
  transition: border 0.15s, box-shadow 0.18s;
}
.pricing-option .price {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #157688;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.24rem;
}
.pricing-option:hover {
  border: 2px solid #245C43;
  box-shadow: 0 8px 24px rgba(59,166,183,0.17);
  transform: translateY(-4px) scale(1.015);
}

/* Section-specific tweaks */
.hero {
  background: #3BA6B7;
  color: #fff;
  padding: 76px 0 56px;
  min-height: 310px;
  display: flex;
  align-items: center;
}
.hero h1, .hero .h1 {
  color: #fff;
}
.hero .subheadline {
  color: #fff;
  opacity: 0.98;
}
.cta-banner {
  background: #245C43;
  color: #fff;
  border-radius: 20px;
  margin-bottom: 38px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 22px rgba(36,92,67,0.14);
}
.cta-banner h2{
  color: #fff;
}

/* ----------------------------
   BUTTONS & CTA
----------------------------- */
.cta-btn,
button.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(90deg,#157688,#3BA6B7 90%);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(59,166,183,0.22);
  padding: 13px 34px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.17s, transform 0.12s;
  text-decoration: none;
}
.cta-btn:hover,
button.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(90deg,#13b88b,#3BA6B7 80%);
  color:#fff;
  box-shadow: 0 6px 20px rgba(36,92,67,0.14);
  transform: translateY(-2px) scale(1.04);
}
.cta-btn:active {
  background: #245C43;
  box-shadow: none;
}

/* ----------------------------
   NAVIGATION
----------------------------- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 3px solid #3BA6B7;
  position: relative;
  z-index: 19;
}
header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 20px 13px 20px;
}
header img {
  height: 38px;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex: 1 1 auto;
  margin-left: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #157688;
  font-size: 1.03rem;
  padding: 7px 16px 7px 12px;
  border-radius: 17px;
  transition: background 0.13s, color 0.13s;
}
.main-nav a:hover,
.main-nav a.active {
  background: #3BA6B7;
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #157688;
  cursor: pointer;
  margin-left: 20px;
  transition: color 0.15s;
  z-index: 1101;
}
.mobile-menu-toggle:focus { color: #3BA6B7; background: #e5f7fc; border-radius:50%; }

/* ----------------------------
   MOBILE NAVIGATION
----------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #245C43;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.18s;
  z-index: 2000;
  box-shadow: 4px 0 28px rgba(21,118,136,0.13);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  border: none;
  align-self: flex-end;
  margin: 18px 26px 14px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 22px 32px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.17rem;
  font-weight: 600;
  padding: 12px 0 12px 0;
  border-radius: 0 16px 16px 0;
  width: 100%;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #3BA6B7;
  color: #fff;
  padding-left: 10px;
}

/* ----------------------------
  FOOTER
----------------------------- */
footer {
  background: #245C43;
  color: #fff;
  padding: 38px 0 20px 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap:9px;
  align-items: flex-start;
  max-width: 300px;
}
.footer-brand img {
  height: 36px;
  margin-bottom: 7px;
}
.footer-brand p {
  font-size: 0.99rem;
  color: #fff;
  margin-bottom: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  font-size: 0.99rem;
}
.footer-links a {
  color: #3BA6B7;
  padding: 3px 8px;
  border-radius: 8px;
  transition: background 0.14s, color 0.13s;
  font-weight: 500;
}
.footer-links a:hover {
  background: #3BA6B7;
  color: #fff;
}
.footer-social {
  font-size: 0.97rem;
  margin-top: 11px;
  color:#fff;
}
.footer-social a {
  color: #fff;
  margin-left: 8px;
}
.footer-social a:hover {
  color: #3BA6B7;
}

/* ----------------------------
  COOKIE BANNER & MODAL
----------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  right: 0;
  z-index: 2500;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(36,92,67,0.11);
  border-top: 3px solid #3BA6B7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px 24px 16px;
  gap: 14px;
  animation: cookieAppear 0.8s cubic-bezier(.68,-0.2,.27,1.3);
}
@keyframes cookieAppear { from { opacity:0; transform: translateY(60px);} to { opacity:1; transform:translateY(0);}}
.cookie-banner p {
  color: #245C43;
  font-size: 1.01rem;
  flex: 3 1 200px;
  margin: 0;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 24px;
  padding: 10px 20px;
  background: #3BA6B7;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.15s;
  margin-right: 5px;
  box-shadow: 0 3px 13px rgba(59,166,183,0.13);
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #245C43;
  color: #fff;
}
.cookie-btn.reject {
  background: #157688;
}
.cookie-btn.reject:focus,
.cookie-btn.reject:hover {
  background: #b3173b;
}
.cookie-btn.settings {
  background: #fff;
  color: #3BA6B7;
  border: 2px solid #3BA6B7;
  box-shadow: none;
}
.cookie-btn.settings:focus,
.cookie-btn.settings:hover {
  background: #3BA6B7;
  color: #fff;
}

/* Cookie preferences modal */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 2600;
  background: rgba(36,92,67,0.31);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: opacity 0.24s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 32px rgba(36,92,67,0.21);
  width: 100%;
  max-width: 420px;
  margin-bottom: 0;
  padding: 32px 26px 24px 26px;
  animation: cookieModalAppear 0.35s cubic-bezier(.68,-0.2,.27,1.3);
}
@keyframes cookieModalAppear { from {opacity:0; transform:translateY(60px);} to {opacity:1;transform:translateY(0);}}
.cookie-modal h2 {
  color: #157688;
  margin-bottom: 18px;
  font-size: 1.27rem;
}
.cookie-category {
  margin-bottom: 17px;
  padding:10px 0;
  border-bottom: 1px solid #e3ece8;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-category:last-child {
  border: none;
}
.cookie-category label {
  font-weight: 600;
  color: #245C43;
  font-size: 1.01rem;
  flex: 1 1 auto;
}
.cookie-category input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #3BA6B7;
}
.cookie-category .always {
  color: #b3b3b3;
  font-weight: 400;
  font-size: 0.96rem;
}
.cookie-modal-buttons {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 24px;
  background: none;
  color: #157688;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
}

/* ----------------------------
  ADDITIONAL SPACING & EFFECTS
----------------------------- */
.text-section {
  margin-bottom: 30px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}
.card:not(:last-child), .feature-item:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}

/* ----------------------------
  RESPONSIVE DESIGN
----------------------------- */
@media (max-width: 1100px) {
  .container {
    max-width: 980px;
  }
  .footer-content {
    gap: 18px;
  }
  .feature-grid, .card-container {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 760px;
  }
  .footer-content {
    flex-direction: column;
    gap: 18px;
  }
  .footer-brand { max-width: none; }
  .feature-grid,
  .card-container {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
  }
  .feature-item {
    max-width: 100%;
    flex: 1 1 180px;
  }
  .card {
    min-width: 188px;
  }
}
@media (max-width: 768px) {
  h1, .h1       { font-size: 1.65rem; }
  h2, .h2       { font-size: 1.25rem; }
  .hero {
    padding: 48px 0 28px;
    min-height: 190px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-content, .content-wrapper {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .feature-grid,
  .card-container {
    flex-direction: column;
    gap: 17px;
  }
  .feature-item {
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
  .pricing-table {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 13px 17px 11px;
    gap: 12px;
  }
}
@media (max-width: 520px) {
  h1, .h1         { font-size: 1.19rem; }
  h2, .h2         { font-size: 1.01rem; }
  .btn, .cta-btn  { font-size: 0.93rem; padding:10px 20px; }
  .pricing-option,.feature-item {
    padding: 15px 10px;
    font-size:0.96em;
  }
  .cookie-modal {
    padding: 18px 9px 14px 12px;
    border-radius: 22px 22px 0 0;
  }
}

/* --------------------------
   VIBRANT SHADOWS & MICRO-ANIMATION
--------------------------- */
.feature-item, .card, .testimonial-card, .faq-item {
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.2s;
}
.feature-item:hover, .card:hover, .testimonial-card:hover, .faq-item:hover {
  box-shadow: 0 3px 17px 0 rgba(59,166,183,0.14);
  transform: scale(1.016);
  border-color: #157688;
}
.cta-btn, .cookie-btn, button {
  transition: background 0.18s, box-shadow 0.15s, transform 0.12s;
}

/* ------------
   UTILITIES
------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 18px !important; }
.mb-2 { margin-bottom: 18px !important; }
.text-center { text-align: center!important; }
.text-right { text-align: right!important; }
.d-flex { display: flex!important; }
.items-center { align-items: center!important; }
.flex-col { flex-direction: column!important; }
.flex-row { flex-direction: row!important; }
.gap-20 { gap:20px!important; }
.gap-10 { gap:10px!important; }

/* ------------
   END
------------- */
