/* =======================
   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;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F8F9;
  color: #2C2C2C;
}
ol, ul { list-style: none; }
a { background: transparent; text-decoration: none; color: inherit; transition: color .2s; }
img { border-style: none; max-width: 100%; height: auto; display: block; }
button, input, textarea { font-family: inherit; font-size: inherit; }

/* ==========================
   BRAND COLORS & VARIABLES
   ========================== */
:root {
  --primary: #14405C;
  --primary-dark: #10283D;
  --secondary: #4BA3C7;
  --secondary-light: #EFF6FA;
  --accent: #F6F8F9;
  --warm1: #F2B885;
  --warm2: #FFE5BD;
  --error: #E94242;
  --success: #49B87E;

  --text-main: #23272A;
  --text-muted: #608197;
  --heading: #14405C;
}

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background: var(--accent);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol { font-size: 1rem; margin-bottom: 18px; color: var(--text-main); }
ul, ol { padding-left: 16px; }
li { margin-bottom: 10px; }
strong { font-weight: 600; }

/* ==========================
   GENERAL LAYOUT & CONTAINER
   ========================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 18px 0 rgba(210, 169, 114, 0.13);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 900px) {
  .container {
    max-width: 100%;
    padding: 0 10px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

/* ==========================
   HEADER & NAVIGATION
   ========================== */
header {
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(20, 64, 92, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header > .container {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 20px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--warm2);
  color: var(--secondary);
}

.cta-button {
  background: linear-gradient(90deg, var(--warm1), var(--secondary));
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 10px 28px;
  border: none;
  border-radius: 30px;
  margin-left: 16px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(75, 163, 199, 0.13);
  transition: background 0.2s, box-shadow 0.2s, transform 0.16s;
  outline: none;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, var(--secondary), var(--warm1));
  box-shadow: 0 4px 14px 0 rgba(75, 163, 199, 0.18);
  transform: translateY(-2px) scale(1.025);
}

/* Mobile Menu burger */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  display: none;
  margin-left: 12px;
  z-index: 111;
  padding: 4px 8px;
  border-radius: 10px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--warm2);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(246, 248, 249, 0.98);
  box-shadow: 0 6px 32px 8px rgba(20,64,92,0.1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.85, 0, .3, 1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 18px 24px 0 0;
  cursor: pointer;
  border-radius: 8px;
  padding: 3px 7px;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--warm2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-top: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 0;
  border-radius: 12px;
  width: 220px;
  text-align: center;
  background: none;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--warm1);
  color: #fff;
}

/* Responsive Nav Handling */
@media (max-width: 900px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==========================
   HERO SECTION
   ========================== */
.hero-section {
  background: linear-gradient(80deg, var(--warm2) 60%, var(--secondary-light) 100%);
  border-radius: 0 0 40px 40px;
  padding: 64px 0 32px;
  margin-bottom: 34px;
}
.hero-section .container {
  min-height: 320px;
  justify-content: center;
}
.hero-section h1 {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 18px;
}
.hero-section p {
  color: var(--text-muted);
  font-size: 1.18rem;
  margin-bottom: 26px;
}
.hero-section .cta-button { margin-top: 0; }

@media (max-width: 768px) {
  .hero-section {
    padding: 32px 0 16px;
    border-radius: 0 0 18px 18px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}

/* ==========================
   FLEXBOX LAYOUT SHORTHANDS
   ========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 260px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(75, 163, 199, 0.10);
  padding: 24px 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(244,185,133,0.12);
  margin-bottom: 20px; /* ensure stack spacing */
  transition: box-shadow 0.19s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 18px 0 rgba(75, 163, 199, 0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 800px) {
  .content-grid, .card-container, .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ==========================
   FEATURE GRIDS & ITEMS
   ========================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.feature {
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px 18px;
  box-shadow: 0 2px 14px 0 rgba(244,184,133,0.10);
  flex: 1 1 220px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: box-shadow 0.17s;
}
.feature img {
  width: 40px; height: 40px; margin-bottom: 8px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 18px 0 rgba(255,170,81,0.17);
}

/* ==========================
   TESTIMONIALS
   ========================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.testimonial-list, .testimonial-slider {
  justify-content: flex-start;
  flex-direction: row;
}
.testimonial-meta {
  font-size: 0.97rem;
  color: var(--secondary);
}
.testimonial-card p {
  color: var(--primary-dark);
  font-size: 1.07rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.testimonial-card strong {
  color: var(--primary);
  font-weight: 700;
}
@media (max-width: 650px) {
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* ==========================
   CARDS (Projects, Services, News, FAQ, Team, etc.)
   ========================== */
.project-list, .news-list, .educational-articles, .faq-list, .team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.project, .news-item, .article, .service-category, .faq-item, .team-member {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(244,184,133,0.10);
  padding: 22px 18px 16px;
  flex: 1 1 280px;
  min-width: 200px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.project:hover, .news-item:hover, .article:hover, .service-category:hover, .faq-item:hover, .team-member:hover {
  box-shadow: 0 4px 22px 0 rgba(75,163,199,0.17);
  transform: translateY(-3px) scale(1.0125);
}

/* Service Categories for diensten.html */
.service-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.service-category h2 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .project-list, .news-list, .educational-articles, .faq-list, .team-profiles, .service-categories-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* Thank you section special */
.thank-you-message {
  background: var(--secondary-light);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 2px 12px 0 rgba(244,184,133,0.07);
  margin-bottom: 16px;
}
.thank-you-message a.cta-button { margin-top: 16px; display: inline-block; }

/* ==========================
   FOOTER
   ========================== */
footer {
  background: var(--primary);
  color: #fff;
  border-radius: 27px 27px 0 0;
  margin-top: 44px;
  padding: 38px 0 22px;
}
footer .container {
  flex-direction: row;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.85;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color .2s, text-decoration .2s;
}
.footer-nav a:focus, .footer-nav a:hover {
  color: var(--warm1);
  text-decoration: underline;
  opacity: 1;
}
.footer-contact {
  font-size: 1rem;
  color: #fff;
  opacity: 0.92;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact img { vertical-align: middle; width: 18px; height: 18px; margin-right: 5px; }
footer a {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 850px) {
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 16px;
    margin-bottom: 10px;
  }
}

/* ==========================
   SPECIALTY SECTIONS
   ========================== */
.timeline {
  background: var(--secondary-light);
  border-radius: 12px;
  padding: 18px 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
  color: var(--primary);
}
.service-guarantees {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--warm2);
  border-radius: 10px;
  padding: 16px 12px;
  font-size: 1rem;
  color: var(--primary);
  margin-top: 6px;
}
.location-map {
  margin: 18px 0;
  background: var(--secondary-light);
  border-radius: 14px;
  padding: 14px 12px 10px;
}
.location-map img { width: 18px; height: 18px; vertical-align: middle; margin-right: 5px; }

/* ==========================
   FAQ
   ========================== */
.faq-item h3 {
  font-size: 1.07rem;
  color: var(--secondary);
  margin-bottom: 7px;
}
.faq-item p {
  margin-bottom: 0;
}

/* ==========================
   BUTTONS & INTERACTIONS
   ========================== */
button, .cta-button, .mobile-menu-toggle, .mobile-menu-close {
  outline: none;
  transition: box-shadow 0.17s, background 0.18s, color 0.18s, transform 0.13s;
}
button:focus, .cta-button:focus {
  box-shadow: 0 0 0 2px var(--secondary), 0 2px 8px 0 rgba(75,163,199,0.1);
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff5ee;
  border-top: 2px solid var(--warm1);
  z-index: 9999;
  box-shadow: 0 -2px 18px 0 rgba(244,184,133,0.16);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 16px 20px;
  gap: 22px;
  font-size: 1rem;
  animation: cookie-banner-in .35s ease;
}
@keyframes cookie-banner-in {
  from { transform: translateY(60px); opacity: 0;} to { transform: translateY(0); opacity: 1;}
}
.cookie-consent-banner p {
  color: var(--primary-dark);
  margin-bottom: 0;
  flex: 2 1 360px;
}
.cookie-consent-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 21px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 600;
  background: var(--warm1);
  color: var(--primary);
  box-shadow: 0 1px 7px 0 rgba(244,184,133,0.09);
  transition: background 0.15s, color 0.15s, box-shadow 0.14s, transform 0.11s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(75,163,199,0.13);
  transform: scale(1.03);
}
.cookie-btn.secondary {
  background: var(--secondary-light);
  color: var(--primary);
}
.cookie-btn.secondary:hover,
.cookie-btn.secondary:focus {
  background: var(--warm2);
  color: var(--primary-dark);
}
@media (max-width: 750px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 8px 16px 8px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,64,92,0.28);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.32s;
}
.cookie-modal {
  min-width: 300px;
  max-width: 94vw;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(244,184,133,0.23);
  padding: 36px 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-in .31s cubic-bezier(.7,0,.2,1);
}
@keyframes cookie-modal-in {
  from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-category {
  background: var(--secondary-light);
  border-radius: 12px;
  padding: 13px 15px 11px;
  margin-bottom: 11px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.cookie-category label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: var(--primary-dark);
}
.cookie-category .toggle {
  width: 40px; height: 22px;
  background: #eee;
  border-radius: 11px;
  position: relative;
  margin-left: 8px;
}
.cookie-category .toggle input[type='checkbox'] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-category .slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px;
  height: 18px;
  background: var(--warm1);
  border-radius: 50%;
  transition: left .22s, background .18s;
}
.cookie-category input[type='checkbox']:checked + .slider {
  left: 20px; background: var(--secondary);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .cookie-modal {padding: 18px 7vw 15px;}
}

/* ==========================
   ACCESSIBILITY/HIGHLIGHTS
   ========================== */
a:focus-visible, .cta-button:focus-visible,
button:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ========================== 
   MEDIA QUERIES FOR RESPONSIVE
   ========================== */
@media (max-width: 1280px) {
  .container { max-width: 98vw; }
}
@media (max-width: 590px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.29rem; }
  h3 { font-size: 1.08rem; }
  .hero-section h1 { font-size: 1.45rem; }
  .section { padding: 19px 4vw; margin-bottom: 16px; }
  .card, .project, .news-item, .article, .service-category, .faq-item, .testimonial-card {
    padding: 12px 7px 9px;
    min-width: 0;
  }
  .card-container,
  .content-grid,
  .feature-grid,
  .testimonial-slider,
  .testimonial-list,
  .project-list,
  .news-list,
  .educational-articles,
  .faq-list,
  .team-profiles,
  .service-categories-grid {
    gap: 11px;
  }
}

/* ==========================
   UTILITY CLASSES
   ========================== */
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--text-muted);
}
.bg-accent {
  background: var(--accent) !important;
}
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.pb-0 { padding-bottom: 0 !important; }

/* ==========================
   SCROLLBAR STYLES (light)
   ========================== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--secondary-light);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--warm1);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ==========================
   END OF CSS
   ========================== */
