/* --- CSS RESET & NORMALIZATION --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #2d332a;
  background: #F9F8F6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}
button {
  cursor: pointer;
}

/* --- BRAND ROOT VARIABLES --- */
:root {
  --primary: #016A70;
  --secondary: #F5B041;
  --accent: #FDFEFE;
  --earth-dark: #73675c;
  --earth-light: #fffcf6;
  --organic-green: #2E653A;
  --organic-leaf: #406A35;
  --organic-brown: #a39a86;
  --organic-card: #faf9f4;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 9px;
  --shadow-lg: 0 4px 28px 0 rgba(46, 101, 58, 0.14);
  --shadow-sm: 0 2px 12px 0 rgba(115, 103, 92, 0.09);
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.25rem;
  letter-spacing: -1px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--organic-green);
  margin-bottom: 12px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--earth-dark);
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--organic-leaf);
}
p, ul, ol, li, table, .price {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #2d332a;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* --- GENERAL LAYOUT UTILITIES --- */
.container {
  margin: 0 auto;
  max-width: 1220px;
  padding: 0 20px;
  width: 100%;
}
.flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.space-between {
  justify-content: space-between;
}
.align-center {
  align-items: center;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}
.text-section {
  max-width: 720px;
  margin: 0 auto;
}

/* --- SITE HEADER --- */
header {
  background: var(--earth-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
}
header .container {
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 24px;
}
header img {
  height: 46px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--organic-green);
  transition: background 0.25s, color 0.25s;
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background 0.23s, box-shadow 0.23s, color 0.23s;
  box-shadow: var(--shadow-lg);
  outline: none;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #18534c;
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(1,106,112,0.13);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--organic-green);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #e39a10;
  color: var(--primary);
  box-shadow: 0 4px 18px 0 rgba(245,176,65,0.13);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  z-index: 1202;
  margin-left: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245,244,237,0.96);
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 20px 0 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  margin-bottom: 36px;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: background 0.2s;
  z-index: 1201;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--organic-green);
  font-weight: 600;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  transition: background 0.22s, color 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 768px) {
  header .container {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .footer-note, .footer-social {
    margin-top: 14px;
  }
}

/* --- MAIN SECTIONS LAYOUT --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-clip: padding-box;
}
.hero {
  background: linear-gradient(120deg, #F9F8F6 60%, #eaf7e6 100%);
  background-repeat: no-repeat;
  border-radius: 0 0 36px 36px;
  margin-bottom: 40px;
  box-shadow: 0 4px 28px 0 rgba(126,157,104,0.09);
}
.about, .legal {
  background: var(--organic-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cta {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.services .service-cards,
.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 38px 0 24px 0;
}
.service-card,
.course-item {
  background: #f7f6ef;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 22px 20px 22px;
  min-width: 240px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover, .course-item:hover {
  transform: translateY(-7px) scale(1.025);
  box-shadow: 0 8px 32px 0 rgba(46,101,58,0.14);
}
.service-card h3,
.course-item h3 {
  color: var(--primary);
  margin-bottom: 4px;
}
.price {
  font-weight: bold;
  color: var(--secondary);
  font-size: 1.13rem;
  margin-top: 14px;
}
.service-cta {
  margin: 18px 0 0 0;
  text-align: right;
}

.features,
.feature-grid,
.feature-item {
  width: 100%;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 200px;
  background: #f0f8e7;
  border-radius: var(--radius-md);
  padding: 18px 18px 14px 18px;
  margin-bottom: 20px;
  min-width: 210px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.21s, box-shadow 0.21s;
}
.feature-item img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 2px 8px 0 rgba(46,101,58,0.13);
  object-fit: cover;
  background: #fff;
}
.feature-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 28px 0 rgba(46,101,58,0.10);
}

.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,
  .content-grid,
  .service-cards,
  .feature-grid,
  .card-container,
  .course-list {
    flex-direction: column;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px 18px;
  z-index: 1;
  min-width: 200px;
  transition: transform 0.19s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-4px) scale(1.018);
  box-shadow: 0 6px 28px 0 rgba(115,103,92,0.13);
}

.testimonials {
  background: linear-gradient(103deg, #f7f7ef 69%, #ecf6ef 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 7px solid var(--primary);
  color: #23341a;
  font-size: 1.07rem;
  transition: box-shadow 0.16s, border 0.15s;
  max-width: 560px;
}
.testimonial-card p {
  color: #183329;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-size: 1rem;
  font-style: normal;
  color: var(--organic-green);
}
.testimonial-card:hover {
  border-left: 7px solid var(--secondary);
  box-shadow: 0 6px 18px 0 rgba(1,106,112,0.07);
}

@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px 10px;
    max-width: 100%;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 22px 0 24px 0;
}
.contact-info div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  color: var(--earth-dark);
}
.address-map {
  background: #f7f6ef;
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  margin: 18px 0;
}

/* --- LEGAL / PRIVACY --- */
.legal {
  padding: 40px 22px;
}
.legal h1, .legal h2, .legal h3, .legal h4 {
  color: var(--primary);
  margin-top: 12px;
}
.legal ul {
  margin: 14px 0 18px 0;
  list-style: disc inside;
  color: #234431;
  padding-left: 16px !important;
}
.legal ul li {
  margin-bottom: 8px;
}
.legal p + h3, .legal p + h2 {
  margin-top: 14px;
}

/* --- TABLES (for Preise) --- */
.prices-table {
  width: 100%;
  border-spacing: 0;
  background: #f7f6ef;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
  overflow: hidden;
}
.prices-table th,
.prices-table td {
  padding: 16px 10px;
  text-align: left;
}
.prices-table th {
  background: var(--organic-green);
  color: #fff;
  font-weight: bold;
  font-size: 1.06rem;
}
.prices-table tbody tr:nth-child(even) {
  background: #eaf7e6;
}
.prices-table tbody tr:nth-child(odd) {
  background: #fff;
}

/* --- TEAM --- */
.team-member {
  background: #f7f6ef;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px 18px;
  margin-bottom: 20px;
  color: var(--primary);
}

/* --- FOOTER --- */
footer {
  background: #23341a;
  color: #f7f6ef;
  padding: 40px 0 15px 0;
  width: 100%;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -2px 8px 0 rgba(46,101,58,0.04);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-brand img {
  width: 38px;
  height: 38px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 8px;
}
.footer-menu a {
  color: #eaf7e6;
  font-size: 1rem;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.20s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #ddd;
  font-size: 1rem;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 9px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  filter: grayscale(0.25) brightness(1.05);
  transition: filter 0.22s;
}
.footer-social a:hover img {
  filter: grayscale(0) brightness(1.25) drop-shadow(0 2px 8px #19532e11);
}
.footer-note {
  width: 100%;
  font-size: 0.97rem;
  color: #cacdcd;
  margin-top: 14px;
}

@media (max-width: 900px) {
  footer .container {
    gap: 18px;
    padding: 0 12px;
  }
}
@media (max-width: 600px) {
  footer {
    padding: 28px 0 12px 0;
    border-radius: 16px 16px 0 0;
  }
  .footer-menu {
    flex-direction: column;
    gap: 8px;
  }
  .footer-brand {
    margin-bottom: 3px;
  }
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #F9F8F6;
  box-shadow: 0 -2px 28px 0 rgba(46,101,58,0.14);
  border-top: 3px solid var(--secondary);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  font-size: 1rem;
  transition: transform 0.36s cubic-bezier(.86,0,.07,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-message {
  color: #2E653A;
  flex: 2 1 360px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 19px;
  font-size: 0.98rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  border: none;
  margin: 0;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #134d43;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--organic-green);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fbc969;
  color: var(--primary);
}

@media (max-width: 820px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 18px 9px;
    text-align: left;
  }
  .cookie-banner-message {flex: unset;}
}

.cookie-modal-overlay {
  position: fixed;
  inset:0;
  background: rgba(22,54,39,0.35);
  z-index: 4002;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #FDFEFE;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 54px 0 rgba(46,101,58,0.19);
  padding: 34px 28px 18px 28px;
  min-width: 320px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  position: relative;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.21s, transform 0.23s;
}
.cookie-modal-overlay.show .cookie-modal {
  opacity: 1;
  transform: translateY(0);
}
.cookie-modal h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-category {
  margin-bottom: 12px;
  font-size: 0.99rem;
}
.cookie-category label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 5px;
}
input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.cookie-modal .cookie-btn {
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  transition: background 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--secondary);
}

/* --- LISTS --- */
ul, ol {
  margin-left: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  color: #22311e;
  line-height: 1.6;
}
ul li strong, ol li strong {
  color: var(--primary);
}

/* --- SPACING AND FLEXBOX PATTERN ENFORCEMENT --- */
.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; }

/* --- MEDIA QUERIES: Responsive Layout --- */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid, .service-cards, .card-container, .course-list {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.32rem; }
}
@media (max-width: 768px) {
  .section, section {
    padding: 22px 7px;
    margin-bottom: 44px;
    border-radius: 18px;
  }
  .about, .legal, .testimonials, .cta {
    border-radius: 18px;
  }
  .service-card, .course-item, .feature-item, .team-member, .card {
    min-width: 120px;
    width: 100%;
    padding: 14px 8px 10px 11px;
  }
  .content-wrapper,
  .text-section {
    max-width: 99vw;
  }
}
@media (max-width: 540px) {
  .feature-item img, .service-card img {
    width: 38px; height: 38px;
  }
  .testimonial-card,
  .team-member {
    padding: 10px 7px;
  }
  .cookie-modal {
    padding: 18px 8px 16px 12px;
    min-width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }
}

/* --- MICROINTERACTIONS/TRANSITIONS --- */
.btn-primary, .btn-secondary, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .footer-menu a, nav a, .feature-item, .service-card, .testimonial-card {
  transition: background 0.2s, color 0.2s, box-shadow 0.23s, transform 0.18s;
}

/* --- FOCUS ACCESSIBILITY --- */
a:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, .cookie-btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  z-index: 10;
}

/* --- ORGANIC/NATURE SHAPES/DECOR --- */
.hero,
.about,
.services,
.features,
.testimonials,
.cta,
.legal {
  border-radius: 0 0 36px 36px/0 0 27px 27px;
  box-shadow: 0 2px 22px 0 rgba(92,140,105,0.07);
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: -38px;
  right: -38px;
  width: 109px;
  height: 109px;
  background: rgba(1,106,112,0.09);
  border-radius: 60% 60% 80% 40%;
  z-index: 0;
  pointer-events: none;
}
section::before {
  content: '';
  display: block;
  position: absolute;
  left: -48px; top: -31px;
  width: 68px; height: 58px;
  background: rgba(40,158,78,0.06);
  border-radius: 62% 62% 80% 46%;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero, .about, .services, .features, .testimonials, .cta, .legal {
    border-radius: 0 0 18px 18px / 0 0 11px 11px;
  }
  .hero::after, section::before {
    display: none;
  }
}

/* --- LEAFY ORGANIC DIVIDERS (SECTIONS) --- */
section {
  border-bottom: 8px solid rgba(1,106,112,0.045);
}

/* --- UTILITY CLASSES (for .section margin, spacing, display) --- */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.pt-0 { padding-top: 0!important; }
.pb-0 { padding-bottom: 0!important; }
.gap-24 { gap: 24px; }
.gap-12 { gap: 12px; }

/* --- PRINT SAFETY (optional) --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay { display: none !important; }
  .container { max-width: 98vw; }
  body { background: #fff; color: #222; }
}

/* --- END --- */
