/* === CSS RESET & BASE TYPOGRAPHY === */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #FAFBFF;
  color: #25385b;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #204157;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #6DBC98;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #204157;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
p, .text-section {
  color: #29506a;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  color: #5c6a8c;
  margin: 16px 0;
  padding-left: 16px;
  border-left: 3px solid #6DBC98;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* === SOFT PASTEL PALETTE === */
:root {
  --primary: #204157;
  --secondary: #6DBC98;
  --accent: #FFF8EF;
  --pastel-blue: #E7EDF8;
  --pastel-green: #E9F8F2;
  --pastel-peach: #FFF0E4;
  --white: #fff;
  --grey: #efefef;
  --shadow: rgba(32,65,87,0.06);
  --text-dark: #204157;
  --text-body: #29506a;
  --text-light: #7D97B4;
  --border-radius: 18px;
  --card-bg: #fff;
  --hero-bg: #E7EDF8;
  --testimonial-bg: #FFF8EF;
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--white);
  box-shadow: 0 4px 14px -6px var(--shadow);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 22px 0 22px 0;
  justify-content: space-between;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 14px;
  color: var(--primary);
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
}
.main-nav > a:hover, .main-nav > a:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
}
.main-nav img {
  height: 36px;
  width: auto;
  vertical-align: middle;
}
.cta-button {
  background: linear-gradient(90deg, #6DBC98 0%, #FFE3D3 100%);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: 32px;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px -4px var(--shadow);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: box-shadow 0.18s, background 0.22s, color 0.22s;
  margin-left: 8px;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #73ceb1 0%, #fff0e4 100%);
  color: #25385b;
  box-shadow: 0 4px 24px -6px var(--secondary);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  margin-left: auto;
  padding: 10px;
  z-index: 100;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(232,241,250,0.97);
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  margin: 26px 26px 0 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  margin-top: 30px;
  padding: 0 36px;
}
.mobile-nav a {
  width: 100%;
  background: none;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 16px 0;
  border-bottom: 1px solid #E3EAF6;
  text-align: left;
  transition: background 0.12s, color 0.14s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-green);
  color: var(--secondary);
  padding-left: 12px;
}

/* === HERO SECTION === */
.hero {
  background: var(--hero-bg);
  padding: 64px 0 54px 0;
  text-align: left;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 730px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}
.hero .subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  color: #375a81;
  margin-bottom: 8px;
}

/* === CONTENT SECTIONS === */
.section {
  background: none;
  border-radius: var(--border-radius);
  margin-bottom: 60px;
  padding: 40px 20px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  width: 100%;
  margin-top: 8px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  max-width: 270px;
  background: var(--pastel-peach);
  border-radius: 16px;
  box-shadow: 0 2px 12px -5px var(--shadow);
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.feature-item img {
  width: 54px;
  height: 54px;
}
.feature-item h3 {
  color: var(--primary);
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 0px;
}
.feature-item p {
  color: #3e607c;
  font-size: 0.98rem;
  margin-bottom: 0;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 6px 20px -7px var(--secondary);
  transform: translateY(-5px) scale(1.03);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 8px -4px var(--shadow);
  padding: 26px 20px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 10px 38px -14px var(--secondary);
  transform: translateY(-2px) scale(1.02);
}
.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;
}

/* === TEAM LIST (about) === */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 16px 0 0 0;
}
.team-list .text-section {
  background: var(--pastel-green);
  padding: 20px 24px;
  border-radius: 12px;
  font-size: 1rem;
  color: #245867;
  box-shadow: 0 1px 7px -4px var(--secondary);
}

/* === FAQ Block === */
.faq-block {
  background: var(--pastel-blue);
  border-radius: 14px;
  padding: 20px 20px 14px 20px;
  margin-top: 12px;
  margin-bottom: 8px;
}
.faq-block p {
  margin-bottom: 10px;
}

/* === OL (steps/prozesse) === */
ol {
  margin-left: 1.5em;
  margin-bottom: 20px;
}
ol li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

/* === CONTACT DETAILS SECTION === */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #1a4b54;
}
.contact-details img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

/* === TESTIMONIALS ==== */
.testimonials {
  background: var(--pastel-blue);
  padding: 48px 0 56px 0;
}
.testimonials h2 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 22px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--testimonial-bg);
  border-radius: 18px;
  box-shadow: 0 2px 12px -6px var(--shadow);
  padding: 20px 28px;
  margin-bottom: 20px;
  max-width: 600px;
  color: #18344f;
  font-size: 1.06rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: box-shadow 0.1s, transform 0.13s;
}
.testimonial-card p {
  color: #214C5B;
  margin-bottom: 6px;
}
.testimonial-details {
  color: #5F899D;
  font-size: 0.98rem;
  margin-top: 2px;
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 6px 26px -12px var(--secondary);
  transform: translateY(-1px) scale(1.01);
}

/* === CTA SECTION === */
.cta {
  background: var(--pastel-peach);
  text-align: center;
  padding: 44px 0 40px 0;
}
.cta h2 {
  color: var(--primary);
  margin-bottom: 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
}
.cta .cta-button {
  margin: 0 auto;
  display: inline-block;
}

/* === FOOTER === */
footer {
  background: var(--pastel-blue);
  padding: 54px 0 24px 0;
  font-size: 15px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 170px;
}
.footer-brand img {
  height: 44px;
  width: auto;
}
.footer-brand .text-section {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
}
.footer-contact, .footer-nav, .footer-legal, .footer-social {
  min-width: 160px;
  max-width: 260px;
}
.footer-nav ul, .footer-legal ul, .footer-social ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li, .footer-legal li {
  margin-bottom: 8px;
}
.footer-social ul {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 9px;
}
.footer-social img {
  width: 30px;
  height: 30px;
  filter: grayscale(18%);
  opacity: 0.82;
  transition: filter 0.19s, opacity 0.12s;
}
.footer-social img:hover, .footer-social img:focus {
  filter: none;
  opacity: 1;
}
footer h3 {
  color: var(--primary);
  font-size: 1.13rem;
  margin-bottom: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
footer a {
  color: var(--primary);
  transition: color 0.2s;
  font-weight: 500;
  display: inline-block;
}
footer a:hover, footer a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.copyright {
  color: #5D7C9E;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 22px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 97vw;
  max-width: 540px;
  background: #fff8ef;
  color: #23273a;
  border-radius: 24px;
  box-shadow: 0 2px 32px -16px var(--primary);
  z-index: 700;
  padding: 22px 26px 18px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.24s;
}
.cookie-banner.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.cookie-btn {
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.12s, box-shadow 0.14s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 2px 12px -8px var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #50B48A;
}
.cookie-btn.reject {
  background: #e7edf8;
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #casaf3;
  color: #18344f;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--secondary);
  border: 1px solid #6DBC98;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e9f8f2;
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: var(--primary);
  border-radius: 22px;
  box-shadow: 0 6px 52px -10px var(--shadow);
  z-index: 1000;
  padding: 32px 30px 28px 30px;
  max-width: 460px;
  width: 96vw;
  display: none;
  flex-direction: column;
  gap: 22px;
  font-family: 'Roboto', Arial, sans-serif;
  animation: cookieModalIn 0.32s cubic-bezier(.68,-0.6,.32,1.6);
}
@keyframes cookieModalIn {
  0% { transform: translate(-50%, -60%) scale(0.82); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal h2 {
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1.4rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1.01rem;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 14px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  min-width: 120px;
}
.cookie-modal .close-modal {
  background: none;
  color: var(--primary);
  border: none;
  font-size: 1.6rem;
  position: absolute;
  top: 16px; right: 24px;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--secondary);
}

/* === LAYOUT AND FLEXBOX STRUCTURE === */
/* Provided atomic layout classes */
.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; }

/* === MICRO-INTERACTIONS === */
a, button, .cta-button, .cookie-btn {
  outline: none;
  transition: box-shadow 0.15s, background-color 0.16s, color 0.16s, transform 0.18s;
}
button:active, .cta-button:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* === RESPONSIVE DESIGN (MOBILE FIRST) === */
@media (max-width: 1020px) {
  .main-nav > a {
    font-size: 0.98rem;
    padding: 6px 9px;
  }
  .footer-flex {
    gap: 18px;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .footer-flex {
    flex-wrap: wrap;
    gap: 32px 12px;
    justify-content: flex-start;
  }
  .footer-brand, .footer-contact, .footer-nav, .footer-legal, .footer-social {
    flex: 1 1 225px;
    min-width: 170px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .hero .container, .hero .content-wrapper {
    align-items: flex-start;
  }
  .section, .hero, .cta, .testimonials {
    padding-left: 8px;
    padding-right: 8px;
  }
  .testimonial-card {
    padding: 16px 14px;
  }
  .cookie-banner {
    left: 50%;
    transform: translateX(-50%);
    max-width: 99vw;
    padding: 14px 8px;
  }
  .cookie-modal {
    padding: 20px 10px 14px 10px;
    max-width: 97vw;
  }
}
@media (max-width: 500px) {
  .hero h1 { font-size: 1.5rem; }
  h2 { font-size: 1.22rem; }
  .feature-item, .card {
    padding: 18px 12px;
  }
  .footer-brand img {
    height: 32px;
  }
}
@media (max-width: 420px) {
  .footer-brand, .footer-contact, .footer-nav, .footer-legal, .footer-social {
    min-width: 130px;
  }
  .cookie-banner {
    font-size: .97rem;
    padding: 9px 2px;
  }
}

/* === CUSTOM SCROLLBAR === */
body::-webkit-scrollbar {
  width: 8px;
  background: var(--pastel-blue);
}
body::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 8px;
}

/* === PRINT STYLES (ACCESSIBILITY) === */
@media print {
  header, .mobile-menu, footer, .cta, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}
