/* 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #181C1F;
  color: #E6EDF2;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-input-placeholder {color: #7A8997;opacity:1}
::-moz-placeholder {color: #7A8997;opacity:1}
:-ms-input-placeholder {color: #7A8997;opacity:1}
::placeholder {color: #7A8997;opacity:1}

*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #76B39D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F3F7FA;
  text-decoration: underline;
}

/*********************************
* FONT IMPORTS
**********************************/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

/*********************************
* CSS VARIABLES (with fallbacks)
**********************************/
:root {
  --primary: #25536B;
  --secondary: #76B39D;
  --accent: #F3F7FA;
  --black: #181C1F;
  --off-black: #23292D;
  --off-white: #E6EDF2;
  --metallic: #B3BDC3;
  --highlight: #36414A;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/*********************************
* INDUSTRIAL MODERN BASE STYLES
**********************************/
body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1.18;
  font-weight: 700;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

p, li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--off-white);
}
p.hero-subheadline {
  color: var(--secondary);
  font-size: 1.18rem;
  font-family: var(--font-display);
  margin-bottom: 30px;
}
strong {
  color: var(--accent);
}

ul, ol {
  margin-left: 1.4em;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  margin: 0 auto;
  padding: 0;
}

/* Industrial Metallic Accents */
hr {
  border: 0;
  border-top: 1px solid var(--metallic);
  margin: 40px 0;
}

/*********************************
* HEADER & NAVIGATION
**********************************/
header {
  background: var(--off-black);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 8px 0 rgba(50,60,65,0.17);
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img[alt="Bit Shadow Gesundheit"] {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
nav a {
  color: var(--off-white);
  padding: 6px 2px;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.19s;
}
nav a:hover, nav a.active {
  color: var(--secondary);
}
nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--secondary);
  transition: width 0.25s;
  margin-top: 4px;
}
nav a:hover:after,
nav a.active:after {
  width: 100%;
}

.cta-button {
  background: linear-gradient(90deg, var(--secondary) 70%, var(--metallic) 100%);
  color: var(--black);
  font-family: var(--font-display);
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 12px 0 rgba(33,66,77,0.13), 0 1.5px 0 #A6B6C5;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-block;
  margin-left: 18px;
  transition: background 0.26s, color 0.18s, box-shadow 0.22s;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, var(--secondary) 60%, var(--primary) 100%);
  color: var(--accent);
  box-shadow: 0 5px 18px 0 rgba(76,122,160,0.21);
}

/*********************************
* MOBILE MENU
**********************************/
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1020;
  font-size: 2.1rem;
  background: var(--highlight);
  border: 2px solid var(--secondary);
  color: var(--accent);
  border-radius: 7px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.22s, color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(90deg, #22282B 84%, #1c2327 100%);
  z-index: 1050;
  padding: 0 0 40px 0;
  overflow-y: auto;
  transform: translateX(-120%);
  transition: transform 0.36s cubic-bezier(0.66,0,.34,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 24px 14px 0;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 24px;
  padding-left: 38px;
}
.mobile-nav a {
  color: var(--secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 7px 2px;
  border-radius: 5px;
  transition: background 0.12s, color 0.13s;
  margin-right: 22px;
}
.mobile-nav a:hover, .mobile-nav a:active {
  background: var(--off-black);
  color: var(--accent);
}

@media (max-width: 1024px) {
  nav {
    gap: 8px;
  }
  header .container {
    gap: 10px;
    padding: 12px 10px 12px 10px;
  }
}
@media (max-width: 840px) {
  nav {
    display: none;
  }
  .cta-button {
    margin-left: auto;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 841px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/*********************************
* MAIN SECTIONS & MANDATORY FLEXBOX LAYOUTS
**********************************/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 14px;
  box-shadow: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--highlight);
  color: var(--accent);
  border-radius: 11px;
  box-shadow: 0 2px 12px 0 rgba(43,53,67,0.17);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow 0.17s, background 0.18s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 5px 22px 0 rgba(76,122,160,0.23);
  background: var(--primary);
  color: var(--accent);
}

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 2px 18px 0 rgba(50,60,65,0.14);
  font-family: var(--font-body);
  margin-bottom: 20px;
  border-left: 4px solid var(--secondary);
  min-width: 0;
  flex: 1 1 320px;
  max-width: 700px;
  transition: box-shadow 0.22s, border-color 0.18s;
}
.testimonial-card p {
  color: var(--black);
  margin: 0 0 4px 0;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-color: var(--metallic);
  box-shadow: 0 6px 22px rgba(82,120,160,0.17);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/**** Custom for Theming (Features, Team, etc.) ****/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature {
  background: var(--highlight);
  padding: 28px 18px 18px 18px;
  border-radius: 11px;
  box-shadow: 0 2px 12px 0 rgba(43,53,67,0.11);
  flex: 1 1 200px;
  min-width: 200px;
  max-width: 350px;
  text-align: center;
  margin-bottom: 20px;
  transition: background 0.22s, box-shadow 0.18s;
  border-left: 4px solid var(--primary);
}
.feature img {
  height: 48px;
  width: 48px;
  margin-bottom: 10px;
}
.feature h3 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.feature p {
  color: var(--accent);
  font-size: 1rem;
}
.feature:hover {
  background: var(--primary);
  border-left: 4px solid var(--secondary);
  box-shadow: 0 6px 18px 0 rgba(77,122,182,0.11);
}

.team-listing {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  background: var(--highlight);
  color: var(--accent);
  padding: 24px 20px;
  border-radius: 10px;
  min-width: 170px;
  flex: 1 1 170px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(55,62,76,0.14);
  transition: box-shadow 0.24s, background 0.16s;
}
.team-member h3 {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 7px;
}
.team-member:hover {
  background: var(--primary);
  box-shadow: 0 7px 24px 0 rgba(77,122,182,0.17);
}

/**** Custom Contact Details ****/
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 24px 0 8px 0;
  font-size: 1.12rem;
  color: var(--accent);
}
.contact-details strong {
  font-family: var(--font-display);
  color: var(--secondary);
  font-weight: 700;
}
.contact-details img {
  height: 18px;
  width: 18px;
  margin: 0 5px -4px 6px;
  opacity: 0.8;
}

/***********
* SPACING, CONTENT LAYOUT
************/
.content-wrapper {
  margin-bottom: 32px;
  padding: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Must always have gap between cards/sections */
section + section, .card + .card, .testimonial-card + .testimonial-card, .feature + .feature, .team-member + .team-member {
  margin-top: 24px;
}

/*********************************
* FOOTER
**********************************/
footer {
  background: var(--off-black);
  color: var(--metallic);
  border-top: 2px solid var(--primary);
  font-size: 1rem;
  padding-top: 30px;
  padding-bottom: 18px;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 16px;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: 500;
  font-family: var(--font-display);
  margin-right: 8px;
  transition: color 0.11s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin: 0 5px -4px 5px;
  opacity: 0.7;
}
.footer-copy {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--metallic);
  margin-top: 12px;
  opacity: 0.7;
}

/*********************************
* RESPONSIVE STYLES - MOBILE FIRST
**********************************/
@media (max-width: 1024px) {
  .feature-grid, .team-listing, .content-grid, .card-container {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .section, section {
    margin-bottom: 38px;
    padding: 32px 8px;
  }
  .container {
    padding: 0 10px;
  }
  .footer-nav, .footer-contact {
    gap: 7px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.98rem;
  }
  .feature-grid, .team-listing, .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    padding: 14px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.08rem; }
  .section, section { padding: 22px 3px; }
  .feature, .team-member { padding: 16px 6px; }
}

/*********************************
* TRANSITIONS, SHADOWS, INTERACTIONS
**********************************/
button, .cta-button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.18s, color 0.11s, box-shadow 0.21s;
}
.card, .feature, .team-member {
  transition: background 0.14s, box-shadow 0.16s;
}
.testimonial-card {
  transition: border-color 0.18s, box-shadow 0.13s;
}
a, nav a, .footer-nav a {
  transition: color 0.13s;
}

/**************************************
* COOKIE CONSENT BANNER & MODAL
***************************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1080;
  background: var(--highlight);
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 22px rgba(18,24,27,0.17);
  padding: 28px 28px 22px 28px;
  gap: 18px;
  font-size: 1rem;
  animation: cookieBannerSlideIn 0.5s cubic-bezier(.74,.33,.36,.73);
}
@keyframes cookieBannerSlideIn {
  0% {transform: translateY(110px); opacity:0;}
  100% {transform: translateY(0); opacity:1;}
}
.cookie-banner__text {
  flex: 3;
  margin-bottom: 7px;
  color: var(--accent);
}
.cookie-banner__actions {
  flex: 1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}
.cookie-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 19px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background 0.19s, color 0.18s, box-shadow 0.11s;
  margin-right: 2px;
  margin-top: 5px;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--black);
  box-shadow: 0 2px 7px 0 rgba(33,66,77,0.12);
}
.cookie-btn.accept:hover {
  background: var(--off-white);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--primary);
  color: var(--accent);
  border: 1.5px solid var(--metallic);
}
.cookie-btn.reject:hover {
  background: var(--black);
  color: var(--accent);
}
.cookie-btn.settings {
  background: var(--highlight);
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.cookie-btn.settings:hover {
  background: var(--secondary);
  color: var(--black);
}

/**** Cookie Modal ****/
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18,26,31,0.75);
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.3s;
}
@keyframes cookieModalFadeIn {0% {opacity:0;} 100%{opacity:1;}}
.cookie-modal {
  background: var(--off-black);
  color: var(--accent);
  border-radius: 15px;
  padding: 36px 32px 30px 32px;
  min-width: 330px;
  max-width: 96vw;
  box-shadow: 0 10px 48px rgba(23,34,43,0.23), 0 2px 20px var(--highlight);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal h2 {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-category label {
  color: var(--accent);
  font-size: 1.01rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.cookie-toggle {
  appearance: none;
  width: 46px;
  height: 24px;
  background: var(--metallic);
  border-radius: 13px;
  position: relative;
  outline: none;
  cursor: pointer;
  border: 1px solid var(--secondary);
  transition: background 0.17s, border 0.17s;
}
.cookie-toggle:checked {
  background: var(--secondary);
  border-color: var(--secondary);
}
.cookie-toggle:before {
  content: "";
  position: absolute;
  left: 3px; top: 2.7px;
  width: 19px; height: 18px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 1px 4px rgba(32,44,53,0.13);
  transition: transform 0.18s, background 0.13s;
}
.cookie-toggle:checked:before {
  background: var(--primary);
  transform: translateX(19px);
}
.cookie-category input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-modal .cookie-btn {
  margin-top: 17px;
  margin-bottom: 0;
  min-width: 124px;
}
.cookie-modal .cookie-btn.reject {
  margin-left: 6px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px; right: 16px;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.11s;
}
.cookie-modal-close:hover {
  opacity: 1;
  color: var(--secondary);
}

@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 7px 14px 7px;
    font-size: 14px;
  }
  .cookie-banner__actions {
    padding-top: 8px;
    width: 100%;
    justify-content: flex-start;
  }
  .cookie-modal {
    min-width: 0;
    padding: 20px 7px 22px 7px;
    max-width: 98vw;
  }
}
