/* RESET & NORMALIZE */
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #F9F6F1;
  color: #212422;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: .01em;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
}

/* CUSTOM PROPERTIES */
:root {
  --primary: #226455;
  --secondary: #BFD9C2;
  --accent: #F9F6F1;
  --gold: #C2A14B;
  --dark: #212422;
  --light: #fff;
  --display-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* TYPOGRAPHY SCALE */
h1, .h1 {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 2.875rem;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: .01em;
}
@media (max-width:768px){
  h1, .h1 {
    font-size: 2rem;
  }
}
h2, .h2 {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--dark);
}
h4, .h4 {
  font-family: var(--display-font);
  font-size: 1rem;
  color: var(--primary);
}
p, ul, ol {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--dark);
  font-weight: 400;
  margin-bottom: 18px;
}
ul {
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.6;
  position: relative;
}
ul.feature-grid li {
  padding: 28px 20px 20px 20px;
  background: var(--light);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(34,100,85,0.06);
  border: 1.2px solid #ece7e1;
  position: relative;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.25s, border 0.25s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
ul.feature-grid li img {
  width: 38px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 2px var(--gold));
}
ul.feature-grid li h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 6px;
}
ul.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
@media (max-width: 991px) {
  ul.feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* SECTION SPACING & CONTAINERS */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
.container {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}
@media (max-width: 768px) {
  section, .section {
    padding: 28px 4vw;
    margin-bottom: 40px;
  }
}

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

/* HEADER */
header {
  background: var(--light);
  box-shadow: 0 2px 18px rgba(34,100,85,.06);
  border-bottom: 1px solid #e8e2da;
  position: sticky;
  top: 0; z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  font-family: var(--body-font);
  font-weight: 500;
  color: var(--primary);
  font-size: 1.02rem;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .18s, color .15s;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: var(--gold);
}
header .btn-primary {
  margin-left: 16px;
}
header img[alt="Dynamo Crystal Akademie"]{
  height: 38px;
}

/* MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2.3rem;
  color: var(--primary);
  border: none;
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 31;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: var(--light);
  z-index: 99;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.77,.2,.21,1);
  box-shadow: 0 8px 36px rgba(34,100,85,.10);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--primary);
  font-size: 2.1rem;
  border: none;
  margin: 18px 24px 0 0;
  cursor: pointer;
  z-index: 101;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 40px;
  width: 100%;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: var(--body-font);
  font-size: 1.18rem;
  color: var(--primary);
  padding: 12px 0;
  border-bottom: 1px solid #ece7e1;
  font-weight: 600;
  border-radius: 0;
  transition: color .18s, background .17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--gold);
  background: var(--secondary);
}

@media (max-width: 991px) {
  header nav,
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    justify-content: flex-start;
    gap: 12px;
  }
}

/* HERO */
.hero {
  background: linear-gradient(120deg, var(--accent) 82%, #fff 100%);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 2px 18px 2px rgba(194,161,75,.06);
  padding-bottom: 70px;
  position: relative;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.6rem;
}
.hero .btn-primary {
  margin-top: 18px;
}

/* FEATURES FLEX */
.features .content-wrapper {
  gap: 32px;
}

/* CARD & GRID LAYOUTS */
.card-container, .card-grid, .kurs-teaser-cards, .course-list, .workshop-list, .blog-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  align-items: stretch;
  justify-content: space-between;
}
.card, .kurs-teaser-cards > div, .course-list > div, .workshop-list > div, .blog-articles > article {
  background: var(--light);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(194,161,75, 0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 18px 22px 22px;
  border: 1.2px solid #ece7e1;
  transition: box-shadow 0.23s, border-color 0.22s;
  flex: 1 1 250px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.card:hover, .kurs-teaser-cards > div:hover, .course-list > div:hover, .workshop-list > div:hover, .blog-articles > article:hover {
  box-shadow: 0 8px 38px 3px rgba(194,161,75, 0.16);
  border-color: var(--gold);
  z-index: 2;
}
@media (max-width: 991px) {
  .card-container, .card-grid, .kurs-teaser-cards, .course-list, .workshop-list, .blog-articles {
    flex-direction: column;
    gap: 18px;
  }
}

/* TESTIMONIALS */
.testimonials, .testimonials .container {
  background: var(--accent);
  border-radius: 24px;
}
.testimonials .content-wrapper {
  gap: 30px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 28px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: #fff;
  border-left: 6px solid var(--gold);
  box-shadow: 0 3px 24px 1px rgba(34,100,85,0.06);
  transition: box-shadow .14s;
}
.testimonial-card blockquote {
  color: #212422;
  font-size: 1.18rem;
  margin-bottom: 8px;
  line-height: 1.5;
  font-family: var(--display-font);
  font-style: italic;
}
.testimonial-card p {
  font-size: .99rem;
  color: var(--primary);
  font-weight: 600;
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 18px 16px;
  }
}

/* CTA SECTION */
.cta {
  background: var(--primary);
  border-radius: 22px;
  box-shadow: 0 8px 28px 4px rgba(34,100,85,0.10);
  color: var(--light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta .content-wrapper {
  align-items: center;
  gap: 22px;
  margin: 0 auto;
}
.cta h2 {
  color: var(--gold);
}
.cta p {
  color: #fff;
  font-size: 1.15rem;
}
.cta .btn-primary, .cta .btn-secondary {
  margin-top: 8px;
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 1.10rem;
  padding: 14px 32px;
  border-radius: 32px;
  display: inline-block;
  border: none;
  transition: background .21s, color .21s, box-shadow .19s;
  cursor: pointer;
  text-align: center;
  margin-top: 2px;
  letter-spacing: .01em;
  box-shadow: 0 2px 8px 0 rgba(194,161,75, 0.12);
  position: relative;
}
.btn-primary {
  background: var(--primary);
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--gold);
  color: var(--primary);
  box-shadow: 0 4px 18px var(--gold);
}
.btn-secondary {
  background: var(--gold);
  color: var(--primary);
  border: 2px solid var(--gold);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: var(--gold);
  box-shadow: 0 4px 18px var(--primary);
}

/* LISTS - DEFAULT UL/OL STYLES */
.features ul:not(.feature-grid) li,
.features .content-wrapper ul li {
  position: relative;
  padding-left: 28px;
}
.features ul:not(.feature-grid) li::before,
.features .content-wrapper ul li::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 6px;
  top: 9px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ABOUT + TEAM + IMPACT-NUMBERS CUSTOM STYLES  */
.about-section .team-intro ul li {
  padding-left: 0;
}
.impact-numbers,
.brand-story,
.history-timeline,
.collaborations {
  background: var(--secondary);
  padding: 16px 20px;
  border-radius: 16px;
  color: var(--dark);
  font-family: var(--body-font);
  margin-bottom: 18px;
  width: 100%;
}
.collaborations {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
}
.collaborations img {
  width: 30px;
  filter: drop-shadow(0 0 1px var(--gold));
}

/* BLOG */
.blog-articles {
  margin-bottom: 20px;
  width: 100%;
}
.blog-articles > article {
  min-width: 210px;
  border-left: 4px solid var(--primary);
  transition: border-color .18s, box-shadow .18s;
}
.blog-articles > article:hover {
  border-left: 4px solid var(--gold);
  background: #fff8e6;
}
.category-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.category-filter ul {
  display: flex;
  gap: 13px;
}
.category-filter a {
  padding: 6px 16px;
  border-radius: 18px;
  border: 1px solid var(--gold);
  color: var(--primary);
  font-size: .98rem;
  transition: background .17s, color .17s;
}
.category-filter a:hover,
.category-filter a:focus {
  background: var(--gold);
  color: var(--primary);
  font-weight: 600;
}
.search-bar {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-bar input[type='text'] {
  font-size: 1rem;
  border: 1.5px solid var(--secondary);
  border-radius: 22px;
  padding: 9px 18px;
  transition: border-color .17s;
  background: #fff;
  width: 240px;
  max-width: 90vw;
}
.search-bar input[type='text']:focus {
  border-color: var(--gold);
}

.follow-social-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 1rem;
  color: var(--gold);
}
.follow-social-cta img {
  height: 26px;
  filter: drop-shadow(0 0 1px var(--gold));
}

/* CONTACT, ADDRESS SECTIONS */
.contact-info, .map-embed, .opening-hours {
  background: var(--secondary);
  border-radius: 13px;
  padding: 18px 18px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-direction: column;
}
.contact-info img {
  height: 18px;
  margin-right: 9px;
  vertical-align: bottom;
}
.contact-info a {
  color: var(--primary);
  text-decoration: underline;
}
.opening-hours h3 {
  color: var(--primary);
  font-size: 1.06rem;
  margin-bottom: 6px;
}

/* FOOTER */
footer {
  background: var(--dark);
  color: #fff;
  padding: 42px 0 24px 0;
  border-top: 6px solid var(--gold);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-links a {
  color: var(--gold);
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 600;
  transition: color .16s;
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--secondary);
}
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-links img {
  filter: brightness(0) saturate(100%) invert(70%) sepia(67%) saturate(335%) hue-rotate(19deg) brightness(1.2) contrast(1.14);
  height: 24px;
}
.contact-info {
  color: #ece7e1;
  font-size: .98rem;
  gap: 8px;
  background: none;
}
@media (max-width: 991px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .footer-links {
    margin-bottom: 10px;
  }
}
footer .contact-info a {
  color: var(--gold);
}

/* LEGAL PAGES */
.legal {
  background: var(--light);
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(34,100,85,0.05);
}
.legal h1 {
  color: var(--primary);
}
.legal h2 {
  margin-top: 18px;
}
.legal ul li {
  padding-left: 22px;
  margin-bottom: 8px;
  position: relative;
}
.legal ul li::before {
  content: '';
  position: absolute;
  left: 8px; top: 9px;
  width: 7px; height:7px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

/* THANK YOU PAGE */
.thank-you-hero {
  background: linear-gradient(120deg, #fff 82%, var(--secondary) 100%);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 2px 38px 2px rgba(226, 100, 85, 0.06);
  padding-bottom: 66px;
  margin-bottom: 0;
}

/* RESPONSIVE FLEX ROWS (text-image, etc.) */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

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

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

.card {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

/* MANDATORY: MINIMUM 20PX MARGIN BETWEEN CARDS */
.card, .testimonial-card, .feature-item, .kurs-teaser-cards>div, .course-list>div, .workshop-list>div, .blog-articles>article {
  margin-bottom: 20px;
}

/* ANIMATIONS */
.btn-primary, .btn-secondary {
  transition: background .25s, color .22s, box-shadow .19s;
}
.card, .kurs-teaser-cards > div, .blog-articles > article, .testimonial-card {
  transition: box-shadow .22s, border-color .22s;
}
.cta, .hero, .thank-you-hero {
  transition: background .22s;
}

/* FOCUS STATES FOR ACCESSIBILITY */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px dotted var(--gold);
  outline-offset: 3px;
  background: var(--secondary);
}

/* RESPONSIVE IMAGES AND ELEMENTS */
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  h1, .h1 {
    font-size: 2rem;
  }
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  z-index: 1200;
  background: #212422dd;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 8px 20px 8px;
  gap: 26px;
  font-family: var(--body-font);
  font-size: 1.06rem;
  box-shadow: 0 -2px 30px 0 rgba(34,100,85,.10);
  border-top: 3.5px solid var(--gold);
  animation: bannerIn .4s cubic-bezier(.37,.85,.46,1.06);
}
@keyframes bannerIn {
  from { transform: translateY(100%); opacity: .2; }
  to { transform: translateY(0); opacity: 1;}
}
.cookie-banner .cookie-msg {
  flex: 1 1 480px;
  color: #fff;
  letter-spacing: .01em;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 9px 22px;
  border-radius: 20px;
  font-family: var(--display-font);
  font-size: 1rem;
  border: 2px solid var(--gold);
  background: var(--primary);
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  transition: background .20s, color .17s;
  margin-right: 4px;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--gold);
  color: var(--primary);
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--gold);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: .97rem;
    padding: 16px 5px 15px 7px;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top:0;left:0;width:100vw;height:100vh;
  background: rgba(33,36,34,0.55);
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s cubic-bezier(.4,.52,1,.75);
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.cookie-modal {
  background: #fff;
  color: var(--dark);
  border-radius: 20px;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 10px 30px -4px rgba(34,100,85,0.11);
  width: 98vw;
  max-width: 420px;
  font-family: var(--body-font);
  animation: modalSlideIn .32s cubic-bezier(.69,.22,.32,1.14);
  position: relative;
  z-index: 2000;
}
@keyframes modalSlideIn {
  from { transform: translateY(60px); opacity:0.1; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  color: var(--primary);
  font-family: var(--display-font);
  margin-bottom: 16px;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 26px;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  gap: 17px;
}
.cookie-modal .category-row label {
  font-weight: 600; font-size: 1rem;
  color: var(--primary);
}
.cookie-modal input[type='checkbox'] {
  width: 19px;
  height: 19px;
  accent-color: var(--gold);
}
.cookie-modal .essential {
  color: var(--dark);
  font-size: .99rem;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal button {
  padding: 9px 22px;
  border-radius: 20px;
  font-family: var(--display-font);
  font-size: 1rem;
  border: 2px solid var(--gold);
  background: var(--primary);
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  transition: background .20s, color .17s;
}
.cookie-modal button.cancel {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-modal button.cancel:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--gold);
}

.cookie-modal .close-x {
  position: absolute;
  right: 15px; top:8px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal .close-x:hover {
  color: var(--gold);
}

/* Hide cookie modal scrollbar */
.cookie-modal::-webkit-scrollbar { width: 0px; }

/* UTILITIES */
.d-none { display: none !important; }

/* END */
