/* -----------------------------------
   CSS RESET & NORMALIZE FOR CONSISTENCY
   ----------------------------------- */
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,
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 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: inherit;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F4F8FC;
  color: #22386C;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
  vertical-align: middle;
}
a {
  color: #22386C;
  text-decoration: none;
  transition: color 0.22s;
  word-break: break-word;
}
a:focus {
  outline: 2px dashed #E5A823;
  outline-offset: 2px;
}

ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

strong {
  font-weight: 600;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border-radius: 4px;
  border: none;
  outline: none;
}

/* -----------------------------------
   BRAND FONTS & TYPOGRAPHY
   ----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
h1, .hero h1, .content-wrapper h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #22386C;
  line-height: 1.14;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #22386C;
  line-height: 1.21;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #22386C;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #22386C;
  margin-bottom: 8px;
}
p, .subheadline, dl, dd, dt, span, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #22386C;
}
.subheadline {
  color: #445683;
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-weight: 500;
}
.table th, .table td {
  font-size: 0.95rem;
}

/* -----------------------------------
   MAIN LAYOUT & CONTAINERS
   ----------------------------------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(26,48,92,0.05);
}

/* -----------------------------------
   FLEX LAYOUT UTILITIES - CRITICAL
   ----------------------------------- */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
}
.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;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(26,48,92,0.09);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 4px 24px rgba(26,48,92,0.16);
  z-index: 1;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 210px;
  flex: 1 1 220px;
  background: #F4F8FC;
  border-radius: 12px;
  padding: 28px 18px 24px 18px;
  box-shadow: 0 2px 10px rgba(26,48,92,0.05);
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  margin-bottom: 20px;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
}
.feature-item:hover {
  box-shadow: 0 4px 18px rgba(26,48,92,0.12);
  background: #e9f0fa;
  z-index: 1;
}

/* -----------------------------------
   BUTTONS & CALLS TO ACTION
   ----------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 24px;
  padding: 13px 32px;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s;
  cursor: pointer;
  background: transparent;
  border: none;
  text-decoration: none !important;
}
.cta.primary {
  background: #22386C;
  color: #fff;
  box-shadow: 0 2px 6px rgba(34,56,108,0.11);
}
.cta.primary:hover, .cta.primary:focus {
  background: #172448;
  color: #fff;
  box-shadow: 0 8px 28px 0 rgba(34,56,108,0.15);
}
.cta.secondary {
  background: #E5A823;
  color: #fff;
  box-shadow: 0 2px 8px rgba(229,168,35,0.11);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #b8841c;
  color: #fff;
  box-shadow: 0 8px 26px 0 rgba(229,168,35,0.14);
}
button.cta {
  border: none;
}

/* -----------------------------------
   NAVIGATION STYLES DESKTOP & MOBILE
   ----------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #e2e6eb;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
  padding-top: 0;
  padding-bottom: 0;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F4F8FC;
  color: #E5A823;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #22386C;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 4px 11px;
  cursor: pointer;
  z-index: 32;
  transition: background 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F4F8FC;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,56,108,0.98);
  z-index: 100;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.65,.05,.36,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: none;
  border: none;
  font-size: 2.1rem;
  position: absolute;
  top: 24px;
  right: 32px;
  cursor: pointer;
  z-index: 101;
  padding: 0 12px;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.12);
}
.mobile-nav {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  padding: 9px 0;
  letter-spacing: 0.01em;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #22386C;
  color: #E5A823;
  padding-left: 12px;
}

/* -----------------------------------
   HERO SECTIONS & PAGE TITLES
   ----------------------------------- */
.hero {
  background: #22386C;
  color: #fff;
  padding: 54px 0 48px 0;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 6px 36px rgba(34,56,108,0.09);
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
  gap: 18px;
}
.hero h1 {
  color: #fff;
}
.hero .subheadline {
  color: #d5def0;
}
.hero .cta {
  margin-top: 14px;
}

/* -----------------------------------
   TESTIMONIALS SECTION
   ----------------------------------- */
.testimonials {
  margin-top: 38px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 26px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(34,56,108,0.07);
  min-width: 260px;
  max-width: 340px;
  margin-bottom: 20px;
  color: #22386C;
  font-size: 1.05rem;
  border-left: 6px solid #E5A823;
  transition: box-shadow 0.14s;
}
.testimonial-card strong {
  color: #445683;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(34,56,108,0.11);
}

/* -----------------------------------
   SERVICES & PRICING GRIDS
   ----------------------------------- */
.services-preview .service-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.service-list ul {
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.services-grid,.service-grid,.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 0;
}
.service-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34,56,108,0.08);
  padding: 26px 20px;
  min-width: 210px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.service-item h3 {
  font-size: 1.15rem;
  color: #22386C;
}
.service-item .price {
  color: #E5A823;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
}
.services-grid .cta.secondary, .service-grid .cta.secondary, .service-list .cta.secondary {
  align-self: flex-start;
  margin-top: 14px;
}

/* -----------------------------------
   FAQ & LIST STYLES
   ----------------------------------- */
.faq-list dl {
  width: 100%;
}
.faq-list dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
  color: #22386C;
  font-size: 1.08rem;
}
.faq-list dd {
  margin-bottom: 24px;
  margin-left: 0;
  color: #3a4868;
  font-size: 1rem;
  line-height: 1.7;
}

/* -----------------------------------
   TABLES
   ----------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 23px;
  font-size: 0.98rem;
  box-shadow: 0 1px 8px rgba(34,56,108,0.05);
  overflow: hidden;
}
table th, table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e2e6eb;
  text-align: left;
  color: #22386C;
}
table th {
  background: #F4F8FC;
  font-weight: 700;
}
table tr:last-child td {
  border-bottom: none;
}

/* -----------------------------------
   FOOTER
   ----------------------------------- */
footer {
  background: #22386C;
  color: #fff;
  padding: 42px 0 30px 0;
  font-size: 1rem;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  margin-top: 64px;
  box-shadow: 0 -6px 32px rgba(34,56,108,0.09);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 46px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
}
.footer-brand img {
  height: 32px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #F4F8FC;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.99rem;
  transition: color 0.18s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #E5A823;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
}
.footer-contact a {
  color: #E5A823;
  transition: color 0.18s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #fff;
}

/* -----------------------------------
   COOKIE CONSENT BANNER & MODAL
   ----------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 200;
  background: #22386C;
  color: #fff;
  padding: 23px 20px 20px 20px;
  box-shadow: 0 -4px 24px rgba(34,56,108,0.13);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0 0 7px 0;
  font-size: 1rem;
  color: #fff;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-banner .accept {
  background: #E5A823;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #b8841c;
}
.cookie-banner .reject {
  background: #fff;
  color: #22386C;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #F4F8FC;
}
.cookie-banner .settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #fff;
  color: #22386C;
}

/* Cookie modal popup */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,56,108,0.55);
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
}
.cookie-modal {
  background: #fff;
  color: #22386C;
  border-radius: 16px;
  max-width: 420px;
  width: 92vw;
  padding: 36px 26px 26px 26px;
  box-shadow: 0 8px 42px rgba(34,56,108,0.19);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadePopup .45s cubic-bezier(.77,0,.18,1);
}
@keyframes fadePopup {
  from { transform: translateY(48px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 7px;
}
.cookie-category {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}
.cookie-category label {
  flex: 1 1 0%;
  font-weight: 500;
  font-size: 1.02rem;
}
.cookie-category input[type='checkbox'] {
  width: 19px;
  height: 19px;
  accent-color: #22386C;
  margin-right: 7px;
  cursor: pointer;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 13px;
  margin-top: 10px;
}
.cookie-modal .save-cookies {
  background: #E5A823;
  color: #fff;
  border: none;
}
.cookie-modal .cancel-cookies {
  background: #F4F8FC;
  color: #22386C;
  border: none;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.7rem;
  color: #22386C;
  background: none;
  border: none;
  border-radius: 7px;
  padding: 0 5px;
  cursor: pointer;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #f7fafd;
}

/* Essential cookies always enabled */
.cookie-category.essential label:after {
  content: ' (immer erforderlich)';
  color: #6270a6;
  font-size: 0.89em;
}
.cookie-category.essential input[type='checkbox'] {
  pointer-events: none;
  opacity: 0.65;
}

/* -----------------------------------
   PAGE UTILITY
   ----------------------------------- */
.text-section {
  flex: 1 1 320px;
  min-width: 240px;
  margin-bottom: 24px;
}
.privacy-policy-text, .terms-of-service-text, .gdpr-text, .cookie-policy-text {
  background: #FFFFFF;
  padding: 28px 22px;
  border-radius: 14px;
  box-shadow: 0 2px 20px rgba(34,56,108,0.05);
  margin-bottom: 12px;
}
.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 32px 22px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(34,56,108,0.07);
  margin: 0 auto;
}
.confirmation h1 {
  color: #22386C;
}
.thank-you-message {
  font-size: 1.13rem;
  color: #445683;
  text-align: center;
}

/* -------------------------
   RESPONSIVE DESIGN
   ------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
  }
  footer .container {
    gap: 32px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    height: auto;
    padding: 10px 10px 10px 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: 12px;
    order: 3;
    align-self: flex-start;
  }
  .cta.primary {
    font-size: 1.07rem;
    padding: 10px 22px;
    margin-right: 0;
  }
  .hero {
    padding: 36px 0 28px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 33px;
  }
  .hero .content-wrapper h1 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    line-height: 1.2;
  }
  .hero .content-wrapper {
    max-width: 99vw;
    padding: 0;
  }
  .content-wrapper, .content-grid, .feature-grid, .services-grid, .service-grid, .service-list, .criteria-list, .faq-list, .maintenance_tips_list {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch;
  }
  .feature-item, .service-item, .testimonial-card, .card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: stretch;
    gap: 16px !important;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .section {
    margin-bottom: 34px;
    padding: 19px 7px;
  }
}
@media (max-width: 490px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .hero {
    padding-top: 18px;
    padding-bottom: 16px;
    border-radius: 0;
    margin-bottom: 20px;
  }
  .card, .feature-item, .service-item, .testimonial-card {
    padding: 14px 9px;
    border-radius: 9px;
  }
  footer {
    border-radius: 0;
  }
  .cookie-modal {
    padding: 22px 6px 14px 10px;
    width: 98vw;
    border-radius: 7px;
  }
}

/* -------------------------
   MICRO-INTERACTIONS
   ------------------------- */
.card, .feature-item, .service-item {
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1),transform 0.11s;
}
.card:hover, .feature-item:hover, .service-item:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 8px 26px rgba(34,56,108,0.21);
  z-index: 2;
}

/* ----------------------------
   HELPER CLASSES FOR FLEX GAP
   ----------------------------- */
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }

/* Ensure there is always spacing between elements in wrappers */
.card + .card,
.feature-item + .feature-item,
.service-item + .service-item,
.testimonial-card + .testimonial-card {
  margin-left: 0;
  margin-top: 20px;
}
/* Add margin for ul/li spacing in lists */
ul, ol {
  margin-bottom: 14px;
}

/* Hide scrollbars on mobile menu for neatness */
.mobile-menu {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* Hide visually when mobile menu is closed */
.mobile-menu:not(.open) {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.23s, transform 0.32s;
}
.mobile-menu.open {
  pointer-events: all;
  opacity: 1;
}

/* Extra: visually hide but accessibly show */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Remove outline on mouse click, keep for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #E5A823;
  outline-offset: 2px;
}

/* --------------------------------------
   ENSURE NO CSS GRID OR COLUMN PROPERTIES
   --------------------------------------- */
/* (All layout via flexbox ONLY) */
