/* =========================================================
   FamilienZeit Entdecker – Scandinavian Clean CSS
   Mobile-First, Flexbox-Only, No Grid, No Columns
============================================================*/

/* RESET & BASE ================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F9FAF9;
  color: #205072;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito Sans', 'Open Sans', Arial, sans-serif;
  margin-top: 0;
  color: #205072;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2rem; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.15rem; margin-bottom: 12px; }

p, ul, ol {
  margin-top: 0;
  margin-bottom: 16px;
  color: #205072;
}
ul, ol { padding-left: 24px; }
a {
  color: #205072;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #74C69D;
  outline: none;
}

strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* UTILITY CLASSES & CONTAINERS =================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(32,80,114,0.05);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(32,80,114,0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  min-width: 240px;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(32,80,114,0.1);
}
.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;
  background: #F4F6F5;
  border-left: 5px solid #74C69D;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 5px 0 rgba(32,80,114,0.05);
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 3px 16px 0 rgba(116,198,157,0.13);
}
.testimonial-meta {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.98rem;
  color: #205072;
  opacity: 0.875;
  margin-left: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================================================== */
/* HEADER & NAVIGATION (DESKTOP FIRST, MOBILE LATER)  */
/* ================================================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(32,80,114,0.06);
  padding: 0;
  z-index: 101;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 0 18px 0;
  flex-wrap: wrap;
}
.main-nav a img {
  height: 38px;
  width: auto;
  margin-right: 18px;
}
.main-nav a {
  font-family: 'Nunito Sans', 'Open Sans', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 600;
  color: #205072;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:not(.cta-primary):hover, .main-nav a:not(.cta-primary):focus {
  background: #F4F6F5;
  color: #74C69D;
}
.main-nav .cta-primary {
  background: #74C69D;
  color: #204E5A;
  font-weight: 700;
  margin-left: 16px;
  border-radius: 8px;
  padding: 9px 24px;
  font-size: 1.05rem;
  box-shadow: 0 2px 6px 0 rgba(32,80,114,0.08);
  transition: background 0.14s, color 0.14s, box-shadow .16s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #205072;
  color: #FFECCC;
  box-shadow: 0 5px 24px 0 rgba(32,80,114,0.18);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.3rem;
  cursor: pointer;
  color: #205072;
  position: absolute;
  right: 22px;
  top: 17px;
  z-index: 120;
}

/* MOBILE MENU ======================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(32,80,114,0.92);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,.2,.25,1);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
  width: 100vw;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: unset;
}
.mobile-menu-close {
  margin: 28px 18px 0 0;
  align-self: flex-end;
  background: none;
  border: none;
  color: #FFECCC;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 201;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #74C69D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 46px 0 0 32px;
}
.mobile-nav a {
  color: #FFECCC;
  font-family: 'Nunito Sans', 'Open Sans', Arial, sans-serif;
  font-size: 1.16rem;
  padding: 10px 12px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #74C69D;
  color: #205072;
}

/* HERO SECTION ====================================== */
.hero {
  width: 100%;
  background: #FFECCC;
  padding: 54px 0 46px 0;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 8px 24px 0 rgba(32,80,114,0.10);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  color: #205072;
  font-family: 'Nunito Sans', 'Open Sans', Arial, sans-serif;
  font-size: 2.45rem;
  max-width: 720px;
}
.hero p {
  font-size: 1.15rem;
  color: #205072;
  max-width: 600px;
  margin-bottom: 26px;
}
.hero .cta-primary {
  margin-top: 10px;
}

/* FEATURES/GRID ========================== */
.features, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features .content-wrapper {
  gap: 24px;
}
.feature-grid {
  width: 100%;
  justify-content: flex-start;
  gap: 24px;
}
.feature-grid > div {
  flex: 1 1 222px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F9FAF9;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(32,80,114,0.04);
  padding: 26px 18px 22px;
  margin-bottom: 16px;
  transition: box-shadow .18s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 18px 0 rgba(116,198,157,0.14);
}
.feature-grid img {
  width: 44px;
  height: 44px;
}

/* CTA COMPONENT =============================== */
.cta {
  background: #205072;
  border-radius: 20px;
  padding: 46px 0 46px 0;
  color: #FFECCC;
  margin-bottom: 60px;
}
.cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta h2,
.cta p {
  color: #FFECCC;
  text-align: center;
}
.cta .cta-primary {
  background: #FFECCC;
  color: #205072;
  margin-top: 16px;
  font-size: 1.05rem;
  padding: 10px 32px;
}
.cta .cta-primary:hover, .cta .cta-primary:focus {
  background: #74C69D;
  color: #fff;
}

/* BUTTONS =================================== */
.cta-primary {
  display: inline-block;
  background: #74C69D;
  color: #204E5A;
  font-family: 'Nunito Sans', 'Open Sans', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 26px;
  margin-right: 0;
  margin-top: 0;
  transition: background 0.14s, color 0.14s, box-shadow .14s, transform 0.13s;
  cursor: pointer;
  box-shadow: 0 1px 4px 0 rgba(32,80,114,0.06);
}
.cta-primary:hover, .cta-primary:focus {
  background: #205072;
  color: #FFECCC;
  outline: none;
  box-shadow: 0 3px 24px 0 rgba(32,80,114,0.17);
  transform: translateY(-2px) scale(1.015);
}
button, .btn {
  cursor: pointer;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
}

/* LISTS & SPECIAL TYPOGRAPHY ================= */
ul li, ol li {
  margin-bottom: 8px;
}
ul li img, ol li img {
  vertical-align: middle;
  margin-left: 8px;
  margin-right: 0;
  height: 20px;
}

/* TESTIMONIALS ================================ */
.testimonial {
  background: #F9FAF9;
  border-radius: 20px;
  margin-bottom: 48px;
  padding: 36px 0 36px 0;
}
.testimonial h2 {
  color: #205072;
  font-size: 1.4rem;
  margin-bottom: 32px;
}
.testimonial-card {
  color: #205072;
  background: #F4F6F5;
  border-left: 5px solid #74C69D;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 5px 0 rgba(32,80,114,0.05);
}

/* FOOTER ===================================== */
footer {
  background: #fff;
  padding: 38px 0 28px 0;
  border-top: 2.5px solid #F4F6F5;
  font-size: 0.95rem;
  color: #205072;
  width: 100%;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
  justify-content: center;
  align-items: center;
}
.footer-nav a {
  color: #205072;
  opacity: 0.7;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 7px;
  transition: background 0.1s, color 0.1s;
}
.footer-nav a:hover {
  color: #74C69D;
  background: #F4F6F5;
}
footer address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  color: #205072;
  margin-bottom: 14px;
}
footer address div {
  display: flex;
  align-items: center;
  gap: 7px;
}
footer address img {
  height: 18px;
  width: 18px;
}
.brand-tag {
  text-align: center;
  opacity: 0.70;
  font-size: 0.98rem;
  margin-top: 10px;
  color: #B1BFC5;
}

/* COOKIE CONSENT BANNER ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #205072;
  color: #FFECCC;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 10px 18px 10px;
  box-shadow: 0 -2px 16px rgba(32,80,114,0.19);
  z-index: 201;
  animation: fadeInBottom 0.4s;
}
@keyframes fadeInBottom {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 4px;
}
.cookie-btn {
  background: #74C69D;
  color: #205072;
  border: none;
  padding: 8px 22px;
  border-radius: 7px;
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FFECCC;
  color: #205072;
  outline: none;
  transform: translateY(-1.5px) scale(1.025);
}
.cookie-btn.reject {
  background: #F4F6F5;
  color: #205072;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFECCC;
  color: #205072;
}
.cookie-btn.settings {
  background: transparent;
  color: #FFECCC;
  border: 1.5px solid #FFECCC;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFECCC;
  color: #205072;
  border-color: #FFECCC;
}

/* COOKIE PREFERENCES MODAL ==================== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 210;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,80,114,0.41);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fadeInModalBg 0.18s;
}
@keyframes fadeInModalBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 380px;
  width: 92vw;
  padding: 34px 22px 24px 22px;
  box-shadow: 0 8px 48px rgba(32,80,114,0.16);
  color: #205072;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  animation: fadeInModal 0.23s;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(54px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal-title {
  font-family: 'Nunito Sans', 'Open Sans', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #205072;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: #205072;
  font-size: 1.55rem;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
}
.cookie-category label {
  flex: 1;
  font-size: 1rem;
}
.cookie-toggle {
  width: 34px;
  height: 18px;
  border-radius: 9px;
  border: 1.5px solid #74C69D;
  background: #F4F6F5;
  position: relative;
  transition: background 0.17s;
  cursor: pointer;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle span {
  position: absolute; left: 2px; top: 1.5px;
  background: #74C69D;
  width: 15px; height: 15px;
  border-radius: 8px;
  transition: left 0.18s, background 0.12s;
  display: block;
}
.cookie-toggle input[type="checkbox"]:checked + span {
  left: 16px;
  background: #205072;
}
.cookie-modal-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
}

/* ==================== RESPONSIVE! ========================= */
@media (max-width: 1024px) {
  .container {
    max-width: 90vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav a img {
    margin-right: 10px;
    height: 33px;
  }
  .main-nav {
    gap: 10px;
  }
  .footer-nav { gap: 13px; }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 27px 7px;
    border-radius: 12px;
  }
  .card-container, .content-grid, .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: unset;
    width: 100%;
    margin-bottom: 10px;
  }
  .hero h1 {
    font-size: 1.49rem;
  }
  .hero {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .cta, .testimonial {
    border-radius: 14px;
    padding: 28px 0 24px 0;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .testimonial-card, .card {
    padding: 16px 10px;
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.19rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .hero p {
    font-size: 1.01rem;
  }
  .footer-nav a {
    font-size: 0.98rem;
    padding: 4px 7px;
  }
  .brand-tag {
    font-size: 0.89rem;
  }
  .container {
    padding-left: 2px;
    padding-right: 2px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 7px;
  }
  .cta-primary, .cookie-btn {
    font-size: 1rem;
    padding: 8px 14px;
  }
  .cookie-modal {
    padding: 18px 5px 17px 5px;
  }
}

/* FLEX ADJUSTMENTS FOR SECTIONS WITH IMAGES */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* ============= MISC =============== */
::-webkit-scrollbar {
  width: 7px;
  background: #F4F6F5;
}
::-webkit-scrollbar-thumb {
  background: #CCE6DF;
  border-radius: 6px;
}

/* ============= FOCUS OUTLINE =============== */
a:focus, button:focus, .cta-primary:focus, .cookie-btn:focus {
  outline: 2.5px dashed #74C69D !important;
  outline-offset: 2px;
}

/* ========== Z-INDEXes =========== */
.mobile-menu { z-index: 200; }
.mobile-menu-toggle { z-index: 120; }
.cookie-banner { z-index: 201; }
.cookie-modal-overlay { z-index: 210; }

/* ========== VISUAL HIERARCHY =========== */
h1, h2, h3, .cta-primary { letter-spacing: 0.015em; }

/* ========== ANIMATION UTILITIES =========== */
.fade-in {
  animation: fadeIn 0.45s linear forwards;
  opacity: 0;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
