/* --- CSS RESET & NORMALIZE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #263238;
  color: #F5F5F5;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #FFC107;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ffd54f;
}
ul, ol {
  margin-left: 22px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
strong, b {
  font-weight: 700;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #F5F5F5;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.13rem;
}
p {
  margin-bottom: 14px;
}

/* ---- CONTAINER & FLEX LAYOUTS ---- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- HEADER & NAV --- */
header {
  background: #232c31;
  box-shadow: 0 2px 8px 0 rgba(40,46,54,0.16);
  position: sticky;
  top: 0;
  z-index: 800;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 78px;
}
header img {
  height: 40px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #F5F5F5;
  letter-spacing: 0.08em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  text-transform: uppercase;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: #FFC107;
  border-bottom: 2px solid #FFC107;
}
.btn-primary {
  background: linear-gradient(90deg, #ffc107 0%, #b3923b 100%);
  color: #232c31;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  box-shadow: 0 1px 8px 0 rgba(40,46,54,0.09);
  cursor: pointer;
  margin-left: 20px;
  text-transform: uppercase;
  display: inline-block;
  letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffb300;
  color: #263238;
  box-shadow: 0 4px 16px 0 rgba(90,87,51,0.14);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFC107;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 18px;
  line-height: 1;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #FFC107;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #232c31;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  box-shadow: 6px 0 32px 0 rgba(0,0,0,0.22);
  padding-top: 22px;
  overscroll-behavior: contain;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #FFC107;
  font-size: 2.2rem;
  margin: 10px 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #FFC107;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 34px 0 0 36px;
}
.mobile-nav a {
  color: #F5F5F5;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 13px 0;
  text-transform: uppercase;
  border-left: 5px solid transparent;
  letter-spacing: 0.04rem;
  transition: border-color 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFC107;
  border-left: 5px solid #FFC107;
}

/* --- MAIN & FLEX SECTIONS --- */
main {
  flex: 1 1 0%;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero {
  background: #232c31 url('../assets/hero-bg-industrial.jpg') center/cover no-repeat;
  box-shadow: 0 8px 42px 0 rgba(28,32,39,0.29);
  border-bottom: 1px solid #3e444a;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  min-height: 240px;
}

/* --- FEATURES/FLEX CARDS --- */
.features .content-wrapper, .feature-grid, .service-list, .project-list, .article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div, .service-list > div, .project-list > .text-section, .article-list > .text-section {
  background: #22282d;
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(20,24,26, 0.13);
  flex: 1 1 260px;
  padding: 32px 24px;
  margin-bottom: 20px;
  border: 1.5px solid #31373d;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border 0.23s, box-shadow 0.23s;
}
.feature-grid > div:hover, .service-list > div:hover, .project-list > .text-section:hover, .article-list > .text-section:hover {
  border: 1.5px solid #ffc107;
  box-shadow: 0 4px 22px 0 rgba(255,193,7,0.18);
}
.feature-grid img, .feature-grid svg {
  width: 44px;
  margin-bottom: 12px;
}
.service-list > div h3 { color: #FFC107; font-size: 1.15rem; }
.service-list > div p strong { color: #F5F5F5; }
.project-list > .text-section h3 { color: #FFC107; }

/***** CONTENT GRID & FLEXBOX *****/
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #21262a;
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 14px 0 rgba(44,44,44,0.13);
  border: 1.5px solid #32383e;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  padding: 28px 20px;
  transition: border 0.22s, box-shadow 0.22s;
}
.card:hover, .card:focus-within {
  border: 1.5px solid #ffc107;
  box-shadow: 0 6px 22px 0 rgba(255,193,7,0.16);
}

/***** TEXT & IMAGE FLEX SECTION *****/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

/***** FEATURE ITEMS *****/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/***** TESTIMONIALS *****/
.testimonials .content-wrapper {
  gap: 20px;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: #F5F5F5;
  color: #232c31;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px 0 rgba(36,36,38,0.10);
  border-left: 6px solid #FFC107;
  font-family: 'Open Sans', Arial, sans-serif;
  min-width: 0;
  max-width: 650px;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.10rem;
  color: #232c31;
  margin-right: 24px;
  margin-bottom: 0;
  font-family: inherit;
  line-height: 1.7;
}
.testimonial-card p {
  font-size: 1rem;
  color: #263238;
  margin: 0;
  font-weight: 600;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-left: 6px solid #b3923b;
  box-shadow: 0 8px 26px 0 rgba(255,193,7,0.10);
}

/***** BUTTONS & INTERACTIONS *****/
button, .btn-primary {
  outline: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
button:focus {
  outline: 2px solid #FFC107;
  outline-offset: 2px;
}

/***** FOOTER *****/
footer {
  background: #232c31;
  color: #F5F5F5;
  padding: 42px 0 24px 0;
  border-top: 1px solid #2e353a;
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav nav a {
  color: #F5F5F5;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.footer-nav nav a:hover, .footer-nav nav a:focus {
  color: #FFC107;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.footer-contact img {
  height: 42px;
  margin-bottom: 8px;
}
.footer-contact address {
  font-style: normal;
  font-size: 1rem;
  color: #b4b9bc;
  line-height: 1.8;
  text-align: right;
}
.footer-contact a {
  color: #FFC107;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #ffd54f;
}
.footer-contact img[alt*="Telefon"],
.footer-contact img[alt*="Email"] {
  width: 20px;
  margin-right: 6px;
  vertical-align: middle;
}

/***** SECTION-SPECIFIC *****/
.about-preview, .services-preview, .about-details, .benefits, .tips, .contact,
.contact-cta, .author-bio, .why-contact, .what-next, .approach-highlights {
  background: #22282d;
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(20,24,26,0.11);
}
.approach-highlights ul {
  list-style: square inside;
  margin: 0;
  padding: 0;
  color: #ffc107;
}
.approach-highlights ul li {
  color: #F5F5F5;
  margin-bottom: 10px;
}

/***** RESPONSIVE DESIGN *****/
@media (max-width: 1020px) {
  header .container {
    gap: 8px;
  }
  .feature-grid > div, .service-list > div, .card {
    min-width: 200px;
    padding: 18px 13px;
  }
  .testimonial-card { max-width: 98vw; }
}
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
    padding: 0 12px;
  }
  .footer-contact address {
    text-align: left;
  }
  .footer-contact { align-items: flex-start; }
  footer .container { flex-direction: column; gap: 30px; }
}
@media (max-width: 768px) {
  header nav { display: none; }
  .btn-primary { margin-left: 0; }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
  .feature-grid, .service-list, .project-list, .article-list, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card { flex-direction: column; gap: 10px; padding: 18px 12px; }
  .hero .container, .content-wrapper {
    align-items: flex-start;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  section { padding: 32px 6px; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .btn-primary { font-size: 0.93rem; padding: 10px 18px; }
  .testimonial-card blockquote, .testimonial-card p { font-size: 0.97rem; }
  .footer-contact img { height: 33px; }
}

/***** COOKIE CONSENT BANNER & MODAL *****/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #31373d;
  color: #F5F5F5;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  z-index: 1500;
  padding: 24px 22px;
  box-shadow: 0 -2px 18px 0 rgba(36,36,38,0.09);
  font-size: 1rem;
  animation: cookie-appear 0.55s cubic-bezier(0.77,0,0.18,1);
}
@keyframes cookie-appear {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner p { margin: 0; }
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  background: #ffc107;
  color: #232c31;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #b3923b;
  color: #f5f5f5;
}
.cookie-banner .cookie-settings-btn {
  background: #232c31;
  color: #ffc107;
  border: 1.5px solid #ffc107;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  color: #f5f5f5;
  background: #b3923b;
}
@media (max-width: 610px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.97rem;
    padding: 18px 7px;
  }
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 49vh;
  transform: translate(-50%, -49%) scale(0.95);
  width: 95vw;
  max-width: 420px;
  background: #232c31;
  color: #F5F5F5;
  border: 2px solid #ffc107;
  border-radius: 12px;
  box-shadow: 0 6px 44px 0 rgba(32,32,44,0.19);
  z-index: 1600;
  padding: 40px 28px 24px 28px;
  flex-direction: column;
  gap: 24px;
  animation: modal-in 0.44s cubic-bezier(.77,0,.18,1);
}
.cookie-modal.active {
  display: flex;
  animation: modal-in 0.44s cubic-bezier(.77,0,.18,1);
}
@keyframes modal-in {
  0% { opacity: 0; transform: translate(-50%,-60%) scale(0.88); }
  100% { opacity: 1; transform: translate(-50%,-49%) scale(1); }
}
.cookie-modal h3 {
  color: #ffc107;
  font-size: 1.31rem;
  margin-bottom: 11px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 1rem;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #F5F5F5;
  flex: 1 1 auto;
}
.cookie-category input[type="checkbox"] {
  accent-color: #ffc107;
  width: 22px;
  height: 22px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #ffc107;
  font-size: 1.6rem;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:focus {
  outline: 2px solid #ffc107;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 28px 6px 17px 6px; }
}

/***** ANIMATIONS / MICRO-INTERACTIONS *****/
.btn-primary, button, .card, .testimonial-card {
  transition: box-shadow 0.21s, border 0.21s, color 0.18s, background 0.18s, transform 0.18s;
}
.card:hover, .btn-primary:hover, button:hover, .testimonial-card:hover {
  transform: translateY(-1.5px) scale(1.02);
}

/***** CUSTOM FORM STYLING *****/
input, textarea, select {
  background: #1c2326;
  border: 1.2px solid #444b52;
  color: #f5f5f5;
  border-radius: 5px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px;
  margin-bottom: 18px;
  width: 100%;
  margin-top: 5px;
  outline: none;
  transition: border 0.17s, background 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.2px solid #ffc107;
  background: #232c31;
}
label {
  display: block;
  margin-bottom: 6px;
  color: #ffc107;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/***** Z-INDEX LAYERS (CRITICAL) *****/
header { z-index: 800; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 1500; }
.cookie-modal { z-index: 1600; }

/***** MISC UTILITIES *****/
.mt-1 { margin-top: 10px !important; }
.mt-2 { margin-top: 20px !important; }
.mb-1 { margin-bottom: 10px !important; }
.mb-2 { margin-bottom: 20px !important; }
.text-center { text-align: center !important; }

/***** MARGIN/PADDING ADJUSTMENT TO PREVENT OVERLAP *****/
section, .card, .testimonial-card, .content-wrapper, .feature-grid > div, .service-list > div, .text-section {
  margin-bottom: 20px;
}

/* --- END --- */
