/* 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 {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  background: #F7FAFB;
  color: #293047;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #345676;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #86C232;
  outline: none;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; background: #edf2f6; }
::-webkit-scrollbar-thumb { background: #e7eaf5; border-radius: 8px; }

/* BRAND COLOR VARIABLES (with fallbacks) */
:root {
  --color-primary: #243B55;
  --color-secondary: #86C232;
  --color-accent: #FFFFFF;
  --color-bg: #F7FAFB;
  --color-soft-blue: #d7e9f7;
  --color-soft-green: #eefbe1;
  --color-soft-yellow: #fffbe9;
  --color-soft-pink: #fbe9ef;
  --color-soft-purple: #f1e8fb;
  --color-card: #fff;
  --color-shadow: rgba(60,90,140,0.10);
  --color-muted: #c1d0e7;
  --color-border: #e7eaf5;
  --color-focus: #A6D2FF;
}

/* GLOBAL CONTAINERS & LAYOUT */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

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

main section {
  background: transparent;
}

/* TYPOGRAPHY SCALE & STYLES --------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 12px;
}
h3 {
  font-size: 1.375rem; /* 22px */
  margin-bottom: 8px;
}
h4 { font-size: 1.125rem; margin-bottom: 8px; }
h5, h6 { font-size: 1rem; margin-bottom: 6px; }
p, ul, ol {
  font-size: 1rem;
  color: #293047;
  margin-bottom: 10px;
}
strong, b { font-weight: 700; }
.text-section ul,
.text-section ol {
  margin-left: 24px;
  margin-bottom: 12px;
}
.text-section li { margin-bottom: 7px; }

/* CUSTOM PASTEL BACKGROUNDS */
.content-wrapper.text-section,
.text-section {
  background: var(--color-card);
  border-radius: 16px;
  padding: 32px 26px;
  box-shadow: 0 2px 16px var(--color-shadow);
  gap: 18px;
}

/* LISTS & TABLES --------------------------*/
ol, ul {
  padding-left: 20px;
}
ul { list-style: disc; }
ol { list-style: decimal; padding-left: 22px; }
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-card);
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 18px;
}
th, td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
th { background: var(--color-soft-blue); font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* BUTTONS & INTERACTIVES ------------------------------------------------*/
.button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  border: none;
  padding: 13px 32px;
  border-radius: 28px;
  background: var(--color-secondary);
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.25s, transform 0.08s;
  margin: 7px 0 0 0;
  outline: none;
  position: relative;
}
.button.primary {
  background: var(--color-primary);
  color: var(--color-accent);
}
.button:hover, .button:focus {
  background: #bbd5a6;
  color: var(--color-primary);
  box-shadow: 0 2px 18px 4px #e7f4e1;
  transform: translateY(-1px) scale(1.045);
}
.button.primary:hover, .button.primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.button:active { transform: scale(0.95); }

/* HEADER & NAVIGATION ------------------------------------------------*/
header {
  width: 100%;
  padding-top: 22px;
  padding-bottom: 22px;
  background: linear-gradient(90deg, #fbfbfb 0%, #eeeafc 100%);
  box-shadow: 0 2px 24px var(--color-shadow);
  z-index: 20;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}
header img {
  max-height: 48px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  color: var(--color-primary);
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 15px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
nav a:hover, nav a:focus {
  background: var(--color-soft-blue);
  color: var(--color-secondary);
}
/* Hide Burger by default (show on mobile only) */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2.1rem;
  border: none;
  border-radius: 50%;
  padding: 5px 17px 5px 12px;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px #e5f5cc2c;
  transition: background 0.15s;
  align-items: center;
  justify-content: center;
  z-index: 101;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #e4f6c7;
}

/* MOBILE MENU OVERLAY ----------------------------------*/
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244, 248, 251, 0.98);
  backdrop-filter: blur(6px);
  transform: translateX(-110vw);
  opacity: 0;
  z-index: 200;
  transition: transform 0.4s cubic-bezier(0.7,0,0.22,1), opacity 0.3s;
  box-shadow: 0 2px 28px 1px #b2c6e22a;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.4rem;
  align-self: flex-end;
  padding: 20px 30px 8px 0;
  cursor: pointer;
  z-index: 201;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 60px 0 0 34px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 14px 0;
  border-radius: 18px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-soft-blue);
  color: var(--color-secondary);
}

/* HERO & CTA ------------------------------------------------*/
section:first-of-type {
  background: linear-gradient(135deg, var(--color-soft-blue) 60%, var(--color-soft-green) 100%);
}
section:last-of-type {
  background: linear-gradient(110deg, var(--color-soft-yellow) 64%, var(--color-soft-pink) 100%);
}

/* FLEXBOX CARD & SECTION PATTERNS -------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card);
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 28px 22px 20px 22px;
  min-width: 220px;
  flex: 1 1 239px;
  transition: box-shadow 0.19s, transform 0.13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px #c6d8f830;
  transform: translateY(-2px) scale(1.03);
  z-index: 2;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.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: var(--color-soft-purple);
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--color-shadow);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
  width: 320px;
  min-width: 240px;
  flex: 1 1 320px;
}
.testimonial-rating {
  font-size: 1.6rem;
  color: #fecb55;
  letter-spacing: 2px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 205px;
  background: var(--color-soft-green);
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 28px 20px 20px 20px;
  transition: box-shadow 0.18s, transform 0.15s;
  text-align: center;
  margin-bottom: 20px;
}
.feature-grid > div img {
  width: 38px; height: 38px;
  margin-bottom: 10px;
}
.feature-grid > div h3 {
  margin-bottom: 6px; text-align: center;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 4px 26px #d2efd120;
  background: #e7fbc3;
  transform: scale(1.03);
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.team-list > div {
  background: var(--color-soft-purple);
  border-radius: 15px;
  padding: 20px 18px;
  flex: 1 1 220px;
  min-width: 180px;
  box-shadow: 0 2px 14px #d1b3f119;
}
.team-values {
  margin-top: 12px;
  background: var(--color-soft-pink);
  border-radius: 13px;
  box-shadow: 0 2px 12px #f7bad314;
  padding: 26px 18px 18px 18px;
}
.team-values h3 { margin-bottom: 9px; }
.team-values ul {margin-bottom: 1px; }

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.faq-entry {
  background: var(--color-soft-yellow);
  border-radius: 13px;
  box-shadow: 0 2px 12px #fdebb614;
  padding: 20px 19px 16px 19px;
  flex: 1 1 270px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.15s;
}
.faq-entry h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.faq-entry:hover, .faq-entry:focus-within {
  box-shadow: 0 4px 17px #ffe6ac23;
  background: #fdf7e5;
  transform: scale(1.03);
}

/* FOOTER --------------------------------------------------*/
footer {
  background: linear-gradient(95deg, var(--color-soft-yellow) 41%, var(--color-soft-blue) 100%);
  padding: 34px 0 16px 0;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 18px var(--color-shadow);
}
footer .container {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
footer nav a {
  font-size: 1.08rem;
  color: var(--color-primary);
  border-radius: 12px;
  padding: 5px 11px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-soft-green);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}
.footer-contact img {
  height: 32px;
  margin-bottom: 5px;
}
.footer-contact address {
  font-style: normal;
  line-height: 1.5;
  font-size: 1rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--color-primary);
  background: #fff7;
  border-radius: 9px;
  padding: 3px 6px;
}
.footer-contact span img {
  width: 19px; height: 19px;
}


/* OS ICONS, DOWNLOAD LINKS (APP PAGE) */
.os-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  align-items: center;
}
.os-icons img { height: 36px; width: auto; }
.download-links {
  display: flex;
  gap: 13px;
  margin: 16px 0 12px 0;
  flex-wrap: wrap;
}

/* RESPONSIVE MEDIA QUERIES -------------------------------*/
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .footer-contact { font-size: 0.98rem; }
  .content-grid,
  .feature-grid,
  .team-list,
  .faq-list,
  .testimonial-list {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-grid > div, .team-list > div, .faq-entry, .testimonial-card {
    min-width: 155px;
    flex: 1 1 155px;
  }
  .footer-contact { max-width: 90vw; }
}
@media (max-width: 768px) {
  .container {
    padding-left: 9vw;
    padding-right: 9vw;
  }
  header .container { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  /* Footer: Stack column for mobile */
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .content-grid,
  .feature-grid,
  .team-list,
  .faq-list,
  .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .feature-grid > div, .faq-entry, .team-list > div {
    width: 100%;
    min-width: 0;
    flex: unset;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .content-wrapper.text-section, .text-section {
    padding: 21px 11px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .button { width: 100%; max-width: 290px; }
}
@media (max-width: 500px) {
  .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .content-wrapper.text-section, .text-section {
    padding: 12px 5px;
    border-radius: 9px;
  }
  .card,
  .feature-grid > div,
  .testimonial-card,
  .faq-entry {
    border-radius: 9px;
    padding: 14px 7px;
  }
}

/* MICRO-ANIMATIONS & TRANSITIONS -------------------------------*/
.button, .card, .feature-grid > div, .testimonial-card, .faq-entry, .team-list > div {
  transition: box-shadow 0.19s, transform 0.13s, background 0.15s, color 0.17s;
}
.button:active { filter: brightness(0.98); }

/* FOCUS STATES */
a:focus, .button:focus, .feature-grid > div:focus-within, .faq-entry:focus-within, .testimonial-card:focus-within {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* COOKIE CONSENT BANNER ---------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: linear-gradient(90deg, #eaffea 68%, #ffe6f3 100%);
  color: #2e3b49;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 -2px 16px #77987222;
  border-top: 1px solid #d6eebb;
  padding: 20px 34px 18px 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.37s cubic-bezier(0.7,0,0.22,1);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .button {
  font-size: 0.97rem;
  margin-left: 0;
  margin-right: 9px;
  min-width: 140px;
  box-shadow: 0 1px 5px #bad43b13;
}
.cookie-banner .button.cookie-settings {
  background: #fff2;
  border: 1px solid var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .button.cookie-settings:hover,
.cookie-banner .button.cookie-settings:focus {
  background: var(--color-soft-pink);
}
@media (max-width:650px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 16px 9vw 12px 10px;
  }
}

/* COOKIE MODAL POPUP -------------------------------------------*/
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 4000;
  background: rgba(60,70,100,0.13);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: background 0.2s;
}
.cookie-modal.open {
  display: flex;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #2e3b49;
  border-radius: 18px;
  box-shadow: 0 2px 38px 6px #c0efe440;
  max-width: 430px;
  width: 96vw;
  padding: 34px 26px 23px 26px;
  position: relative;
  font-size: 1.07rem;
}
.cookie-modal-content h3 {
  margin-top: 0; margin-bottom: 10px; color: var(--color-primary); font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-content ul {
  margin-bottom: 12px;
  margin-left: 0;
  list-style: none;
}
.cookie-modal-content li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-modal-content .cookie-switch {
  position: relative;
  width: 36px;
  height: 18px;
  display: inline-block;
}
.cookie-modal-content .cookie-switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal-content .slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #eaf7cd;
  border-radius: 20px;
  transition: background 0.2s;
}
.cookie-modal-content .cookie-switch input:checked + .slider {
  background: var(--color-secondary);
}
.cookie-modal-content .slider:before {
  position: absolute; 
  content: '';
  height: 14px; width: 14px;
  left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-modal-content .cookie-switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal-content .always-on {
  color: #78ac25;
  font-weight: 700;
  margin-left: 7px;
}
.cookie-modal-content .modal-actions {
  margin-top: 15px;
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-modal-close {
  position: absolute;
  top: 11px; right: 18px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 4010;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-secondary);
}

/* COOKIE CATEGORY LABELS */
.cookie-category {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-primary);
  margin-right: 12px;
  min-width: 112px;
  display: inline-block;
}

/* FORMS (Kontakt)  -------------------------------------*/
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid var(--color-muted);
  padding: 8px 10px;
  background: #fff;
  margin-bottom: 16px;
  width: 100%;
  box-shadow: 0 0 4px #b6eeb33b inset;
  color: #243B55;
  transition: border 0.17s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-secondary);
  box-shadow: 0 0 9px #c2f7ab5a;
  outline: none;
}
label { font-size: 1rem; margin-bottom: 7px; display: block; }

/* CARD TABLES & HIGHLIGHTS FOR PASTEL ------------------*/
tr.highlight td {
  background: var(--color-soft-green);
  color: var(--color-primary);
}

/* ACCESSIBLE HIDDEN (for screenreaders) */
.visually-hidden {
  border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap;
}

/* UTILITY CLASSES ----------------------------------*/
.center { text-align: center; justify-content: center; align-items: center; }
.muted { color: #888; font-size: 0.98em; }

/* Custom pastel divider */
.pastel-divider {
  height: 2px;
  background: linear-gradient(90deg, #eceffe 0%, #eaffea 100%);
  border: none;
  margin: 28px 0;
  border-radius: 1px;
}


/* ENSURE SPACING & GAPS */
.section,
.content-wrapper,
.feature-grid,
.testimonial-list,
.faq-list,
.card-container,
.team-list,
.content-grid {
  gap: 20px;
}
.card, .testimonial-card, .faq-entry, .feature-grid > div {
  margin-bottom: 20px;
}

/* NO OVERLAPS: Prevent overflow on flex children */
.card, .feature-grid > div, .testimonial-card, .faq-entry, .team-list > div {
  min-width: 0;
}

/* Hide elements visually but keep for accessibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* END CSS */
