/* 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;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #222;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #255067;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #74A1BF;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
hr {
  border: none;
  border-top: 1px solid #F2F6F9;
  margin: 40px 0;
}
strong {
  font-weight: 600;
}

/* BRAND FONTS & TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #255067;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.3rem;
}
h4, h5 {
  font-size: 1.1rem;
}
p, li, dd, dt {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #222;
  margin-bottom: 18px;
  font-weight: 400;
}
small {
  color: #666;
  font-size: 0.93em;
}

/* --- PAGE CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  max-width: 700px;
}

/* --- HEADER & DESKTOP NAV --- */
header {
  background: #fff;
  border-bottom: 1px solid #F2F6F9;
  position: sticky;
  top: 0;
  z-index: 30;
}
header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
}
header nav > a img {
  height: 38px;
  width: auto;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  list-style: none;
}
header nav ul li {
  margin: 0;
}
header nav ul li a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #255067;
  padding: 7px 0;
  transition: color 0.17s;
  border-radius: 3px;
}
header nav ul li a:hover,
header nav ul li a.active {
  color: #74A1BF;
  background: #F2F6F9;
}
header nav .button.primary {
  margin-left: auto;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #255067;
  display: none;
  cursor: pointer;
  margin-left: 14px;
  z-index: 34;
  padding: 6px 15px;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #74A1BF;
}
.mobile-menu {
  position: fixed;
  background: #fff;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.39,.575,.565,1);
  box-shadow: -2px 0 18px 0 rgba(27,55,70,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #255067;
  cursor: pointer;
  z-index: 66;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #74A1BF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 68px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: #255067;
  padding: 12px 0;
  border-radius: 3px;
  transition: background 0.2s, color 0.16s;
  width: 100%;
  display: block;
  text-align: left;
}
.mobile-nav a:hover {
  color: #fff;
  background: #74A1BF;
}

/* Show/hide desktop/mobile nav */
@media (max-width: 992px) {
  header nav ul,
  header nav .button.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- BUTTONS --- */
.button,
.button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 32px;
  color: #fff;
  background-color: #255067;
  border: none;
  border-radius: 7px;
  box-shadow: 0 1.5px 11px 0 rgba(37, 80, 103, 0.06);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
  min-width: 140px;
}
.button.primary:hover,
.button.primary:focus {
  background: #74A1BF;
  color: #255067;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 7px 20px 0 rgba(116, 161, 191, 0.10);
  outline: none;
}
.button.secondary {
  color: #255067;
  background: #F2F6F9;
  border: 1.5px solid #255067;
}
.button.secondary:hover,
.button.secondary:focus {
  background: #74A1BF33;
  border-color: #255067;
  color: #255067;
  outline: none;
}

/* --- SECTIONS AND SPACING --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
section:last-of-type {
  margin-bottom: 0;
}

/* --- CARD LAYOUTS & UTILITIES --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border: 1px solid #F2F6F9;
  border-radius: 10px;
  box-shadow: 0 3px 18px 0 rgba(37,80,103,0.04);
  padding: 26px 20px;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.19s, border-color 0.17s, transform .18s;
}
.card:hover {
  box-shadow: 0 8px 30px 0 rgba(116, 161, 191, 0.12);
  border-color: #74A1BF;
  transform: translateY(-2px) scale(1.025);
}
.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;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.feature-grid > div {
  background: #F2F6F9;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 1.5px 10px 0 rgba(116,161,191,0.04);
  min-width: 235px;
  flex: 1 1 235px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  transition: box-shadow 0.16s, background .19s;
}
.feature-grid > div:hover {
  background: #eaf2f7;
  box-shadow: 0 5px 18px 0 rgba(116,161,191,0.10);
}
.feature-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 10px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  background: #F2F6F9;
  border-radius: 9px;
  box-shadow: 0 4px 16px 0 rgba(37,80,103,0.05);
  margin-bottom: 20px;
  flex-direction: column;
  justify-content: center;
  color: #1e3442;
  font-size: 1.08rem;
  max-width: 660px;
  border: 1px solid #e8eff4;
  /* Ensures readability on light bg */
}
.testimonial-card strong {
  display: block;
  margin-top: 8px;
  color: #255067;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1em;
}
.testimonial-card img[alt*="Stern"],
.testimonial-card img[src*="star"] {
  height: 24px;
  width: 24px;
  margin-right: 2px;
  display: inline-block;
}

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

.support-cta {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  align-items: center;
}

/* --- TABLE --- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-bottom: 22px;
  background: #fff;
}
thead th {
  text-align: left;
  color: #255067;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  border-bottom: 2px solid #F2F6F9;
  padding: 12px 10px;
}
tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #F2F6F9;
}
tbody tr:last-of-type td {
  border-bottom: none;
}

/* --- FORM ELEMENTS --- */
input, select, textarea {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  border: 1px solid #e8eff4;
  border-radius: 6px;
  padding: 12px 14px;
  background: #F2F6F9;
  color: #222;
  margin-bottom: 12px;
  width: 100%;
  transition: border-color 0.16s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #74A1BF;
}
label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #255067;
  margin-bottom: 7px;
}

/* --- LISTS --- */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 7px;
}
ul li:last-of-type {
  margin-bottom: 0;
}

/* --- FOOTER --- */
footer {
  background: #F2F6F9;
  border-top: 1px solid #e8eff4;
  padding: 45px 0;
  color: #222;
  font-size: 1rem;
}
footer .container {
  max-width: 1200px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
}
footer a {
  color: #255067;
  transition: color 0.18s;
}
footer a:hover {
  color: #74A1BF;
}
footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer ul li {
  margin: 0;
}
footer img {
  height: 38px;
  width: auto;
  margin-bottom: 8px;
}
footer p, footer address {
  font-size: 1rem;
  color: #222;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 10px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid #F2F6F9;
  box-shadow: 0 -2px 14px 0 rgba(37, 80, 103, 0.07);
  padding: 26px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  z-index: 101;
  font-size: 1rem;
  transition: transform 0.3s;
}
.cookie-banner.closed {
  transform: translateY(120%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-banner .button {
  min-width: 120px;
  font-size: 0.96rem;
  padding: 11px 22px;
  margin: 0;
}

/** COOKIE CONSENT MODAL **/
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(37,80,103,0.28);
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.25s;
}
@keyframes fadein {
  from { opacity:0; } to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 11px;
  max-width: 430px;
  width: 95vw;
  padding: 40px 32px 32px 32px;
  box-shadow: 0 20px 56px 0 rgba(37, 80, 103, 0.19);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 151;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: #255067;
}
.cookie-categories {
  margin: 17px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category input[type=checkbox], .cookie-category input[type=radio] {
  accent-color: #255067;
  width: 20px; height: 20px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 22px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #255067;
  font-size: 1.5rem;
  cursor: pointer;
}
/* Always enabled cookies visually distinct */
.cookie-category.essential label:after {
  content: ' (erforderlich)';
  color: #aaa;
  font-size: 0.92em;
}
.cookie-category.essential input[type=checkbox] {
  outline: 2px solid #74A1BF;
  background: #eaf2f7;
  pointer-events: none;
}

/* --- SPACING AND FLEX PATTERNS (MANDATORY) --- */
.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;
}

/* --- DL FAQ --- */
dl {
  margin-top: 12px;
  margin-bottom: 12px;
}
dt {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #255067;
  margin-bottom: 5px;
  font-size: 1.06rem;
  margin-top: 18px;
}
dd {
  margin-bottom: 9px;
}

/* --- ADDRESS --- */
address {
  font-style: normal;
  margin-bottom: 24px;
  color: #11374a;
}

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */
@media (max-width: 992px) {
  .feature-grid,
  .content-grid,
  .footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  header nav {
    padding: 14px 0;
    gap: 20px;
  }
  h1 {
    font-size: 2.0rem;
    margin-bottom: 15px;
  }
  h2 {
    font-size: 1.3rem;
  }
  section, .section {
    padding: 28px 7px;
    margin-bottom: 38px;
  }
  .feature-grid,
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonial-card {
    padding: 15px 8px;
    font-size: 0.98rem;
    gap: 14px;
  }
  .card, .feature-grid > div {
    min-width: unset;
    max-width: none;
    width: 100%;
  }
  .cookie-modal {
    padding: 22px 6vw 16px 6vw;
  }
  .footer .content-wrapper {
    align-items: flex-start;
    gap: 24px;
    flex-direction: column;
  }
  footer {
    padding: 26px 0 18px 0;
  }
}

/* Additional micro-interactions */
.button, .button.primary, .button.secondary {
  will-change: transform, box-shadow;
}
.button:active, .button.primary:active {
  transform: translateY(1.5px) scale(0.98);
}
/* Focus state for accessibility */
.button:focus {
  outline: 2px solid #74A1BF;
  outline-offset: 2px;
}
header nav ul li a:focus {
  outline: 2px solid #74A1BF;
  outline-offset: 2px;
}

/* --- Utility classes --- */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .button, .button.primary, .button.secondary, .card, .feature-grid > div, .testimonial-card, .mobile-menu {
    transition: background 0.18s, color 0.18s, box-shadow 0.22s, border-color 0.17s, transform 0.18s;
  }
}

/* --- Print styles --- */
@media print {
  header, .mobile-menu, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .container { padding: 0 !important; margin: 0 !important; box-shadow: none !important; background: #fff !important; border: none !important; }
}

/* --- END --- */
