/* ========== CSS 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;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.4;
  color: #13324c;
  background: #F6F7EB;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}
a {
  color: #22577A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #86C232;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ========== VARIABLE FALLBACKS ========== */
:root {
  --brand-primary: #22577A;
  --brand-secondary: #86C232;
  --brand-accent: #F6F7EB;
  --brand-dark: #13324c;
  --brand-yellow: #FFE156;
  --brand-pink: #FF69B4;
  --brand-orange: #FFA552;
  --font-display: 'Montserrat', 'Comic Sans MS', cursive, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ========== TYPOGRAPHY ========== */
h1, .hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.3rem;
  color: var(--brand-primary);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--brand-secondary);
  margin-bottom: 18px;
}
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, ul li, ol li {
  font-size: 1rem;
  color: var(--brand-dark);
  line-height: 1.6;
  margin-bottom: 12px;
}
strong {
  font-weight: bold;
}

/* ========== LAYOUT CONTAINERS & SPACING ========== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #ffffffcc;
  border-radius: 32px;
  box-shadow: 0 0 24px 0 rgba(34, 87, 122, 0.08), 0 4px 16px 0 rgba(134, 194, 50,.09);
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.feature-grid, .blog-teaser-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin: 28px 0 0 0;
}
.feature-grid > div, .blog-teaser-list article {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 6px 16px rgba(34, 87, 122, 0.09);
  padding: 30px 22px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: transform 0.13s, box-shadow 0.19s;
}
.feature-grid > div:hover,
.blog-teaser-list article:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: 0 10px 32px 2px rgba(134, 194, 50, 0.11);
}

.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 40%;
  background: #f3ffd2;
  padding: 8px;
  transition: background 0.25s;
}
.feature-grid > div:hover img {
  background: #FFE156;
}

.blog-teaser-list article h3 a {
  color: var(--brand-pink);
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.blog-teaser-list article h3 a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.featured-article {
  background: var(--brand-yellow);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 22px 0 12px 0;
  box-shadow: 0 2px 8px #ffe15666;
  font-family: var(--font-display);
}
.featured-article h3 {
  color: #ce2a79;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 8px 0;
  flex-wrap: wrap;
}
.category-filters a {
  background: var(--brand-pink);
  color: #fff;
  border-radius: 20px;
  padding: 5px 17px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  transition: background 0.18s, transform 0.13s;
}
.category-filters a:hover {
  background: var(--brand-secondary);
  color: #13324c;
  transform: scale(1.08) rotate(-2deg);
}

/* ==== HERO STYLES ==== */
.hero {
  background: linear-gradient(90deg, #F6F7EB 54%, #ffe15624 100%), var(--brand-accent);
  border-bottom: 6px dashed #FFE156;
  padding-top: 54px;
  padding-bottom: 54px;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.18rem;
  color: var(--brand-dark);
  margin-bottom: 16px;
  font-weight: 500;
}
.hero .cta-primary {
  font-size: 1.16rem;
  margin-top: 8px;
}

/* ==== BUTTONS AND CTAs ==== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  background: var(--brand-secondary);
  color: #13324c;
  padding: 14px 32px;
  border-radius: 36px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px #c0e885cc;
  transition: background 0.19s, color 0.16s, transform 0.15s;
  text-shadow: 0 2px 8px #f7ffd260;
  margin-bottom: 0;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--brand-pink);
  color: #fff;
  transform: translateY(-3px) scale(1.03) rotate(-2deg);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #fff;
  box-shadow: 0 2px 12px #86c2321a;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 10px 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
header nav a {
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 0px;
  transition: color 0.13s, background 0.2s;
  position: relative;
}
header nav a:not(.cta-primary):hover {
  color: var(--brand-pink);
  background: #FFE156;
  border-radius: 20px;
  padding: 6px 12px;
}
header nav .cta-primary {
  margin-left: 12px;
  box-shadow: 0 2px 12px #ffe15633;
}
header img {
  height: 38px;
  margin-right: 20px;
  transition: transform 0.18s;
}
header img:hover { transform: scale(1.07) rotate(-4deg); }
.mobile-menu-toggle {
  display: none;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: none;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  padding: 6px 16px 3px 16px;
  border-radius: 22px;
  cursor: pointer;
  box-shadow: 0 2px 14px #ffe15622;
  margin-left: 16px;
  transition: background 0.14s, color 0.13s, transform 0.13s;
  z-index: 2510;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:hover {
  background: var(--brand-pink);
  color: #fff;
  transform: scale(1.08);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,87,122,0.95);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.83,-0.01,.24,1.01);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 2500;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.5rem;
  align-self: flex-end;
  padding: 22px 22px 4px 22px;
  cursor: pointer;
  transition: color 0.14s, transform 0.12s;
  margin-right: 8px;
  z-index: 2505;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-yellow);
  transform: scale(1.08);
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 42px 38px 20px 38px;
  width: 100%;
}
.mobile-menu nav.mobile-nav a {
  color: #ffe156;
  background: none;
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 10px 0 10px 6px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, transform 0.13s;
  margin-bottom: 0px;
  min-width: 140px;
}
.mobile-menu nav.mobile-nav a:hover {
  background: var(--brand-pink);
  color: #fff;
  transform: scale(1.06) rotate(-2deg);
}

/* ========== FOOTER ========== */
footer {
  background: #22577a;
  color: #fff;
  padding: 38px 0 24px 0;
  border-top: 4px dashed #ffe15677;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 0;
}
footer nav a {
  color: #ffe156;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover { background: #ffe156; color: var(--brand-primary); }
.footer-contact {
  color: #fff;
  font-size: 1rem;
  line-height: 1.7;
  font-family: var(--font-body);
}
.footer-contact a { color: #ffe156; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.footer-brand img {
  height: 36px;
}

/* ========== CARDS, TESTIMONIALS, SPECIAL FLEX CONTAINERS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 18px #22577a10;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.19s, transform 0.15s;
}
.card:hover { box-shadow: 0 8px 28px #86c23229; transform: translateY(-4px) rotate(-1deg) scale(1.025); }
.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;
  margin-bottom: 32px;
}
.text-image-section img {
  width: 180px;
  border-radius: 22px;
  box-shadow: 0 3px 18px #ffe15629, 0 1.5px 6px #86c23214;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 3px 16px #86c23227;
  transition: box-shadow 0.14s, transform 0.13s;
  min-width: 220px;
  max-width: 375px;
  font-family: var(--font-body);
}
.testimonial-card p {
  color: #183e5b;
  font-size: 1.14rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--brand-secondary);
}
.testimonial-card div:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
}
.testimonial-card img {
  width: 18px; height: 18px;
  display: inline-block;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px #ffe15633;
  transform: translateY(-5px) scale(1.04) rotate(-2deg);
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px #86c23222;
  padding: 24px 14px;
}

/* === Map Location special card === */
.map-location {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F6F7EB;
  border-radius: 24px;
  padding: 20px 18px;
  margin-top: 20px;
  box-shadow: 0 2px 10px #ffe15624;
  font-weight: bold;
  color: var(--brand-primary);
  font-size: 1.08rem;
}
.map-location img { width: 34px; height: 34px; }

/* === Progress Tracker (Gesunde Gewohnheiten) === */
.progress-tracker {
  background: #ffe15633;
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 2px 10px #ffe15623;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

/* ========== LISTS & UL/OL ========== */
ul, ol {
  margin-left: 18px;
  margin-bottom: 10px;
  list-style: disc inside;
}
ul li strong { color: var(--brand-secondary); }
ul li {
  margin-bottom: 6px;
}

/* ========== ADDRESS ========== */
address {
  font-style: normal;
  font-family: var(--font-body);
  background: #ffe1562a;
  color: var(--brand-dark);
  border-radius: 18px;
  padding: 20px 20px;
  margin: 12px 0 12px 0;
  font-size: 1.05rem;
  line-height: 1.6;
}
address a {
  color: var(--brand-primary);
  font-weight: 600;
}
address a:hover { color: var(--brand-pink); }

/* ========== SPACING & LAYOUT ========== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ========== ANIMATION & MICRO-INTERACTIONS ========== */
@keyframes popIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.section, .card, .feature-grid > div, .testimonial-card, .featured-article, .category-filters a, .hero .cta-primary, .mobile-menu {
  animation: popIn 0.64s cubic-bezier(.93,-0.19,.35,1.45);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 989px) {
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
  .feature-grid > div { max-width: 100%; }
  footer .container { flex-direction: column; gap: 20px; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 5vw;
  }
  html, body {
    font-size: 15px;
  }
  .feature-grid, .blog-teaser-list, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-grid > div,
  .blog-teaser-list article,
  .testimonial-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box; 
  }
  .section {
    margin-bottom: 38px;
    padding: 26px 4vw;
    border-radius: 19px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .hero {
    padding: 35px 0 24px 0;
    border-radius: 0 0 30px 30px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  header .container, header nav, footer .container, .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  header nav, footer nav {
    gap: 12px;
    flex-wrap: wrap;
  }
  footer {
    padding: 28px 0 12px 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    display: none;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
  }
  .card-container { flex-direction: column; gap: 20px; }
  .map-location { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.27rem; }
  .section { padding: 13px 2vw; border-radius: 10px; }
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe1;
  box-shadow: 0 -4px 24px #22577a22;
  border-top: 5px dashed #86c232;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  z-index: 20000;
  padding: 22px 8vw 17px 8vw;
  font-family: var(--font-body);
  font-size: 1.04rem;
  animation: popIn 0.7s;
}
.cookie-banner p {
  color: #13324c;
  margin-bottom: 0;
}
.cookie-banner .cookie-btn {
  margin-left: 12px;
  background: var(--brand-secondary);
  border: none;
  padding: 9px 22px;
  border-radius: 28px;
  color: #183e5b;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.16s, transform 0.15s;
  min-width: 36px;
  box-shadow: 0 2px 10px #ffe15633;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: var(--brand-pink);
  color: #fff;
  transform: scale(1.11) rotate(-2deg);
}
.cookie-banner .cookie-btn.cookie-settings {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-banner .cookie-btn.cookie-settings:hover {
  background: var(--brand-yellow);
  color: var(--brand-dark);
}
@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 12px 12px 8px;
    font-size: 0.97rem;
  }
}

.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,87,122,0.82);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20010;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fffbe1;
  border-radius: 26px;
  box-shadow: 0 6px 44px #86c23288;
  padding: 32px 26px 26px 26px;
  min-width: 300px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: popIn 0.82s;
}
.cookie-modal-content h3 {
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.cookie-modal-content ul {
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 12px 0;
  font-size: 1rem;
  font-family: var(--font-display);
}
.cookie-category label {
  color: var(--brand-dark);
  font-weight: 600;
}
.cookie-switch {
  width: 46px; height: 26px;
  background: #86c23255;
  border-radius: 18px;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  margin-right: 8px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: var(--brand-pink);
  border-radius: 50%;
  transition: left 0.16s, background 0.15s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--brand-secondary);
  left: 23px;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 20px;
  width: 100%;
  justify-content: flex-end;
}
.cookie-actions .cookie-btn {
  min-width: 68px;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--brand-primary);
  font-size: 2rem;
  position: absolute;
  right: 28px; top: 12px;
  cursor: pointer;
  transition: color 0.23s, transform 0.13s;
}
.cookie-modal-close:hover { color: var(--brand-pink); transform: scale(1.14) rotate(4deg); }

@media (max-width: 520px) {
  .cookie-modal-content {
    min-width: 88vw;
    padding: 17px 3vw;
    border-radius: 13px;
  }
  .cookie-modal-close {
    right: 5vw;
  }
}

/* ========== UTILITIES ========== */
.hide { display: none !important; }
.show { display: block !important; }

/* ========== END ========== */
