/* 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #F7FAF7;
  color: #203540;
  -webkit-font-smoothing: antialiased;
  font-family: 'Roboto', Arial, sans-serif;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

/* VARIABLES - FALLBACKS */
:root {
  --color-primary: #203540;
  --color-secondary: #6CBEA7;
  --color-accent: #E5F6F0;
  --color-bg: #F7FAF7;
  --color-heading: #203540;
  --color-text: #35504b;
  --color-card: #FFF;
  --color-footer-bg: #203540;
  --color-footer-text: #E5F6F0;
  --color-btn-text: #fff;
  --color-link: #23785c;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-card: 0 4px 24px 0 rgba(108, 190, 167, 0.10);
  --radius-card: 20px;
  --radius-btn: 24px;
  --transition: all 0.22s cubic-bezier(.55,.15,.5,1);
  --shadow-btn: 0 2px 8px 0 rgba(32, 53, 64, .09);
  --border-input: #B8D4C6;
}

/* TYPOGRAPHY */
h1, .hero h1, .events-hero h1, .team-intro h1, .contact-hero h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.15;
  color: var(--color-heading);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.20;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.22;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-primary);
}
p, li, span, a, strong {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.22rem;
  color: var(--color-secondary);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: .2px;
}
.text-section h2, .text-section h3 {
  margin-top: 22px;
}

/* CONTAINER & LAYOUT */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-card);
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 36px;
  }
}

/* FLEX UTILS */
.card-container, .project-cards, .member-cards, .event-listing-grid, .highlighted-events, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  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 {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: var(--radius-card);
  margin-bottom: 16px;
  box-shadow: 0 2px 12px 0 rgba(32,53,64,0.09);
  border: 1px solid #D3EFE2;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 900px) {
  .card-container, .project-cards, .member-cards, .event-listing-grid, .highlighted-events {
    flex-direction: column;
    gap: 20px;
  }
}

/* HEADER */
header {
  background: var(--color-accent);
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  box-shadow: 0 4px 16px 0 rgba(32,53,64, 0.05);
  margin-bottom: 24px;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}
header a img {
  height: 40px;
  width: auto;
  margin-right: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--color-primary);
  font-size: 1rem;
  transition: background var(--transition);
}
header nav a:hover,
header nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-secondary);
  color: var(--color-btn-text);
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  text-align: center;
  margin-left: 8px;
  outline: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #23785c;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(32,53,64,0.18);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 102;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 2px 6px 0 rgba(32,53,64,0.12);
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #23785c;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(32,53,64,0.98);
  color: var(--color-footer-text);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 32px;
  box-sizing: border-box;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #E5F6F0;
  font-size: 2.6rem;
  position: absolute;
  top: 22px;
  right: 34px;
  cursor: pointer;
  z-index: 201;
  transition: color var(--transition);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: #E5F6F0;
  font-size: 1.36rem;
  padding: 14px 0;
  border-radius: 6px;
  transition: background var(--transition);
  letter-spacing: 1px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (max-width: 900px){
  header .container nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* HERO & SECTION BACKGROUNDS */
.hero, .events-hero, .contact-hero, .team-intro {
  background: linear-gradient(125deg, #E5F6F0 70%, #CDE4D9 100%);
  border-radius: 0 0 56px 56px;
  box-shadow: 0 8px 24px 0 rgba(108,190,167,0.10);
  padding-bottom: 54px;
  margin-bottom: 48px;
}
.hero .container, .events-hero .container, .contact-hero .container, .team-intro .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 340px;
}
.hero .content-wrapper,.events-hero .content-wrapper,.contact-hero .content-wrapper,.team-intro .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
}
.hero .btn-primary, .events-hero .btn-primary {
  margin-top: 18px;
  align-self: flex-start;
}
@media (max-width: 900px){
  .hero, .events-hero, .contact-hero, .team-intro {
    border-radius: 0 0 32px 32px;
    padding-bottom: 26px;
    margin-bottom: 28px;
  }
  .hero .container, .events-hero .container, .contact-hero .container,.team-intro .container {
    min-height: 180px;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 8px;
  }
  .hero .btn-primary, .events-hero .btn-primary {
    margin-top: 10px;
  }
}

/* CARDS & CARD CONTAINERS */
.card, .project-card, .event-card, .member-card, .highlight-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  border: 1px solid #E5F6F0;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.project-card .badge {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 8px;
  padding: 2px 14px;
  font-size: 0.84rem;
  margin-left: 8px;
}
.project-card .badge-finished {
  background: #B8D4C6;
  color: #35504b;
}
.card:hover, .project-card:hover, .event-card:hover, .member-card:hover, .highlight-card:hover {
  box-shadow: 0 8px 36px 0 rgba(32,53,64,0.16);
  transform: translateY(-2px) scale(1.013);
}
.event-card a, .highlight-card a {
  color: var(--color-secondary);
  font-weight: 700;
  font-family: var(--font-display);
  margin-top: 6px;
  font-size: 1rem;
  transition: color var(--transition);
  display: inline-block;
}
.event-card a:hover, .highlight-card a:hover, .about-preview a, .projects-preview a {
  color: #23785c;
  text-decoration: underline;
}
.member-card h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}
.member-card span {
  font-size: 0.97rem;
  color: var(--color-secondary);
  margin-bottom: 4px;
  display: block;
}

/* FEATURES & LISTS */
.features ul, .about-preview ul, .projects-preview ul, .content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.features li, .about-preview ul li, .projects-preview ul li, .content-wrapper ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.01rem;
  line-height: 1.7;
  padding-left: 0;
}
.features li img {
  width: 34px;
  height: 34px;
  margin-right: 3px;
}

/* CTA */
.cta, .about-preview, .projects-preview, .join-us {
  background: #F2F8ED;
  border-radius: 40px;
  box-shadow: 0 2px 8px 0 rgba(108,190,167,0.05);
  margin-bottom: 60px;
  padding: 35px 22px;
}
.cta .btn-primary {
  margin-bottom: 12px;
}

/* EVENT LISTING & HIGHLIGHTS -- Veranstaltungen */
.event-listing-grid, .highlighted-events {
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.past-highlights .testimonials {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
@media (max-width: 900px){
  .event-listing-grid, .highlighted-events, .past-highlights .testimonials {
    flex-direction: column;
    gap: 16px;
  }
}

/* TESTIMONIALS */
.testimonials .testimonial-card {
  width: 100%;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-card);
  border: 1px solid #B8D4C6;
  box-shadow: 0 2px 12px 0 rgba(32,53,64,0.08);
  font-family: var(--font-body);
  margin-bottom: 0 !important;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.06rem;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card span {
  color: #427B69;
  font-weight: 600;
  font-size: 0.99rem;
}

/* FOOTER */
footer {
  margin-top: 80px;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 36px 0 24px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}
footer p {
  color: white;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 16px;
}
footer nav a {
  color: #E5F6F0;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.88;
  transition: background var(--transition), color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: #fff;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #E5F6F0;
  font-size: 0.95rem;
  opacity: 0.88;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
footer p {
  font-size: 0.97rem;
  text-align: center;
  opacity: 0.88;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .footer-contact {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  footer .container {
    align-items: flex-start;
  }
}

/* TEXT SECTION */
.text-section, .about-preview .content-wrapper, .contact-details .text-section {
  margin-bottom: 20px;
}
.text-section p, .about-preview .content-wrapper p, .contact-details .text-section p {
  margin-bottom: 12px;
}

/* MAP SNIPPET */
.map-snippet {
  border-radius: 18px;
  background: #E5F6F0;
  padding: 14px 22px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* THANK YOU PAGE */
.thank-you-message {
  font-size: 1.1rem;
  line-height: 1.6;
  background: #E5F6F0;
  border-radius: 22px;
  padding: 26px 22px;
  margin-bottom: 20px;
  color: var(--color-primary);
  box-shadow: 0 2px 8px 0 rgba(32,53,64,0.08);
}

/* LINKS */
a {
  color: var(--color-link);
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* FORMS - (Contact Info Text Only) */
input, textarea, select {
  border: 1.5px solid var(--border-input);
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 15px;
  color: var(--color-primary);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
}

/* BADGES */
.badge {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 8px;
  font-size: 0.84rem;
  padding: 2px 12px;
  font-family: var(--font-body);
  font-weight: 600;
}
.badge.badge-finished {
  background: #B8D4C6;
  color: #35504b;
}

/* RESPONSIVENESS */
@media (max-width: 700px) {
  h1, .hero h1, .events-hero h1, .team-intro h1, .contact-hero h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  h3 {
    font-size: 1rem;
  }
  .section, .cta, .about-preview, .projects-preview {
    padding: 22px 7px;
  }
  .card, .project-card, .event-card, .member-card, .highlight-card {
    padding: 16px 8px;
  }
  .container {
    padding: 0 6px;
  }
}

/* ORGANIC DECORATIVE SHAPE (OPTIONAL)*/
.section {
  position: relative;
  overflow: visible;
}
.section::before {
  content: "";
  position: absolute;
  top: -28px;
  left: -32px;
  width: 140px;
  height: 64px;
  background: rgba(108,190,167,0.10);
  border-top-right-radius: 66% 60%;
  border-bottom-left-radius: 100% 90%;
  border-bottom-right-radius: 100% 40%;
  z-index: 0;
  pointer-events: none;
}
.section > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 700px) {
  .section::before {
    display: none;
  }
}

/* ANIMATIONS & TRANSITIONS */
.card, .project-card, .event-card, .member-card, .highlight-card, .btn-primary, .mobile-menu, .mobile-menu-toggle {
  transition: box-shadow .15s, transform .19s, background .16s;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #233C2E;
  color: #fff;
  padding: 34px 24px 18px 24px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  box-shadow: 0 -2px 17px 0 rgba(61,81,73,0.10);
  z-index: 1000;
  font-size: 1rem;
  animation: slideUpBanner .32s ease;
}
.cookie-banner span {
  color: white;
}
.cookie-banner div {
  flex-direction: column !important;
}
@keyframes slideUpBanner {
  from { transform: translateY(120%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-btn {
  margin-right: 12px;
  padding: 10px 22px;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.97rem;
  margin-top: 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background:#23785c;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  margin-left: 0;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (max-width: 950px){
  .cookie-banner {
    flex-direction: column;
    gap: 22px;
    font-size: 0.96rem;
    padding: 30px 10px 14px 10px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32,53,64,0.81);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  animation: fadeInModal .33s cubic-bezier(.5,0,.5,1);
}
@keyframes fadeInModal {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: var(--color-bg);
  color: var(--color-primary);
  border-radius: 30px;
  padding: 40px 32px 24px 32px;
  max-width: 440px;
  box-shadow: 0 4px 32px 0 rgba(108,190,167,0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalPop .21s;
}
@keyframes modalPop {
  from { transform: scale(0.9); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.37rem;
  margin-bottom: 14px;
}
.cookie-modal ul {
  margin-bottom: 18px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.03rem;
  gap: 10px;
}
.cookie-switch {
  width: 36px;
  height: 20px;
  background: #B8D4C6;
  border-radius: 10px;
  position: relative;
  margin-right: 8px;
  transition: background var(--transition);
  cursor: pointer;
}
.cookie-switch.active {
  background: var(--color-secondary);
}
.cookie-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left var(--transition);
}
.cookie-switch.active::after {
  left: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal .cookie-btn {
  margin: 0;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-secondary);
  cursor: pointer;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: #23785c;
}
@media (max-width: 600px){
  .cookie-modal {
    padding: 22px 7px 14px 7px;
    max-width: 95vw;
  }
  .cookie-modal h2 {
    font-size: 1.09rem;
  }
}

/* FOCUS STATES */
:focus-visible {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 2px;
}

/* ACCESSIBILITY - HIDE ON CSS if JS set as needed */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

/* SHAPES & ORGANIC FEEL */
.card, .project-card, .event-card, .member-card, .highlight-card {
  border-bottom-left-radius: 26px 38px;
  border-bottom-right-radius: 24px 38px;
}
.section, .cta, .about-preview, .projects-preview, .join-us {
  border-top-right-radius: 55px 60px;
  border-bottom-left-radius: 65px 85px;
  border-bottom-right-radius: 45px 60px;
  border-top-left-radius: 30px 40px;
}

/* ORGANIC SHADOWS*/
.card, .project-card, .event-card, .member-card, .highlight-card, .testimonial-card {
  box-shadow: 0 6px 28px 0 rgba(108,190,167,0.09);
}

/* SPACING BETWEEN CARDS/SECTIONS */
.section:not(:last-child), .cta:not(:last-child), .card:not(:last-child), .project-card:not(:last-child), .event-card:not(:last-child), .member-card:not(:last-child) {
  margin-bottom: 32px;
}

/* SCROLLBAR COLOR (OPTIONAL for organic, fallback safe) */
::-webkit-scrollbar {
  width: 8px;
  background: #E5F6F0;
}
::-webkit-scrollbar-thumb {
  background: #B8D4C6;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}
