/* ---------------------------------------------------------------
 CSS RESET & VARIABLES
--------------------------------------------------------------- */
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.5;
}
ol, ul {
  list-style: none;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
img { max-width: 100%; display: block; }
button { background: none; border: none; outline: none; cursor: pointer; }

:root {
  --color-primary: #1A365D;
  --color-secondary: #B3C7E6;
  --color-accent: #F6EEC7;
  --color-bg: #FAF9F6;
  --color-green: #4E7257;
  --color-green-light: #DBEADA;
  --color-earth: #A38762;
  --color-earth-dark: #7A5E3B;
  --color-error: #B40000;
  --shadow-card: 0 6px 24px 0 rgba(52,68,39,0.10);
  --shadow-button: 0 2px 8px rgba(52,68,39,0.05);
}

/* ---------------------------------------------------------------
 TYPOGRAPHY
--------------------------------------------------------------- */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #2A3B2D;
  background: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-green);
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: 2.25rem; margin-bottom: 16px; letter-spacing: -1px; }
h2 { font-size: 1.625rem; margin-bottom: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.05rem; }
p, ul, ol, li, div {
  color: #2A3B2D;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
strong { color: var(--color-green); }

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
}

/* ---------------------------------------------------------------
 BASIC LAYOUT CONTAINERS & SECTIONS
--------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px; padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
}
.section,
.hero-section,
.features-section,
.about-short-section,
.testimonials-section,
.tips-list-section,
.language-features-section,
.courses-grid-section,
.growth-features-section,
.online-benefits-section,
.cta-section,
.legal-section,
.contact-info-section,
.map-section,
.faq-section,
.thankyou-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 10px rgba(140, 134, 87, 0.04);
}
@media (max-width: 768px) {
  .section,
  .hero-section,
  .features-section,
  .about-short-section,
  .testimonials-section,
  .tips-list-section,
  .language-features-section,
  .courses-grid-section,
  .growth-features-section,
  .online-benefits-section,
  .cta-section,
  .legal-section,
  .contact-info-section,
  .map-section,
  .faq-section,
  .thankyou-section {
    margin-bottom: 32px;
    padding: 24px 10px;
    border-radius: 20px;
  }
}

.text-section ul,
.text-section ol,
.text-section li {
  margin-bottom: 8px;
  color: var(--color-primary);
  list-style-type: disc;
  padding-left: 20px;
}
.text-section li img { margin-right: 10px; vertical-align: middle; }

/* Organic Shapes for Sections */
.section, .hero-section, .features-section, .about-short-section, .testimonials-section,
.tips-list-section, .language-features-section, .courses-grid-section,
.growth-features-section, .online-benefits-section, .cta-section, .legal-section {
  position: relative;
  background-color: var(--color-accent);
  box-shadow: var(--shadow-card);
  border-radius: 36px 28px 42px 32px / 32px 44px 28px 40px;
  /* organic border radius */
  margin-top: 20px;
}

/* ---------------------------------------------------------------
 FLEXBOX LAYOUTS
--------------------------------------------------------------- */
.card-container,
.feature-grid,
.card-grid,
.features,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: transform 0.15s cubic-bezier(.56,.18,.68,.72), box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 32px 0 rgba(52,68,39,0.14);
}

.content-grid { gap: 20px; }

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

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(51, 67, 53, 0.08);
  border: 2px solid var(--color-green-light);
  position: relative;
  transition: box-shadow 0.18s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(51, 67, 53, 0.10);
  transform: translateY(-2px) scale(1.012);
}
.testimonial-card p {
  font-size: 1.15rem;
  color: #27472F;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 4px;
}
.testimonial-info {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  justify-content: flex-end;
}
.testimonial-info span:first-child {
  font-size: 1rem;
  color: var(--color-green);
}
.testimonial-info span:last-child {
  font-size: 1.15rem; letter-spacing: 2px; color: var(--color-earth-dark); }

/* Ensure testimonial text is dark on light background for contrast */
.testimonial-card {
  background: #fff;
  color: #1D2B1F;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 18px;
}
.faq-item {
  background: #F4F7F2;
  border-radius: 16px;
  padding: 18px 16px 14px 16px;
  box-shadow: 0 1px 6px rgba(80,100,56,0.06);
  transition: box-shadow 0.17s;
}
.faq-item:hover {
  box-shadow: 0 4px 15px rgba(80,100,56,0.11);
}
.faq-item h3 {
  font-size: 1.13rem;
  color: var(--color-green);
  margin-bottom: 6px;
  font-weight: 600;
}
.faq-item div {
  color: #3E4C36;
}
@media (max-width: 768px) {
  .faq-list { gap: 12px; }
  .faq-item { padding: 12px 10px 10px 10px; }
}

/* Generic Spacing */
.card, .testimonial-card, .faq-item, .feature-item, .card-content, .feature-grid > li, .text-section ul, .text-section ol {
  margin-bottom: 20px;
}

/* Organic icons spacing */
.text-section li img { margin-right: 10px; vertical-align: middle; }

/* ---------------------------------------------------------------
 HEADER & NAVIGATION
--------------------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(80,100,56,0.08);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
header .container {
  padding: 12px 20px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  color: var(--color-green);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 15px;
  transition: background 0.17s, color 0.17s;
  position: relative;
}
header nav a:hover,
.mobile-nav a:hover {
  background: var(--color-green-light);
  color: var(--color-primary);
}
.cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 13px 30px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 24px 14px 28px 20px;
  color: #fff;
  background: var(--color-green);
  box-shadow: var(--shadow-button);
  transition: background 0.18s, box-shadow 0.17s, transform 0.15s;
  border: none;
  outline: none;
  margin-left: 18px;
  letter-spacing: 0.02em;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: #46814c;
  box-shadow: 0 4px 25px 0 rgba(51, 67, 53, 0.13);
  transform: translateY(-2px) scale(1.012);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-green);
  background: var(--color-earth);
  border-radius: 22px;
  padding: 6px 14px;
  margin-left: 16px;
  transition: background 0.13s, color 0.14s, box-shadow 0.15s;
  z-index: 130;
}
@media (max-width: 970px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(34,62,53,0.94);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.29s cubic-bezier(.45,.84,.15,1.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 24px;
  font-size: 2.5rem;
  color: #fff;
  background: transparent;
}
.mobile-nav {
  margin-top: 60px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-left: 38px;
}
.mobile-nav a {
  display: block;
  width: 100%;
  font-size: 1.20rem;
  font-weight: 600;
  color: #fff;
  padding: 13px 0 13px 6px;
  border-radius: 17px;
  transition: background 0.15s, color 0.17s;
}
.mobile-nav a:active, .mobile-nav a:focus {background: var(--color-earth-dark); color: #fff;}
@media (max-width: 970px) {
  .cta-button { margin-left: 8px; }
}

/* Logo Styling */
header img[alt*="Akademie"] {
  height: 48px; width: auto; margin-right: 18px;
}
@media (max-width: 768px) {
  header img[alt*="Akademie"] { height: 36px; }
}

/* ---------------------------------------------------------------
 HERO & MAJOR CONTENT
--------------------------------------------------------------- */
.hero-section {
  background: var(--color-green-light) url('../assets/hero-bg-organic.svg') repeat top right;
  background-size: 420px;
  min-height: 260px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  border-radius: 48px 24px 44px 48px / 32px 44px 30px 42px;
}
.hero-section h1 {
  color: var(--color-green);
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-section p {
  font-size: 1.2rem;
  color: #2A3B2D;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 20px 12px;
    min-height: 160px;
    background-size: 220px;
    border-radius: 26px 16px 24px 28px / 20px 24px 20px 16px;
  }
  .hero-section h1 { font-size: 1.2rem; }
  .hero-section p { font-size: 1rem; }
}

/* Features List Styling */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
  /* organic border for feature icons */
}
.feature-grid li {
  background: #fff;
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 340px;
  border-radius: 24px 14px 22px 18px;
  box-shadow: 0 2px 10px rgba(52,68,39,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 20px 20px 20px;
  gap: 9px;
  border-bottom: 7px solid var(--color-green-light);;
  transition: box-shadow 0.17s, transform 0.12s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 32px rgba(52,68,39,0.11);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid li img {
  height: 38px; width: 38px; margin-bottom: 10px;
}
.feature-grid h3 {
  font-size: 1.13rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.feature-grid p {
  color: #253B2A;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .feature-grid { gap: 12px; }
  .feature-grid li { min-width: 140px; max-width: calc(50% - 10px); padding: 13px 8px; }
}
@media (max-width: 640px) {
  .feature-grid { flex-direction: column; gap: 16px; }
  .feature-grid li {max-width: unset;}
}

/* Organic content cards (for index and other pages) */
.card-grid > .card,
.card-container > .card {
  border-radius: 20px 10px 22px 20px;
  box-shadow: 0 2px 10px rgba(52,68,39,0.09);
  padding: 22px 18px;
  margin-bottom: 20px;
  background: #fff;
  position: relative;
  transition: box-shadow 0.18s, transform 0.11s;
}
.card-grid > .card:hover,
.card-container > .card:hover {
  box-shadow: 0 8px 24px 0 rgba(52,68,39,0.18);
  transform: translateY(-3px) scale(1.012);
}

/* List Section (e.g. tips, languages, courses) */
.tips-list-section ul,
.language-features-section ul,
.courses-grid-section ul,
.growth-features-section ul,
.online-benefits-section ul {
  margin-bottom: 16px;
  color: var(--color-green);
  padding-left: 22px;
  font-size: 1.07rem;
}
.tips-list-section li,
.language-features-section li,
.courses-grid-section li,
.growth-features-section li,
.online-benefits-section li {
  margin-bottom: 10px;
  color: #2A3B2D;
  line-height: 1.4;
}

/* Thank You Section */
.thankyou-section {
  background: var(--color-green-light);
}
.thankyou-section ul {
  margin-bottom: 16px; color: #25443A;
}
.thankyou-section .cta-button {margin-top: 14px;}

/* Map Placeholder */
.location-map-placeholder {
  border: 2px solid var(--color-earth-dark);
  border-radius: 16px 24px 18px 22px;
  background: #EEECE6;
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
  align-items: start;
  margin: 16px 0;
  gap: 8px;
  min-width: 220px;
}
.location-map-placeholder img {height: 54px; margin-bottom: 5px;}
.location-map-placeholder p {color: #82705A; font-size: 1rem;}

/* ---------------------------------------------------------------
 FOOTER
--------------------------------------------------------------- */
footer {
  background: var(--color-green-light);
  padding: 48px 0 18px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  gap: 36px;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: #517F61;
}
.footer-links a {
  color: var(--color-green);
  margin-bottom: 5px;
  border-radius: 12px;
  padding: 3px 10px;
  transition: background 0.13s, color 0.12s;
  display: inline-block;
}
.footer-links a:hover { background: #e5efdc; color: var(--color-primary);}
.footer-links span {
  color: #82705A;
  font-size: 0.98rem;
  margin-top: 6px;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}
.footer-contact img { height: 42px; margin-right: 10px; }
.footer-contact p { color: #5C6E54; font-size: 0.99rem; line-height: 1.45; }
@media (max-width: 800px) {
  footer .container { flex-direction: column; gap: 20px; align-items: flex-start; }
}

/* ---------------------------------------------------------------
 BUTTONS, TRANSITIONS & MICRO-INTERACTIONS
--------------------------------------------------------------- */
button, .cta-button, .mobile-menu-toggle, .cookie-banner-button {
  transition: background 0.18s, color 0.14s, box-shadow 0.18s, transform 0.13s;
}
button:focus, .cta-button:focus { outline: 2px solid var(--color-green); outline-offset: 2px;}

/* ---------------------------------------------------------------
 RESPONSIVE DESIGN
--------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container { max-width: 99vw; }
}
@media (max-width: 640px) {
  html, body { font-size: 15px; }
  .section, .hero-section, .features-section, .about-short-section, .testimonials-section, .tips-list-section, .language-features-section, .courses-grid-section, .growth-features-section, .online-benefits-section, .cta-section, .legal-section, .contact-info-section, .map-section, .faq-section, .thankyou-section {
    padding: 12px 4px; border-radius: 12px;
  }
}

/* ---------------------------------------------------------------
 COOKIE BANNER & MODAL
--------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #F6EEC7;
  color: #2A3B2D;
  box-shadow: 0 -3px 14px 0 rgba(80,100,56,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px 16px 24px;
  z-index: 4000;
  gap: 20px;
  border-radius: 26px 24px 0 0;
  animation: slideUpCookie 0.34s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes slideUpCookie {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  font-size: 1rem;
  flex: 1 1 auto;
  color: #446C45;
  margin-right: 8px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-banner-button {
  min-width: 120px;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 24px;
  border: none;
  outline: none;
  color: #fff;
  background: var(--color-green);
  margin-left: 2px;
  box-shadow: 0 2px 8px rgba(58,80,59,0.07);
  transition: background 0.15s, color 0.13s, transform 0.12s;
}
.cookie-banner-button:disabled { opacity: 0.61; }
.cookie-banner-button:hover, .cookie-banner-button:focus {
  background: #46814c; color: #fff; transform: scale(1.022);
}
.cookie-banner-button.secondary {
  color: var(--color-green);
  background: #EFE9D7;
  border: 1px solid #DAD4C1;
}
.cookie-banner-button.secondary:hover, .cookie-banner-button.secondary:focus {
  background: #E3E2D4;
}
.cookie-banner-button.reject {
  background: #B40000;
}
.cookie-banner-button.reject:hover {
  background: #7A1515;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 8px 8px 10px;
    gap: 8px;
  }
  .cookie-banner-actions { gap: 7px; }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,51,41,0.60);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.open {opacity: 1; pointer-events: auto;}
.cookie-modal {
  background: #fff;
  border-radius: 28px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 12px 44px rgba(52,68,39,0.20);
  padding: 28px 34px 20px 34px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: slideInModal 0.37s cubic-bezier(.28,.68,.41,1.25) both;
  position: relative;
}
@keyframes slideInModal {
  from { transform: translateY(70px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; color: var(--color-green);
  font-size: 2rem; border: none; padding: 0; z-index: 20;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-green);
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.cookie-modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal-category label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #3E4C36;
  font-weight: 600;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: var(--color-green);
  width: 22px; height: 22px;
  margin-right: 3px;
}
.cookie-modal-category input[disabled] { opacity: 0.6; }
/* ---------------------------------------------------------------
 END OF CSS 
--------------------------------------------------------------- */
