/* =====================================================================
   RESET & BASE STYLES
===================================================================== */
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
body {
  line-height: 1.55;
  background: #181A23;
  color: #F6F2EB;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #6B5197; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #F6F2EB; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* =====================================================================
   BRAND FONTS (Roboto alternative for Montserrat/cormorant fallback)
===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Montserrat:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: #F6F2EB;
  line-height: 1.13;  /* Tight for industrial impact */
}
h1 { font-size: 2.5rem; margin-bottom: 18px; letter-spacing: 0.02em; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.38rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
.subtitle { color: #C9B5F4; font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 400; letter-spacing: 0.025em; margin-bottom: 18px; }

p, li, .text-section, .testimonials span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #E3DFD9;
}
strong { color: #E0D0F5; font-weight: 700; }

/* =====================================================================
   CONTAINERS & SECTIONS
===================================================================== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #23253A;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(18,19,21,0.22);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

/* Layout support patterns per spec */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #23253A;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(14, 14, 22, 0.12);
  position: relative;
  padding: 30px 24px;
  flex: 1 0 260px;
  min-width: 250px;
  max-width: 370px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #F6F2EB;
  color: #1C2040;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(28,32,64, 0.09);
  min-width: 240px;
  max-width: 360px;
  flex: 1 1 260px;
  z-index: 2;
}
.testimonials .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature Grid = 3 columns flex, no CSS grid! */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #23253A;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(28,32,64, 0.07);
  padding: 28px 24px 18px 24px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.feature-grid img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: grayscale(30%) brightness(0.8) drop-shadow(0 0 2px #222);
}

.text-section {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 16px;
}

/* =====================================================================
   HEADER & NAVIGATION
===================================================================== */
header {
  background: #1C2040;
  border-bottom: 1px solid #2F334C;
  box-shadow: 0 2px 16px rgba(20,21,27, 0.13);
  position: sticky;
  top: 0;
  z-index: 900;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 0 20px;
}
header img {
  height: 50px;
  width: auto;
  margin-right: 22px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
nav a {
  color: #E3DFD9;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
nav a:hover, nav a:focus {
  color: #F6F2EB;
  border-bottom: 2px solid #6B5197;
}
.cta-primary {
  background: #6B5197;
  color: #F6F2EB;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 22px;
  padding: 10px 34px;
  margin-left: 18px;
  box-shadow: 0 2px 10px rgba(32, 17, 58, 0.18);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s, transform 0.12s;
  position: relative;
  z-index: 4;
}
.cta-primary:hover, .cta-primary:focus {
  background: #1C2040;
  color: #E0D0F5;
  box-shadow: 0 4px 22px rgba(107,81,151,0.23);
  transform: translateY(-1px) scale(1.03);
}

/* MOBILE MENU BUTTON (burger) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #F6F2EB;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 18px;
  z-index: 1001;
  padding: 8px 12px;
  line-height: 1;
  border-radius: 7px;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2F334C;
}

/* =====================================================================
   HERO
===================================================================== */
.hero {
  background: #181A23 url('../assets/hero-bg.svg') center/cover no-repeat;
  padding: 70px 0 70px 0;
  border-bottom: 1px solid #22233a;
  width: 100%;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 620px;
  gap: 18px;
}
.hero h1 { color: #F6F2EB; }
.hero .cta-primary {margin-top: 16px;}

/* =====================================================================
   SERVICES, CTA, CONTACT BLOCK
===================================================================== */
.services ul, .features ul, .features ol {
  margin: 18px 0 0 20px;
  list-style: disc inside;
}
.services li, .features li, .cookie-policy li {
  margin-bottom: 9px;
  color: #C9B5F4;
  font-size: 1.09em;
}
.services strong, .features strong {
  color: #6B5197;
  font-weight: 700;
}
.cta {
  background: #23253A;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(28,32,64,0.09);
  padding: 40px 20px;
  margin-bottom: 60px;
}
.cta .content-wrapper {align-items: flex-start; gap: 18px;}
.cta-block { display: flex; align-items: center; gap: 19px; }

/* =====================================================================
   TESTIMONIALS (Kundenstimmen/Erfahrungen)
===================================================================== */
.testimonials {
  background: #23253A;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonials h2 { color: #F6F2EB; margin-bottom: 10px; }
.testimonial-slider { width: 100%; }
.testimonial-card p {
  color: #23253A;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.03rem;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.testimonial-card .star-rating {
  color: #FFD670;
  letter-spacing: 0.12em;
  font-size: 1.29em;
  margin-top: 6px;
}
.testimonial-card span {
  color: #6B5197;
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  font-weight: 600;
}

/* =====================================================================
   CONTACT PAGE ELEMENTS
===================================================================== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  margin-bottom: 18px;
}
.contact-details div {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #E0D0F5;
}
.contact-details img {
  width: 26px; height: 26px;
  margin-right: 12px;
  filter: grayscale(30%) brightness(0.85) drop-shadow(0 0 2px #1C2040);
}
.map-embed {
  margin: 28px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* =====================================================================
   FOOTER
===================================================================== */
footer {
  background: #181A23;
  color: #E3DFD9;
  border-top: 1px solid #24253b;
  margin-top: 48px;
  padding: 30px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
.footer-logo img {
  width: 58px;
  margin-bottom: 0;
}
footer nav {
  display: flex;
  gap: 18px;
}
footer nav a {
  color: #6B5197;
  font-size: 1em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 0.025em;
  border-bottom: 2px solid transparent;
}
footer nav a:hover { color: #F6F2EB; border-bottom: 2px solid #6B5197; }
.footer-contact {
  min-width: 230px;
  font-size: 1rem;
  color: #A096B5;
}
.footer-contact p {
  color: #A096B5;
}

/* =====================================================================
   COOKIE CONSENT BANNER & MODAL
===================================================================== */
.cookie-consent {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #23253A;
  color: #F6F2EB;
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 18px rgba(15,17,26,0.2);
  gap: 18px;
  animation: cookie-slidein 0.5s cubic-bezier(.36,1.08,.25,1) 1;
}
@keyframes cookie-slidein {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent__text {
  font-size: 1rem;
  color: #F6F2EB;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 6px;
}
.cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn, .cookie-settings-btn {
  background: #6B5197;
  color: #F6F2EB;
  border: none;
  border-radius: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 7px 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.cookie-btn.reject {
  background: #484A6B;
  color: #F6F2EB;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #23253A;
  color: #F6F2EB;
  box-shadow: 0 2px 12px rgba(107,81,151,0.17);
}
/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28,32,64,0.86);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-in 0.3s;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #23253A;
  color: #F6F2EB;
  padding: 36px 22px;
  border-radius: 22px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 6px 32px rgba(18,19,21,0.28);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  animation: modal-slidein 0.3s cubic-bezier(.36,1.08,.25,1);
}
@keyframes modal-slidein {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 { color: #F6F2EB; font-size: 1.2em; margin-bottom: 2px; }
.cookie-category {
  width: 100%;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-category-name {
  color: #E0D0F5;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
.cookie-toggle {
  width: 38px; height: 20px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle span {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  width: 38px;
  height: 20px;
  background-color: #484A6B;
  border-radius: 20px;
  transition: background 0.2s;
}
.cookie-toggle span:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 1px;
  bottom: 1px;
  background-color: #F6F2EB;
  border-radius: 50%;
  transition: transform 0.18s, background 0.18s;
}
.cookie-toggle input:checked + span {
  background-color: #6B5197;
}
.cookie-toggle input:checked + span:before {
  transform: translateX(18px);
  background: #6B5197;
}
.cookie-modal-footer {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  font-size: 0.97em;
  padding: 7px 19px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: #F6F2EB;
  font-size: 1.7em;
  cursor: pointer;
  z-index: 11;
}
.cookie-modal-close:hover {
  color: #6B5197;
}

/* =====================================================================
   MOBILE MENU & ANIMATION
===================================================================== */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #181A23;
  z-index: 15000;
  padding: 32px 22px 10px 22px;
  box-shadow: 4px 0 40px rgba(26,22,38,0.27);
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.36,1.08,.25,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #F6F2EB;
  font-size: 2rem;
  margin-bottom: 18px;
  cursor: pointer;
  padding: 6px 13px 3px 13px;
  border-radius: 9px;
  transition: background 0.15s;
}
.mobile-menu-close:hover {
  background: #25232B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 22px;
}
.mobile-nav a {
  color: #F6F2EB;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 14px 0;
  border-bottom: 1px solid #24253b;
  transition: color 0.18s, background 0.16s;
  border-radius: 7px;
  text-align: left;
}
.mobile-nav a:active, .mobile-nav a:hover {
  color: #6B5197;
  background: #222233;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =====================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
===================================================================== */
@media (max-width: 768px) {
  .section, .hero, .cta, .features, .testimonials {
    padding: 28px 10px;
    margin-bottom: 35px;
    border-radius: 10px;
  }
  .content-wrapper, .hero .content-wrapper {
    gap: 16px;
    padding: 0;
    align-items: flex-start;
  }
  .feature-grid, .card-container, .testimonials .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .card, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .map-embed { margin: 14px 0; }
  .footer-contact { margin-top: 22px; }
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  .hero { padding: 40px 0; }
  .container { padding: 0 6px; }
  .footer-logo img { width: 46px; }
  .cookie-modal { max-width: 95vw; min-width: 0; padding: 20px 7px; }
}

/* =====================================================================
   MICRO-INTERACTIONS, SHADOWS, & EFFECTS
===================================================================== */
.card, .feature-grid > div, .testimonial-card, .cta, .section {
  box-shadow: 0 2px 14px rgba(20, 17, 27, 0.12);
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(107,81,151,0.17);
  transform: translateY(-2px) scale(1.015);
  z-index: 2;
}

input, select, textarea, button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px;
  border: 1.5px solid #373956;
  background: #191A21;
  color: #E3DFD9;
  padding: 10px 15px;
  margin-bottom: 12px;
  transition: border 0.18s, box-shadow 0.17s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid #6B5197;
  box-shadow: 0 0 8px #6B519744;
}

::-webkit-input-placeholder { color: #A096B5; }
::-moz-placeholder { color: #A096B5; }
:-ms-input-placeholder { color: #A096B5; }
::placeholder { color: #A096B5; }

/* =====================
   VISUAL (industrial details)
===================== */
.section, .cta, .card, .feature-grid > div {
  border: 1px solid #35384B;
}
.card::before, .feature-grid > div::before {
  content: "";
  display: block;
  width: 40px; height: 3px;
  background: linear-gradient(90deg,#C9B5F4 0,#A096B5 90%);
  border-radius: 6px;
  margin-bottom: 10px;
  opacity: 0.35;
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* =====================================================================
   PRINT OVERRIDE (minimal)
===================================================================== */
@media print { 
  body * { color: #1C2040 !important; background: transparent !important; box-shadow: none !important; }
  .mobile-menu, .cookie-consent, .cookie-modal-overlay, .mobile-menu-toggle { display: none !important; }
}

/* =====================================================================
   Z-INDEX CONTROL FOR OVERLAYS
===================================================================== */
.mobile-menu, .cookie-modal-overlay, .cookie-consent {
  z-index: 18000;
}

/* End of style.css */
