/* ZeitEcho Minimalist CSS Theme 2024 */
/* ======================== RESET & BASE =========================== */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFFFFF;
  color: #213347;
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}
img, picture, video {
  max-width: 100%;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #2E4A62;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol {
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 20px;
}
a {
  color: #2E4A62;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E87921;
  outline: none;
}

/* ======================== CONTAINERS & SPACING =================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ========== FLEXBOX MANDATORY PATTERNS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(46,74,98,0.08);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(46,74,98,0.13);
}
.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: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(46,74,98,0.09);
  min-width: 0;
  max-width: 500px;
}
.testimonial-card p {
  color: #213347;
  font-size: 1.05rem;
}
.testimonial-author {
  font-size: 0.95rem;
  color: #2E4A62;
  font-weight: 500;
  opacity: 0.85;
  margin-top: -6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ======================== HEADER & NAV =========================== */
header {
  background: #FFFFFF;
  box-shadow: 0 1px 8px rgba(46,74,98,0.07);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 18px;
}
header img {
  width: 144px;
  height: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-left: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #2E4A62;
  padding: 8px 0;
  opacity: 0.9;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E3E6EB;
  color: #E87921;
}
/* Hide mobile burger by default */
.mobile-menu-toggle {
  background: none;
  font-size: 2.1rem;
  color: #2E4A62;
  border: none;
  cursor: pointer;
  display: none;
  padding: 6px 14px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus {
  background: #E3E6EB;
  outline: none;
  border-radius: 6px;
}
.btn.btn-primary {
  background: #2E4A62;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.22s, box-shadow 0.24s;
  box-shadow: 0 1px 4px rgba(46,74,98,0.09);
  cursor: pointer;
  margin-left: 18px;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background: #E87921;
  color: #fff;
}
.btn.btn-accent {
  background: #E87921;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.22s, box-shadow 0.24s;
  margin-left: 0;
  margin-top: 8px;
  cursor: pointer;
}
.btn.btn-accent:hover, .btn.btn-accent:focus {
  background: #2E4A62;
  color: #fff;
}

.btn {
  display: inline-block;
  background: #F6F7F8;
  color: #2E4A62;
  border: 1px solid #2E4A62;
  border-radius: 6px;
  padding: 8px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  margin-right: 6px;
  margin-bottom: 10px;
  text-align: center;
  cursor: pointer;
}
.btn:hover, .btn:focus {
  background: #E3E6EB;
  color: #E87921;
  outline: none;
}

/* ======================== MOBILE MENU ============================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 30px 20px 30px;
  box-shadow: 0 4px 24px rgba(46,74,98,0.17);
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.6,.2,.1,1), opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #2E4A62;
  background: none;
  border: none;
  align-self: flex-end;
  margin-bottom: 12px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.13s;
}
.mobile-menu-close:focus {
  background: #E3E6EB;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #2E4A62;
  padding: 10px 4px;
  border-radius: 4px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E3E6EB;
  color: #E87921;
}

/* ======================== MAIN LAYOUT ELEMENTS =================== */
.news-teasers, .news-listing, .events-list, .event-highlights, .feature-grid, .local-topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.news-teasers article, .news-listing article, .event-highlights > div, .events-list > div, .feature-grid > div, .local-topic-grid > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(46,74,98,0.09);
  padding: 24px 20px;
  min-width: 230px;
  flex: 1 1 240px;
  transition: box-shadow 0.2s;
}
.news-teasers article:hover, .news-listing article:hover, .event-highlights > div:hover, .events-list > div:hover, .feature-grid > div:hover, .local-topic-grid > div:hover {
  box-shadow: 0 7px 22px rgba(46,74,98,0.14);
}
.category-buttons {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}
.category-navigation {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.category-navigation a {
  color: #2E4A62;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 7px 14px;
  border-radius: 5px;
  transition: background 0.16s;
}
.category-navigation a:hover, .category-navigation a:focus {
  background: #E3E6EB;
  color: #E87921;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  align-items: flex-start;
}

.team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.team-bio {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(46,74,98,0.09);
  padding: 22px 20px;
  flex: 1 1 240px;
}
.editor-message {
  color: #E87921;
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 10px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-accordion h3 {
  cursor: pointer;
  transition: color 0.13s;
}
.faq-accordion h3:hover, .faq-accordion h3:focus {
  color: #E87921;
}

.subscription-details ul, .advertising-info ul, .service-overview ul, .community-initiatives ul {
  margin-bottom: 0;
  margin-top: 4px;
}

.contact-details {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.address-block, .contact-info {
  flex: 1 1 200px;
  min-width: 180px;
  font-size: 1.01rem;
  color: #2E4A62;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.98rem;
}
.map-location {
  margin: 14px 0 14px 0;
  color: #2E4A62;
  background: #E3E6EB;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1rem;
}

.local-selector {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}
.local-selector label {
  font-weight: 600;
  color: #2E4A62;
}
.local-selector select {
  background: #fff;
  border: 1px solid #E3E6EB;
  border-radius: 6px;
  padding: 7px 12px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #213347;
  font-size: 1rem;
}

.event-calendar {
  background: #E3E6EB;
  border-radius: 9px;
  padding: 20px 18px;
  margin-bottom: 22px;
  color: #2E4A62;
}
.filter-options {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.filter-options label {
  color: #2E4A62;
  font-weight: 600;
}
.filter-options select {
  border: 1px solid #E3E6EB;
  background: #fff;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1rem;
  color: #213347;
  font-family: 'Roboto', Arial, sans-serif;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
input[type="email"], input[type="search"] {
  padding: 10px 16px;
  border: 1px solid #E3E6EB;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  flex: 2 1 220px;
  color: #213347;
  background: #fff;
  transition: border 0.14s;
}
input[type="email"]:focus, input[type="search"]:focus {
  border: 1.5px solid #E87921;
  outline: none;
}
button[type="submit"] {
  flex-shrink: 0;
  align-self: flex-start;
} 

/* ======================== FOOTER ========================== */
footer {
  background: #F6F7F8;
  border-top: 1px solid #E3E6EB;
  margin-top: 60px;
  font-size: 0.99rem;
  color: #2E4A62;
  padding-top: 18px;
  padding-bottom: 18px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #2E4A62;
  font-weight: 500;
  opacity: 0.82;
  transition: color 0.16s;
  font-size: 0.96rem;
}
.footer-nav a:hover {
  color: #E87921;
  opacity: 1;
}
address {
  font-style: normal;
  color: #2E4A62;
  font-size: 0.98rem;
}

/* ============ COOKIE CONSENT BANNER & MODAL ============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #fff;
  color: #213347;
  box-shadow: 0 -2px 18px rgba(46,74,98,0.09);
  padding: 26px 18px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  transition: transform 0.32s;
  border-top: 1px solid #E3E6EB;
  font-size: 1.01rem;
}
.cookie-banner .cookie-text {
  flex: 1 1 200px;
  color: #213347;
  font-size: 1.05rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  background: #E3E6EB;
  color: #2E4A62;
  border: none;
  border-radius: 5px;
  padding: 8px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.17s, color 0.17s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: #2E4A62;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #E87921;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  border: 1px solid #2E4A62;
  color: #2E4A62;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E3E6EB;
  color: #E87921;
}
.cookie-btn.settings {
  background: #C25B00;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #2E4A62;
}
.cookie-banner.hidden {
  transform: translateY(120%);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46,74,98,0.19);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 8px 46px rgba(46,74,98,0.17);
  padding: 39px 28px 24px 28px;
  min-width: 315px;
  max-width: 95vw;
  width: 410px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  color: #2E4A62;
  font-size: 1.24rem;
  margin-bottom: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.cookie-category label {
  color: #2E4A62;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #E3E6EB;
  position: relative;
  cursor: pointer;
  transition: background 0.19s;
  border: none;
  appearance: none;
}
.cookie-toggle:checked {
  background: #2E4A62;
}
.cookie-toggle::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(46,74,98,0.11);
  transition: left 0.2s;
}
.cookie-toggle:checked::after {
  left: 23px;
}
.cookie-modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 17px;
  font-size: 1.7rem;
  color: #2E4A62;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.16s;
  border-radius: 5px;
  padding: 3px 7px;
}
.cookie-modal-close:focus {
  background: #E3E6EB;
}

/* ======================== RESPONSIVE/MOBILE ===================== */
@media (max-width: 1280px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 980px) {
  .main-nav {
    gap: 14px;
    margin-left: 7px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .team-section, .news-listing, .feature-grid, .event-highlights, .events-list, .local-topic-grid, .testimonial-slider {
    gap: 14px;
  }
  .card-container {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-nav {
    display: none;
  }
  .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .events-list, .event-highlights, .news-teasers, .news-listing, .feature-grid, .local-topic-grid, .testimonial-slider, .team-section {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .card-content {
    justify-content: flex-start;
    align-items: flex-start;
  }
  .contact-details {
    flex-direction: column;
    gap: 14px;
  }
  .faq-accordion {
    gap: 10px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 520px) {
  .cookie-modal {
    min-width: 0;
    padding: 18px 8px 16px 8px;
    width: 96vw;
  }
  header .container {
    flex-wrap: wrap;
    padding-top: 11px;
    padding-bottom: 11px;
    gap: 10px;
  }
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.1rem; }
}

/* ========== SUBTLE SHADOWS, HIERARCHY, SPACING ENHANCE ====== */
.card, .testimonial-card, .team-bio, .news-teasers article, .news-listing article, .event-highlights > div, .events-list > div, .feature-grid > div, .local-topic-grid > div {
  box-shadow: 0 2px 12px rgba(46,74,98,0.09);
}
.btn, .btn-primary, .btn-accent {
  box-shadow: 0 1px 4px rgba(46,74,98,0.09);
}
input, select {
  box-shadow: 0 0.5px 2px rgba(46,74,98,0.07);
}

/* ======== TRANSITIONS, HOVERS, MICRO-INTERACTIONS ========= */
.btn, .btn-primary, .btn-accent {
  transition: background 0.17s, color 0.2s, box-shadow 0.18s;
}
input[type="email"], input[type="search"], select {
  transition: border 0.17s, box-shadow 0.16s;
}
.nav a, .main-nav a, .footer-nav a, .category-navigation a {
  transition: color 0.13s, background 0.13s;
}

/* ================ ACCESSIBILITY: FOCUS =================== */
a:focus, button:focus, input:focus, select:focus {
  outline: 2px solid #E87921;
  outline-offset: 1px;
}

/* ================ UTILITIES & ADDITIONALS ================ */
.subheadline {
  color: #2E4A62;
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 10px;
  max-width: 500px;
  opacity: 0.85;
}
.category-buttons .btn {
  margin-bottom: 0;
}
.form-message {
  font-size: 0.97rem;
  color: #E87921;
  margin-top: 7px;
}
.text-section ul, .text-section ol {
  margin-bottom: 12px;
  margin-top: 2px;
}
.news-teasers a, .news-listing a {
  font-weight: 500;
  color: #E87921;
  text-decoration: underline;
  transition: color 0.13s;
}
.news-teasers a:hover, .news-listing a:hover {
  color: #2E4A62;
}

/* ========== OVERRIDE FOR MINIMUM MARGIN ========== */
.news-teasers article:not(:last-child), .event-highlights > div:not(:last-child), .events-list > div:not(:last-child), .team-section > div:not(:last-child), .local-topic-grid > div:not(:last-child) {
  margin-bottom: 20px;
}

/* Hide elements by helper classes */
.d-none { display: none !important; }

/* ========== END ZEIT ECHO CSS ========== */
