/* --- CSS RESET & BASE --- */
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #253A51;
  background: #fff;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #253A51;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #253A51;
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #253A51;
  margin-bottom: 16px;
}
h4, .h4 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #253A51;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  color: #253A51;
  margin-bottom: 16px;
  line-height: 1.7;
}
a {
  box-shadow: none;
  color: #253A51;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #80B8C7;
}
strong {
  font-weight: 600;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1152px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(30, 42, 53, 0.05);
  position: relative;
  z-index: 102;
}
header .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 24px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: auto;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #253A51;
  padding: 4px 2px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
  font-weight: 400;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #e1e5ed;
  color: #253A51;
}
.btn {
  min-width: 150px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 22px;
  border-radius: 25px;
  border: none;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(30,42,53,0.05);
}
.btn-primary {
  background: #253A51;
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #1c2f42;
  color: #fff;
}
.btn-secondary {
  background: #e1e5ed;
  color: #253A51;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #80B8C7;
  color: #253A51;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #253A51;
  font-size: 2rem;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 111;
  display: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #e1e5ed;
  color: #253A51;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37, 58, 81, 0.98);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(0.45,1,0.48,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 0 0 0;
  box-sizing: border-box;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 16px;
  right: 24px;
  cursor: pointer;
  z-index: 2050;
  transition: background 0.18s;
  border-radius: 4px;
  padding: 2px 8px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: rgba(128,184,199,.07);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 48px;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 10px 0;
  transition: color .16s, background .16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #80B8C7;
  background: rgba(225,229,237,0.08);
  border-radius: 6px;
  padding-left: 4px;
}

/* --- HERO --- */
.hero {
  background: #f6f8fa;
  padding: 64px 0 36px 0;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  min-height: 260px;
}
.hero .container {
  display: flex;
  align-items: center;
  min-height: 140px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}
.text-section ul,
.text-section ol {
  margin-left: 1.2em;
  margin-bottom: 15px;
  color: #253A51;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
}
.text-section li {
  margin-bottom: 8px;
  position: relative;
}

/***** FLEXBLOCK PATTERNS from spec *****/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px 0 rgba(37,58,81,0.07);
  padding: 28px 22px;
  min-width: 220px;
}
.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;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(37,58,81,0.09);
  margin-bottom: 24px;
  max-width: 520px;
  font-size: 1.05rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/***** INDEX / LANDING - FEATURE GRID *****/
.feature-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 16px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(37,58,81,0.06);
  padding: 28px 20px 20px 20px;
  min-width: 210px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  transition: box-shadow 0.2s, transform 0.15s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px 0 rgba(37,58,81,0.17);
  transform: translateY(-2px) scale(1.013);
}
.feature-grid img {
  width: 34px;
  margin-bottom: 16px;
}

/***** USP GRID (Über Uns, Galerie) *****/
.usp-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 15px;
  margin-bottom: 12px;
}
.usp-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(37,58,81,0.06);
  padding: 32px 20px 22px 20px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  transition: box-shadow 0.2s;
}
.usp-grid img {
  width: 32px;
  margin-bottom: 14px;
}
.usp-grid > div:hover {
  box-shadow: 0 6px 20px 0 rgba(37,58,81,0.17);
}

/***** SERVICE CARDS (Leistungen.html) *****/
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 14px 0 0 0;
}
.service-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px 0 rgba(37,58,81,0.07);
  padding: 30px 20px 18px 20px;
  flex: 1 1 220px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.14s;
}
.service-card:hover {
  box-shadow: 0 10px 24px 0 rgba(37,58,81,0.16);
  transform: translateY(-3px) scale(1.01);
}
.service-card img {
  width: 33px;
  margin-bottom: 16px;
}
.service-card h3 {
  margin-bottom: 12px;
}
.service-card span {
  margin-top: 12px;
  color: #80B8C7;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/***** FEATURE ICONS (Galerie) *****/
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  margin-top: 4px;
}
.feature-icons > div {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(37,58,81,0.06);
  border-radius: 11px;
  padding: 20px 14px;
  flex: 1 1 140px;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-icons img {
  width: 24px;
}

/***** CTA LINKS *****/
.quick-contact-link {
  margin-top: 12px;
  font-size: 0.96rem;
}
.quick-contact-link a {
  text-decoration: underline;
  color: #80B8C7;
  transition: color .17s;
}
.quick-contact-link a:hover {
  color: #253A51;
}

/***** PRICING TABLE (Preise) *****/
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(37,58,81,0.07);
  table-layout: auto;
}
.pricing-table th {
  background: #e1e5ed;
  color: #253A51;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px 12px 14px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.pricing-table td {
  color: #253A51;
  padding: 12px 14px 8px 14px;
  font-family: 'Roboto', Arial, sans-serif;
  border-bottom: 1px solid #f1f1f5;
}
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}
.pricing-table tr:nth-child(even) td {
  background: #f8fafc;
}

/***** FOOTER *****/
footer {
  background: #f8fafb;
  font-size: 0.97rem;
  border-top: 1px solid #e1e5ed;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  color: #253A51;
  font-size: .98rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: color .17s;
  padding: 3px 6px;
  border-radius: 4px;
}
.footer-nav a:hover {
  background: #e1e5ed;
  color: #253A51;
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9bacbc;
  font-size: 0.95rem;
}
.brand-footer img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/***** TESTIMONIALS & REVIEW HIGHLIGHTS *****/
.testimonial-slider,
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.review-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
  list-style: none;
  color: #253A51;
}
.review-highlights li {
  background: #EFF4F7;
  border-radius: 11px;
  padding: 10px 16px;
  color: #253A51;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}

/***** FORMS/CONTACT (as per provided, for buttons/links) *****/
.contact-info p {
  margin-bottom: 10px;
  color: #253A51;
  font-size: 1rem;
}
.contact-info a {
  color: #80B8C7;
  text-decoration: underline;
  transition: color .17s;
}
.contact-info a:hover {
  color: #253A51;
}

.contact-brief {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: flex-start;
}

/***** ACCORDION/FAQ LIST *****/
.faq-list,
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-list > div,
.faq-accordion-list > div {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 8px 0 rgba(37,58,81,0.04);
  padding: 18px 16px;
  color: #253A51;
  font-size: 1rem;
  margin-bottom: 3px;
}
.faq-list strong, .faq-accordion-list strong {
  color: #253A51;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

/***** COOKIE BANNER & COOKIE MODAL *****/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #253A51;
  color: #fff;
  z-index: 5850;
  padding: 24px 14px 20px 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  box-shadow: 0 -2px 12px 0 rgba(37,58,81, .13);
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform .28s, opacity .22s;
}
.cookie-banner[hidden] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner__text {
  flex: 1 1 220px;
  max-width: 630px;
  font-size: 1rem;
}
.cookie-banner .btn {
  min-width: 120px;
  font-size: 0.98rem;
  margin-left: 4px;
  margin-right: 4px;
  padding: 8px 16px;
  border-radius: 24px;
}
.cookie-banner .btn-primary {
  background: #80B8C7;
  color: #253A51;
}
.cookie-banner .btn-primary:hover,
.cookie-banner .btn-primary:focus {
  background: #e1e5ed;
  color: #253A51;
}
.cookie-banner .btn-secondary {
  background: #e1e5ed;
  color: #253A51;
}
.cookie-banner .btn-secondary:hover { background: #80B8C7; }

/* Cookie Preference Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5900;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(37,58,81,0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.cookie-modal-overlay[hidden] {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #253A51;
  border-radius: 18px;
  box-shadow: 0 8px 44px 0 rgba(37,58,81, .24);
  min-width: 310px;
  max-width: 98vw;
  padding: 38px 30px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadein .34s;
}
@keyframes fadein {
  from { opacity: 0; transform: scale(.96) translateY(38px); }
  to { opacity: 1; transform: none; }
}
.cookie-modal h2, .cookie-modal h3 {
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6f8fa;
  padding: 13px 21px;
  border-radius: 9px;
}
.cookie-category-label {
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #253A51;
  font-weight: 500;
}
.cookie-category-toggle {
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 20px;
  background: #e1e5ed;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .15s;
}
.cookie-category-toggle:checked {
  background: #80B8C7;
}
.cookie-category-toggle:before {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: transform .17s;
}
.cookie-category-toggle:checked:before {
  transform: translateX(18px);
}
.cookie-modal .btn {
  margin-top: 8px;
  min-width: 120px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #253A51;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.11s;
  padding: 2px 8px;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #eff4f7;
}

/***** TABLET & RESPONSIVE ***** */
@media (max-width: 1150px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .feature-grid,
  .service-cards,
  .usp-grid {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 18px;
  }
  .feature-icons {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    gap: 10px;
  }
}
/* Header Adapt for mobile */
@media (max-width: 820px) {
  header .container {
    flex-wrap: wrap;
  }
  .main-nav {
    display: none;
  }
  .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.45rem;
  }
  .section {
    margin-bottom: 36px;
    padding: 26px 2vw;
  }
  .hero {
    padding: 38px 0 26px 0;
    min-height: 130px;
  }
  .testimonial-card {
    padding: 15px 11px;
    font-size: 0.98rem;
    max-width: 98%;
  }
  .footer-nav {
    flex-direction: column;
    gap: 9px;
  }
  .brand-footer {
    margin-top: 4px;
  }
  .feature-grid,
  .service-cards,
  .usp-grid,
  .feature-icons,
  .testimonial-slider {
    flex-direction: column;
    gap: 12px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .contact-brief {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 14px;
  }
}
@media (max-width: 500px) {
  .hero {
    padding: 16px 0 14px 0;
  }
  .section {
    margin-bottom: 18px;
    padding: 11px 1vw;
  }
  body {
    font-size: 1rem;
  }
  .btn, .btn-primary, .btn-secondary {
    min-width: 95px;
    font-size: .98rem;
    padding: 7px 9px;
  }
  .cookie-modal {
    padding: 20px 7px 20px 10px;
  }
}

/* --- MISC SMOOTH ANIMATIONS / UTILS --- */
.btn, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.13s, box-shadow 0.17s, transform .15s;
}
.feature-grid > div, .usp-grid > div, .service-card {
  transition: box-shadow .19s, transform .13s;
}

/* --- END CSS --- */
