/* =====================
   RESET & BASE STYLES
   ===================== */
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 {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #FFFFFF;
  color: #244230;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}

a {
  color: #315C45;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #F6C878;
}

ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.5em;
}

/* Typography */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  color: #244230;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 2px 12px #E5EFDB55;
}
h2 {
  font-size: 2rem;
  color: #315C45;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  color: #F6C878;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  color: #2ca887;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Container & Wrappers */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  width: 100%;
  background: #315C45;
  box-shadow: 0 2px 14px #0002;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 64px;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 18px;
  padding: 10px 0;
}
header img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: #E5EFDB;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.12s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F6C878;
  color: #244230;
}

.cta-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #F6C878;
  color: #244230;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 27px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px #F6C87844, 0 1.5px 8px #315C4533;
  transition: background 0.18s, color 0.2s, transform 0.14s, box-shadow 0.2s;
  margin-left: 12px;
  cursor: pointer;
}
.cta-primary:hover, .cta-primary:focus {
  background: #ffdd66;
  color: #2ca887;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 20px #F6C87877, 0 2px 14px #2ca88733;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #F6C878;
  z-index: 41;
  cursor: pointer;
  margin-left: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.14s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #E5EFDB44;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #315C45;
  transform: translateX(-100%);
  transition: transform 0.40s cubic-bezier(.84,.01,.41,.98);
  z-index: 50;
  padding: 32px 0 0 0;
  box-shadow: 0 0 100px #24423099;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #F6C878;
  font-size: 2.2rem;
  cursor: pointer;
  margin: 8px 20px 16px 0;
  transition: color 0.15s, background 0.13s;
  border-radius: 6px;
  padding: 8px 16px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E5EFDB;
  background: #F6C87833;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 36px;
}
.mobile-nav a {
  color: #F6C878;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.13s, background 0.12s;
  padding: 8px 12px;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #244230;
  background: #F6C878;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 11px;
  }
  .cta-primary {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .header-container {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 820px) {
  .main-nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =============
   SECTIONS
   ============= */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.hero {
  background: #2ca887;
  background: linear-gradient(90deg, #2ca887 0%, #F6C878 100%);
  color: #fff;
  margin-bottom: 60px;
  padding: 60px 0 64px 0;
  box-shadow: 0 6px 30px #FFDD6644, 0 2px 10px #2ca88733;
}
.hero h1 {
  color: #fff;
  text-shadow: 0 4px 18px #f6c87855, 0 2px 4px #24423044;
}
.hero p,
.hero .cta-primary {
  color: #244230;
}
/* Call-to-Action section */
.cta {
  background: #316C8C;
  background: linear-gradient(100deg, #F6C878 20%, #2ca887 96%);
  text-align: center;
  color: #224123;
  margin-bottom: 0;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -2px 20px #E5EFDB55;
}
.cta .cta-primary {
  margin-top: 20px;
  box-shadow: 0 6px 22px #F6C878BB, 0 2px 7px #2ca88734;
}

/* Article/Features Section */
.themenuebersicht,
.features, .feature-grid, .tip-cards {
  background: #E5EFDB;
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 32px 18px;
  box-shadow: 0 2px 18px #2ca88713;
}
.features, .feature-grid, .tip-cards {
  gap: 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 32px 20px 26px 20px;
  border-radius: 16px;
  box-shadow: 0 3px 16px 0 #24423015, 0 8px 22px -12px #2ca88722;
  flex-basis: 300px;
  min-width: 230px;
  max-width: 360px;
  margin-bottom: 20px;
  position: relative;
  border: 3px solid #F6C878;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.12s;
}
.feature:hover {
  transform: translateY(-7px) scale(1.03) rotate(-2deg);
  box-shadow: 0 8px 28px #F6C87899, 0 12px 28px -12px #2ca88755;
  border-color: #2ca887;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 1px;
}
.feature h3 {
  color: #2ca887;
}

.tip-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: flex-start;
}
.tip-card {
  background: #F6C878;
  color: #315C45;
  border-radius: 15px;
  padding: 24px 22px 18px 22px;
  box-shadow: 0 4px 18px #F6C87844, 0 2px 8px #315C4533;
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 320px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.15s, box-shadow 0.14s, background 0.12s;
  font-weight: 500;
}
.tip-card h3, .tip-card h4 {
  color: #244230;
}
.tip-card:hover {
  background: #ffe9b8;
  transform: scale(1.04) rotate(1.5deg) translateY(-3px);
  box-shadow: 0 10px 24px #F6C878BB, 0 2px 10px #2ca88744;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =====================
   ARTICLE LISTINGS
   ===================== */
.artikel-list {
  background: #fff;
  margin-bottom: 64px;
  padding: 40px 0 56px 0;
}
.article-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
}
.article-preview {
  background: #E5EFDB;
  padding: 22px 24px;
  border-radius: 15px;
  box-shadow: 0 2px 14px #315C4511, 0 8px 14px -6px #F6C87822;
  margin-bottom: 20px;
  flex: 1 1 280px;
  max-width: 360px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  border: 2px solid #F6C878;
  transition: box-shadow 0.13s, border-color 0.13s, transform 0.12s;
}
.article-preview:hover {
  box-shadow: 0 8px 28px #2ca88736, 0 8px 22px #F6C87865;
  border-color: #2ca887;
  transform: translateY(-6px) scale(1.03);
}
.article-preview h2,
.article-preview h3 {
  font-size: 1.17rem;
  color: #2ca887;
}
.article-preview a {
  color: #315C45;
}
.article-preview a:hover {
  color: #F6C878;
}
.article-preview span {
  font-size: 0.97rem;
  color: #244230AA;
}

.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  align-items: center;
}
.search-filter-bar input[type="text"] {
  padding: 10px 16px;
  border: 2px solid #F6C878;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.13s, box-shadow 0.12s;
  outline: none;
}
.search-filter-bar input[type="text"]:focus {
  border-color: #2ca887;
  box-shadow: 0 2px 8px #F6C87844;
}
.search-filter-bar select {
  padding: 9px 12px;
  font-size: 1rem;
  border: 2px solid #2ca887;
  border-radius: 8px;
  background: #E5EFDB;
  color: #315C45;
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials {
  background: #E5EFDB;
  border-radius: 30px;
  margin-bottom: 60px;
  box-shadow: 0 2px 18px #2ca88713;
  padding: 48px 16px 38px 16px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 2px 18px #2ca88718, 0 1px 2px #24423011;
  font-size: 1.08rem;
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid #F6C878;
  transition: box-shadow 0.13s, border-left 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px #2ca88730, 0 12px 24px #F6C87833;
  border-left: 6px solid #2ca887;
}
.testimonial-card p {
  color: #244230;
  font-style: italic;
  margin-right: 14px;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #315C45;
  font-weight: 600;
}

/* Ensure readability: dark text on light backgrounds */
.testimonial-card, .article-preview, .footer-contact, .feature, .tip-card {
  color: #244230;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: #315C45;
  color: #E5EFDB;
  width: 100%;
  padding-top: 30px;
  padding-bottom: 20px;
  margin-top: 48px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  font-size: 1rem;
  color: #F6C878;
  padding: 4px 0;
  border-radius: 5px;
  transition: background 0.13s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #244230;
  background: #F6C878;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-contact img {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-right: 7px;
}
.footer-contact a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.15s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #F6C878;
}

/* ========================
   TYPOGRAPHY + CONTENT
   ======================== */
p {
  margin-bottom: 12px;
}

strong, b {
  font-weight: 700;
  color: #315C45;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* Card containers (flex patterns) */
.card-container, .feature-grid, .tip-cards, .article-preview-grid, .footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}

/* ============
   LEGAL PAGES
   ============ */
.legal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 18px #24423012;
  margin-bottom: 60px;
  padding: 48px 18px 36px 18px;
}
.legal h1, .legal h2, .legal h3 {
  color: #2ca887;
}

/* General utility */
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }

/* ======================
   RESPONSIVE BREAKPOINTS
   ====================== */
@media (max-width: 1000px) {
  .feature-grid, .article-preview-grid, .tip-cards, .footer-wrapper {
    gap: 16px;
  }
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .feature, .tip-card, .article-preview {
    min-width: 140px;
    padding: 18px 10px;
  }
  .testimonial-card {
    padding: 16px 10px;
    font-size: 0.98rem;
  }
}
@media (max-width: 660px) {
  .header-container {
    gap: 5px;
  }
  .container {
    padding: 0 3vw;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 570px) {
  h1 {
    font-size: 1.4rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }
  .feature, .tip-card, .article-preview {
    min-width: 90vw;
    max-width: 100vw;
    padding: 12px 6px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .section, section {
    padding: 24px 4vw;
    margin-bottom: 32px;
  }
  .hero {
    padding: 30px 0 42px 0;
  }
  .legal {
    padding: 16px 4vw 22px 4vw;
  }
}

/* ====================
   COOKIE BANNER/MODAL
   ==================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: #244230;
  color: #fff;
  padding: 22px 14px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
  box-shadow: 0 -4px 30px #2ca88777, 0 -2px 10px #F6C87855;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  animation: slideUpBanner 0.85s cubic-bezier(.84,.01,.41,.98);
}
@keyframes slideUpBanner {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 9px 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.01rem;
  cursor: pointer;
  background: #F6C878;
  color: #244230;
  margin-right: 4px;
  transition: background 0.16s, color 0.12s, transform 0.13s;
  box-shadow: 0 3px 14px #F6C87899;
}
.cookie-banner .cookie-settings {
  background: #2ca887;
  color: #fff;
  box-shadow: 0 2px 10px #2ca88755;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #ffe9b8;
  color: #2ca887;
  transform: translateY(-1.5px) scale(1.03);
}
.cookie-banner .cookie-settings:hover, 
.cookie-banner .cookie-settings:focus {
  background: #244230;
  color: #F6C878;
}

/* Cookie Modal */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(37,75,50,0.56);
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.27s;
}
#cookie-modal.open {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #244230;
  border-radius: 18px;
  max-width: 98vw;
  width: 380px;
  box-shadow: 0 8px 44px #F6C87877, 0 2px 8px #2ca88722;
  padding: 34px 27px 24px 27px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: popInModal 0.4s cubic-bezier(.62,-0.12,.45,1.09);
}
@keyframes popInModal {
  from { transform: scale(0.92) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  color: #2ca887;
  font-size: 1.18rem;
  margin-bottom: 7px;
}
.cookie-modal-content .cookie-category {
  margin-bottom: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cookie-modal-content label {
  color: #315C45;
  font-size: 1rem;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: #2ca887;
  width: 19px; height: 19px;
}
.cookie-modal-content .category-desc {
  font-size: 0.91rem;
  color: #315C45bb;
}
/* Modal close button */
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.46rem;
  color: #2ca887;
  position: absolute;
  top: 14px; right: 17px;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.18s, color 0.12s;
  padding: 5px 9px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F6C87833;
  color: #244230;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-modal-actions button {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #F6C878;
  color: #244230;
  margin-right: 3px;
  transition: background 0.15s, color 0.14s, transform 0.13s;
  box-shadow: 0 2px 8px #f6c87855;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #2ca887;
  color: #fff;
  transform: scale(1.03) translateY(-2px);
}

/* =====================
   ANIMATIONS
   ===================== */
@media (prefers-reduced-motion: no-preference) {
  a, button, input, select, .feature, .tip-card, .testimonial-card, .card, .article-preview {
    transition: box-shadow 0.14s, background 0.13s, color 0.13s, border 0.16s, transform 0.13s;
  }
}

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

/* ============
   PRINT STYLES
   ============ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, #cookie-modal {
    display: none !important;
  }
}

/* ==============================
   VIBRANT / ENERGETIC OVERRIDES
   =============================== */

body {
  background: #fff;
}
section, .section, .features, .themenuebersicht, .about, .team, .why-us, .artikel-list, .legal {
  box-shadow: 0 4px 22px #2ca8870a, 0 1.5px 9px #e5efdb09;
}

/* Extra micro-interactions for cards */
.card, .article-preview, .feature, .tip-card {
  will-change: transform, box-shadow;
}

/* Dynamic visual cues */
.feature:before, .tip-card:before {
  content: '';
  display: block;
  position: absolute;
  left: 14px;
  top: 12px;
  width: 15px; height: 15px;
  border-radius: 60%;
  background: #2ca88766;
  filter: blur(3px);
  z-index: 0;
  pointer-events: none;
}
.tip-card:before {
  background: #F6C87877;
  left: 9px; top: 6px;
  width: 12px; height: 12px;
}

/* Utility: visually remove text visually (for a11y) */
.visually-hidden {
  position: absolute;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
