/* RESET & SCANDINAVIAN CLEAN FOUNDATION */
html {
  box-sizing: border-box;
  font-size: 16px;
  background: #F0EFEA;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #274133;
  background: #F0EFEA;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-weight: 400;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #486B56;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B39251;
  outline: none;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #274133;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, .subtitle {
  font-size: 1rem;
  margin-bottom: 14px;
}
.subtitle {
  color: #486B56;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 24px;
}
strong, b {
  font-weight: 700;
}

/* CONTAINERS AND LAYOUT */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(36,65,51,0.05);
}

/* FLEXBOX PATTERNS - NO CSS GRID! */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(36,65,51,0.07);
  padding: 24px 20px;
  min-width: 265px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 20px rgba(180,146,81,0.11);
  transform: translateY(-5px);
}
.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: flex-start;
  gap: 14px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(36,65,51,0.06);
  border-left: 5px solid #B39251;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Brand/reusable buttons */
.cta-primary, .main-nav .cta-primary, .footer-cta .cta-primary {
  display: inline-block;
  background: #B39251;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 1px 6px rgba(36,65,51,0.07);
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
  transition: background 0.22s, box-shadow 0.2s, color 0.21s, transform 0.16s;
  margin-top: 10px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #486B56;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px rgba(36,65,51,0.12);
  outline: none;
}

/* HEADER & NAVIGATION */
header {
  background: #F0EFEA;
  border-bottom: 1px solid #E9E8E3;
  position: sticky;
  top: 0;
  z-index: 102;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  color: #486B56;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 0 5px 0;
  border-bottom: 2.5px solid transparent;
  transition: color 0.17s, border-bottom 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #B39251;
  border-bottom: 2.5px solid #B39251;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #486B56;
  cursor: pointer;
  margin-left: 10px;
  z-index: 120;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(240,239,234,0.98);
  z-index: 200;
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 24px 24px 24px;
  transform: translateX(-100%);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #274133;
  font-size: 2.1rem;
  margin-bottom: 28px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #486B56;
  padding: 14px 0 10px 0;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  background: #E9E8E3;
  color: #B39251;
}

/* --- HERO & COVER SECTIONS --- */
.hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 0 0 22px 22px;
  margin-bottom: 48px;
  box-shadow: 0 2px 14px rgba(180,146,81,0.10);
  padding: 40px 0;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  gap: 12px;
}
.hero h1 {
  color: #486B56;
}

/* ------- FEATURES AND GRIDS ------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 16px;
}
.feature {
  background: #fff;
  padding: 24px 20px 22px 20px;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(36,65,51,0.08);
  flex: 1 1 240px;
  min-width: 230px;
  max-width: 300px;
  transition: box-shadow 0.14s, transform 0.13s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature img {
  height: 42px;
  width: 42px;
  margin-bottom: 10px;
}
.feature h3 {
  color: #274133;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 6px 18px rgba(180,146,81,0.12);
  transform: translateY(-4px) scale(1.03);
}

/* --- COURSE OVERVIEW (kurse.html) --- */
.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.course {
  background: #fff;
  padding: 22px 17px 19px 17px;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(36,65,51,0.07);
  flex: 1 1 230px;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.13s, transform 0.13s;
}
.course-level {
  margin-left: 12px;
  padding: 2px 9px;
  background: #F0EFEA;
  border-radius: 7px;
  color: #486B56;
  font-size: 0.96rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.course:hover, .course:focus-within {
  box-shadow: 0 5px 16px rgba(180,146,81,0.11);
  transform: translateY(-3px) scale(1.02);
}

/* --- TESTIMONIALS --- */
.testimonials {
  margin-top: 24px;
  margin-bottom: 60px;
}
.testimonials .content-wrapper {
  gap: 0px;
}
.testimonial-card {
  color: #274133;
  background: #FFFFFF;
  font-size: 1.125rem;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(36,65,51,0.06);
  border-left: 5px solid #B39251;
  transition: box-shadow 0.15s, transform 0.15s;
}
.testimonial-card strong {
  color: #486B56;
  font-size: 0.97rem;
  font-weight: 600;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 4px 16px rgba(180,146,81,0.11);
  transform: translateY(-2px) scale(1.01);
}

/* --- PRICING TABLE (preise.html) --- */
.pricing-table {
  width: 100%;
  background: #fff;
  border-radius: 13px;
  margin: 20px 0;
  border-collapse: collapse;
  box-shadow: 0 2px 10px rgba(36,65,51,0.07);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 16px 10px;
  text-align: left;
  font-size: 1rem;
}
.pricing-table thead {
  background: #F0EFEA;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #486B56;
  font-size: 1.09rem;
}
.pricing-table tbody tr {
  border-bottom: 1px solid #E9E8E3;
}
.pricing-table tbody tr:last-child {
  border-bottom: none;
}
.pricing-table tbody td {
  color: #274133;
}

/* --- TEAM --- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.team-member {
  background: #fff;
  padding: 20px 16px 18px 16px;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(36,65,51,0.06);
  flex: 1 1 210px;
  min-width: 180px;
  max-width: 260px;
  transition: box-shadow 0.13s, transform 0.13s;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.team-member h3 {
  margin-bottom: 4px;
}
.team-member:hover, .team-member:focus-within {
  box-shadow: 0 4px 14px rgba(180,146,81,0.10);
  transform: translateY(-3px) scale(1.02);
}
.certifications ul {
  padding-left: 1.1em;
  margin-bottom: 12px;
}

/* --- CONTACT SECTIONS --- */
.contact-details ul,
.contact-promo p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.map-placeholder {
  background: #E9E8E3;
  padding: 35px 18px;
  border-radius: 14px;
  color: #274133;
  font-size: 1rem;
  margin-bottom: 18px;
}

/* --- CTA BLOCK --- */
.cta-block {
  margin: 30px 0 0 0;
  background: #486B56;
  padding: 40px 20px;
  border-radius: 16px;
  text-align: left;
  color: #fff;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(36,65,51,0.10);
}
.cta-block .cta-primary {
  background: #fff;
  color: #274133;
  margin-top: 10px;
  box-shadow: 0 1px 9px rgba(180,146,81,0.09);
}
.cta-block .cta-primary:hover, .cta-block .cta-primary:focus {
  background: #B39251;
  color: #fff;
}

.thankyou {
  margin-top: 48px;
  margin-bottom: 100px;
  background: #fff;
  padding: 44px 20px 48px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(180,146,81,0.10);
  text-align: center;
}

/* --- FOOTER --- */
footer {
  background: #F0EFEA;
  margin-top: 60px;
  border-top: 1.5px solid #E9E8E3;
  padding: 44px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-logo img {
  height: 38px;
  width: auto;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
}
.footer-nav a {
  color: #486B56;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B39251;
}
.footer-cta {
  margin-top: 10px;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}
.footer-socials a img {
  height: 28px;
  width: 28px;
  transition: opacity 0.13s, transform 0.13s;
}
.footer-socials a:hover img { opacity: 0.75; transform: scale(1.08); }
.footer-contact p {
  color: #486B56;
  margin-bottom: 6.5px;
  font-size: 0.99rem;
}
.footer-legal {
  font-size: 0.96rem;
  color: #A3A097;
  margin: 10px 0 18px 0;
}

/* --- LEGALS --- */
.legal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(36,65,51,0.06);
  margin-bottom: 60px;
  padding: 40px 22px 30px 22px;
}
.legal h1, .legal h2 {
  margin-top: 12px;
}
.legal ul {
  padding-left: 1.3em;
  margin-bottom: 12px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 2222;
  background: #FFFFFF;
  color: #274133;
  box-shadow: 0 -2px 16px rgba(36,65,51,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 30px 22px 30px;
  font-size: 1rem;
  animation: banner-in 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes banner-in {
  from { transform: translateY(130%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 auto;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 20px;
  padding: 10px 22px;
  font-weight: 520;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.15s, transform 0.14s;
  box-shadow: 0 1px 5px rgba(36,65,51,0.07);
}
.cookie-btn.accept {
  background: #B39251;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #486B56;
  color: #fff;
  transform: scale(1.03);
}
.cookie-btn.reject {
  background: #F0EFEA;
  color: #486B56;
  border: 1px solid #486B56;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: #B39251;
  border-color: #B39251;
  transform: scale(1.03);
}
.cookie-btn.settings {
  background: #fff;
  color: #486B56;
  border: 1px solid #B39251;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F0EFEA;
  color: #B39251;
  border-color: #B39251;
  transform: scale(1.03);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2223;
  inset: 0;
  background: rgba(36,65,51,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlay-in 0.32s cubic-bezier(.77,0,.18,1);
}
@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(36,65,51,0.13);
  padding: 36px 28px 28px 28px;
  max-width: 98vw;
  width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: modal-in 0.38s cubic-bezier(.77,0,.18,1);
}
@keyframes modal-in {
  from { transform: scale(.83); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: #274133;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #B39251;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  padding: 10px 0;
  border-top: 1px solid #E9E8E3;
}
.cookie-category:first-child {
  border-top: none;
}
.cookie-category-label {
  font-weight: 520;
  color: #486B56;
}
.cookie-category input[type='checkbox'] {
  accent-color: #B39251;
  width: 22px;
  height: 22px;
}
.cookie-category .cookie-switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}
.cookie-category .cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-category .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E9E8E3;
  border-radius: 16px;
  transition: background 0.2s;
}
.cookie-category .slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: #B39251;
  transition: .2s;
  border-radius: 50%;
}
.cookie-category .cookie-switch input:checked + .slider {
  background: #C2A67B;
}
.cookie-category .cookie-switch input:checked + .slider:before {
  transform: translateX(18px);
  background: #486B56;
}
.cookie-category .essential-label {
  color: #B39251;
  font-style: italic;
  font-size: 0.96rem;
}

/* --- MEDIA QUERIES (MOBILE FIRST: BASE IS MOBILE) --- */
@media (max-width: 900px) {
  .main-nav { gap: 15px; }
  .container { max-width: 100vw; padding: 0 12px; }
  .card, .feature, .course, .team-member { min-width: 180px; }
  .footer-nav { gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.39rem; }
  .section, .legal, .cta-block, .thankyou, .hero { padding: 26px 9px; }
  header .container { gap: 9px; padding-left: 6px; padding-right: 6px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .content-grid, .feature-grid, .card-container, .team-grid, .course-list {
    flex-direction: column;
    gap: 20px;
  }
  footer .container {
    gap: 16px;
  }
  .footer-socials { gap: 10px; }
  .hero { min-height: 170px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 18px 8px; gap: 12px; font-size: 1rem; }
  .cookie-buttons { gap: 10px; }
}
@media (max-width: 520px) {
  html { font-size: 14px; }
  .section, .legal, .cta-block, .thankyou {
    padding-left: 4px;
    padding-right: 4px;
  }
  .footer-contact p { font-size: 0.93rem; }
  .footer-nav a { font-size: 0.98rem; }
  .cookie-modal { width: 97vw; min-width: 0; font-size: 0.98rem; padding: 18px 2vw; }
}

/* --- SCANDINAVIAN MICRO-ANIMATIONS --- */
button, .cta-primary, .cookie-btn {
  transition: background 0.18s, color 0.14s, transform 0.09s, box-shadow 0.13s;
}
.card, .feature, .course, .testimonial-card, .team-member {
  transition: box-shadow 0.15s, transform 0.14s;
}
.card:hover, .feature:hover, .course:hover, .testimonial-card:hover, .team-member:hover, .cta-primary:focus, .cta-primary:hover {
  box-shadow: 0 6px 18px rgba(180,146,81,0.13);
  transform: translateY(-3px) scale(1.012);
}

/* --- UTILITIES --- */
.hide { display: none !important; }
.text-center { text-align: center; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* --- ACCESSIBILITY FOCUSES --- */
a:focus, .cta-primary:focus, .cookie-btn:focus, .mobile-menu-close:focus, .mobile-menu-toggle:focus {
  outline: 2.5px solid #B39251;
  outline-offset: 2px;
  z-index: 120;
}

/* --- FORMS (if any; for future expansion) --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid #E9E8E3;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 1px 6px rgba(36,65,51,0.04);
  background: #fff;
  margin-bottom: 13px;
}
input:focus, textarea:focus, select:focus {
  border-color: #B39251;
  outline: none;
}

/* --- END OF CSS --- */
