/* --- 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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #232832;
  min-height: 100vh;
  color: #F6F6F6;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
input, button, textarea, select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style-position: inside;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --- BRAND VARIABLES --- */
:root {
  --color-primary: #2B373F;
  --color-secondary: #8CB3A7;
  --color-accent: #F6F6F6;
  --color-dark: #232832;
  --color-neon: #71ffe4;
  --color-neon2: #18eeff;
  --color-neon3: #a6ffcb;
  --color-border: #33404c;
  --color-text: #F6F6F6;
  --color-headline: #FFFFFF;
  --color-bg: #232832;
  --color-card-bg: #28313A;
  --color-shadow: rgba(69,255,236,0.07);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-headline);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; letter-spacing: 0.03em; }
h2 { font-size: 2rem; margin-bottom: 18px;  }
h3 { font-size: 1.35rem; margin-bottom: 12px; font-weight: 600; }
h4, h5, h6 { margin-bottom: 10px; font-size: 1.125rem; }
p, ul, ol, li, a, span {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1rem;
}
.subheadline {
  font-family: var(--font-display);
  color: var(--color-neon2);
  font-size: 1.2rem;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
strong {
  color: var(--color-neon);
  font-weight: 700;
}

/* --- LAYOUT & CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-card-bg);
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 var(--color-shadow);
  border: 1.5px solid var(--color-border);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- FLEXBOX PATTERNS (No grid, no columns) --- */
.card-container, .feature-grid, .service-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container {
  margin: 0 auto 20px auto;
}
.card {
  background: var(--color-card-bg);
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 20px 0 var(--color-shadow);
  border: 1.5px solid var(--color-border);
  padding: 32px 24px;
  flex: 1 1 310px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 36px 0 rgba(24,238,255,0.13);
  border-color: var(--color-neon2);
}
.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 {
  background: var(--color-accent);
  color: #181C1F;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 22px 24px 22px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px 0 rgba(24,238,255,0.11);
  border-left: 4px solid var(--color-neon2);
  border-right: 4px solid var(--color-neon3);
  min-width: 0;
  max-width: 700px;
  width: 100%;
}
.testimonial-card p {
  color: #293043;
  font-size: 1.12rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #182025;
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background-color: var(--color-primary);
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0; z-index: 99;
  box-shadow: 0 2px 15px 0 rgba(71,174,222,0.075);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
header nav a {
  color: var(--color-neon2);
  font-family: var(--font-display);
  font-size: 1.07rem;
  letter-spacing: 0.02em;
  padding: 0 8px;
  font-weight: 500;
  position: relative;
  transition: color 0.24s;
}
header nav a:hover, header nav a.active {
  color: var(--color-neon);
  text-shadow: 0 0 6px var(--color-neon);
}
header img {
  height: 46px;
  width: auto;
}
.button.primary {
  background: linear-gradient(90deg, var(--color-neon), var(--color-neon2));
  color: #242E30;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 32px;
  padding: 13px 32px;
  font-size: 1.09rem;
  box-shadow: 0 3px 18px 0 rgba(24,238,255,0.10);
  cursor: pointer;
  transition: background 0.24s, color 0.22s, box-shadow 0.22s;
}
.button.primary:hover, .button.primary:focus {
  background: linear-gradient(90deg, var(--color-neon2) 37%, var(--color-neon3) 100%);
  color: #1e2327;
  box-shadow: 0 4px 30px 0 rgba(166,255,203,0.19);
}
.button {
  background: transparent;
  color: var(--color-neon2);
  border: 1.5px solid var(--color-neon3);
  border-radius: 32px;
  padding: 11px 30px;
  font-family: var(--font-display);
  font-size: 0.99rem;
  letter-spacing: 0.01em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border 0.22s;
}
.button:hover, .button:focus {
  background: var(--color-neon2);
  color: #182025;
  border-color: var(--color-neon); 
  box-shadow: 0 3px 14px 0 rgba(166,255,203,0.105);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  color: var(--color-neon2);
  font-size: 2.5rem;
  display: none;
  align-items: center;
  cursor: pointer;
  z-index: 1011;
  margin-right: 14px;
  transition: color 0.22s;
  padding: 4px 8px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--color-neon);
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,46,57,0.99);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-end;
  transform: translateX(105%);
  transition: transform 0.42s cubic-bezier(.82,.12,.36,1.43);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-neon2);
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  margin: 24px 24px 0 0;
  transition: color 0.22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-neon);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 44px 36px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-neon2);
  background: none;
  font-size: 1.37rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 3px 0 3px 8px;
  border-radius: 5px;
  transition: background 0.18s, color 0.19s;
  min-width: 140px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-neon);
  background: rgba(113,255,228,.10);
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  border-top: 2px solid var(--color-border);
  padding: 38px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: 30px;
}
footer img {
  height: 44px;
  width: auto;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
footer nav a {
  color: var(--color-neon3);
  font-family: var(--font-display);
  font-size: 1.01rem;
  letter-spacing: 0.01em;
  padding: 0 4px;
  font-weight: 500;
  transition: color 0.22s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-neon);
}
.imprint {
  text-align: center;
  color: #93a5a7;
  font-size: 0.95rem;
  margin-top: 12px;
}

/* --- LISTS & TEXT SECTIONS --- */
ul, ol {
  margin: 16px 0 20px 16px;
  line-height: 1.7;
}
.text-section, .team-overview, .map-embed, .blog-post, .case-study {
  margin-bottom: 32px;
}
.text-section h2, .team-overview h2, .map-embed h2, .case-study h2 {
  margin-bottom: 14px;
}
.text-section ul li, .team-overview ul li, .case-study ul li {
  padding-left: 3px;
  margin-bottom: 8px;
}
.price {
  color: var(--color-neon2);
  font-weight: 600;
  font-size: 1rem;
  margin-left: 10px;
}

/* --- FEATURE GRID/SERVICE LIST --- */
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 28px;
}
.feature-grid > div, .service-list > div {
  background: var(--color-card-bg);
  border-radius: 13px;
  border-left: 3.5px solid var(--color-neon);
  box-shadow: 0 3px 18px 0 var(--color-shadow);
  padding: 24px 20px 18px 20px;
  flex: 1 1 260px;
  transition: box-shadow 0.22s;
  margin-bottom: 20px;
  min-width: 210px;
}
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 6px 38px 0 rgba(113,255,228,0.19);
  border-left: 3.5px solid var(--color-neon2);
}
.feature-grid img, .service-list img {
  height: 40px;
  margin-bottom: 14px;
}

/* --- CONTACT SUMMARY --- */
.contact-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 15px;
  font-size: 1.02rem;
}
.contact-summary img {
  vertical-align: middle;
  height: 20px;
  margin-right: 8px;
  display: inline-block;
}

/* --- MAP EMBED --- */
.map-embed {
  background: var(--color-card-bg);
  border-radius: 11px;
  padding: 16px 14px;
  box-shadow: 0 2px 13px 0 var(--color-shadow);
  border: 1.5px solid var(--color-border);
  margin-bottom: 12px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1110px) {
  .container {
    max-width: 99vw;
  }
  .card-container, .feature-grid, .service-list {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
    gap: 8px;
  }
  .content-wrapper, .section {
    padding: 34px 8px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.48rem; }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-wrapper, .section {
    padding: 24px 0px;
    margin-bottom: 36px;
  }
  .feature-grid, .service-list, .card-container {
    flex-direction: column;
    gap: 0;
  }
  .feature-grid > div, .service-list > div, .card {
    margin-bottom: 20px;
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
  header nav {
    display: none;
  }
  .button.primary, .button {
    width: 100%;
    text-align: center;
  }
  .testimonial-card {
    padding: 22px 8px 18px 8px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.12rem; }
}

/* --- ANIMATIONS & TRANSITIONS --- */
.card, .content-wrapper, .feature-grid > div, .service-list > div, .testimonial-card {
  transition: box-shadow 0.25s, border-color 0.22s, background 0.2s;
}
a, .button, .button.primary, .mobile-menu-toggle, .mobile-nav a {
  transition: color 0.17s, background 0.2s, box-shadow 0.18s;
}

/* --- MICRO-INTERACTIONS --- */
.card:focus-within, .feature-grid > div:focus-within {
  border-color: var(--color-neon2);
  outline: none;
}
a:focus { outline: 2px dotted var(--color-neon2); }
.button:active, .button.primary:active {
  filter: brightness(0.95);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #1b222b;
  color: var(--color-accent);
  padding: 28px 20px 22px 20px;
  z-index: 2000;
  border-top: 3px solid var(--color-neon3);
  box-shadow: 0 -2px 24px rgba(113,255,228,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.33s cubic-bezier(.86,.23,.8,.71);
  pointer-events: all;
}
.cookie-banner.hide { transform: translateY(110%); pointer-events: none; }
.cookie-banner p { color: var(--color-accent); text-align: center; }
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  background: var(--color-neon);
  color: #182025;
  border: none;
  border-radius: 28px;
  padding: 9px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 10px 0 rgba(166,255,203,0.09);
  cursor: pointer;
  transition: background 0.22s, color 0.18s;
}
.cookie-btn.reject {
  background: none;
  color: var(--color-neon2);
  border: 1.5px solid var(--color-neon2);
}
.cookie-btn.settings {
  background: var(--color-neon2);
  color: #232832;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-neon2);
  color: #131A22;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,38,44,0.93);
  z-index: 3010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.30s;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: var(--color-card-bg);
  color: var(--color-accent);
  border-radius: 18px;
  padding: 46px 26px 28px 26px;
  max-width: 420px;
  width: 91vw;
  box-shadow: 0 6px 48px rgba(24,238,255,0.12);
  border: 2px solid var(--color-neon3);
  position: relative;
  display: flex;
  flex-direction: column;
}
.cookie-modal h2 {
  font-size: 1.34rem; color: var(--color-neon3); margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-accent);
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-neon2);
  border-radius: 6px;
  background: transparent;
  margin-right: 7px;
  position: relative;
  transition: background 0.2s, border 0.2s;
  cursor: pointer;
}
.cookie-category input[type="checkbox"]:checked {
  background: var(--color-neon2);
  border-color: var(--color-neon2);
}
.cookie-category input[type="checkbox"]:checked:after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #232832;
  border-width: 0 3.5px 3.5px 0;
  transform: rotate(42deg);
}
.cookie-essential {
  color: var(--color-neon2);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal-close {
  background: transparent;
  color: var(--color-neon2);
  border: none;
  font-size: 2rem;
  position: absolute;
  right: 12px; top: 14px;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-neon);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 9px;
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 7px;
}

/* --- CUSTOM SELECTION --- */
::selection {
  background: #1AE6FC;
  color: #242E30;
}

/* --- ACCENT LINKS --- */
a, .link {
  color: var(--color-neon2);
  transition: color 0.18s, text-shadow 0.16s;
}
a:hover, a:focus {
  color: var(--color-neon);
  text-shadow: 0 0 8px var(--color-neon3);
}

/* --- FORMS (For future use) --- */
input[type="text"], input[type="email"], textarea {
  background: var(--color-card-bg);
  color: var(--color-accent);
  border: 1.5px solid var(--color-neon3);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border 0.20s, box-shadow 0.21s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--color-neon2);
  outline: none;
}
label {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 1.05rem;
  margin-bottom: 9px;
  display: block;
}

/* --- HIDE MOBILE NAV ON DESKTOP --- */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* --- ENSURE NO OVERLAP --- */
.card-container > *:not(:last-child), .feature-grid > *:not(:last-child), .service-list > *:not(:last-child), .testimonial-card:not(:last-child), .case-study:not(:last-child), .content-wrapper:not(:last-child) {
  margin-bottom: 20px;
}

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