/* --- CSS RESET & BASE STYLES --- */
*, *::before, *::after { box-sizing: border-box; }
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 { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline; }
article, aside, details, figcaption, figure, footer, header, main, nav, section, summary { display: block; }
body { line-height: 1.5; background-color: #FAFBFC; color: #203264; min-height: 100vh; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; }
a { color: #167F7F; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #203264; outline: none; }
ul, ol { margin-left: 20px; margin-bottom: 16px; }
ul li, ol li { margin-bottom: 8px; }
img { max-width: 100%; display: block; border-radius: 6px; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', 'Roboto', Arial, sans-serif; font-weight: 700; color: #203264; line-height: 1.15; letter-spacing: -0.5px; }
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.12rem; margin-bottom: 8px; font-weight: 600; }
p, blockquote { font-size: 1rem; color: #34405a; margin-bottom: 16px; }
blockquote { font-style: italic; color: #203264; margin-bottom: 10px; padding-left: 16px; border-left: 3px solid #FFD447; background: #F6F7F8; border-radius: 3px; }
strong { font-weight: 700; color: #167F7F; }
em { font-style: italic; }
table { border-collapse: collapse; width: 100%; background: #FFF; box-shadow: 0 2px 6px 0 rgba(32, 50, 100, 0.04); border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
thead th { background: #F4F7FA; color: #203264; font-weight: 700; font-family: 'Montserrat', Arial, sans-serif; font-size: 1rem; padding: 18px 14px; }
td, th { border-bottom: 1px solid #E6E8EB; padding: 14px 10px; text-align: left; font-size: 1rem; }
tbody tr:last-child td { border-bottom: none; }

/* --- CONTAINERS AND SECTION SPACING --- */
.container { width: 100%; max-width: 1110px; margin: 0 auto; padding: 0 18px; }
.content-wrapper { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.section { margin-bottom: 60px; padding: 40px 20px; background: inherit; border-radius: 14px; }

/* --- NAVIGATION --- */
header { background: #FFF; box-shadow: 0 2px 10px 0 rgba(32, 50, 100, 0.04); position: sticky; top: 0; z-index: 100; }
.main-nav { display: flex; align-items: center; gap: 30px; justify-content: flex-start; padding: 20px 0; }
.main-nav > a { font-family: 'Montserrat', Arial, sans-serif; font-size: 1rem; color: #203264; position: relative; padding: 8px 6px; border-radius: 6px; transition: background 0.2s, color 0.2s; }
.main-nav > a:hover, .main-nav > a:focus { background: #F4F7FA; color: #167F7F; }
.main-nav > a.cta-btn, .main-nav > a.cta-btn:visited { margin-left: 20px; background: #167F7F; color: #FFF !important; font-weight: 700; font-size: 1rem; padding: 9px 22px; border-radius: 8px; box-shadow: 0 2px 8px 0 rgba(32,50,100,0.08); transition: background 0.2s, box-shadow 0.2s; }
.main-nav > a.cta-btn:hover, .main-nav > a.cta-btn:focus { background: #203264; color: #FFD447 !important; box-shadow: 0 4px 14px 0 rgba(22,127,127,0.10); }
.main-nav > a img { height: 40px; margin-right: 8px; vertical-align: middle; }

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle { display: none; position: absolute; top: 18px; right: 22px; background: #167F7F; color: #FFF; border: none; font-size: 2rem; width: 46px; height: 46px; border-radius: 10px; align-items: center; justify-content: center; z-index: 201; transition: background 0.2s; cursor: pointer; }
.mobile-menu-toggle:active, .mobile-menu-toggle:focus { background: #203264; }
.mobile-menu { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(244,247,250, 0.96); box-shadow: 0 0 40px 0 rgba(32, 50, 100, 0.08); z-index: 205; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(.7,.3,.2,.9); pointer-events: none; opacity: 0; }
.mobile-menu.open { transform: translateX(0); pointer-events: auto; opacity: 1; }
.mobile-menu-close { background: none; border: none; font-size: 2rem; color: #203264; position: absolute; top: 16px; right: 24px; cursor: pointer; border-radius: 8px; width: 44px; height: 44px; transition: background .2s; z-index: 210; }
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #F4F7FA; }
.mobile-nav { margin-top: 90px; display: flex; flex-direction: column; width: 100%; gap: 10px; }
.mobile-nav a { font-size: 1.1rem; font-weight: 500; color: #203264; padding: 18px 36px; border-radius: 0; border-bottom: 1px solid #E6E8EB; width: 100%; display: block; transition: background 0.18s, color 0.18s; }
.mobile-nav a:hover, .mobile-nav a:focus { background: #FFD447; color: #167F7F; }

@media (max-width: 990px) {
  .main-nav { gap: 18px; }
  .main-nav > a { font-size: .98rem; }
}

@media (max-width: 880px) {
  .main-nav > a:not(:first-child) { display: none; }
  .main-nav > a.cta-btn { display: none; }
  .main-nav > a img { margin-right: 0; }
}

@media (max-width: 880px) {
  .mobile-menu-toggle { display: flex; }
}

/* --- HERO, CONTENT & SECTION LAYOUTS --- */
section { margin-bottom: 60px; padding: 40px 20px; background: #FFF; border-radius: 18px; box-shadow: 0 2px 18px 0 rgba(32, 50, 100, 0.05); } /* as per MANDATORY */
section .container { padding: 0; }

.text-section { display: flex; flex-direction: column; gap: 14px; font-size: 1rem; color: #34405a; margin-bottom: 8px; }
.team-photo-placeholder, .map-placeholder { display: flex; align-items: center; justify-content: center; background: #F6F7F8; color: #C2C9D6; border: 2px dashed #D8DEE9; border-radius: 14px; min-height: 170px; margin-bottom: 10px; font-size: 1.1rem; }
.team-photo-placeholder { min-height: 140px; font-weight: 600; }
.map-placeholder { min-height: 120px; font-weight: 600; }

/* --- FLEX LAYOUTS AS MANDATED --- */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; border-radius: 12px; box-shadow: 0 2px 10px 0 rgba(32,50,100,0.04); background: #FFF; }
.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; background: #FAFBFC; border-radius: 14px; margin-bottom: 20px; box-shadow: 0 2px 10px 0 rgba(32,50,100,0.04); flex-direction: row; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.feature-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-start; margin-bottom: 20px; }
.feature-grid > div {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 24px 18px;
  background: #F6F7F8;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 8px 0 rgba(32, 50, 100, 0.03);
  transition: box-shadow .19s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 18px 0 rgba(22,127,127,0.10);
}
.service-cards { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.service-card {
  flex: 1 1 260px;
  min-width: 220px;
  background: #F6F7F8;
  border-radius: 14px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px 0 rgba(32, 50, 100, 0.03);
  transition: box-shadow .19s, background .17s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 6px 18px 0 rgba(22,127,127,0.10);
  background: #FFF;
}
.team-list { display: flex; flex-wrap: wrap; gap: 24px; }
.team-member {
  flex: 1 1 250px;
  min-width: 180px;
  border-radius: 11px;
  background: #F6F7F8;
  padding: 18px 16px;
  box-shadow: 0 2px 6px 0 rgba(32,50,100,0.03);
  margin-bottom: 8px;
}
.discovery-list { display: flex; flex-wrap: wrap; gap: 21px; margin-bottom: 22px; }
.discovery-story {
  flex: 1 1 260px;
  min-width: 210px;
  background: #F6F7F8;
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 1px 4px 0 rgba(32,50,100,0.03);
  margin-bottom: 4px;
}
.workshop-list { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.workshop-list > div {
  flex: 1 1 210px;
  min-width: 180px;
  background: #F7F9FB;
  border-radius: 11px;
  padding: 16px 12px;
  box-shadow: 0 1px 4px 0 rgba(32,50,100,0.02);
  margin-bottom: 6px;
}
.short-articles { background: #FFF7E0; padding: 14px 14px; border-radius: 9px; margin-bottom: 12px; }

/* --- TESTIMONIALS STYLING --- */
.testimonial-card blockquote { color: #203264; font-size: 1.02rem; line-height: 1.6; margin-bottom: 5px; background: inherit; border: none; padding-left: 0; }
.testimonial-card > div { color: #167F7F; font-weight: 600; font-size: 1.1rem; margin-bottom: 0; }
.testimonial-card strong { color: #203264; margin-right: 5px; }
.testimonial-card { border-left: 4px solid #FFD447; background: #F4F7FA; box-shadow: 0 2px 10px 0 rgba(32,50,100,.06); color: #203264; }

/* --- CTA BUTTON --- */
.cta-btn, .cta-btn:visited {
  display: inline-block;
  background: #FFD447;
  color: #203264 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 11px;
  box-shadow: 0 2px 12px 0 rgba(32,50,100,0.10);
  margin-top: 12px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #167F7F;
  color: #FFF !important;
  box-shadow: 0 4px 18px 0 rgba(22,127,127,0.10);
}

/* --- FOOTER STYLING --- */
footer { background: #F4F7FA; border-top: 1px solid #E6E8EB; margin-top: 60px; padding: 38px 0 16px 0; }
.footer-main-nav, .footer-nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 18px; margin-top: 6px; margin-bottom: 2px; }
.footer-main-nav a, .footer-nav a {
  color: #203264;
  font-size: .93rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 6px 7px;
  border-radius: 5px;
  transition: background 0.19s, color 0.19s;
}
.footer-main-nav a:hover, .footer-nav a:hover, .footer-main-nav a:focus, .footer-nav a:focus {
  color: #167F7F;
  background: #FFD447;
}
footer .container { padding-top: 0; }
footer .content-wrapper { display: flex; flex-wrap: wrap; gap: 34px; align-items: flex-start; justify-content: space-between; }
footer .text-section { flex: 2 1 220px; }
footer .text-section img { height: 42px; margin-bottom: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer ul li { margin-bottom: 8px; color: #34405a; font-size: .98rem; }
footer .social-media { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
footer .social-media a img { width: 28px; height: 28px; filter: grayscale(60%); opacity: 0.8; transition: opacity 0.2s, filter 0.2s; }
footer .social-media a:hover img, footer .social-media a:focus img { filter: none; opacity: 1; }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF;
  box-shadow: 0 -3px 18px 0 rgba(32,50,100,0.10);
  border-top: 2px solid #FFD447;
  padding: 20px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1200;
  align-items: flex-start;
  animation: slideUpCookie 0.7s cubic-bezier(.6,.3,.3,.8);
}
@keyframes slideUpCookie { from { transform: translateY(80px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner p {font-size: 1rem; color: #203264; }
.cookie-banner .cookie-btns { display: flex; flex-direction: row; gap: 15px; }
.cookie-btn, .cookie-btn:visited {
  padding: 10px 22px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  background: #167F7F;
  color: #FFF;
  box-shadow: 0 1px 10px 0 rgba(22,127,127,0.045);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.cookie-accept { background: #167F7F; }
.cookie-btn.cookie-accept:hover, .cookie-btn.cookie-accept:focus { background: #203264; color: #FFD447; }
.cookie-btn.cookie-reject { background: #FFF; color: #167F7F; border: 2px solid #167F7F; }
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus { background: #FFD447; color: #203264; }
.cookie-btn.cookie-settings { background: #FFD447; color: #203264; }
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus { background: #167F7F; color: #FFF; }

.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; width:100vw; height:100vh;
  background: rgba(32,50,100,0.22);
  z-index: 1300;
  display: flex; align-items: center; justify-content: center;
}
.cookie-modal {
  background: #FFF;
  border-radius: 16px;
  max-width: 420px;
  width: 92vw;
  box-shadow: 0 2px 30px 0 rgba(32,50,100,0.13);
  padding: 32px 24px 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  animation: fadeInCookieModal 0.6s cubic-bezier(.6,.3,.3,.85);
}
@keyframes fadeInCookieModal { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.cookie-modal-close {
  position: absolute; top: 12px; right: 16px; border: none;
  background: none; font-size: 1.7rem; cursor: pointer;
  color: #203264;
  border-radius: 6px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: #F4F7FA; }
.cookie-modal h3 { font-size: 1.15rem; margin-bottom: 6px; color: #167F7F; font-weight: 700; }
.cookie-modal .cookie-categories { display: flex; flex-direction: column; gap: 8px; }
.cookie-modal .cookie-category { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.cookie-modal .cookie-category input[type=checkbox] {
  accent-color: #167F7F;
  width: 19px;
  height: 19px;
}
.cookie-modal .cookie-category.essential input[type=checkbox] { display: none; }
.cookie-modal .cookie-category.essential label::after {
  content: '(immer aktiv)'; color: #6CA39C; font-size: 0.97rem; margin-left: 6px;
}

/* --- GENERAL ANIMATIONS --- */
.cta-btn, .service-card, .feature-grid > div, .testimonial-card, .team-member {
  transition: box-shadow 0.18s, background 0.22s, transform 0.14s;
}
.cta-btn:active, .service-card:active, .feature-grid > div:active {
  transform: scale(0.98);
}

/* --- SPACING AND CARD ENFORCEMENTS --- */
.card, .testimonial-card, .feature-grid > div, .service-card, .team-member, .discovery-story, .workshop-list > div {
  margin-bottom: 20px;
}
section .card-container > *, section .feature-grid > *, section .service-cards > *, section .team-list > *, section .discovery-list > *, section .workshop-list > * {
  margin-right: 0;
  margin-left: 0;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  html { font-size: 15px; }
  section, .section { padding: 24px 7px; margin-bottom: 34px; }
  .main-nav { flex-direction: row; gap: 10px; justify-content: flex-start; padding: 16px 0; }
  .content-grid, .feature-grid, .team-list, .discovery-list, .card-container, .service-cards, .workshop-list { flex-direction: column !important; gap: 16px !important; }
  .text-image-section { flex-direction: column !important; gap: 18px !important; align-items: stretch; }
  .testimonial-card { flex-direction: column !important; gap: 10px !important; align-items: flex-start !important; }
  .content-wrapper { gap: 16px !important; }
  .footer-main-nav, .footer-nav { flex-direction: column !important; gap: 7px !important; }
  footer .content-wrapper { flex-direction: column !important; align-items: flex-start; gap: 18px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  h3, h4 { font-size: 1.11rem; }
  .cta-btn, .cookie-btn, .cookie-btns .cookie-btn { font-size: 1rem; padding: 12px 16px; }
  section, .section { padding: 16px 0; }
}

/* --- ACCESSIBILITY & FOCUS --- */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid #FFD447;
  outline-offset: 1px;
}

/* --- PRINT HELPER (OPTIONAL) --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body * { background: #FFF !important; color: #000 !important; }
  section, .section, .container { box-shadow: none !important; }
}

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

/* --- END --- */
