/* ===== 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section{
  display:block;
}
body {
  line-height: 1.5;
  background: #F9F5F0;
  color: #183153;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: #183153;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #47A6C6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #dde3ea;
}

/* ===== BRANDING & TYPOGRAPHY ===== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400|Open+Sans:400,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #183153;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p, li, ul, ol, address {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #183153;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
ul, ol {
  padding-left: 20px;
}

/* ===== SHARED LAYOUT WRAPPERS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(24,49,83,0.07);
  padding: 40px 32px;
  margin-bottom: 32px;
}
.text-section {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

/* ===== GLOBAL SECTION LAYOUTS ===== */
.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 16px 0 rgba(24,49,83,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  min-width: 280px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(71,166,198,0.16);
  transform: translateY(-2px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  background: #f5f8fc;
  border-radius: 10px;
  box-shadow: 0 1px 7px 0 rgba(24,49,83,0.08);
  color: #183153;
  margin-bottom: 20px;
  min-width: 0;
  font-size: 1.06rem;
}
.testimonial-card p {
  margin: 0;
  flex: 1 1 0;
}
.testimonial-card strong {
  min-width: 140px;
  color: #183153;
  opacity: 0.82;
  text-align: right;
  font-size: 0.96em;
}
.rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e3edf5;
  color: #183153;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 14px;
  font-size: 1.1rem;
}

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

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #f5f8fc;
  border-radius: 10px;
  box-shadow: 0 1px 7px 0 rgba(24,49,83,0.06);
  padding: 25px 18px 22px 18px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.25s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 20px 0 rgba(71,166,198,0.13);
  transform: translateY(-2px) scale(1.015);
}
.feature-grid img {
  margin-bottom: 12px;
}

/* ===== BUTTONS & CALLS TO ACTION ===== */
.cta-btn, .cookie-accept, .cookie-reject, .cookie-settings, .cookie-save  {
  background-color: #183153;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(24,49,83,0.08);
  transition: background 0.2s, color 0.2s, transform 0.18s;
  text-align: center;
  margin-top: 15px;
}
.cta-btn:hover, .cta-btn:focus,
.cookie-accept:hover, .cookie-accept:focus {
  background-color: #47A6C6;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  outline: none;
}
.cookie-settings, .cookie-save {
  background: #47A6C6;
  color: #fff;
}
.cookie-settings:hover, .cookie-save:hover {
  background: #183153;
  color: #fff;
}
.cookie-reject {
  background: #f3e7df;
  color: #183153;
}
.cookie-reject:hover {
  background: #b2c2d4;
  color: #183153;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(24,49,83,0.06);
  position: sticky;
  top: 0;
  z-index: 99;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  background: transparent;
}
.main-nav img {
  height: 42px;
  width: auto;
  margin-right: 14px;
}
.main-nav a {
  color: #183153;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 4px;
  transition: background 0.13s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e3edf5;
  color: #47A6C6;
  outline: none;
}
.main-nav .cta-btn {
  margin-left: 14px;
  background: #47A6C6;
  color: #fff;
  box-shadow: 0 1px 7px 0 rgba(71,166,198,0.16);
}
.main-nav .cta-btn:hover {
  background: #183153;
  color: #fff;
}

/* ==== MOBILE NAVIGATION  ==== */
.mobile-menu-toggle {
  display: none;
  background: #183153;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  border-radius: 6px;
  width: 48px;
  height: 48px;
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 102;
  justify-content: center;
  align-items: center;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(24,49,83,0.16);
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 340px;
  height: 100vh;
  z-index: 101;
  padding: 36px 28px 28px 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #183153;
  font-size: 2rem;
  position: absolute;
  right: 22px;
  top: 16px;
  cursor: pointer;
  z-index: 110;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 36px;
  width: 100%;
}
.mobile-nav a {
  color: #183153;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.11rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 13px 7px;
  background: transparent;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e3edf5;
  color: #47A6C6;
}

/* ==== COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(40px);
  width: 98vw;
  max-width: 490px;
  background: #fff;
  border: 1px solid #e3edf5;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -2px 24px 0 rgba(24,49,83,0.14);
  padding: 27px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.59,0.27,0.56,0.97);
  font-size: 1rem;
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.cookie-banner strong {
  color: #183153;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
  margin-top: 16px;
  flex-wrap: wrap;
  width: 100%;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.96);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 7px 48px 0 rgba(24,49,83,0.22);
  padding: 34px 26px 26px 26px;
  z-index: 320;
  min-width: 320px;
  max-width: 98vw;
  width: 370px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.37s, transform 0.37s cubic-bezier(0.46,0.13,0.62,0.96);
  font-size: 1rem;
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  color: #183153;
  font-size: 1.29em;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 13px 0;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #e3edf5;
  border-radius: 11px;
  position: relative;
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-modal .cookie-toggle:checked {
  background: #47A6C6;
}
.cookie-modal .cookie-toggle:disabled {
  background: #c1cbd4;
  opacity: 0.64;
  cursor: not-allowed;
}
.cookie-modal .cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(24,49,83,0.08);
  transition: left 0.19s;
}
.cookie-modal .cookie-toggle:checked::before {
  left: 19px;
}
.cookie-modal .cookie-buttons{
  display: flex;
  gap: 14px;
  margin-top: 24px;
  width: 100%;
  justify-content: flex-end;
}
.cookie-modal .cookie-category label {
  font-size: 1em;
}
.cookie-modal .cookie-category small {
  color: #586d88;
}
.cookie-modal .cookie-category[aria-disabled="true"] label {
  color: #bcbfc3;
}

/* ===== FOOTER ===== */
footer {
  background: #183153;
  color: #fff;
  padding: 32px 0 0 0;
  margin-top: 60px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto 18px auto;
  padding: 0 20px;
}
.footer-wrapper > div {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-wrapper img {
  height: 44px;
  width: auto;
  margin-bottom: 10px;
}
footer address {
  font-style: normal;
  color: #e3edf5;
  font-size: 1em;
  margin-bottom: 10px;
  line-height: 1.5;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  color: #e3edf5;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  text-decoration: none;
  opacity: 0.9;
  padding: 2px 2px 2px 0;
  border-radius: 3px;
  transition: color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: #47A6C6;
  background: rgba(71,166,198,0.09);
  outline: none;
}
footer small {
  display: block;
  color: #e3edf5;
  text-align: center;
  opacity: 0.6;
  font-size: 0.97em;
  letter-spacing: 0.02em;
  padding: 13px 0 12px 0;
  border-top: 1px solid #295b93;
  margin-top: 24px;
}

/* ===== TABLES (Vergleich) ===== */
table {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px 0 rgba(24,49,83,0.06);
  overflow: hidden;
  margin: 15px 0 25px 0;
}
th {
  background: #183153;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.0em;
  font-weight: 600;
  border-bottom: 3px solid #47A6C6;
  padding: 14px 10px;
}
td {
  background: transparent;
  color: #183153;
  font-size: 1.02em;
}

/* ===== ADDRESS ICONS ===== */
address img {
  display: inline-block;
  vertical-align: middle;
  height: 1.19em;
  width: auto;
  margin-right: 4px;
  filter: grayscale(100%) brightness(0.9);
}

/* ===== UTILITY CLASSES ===== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.text-center { text-align: center; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .container, .main-nav, .footer-wrapper {
    max-width: 980px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .content-wrapper {
    padding: 32px 16px;
    gap: 18px;
  }
  .feature-grid > div {
    max-width: 99vw;
  }
}
@media (max-width: 900px) {
  .footer-wrapper {
    gap: 24px;
  }
  .main-nav {
    font-size: 0.95rem;
    gap: 13px;
  }
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 34px 7px;
    margin-bottom: 35px;
  }
  .content-wrapper {
    padding: 22px 5px;
    gap: 15px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .card {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  table, th, td {
    font-size: 0.98em;
    padding: 8px 5px;
  }
}
@media (max-width: 660px) {
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.32rem; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 17px;
  }
}
@media (max-width: 470px) {
  .content-wrapper {
    padding: 8px 0;
  }
  .cookie-banner {
    padding: 13px 2px 10px 2px;
    border-radius: 10px 10px 0 0;
  }
  .cookie-modal {
    padding: 12px 5px 15px 6px;
    min-width: 0;
    width: 90vw;
  }
}

/* ===== ANIMATIONS ===== */
.cta-btn, .cookie-accept, .cookie-reject, .cookie-settings, .cookie-save {
  transition: background 0.21s, color 0.21s, transform 0.15s;
}
.card, .feature-grid > div {
  transition: box-shadow 0.26s, transform 0.22s;
}
.mobile-menu, .cookie-banner, .cookie-modal {
  transition: transform 0.30s, opacity 0.30s;
}

/* ===== MISC FIXES ===== */
body { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 8px; background: #f9f5f0; }
::-webkit-scrollbar-thumb { background: #e3edf5; border-radius: 8px; }

/* Hide outline except on keyboard nav */
:focus { outline: 2px solid #47A6C6; outline-offset: 0; }
:focus:not(:focus-visible) { outline: none; }

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