/* === 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
  background: #FAFAFA;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #254259;
  font-size: 16px;
  background: #FAFAFA;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #254259;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #799ABC;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 10px;
}

/* === BRAND FONTS === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #254259;
  line-height: 1.2;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 16px;
  color: #254259;
}
strong, b {
  font-weight: 700;
}

/* === CONTAINER & LAYOUT === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
section {
  background: #FAFAFA;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(37,66,89,0.04);
  position: relative;
  z-index: 12;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 8px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  color: #254259;
}
nav a:hover, nav a:focus {
  background: #E7ECF2;
  color: #254259;
}

.cta-primary {
  background: #254259;
  color: #fff !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 10px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 28px;
  transition: background 0.2s, box-shadow 0.18s;
  box-shadow: 0 2px 10px rgba(37,66,89,0.07);
  display: inline-block;
  cursor: pointer;
  outline: none;
  margin-left: 8px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #799ABC;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,66,89,0.13);
}
.cta-secondary {
  background: #fff;
  color: #254259 !important;
  border: 2px solid #254259;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 8px 22px;
  font-size: 0.98rem;
  line-height: 1.5;
  border-radius: 28px;
  display: inline-block;
  margin-top: 8px;
  transition: background .18s, color .18s, border .18s;
  cursor: pointer;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #E7ECF2;
  color: #254259;
  border-color: #799ABC;
}

/* Hamburger/Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  font-size: 2rem;
  border: none;
  color: #254259;
  cursor: pointer;
  margin-left: 20px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E7ECF2;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.4,1.2,.55,1);
  box-shadow: 0 2px 32px rgba(37,66,89,0.14);
  padding: 0 0 24px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #254259;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 22px 24px 10px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
  padding: 8px 32px;
  margin-top: 18px;
}
.mobile-nav a {
  font-size: 1.15rem;
  padding: 14px 0;
  border-radius: 6px;
  color: #254259;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: none;
  text-align: left;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E7ECF2;
  color: #254259;
}

/* Hide main nav on mobile */
@media (max-width: 950px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 750px) {
  .logo img {
    height: 38px;
  }
  .cta-primary {
    padding: 9px 18px;
    font-size: 0.97rem;
  }
}

/* === FOOTER === */
footer {
  background: #fff;
  border-top: 1px solid #E7ECF2;
  margin-top: 40px;
  box-shadow: 0 -2px 16px rgba(37,66,89,0.04);
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 20px;
  font-size: 0.93rem;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
footer nav a {
  color: #254259;
  font-size: 0.98em;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #799ABC;
}

@media (max-width: 750px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    padding: 18px 12px;
    align-items: flex-start;
  }
  footer nav {
    gap: 12px;
  }
}

/* === SECTIONS & SPACING === */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.container {
  width: 100%;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  align-items: stretch;
}
.feature-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(37,66,89,0.07);
  padding: 24px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 245px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 22px rgba(37,66,89,0.11);
  transform: translateY(-3px) scale(1.015);
}
.feature-grid img {
  width: 48px;
  height: 48px;
}

ul, ol {
  padding-left: 20px;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1em;
}
ul li img {
  width: 28px;
  height: 28px;
}
ol li strong {
  font-size: 1.09em;
}

/* Card Containers Patterns -- for future extensibility */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(37,66,89,0.08);
  transition: box-shadow .15s, transform .14s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(37,66,89,0.13);
  transform: translateY(-2px) scale(1.013);
}
.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 28px 20px 28px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(37,66,89,0.06);
  border-radius: 12px;
  margin-bottom: 20px;
  max-width: 690px;
  transition: box-shadow .14s, transform .13s;
}
.testimonial-card p {
  color: #254259;
  font-style: italic;
  margin-bottom: 4px;
  font-size: 1.05rem;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #799ABC;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(37,66,89,0.13);
  transform: translateY(-2px) scale(1.012);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* === Buttons & Microinteractions === */
button, .cta-primary, .cta-secondary {
  cursor: pointer;
  transition: background .19s, color .15s, border .13s, box-shadow .18s;
}
button:focus, a:focus {
  outline: 2px solid #799ABC;
  outline-offset: 2px;
}

/* === Responsive Typography === */
@media (max-width: 950px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.25rem;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.05rem; }
}

/* === MOBILE FLEX LAYOUTS === */
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .text-section {
    gap: 13px;
  }
}
@media (max-width: 750px) {
  .container {
    padding: 0 8px;
  }
  section {
    padding: 24px 0 20px 0;
    margin-bottom: 40px;
  }
  .content-wrapper {
    gap: 12px;
  }
}
@media (max-width: 650px) {
  .feature-grid > div, .testimonial-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    padding: 18px 10px 16px 10px;
  }
  .testimonial-card {
    padding: 16px 10px;
  }
}
@media (max-width: 700px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* === TABLES (If any in legal pages) === */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 22px;
  font-size: 1rem;
}
thead {
  background: #E7ECF2;
}
th, td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #E7ECF2;
}

/* === MISC ELEMENTS === */
::-webkit-input-placeholder { color: #888; opacity: 1; }
::-moz-placeholder { color: #888; opacity: 1; }
:-ms-input-placeholder { color: #888; opacity: 1; }
::placeholder { color: #888; opacity: 1; }

hr {
  border: 0;
  border-top: 1px solid #E7ECF2;
  margin: 24px 0;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #E7ECF2;
  box-shadow: 0 -2px 18px rgba(37,66,89,0.13);
  padding: 22px 16px 22px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 36px;
  z-index: 9999;
  transition: transform 0.36s cubic-bezier(.33,1.25,.58,1), opacity .15s;
}
.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  color: #254259;
  font-size: 1rem;
  margin-right: 18px;
  max-width: 550px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button, .cookie-banner .cta-cookie-settings {
  background: #254259;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: background .15s, color .13s;
}
.cookie-banner .cta-cookie-settings {
  background: #799ABC;
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner .cta-cookie-settings:hover {
  background: #1c3141;
}
.cookie-banner .cta-cookie-reject {
  background: #E7ECF2;
  color: #254259;
  border: 1.5px solid #254259;
}
.cookie-banner .cta-cookie-reject:hover {
  background: #fff;
  color: #254259;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 6px;
  }
  .cookie-banner .cookie-text {
    margin-right: 0;
    font-size: 0.99rem;
  }
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,66,89,0.16);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity .15s;
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 24px rgba(37,66,89,0.13);
  width: 98%;
  max-width: 410px;
  padding: 32px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 12000;
  animation: fade-in-modal 0.32s cubic-bezier(.33,1.13,.68,1);
}
@keyframes fade-in-modal {
  0% { transform: translateY(32px) scale(.97); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  background: #E7ECF2;
  border-radius: 9px;
  padding: 9px 13px 9px 13px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: #254259;
  margin-bottom: 0;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  margin-right: 12px;
  accent-color: #254259;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-category.essential label {
  font-weight: 600;
  color: #254259;
}
.cookie-modal .cookie-category.essential input {
  display: none;
}
.cookie-modal .cookie-category.essential::after {
  content: 'immer aktiviert';
  color: #799ABC;
  font-size: 0.98rem;
  margin-left: auto;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  background: #254259;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 22px;
  transition: background .15s;
}
.cookie-modal button.cta-cookie-cancel {
  background: #E7ECF2;
  color: #254259;
}
.cookie-modal button.cta-cookie-cancel:hover {
  background: #fff;
  color: #254259;
}
.cookie-modal button:hover {
  background: #1c3141;
}

@media (max-width: 500px) {
  .cookie-modal {
    padding: 17px 5px 16px 10px;
    width: 98%;
  }
}

/* === UTILITIES === */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* === SCANDINAVIAN "CLEAN" AESTHETIC === */
body, section, .container {
  background: #FAFAFA;
}
.card, .feature-grid > div, .testimonial-card {
  background: #fff;
  border-radius: 14px;
}

/* NEUTRAL, SOFT BORDERS AND SHADOWS */
.card, .feature-grid > div, .testimonial-card, .cookie-modal {
  box-shadow: 0 2px 14px rgba(37,66,89,0.07);
}

/* LIGHTWEIGHT, SIMPLE SHADOWS ON HOVER */
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 22px rgba(37,66,89,0.12);
}

/* SUBTLE BREATHING ROOM */
section, .section {
  margin-bottom: 60px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.card + .card, .feature-grid > div + .feature-grid > div, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* SIMPLE, FUNCTIONAL BEAUTY */
input, textarea, select {
  border: 1px solid #E7ECF2;
  border-radius: 7px;
  padding: 12px 11px;
  font-family: inherit;
  background: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #254259;
  width: 100%;
  transition: border-color .13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #799ABC;
  outline: none;
}

/* === ANIMATIONS === */
button, .cta-primary, .cta-secondary, .feature-grid > div, .card, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow .15s, background .17s, color .14s, transform .13s;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0ms !important;
  }
}

/* === EXTRAS FOR SEO/LEGALS === */
.text-section a {
  color: #799ABC;
  text-decoration: underline;
  transition: color 0.17s;
}
.text-section a:hover, .text-section a:focus {
  color: #254259;
}

/* === SUCCESS/THANK YOU PAGES === */
.thank-you-message {
  background: #fff;
  padding: 36px 26px;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(37,66,89,0.07);
  font-size: 1.1rem;
  color: #254259;
  margin: 0 auto;
  max-width: 540px;
  text-align: center;
}

/* === ENSURE NO OVERLAP, RESPONSIVE GAPS === */
.section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  margin-bottom: 20px;
  gap: 20px;
}

/* === PRINT STYLES === */
@media print {
  header, .mobile-menu, footer, .cookie-banner, .cookie-modal, .cookie-modal-overlay {
    display: none !important;
  }
  section, .container {
    box-shadow: none !important;
    padding: 0 !important;
  }
}
