/* =======================================================
   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, main,
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 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  background: #142642;
  color: #E5E6EB;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.6;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #E5E6EB;
  outline-offset: 2px;
}

/* =======================================================
   BRAND / INDUSTRIAL MODERN TYPE
   ======================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: -0.5px;
  color: #E5E6EB;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.125rem; font-weight: 600; }
p, ul, ol, table, .text-section {
  margin-bottom: 20px;
}
strong, b {
  font-weight: 700;
}

/* Industrial Modern - Color Palette */
:root {
  --primary: #142642;
  --secondary: #738291;
  --accent: #E5E6EB;
  --steel: #4A5A6A;
  --concrete: #222831;
  --button-bg: #142642;
  --button-hover: #222831;
  --card-bg: #202C39;
  --card-border: #3A4553;
  --shadow: 0 2px 16px rgba(20,38,66,0.18);
  --radius: 10px;
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
}

/* =======================================================
   BODY & LAYOUT
   ======================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

main {
  min-height: 60vh;
}

.text-section {
  background: none;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.8;
}

/* =======================================================
   HEADER
   ======================================================= */
header {
  width: 100%;
  background: var(--concrete);
  box-shadow: 0 4px 16px rgba(20,38,66,0.16);
  border-bottom: 1px solid var(--card-border);
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0;
}
.logo-link {
  display: flex;
  align-items: center;
  height: 46px;
}
.logo-link img {
  height: 42px;
  width: auto;
  filter: grayscale(0.1) brightness(1.2) contrast(1.2);
}
nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  position: relative;
}
nav a:hover, nav a:focus {
  color: var(--secondary);
}
nav a.active, nav a[aria-current="page"] {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

/* =======================================================
   CTA BUTTON STYLE
   ======================================================= */
.cta-button {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(90deg, var(--primary) 70%, var(--steel) 100%);
  color: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 11px 26px;
  margin-left: 20px;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 12px rgba(154,162,179,0.10);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
  outline: none;
  text-shadow: 0 1px 2px rgba(20,38,66,0.18);
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, var(--steel) 60%, var(--primary) 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 20px rgba(20,38,66,0.26);
}

/* Main Button Style */
button, .button {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  background: var(--button-bg);
  color: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(30,30,40,0.06);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
button:hover, .button:hover,
button:focus, .button:focus {
  background: var(--button-hover);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}


/* =======================================================
   FLEXBOX LAYOUT HELPERS
   ======================================================= */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--card-border); padding: 24px; min-width: 270px; }
.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; margin-bottom: 20px; background: #fff; color: #222831; border-radius: var(--radius); box-shadow: 0 2px 16px rgba(20,38,66,0.10); border: 1px solid #dedede; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Feature Grid (Index & About) */
.feature-grid, .value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature, .value-item {
  background: var(--card-bg);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 30px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  min-width: 240px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover, .value-item:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 32px rgba(20,38,66,0.24);
}
.feature img, .value-item img {
  height: 36px;
  width: 36px;
  margin-bottom: 10px;
  filter: grayscale(0.2) brightness(1.15);
}

/* Service List (index) */
.service-list {
  margin: 0 0 24px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-list li {
  background: var(--card-bg);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 8px rgba(20,38,66,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.05rem;
}
.service-list span { color: var(--secondary); font-weight: 700; margin-left: 12px; }

/* FAQ (Dienstleistungen) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-list h3 {
  font-size: 1.14rem;
  color: var(--secondary);
  margin-bottom: 4px;
}

.stepper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 20px 0;
  counter-reset: step;
}
.stepper li {
  position: relative;
  padding-left: 38px;
  font-size: 1rem;
}
.stepper li::before {
  counter-increment: step;
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 1px;
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Content Helper */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* =======================================================
   PRICING TABLES
   ======================================================= */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 16px 18px;
  font-size: 1rem;
  border-bottom: 1px solid var(--card-border);
  text-align: left;
}
.pricing-table th {
  background: var(--steel);
  color: #fff;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
}
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}
.pricing-table td:last-child {
  font-weight: 700;
  color: var(--secondary);
}


/* =======================================================
   MAP PLACEHOLDER
   ======================================================= */
.map-placeholder {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--accent);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-top: 10px;
}
.map-placeholder img {
  height: 30px;
  width: 30px;
  filter: grayscale(0.27) brightness(1.07);
}


/* =======================================================
   FOOTER
   ======================================================= */
footer {
  width: 100%;
  background: var(--concrete);
  border-top: 1px solid #232c39;
  padding: 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 20px 24px 20px;
}
.footer-brand {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(1.08) grayscale(0.18);
}
.footer-brand p {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 0;
}
.footer-menu {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: var(--secondary);
  font-size: 1rem;
  letter-spacing: 0.2px;
  border-bottom: 1px dashed transparent;
  transition: color var(--transition), border-color var(--transition);
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
}
.footer-contact {
  flex: 1 1 210px;
  color: var(--secondary);
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact a {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}


/* =======================================================
   TESTIMONIALS - HIGH CONTRAST
   ======================================================= */
.testimonial-card {
  background: #fff;
  color: #222831;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e1e1e1;
  margin-bottom: 20px;
  padding: 20px;
  font-size: 1.08rem;
  line-height: 1.7;
}
.testimonial-card .author {
  font-size: 1rem;
  color: var(--secondary);
  font-style: italic;
  font-weight: 600;
  margin-top: 8px;
}


/* =======================================================
   HAMBURGER MENU - MOBILE NAV
   ======================================================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 19px;
  right: 20px;
  z-index: 1002;
  width: 48px;
  height: 48px;
  background: var(--concrete);
  color: var(--accent);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 1px 8px rgba(20,38,66,0.20);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,38,66, 0.96);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.64,.09,.08,1.08);
  padding: 0 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  padding: 18px;
  margin: 8px 0 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.19rem;
  color: #fff;
  letter-spacing: 0.3px;
  padding: 14px 0 14px 8px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--steel);
  color: var(--accent);
}


/***** Only show hamburger below 1080px *****/
@media (max-width: 1080px) {
  header nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/***** Only show mobile menu (slide in) when open *****/
@media (max-width: 1080px) {
  .mobile-menu {
    display: flex;
    width: 100vw;
    min-height: 100vh;
  }
}

/* Hide mobile nav above 1080px */
@media (min-width: 1081px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* =======================================================
   COOKIE CONSENT (Banner + Modal Preferences)
   ======================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 3200;
  background: #232c39;
  color: var(--accent);
  box-shadow: 0 -2px 16px rgba(20,38,66,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 20px 20px 24px 20px;
  font-size: 1rem;
  border-top: 2px solid var(--steel);
  animation: slideBannerIn 0.6s cubic-bezier(.22,.79,.47,1.13);
}
@keyframes slideBannerIn {
  0% { transform: translateY(70px); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-left: 16px;
}
.cookie-banner button {
  background: var(--secondary);
  color: var(--accent);
  border-radius: var(--radius);
  border: none;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner button.cookie-settings {
  background: #232c39;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.cookie-banner button.cookie-settings:hover {
  background: var(--secondary);
  color: var(--accent);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3300;
  background: rgba(20,38,66,0.87);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.30s cubic-bezier(.42,0,.18,1.08);
}
.cookie-modal.open {
  opacity: 1; pointer-events: all;
}
.cookie-modal-content {
  background: #232c39;
  border-radius: var(--radius);
  color: var(--accent);
  min-width: 320px;
  max-width: 96vw;
  padding: 34px 24px 28px 24px;
  box-shadow: 0 8px 44px rgba(20,38,66,0.23);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  animation: modalPop 0.46s cubic-bezier(.36,1.33,.65,1.04);
}
@keyframes modalPop {
  0% { opacity:0; transform: scale(0.98) translateY(36px); }
  80% { opacity:1; transform: scale(1.03) translateY(-7px); }
  100% { opacity:1; transform: scale(1) translateY(0); }
}
.cookie-modal-content h2 {
  font-size: 1.21rem;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}
.cookie-modal-content .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px 10px 14px 16px;
  border: 1px solid var(--steel);
}
.cookie-category label {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-right: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
  margin-left: 10px;
}
.cookie-category input[disabled] {
  opacity: 0.5;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal-content button {
  padding: 10px 20px;
  font-size: 1rem;
}


/* =======================================================
   MEDIA QUERIES - RESPONSIVE FLEXBOX
   ======================================================= */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
  }
  .footer-menu, .footer-brand, .footer-contact {
    flex: 1 1 100%;
  }
  .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .feature-grid, .value-grid {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section, section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .footer-brand,
  .footer-menu,
  .footer-contact {
    flex: 1 1 100%;
    margin-bottom: 18px;
    align-items: flex-start;
  }
  .footer-menu {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
  }
  .footer-contact {
    font-size: 0.95rem;
    gap: 6px;
  }
  .pricing-table th, .pricing-table td {
    padding: 12px 7px;
    font-size: 0.95rem;
  }
  .testimonials {
    gap: 14px;
  }
  .testimonial-card {
    padding: 18px 8px;
    font-size: 0.98rem;
  }
  .feature, .value-item {
    min-width: 150px;
    padding: 22px 12px;
    gap: 10px;
  }
  .feature img, .value-item img {
    height: 28px;
    width: 28px;
  }
  .service-list li {
    padding: 12px 8px;
    font-size: 0.98rem;
    gap: 8px;
  }
  .map-placeholder {
    padding: 7px 8px;
  }
  main {
    min-height: 42vh;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  h3 { font-size: 1.09rem; }
  section, .section {
    padding: 20px 3px;
  }
  .footer-brand img,
  .logo-link img {
    height: 32px;
  }
}


/* =======================================================
   TRANSITIONS, MICRO-INTERACTIONS
   ======================================================= */
.section, .feature, .value-item, .card, .testimonial-card, .footer-menu a, .cta-button, button, .pricing-table, .service-list li {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

main a.cta-button:active, button:active, .feature:active, .value-item:active {
  transform: scale(0.99);
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--concrete);
}
::-webkit-scrollbar-thumb {
  background: var(--steel);
  border-radius: 4px;
}


/* =======================================================
   GENERAL SPACING & HIERARCHY
   ======================================================= */
.section h1, .section h2, .section h3, .section h4, .section h5, .section h6 {
  margin-bottom: 16px;
}
.section p, .section ul, .section ol, .section .text-section {
  margin-bottom: 20px;
}
.card, .testimonial-card, .feature, .value-item, .footer-brand, .footer-contact, .map-placeholder {
  margin-bottom: 20px;
}

/* Ensure 20px+ between all content cards/sections */
.card-container > *, .content-grid > *, .feature-grid > *, .value-grid > *, .testimonial-card, .service-list > *, .faq-list > *, .footer-brand, .footer-contact {
  margin-bottom: 20px;
}


/* =======================================================
   UTILITY
   ======================================================= */
.hide { display: none !important; }