/* =====================================================================
   0. 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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  background: #fff;
  color: #1b2838;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-weight: 400;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}

/* =====================================================================
   1. BASE TYPOGRAPHY & COLORS
======================================================================*/
:root {
  --color-primary: #205375;
  --color-secondary: #42B883;
  --color-accent: #F5F7FA;
  --color-dark: #1b2838;
  --color-light: #fff;
  --color-gray: #f0f1f3;
  --color-shadow: rgba(32,83,117,0.09);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.13;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

@media (max-width: 576px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
}

p, li, span, a, label {
  font-family: var(--font-body);
  color: var(--color-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.subheadline {
  color: var(--color-secondary);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

strong {
  font-weight: 600;
  color: var(--color-primary);
}

/* =====================================================================
   2. SPACING & CONTAINERS
======================================================================*/
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
}

@media (max-width: 768px) {
  .section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 12px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--color-accent);
  border-radius: 14px;
  margin-bottom: 20px;
  padding: 24px;
  box-shadow: 0 2px 10px var(--color-shadow);
  position: relative;
  transition: box-shadow 0.23s, transform 0.23s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(32,83,117,.18);
  transform: translateY(-2px) scale(1.015);
}

.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;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  box-shadow: 0 1px 6px var(--color-shadow);
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 420px;
  transition: box-shadow 0.25s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(32,83,117,.13);
}
.testimonial-card p {
  color: #1b2838;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--color-primary);
  font-weight: 700;
}
.testimonial-card .stars {
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #EAC435;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 14px 0;
}

.lifehack-card, .blog-post, .tip-card, .expert-profile {
  background: var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 1.5px 7px var(--color-shadow);
  margin-bottom: 20px;
  padding: 18px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.lifehack-card:hover, .blog-post:hover, .tip-card:hover {
  box-shadow: 0 3px 18px rgba(32,83,117,.18);
  transform: scale(1.012);
}

/* =====================================================================
   3. HEADER & NAVIGATION
======================================================================*/
header {
  width: 100%;
  background: var(--color-light);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  min-height: 64px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 18px 0 18px 0;
  justify-content: flex-start;
}
.main-nav > a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 10px;
  position: relative;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
.main-nav > a.cta {
  background: var(--color-secondary);
  color: var(--color-light) !important;
  padding: 10px 18px;
  border-radius: 24px;
  font-weight: 700;
  margin-left: 16px;
  box-shadow: 0 2px 7px rgba(66,184,131,0.08);
  letter-spacing: 0.01em;
}
.main-nav > a.cta:hover {
  background: #249e6f;
  color: #fff;
}
.main-nav > a:not(.cta):hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.main-nav img {
  margin-right: 10px;
  max-height: 38px;
}

/* Hide mobile menu button by default */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 1121;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--color-secondary);
}

/* MOBILE NAVIGATION */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0; right: 0;
  background: rgba(245,247,250, 0.98);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.57, 0.17, 0.27, 1.13);
  box-shadow: 0 8px 36px rgba(32,83,117,.09);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  align-self: flex-end;
  margin: 14px 28px 4px 0;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding-left: 36px;
  padding-top: 16px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.13rem;
  color: var(--color-primary);
  padding: 12px 0;
  transition: color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

@media (max-width: 1020px) {
  .main-nav > a:not(:first-child) {
    font-size: 0.975rem;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 11px;
    padding-left: 5px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =====================================================================
   4. FOOTER STYLES
======================================================================*/
footer {
  background: var(--color-accent);
  padding-top: 34px;
  padding-bottom: 26px;
  box-shadow: 0 -1px 8px var(--color-shadow);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--color-primary);
  font-weight: 500;
  padding: 8px 5px;
  letter-spacing: 0.01em;
  border-radius: 5px;
  transition: color 0.18s, background 0.18s;
}
.footer-nav a:hover { color: var(--color-secondary); background: #e4f6f2; }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 0.99rem;
  color: var(--color-dark);
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact img {
  max-height: 16px;
  margin-bottom: -2px;
}

.copyright {
  text-align: center;
  font-size: 0.92rem;
  color: #8f9eb5;
  opacity: 0.9;
  margin-top: 14px;
}

@media (max-width: 700px) {
  .footer-contact, .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =====================================================================
   5. BUTTONS, CTAs, FILTERS
======================================================================*/
.cta, .content-wrapper a.cta, .content-wrapper a.cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-light) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 26px;
  padding: 12px 32px;
  margin-top: 8px;
  box-shadow: 0 2px 14px rgba(66,184,131,0.09);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.18s, box-shadow 0.15s, color 0.19s;
  outline: none;
  min-width: 140px;
}
.cta:hover, .cta:focus {
  background: #249e6f;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(66,184,131,0.10);
}

button, .filters button, .content-wrapper button[type=submit], .content-wrapper button {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid #e4ecf4;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 9px 22px;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.19s, color 0.17s, box-shadow 0.19s;
  box-shadow: 0 1.5px 6px var(--color-shadow);
}
button:last-child, .filters button:last-child { margin-right: 0; }
button:hover, .filters button:hover, .content-wrapper button[type=submit]:hover {
  background: var(--color-secondary);
  color: #fff;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.filters button {
  background: var(--color-gray);
  border-radius: 18px;
}
.content-wrapper input[type="text"], .content-wrapper input[type="email"] {
  background: var(--color-accent);
  border: 1px solid #e1e5eb;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-dark);
  min-width: 220px;
  transition: border 0.15s;
}
.content-wrapper input[type="text"]:focus, .content-wrapper input[type="email"]:focus {
  border: 1.5px solid var(--color-secondary);
}

@media (max-width: 576px) {
  .cta, .content-wrapper a.cta {
    padding: 11px 20px;
    font-size: 0.96rem;
    min-width: 105px;
  }
  .filters {
    gap: 7px;
    margin-bottom: 10px;
  }
  .content-wrapper input[type="text"], .content-wrapper input[type="email"] {
    min-width: 0;
    width: 100%;
    font-size: 0.98rem;
    padding: 8px 12px;
  }
}

/* =====================================================================
   6. SPECIAL COMPONENTS/UTILITIES
======================================================================*/
/* STATS GRID ON "Über Uns" */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.stats-grid div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-accent);
  border-radius: 10px;
  padding: 15px 22px;
  box-shadow: 0 1.5px 8px var(--color-shadow);
  min-width: 155px;
  font-size: 1.035rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 700px) {
  .stats-grid {
    flex-direction: column;
    gap: 14px;
  }
  .stats-grid div { min-width: 0; width: 100%; }
}

/* EXPERT PROFILE */
.expert-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  padding: 14px 14px 8px 14px;
}
.expert-profile span {
  font-size: 1rem;
  color: var(--color-secondary);
  margin-bottom: 9px;
}
.tip-card {
  font-style: italic;
  font-size: 1.08rem;
  background: var(--color-light);
  border-left: 3.5px solid var(--color-secondary);
  border-radius: 6px;
  margin-top: 10px;
  padding: 12px 18px;
  color: var(--color-primary);
  box-shadow: 0 2px 7px var(--color-shadow);
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  gap: 18px;
}
.social-links a img {
  filter: grayscale(70%);
  opacity: 0.72;
  transition: filter .18s, opacity .14s, transform .16s;
  width: 33px; height: 33px;
}
.social-links a:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.09) translateY(-2px);
}

/* BLOG CATEGORY BUTTONS */
.content-wrapper button img {
  max-height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}

/* LINKS */
.text-section a {
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 500;
  font-size: 1.01rem;
  transition: color 0.18s;
}
.text-section a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Utility: Hide visually but keep for screen reader */
.sr-only {
  border: 0 !important;
  clip: rect(1px,1px,1px,1px) !important;
  height: 1px !important;
  width: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
}

/* =====================================================================
   7. LAYOUT CORRECTIONS/MISC
======================================================================*/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* UL in features/benefits sections */
.content-wrapper > ul, .text-section > ul {
  margin-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper > ul li, .text-section > ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-accent);
  border-radius: 8px;
  padding: 10px 18px 10px 12px;
  box-shadow: 0 1.5px 7px var(--color-shadow);
  font-family: var(--font-body);
  font-size: 1.03rem;
  color: var(--color-primary);
  font-weight: 500;
}
.content-wrapper > ul li img {
  max-height: 22px;
  margin-right: 7px;
}

@media (max-width: 550px) {
  .content-wrapper > ul, .text-section > ul {
    gap: 11px;
  }
  .content-wrapper > ul li, .text-section > ul li {
    font-size: 0.98rem;
    padding: 7px 10px 7px 6px;
  }
}

/* =====================================================================
   8. RESPONSIVE MEDIA QUERIES
======================================================================*/
@media (max-width: 900px) {
  .container { max-width: 100%; }
}
@media (max-width: 768px) {
  .container { padding-left: 7px; padding-right: 7px; }
  .content-wrapper { gap: 12px; }
  .card-container, .content-grid { gap: 10px; }
  .testimonial-card, .lifehack-card, .blog-post, .tip-card, .expert-profile { padding: 14px 8px; }
}
@media (max-width: 576px) {
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.13rem; }
  .section { padding: 20px 2px; margin-bottom: 20px; }
  .footer-contact p { font-size: 0.91rem; }
}

/* Ensure no content card overlaps (specific margins) */
.lifehack-card, .blog-post, .testimonial-card {
  margin-bottom: 20px;
}

/* =====================================================================
   9. COOKIE CONSENT BANNER & MODAL
======================================================================*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -2px 24px rgba(32,83,117,0.13);
  border-top: 1.5px solid #e4ecf4;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 21px 6vw 16px 6vw;
  transition: transform 0.45s, opacity 0.18s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-banner p {
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.cookie-buttons button {
  padding: 9px 23px;
  font-size: 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid #e9eefc;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.19s, color 0.18s, box-shadow 0.19s;
}
.cookie-buttons button.accept {
  background: var(--color-secondary);
  color: var(--color-light);
  font-weight: 700;
}
.cookie-buttons button.accept:hover, .cookie-buttons button.accept:focus {
  background: #249e6f;
}
.cookie-buttons button.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-buttons button.settings:hover {
  background: #e2eee8;
}
.cookie-buttons button.reject { color: #d74c4c; border-color: #f2dede; }
.cookie-buttons button.reject:hover { background: #f8eaea; }

@media (max-width: 700px) {
  .cookie-banner { padding: 13px 5vw 12px 5vw; }
  .cookie-buttons { gap: 8px; }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,83,117, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1; transition: opacity 0.23s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 56px rgba(32,83,117,.18);
  min-width: 325px;
  max-width: 99vw;
  padding: 40px 36px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transform: translateY(0) scale(1);
  transition: transform 0.32s cubic-bezier(.19,1,.22,1);
}
.cookie-modal .close-modal {
  position: absolute;
  right: 17px; top: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 2;
  transition: color 0.16s;
}
.cookie-modal .close-modal:hover {
  color: var(--color-secondary);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.23rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  background: var(--color-accent);
  border-radius: 9px;
  padding: 13px 14px;
  font-size: 1rem;
  box-shadow: 0 1.5px 6px var(--color-shadow);
}
.cookie-category label {
  margin-right: 8px;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 21px; height: 21px;
  border-radius: 4px;
}
.cookie-category .essential {
  color: #17ad49;
  font-weight: 600;
  margin-left: 12px;
}
.cookie-modal .save-cookie-settings {
  align-self: flex-end;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 24px;
  padding: 9px 30px;
  font-weight: 700;
  margin-top: 16px;
  font-size: 1rem;
}
.cookie-modal .save-cookie-settings:hover {
  background: #249e6f;
}
@media (max-width: 540px) {
  .cookie-modal { padding: 18px 8px 22px 8px; min-width: 0; }
}

/* =====================================================================
   10. ANIMATIONS
======================================================================*/
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}
.section, .container, .content-wrapper, .testimonial-card, .card, .lifehack-card, .blog-post, .tip-card, .expert-profile {
  animation: fadeInUp 0.68s cubic-bezier(.35,.94,.57,1) both;
  animation-delay: 0.03s;
}

/* Micro button press animation */
button:active, .cta:active {
  transform: scale(0.97);
}

/* =====================================================================
   11. FORM ELEMENTS (Newsletter, etc.)
======================================================================*/
.content-wrapper form {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  align-items: center;
  margin-bottom: 11px;
}
.content-wrapper form input[type="email"] {
  flex: 1;
  min-width: 180px;
}
.content-wrapper form button[type="submit"] {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 700;
  padding: 9px 23px;
  border-radius: 24px;
  box-shadow: 0 1.5px 6px rgba(66,184,131,0.13);
}
.content-wrapper form button[type="submit"]:hover {
  background: #249e6f;
}

/* =====================================================================
   12. MISC: ACCESSIBILITY, FOCUS, TRANSITIONS
======================================================================*/
a:focus-visible, .cta:focus-visible, button:focus-visible {
  outline: 2px dotted var(--color-secondary);
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #8d959d; }
::-moz-placeholder { color: #8d959d; }
:-ms-input-placeholder { color: #8d959d; }
::placeholder  { color: #8d959d;  opacity: 1; }
