/* ========================== 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; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.4;
  min-height: 100vh;
  background: #F4F7FB;
  color: #14305C;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.15s; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; }

/* ========================= BRAND FONTS ========================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,700;1,700&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #14305C;
}

h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.01em; }
h2 { font-size: 2rem;   margin-bottom: 20px; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem;  margin-bottom: 14px; letter-spacing: 0.01em; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }
p  { font-size: 1rem; margin-bottom: 16px; }
blockquote { font-size: 1.12rem; font-style: italic; color: #14305C; margin-bottom: 10px; }
cite, .testimonial-info span { font-weight: 500; color: #14305C; font-style: normal; font-size: 1rem; }
strong { font-weight: bold; }

/* ========================= GEOMETRIC STRUCTURE/GENERAL LAYOUTS ========================= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 14px rgba(20,48,92,0.06);
}

/* ========================== NAVIGATION ========================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(20,48,92,0.06);
  z-index: 101;
  position: sticky;
  top: 0;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1140px;
  margin: 0 auto;
  min-height: 64px;
  gap: 16px;
}
.nav-bar img { height: 36px; width: auto; display: block; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.desktop-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #14305C;
  letter-spacing: 0.04em;
  position: relative;
  padding: 3px 0;
  transition: color 0.15s;
}
.desktop-nav a:after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #50A381;
  transition: width 0.18s cubic-bezier(0.4,0,0.2,1);
  border-radius: 1px;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  color: #50A381;
}
.desktop-nav a:hover:after, .desktop-nav a:focus:after {
  width: 80%;
}

.cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #fff;
  background: #14305C;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20,48,92,0.10);
  margin-left: 16px;
  transition: background 0.2s, transform 0.16s;
  letter-spacing: 0.04em;
  outline: none;
  position: relative;
  z-index: 1;
}
.cta-button:hover, .cta-button:focus {
  background: #50A381;
  color: #fff; 
  transform: translateY(-2px) scale(1.04);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #F4F7FB;
  border: none;
  color: #14305C;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.14s;
  z-index: 200;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e9f0f8;
}

/* ========================== MOBILE BURGER MENU ========================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,48,92,0.96);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.38,.67,.63,.75);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1001;
  box-shadow: 3px 0 18px rgba(20,48,92,0.15);
  /* Hide by default */
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  margin: 18px 24px 12px 0;
  cursor: pointer;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #50A381;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #50A381;
  color: #14305C;
}

/* Hide desktop nav and show burger menu on mobile */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .cta-button {
    font-size: 1rem;
    padding: 10px 20px;
    margin-left: 0px;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .nav-bar {
    gap: 7px;
    padding: 8px 10px;
  }
  .cta-button {
    padding: 9px 16px;
    font-size: 0.95rem;
  }
}

/* ======================== SECTIONS & SPACING ========================= */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}

.section:last-child { margin-bottom: 0; }
.content-wrapper {
  gap: 28px;
  margin-bottom: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;   /* for potential decorations only */
}
.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;
}

/* ==================== SERVICE CARDS, CARDS ==================== */
.service-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 11px rgba(20,48,92,0.09);
  padding: 28px 18px;
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2.2px solid #F4F7FB;
  transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 4px 20px rgba(80,163,129,0.13);
  border: 2.2px solid #50A381;
  transform: translateY(-4px) scale(1.02);
}

/* ====================== FEATURE LISTS ================= */
.features, .service-highlights ul, .included-features ul, .faq-snippet ul, .content-wrapper ul, .text-section ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.features li, .service-highlights ul li, .included-features ul li, .faq-snippet ul li, .content-wrapper ul li, .text-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: transparent;
  font-size: 1rem;
  color: #14305C;
  padding: 0;
  border: none;
}
.features li img, .content-wrapper ul li img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-right: 8px;
  filter: saturate(0.4) brightness(0.9);
}

/* ==================== TESTIMONIALS ==================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F4F7FB;
  border-radius: 16px;
  box-shadow: 0 2px 9px rgba(20,48,92,0.07);
  margin-bottom: 20px;
  border-left: 5px solid #50A381;
  max-width: 560px;
  color: #14305C;
}
.testimonial-card blockquote {
  color: #14305C;
}
.testimonial-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

/* Guarantee text highest contrast on light background */
.testimonial-card p,
.testimonial-card blockquote,
.testimonial-card cite,
.testimonial-card span {
  color: #14305C;
}

/* ============== TABLE STYLING (Preise) =============== */
table {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 11px rgba(20,48,92,0.09);
  overflow: hidden;
  margin-bottom: 32px;
  font-size: 1rem;
}
th, td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1.2px solid #F4F7FB;
}
th {
  background: #f0f5fa;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}
td {
  color: #14305C;
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
tr:last-child td {
  border-bottom: none;
}

/* ================== FORM / CONTACT INFO =================== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid #14305C;
  padding-left: 18px;
  background: #F4F7FB;
  border-radius: 12px;
  margin-bottom: 18px;
}
.map-snippet {
  font-size: 1rem;
  color: #14305C;
  background: #eaf2fa;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
}

/* =============== FOOTER ================ */
footer {
  background: #14305C;
  color: #fff;
  padding: 32px 0 14px 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.footer-content a img { width: 40px; height: 40px; margin-bottom: 3px; }
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #F4F7FB;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
  transition: color 0.15s, opacity 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus { color: #50A381; opacity: 1; }
.legal-information {
  font-size: 0.98rem;
  opacity: 0.7;
  color: #fff;
}

/* =============== COOKIE CONSENT BANNER ================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #14305C;
  color: #fff;
  padding: 24px 14px 20px 14px;
  box-shadow: 0 -2px 18px rgba(20,48,92,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2002;
  gap: 18px;
  font-size: 1rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.28s, transform 0.28s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
}
.cookie-btn, .cookie-banner .cta-button {
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  box-shadow: 0 1px 7px #223f5a25;
}
.cookie-btn.accept {
  background: #50A381;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #14305C;
  border: 1.5px solid #14305C;
}
.cookie-btn.settings {
  background: #14305C;
  color: #fff;
  border: 1.5px solid #50A381;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #4ab67f;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e7f6f1;
  color: #14305C;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #50A381;
  color: #fff;
}

/* =============== COOKIE MODAL POPUP ================ */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(20,48,92,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #14305C;
  border-radius: 20px;
  box-shadow: 0 8px 44px rgba(20,48,92,0.15);
  padding: 40px 28px 32px 28px;
  max-width: 440px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 19px;
  background: transparent;
  border: none;
  color: #14305C;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 5;
  transition: color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #50A381; }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-toggle {
  width: 44px; height: 24px;
  background: #e9f0f8;
  border-radius: 19px;
  position: relative;
  transition: background 0.16s;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle[data-checked='true'] {
  background: #50A381;
}
.cookie-toggle-switch {
  display: block;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  position: absolute; left: 2px; top: 2.5px;
  transition: left 0.17s, background 0.17s;
  box-shadow: 0 1px 4px rgba(33,90,75,0.11);
}
.cookie-toggle[data-checked='true'] .cookie-toggle-switch {
  left: 22px;
  background: #fff;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.cookie-category.essential label {
  opacity: 0.7;
}
.cookie-info {
  font-size: 0.98rem;
  color: #4c5a77;
  margin-bottom: 10px;
}


@media (min-width: 600px) {
  .service-card:before {
    display: block;
  }
  .testimonial-card:after {
    display: block;
    left: -23px; bottom: -17px;
    right: auto;
    border-radius: 22px 8px 36px 8px;
  }
}

/* =============== RESPONSIVE LAYOUTS =============== */
@media (max-width: 1280px) {
  .container { max-width: 98vw; }
}
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  
  .service-card-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
}
@media (max-width: 900px) {
  .section { margin-bottom: 44px; padding: 30px 8px; }
  section { margin-bottom: 42px; padding: 28px 0 0 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .footer-content { gap: 13px; }
  .footer-nav { flex-direction: column; gap: 8px; align-items: center; }
  .content-wrapper { gap: 19px; }
  .service-card, .testimonial-card, .card {
    min-width: unset;
    max-width: 98vw;
  }
  .faq-snippet, .service-highlights, .included-features {width: 100%;}
  .testimonial-card { padding: 17px; font-size: 0.99rem; }
  .testimonial-info { font-size: 0.98rem; }
  .hero-content { padding: 0; }
  
  .service-card-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.26rem; }
  h3 { font-size: 1.12rem; }
  .section { padding: 17px 2px; }
  .testimonial-card { padding: 14px; font-size: .96rem; }
  .footer-content { padding: 0 2px; }
}
@media (max-width: 480px) {
  .nav-bar img, .footer-content img { width: 31px; height: 31px; }
  .footer-content { padding: 0; }
  .testimonial-card, .service-card, .section { border-radius: 8px; }
  .hero-content { min-height: 0px; }
}

/* =============== ACCESSIBILITY =============== */
:focus {
  outline: 2.5px solid #50A381;
  outline-offset: 1px;
}

::-webkit-scrollbar {
  width: 8px;
  background: #eaf2fa;
}
::-webkit-scrollbar-thumb {
  background: #cbdaf2;
  border-radius: 15px;
}

/* Hide scrollbars inside modal on iOS Safari */
.cookie-modal-content::-webkit-scrollbar { display: none; }
.cookie-modal-content { -ms-overflow-style: none; scrollbar-width: none; }

/* ===================== ANIMATIONS ======================== */
.cta-button, .cookie-btn {
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, transform 0.14s;
}
.cta-button:active, .cookie-btn:active { transform: scale(0.96); }
section, .section, .service-card, .testimonial-card, .content-wrapper, .card {
  transition: box-shadow 0.18s, border 0.18s, transform 0.12s, background 0.15s;
}

@media (max-width: 768px) {
  .text-image-section, .content-grid, .service-card-grid, .card-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px;
  }
}

/* =============== PRINT SIMPLE =============== */
@media print {
  header, .cta-button, .cookie-banner, .mobile-menu, .footer-nav, .legal-information, .map-snippet { display: none !important; }
  .section, main, .container, .service-card,
  .testimonial-card { box-shadow: none !important; background: #fff !important; border: none !important; }
  body { background: #fff; color: #14305C; }
}
