/* ===== 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F4EF;
  color: #22496D;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: disc inside;
  margin-left: 16px;
}
a {
  text-decoration: none;
  color: #22496D;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #62A17B;
}
img {
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
  background: none;
}

/* ====== MAIN LAYOUT & CONTAINER ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  max-width: 700px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #22496D;
  font-weight: 700;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  line-height: 1.3;
}
h3 {
  font-size: 1.375rem;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, li, ul, ol, blockquote {
  line-height: 1.7;
  color: #294364;
  font-size: 1rem;
}
blockquote {
  font-size: 1.125rem;
  font-style: italic;
  border-left: 4px solid #62A17B;
  padding-left: 16px;
  color: #22496D;
  background: #fff;
  border-radius: 8px;
  margin: 12px 0;
}
strong, b {
  color: #22496D;
  font-weight: 700;
}

/* ======== SECTION SPACING & LAYOUT ========= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 18px rgba(34,73,109,0.09);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 280px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 32px rgba(34,73,109,0.18);
  transform: translateY(-2px);
  z-index: 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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 7px rgba(34,73,109,0.11);
  margin-bottom: 20px;
  min-width: 280px;
  max-width: 600px;
  color: #22496D;
  font-size: 1.08rem;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 3px 30px rgba(98,161,123,0.15);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(98,161,123,0.07);
  border-radius: 16px;
  padding: 28px 24px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-item img {
  height: 44px;
  width: 44px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #F6F4EF;
}
.feature-item:hover {
  box-shadow: 0 5px 28px rgba(98,161,123,0.19);
  border-color: #62A17B;
  z-index: 2;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* <= Additional Teaser Grid for Leistungen/Ausstattung => */
.teaser-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.teaser {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 7px rgba(34,73,109,0.09);
  padding: 28px 20px 24px;
  flex: 1 1 260px;
  min-width: 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s;
}
.teaser a {
  font-weight: 600;
  color: #62A17B;
  margin-top: 8px;
  transition: color 0.2s;
}
.teaser a:hover {
  color: #22496D;
}
.teaser:hover {
  box-shadow: 0 4px 20px rgba(34,73,109,0.13);
}

/* ================ HEADER & NAVIGATION ================ */
header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(34,73,109,0.045);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #22496D;
  font-size: 1.01rem;
  border-radius: 8px;
  padding: 7px 14px;
  transition: background 0.12s, color 0.18s;
}
header nav a:hover, header nav a:focus{
  background: #F6F4EF;
  color: #62A17B;
}
header .cta.primary {
  margin-left: 24px;
}

/* ====== CTA BUTTONS ====== */
.cta {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  padding: 13px 28px;
  border-radius: 30px;
  background: #62A17B;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(98,161,123,0.17);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  border: none;
  margin-top: 10px;
}
.cta.primary {
  background: #22496D;
  color: #fff;
  box-shadow: 0 3px 18px rgba(34,73,109,0.10);
}
.cta.primary:hover, .cta.primary:focus {
  background: #62A17B;
  color: #fff;
}
.cta:hover, .cta:focus {
  background: #245195;
  color: #fff;
  box-shadow: 0 6px 28px rgba(98,161,123,0.21);
  transform: translateY(-1.5px);
}

/* =========== FOOTER =========== */
footer {
  background: #22496D;
  color: #fff;
  padding: 48px 0 16px;
  border-radius: 36px 36px 0 0;
  margin-top: 60px;
  box-shadow: 0 -2px 12px rgba(34,73,109,0.06);
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}
footer img {
  margin-bottom: 18px;
}
footer p, footer a {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.15s;
}
footer nav a:hover {
  background: #62A17B;
}

/* ========= FAQ LIST ========= */
.faq-list h3 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 4px;
  color: #22496D;
  margin-top: 16px;
}
.faq-list p { margin-bottom: 8px; }

/* ========== COOKIES BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #22496D;
  box-shadow: 0 -2px 14px rgba(98,161,123,0.18);
  padding: 24px 16px 24px 26px;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1.05rem;
  border-radius: 22px 22px 0 0;
  animation: cookie-slide-up 0.33s cubic-bezier(.51,.58,.33,1.23) 1;
}
@keyframes cookie-slide-up {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background 0.16s, color 0.18s, transform 0.10s;
  border: none;
  cursor: pointer;
  margin: 0;
  outline: none;
}
.cookie-banner .accept {
  background: #62A17B;
  color: #fff;
}
.cookie-banner .accept:hover {
  background: #22496D;
}
.cookie-banner .reject {
  background: #F2785C;
  color: #fff;
}
.cookie-banner .reject:hover {
  background: #A43F2C;
}
.cookie-banner .settings {
  background: #fff;
  border: 2px solid #22496D;
  color: #22496D;
}
.cookie-banner .settings:hover {
  background: #F6F4EF;
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,34,44,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  animation: cookie-modal-fade-in 0.2s cubic-bezier(.41,.7,.18,1.21) 1;
}
@keyframes cookie-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 38px 24px 30px 30px;
  border-radius: 18px;
  box-shadow: 0 6px 36px rgba(34,73,109,0.15);
  max-width: 400px;
  width: 95vw;
  color: #22496D;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-zoom-in 0.28s cubic-bezier(.67,.23,.31,1.13) 1;
  position: relative;
}
@keyframes cookie-modal-zoom-in {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal .modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: none;
  font-size: 1.7rem;
  color: #8D9FB3;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.12s;
}
.cookie-modal .modal-close:hover {
  background: #F6F4EF;
  color: #22496D;
}
.cookie-modal h3 {
  font-size: 1.14rem;
  margin-bottom: 6px;
}
.cookie-pref-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}
.cookie-pref-cat label {
  margin-right: 18px;
  font-size: 1.0rem;
  color: #22496D;
}
.cookie-pref-toggle input[type="checkbox"] {
  width: 36px;
  height: 20px;
  accent-color: #62A17B;
}
.cookie-modal .accept, .cookie-modal .reject {
  margin-top: 12px;
  min-width: 110px;
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: #F6F4EF;
  color: #22496D;
  border-radius: 12px;
  font-size: 2rem;
  border: none;
  padding: 3px 16px 4px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 2102;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #62A17B;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #22496D;
  z-index: 2101;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(.51,.58,.33,1.23);
  box-shadow: 0 3px 36px rgba(34,73,109,0.33);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  margin: 26px 18px;
  align-self: flex-end;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.12s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F6F4EF;
  color: #22496D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 38px 0 38px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.28rem;
  padding: 16px 14px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  width: 100%;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #62A17B;
  color: #fff;
}


/* ======== SPACING & FLEXBOX PATTERNS ======== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content-wrapper.text-section {
  align-items: flex-start;
}

/* Guarantee min 20px margin etc. between all content cards */
.card-container > *,
.feature-grid > *,
.testimonial-card,
.teaser-grid > * {
  margin-bottom: 20px;
}

.card:not(:last-child),
.feature-item:not(:last-child),
.teaser:not(:last-child),
.testimonial-card:not(:last-child) {
  margin-right: 0;
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
    padding: 0 16px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .teaser-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-item, .teaser, .card { min-width: unset; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .section, section { padding: 22px 7px; margin-bottom: 38px; }
  .feature-item, .teaser, .card, .testimonial-card { padding: 22px 10px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .container { max-width: 99vw; padding: 0 7px; }
  .card-container, .feature-grid, .teaser-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  footer {
    border-radius: 24px 24px 0 0;
    padding-top: 24px;
  }
  footer .container {
    gap: 9px;
  }
}
@media (max-width: 600px) {
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  header nav, header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: 8px;
  }
  .container {
    padding: 0 6px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.26rem; }
  h2 { font-size: 1.12rem; }
  .feature-item, .teaser, .card, .testimonial-card {
    padding: 17px 5px;
  }
}

/* ====== UTILITIES & MISC ====== */
::-webkit-input-placeholder { color: #AEB6BE; }
::-moz-placeholder { color: #AEB6BE; }
:-ms-input-placeholder { color: #AEB6BE; }
::placeholder { color: #AEB6BE; }

hr {
  border: none;
  border-top: 1px solid #e9ecef;
  margin: 30px 0;
}

/* Visually hidden for accessibility helpers */
.visually-hidden { position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* =============== MICRO-INTERACTIONS =============== */
button, .cta, .mobile-menu-close, .cookie-banner button, .cookie-banner .cookie-btn {
  transition: background 0.17s, color 0.17s, box-shadow 0.19s, transform 0.13s;
}
a {
  transition: color 0.21s;
}
.feature-item, .teaser, .card, .testimonial-card {
  transition: box-shadow 0.21s, border-color 0.15s, transform 0.13s;
}

/* ========== ACCESSIBLITY CONTRASTS ========== */
.testimonial-card,
blockquote {
  background: #fff;
  color: #22496D;
}

/* ======= Fix stacking context for overlays, menus, banners ====== */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { z-index: 1000; }

/* === Misc for nice warm_friendly style === */
.card, .feature-item, .teaser, .testimonial-card, .cookie-modal {
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(246,210,160,0.10), 0 1px 6px rgba(98,161,123,0.091);
  background: #fff;
}

/* =======  END OF CSS ======= */
