/* ============================== */
/*   CrystalRoam Ernährung Style   */
/*           style.css             */
/* ============================== */
/*
RESET & BASE STYLES
----------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  background: #F3F8F4;
  color: #274D3D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  margin-top: 0;
  color: #274D3D;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p {
  margin-top: 0;
  margin-bottom: 16px;
}
a {
  color: #347C5A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #F3906B;
}
ul, ol {
  margin: 16px 0 16px 24px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}
img {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
  border-radius: 8px;
}
address {
  font-style: normal;
  font-size: 1rem;
  color: #396B55;
  margin-top: 12px;
  line-height: 1.5;
}

/*
COLOR VARIABLES (with fallbacks)
----------------------------------*/
:root {
  --brand-primary: #274D3D;
  --brand-secondary: #B0D9C4;
  --brand-accent: #F3F8F4;
  --brand-warm: #F3906B;
  --brand-yellow: #FFCF76;
  --brand-light: #FFF;
  --brand-border: #E8ECE8;
  --brand-card-shadow: 0 4px 24px rgba(39, 77, 61, 0.12);
}

/*
CONTAINER & LAYOUTS
----------------------------------*/
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.text-section {
  max-width: 720px;
}


/*
SECTION & SPACING UTILITIES
----------------------------------*/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--brand-light);
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: var(--brand-card-shadow);
  position: relative;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 40px rgba(39, 77, 61, 0.14);
}
.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: center;
  gap: 20px;
  background: #fff7f3;
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 24px;
  min-width: 0;
  box-shadow: 0 2px 8px rgba(243, 144, 107, 0.06);
  border: 1px solid #FFDACC;
  color: #2E4232;
}
.testimonial-meta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #F3906B;
  margin-top: 2px;
}
.rating-stars {
  display: flex;
  gap: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--brand-light);
  border-radius: 20px;
  padding: 24px 20px;
  min-width: 200px;
  box-shadow: var(--brand-card-shadow);
  margin-bottom: 20px;
  border: 1px solid #E8ECE8;
}

/*
HEADER
----------------------------------*/
header {
  background: var(--brand-light);
  box-shadow: 0 2px 12px rgba(39,77,61,0.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
header a img {
  height: 48px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--brand-primary);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-secondary);
  color: #274D3D;
}
.cta-button {
  background: var(--brand-warm, #F3906B);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  margin-left: 20px;
  box-shadow: 0 2px 12px rgba(243, 144, 107, 0.09);
  outline: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-block;
  z-index: 2;
  letter-spacing: 0.01em;
}
.cta-button:hover, .cta-button:focus {
  background: #d86025;
  transform: translateY(-1.5px) scale(1.025);
  box-shadow: 0 4px 18px rgba(243, 144, 107, 0.12);
}

/*
MOBILE MENU
----------------------------------*/
.mobile-menu-toggle {
  display: none;
  background: var(--brand-warm, #F3906B);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  z-index: 1202;
  transition: background 0.15s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #d86025;
  box-shadow: 0 2px 14px rgba(243,144,107,0.18);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39, 77, 61, 0.96);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.78,.18,.23,.9);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.5rem;
  padding: 16px;
  margin: 14px 0 0 10px;
  align-self: flex-end;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
  z-index: 2;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(243,144,107,0.18);
}
.mobile-nav {
  flex-direction: column;
  width: 100%;
  padding: 32px 32px 16px 32px;
  display: flex;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 13px 0 13px 8px;
  border-radius: 12px;
  letter-spacing: 0.013em;
  transition: background 0.18s, color 0.2s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(243,144,107,0.15);
  color: #FFDACC;
}

/*
FOOTER
----------------------------------*/
footer {
  background: #FAF8F4;
  border-top: 1px solid #E4EDE6;
  margin-top: 60px;
  padding: 36px 0 28px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}
footer nav a {
  font-family: 'Montserrat', sans-serif;
  color: #274D3D;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 2px;
  border-radius: 6px;
  padding: 4px 10px;
  transition: background 0.13s;
}
footer nav a:hover {
  background: #E8ECE8;
}
footer address > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
footer img {
  border-radius: 8px;
}

/*
HERO/BANNERS/CALLOUTS
----------------------------------*/
section:first-of-type {
  margin-top: 0;
  background: #fff9f3;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 2px 32px rgba(243,144,107,0.09);
}

/*
FEATURE GRID, PRINCIPLES, PRICING TABLE, RECIPE CARDS
----------------------------------*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.principles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.principle-item {
  background: #F7F1EE;
  border-radius: 20px;
  padding: 18px 20px 18px 28px;
  margin-bottom: 20px;
  min-width: 180px;
  flex: 1 0 210px;
  box-shadow: 0 2px 12px rgba(243,144,107,0.08);
  border: 1px solid #FFDACC;
}
.principle-item h3 {
  margin-bottom: 9px;
  color: #D86025;
}

.pricing-table {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 24px 0 12px 0;
}
.plan-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(176, 217, 196, 0.08);
  border: 1px solid #E8ECE8;
  padding: 28px 22px 28px 22px;
  flex: 1 0 220px;
  min-width: 210px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
  position: relative;
}
.plan-card strong {
  color: #D86025;
  font-size: 1.5rem;
}
.plan-card:hover {
  box-shadow: 0 8px 32px rgba(243, 144, 107, 0.09);
}
.plan-features {
  margin: 18px 0 0 0;
}

.recipe-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.recipe-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--brand-card-shadow);
  border: 1px solid #E8ECE8;
  flex: 1 1 240px;
  min-width: 200px;
  padding: 22px 16px 20px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.17s;
}
.recipe-card:hover {
  box-shadow: 0 6px 24px rgba(176,217,196,0.15);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #3E7458;
}
.category-list span {
  background: #F7F1EE;
  color: #D86025;
  padding: 5px 16px;
  border-radius: 14px;
  font-weight: 500;
  margin-right: 2px;
}
.category-list span:last-child { margin-right: 0; }

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.faq-list h3 {
  margin-top: 20px;
  margin-bottom: 7px;
  font-size: 1.13rem;
}
.faq-list p {
  margin-bottom: 13px;
}

/*
BUTTONS (OVERRIDES)
----------------------------------*/
button, input[type="button"], input[type="submit"] {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
button:focus, .cta-button:focus {
  outline: 3px dashed #B0D9C4;
  outline-offset: 2px;
}
/*
FORMS, INPUTS, LABELS (USAGE POSSIBLE)
----------------------------------*/
input[type="text"], input[type="email"], input[type="password"], textarea {
  border: 1.5px solid #B0D9C4;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 1rem;
  background: #fff;
  margin-top: 3px;
  margin-bottom: 12px;
  transition: border 0.17s;
  width: 100%;
  max-width: 340px;
  color: #274D3D;
}
input:disabled {
  background: #F0F1F0;
  color: #97A9A1;
}
input:focus, textarea:focus {
  border: 1.5px solid #D86025;
  outline: none;
}
label {
  font-size: 1rem;
  color: #396B55;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 6px;
}

/*
CALL TO ACTION (other links)
----------------------------------*/
.content-wrapper > a[href] {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-family: 'Montserrat',sans-serif;
  color: #D86025;
}
.content-wrapper > a[href]:hover {
  color: #347C5A;
  text-decoration: underline;
}

/*
COOKIE CONSENT BANNER & MODAL
----------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff7f3;
  color: #2E4232;
  box-shadow: 0 -2px 16px rgba(243,144,107,0.15);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 12px 22px 16px;
  gap: 22px;
  border-top: 2px solid #FFDACC;
  flex-wrap: wrap;
  animation: cookieAppear 0.6s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes cookieAppear {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  80% { opacity: 1; transform: translateY(-10px); }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.cookie-banner p {
  margin: 0 26px 0 0;
  font-size: 1rem;
  max-width: 480px;
}
.cookie-btn {
  background: #FFDACC;
  color: #2E4232;
  border: none;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  border-radius: 22px;
  margin-right: 8px;
  padding: 9px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.12s, box-shadow 0.18s;
  box-shadow: 0 1px 6px rgba(243, 144, 107, 0.06);
}
.cookie-btn:last-child { margin-right: 0; }
.cookie-btn.accept {
  background: #F3906B;
  color: #fff;
}
.cookie-btn.reject {
  background: #E8ECE8;
  color: #D86025;
}
.cookie-btn.settings {
  background: #fff;
  color: #2E4232;
  border: 1px solid #F3906B;
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 3px 10px rgba(243,144,107,0.12);
  opacity: 0.92;
}
.cookie-modal-overlay {
  position: fixed;
  z-index: 1550;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(39,77,61,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.23s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff9f3;
  border-radius: 22px;
  padding: 44px 30px 32px 30px;
  box-shadow: 0 8px 48px rgba(243,144,107,0.19);
  max-width: 420px;
  width: 94vw;
  color: #2E4232;
  position: relative;
  animation: popIn 0.32s cubic-bezier(.56,-0.42,.43,1.48);
}
@keyframes popIn {
  0% { transform: scale(0.98) translateY(30px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 { color: #D86025; margin-bottom: 21px; font-size: 1.35rem; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-category label {
  flex: 1;
  margin-bottom: 0;
}
.cookie-toggle {
  appearance: none;
  background: #ECE8E5;
  border: 1.5px solid #B0D9C4;
  outline: none;
  width: 42px;
  height: 24px;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-toggle:checked {
  background: #F3906B;
  border-color: #F3906B;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  top: 2.5px;
  transition: left 0.18s cubic-bezier(.5,.12,.39,1.15);
  box-shadow: 0 1px 5px rgba(176,217,196,0.08);
}
.cookie-toggle:checked:before {
  left: 20px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #D86025;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.13s;
}
.cookie-modal .close:hover {
  background: #FFDBCC60;
}

/*
TYPOGRAPHY SCALE (Mobile First)
----------------------------------*/
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.10rem; }
  body, p, li { font-size: 0.97rem; }
  .cta-button { font-size: 1rem; padding: 12px 15px; }
}
@media (min-width: 601px) and (max-width: 999px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.2rem; }
  body, p, li { font-size: 1rem; }
}

/*
RESPONSIVE LAYOUTS (FLEX-ONLY! Important!)
----------------------------------*/
@media (max-width: 960px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
  .card-container,
  .feature-grid,
  .principles-grid,
  .recipe-cards,
  .pricing-table {
    gap: 16px;
  }
  footer .container {
    gap: 28px;
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 15px;
  }
}
@media (max-width: 800px) {
  .feature-grid,
  .principles-grid,
  .pricing-table,
  .recipe-cards {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .principle-item,
  .feature-item,
  .plan-card,
  .recipe-card {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 700px) {
  .content-wrapper {
    gap: 17px;
  }
  .container {
    padding: 0 5px;
  }
  section {
    padding: 25px 5px;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-logo {
    margin-bottom: 12px;
  }
}

/* Hamburger/Menu Responsive */
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .main-nav.mobile-visible {
    display: flex;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  section {
    margin-bottom: 40px;
    padding: 18px 2px;
  }
  .testimonial-card { padding: 14px; }
  .card, .feature-item, .principle-item, .plan-card, .recipe-card {
    padding: 14px 10px;
    font-size: 1rem;
  }
  .faq-list h3 { font-size: 1rem; margin-top: 12px; }
}

/*
SCROLLBAR STYLES (BRANDY & SOFT)
----------------------------------*/
::-webkit-scrollbar {
  width: 10px;
  background: #F8F6F2;
}
::-webkit-scrollbar-thumb {
  background: #FFDACC;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F3906B;
}

/*
UTILITY CLASSES
----------------------------------*/
.text-center { text-align: center; }
.max-width-700 { max-width: 700px; }
.hide { display: none !important; }

/*
SMOOTH MICRO-INTERACTIONS
----------------------------------*/
.card, .feature-item, .plan-card, .principle-item, .recipe-card, .testimonial-card {
  transition: box-shadow 0.14s, transform 0.13s;
}
.card:hover, .feature-item:hover, .plan-card:hover, .principle-item:hover {
  box-shadow: 0 6px 24px rgba(243, 144, 107, 0.14);
  transform: translateY(-2px) scale(1.018);
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(176, 217, 196, 0.10);
}

/*
FOCUS STYLES (Accessibility)
----------------------------------*/
a:focus, button:focus, input:focus, .cta-button:focus {
  outline: 2px solid #B0D9C4;
  outline-offset: 2px;
}

/*
AVOID ABSOLUTE POSITIONING FOR CONTENT (except icons/close)
----------------------------------*/

/*
SPECIAL COMPONENTS/LISTS
----------------------------------*/
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

ul, ol {
  padding-left: 26px;
}

/*
HIGHLIGHT & SELECTION
----------------------------------*/
::selection {
  background: #FFDACC;
  color: #2E4232;
}

/*
END: CrystalRoam Ernährung Styles
----------------------------------*/
