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

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #17375E;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #8B1E3F;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover,
a:focus {
  color: #17375E;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 24px;
  padding-left: 0;
}

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

/* HEADER & NAV */
header {
  background: #fff;
  border-bottom: 1px solid #F5F2EF;
  box-shadow: 0 4px 16px rgba(23,55,94,0.02);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 64px;
}
.logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  padding: 7px 11px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav .btn-primary {
  background: #8B1E3F;
  color: #fff;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 2px 12px rgba(139,30,63,0.06);
  border-radius: 24px;
  margin-left: 16px;
  transition: background 0.18s, box-shadow 0.18s;
}
.main-nav .btn-primary:hover,
.main-nav .btn-primary:focus {
  background: #17375E;
  color: #fff;
  box-shadow: 0 4px 18px rgba(23,55,94,0.12);
}
.main-nav a:not(.btn-primary):hover, .main-nav a:not(.btn-primary):focus {
  background: #F5F2EF;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #8B1E3F;
  cursor: pointer;
  margin-left: 18px;
  padding: 7px 16px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus {
  background: #F5F2EF;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245, 242, 239, 0.97);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #8B1E3F;
  align-self: flex-end;
  margin: 16px 18px 0 0;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F5F2EF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 12px;
  padding: 16px 32px;
}
.mobile-nav a {
  padding: 15px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: #17375E;
  width: 100%;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8B1E3F;
  color: #fff;
}

/* MAIN STYLES */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #8B1E3F;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #17375E;
}
h3 {
  font-size: 1.2rem;
  color: #8B1E3F;
  margin-bottom: 10px;
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  color: #17375E;
  opacity: 0.80;
  margin-bottom: 24px;
}

p, li {
  font-size: 1rem;
  color: #17375E;
}
strong, b {
  color: #17375E;
}

/* BUTTONS */
.btn-primary {
  background: #8B1E3F;
  color: #fff !important;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 30, 63, 0.08);
  display: inline-block;
  transition: background 0.20s, box-shadow 0.20s, color 0.20s;
  margin-top: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #17375E;
  color: #fff;
  box-shadow: 0 8px 24px rgba(23,55,94,0.12);
}
.btn-secondary {
  background: #F5F2EF;
  color: #8B1E3F;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139,30,63,0.04);
  margin-top: 12px;
  display: inline-block;
  transition: background 0.16s, color 0.16s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #8B1E3F;
  color: #fff;
}
.service-link {
  color: #17375E;
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 20px 8px 0;
  transition: color 0.18s;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 10px;
}
.service-link:hover, .service-link:focus {
  color: #8B1E3F;
}

/* FEATURES, SERVICES, CARDS */
.features-grid, .values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 8px;
}
.feature, .value {
  background: #fff;
  border: 1px solid #F5F2EF;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(139,30,63,0.04);
  flex: 1 1 240px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.feature:hover, .value:hover {
  box-shadow: 0 6px 26px rgba(139,30,63,0.12);
  border-color: #8B1E3F;
  transform: translateY(-4px) scale(1.015);
}
.feature img, .value img {
  height: 40px;
  width: 40px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.service {
  background: #fff;
  border: 1px solid #F5F2EF;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(23,55,94,0.05);
  flex: 1 1 260px;
  min-width: 240px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.13s, border-color 0.13s;
  margin-bottom: 20px;
}
.service:hover {
  box-shadow: 0 6px 20px rgba(139, 30, 63, 0.10);
  border-color: #8B1E3F;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(23,55,94,0.06);
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(139,30,63,0.12);
  transform: translateY(-2px) scale(1.01);
}

.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-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TEAM SECTION */
.team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  background: #fff;
  border: 1px solid #F5F2EF;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(23,55,94,0.03);
  flex: 1 1 240px;
  min-width: 200px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* TESTIMONIALS */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F5F2EF;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(23,55,94,0.05);
  min-width: 260px;
  flex: 1 1 260px;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #17375E;
  font-style: italic;
  margin-bottom: 6px;
}
.customer-name {
  color: #8B1E3F;
  font-weight: 600;
  font-size: .98rem;
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border: 1px solid #F5F2EF;
  border-radius: 13px;
  box-shadow: 0 2px 7px rgba(23,55,94,0.03);
  padding: 18px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.18s;
  cursor: pointer;
}
.faq-item:hover {
  border-color: #8B1E3F;
  box-shadow: 0 6px 18px rgba(139,30,63,0.07);
}

/* CONTACT & MAP */
.contact-details, .map-placeholder {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.contact-details img, .map-placeholder img {
  height: 22px;
  width: 22px;
  margin-right: 10px;
  vertical-align: middle;
  opacity: 0.72;
}

/* THANK YOU SECTION */
.thankyou-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #F5F2EF;
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 2px 10px rgba(23,55,94,0.04);
  margin: 12px 0 20px 0;
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #F5F2EF;
  padding: 32px 0 16px 0;
  font-size: 0.98rem;
  color: #17375E;
  margin-top: 40px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: #8B1E3F;
  font-size: 1rem;
  border-radius: 8px;
  padding: 6px 12px;
  transition: background 0.12s, color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  background: #8B1E3F;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -8px 36px rgba(23,55,94,0.12);
  border-top: 1px solid #F5F2EF;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 30px 22px 24px 22px;
  z-index: 120;
  opacity: 1;
  transition: transform 0.32s cubic-bezier(.69,-0.53,.29,1.46), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  font-size: 1rem;
  color: #17375E;
  max-width: 420px;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 2px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 24px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: #F5F2EF;
  color: #8B1E3F;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 2px;
  box-shadow: 0 1px 4px rgba(23,55,94,0.06);
  transition: background 0.14s, color 0.16s;
}
.cookie-banner button.accept {
  background: #8B1E3F;
  color: #fff;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #17375E;
  color: #fff;
}
.cookie-banner button.settings {
  background: #17375E;
  color: #fff;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #8B1E3F;
  color: #fff;
}
.cookie-banner button.reject {
  background: #F5F2EF;
  color: #17375E;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #8B1E3F;
  color: #fff;
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(23,55,94,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 130;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.17s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 36px 26px 24px 26px;
  box-shadow: 0 20px 54px rgba(139,30,63,0.20);
  min-width: 320px;
  max-width: 95vw;
}
.cookie-modal-content h2 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  color: #8B1E3F;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  color: #17375E;
  background: #F5F2EF;
  border-radius: 12px;
  padding: 12px 16px;
}
.cookie-option input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: #8B1E3F;
}
.cookie-option .cookie-label {
  font-weight: 500;
}
.cookie-option.essential .cookie-label:after {
  content: " (immer aktiviert)";
  color: #8B1E3F;
  font-size: 0.98em;
  margin-left: 2px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 20px;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: #F5F2EF;
  color: #8B1E3F;
  margin-left: 2px;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal button.save {
  background: #8B1E3F;
  color: #fff;
}
.cookie-modal button.save:hover, .cookie-modal button.save:focus {
  background: #17375E;
  color: #fff;
}
.cookie-modal button.cancel {
  background: #F5F2EF;
  color: #17375E;
}
.cookie-modal button.cancel:hover, .cookie-modal button.cancel:focus {
  background: #8B1E3F;
  color: #fff;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .features-grid, .values-grid, .services-list, .team-section, .testimonials {
    gap: 18px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 900px) {
  .features-grid, .values-grid, .services-list, .team-section {
    flex-direction: column;
  }
  .feature, .value, .service, .team-member {
    min-width: unset;
    width: 100%;
  }
  .testimonials {
    flex-direction: column;
    gap: 20px;
  }
  .feature, .value,
  .testimonial-card, .service, .team-member {
    margin-bottom: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  header .container {
    flex-direction: row;
    gap: 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  section, .section {
    padding: 32px 6px;
    margin-bottom: 44px;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.13rem;
  }
  .features-grid, .values-grid, .services-list, .team-section {
    gap: 14px;
  }
  .testimonials {
    gap: 14px;
  }
  .card-container, .content-grid {
    gap: 13px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .card {
    margin-bottom: 14px;
  }
  .feature, .service, .value {
    padding: 16px 10px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.1rem; }
  h2 { font-size: 0.99rem; }
  .btn-primary, .btn-secondary {
    padding: 10px 12px;
    font-size: 0.97rem;
  }
  .footer-nav a {
    font-size: 0.96rem;
    padding: 4px 7px;
  }
}

/* --- MICRO-INTERACTIONS/ANIMATIONS --- */
.btn-primary, .btn-secondary, .main-nav .btn-primary, .service-link {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.card, .feature, .service, .value, .testimonial-card, .faq-item {
  transition: box-shadow 0.17s, border-color 0.17s, transform 0.15s;
}
.faq-item:active, .card:active, .feature:active, .service:active {
  transform: scale(0.98);
}

/* --- MINIMALIST COLOR TWEAKS --- */
body, .container, .card, .feature, .service, .team-member, .value {
  background-color: #fff;
}

/* --- SCROLLBAR --- */
body::-webkit-scrollbar, .cookie-modal-content::-webkit-scrollbar {
  width: 9px;
  background: #F5F2EF;
  border-radius: 6px;
}
body::-webkit-scrollbar-thumb, .cookie-modal-content::-webkit-scrollbar-thumb {
  background: #E1DDDA;
  border-radius: 8px;
}

/* Hide cookie-banner and modal for print */
@media print {
  .cookie-banner, .cookie-modal { display: none !important; }
}
