/* ===========================================================
   RESET & ROOTS (normalize + box-sizing)
   =========================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F8F6F2;
  color: #225732;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #225732;
  text-decoration: none;
  transition: color 0.24s cubic-bezier(.58,.01,.43,1.01);
}
a:hover, a:focus {
  color: #38b490;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  list-style: none;
}

/* ===========================================================
   BRAND FONTS & TYPOGRAPHY
   =========================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1px;
  color: #225732;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  letter-spacing: -.5px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.subheadline {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #7DC383;
  margin-bottom: 18px;
  display: block;
  letter-spacing: 0.2px;
}
p, li {
  font-size: 1rem;
  color: #225732;
  font-family: 'Open Sans', Arial, sans-serif;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}

@media (max-width:768px) {
  h1 { font-size: 2rem; margin-bottom: 14px; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
  .subheadline { font-size: 1rem; }
}

/* ===========================================================
   COLORS (brand palette + accents)
   =========================================================== */
:root {
  --color-primary: #225732;
  --color-secondary: #7DC383;
  --color-accent: #F8F6F2;
  --color-highlight: #38b490;
  --color-dark: #163e24;
  --color-error: #b92626;
  --color-light: #ffffff;
  --color-grey: #eeeeee;
  --shadow-card: 0 6px 28px 0 rgba(43,90,55,0.08), 0 1.5px 6px 0 rgba(35,97,65,0.08);
  --radius: 24px;
  --transition: all .24s cubic-bezier(.60,.06,.27,1.01);
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ===========================================================
   LAYOUT STRUCTURE & CONTAINERS
   =========================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .container { max-width: 100%; }
  .content-wrapper { padding: 24px 10px; }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(34,87,50,0.13);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-width: 270px;
  flex: 1 1 270px;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(58, 180, 144, 0.10);
  border: 2px solid var(--color-secondary);
  z-index: 2;
}
.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;
    gap: 20px;
    align-items: flex-start;
  }
}

/* Artistic icon grids */
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 16px 0;
  align-items: center;
}
.icon-grid img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-secondary);
  padding: 10px;
  box-shadow: 0 2px 8px rgba(34,87,50,0.09);
  transition: var(--transition);
  margin-right: 0;
}
.icon-grid img:hover {
  background: var(--color-primary);
  transform: translateY(-4px) scale(1.07) rotate(-6deg);
}

/* ===========================================================
   HEADER & NAVIGATION
   =========================================================== */
header {
  background: linear-gradient(90deg, #F8F6F2 60%, #7DC383 120%);
  border-bottom: 4px solid var(--color-secondary);
  padding: 0 0 0 0;
}
header .container {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img[alt="GrünLeben"] {
  width: 170px;
  max-width: 60vw;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--color-primary);
  padding: 5px 15px;
  border-radius: 16px;
  transition: var(--transition);
  background: transparent;
}
nav a:hover, nav a.active {
  background: var(--color-secondary);
  color: #fff;
}
.cta {
  padding: 0.82em 1.7em;
  border: none;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .1px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-left: 16px;
  box-shadow: 0 3px 12px 0 rgba(34,87,50,0.07);
  transition: var(--transition);
  outline: none;
}
.cta.primary {
  background: var(--color-secondary);
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}
.cta:hover, .cta:focus {
  background: var(--color-highlight);
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px 0 rgba(34,87,50,0.13);
}

@media (max-width: 950px) {
  header .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cta { margin-left: 0; }
}

/* ===========================================================
   RESPONSIVE: DESKTOP & MOBILE NAVIGATION
   =========================================================== */
nav {
  flex: 1 1 auto;
}
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 22px;
  top: 23px;
  z-index: 44;
  font-size: 2.3rem;
  width: 48px;
  height: 48px;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 16px 0 rgba(34,87,50,0.09);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-highlight);
  color: #fff;
  outline: 2px solid #225732;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,87,50,0.96);
  z-index: 80;
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition), opacity .22s cubic-bezier(.76,.06,.57,1.14);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 24px 32px 8px 0;
  cursor: pointer;
  transition: var(--transition);
  z-index: 121;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  padding: 68px 24px 24px 38px;
  height: 100%;
}
.mobile-nav a {
  color: #fff !important;
  font-size: 1.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 0 3px 0;
  border-radius: 10px;
  transition: var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary) !important;
  background: #fff1;
}
@media (max-width: 950px) {
  nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 951px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  nav, .cta.primary { display: flex !important; }
}

/* ===========================================================
   MAIN & FLEX GROUPS
   =========================================================== */
main {
  min-height: 350px;
  width: 100vw;
  padding-bottom: 60px;
  background: #F8F6F2 linear-gradient(102deg, #f8f6f2 50%, #e3f8ef 100%);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 700px) {
  .section {
    margin-bottom: 34px;
    padding: 28px 5px;
  }
  .content-wrapper { margin-bottom: 20px; }
}
/* Content flex helpers */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 2.5px dashed var(--color-secondary);
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px 0 rgba(34,87,50,0.10);
  transition: var(--transition);
  min-width: 270px;
  max-width: 100%;
  position: relative;
  z-index: 2;
}
.testimonial-card:hover {
  border-color: var(--color-highlight);
  background: #f2fcf7;
  transform: scale(1.02);
}
.testimonial-card p:first-child {
  color: #163e24;
  font-size: 1.08rem;
  font-family: var(--font-body);
  line-height: 1.6;
  margin-bottom: 6px;
}
.testimonial-card strong {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
}
.testimonial-card span {
  color: #FEBB1A;
  font-size: 1.21rem;
  letter-spacing: 2.5px;
  margin-left: 2px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 0;
}

/* ===========================================================
   BUTTONS & INTERACTIONS
   =========================================================== */
.button, .cta, button {
  cursor: pointer;
  font-family: var(--font-display);
}
button {
  background: var(--color-secondary);
  color: #225732;
  border: 0;
  border-radius: 16px;
  padding: 0.7em 1.4em;
  box-shadow: 0 1px 5px rgba(34,87,50,0.07);
  font-size: 1.03rem;
  font-weight: 600;
  transition: var(--transition);
}
button:hover, button:focus {
  background: var(--color-primary);
  color: #fff;
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: #225732;
  color: #fff;
  padding: 38px 0 20px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 13px;
  background: rgba(125,195,131,0.17);
  transition: var(--transition);
  font-size: 1rem;
}
footer nav a:hover {
  background: var(--color-highlight);
  color: #225732;
  text-decoration: underline;
}
footer p {
  font-size: 0.98rem;
  letter-spacing: .4px;
  color: #e9f8f0;
}

/* ===========================================================
   COOKIE CONSENT BANNER & MODAL
   =========================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #225732;
  box-shadow: 0 -2px 24px 0 rgba(34,87,50,0.09);
  padding: 26px 18px 22px 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 3px solid #7DC383;
  min-width: 260px;
  font-family: var(--font-body);
  animation: fadeInUp .32s ease;
}
.cookie-banner__text {
  font-size: 1.03rem;
  color: #2c5c33;
  margin-bottom: 6px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  appearance: none;
  border: none;
  border-radius: 15px;
  padding: 0.58em 1.12em;
  font-family: var(--font-display);
  font-size: 1.02rem;
  background: #7DC383;
  color: #fff;
  box-shadow: 0 1px 7px 0 rgba(34,87,50,0.09);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-btn.accept {
  background: #225732;
  color: #fff;
}
.cookie-btn.reject {
  background: #b92626;
  color: #fff;
}
.cookie-btn.settings {
  background: #F8F6F2;
  color: #225732;
  border: 2px solid #7DC383;
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(0.95);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px 0 rgba(34,87,50,0.13);
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(64px); } to { opacity: 1; transform: none; } }

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,87,50,.85);
  display: none;
  z-index: 12000;
  justify-content: center;
  align-items: center;
  transition: opacity .25s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 420px;
  min-width: 223px;
  box-shadow: 0 8px 44px 0 rgba(60,180,144,0.11);
  padding: 32px 24px 24px 24px;
  animation: fadeInUp .31s cubic-bezier(.49,.1,.4,1.01);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
}
.cookie-modal .modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.category-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.01rem;
}
.category-toggle label {
  font-weight: 600;
  min-width: 118px;
  font-family: var(--font-display);
}
.category-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #38b490;
}
.category-toggle.essential label,
.category-toggle.essential input {
  opacity: 0.7;
  pointer-events: none;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal__close {
  position: absolute;
  right: 18px; top: 13px;
  background: none;
  border: none;
  color: #163e24;
  font-size: 2rem;
  cursor: pointer;
  transition: color .19s;
}
.cookie-modal__close:hover {
  color: #38b490;
}
@media (max-width:450px) {
  .cookie-modal { padding: 13px 6px 19px 9px; }
  .cookie-modal h3 { font-size: 1.1rem; }
}

/* ===========================================================
   ARTISTIC / CREATIVE COLOR SPLASHES & DECORATIONS
   =========================================================== */
.content-wrapper:before {
  content: '';
  position: absolute;
  left: -22px; top: -22px;
  width: 66px; height: 66px;
  background: rgba(125,195,131,0.12);
  border-radius: 35% 60% 52% 68% / 46% 41% 60% 54%;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}
.content-wrapper:after {
  content: '';
  position: absolute;
  right: -20px; bottom: -20px;
  width: 40px; height: 40px;
  background: rgba(34,87,50,0.10);
  border-radius: 65% 22% 39% 74% / 67% 70% 50% 68%;
  z-index: 0;
  pointer-events: none;
  filter: blur(1px)
}
@media (max-width:600px) {
  .content-wrapper:before,
  .content-wrapper:after {
    display: none;
  }
}

/* Artistic/cursive font effect for creative headings */
.creative {
  font-family: 'Montserrat', cursive, Arial, sans-serif;
  color: #38b490;
  font-size: 2.5rem;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 0 #fff, 0 2.5px 2px #7dc38322;
}

/* Colorful accent bars */
hr {
  border: none;
  border-top: 4px solid #7DC383;
  margin: 24px 0;
}

/* Highlighted price spans */
.price-span, ul span, em {
  color: #38b490;
  font-weight: bold;
}

/* ===========================================================
   RESPONSIVE UTILITY FLEXBOX ONLY
   =========================================================== */
@media (max-width: 900px) {
  .container {
    padding: 0 5vw;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 2vw;
  }
}

/* Ensure all .card & .testimonial-card min-width, no overlap */
@media (max-width:555px) {
  .card, .testimonial-card {
    min-width: 100%;
    box-sizing: border-box;
  }
}

/* Flexible lists */
ul, ol {
  margin-left: 0px;
  margin-bottom: 18px;
  padding-left: 1.2em;
}
ul li, ol li {
  margin-bottom: 12px;
  font-size: 1rem;
  padding-left: 0.5em;
  color: #225732;
  position: relative;
}
ul li::before {
  content: '\2022';
  color: #38b490;
  font-size: 1.2em;
  position: absolute;
  left: -1.1em;
  top: 2px;
}

/* ===========================================================
   FORMS, INPUTS, LABELS
   =========================================================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 11px;
  border: 2px solid #7DC383;
  padding: 8px 12px;
  margin-bottom: 16px;
  background: #fff;
  color: #225732;
  resize: vertical;
  outline: none;
  transition: border-color .18s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: #38b490;
}
label {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
  color: #225732;
}

/* ===========================================================
   MEDIA QUERIES: SPACING & LAYOUT
   =========================================================== */
@media (max-width:700px) {
  .section, .content-wrapper { padding-left: 2vw; padding-right: 2vw; }
  .container { padding: 0 1vw; }
  footer .container { gap: 10px; }
}
@media (max-width: 600px) {
  .icon-grid {
    gap: 13px;
  }
  .content-grid, .card-container {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===========================================================
   ANIMATIONS + MICROINTERACTIONS
   =========================================================== */
.card, .testimonial-card, .cta, .cookie-banner, .cookie-btn {
  transition: box-shadow .22s cubic-bezier(.53,.02,.26,.99), background-color .21s, color .19s, transform .19s;
}
.card:active, .testimonial-card:active, .cta:active, .cookie-btn:active {
  transform: scale(0.985);
}

/* Focus States */
a:focus, button:focus, .cta:focus {
  outline: 2px solid #38b490;
  outline-offset: 2px;
}

/* ===========================================================
   MISCELLANEOUS
   =========================================================== */
::-webkit-input-placeholder { color: #7DC383; opacity: 1; }
::-moz-placeholder { color: #7DC383; opacity: 1; }
:-ms-input-placeholder { color: #7DC383; opacity: 1; }
::placeholder { color: #7DC383; opacity: 1; }

::-webkit-scrollbar {
  width: 9px;
  background: #F8F6F2;
}
::-webkit-scrollbar-thumb {
  background: #7DC383;
  border-radius: 10px;
}

/* ===========================================================
   PRINT OPTIMIZATION
   =========================================================== */
@media print {
  *, *:before, *:after { background: none !important; color: #000 !important; box-shadow: none !important; }
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main { padding: 0 !important; background: #fff !important; }
}
