/* ===== CSS RESET & BASE STYLES ===== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #22313a;
  background: #F7FAFC;
  line-height: 1.6;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #2A9D8F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #264653;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}
strong {
  font-weight: 700;
}

/* ===== BRANDING FONTFACES ===== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #264653;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.15rem;
  color: #618097;
  margin-bottom: 25px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}

/* ===== CONTAINERS & LAYOUTS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(38,70,83, 0.06);
}

.text-section,
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.text-section ul, .text-section ol {
  margin-bottom: 10px;
}
.text-section p,
.text-section ul {
  margin-bottom: 10px;
  font-size: 1rem;
}

.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* ===== FEATURE & CARD GRIDS ===== */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card-container {
  margin-bottom: 32px;
}
.card, .feature-item {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(38,70,83, 0.08);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s;
  border: 1px solid #E2E8F0;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 3px 18px -3px rgba(42,157,143, 0.15), 0 1.5px 8px 0 rgba(38,70,83, 0.09);
  border-color: #2A9D8F;
}
.feature-item {
  flex-basis: 310px;
  min-width: 220px;
  background: #F3F7F9;
  border: 1px solid #E0E6EB;
}
.feature-item img {
  width: 48px;
  height: 48px;
}

.article-list, .workshop-list, .service-list, .quick-facts ul, .field-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}

.newsletter-form, .newsletter-teaser {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #EFF2F6;
  border-radius: 10px;
  padding: 18px 24px;
  margin-top: 8px;
  width: 100%;
  box-shadow: 0 0.5px 2px 0 rgba(38,70,83,.06);
}

/* ===== PRICING & STYLES ===== */
.service-list li, .workshop-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  background: #f8fbfd;
  border-radius: 8px;
  padding: 15px 18px;
  border: 1px solid #EBEEF0;
}
.service-price {
  color: #2A9D8F;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 2px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  margin: 18px 0 20px 0;
  background: #f4f8fB;
  border-left: 5px solid #2A9D8F;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(38,70,83,0.08);
  font-size: 1.1rem;
  color: #22313a;
}
.testimonial-card p {
  font-style: italic;
  color: #22313a;
  margin-bottom: 4px;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 15px 16px;
    font-size: 1rem;
  }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #264653;
  padding: 0;
  box-shadow: 0 2px 10px 0 rgba(38,70,83,0.08);
  position: relative;
  z-index: 200;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
header a img {
  height: 42px;
  width: auto;
  margin-right: 18px;
}
.main-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.main-navigation a {
  color: #F7FAFC;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: color 0.18s;
  padding: 4px 2px;
}
.main-navigation a:hover, .main-navigation a:focus {
  color: #F4A261;
}
.cta-btn {
  display: inline-block;
  background: #2A9D8F;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  padding: 11px 32px;
  transition: background 0.2s, box-shadow 0.18s, color 0.2s;
  box-shadow: 0 2px 10px 0 rgba(42,157,143,0.08);
  cursor: pointer;
  margin-left: 24px;
  white-space: nowrap;
}
.cta-btn:hover, .cta-btn:focus {
  background: #264653;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(38,70,83,0.10);
  outline: none;
}

/* Burger Button Style */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.4rem;
  line-height: 1;
  padding: 5px 8px;
  margin-left: 10px;
  cursor: pointer;
  z-index: 210;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus {
  color: #F4A261;
  outline: 2px solid #F4A261;
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 1020px) {
  .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,70,83, 0.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(.77,.2,.05,1.0);
  padding: 0;
  /* Hidden by default */
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.3rem;
  position: absolute;
  top: 22px;
  right: 26px;
  cursor: pointer;
  z-index: 10001;
  padding: 4px 10px;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F4A261;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 80px;
  width: 100%;
  gap: 4px;
  padding-left: 22px;
  padding-right: 22px;
}
.mobile-nav a {
  color: #fff;
  padding: 15px 0;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.16s, background 0.16s;
  border-radius: 5px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F4A261;
  background: rgba(42,157,143,0.10);
}

/* Hide burger button on desktop */
@media (min-width: 1021px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===== FOOTER ===== */
footer {
  background: #22313a;
  color: #F7FAFC;
  padding: 40px 0 18px 0;
  margin-top: 40px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}
.footer-mainnav nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-mainnav nav a {
  color: #F7FAFC;
  font-weight: 500;
  transition: color 0.16s;
  font-size: 1rem;
}
.footer-mainnav nav a:hover, .footer-mainnav nav a:focus {
  color: #2A9D8F;
}
.footer-contact {
  font-size: 1rem;
}
.footer-contact a {
  color: #2A9D8F;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
  margin-top: 10px;
}
.footer-legal a {
  color: #B8C6D2;
  transition: color 0.18s;
}
.footer-legal a:hover, .footer-legal a:focus {
  color: #F4A261;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 12px;
}
.footer-social img {
  width: 32px;
  height: 32px;
  transition: filter 0.17s, opacity 0.17s;
  opacity: 0.82;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: drop-shadow(0 2px 6px #2A9D8F80);
  opacity: 1;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .footer-social {
    margin-bottom: 0;
  }
}

/* ===== CONTACT DETAILS (KONTAKT) ===== */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 15px;
}
.address-details, .opening-hours, .email-link {
  background: #F3F7F9;
  border: 1px solid #E0E6EB;
  border-radius: 10px;
  padding: 18px 22px;
  min-width: 210px;
  flex-grow: 1;
  box-shadow: 0 0.5px 2px 0 rgba(38,70,83,.08);
}
.email-link a {
  color: #2A9D8F;
}

@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .contact-details {
    flex-direction: column;
    gap: 18px;
  }
}

/* ===== BUTTONS ===== */
button, .cta-btn {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #22313a;
  color: #fff;
  width: 100vw;
  box-shadow: 0 -2px 16px 0 rgba(38,70,83,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 20px 16px;
  font-size: 1.04rem;
  transition: transform 0.45s cubic-bezier(.77,.2,.05,1.0),opacity 0.28s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner__text {
  margin-bottom: 16px;
  color: #F7FAFC;
  text-align: center;
  max-width: 630px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.cookie-btn {
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 22px;
  margin-top: 4px;
  box-shadow: 0 1.5px 6px 0 rgba(42,157,143, 0.07);
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: #2A9D8F;
  color: #fff;
}
.cookie-btn.reject {
  background: #9a5555;
  color: #fff;
}
.cookie-btn.settings {
  background: #F4A261;
  color: #22313a;
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.08);
  outline: none;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3050;
  transform: translate(-50%, -50%) scale(0.93);
  background: #fff;
  color: #22313a;
  border-radius: 14px;
  box-shadow: 0 5px 32px 0 rgba(38,70,83,0.22);
  padding: 35px 30px 25px 30px;
  min-width: 320px;
  max-width: 94vw;
  max-height: 94vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s, transform 0.34s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal__header {
  font-size: 1.23rem;
  color: #264653;
  margin-bottom: 10px;
  font-weight: 700;
}
.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 19px;
  color: #22313a;
  background: transparent;
  font-size: 1.7rem;
  border: none;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #2A9D8F;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-bottom: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  accent-color: #2A9D8F;
  width: 19px;
  height: 19px;
  margin-right: 7px;
}
.cookie-category--essential label {
  font-style: italic;
  font-weight: 600;
  color: #22313a;
}
.cookie-modal__actions {
  display: flex;
  gap: 19px;
  margin-top: 18px;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 16px 8px 12px 8px;
    min-width: 90vw;
    font-size: 1rem;
  }
  .cookie-modal__header {
    font-size: 1.05rem;
  }
}

/*==== ANIMATION UTILITIES ====*/
.opening {
  animation: fadeIn 0.55s cubic-bezier(.39,.575,.565,1.000);
}
@keyframes fadeIn {
  0% {opacity:0;transform:translateY(20px);}
  100% {opacity:1;transform:translateY(0);}
}

/* ===== RESPONSIVE & SPACING UTILITIES ===== */
@media (max-width: 1020px) {
  .feature-grid, .card-container, .content-grid {
    gap: 16px;
  }
  .section {
    padding: 26px 8px;
    margin-bottom: 40px;
  }
}
@media (max-width: 910px) {
  .section {
    padding: 18px 3px;
  }
  .feature-item, .card {
    padding: 16px 10px;
  }
  h1 {
    font-size: 1.45rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
}
@media (max-width: 650px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature-item {
    min-width: unset;
    width: 100%;
    padding: 12px 9px;
  }
}

/* ==== CARD-LIKE COMPONENTS ==== */
.featured-story, .quick-facts, .field-highlights, .participant-feedback {
  background: #f8fbfd;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 17px 22px;
  margin-bottom: 20px;
}
.featured-story h3, .quick-facts h4, .field-highlights h4 {
  margin-bottom: 6px;
}

/* ==== MICRO-EFFECTS ==== */
.card, .feature-item, .testimonial-card, .section, .newsletter-form, .newsletter-teaser, .address-details, .opening-hours, .email-link {
  transition: box-shadow 0.18s, border-color 0.17s;
}

/* --- For focus visible accessibility in cards and major controls --- */
.card:focus-within,
.feature-item:focus-within,
.cta-btn:focus,
.cookie-btn:focus,
.mobile-menu-close:focus,
.mobile-menu-toggle:focus {
  outline: 2px solid #2A9D8F;
  outline-offset: 2px;
}

/* ==== MINIMUM GAPS BETWEEN ALL MAJOR BLOCKS ==== */
section + section, .card-container > .card + .card, .feature-grid > .feature-item + .feature-item, .testimonial-card + .testimonial-card, .newsletter-form + .cta-btn {
  margin-top: 24px;
}

/* ===== PRINT STYLES (MINIMAL) ===== */
@media print {
  body, header, main, section, .container {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .cta-btn, .main-navigation, .mobile-menu, .footer-social, .cookie-banner, .cookie-modal { display: none !important; }
}

/* ===== ERROR/EMPTY STATE UTILITIES ===== */
.state-empty, .state-error {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #B0B7C3;
  font-size: 1.18rem;
  padding: 18px;
}
