/* === CSS RESET & NORMALIZE === */
html { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline; }
body, html { height: 100%; }
body { min-height: 100vh; font-family: 'Open Sans', Arial, sans-serif; color: #2b4060; background-color: #f7fafc; line-height: 1.7; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; border: none; }
a { color: #2b4060; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #455d7a; }
ul, ol { margin: 0 0 1.5em 1.2em; padding: 0; }
li { margin-bottom: 0.4em; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #25314a;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}
h1 { font-size: 2.25rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4, h5, h6 { font-size: 1rem; }
p { margin-bottom: 16px; }

body {
  background: #f7fafc;
  /* Looks natural, open, Scandinavian */
}

/* === GENERIC CONTAINERS === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- FLEXBOX LAYOUTS & GAPS (Mandatory Classes) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(43,64,96,0.05);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  min-width: 260px;
}
.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: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(43,64,96,0.07);
  min-width: 260px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === HEADER === */
header {
  background: #fff;
  position: relative;
  border-bottom: 1px solid #e4e9f1;
  box-shadow: 0 2px 8px rgba(168,179,199,0.03);
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
header nav a {
  font-size: 16px;
  padding: 5px 8px;
  color: #25314a;
  font-weight: 400;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: #e4e9f1;
  color: #2b4060;
}

header img {
  height: 38px;
  width: auto;
}

.btn.primary {
  background: #2b4060;
  color: #fff;
  border-radius: 7px;
  padding: 10px 26px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  box-shadow: 0 2px 6px rgba(43,64,96,0.10);
  cursor: pointer;
  transition: background 0.24s, box-shadow 0.3s, color 0.2s;
  margin-left: 18px;
  outline: none;
  display: inline-block;
}
.btn.primary:hover, .btn.primary:focus {
  background: #25314a;
  box-shadow: 0 4px 14px rgba(43,64,96,0.15);
  color: #e4e9f1;
}
.btn {
  background: #e4e9f1;
  color: #2b4060;
  border-radius: 7px;
  padding: 10px 26px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.24s, color 0.2s;
  margin-top: 14px;
  outline: none;
  display: inline-block;
}
.btn:hover, .btn:focus {
  background: #d3dbe8;
  color: #25314a;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 30px;
  color: #2b4060;
  border: none;
  cursor: pointer;
  margin-left: 14px;
}
.mobile-menu {
  display: none;
}

/* Show hamburger & style mobile nav */
@media (max-width: 1040px) {
  header nav { display: none; }
  header .btn.primary { display: none; }
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(247, 250, 252, 0.98);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.55,0,0.1,1);
  box-shadow: -4px 0 12px rgba(43,64,96,0.06);
}
.mobile-menu.open {
  transform: translateX(0);
  display: flex;
}
.mobile-menu .mobile-menu-close {
  background: none;
  font-size: 30px;
  color: #2b4060;
  align-self: flex-end;
  margin: 24px 26px 0 0;
  cursor: pointer;
  border: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0 0 34px;
}
.mobile-nav a {
  font-size: 20px;
  color: #2b4060;
  padding: 12px 0;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #e4e9f1;
}

/* === HERO & MAJOR BLOCKS === */
.hero {
  background: #e4e9f1;
  min-height: 300px;
  display: flex;
  align-items: center;
  padding: 56px 0 56px 0;
}
.hero h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.5rem;
  color: #2b4060;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.17rem;
  color: #25314a;
  margin-bottom: 22px;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* === FEATURE GRID === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(43,64,96,0.06);
  padding: 28px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.22s, transform 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px rgba(43,64,96,0.14);
  transform: translateY(-3px);
}
.feature-grid img {
  height: 38px;
  margin-bottom: 8px;
}

/* === TEAM GRID === */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
}
.team-member {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(43,64,96,0.04);
  padding: 30px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* === TESTIMONIALS === */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #2b4060;
  font-family: 'Merriweather', Georgia, serif;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 1rem;
  color: #475d79;
  font-style: italic;
}

/* === CTA === */
.cta {
  background: #2b4060;
  color: #fff;
  border-radius: 20px;
  padding: 52px 0;
  box-shadow: 0 2px 18px rgba(43,64,96,0.04);
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 16px;
}
.cta h2, .cta p {
  color: #fff;
}
.cta .btn.primary {
  background: #fff;
  color: #2b4060;
  box-shadow: none;
  font-weight: 700;
}
.cta .btn.primary:hover, .cta .btn.primary:focus {
  background: #e4e9f1;
  color: #2b4060;
}

/* === FOOTER === */
footer {
  background: #e4e9f1;
  color: #2b4060;
  padding-top: 34px;
  padding-bottom: 32px;
  border-top: 1px solid #cfd8e7;
  font-size: 15px;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: 17px;
}
.footer-brand img {
  height: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-nav a {
  color: #2b4060;
  opacity: 0.87;
  font-weight: 500;
}
.footer-nav a:hover, .footer-nav a:focus { color: #25314a; text-decoration: underline; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  opacity: 0.88;
}
.footer-contact img {
  width: 1.1em;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
}

/* === FORM PREVIEW === */
.form-preview {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 12px;
  margin-bottom: 14px;
}
.form-preview div {
  background: #f1f5fa;
  border-radius: 8px;
  padding: 9px 18px;
  color: #2b4060;
  display: flex;
  align-items: center;
  gap: 7px;
}

.form-preview .btn.primary {
  margin-left: 0;
  margin-top: 2px;
}

/* === ARTICLES (Ratgeber) === */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.articles-list input[type=text] {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #cdd7e4;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.articles-list ul {
  margin: 0 0 8px 1em;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  opacity: 0.85;
}
.categories span {
  background: #f1f5fa;
  color: #2b4060;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 15px;
  margin-right: 2px;
}

/* === LEGAL TEXT (Datenschutz, Nutzungsbedingungen) === */
.legal-text {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(43,64,96,0.05);
  padding: 32px 24px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1rem;
  color: #2b4060;
}

/* === SPACING UTILITIES (for breathing room) === */
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }

/* === MICRO-INTERACTIONS & TRANSITIONS === */
.card, .testimonial-card, .feature-grid > div, .team-member {
  transition: box-shadow 0.22s, transform 0.16s;
}
.card:hover,
.feature-grid > div:hover,
.team-member:hover {
  box-shadow: 0 6px 20px rgba(43,64,96,0.13);
  transform: translateY(-2px);
}

.btn, .btn.primary {
  transition: background 0.22s, color 0.17s, box-shadow 0.22s;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(43,64,96,0.10);
  border-top: 1px solid #e4e9f1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 24px 32px;
  gap: 16px;
  font-size: 1rem;
}
.cookie-banner p {
  flex: 1 1 220px;
  color: #25314a;
  margin: 0;
}
.cookie-banner .btn {
  margin: 0 8px;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-banner .btn.accept {
  background: #2b4060;
  color: #fff;
}
.cookie-banner .btn.accept:hover, .cookie-banner .btn.accept:focus {
  background: #25314a;
}
.cookie-banner .btn.reject {
  background: #e4e9f1;
  color: #2b4060;
}
.cookie-banner .btn.reject:hover, .cookie-banner .btn.reject:focus {
  background: #cfd8e7;
}
.cookie-banner .btn.settings {
  background: #fff;
  color: #2b4060;
  border: 1px solid #e4e9f1;
}
.cookie-banner .btn.settings:hover, .cookie-banner .btn.settings:focus {
  background: #e4e9f1;
  border-color: #cfd8e7;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(43,64,96,0.13);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(43,64,96,0.21);
  min-width: 320px;
  max-width: 96vw;
  width: 440px;
  padding: 34px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.28s, opacity 0.16s;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  font-size: 1.5rem;
  color: #2b4060;
  border: none;
  cursor: pointer;
}
.cookie-modal h3 {
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-top: 5px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #2b4060;
}
.cookie-category input[disabled] {
  opacity: 0.5;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* === RESPONSIVE DESIGN & MOBILE LAYOUT === */
@media (max-width: 900px) {
  .feature-grid, .team-grid, .testimonials-slider, .card-container, .content-grid {
    gap: 18px;
  }
  .container { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 768px) {
  .section {
    padding: 32px 8px;
    margin-bottom: 32px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper, .content-grid, .feature-grid, .team-grid, .testimonials-slider, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  .hero {
    padding: 32px 0 28px 0;
    min-height: unset;
  }
  .cta {
    border-radius: 8px;
    padding: 40px 0;
  }
  .feature-grid > div, .team-member {
    padding: 18px 12px;
    min-width: unset;
    max-width: unset;
  }
  .testimonial-card {
    min-width: unset;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 11px;
    font-size: 0.99rem;
  }
  .cookie-banner p {
    margin-bottom: 8px;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 24px 11px 18px 11px;
    max-width: 99vw;
    font-size: 1rem;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.15rem; }
  .feature-grid > div, .team-member { padding: 12px 5px; }
  .legal-text { padding: 14px 5px; }
  .cta { padding: 20px 4px; }
}

/* === ACCESSIBILITY (Focus outlines etc.) === */
a:focus, .btn:focus, button:focus {
  outline: 2px solid #2b4060 !important;
  outline-offset: 2px;
  z-index: 2;
}

/* === MISCELLANEOUS & UTILITY === */
::-webkit-scrollbar {
  width: 8px;
  background: #e4e9f1;
}
::-webkit-scrollbar-thumb {
  background: #d3dbe8;
  border-radius: 4px;
}

hr {
  border: none;
  border-top: 1px solid #d3dbe8;
  margin: 28px 0;
}

/* === BRAND CUSTOM FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Merriweather:wght@700&display=swap');
