/* =======================================================
   CSS RESET & BASE NORMALIZE
   Nature Organic Style for TwistRim Akademie
   Font: Nunito (display), Open Sans (body)
   ======================================================= */

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 {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #f7f9f4;
  color: #2b291b;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
}

ul, ol {
  list-style: none;
}

a {
  color: #054D7D;
  text-decoration: none;
  transition: color .2s;
}

a:hover, a:focus {
  color: #416728;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================
   BRAND COLORS (CSS CUSTOM PROPERTIES)
   ============================= */
:root {
  --color-primary: #054D7D;
  --color-secondary: #FFD700;
  --color-accent: #F3F6F9;
  --color-organic-green: #416728;
  --color-earth: #8E735B;
  --color-bg-light: #f7f9f4;
  --color-bg-section: #f3f6f9;
  --color-bg-card: #ffffff;
  --color-contrast-dark: #2b291b;
  --color-contrast-light: #fff;
  --shadow-organic: 0 4px 16px 0 rgba(94, 106, 90, .09);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', Arial, sans-serif;
  color: var(--color-organic-green);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; margin-top: 32px; }
h3 { font-size: 1.4rem; font-weight: 800; }
h4, h5, h6 { font-size: 1.1rem; }
p, li, strong { font-size: 1rem; }
strong { font-weight: 700; }

.text-section p { font-size: 1.13rem; color: var(--color-contrast-dark); }
.text-section ul { padding-left: 18px; margin-bottom: 10px; }
.text-section ul li {
  list-style: disc;
  margin: 0 0 10px 0;
  font-size: 1rem;
}
.text-section ol { padding-left: 22px; }
.text-section ol li { list-style: decimal; margin-bottom: 10px; }

/* =============================
   LAYOUT / SPACING
   ============================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: 30px 80px 40px 50px/60px 40px 80px 30px;
  /* organic shape */
  box-shadow: var(--shadow-organic);
  position: relative;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--color-bg-card);
  border-radius: 24px 42px 30px 18px/50px 26px 38px 32px;
  box-shadow: var(--shadow-organic);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  min-width: 250px;
  max-width: 340px;
  flex: 1 1 260px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.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;
}

/* Testimonials Card */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #fffbe9;
  border-left: 7px solid var(--color-organic-green);
  border-radius: 30px 24px 32px 36px;
  margin-bottom: 20px;
  margin-top: 16px;
  box-shadow: 0 4px 24px 0 rgba(155, 170, 100, 0.12);
  color: var(--color-contrast-dark);
}
.testimonial-card p {
  font-size: 1.09rem;
  font-style: italic;
  color: #384217;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-organic-green);
  font-weight: 700;
}

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

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-top: 24px;
}
.services-list > div {
  background: var(--color-bg-card);
  border-radius: 30px 34px 40px 28px;
  box-shadow: var(--shadow-organic);
  padding: 32px 24px 28px 24px;
  flex: 1 1 270px;
  max-width: 330px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.16s, box-shadow 0.22s;
  border: 2px solid transparent;
}
.services-list > div:hover {
  box-shadow: 0 6px 36px 0 rgba(96,128,80,0.13);
  border-color: var(--color-organic-green);
  transform: translateY(-4px) scale(1.02) rotate(-0.5deg);
}
.services-list h3 {
  margin: 0 0 6px 0;
  font-size: 1.21rem;
  color: var(--color-organic-green);
}
.services-list span {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 18px 7px 28px 15px;
  padding: 5px 18px;
  font-size: 1.02rem;
  margin-top: 10px;
  margin-bottom: 8px;
}

.faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
  width: 100%;
}
.faq-accordion > div {
  background: #e2efd3;
  border-radius: 24px 26px 22px 30px;
  padding: 24px 22px;
  box-shadow: 0 2px 8px rgba(142, 178, 86, .09);
  transition: box-shadow .18s;
}
.faq-accordion > div:hover {
  box-shadow: 0 4px 18px rgba(142, 178, 86, .17);
}
.faq-accordion h3 {
  color: var(--color-organic-green);
  font-weight: bold;
  margin-bottom: 8px;
}

/* =============================
   BUTTONS
   ============================= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--color-organic-green);
  color: var(--color-contrast-light);
  padding: 13px 36px 13px 25px;
  border-radius: 30px 18px 36px 18px;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(152,177,72,0.07);
  transition: background 0.14s, box-shadow 0.2s, transform 0.15s;
  outline: none;
  margin-top: 10px;
  margin-bottom: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 5px 22px rgba(180,160,50,0.18);
  transform: scale(1.03) rotate(-1deg);
}

button:focus,
.mobile-menu-toggle:focus,
.mobile-menu-close:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
  width: 100%;
  background: #f7f9f4;
  box-shadow: 0 0 30px 0 rgba(62,64,56,0.04);
  position: sticky;
  top: 0;
  z-index: 21;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  gap: 19px;
  margin-left: 24px;
}
header nav a {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--color-organic-green);
  position: relative;
  padding: 4px 0;
  transition: color 0.16s;
}
header nav a:after {
  content: '';
  display: block;
  width: 0%;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 4px 2px 2px 4px;
  transition: width 0.25s;
  margin-top: 3px;
}
header nav a:hover:after, header nav a:focus:after {
  width: 90%;
}
header nav a:hover, header nav a:focus {
  color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-organic-green);
  color: #ffffff;
  border: none;
  border-radius: 14px 28px 18px 23px;
  padding: 9px 17px 8px 17px;
  font-size: 1.7rem;
  margin-left: auto;
  box-shadow: 0 2px 7px rgba(50,83,16,0.09);
  cursor: pointer;
  transition: background .18s, color .11s, transform .15s;
  z-index: 31;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-organic-green);
  transform: scale(1.08);
}

/* ================
   MOBILE MENU
   ================ */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 94vw;
  max-width: 380px;
  background: #f6f8ef;
  box-shadow: 0 0 80px 0 rgba(79,113,43,0.21);
  z-index: 1002;
  padding: 35px 25px 25px 28px;
  transform: translateX(-105%);
  transition: transform .32s cubic-bezier(.7,.19,.36,.95);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  background: transparent;
  color: var(--color-organic-green);
  font-size: 2rem;
  border: none;
  margin: 0 0 38px 0;
  cursor: pointer;
  outline: 0;
  transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mobile-nav a {
  color: var(--color-primary);
  background: #e0e8cd;
  border-radius: 19px 16px 27px 20px;
  padding: 11px 23px;
  font-size: 1.06rem;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
  transition: background .18s, color .13s, transform .14s;
  min-width: 120px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-organic-green);
  color: #fff;
  transform: scale(1.03);
}

/* Hide nav on mobile, show burger */
@media (max-width: 1023px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =============================
   FOOTER
   ============================= */
footer {
  width: 100%;
  background: #f2efe5;
  border-radius: 65px 30px 0 0/80px 60px 0 0;
  box-shadow: 0 -6px 26px 0 rgba(71,91,49,0.04);
  margin-top: 70px;
  padding-top: 44px;
  padding-bottom: 36px;
}
footer .container {
  display: flex;
  flex-direction: row;
  gap: 38px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 0.97rem;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 800;
  transition: color .16s;
  padding: 3px 0;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-organic-green);
  text-decoration: underline;
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
  color: #546140;
  margin-left: 12px;
}
footer .contact-info a { color: var(--color-organic-green); }
footer .social-media-links {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}
footer .social-media-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2efd3;
  border-radius: 14px 19px 23px 22px;
  padding: 9px;
  box-shadow: 0 2px 11px rgba(142,178,86,.09);
  transition: background .12s, transform .14s;
}
footer .social-media-links a:hover {
  background: var(--color-organic-green);
  transform: scale(1.08);
}
footer .social-media-links img {
  width: 23px;
  height: 23px;
}

/* =============================
   RESPONSIVE MEDIA QUERIES
   ============================= */
@media (max-width: 1023px) {
  .content-wrapper {
    gap: 19px;
  }
  .card-container,
  .services-list,
  .content-grid {
    gap: 17px;
  }
  .card, .services-list > div {
    min-width: 160px;
    max-width: 98vw;
    padding: 18px 13px;
  }
  .testimonial-card { padding: 18px 13px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  section {
    border-radius: 24px 22px 20px 22px/22px 20px 24px 24px;
    padding: 22px 6px 28px 8px;
    margin-bottom: 37px;
  }
  .container { padding: 0 6px; }

  .content-wrapper,
  .card-container,
  .services-list,
  .content-grid,
  .feature-list,
  footer .container {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .card, .services-list > div {
    max-width: 99vw;
    min-width: 0;
    padding: 17px 8px;
  }
  .testimonial-card { padding: 15px 8px; }
  .faq-accordion > div { padding: 15px 9px; }
  /* Responsive nav in footer */
  footer .social-media-links { margin-left: 0; }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .cta-btn { padding: 12px 18px 12px 15px; font-size: 1rem; }
  section { padding: 16px 2px 20px 2px; }
}

/* Flex direction for text-image sections */
@media (max-width: 768px) {
  .text-image-section, .card-container, .content-grid, .services-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #e2efd3;
  color: #345014;
  box-shadow: 0 -2px 25px rgba(142,178,86,.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 26px 12px 20px 25px;
  z-index: 1011;
  font-size: 1.02rem;
  transition: transform .24s;
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner p {
  max-width: 530px;
  margin-right: 21px;
  font-size: 1.02rem;
}
.cookie-banner .cookie-btn {
  border: none;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 800;
  border-radius: 20px 21px 22px 19px;
  padding: 11px 21px;
  margin-right: 10px;
  margin-bottom: 3px;
  font-size: .97rem;
  box-shadow: 0 0 6px rgba(61,122,11,0.09);
  cursor: pointer;
  transition: background .15s, color .13s, box-shadow .16s;
}
.cookie-banner .accept {
  background: var(--color-organic-green);
  color: #fff;
}
.cookie-banner .accept:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .reject {
  background: #fffbe9;
  color: var(--color-organic-green);
  border: 1.5px solid var(--color-organic-green);
}
.cookie-banner .reject:hover {
  background: #eee8d3;
  color: #3f6d12;
}
.cookie-banner .settings {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cookie-banner .settings:hover {
  background: #e8f1c8;
  color: var(--color-organic-green);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1052;
  width: 100vw;
  height: 100vh;
  background: rgba(24,40,16,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .18s;
  opacity: 1;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal .modal-content {
  background: #fffbe9;
  border-radius: 20px 30px 36px 26px;
  box-shadow: 0 12px 70px 0 rgba(180,194,144,0.22);
  padding: 36px 28px 26px 28px;
  max-width: 400px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
  color: #2b291b;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-modal .modal-title {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1.4rem;
  color: var(--color-organic-green);
  margin-bottom: 7px;
  font-weight: 900;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1.01rem;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 8px;
}
.cookie-modal .toggle {
  display: inline-block;
  width: 38px;
  height: 22px;
  border-radius: 13px 12px 14px 14px;
  background: #e2efd3;
  position: relative;
  transition: background .15s;
  margin-right: 5px;
}
.cookie-modal .toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-modal .toggle span {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: var(--color-organic-green);
  border-radius: 60px;
  transition: left .17s, background .13s;
}
.cookie-modal .toggle input:checked + span {
  left: 19px;
  background: var(--color-secondary);
}
.cookie-modal .cookie-btn-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  color: var(--color-organic-green);
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2.1rem;
  cursor: pointer;
  transition: color .12s;
}
.cookie-modal .modal-close:hover {
  color: var(--color-secondary);
}
@media (max-width: 540px) {
  .cookie-modal .modal-content {
    padding: 19px 8px 17px 8px;
    max-width: 95vw;
    min-width: 0;
  }
}

/* ===========================
   FORM ELEMENTS (if present) 
   =========================== */
input, textarea, select {
  font: inherit;
  border-radius: 12px 18px 19px 11px;
  border: 1.5px solid #ddd;
  padding: 7px 13px;
  box-sizing: border-box;
  outline: none;
  background: #f7f9f4;
  margin-bottom: 14px;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-organic-green);
  background: #e2efd3;
}

/* ===========================
   MISC & UTILITIES
   =========================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===========================
   SELECTION & SCROLLBAR
   =========================== */
::selection {
  background: var(--color-secondary);
  color: var(--color-primary);
}

::-webkit-scrollbar {
  width: 8px;
  background: #e2efd3;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-organic-green);
  border-radius: 10px;
}

/* ===========================
   VISUAL ENHANCEMENTS (organic decor)
   =========================== */
@media (min-width: 990px) {
  section:before {
    content: '';
    display: block;
    position: absolute;
    width: 98px;
    height: 32px;
    left: -62px;
    top: 21px;
    background: rgba(186,216,130,0.15);
    border-radius: 50% 30% 60% 60%;
    z-index: 0;
  }
  section:after {
    content: '';
    display: block;
    position: absolute;
    width: 132px;
    height: 31px;
    right: -34px;
    bottom: 12px;
    background: rgba(62,111,28,0.11);
    border-radius: 60% 78% 22% 35%;
    z-index: 0;
  }
  .services-list > div:before {
    content: '';
    position: absolute;
    width: 39px;
    height: 20px;
    left: -21px;
    top: 13px;
    background: rgba(62,111,28,0.08);
    border-radius: 42% 60% 17% 80%;
    z-index: 0;
    filter: blur(1px);
  }
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadein {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
section, .card, .testimonial-card, .services-list > div, .faq-accordion > div {
  animation: fadein .8s cubic-bezier(.41,.88,.62,.98);
}

/* ===========================
   ACCESSIBILITY
   =========================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* END CSS */
