/* Reset and base styles */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #171717;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: #f8f8f8;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #19476A;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(.4,0,.2,1);
}
a:hover,
a:focus {
  color: #111;
}
::-webkit-input-placeholder { color: #7a7a7a; }
::-moz-placeholder { color: #7a7a7a; }
:-ms-input-placeholder { color: #7a7a7a; }
::placeholder { color: #7a7a7a; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: -0.5px;
  color: #0a0a0a;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 14px; }
h4 { font-size: 1.1rem; line-height: 1.3; }
.subheadline {
  font-size: 1.25rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2e2e2e;
  margin-bottom: 24px;
  font-weight: 400;
}
p, ul, ol, dl, table {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #222;
}
strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #171717;
}
ul, ol {
  margin-left: 24px;
  margin-top: 0;
}
ul li, ol li {
  margin-bottom: 10px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-left: 30px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #111;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
header nav a:hover,
header nav a:focus {
  color: #19476A;
}
header img {
  height: 42px;
  margin-right: 36px;
  width: auto;
}
.btn-primary {
  background: #111;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s cubic-bezier(.4,0,.2,1);
  margin-left: 32px;
  letter-spacing: 0.03em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #19476A;
  color: #fff;
  box-shadow: 0 4px 22px rgba(25,71,106,0.15);
}
.btn-link {
  color: #19476A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border-bottom: 1.5px solid #19476A;
  background: none;
  padding: 6px 0;
  font-size: 1rem;
  transition: color 0.2s, border-color 0.2s;
}
.btn-link:hover, .btn-link:focus {
  color: #111;
  border-bottom: 2px solid #111;
}

/* Hamburger (mobile-menu-toggle) */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #171717;
  cursor: pointer;
  padding: 12px 16px;
  display: none;
  align-items: center;
  z-index: 1301;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #19476A;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 16px 60px rgba(17,17,17,0.12);
  z-index: 1300;
  transform: translateX(-100vw);
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 42px 24px 24px 24px;
  gap: 26px;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #19476A;
  align-self: flex-end;
  margin-bottom: 30px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1302;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
  background: #19476A;
  border-radius: 50%;
  padding: 4px 10px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  color: #111;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 12px 0;
  border-radius: 6px;
  transition: background 0.21s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #19476A;
  color: #fff;
}

@media (max-width: 1024px) {
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
  header nav {
    gap: 18px;
    margin-left: 12px;
  }
  .btn-primary {
    margin-left: 18px;
    padding: 12px 18px;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 540px) {
  header .container {
    padding-left: 2vw;
    padding-right: 2vw;
    min-height: 62px;
  }
  .mobile-menu {
    padding: 28px 8px 12px 8px;
  }
}

/* Footer */
footer {
  background: #171717;
  color: #fff;
  border-top: 1px solid #e6e6e6;
  padding: 44px 0 24px 0;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.86;
  transition: opacity 0.2s;
}
footer nav a:hover,
footer nav a:focus {
  opacity: 1;
  text-decoration: underline;
}
footer img {
  height: 32px;
  margin-right: 8px;
  vertical-align: middle;
}
footer div {
  font-size: 1rem;
  color: #ccc;
  align-items: center;
  display: flex;
  gap: 8px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* Section base spacing */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 800px) {
  .section, section {
    padding: 24px 6px;
    margin-bottom: 36px;
  }
}

/* HERO section */
.hero {
  background: #fff;
  border-bottom: 1.5px solid #ececec;
  padding-top: 54px;
  padding-bottom: 54px;
  display: flex;
  align-items: center;
  margin-bottom: 0px;
}
.hero .container,
.about-preview .container,
.services-overview .container,
.features .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  max-width: 700px;
  text-align: center;
}

/* Features Section */
.features {
  background: #fafafa;
  border-bottom: 1px solid #ececec;
}
.features h2 {
  text-align: center;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
  justify-content: center;
}
.feature-grid > div {
  flex: 1 1 210px;
  max-width: 260px;
  background: #fff;
  border-radius: 18px;
  padding: 30px 20px 24px;
  box-shadow: 0 3px 18px rgba(25,71,106,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.22s, box-shadow 0.18s;
  margin-bottom: 20px;
  border: 1px solid #e6e6e6;
}
.feature-grid > div:hover {
  transform: translateY(-6px) scale(1.027);
  box-shadow: 0 8px 32px rgba(25,71,106,0.13);
  border-color: #19476A;
}
.feature-grid img {
  height: 44px;
}
.feature-grid h3 {
  font-size: 1.15rem;
  text-align: center;
}
.feature-grid p {
  text-align: center;
  font-size: 0.98rem;
}

@media (max-width: 1000px) {
  .feature-grid {
    flex-wrap: wrap;
    gap: 20px;
  }
  .feature-grid > div {
    flex: 1 1 255px;
    max-width: 360px;
  }
}
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid > div {
    max-width: 100%;
    width: 100%;
  }
}

/* Cards and grid containers */
.card-container,
.card-grid,
.project-list,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: space-between;
}
.card, .case-study-card, .project-list > div, .service-grid > div {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 18px rgba(25,71,106,0.07);
  padding: 26px 20px;
  border: 1px solid #ededed;
  min-width: 220px;
  flex: 1 1 240px;
}

.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;
}

@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* Testimonial Cards & CTA */
.testimonials {
  background: #f6f6f6;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}
.testimonials h2 {
  text-align: center;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  margin: 22px auto 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(25,71,106,0.09);
  border: 1px solid #ececec;
  max-width: 540px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(25,71,106,0.15);
}
.testimonial-card p {
  color: #0a0a0a;
  font-size: 1.12rem;
  font-style: italic;
  text-align: center;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.testimonial-meta span {
  color: #19476A;
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.testimonial-meta strong {
  color: #434343;
  font-size: 1rem;
  font-weight: 600;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 14px 5px;
    max-width: 98vw;
  }
}

.cta, .contact-cta {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(25,71,106,0.07);
  padding: 40px 30px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 700px) {
  .cta, .contact-cta {
    padding: 24px 6px;
    margin-bottom: 32px;
  }
}

/* Table in calculations (vorteile) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  background: #fff;
}
thead tr {
  background: #efefef;
}
th, td {
  padding: 14px 8px;
  border: 1px solid #e2e2e2;
  text-align: left;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #171717;
  letter-spacing: 0.01em;
  background: #f6f6f6;
}
td {
  color: #222;
}

/* Accordion for FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-accordion dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  background: #f8f8f8;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  margin-bottom: 0;
  transition: background 0.18s;
}
.faq-accordion dt:hover, .faq-accordion dt:focus {
  background: #ebebeb;
}
.faq-accordion dd {
  background: #fff;
  border-left: 3px solid #19476A;
  margin-left: 10px;
  margin-bottom: 0;
  margin-top: 0;
  padding: 12px 18px;
  border-radius: 0 0 11px 11px;
  font-size: 0.98rem;
  color: #191919;
}

/* Legal pages sections */
.legal {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 14px rgba(25,71,106,0.045);
  padding: 42px 36px;
}
@media (max-width: 700px) {
  .legal {
    padding: 18px 4px;
  }
}

/* Confirmation section on thanks.php */
.confirmation {
  background: #fafafa;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(25,71,106,0.06);
  max-width: 550px;
  margin: 0 auto 52px auto;
}
.confirmation .content-wrapper {
  padding-top: 32px;
  padding-bottom: 32px;
  text-align: center;
}

/* Contact details */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.contact-details ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #222;
}
.contact-details ul img {
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.contact-details a {
  color: #19476A;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #222;
  color: #fff;
  z-index: 2002;
  box-shadow: 0 -2px 18px rgba(17,17,17,.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 22px 24px 18px 24px;
  animation: slideUp .66s cubic-bezier(.4,0,.2,1);
}
.cookie-consent-banner .cookie-message {
  font-size: 1.03rem;
  color: #fff;
  margin-right: 18px;
  max-width: 420px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-consent-banner button {
  border: none;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 0;
}
.cookie-consent-banner .accept {
  background: #19476A;
  color: #fff;
  font-weight: 700;
}
.cookie-consent-banner .accept:hover { background: #2b2b2b; }
.cookie-consent-banner .reject {
  background: #fff;
  color: #222;
  border: 1.5px solid #e1e1e1;
  font-weight: 600;
}
.cookie-consent-banner .reject:hover { background: #f2f2f2; }
.cookie-consent-banner .settings {
  background: #222;
  color: #FFCF53;
  font-weight: 600;
  border: 1.5px solid #FFCF53;
}
.cookie-consent-banner .settings:hover { background: #111; color: #fff; border-color: #fff; }

@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 8px 12px 8px;
  }
  .cookie-consent-banner .cookie-message {
    margin-right: 0;
    max-width: 99vw;
  }
}

@keyframes slideUp {
  from { transform: translateY(180px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Cookie Consent Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,17,17,0.44);
  z-index: 2005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: initial;
}
.cookie-modal {
  background: #fff;
  color: #111;
  padding: 34px 22px 22px 22px;
  border-radius: 15px;
  max-width: 410px;
  width: 90vw;
  box-shadow: 0 6px 38px rgba(17,17,17,0.13);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalIn .35s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0 0 8px 0;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-toggle {
  appearance: none;
  height: 20px;
  width: 42px;
  border-radius: 18px;
  background: #ececec;
  border: none;
  outline: none;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: #19476A;
}
.cookie-toggle::before {
  content: '';
  display: block;
  height: 16px;
  width: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.11);
  transition: left 0.18s;
}
.cookie-toggle:checked::before {
  left: 24px;
}
.cookie-category label {
  font-size: 1rem;
  color: #0a0a0a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.cookie-modal .category-fixed {
  font-size: 0.97rem;
  font-style: italic;
  color: #848484;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal button {
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 18px;
  border: none;
  cursor: pointer;
}
.cookie-modal .accept {
  background: #19476A;
  color: #fff;
}
.cookie-modal .close {
  background: #fff;
  border: 1.5px solid #e1e1e1;
  color: #19476A;
}
.cookie-modal .close:hover { background: #f2f2f2; }

/* Lists, Features, Project Highlight Sections */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: space-between;
}
.project-list > div {
  margin-bottom: 20px;
  min-width: 228px;
  background: #f8f9fa;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(25,71,106,0.065);
  padding: 20px 18px 12px 18px;
  border: 1px solid #ededed;
  flex: 1 1 268px;
}
.project-highlights ul {
  margin-left: 24px;
  padding-left: 0;
  list-style: disc inside;
}
.project-highlights ul li {
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .project-list > div {
    min-width: 180px;
    flex: 1 1 210px;
  }
}
@media (max-width: 700px) {
  .project-list,
  .card-container,
  .service-grid,
  .case-studies {
    flex-direction: column;
    gap: 18px;
  }
  .project-list > div,
  .case-study-card,
  .card {
    min-width: 0;
    width: 100%;
    max-width: 100vw;
  }
}

/* Forms (for contact pages, not included) */
input, textarea, select {
  width: 100%;
  padding: 12px 10px;
  margin-bottom: 14px;
  background: #fafafa;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  font-family: inherit;
  font-size: 1rem;
  color: #111;
  transition: border-color 0.16s, box-shadow 0.22s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #19476A;
  box-shadow: 0 2px 12px rgba(25,71,106,0.09);
}
button, .btn-primary {
  outline: none;
}

/* Spacing after every content card/section */
.section > *,
section > .container > .content-wrapper > *:not(:last-child),
section > .container > .content-wrapper > ul,
.card,
.project-list > div,
.feature-grid > div {
  margin-bottom: 20px;
}

/* Monochrome style overrides (Sophisticated) */
body, .section, section {
  background: #fff;
  color: #171717;
}
.hero {
  background: #fff;
}
.card, .case-study-card, .feature-grid > div, .project-list > div, .testimonial-card, .cta, .contact-cta, .confirmation, .legal {
  background: #fafbfc;
  border: 1px solid #e3e6e8;
}
.cta, .contact-cta, .confirmation {
  box-shadow: 0 2px 12px rgba(25, 71, 106, 0.06);
}

/* Subtle shadow on hover for interactive elements */
.btn-primary, .btn-link, .feature-grid > div, .card, .testimonial-card, .project-list > div {
  transition: box-shadow .22s, transform .21s, background .18s;
}
.btn-primary:active {
  transform: translateY(2px) scale(0.98);
}

/* Details, About, Contact blocks */
.about-preview, .services-overview, .about-company, .team, .mission-preview, .info {
  background: #fff;
  border-radius: 12px;
}

/* Color/contrast for testimonial readability */
.testimonial-card {
  background: #fff;
  color: #161616;
}
.testimonial-card p {
  color: #171717;
  font-weight: 500;
}
.testimonial-meta strong {
  color: #252525;
}

/* Responsive Font Scaling */
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.07rem; }
  .subheadline { font-size: 1.02rem; }
}

/* Animate fade-in on sections (micro-interactions) */
.section, section {
  opacity: 0;
  transform: translateY(18px);
  animation: sectionFadeIn .7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes sectionFadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }


/* -------- BRAND FONTS --------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
