/* --------------------- 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 {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #F8FAFB;
}
body {
  background: #fcfdff;
  font-family: 'Roboto', Arial, sans-serif;
  color: #194260;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  color: #1B4A7C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #388dc8;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

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

/* ----------------- COLOR VARIABLES (with fallbacks) ----------------- */
:root {
  --primary: #1B4A7C;
  --secondary: #82C9E6;
  --accent: #F8FAFB;
  --pastel-blue: #C5E4F7;
  --pastel-aqua: #B2EFE3;
  --pastel-lilac: #EFD6F5;
  --pastel-pink: #F9E3EC;
  --pastel-yellow: #FFF8DA;
  --pastel-green: #D0F5E9;
  --text-main: #1B4A7C;
  --text-dark: #194260;
  --text-light: #fff;
  --card-bg: #F8FAFB;
  --shadow: 0 4px 20px 0 rgba(33,52,71,0.09), 0 1.5px 4px 0 rgba(33,52,71,0.07);
}

/* ----------------- BASE TYPOGRAPHY ----------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 10px;
}
p:last-child, ul:last-child, ol:last-child {
  margin-bottom: 0;
}
strong {
  font-weight: 600;
}
em {
  color: var(--primary);
  font-style: italic;
}

/* ----------------- GLOBAL CONTAINER STYLES ----------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ----------------- HEADER & NAVIGATION ----------------- */
header {
  width: 100%;
  background: linear-gradient(90deg,#B2EFE3 0%,#EFD6F5 100%);
  box-shadow: 0 2px 10px 0 rgba(33,52,71,0.07);
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img[alt="NeatGlide Wasserlieferung"] {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  background: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.02rem;
  transition: background 0.15s, color 0.2s;
}
header nav a:hover,
header nav a.active {
  background: var(--secondary);
  color: var(--text-light);
}

.cta.primary {
  display: inline-block;
  background: linear-gradient(90deg, #82C9E6 0%, #EFD6F5 100%);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  border-radius: 32px;
  padding: 11px 32px;
  box-shadow: var(--shadow);
  letter-spacing: 0.01em;
  border: none;
  transition: background 0.22s, color 0.18s, box-shadow 0.28s;
  cursor: pointer;
  margin-left: 14px;
  text-align: center;
  margin-top: 0;
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(90deg, #B2EFE3 0%, #82C9E6 100%);
  color: #fff;
  box-shadow: 0 6px 26px 0 rgba(33,52,71,0.14);
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-aqua);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  box-shadow: var(--shadow);
  position: absolute;
  right: 22px;
  top: 17px;
  z-index: 202;
  transition: background 0.15s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--pastel-lilac);
  color: #fff;
}

/* ------------- MOBILE MENU ------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #B2EFE3 0%, #EFD6F5 100%);
  box-shadow: 0 0 333px rgba(130,201,230,0.08);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.91,.14,.36,.84), opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 24px 0 0 22px;
  font-size: 2rem;
  color: var(--primary);
  background: var(--pastel-yellow);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-pink);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 46px 0 0 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  padding: 7px 0;
  letter-spacing: .01em;
  border-radius: 8px;
  width: 90vw;
  max-width: 370px;
  transition: background 0.18s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
@media (max-width: 992px) {
  header .container nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* ----------------- SECTIONS & LAYOUT SPACING ----------------- */
section {
  background: var(--accent);
  border-radius: 32px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--shadow);
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
}
.features-grid > div {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px 22px 26px 22px;
  flex: 1 1 260px;
  min-width: 250px;
  max-width: 340px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(36, 92, 135, 0.12);
  transform: translateY(-2px) scale(1.012);
}
.features-grid img {
  height: 50px;
  margin-bottom: 6px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 18px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(36, 92, 135, 0.13);
}

.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

/* -------- TESTIMONIALS --------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  border-left: 6px solid var(--secondary);
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: #15355B;
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 1rem;
  color: #23477a;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.4;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px 0 rgba(36, 92, 135, 0.14);
}

/* -------- LISTS & DETAILS --------- */
ul, ol {
  margin-left: 24px;
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0;
  color: var(--primary);
}
ul li::marker, ol li::marker {
  color: var(--pastel-blue);
}
ul strong, ol strong {
  color: var(--primary);
}

/* -------- FOOTER --------- */
footer {
  background: linear-gradient(90deg,#B2EFE3 0%,#EFD6F5 100%);
  padding: 36px 0 22px 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 14px rgba(130,201,230,.11);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
footer nav a {
  color: var(--primary);
  font-weight: 500;
  border-radius: 6px;
  background: none;
  padding: 5px 9px;
  font-size: 1rem;
  transition: color 0.20s, background 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  background: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .96rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  margin-bottom: 0;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  margin-right: 7px;
}

/* ------------ BUTTONS & LINKS ------------- */
button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--pastel-blue);
  color: var(--primary);
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 28px;
  border: none;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: background .18s, color .16s, box-shadow .15s;
  cursor: pointer;
  outline: none;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--pastel-lilac);
  color: var(--primary);
  box-shadow: 0 7px 28px 0 rgba(130,201,230,0.13);
}

.cta {
  box-shadow: var(--shadow);
  font-weight: 700;
  text-align: center;
}

/* Inline link */
a.inline-link {
  color: #349ecb;
  border-bottom: 1.5px dotted #349ecb;
  transition: color 0.19s, border-bottom 0.17s;
}
a.inline-link:hover, a.inline-link:focus {
  color: #1b4a7c;
  border-bottom: 1.5px solid #1b4a7c;
}

/* ------------- COOKIE CONSENT BANNER -------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: linear-gradient(90deg,#FFF8DA 0%,#B2EFE3 100%);
  color: #1B4A7C;
  padding: 26px 18px 19px 18px;
  box-shadow: 0 -2px 22px 0 rgba(36,92,135,0.11);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-radius: 28px 28px 0 0;
  font-size: 1rem;
}
.cookie-banner-content {
  max-width: 800px;
  font-size: 1rem;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner .btn-cookie {
  padding: 10px 22px;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 600;
  border: none;
  transition: background .18s, color .15s;
}
.cookie-banner .btn-cookie.secondary {
  background: var(--pastel-blue);
  color: var(--primary);
}
.cookie-banner .btn-cookie.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  background: var(--pastel-lilac);
  color: var(--primary);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(194,216,221,0.36);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: cookieOverlayFade 0.3s;
}
@keyframes cookieOverlayFade {
  from {opacity:0;}
  to {opacity:1;}
}
.cookie-modal {
  background: linear-gradient(135deg,#FFF8DA 0%,#EFD6F5 100%);
  border-radius: 32px;
  box-shadow: 0 12px 60px 0 rgba(36,92,135,0.08);
  padding: 34px 28px 30px 28px;
  min-width: 300px;
  max-width: 98vw;
  width: 420px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modalIn 0.22s cubic-bezier(.89,.13,.23,.95);
}
@keyframes modalIn {
  from { transform:translateY(32px) scale(0.95); opacity:0; }
  to   { transform:translateY(0) scale(1); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 9px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cookie-modal-category label {
  font-size: 1.07rem;
}
.cookie-modal-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.65rem;
  color: var(--primary);
  background: var(--pastel-yellow);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--pastel-pink);
}

/* ----------------- RESPONSIVENESS ----------------- */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
  .features-grid > div {
    max-width: 94vw;
  }
}
@media (max-width: 900px) {
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  /* All global layouts become column */
  .container {
    padding-left: 8px;
    padding-right: 8px;
    flex-direction: column;
    gap: 0;
  }
  section {
    margin-bottom: 34px;
    padding: 22px 7px;
    border-radius: 18px;
  }
  header .container {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 7px;
    padding-bottom: 7px;
    gap: 10px;
  }
  .content-wrapper {
    gap: 11px;
  }
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .features-grid > div {
    min-width: 0;
    max-width: 100%;
    padding: 19px 11px 17px 12px;
  }
  .card-container { flex-direction: column; gap: 19px; }
  .content-grid { flex-direction: column; gap: 13px; }
  .testimonial-card { flex-direction: column; gap: 11px; }
  .text-image-section { flex-direction: column; gap: 13px; }
  footer .container { flex-direction: column; gap: 14px; }
  footer {
    border-radius: 14px 14px 0 0;
    padding: 18px 0 12px 0;
  }
  .footer-contact {
    font-size: .93rem;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    font-size: 0.96rem;
    border-radius: 17px 17px 0 0;
    padding: 16px 6px 10px 8px;
  }
  .cookie-banner-buttons { flex-direction: column; gap: 8px; }
  .cookie-modal {
    padding: 19px 7px 18px 8px;
    border-radius: 16px;
    width: 98vw;
    min-width: unset;
  }
}
@media (max-width:544px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.18rem; }
  .cta.primary, button, .btn {
    padding: 9px 13px;
    font-size: .97rem;
  }
}

/* -------------- MISC DECORATIONS & EFFECTS ----------------- */
section {
  /* Pastel glow */
  box-shadow: 0 8px 32px 0 rgba(187,230,221,0.14), 0 1.5px 4px 0 rgba(130,201,230,0.11);
}
.testimonial-card {
  border-image: linear-gradient(90deg,#82C9E6 0%,#EFD6F5 100%) 1;
}
.features-grid > div {
  border: 1.5px solid #eaf4fb;
  background: linear-gradient(120deg, #FFF8DA 13%, #B2EFE3 77%, #EFD6F5 100%);
}

/* FORM STYLES */
input, textarea, select {
  border-radius: 14px;
  border: 1.2px solid #D0F5E9;
  background: #fff;
  padding: 10px 14px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
  box-shadow: 0 1.5px 6px 0 rgba(130,201,230,0.08);
  transition: border .16s, box-shadow .12s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 2px 17px 0 rgba(130,201,230,0.14);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 500;
}

/* -------------- UTILITIES ------------------ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.gap-20 { gap: 20px !important; }
.gap-30 { gap: 30px !important; }

/* -------------- SCROLLBAR FOR MODALS ------------------- */
.cookie-modal { overflow-y: auto; }

/* --------- HIDE ELEMENTS IF NEEDED ----------- */
@media print { .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; } }

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