/* ================================================
   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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: #fff; color: #173B5B; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }

/* =======================
   VARIABLE PRIMARY COLORS
   ======================= */
:root {
  --color-primary: #173B5B;
  --color-secondary: #00A9A3;
  --color-accent: #F5F6FA;
  --color-dark: #22364A;
  --color-light: #fff;
  --color-grey: #F1F3F7;
  --color-border: #DBE3EE;
  --color-shadow: rgba(23, 59, 91, 0.08);
  --color-text: #173B5B;
  --color-link: #00A9A3;
  --color-error: #D9393E;
}

/* =======================
   TYPOGRAPHY
   ======================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-accent);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p, ul, ol { margin-bottom: 16px; }
strong { font-weight: bold; color: var(--color-dark); }
a {
  color: var(--color-link);
  transition: color 0.2s;
}
a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* =======================
   LAYOUT: CONTAINER & SECTION
   ======================= */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =======================
   HEADER & NAVIGATION
   ======================= */
header {
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-secondary);
  opacity: 1;
}
.logo img {
  height: 40px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-light);
  background: var(--color-secondary);
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  margin-left: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
   color: var(--color-light);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px 0 var(--color-shadow);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  margin-left: 16px;
  cursor: pointer;
  z-index: 102;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--color-secondary);
}

/* =======================
   MOBILE NAVIGATION
   ======================= */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-light);
  z-index: 120;
  box-shadow: 0 10px 24px 0 var(--color-shadow);
  overflow-y: auto;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  padding: 24px 32px 0 0;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 121;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 32px 40px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 16px 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-light);
}

/* =======================
   HERO/BANNER STYLES
   ======================= */
.hero, .about-hero, .dienstleistungen-hero, .produkte-hero, .references-hero, .blog-hero, .contact-hero, .thank-you {
  padding: 64px 0 56px 0;
  background: linear-gradient(100deg, var(--color-accent) 60%, #F1F3F7 100%);
  box-shadow: 0 0px 0px 0 rgba(0,0,0,0.03);
  border-bottom: 1px solid var(--color-border);
}
.hero h1, .about-hero h1, .dienstleistungen-hero h1, .produkte-hero h1, .references-hero h1, .thank-you h1, .blog-hero h1, .contact-hero h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.hero p, .about-hero p, .contact-hero p, .dienstleistungen-hero p, .produkte-hero p, .references-hero p, .thank-you p, .blog-hero p {
  font-size: 1.25rem;
  color: var(--color-dark);
}

/* =======================
   FLEXBOX LAYOUTS
   ======================= */
.features, .benefits, .blog-list, .about-preview, .services, .steps, .faq, .team, .product-categories, .cta, .services-preview, .thank-you, .contact-info, .legal-content {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 2px 6px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-4px) scale(1.01);
}
.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: 12px;
  background: #F5F6FA;
  color: #173B5B;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 600px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-meta {
  font-size: 1rem;
  color: var(--color-secondary);
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Feature Grid on Homepage */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid li {
  flex: 1 1 210px;
  min-width: 210px;
  background: var(--color-grey);
  border-radius: 8px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  box-shadow: 0 1px 4px var(--color-shadow);
  margin-bottom: 0; /* Prevent double spacing from flex gap */
  transition: box-shadow 0.16s, background 0.18s;
}
.feature-grid li:hover {
  background: var(--color-accent);
  box-shadow: 0 6px 24px var(--color-shadow);
}
.feature-grid img {
  width: 36px;
  height: 36px;
}

/* =======================
   SERVICE & FEATURE LISTS
   ======================= */
.service-list, .service-detailed-list, .service-features, .reasons-list, .faq-list, .benefit-points, .category-list, .feature-list, .step-list, .team-values, .article-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}
.service-list li, .service-detailed-list li, .service-features li, .reasons-list li, .faq-list li, .benefit-points li, .category-list li, .feature-list li, .step-list li, .team-values li, .article-list li {
  padding: 12px 16px;
  background: var(--color-grey);
  border-radius: 6px;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.55;
}
.service-detailed-list li strong, .service-list li strong {
  color: var(--color-secondary);
  font-weight: 600;
}

/* =======================
   BLOG & FEATURED ARTICLES
   ======================= */
.featured-articles, .benefits-grid, .next-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 0 0;
}
.featured-articles div, .benefits-grid>div, .next-steps ul li {
  background: var(--color-grey);
  color: var(--color-primary);
  font-size: 1rem;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* =======================
   CTA / CALL-TO-ACTION
   ======================= */
.cta {
  background: linear-gradient(90deg, #F5F6FA 70%, #E5F6F5 100%);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px var(--color-shadow);
  border-radius: 14px;
  padding: 40px 20px;
}
.cta h2 {
  color: var(--color-secondary);
  font-size: 2rem;
}

/* =======================
   FOOTER
   ======================= */
footer {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 40px 0 8px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.footer-logo img {
  width: 64px; height: 64px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-light);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.88;
  padding: 4px 8px;
  transition: color 0.2s, opacity 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #173B5B;
  align-items: flex-start;
  color: var(--color-light);
  font-size: 1rem;
  margin-bottom: 8px;
}
.contact-details img {
  height: 18px;
  width: 18px;
  margin-right: 10px;
  vertical-align: middle;
}

.social-media-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-media-links a img {
  width: 28px;
  height: 28px;
  transition: filter 0.18s, opacity 0.18s;
  opacity: 0.82;
  filter: grayscale(100%);
}
.social-media-links a:hover img {
  filter: grayscale(0);
  opacity: 1;
}
.copyright {
  margin-top: 24px;
  font-size: 0.95rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  opacity: 0.65;
}

/* =======================
   CONTACT INFO (KONTAKT)
   ======================= */
.contact-info {
  background: var(--color-accent);
}
.notice p {
  background: var(--color-secondary);
  color: var(--color-light);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1.05rem;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
}

/* =======================
   LEGAL / POLICY PAGES
   ======================= */
.legal-content h1 {
  font-size: 2rem;
}
.legal-content h2 {
  font-size: 1.25rem;
  color: var(--color-secondary);
}
.legal-content p, .legal-content li {
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 10px;
}
.legal-content ul {
  padding-left: 16px;
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-light);
  box-shadow: 0 -2px 16px var(--color-shadow);
  border-top: 1px solid var(--color-border);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 24px;
  opacity: 1;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(.8,0,.22,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  color: var(--color-primary);
  font-size: 1rem;
  margin-right: 18px;
  max-width: 500px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 3px;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  font-weight: 700;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-light);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
}
.cookie-btn.reject {
  background: var(--color-grey);
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-border);
}
.cookie-btn.settings {
  background: #e8f5f5;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: var(--color-light);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(23, 59, 91, 0.30);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: var(--color-light);
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(23,59,91,0.12);
  padding: 32px 28px 24px 28px;
  max-width: 420px;
  width: 92%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: zoomIn 0.38s cubic-bezier(.65,0,.22,1);
}
@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.85); }
  80% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category:last-child { border-bottom: none; }
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: var(--color-grey);
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid var(--color-border);
}
.cookie-toggle:checked {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 100%;
  background: #fff;
  transition: left 0.22s;
}
.cookie-toggle:checked::before {
  left: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 16px; top: 16px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close-modal:hover {
  color: var(--color-secondary);
}
.cookie-modal .cookie-category-label {
  font-size: 1.07rem;
}
.cookie-modal .cookie-category-desc {
  color: #586b83;
  font-size: 0.98rem;
  font-style: italic;
  margin-top: 2px;
}
.cookie-modal .essential {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.99rem;
}

/* =======================
   RESPONSIVE DESIGN
   ======================= */
@media (max-width: 1200px) {
  .container { max-width: 960px; }
}
@media (max-width: 992px) {
  .container { max-width: 740px; }
  .main-nav { gap: 20px; }
}
@media (max-width: 900px) {
  .feature-grid { gap: 12px; }
  .footer-nav { gap: 16px; }
}
@media (max-width: 768px) {
  /* Layout shifts to column on mobile */
  .container { max-width: 100%; padding-left: 12px; padding-right: 12px; }
  .section, .features, .benefits, .blog-list, .about-preview, .services, .steps, .faq, .team, .product-categories, .cta, .services-preview, .thank-you, .contact-info, .legal-content {
    padding: 28px 8px;
    margin-bottom: 42px;
    gap: 10px;
  }
  .hero, .about-hero, .dienstleistungen-hero, .produkte-hero, .references-hero, .blog-hero, .contact-hero, .thank-you {
    padding: 40px 0 36px 0;
  }
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .card-container, .content-grid, .benefits-grid, .featured-articles {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card {
    max-width: 95vw;
    min-width: 0;
    padding: 16px;
  }
  .footer-nav { flex-wrap: wrap; gap: 8px; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.33rem; }
  .section, .features, .cta {
    padding: 16px 4px;
    margin-bottom: 28px;
  }
  .hero, .about-hero, .dienstleistungen-hero, .produkte-hero, .references-hero, .blog-hero, .contact-hero, .thank-you {
    padding: 24px 0 18px 0;
  }
  .testimonial-card, .card {
    padding: 10px 6px;
  }
  .cookie-modal {
    padding: 14px 4px 12px 4px;
    max-width: 99vw;
  }
  .footer-logo img { width: 44px; height: 44px; }
}

/* =======================
   ADDITIONAL MICRO-ANIMATIONS AND EFFECTS
   ======================= */
.card, .testimonial-card, .feature-grid li {
  transition: box-shadow 0.22s, transform 0.2s, background 0.15s;
}

.cta-btn, .cookie-btn {
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.16s;
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.97);
}

::-webkit-scrollbar {
  width: 10px;
  background: #e8eaf3;
}
::-webkit-scrollbar-thumb {
  background: #c0cedd;
  border-radius: 8px;
}

/* =======================
   INPUTS & FORM ELEMENTS (if any in future forms)
   ======================= */
input, textarea, select {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 10px 14px;
  border-radius: 7px;
  border: 1px solid var(--color-border);
  outline: none;
  background: var(--color-light);
  transition: border 0.18s, box-shadow 0.18s;
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 2px 8px var(--color-shadow);
}

button:focus, a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* =======================
   OVERLAY MODAL FOR OTHER USES (if any)
   ======================= */
.overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(23, 59, 91, 0.20);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.overlay.open { display: flex; }

/* =======================
   UTILITY CLASSES
   ======================= */
.d-none { display: none !important; }
.d-block { display: block !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.gap-20 { gap: 20px; }

/* ========== END OF STYLE.CSS ========= */
