/* =============================================================
   WafersTear Bedachungen – Professional Corporate CSS (Flexbox-only)
   Author: Senior CSS Developer
   Style: Blue/Gray palette, Corporate Font, Structured, Modern Professional
   ============================================================= */
/* --- 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, main, 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 {
  scroll-behavior: smooth;
  background: #F6F8FA;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #193040;
  background: #F6F8FA;
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #184056;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus {
  outline: 2px solid #184056;
  outline-offset: 1px;
}
a:hover {
  color: #D9840A;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
ul, ol {
  list-style: none;
}
button {
  cursor: pointer;
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #184056;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h2, .h2 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #184056;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #184056;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
h4, .h4 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #184056;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
  color: #22334C;
  font-size: 1rem;
}
strong {
  font-weight: 600;
}

@media (max-width: 600px) {
  h1, .h1 { font-size: 1.7rem; }
  h2, .h2 { font-size: 1.25rem; }
  h3, .h3 { font-size: 1.05rem; }
}

/* --- CONTAINER & SECTION LAYOUTS --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px 0 rgba(24,64,86,.05);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 38px;
  }
}

main > section:not(:last-child) {
  margin-bottom: 60px;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 30px;
  justify-content: space-between;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    gap: 20px 0;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(24,64,86,0.08);
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 4px 20px 0 rgba(24,64,86,0.12);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
}

/* --- HERO, FEATURE, SERVICES, CTA LAYOUTS --- */
#hero {
  background: #184056;
  color: #fff;
  border-radius: 0 0 24px 24px;
  padding: 56px 0 60px 0;
  margin-bottom: 50px;
}
#hero .container {
  align-items: center;
}
#hero h1, #hero p {
  color: #fff;
}
#hero a.button-primary {
  margin-top: 16px;
}

.feature-grid, .service-list, .post-grid, .project-grid, .testimonial-list, .testimonial-slider, .team-list, .trust-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature-box, .service-item, .service-detail, .project-card, .trust-box, .blog-post {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px 0 rgba(24,64,86,0.07);
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow .16s, transform .15s;
}
.feature-box:hover, .service-item:hover, .project-card:hover, .trust-box:hover, .blog-post:hover {
  box-shadow: 0 4px 22px 2px rgba(24,64,86,0.14);
  transform: translateY(-3px) scale(1.015);
}

/* --- SPACING/MISC FLEX SCAFFOLDING --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #E7EDEF;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(24,64,86,0.09);
  margin-right: 0;
  margin-bottom: 20px;
  min-width: 210px;
  transition: box-shadow .15s, background-color .16s;
}
.testimonial-card:hover {
  background: #fff;
  box-shadow: 0 6px 24px 2px rgba(24,64,86,0.14);
}
.testimonial-card p {
  color: #193040;
  font-weight: 500;
  font-size: 1.1rem;
  text-align: left;
  margin-bottom: 6px;
}
.testimonial-meta {
  font-size: 0.95rem;
  color: #184056;
  font-weight: 700;
  align-self: flex-end;
}

.star-ratings {
  display: flex;
  gap: 3px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.primary-highlights {
  margin-top: 34px;
  background: #E7EDEF;
  border-radius: 10px;
  padding: 24px 18px;
}
.primary-highlights ul {
  margin: 10px 0 0 18px;
  list-style: disc;
}
.primary-highlights h3 {
  margin-bottom: 8px;
}

.category-filter {
  margin-top: 24px;
  font-size: 0.99rem;
  color: #184056;
  font-weight: 500;
}
.category-filter a {
  margin: 0 5px;
  text-decoration: underline;
  font-weight: 600;
}

/* --- BUTTONS & CTAs --- */
.button-primary, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.02em;
  padding: 12px 32px;
  border-radius: 7px;
  border: none;
  color: #fff !important;
  background: #184056;
  transition: background 0.2s, box-shadow 0.18s, color 0.18s, border 0.18s;
  box-shadow: 0 2px 8px 0 rgba(24,64,86,.08);
  cursor: pointer;
  margin-right: 12px;
  margin-bottom: 10px;
}
.button-primary:hover, .button-primary:focus {
  background: #153144 !important;
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(24,64,86,0.13);
}
.button-link {
  background: transparent;
  color: #184056 !important;
  border: 1.5px solid #184056;
  font-size: 1rem;
  padding: 11px 22px;
  margin-left: 0;
  margin-right: 0;
}
.button-link:hover {
  background: #184056;
  color: #fff !important;
}
.button-accent {
  background: #D9840A;
  color: #fff;
  border: none;
}
.button-accent:hover {
  background: #bd7208;
}
.button-secondary {
  background: #E7EDEF;
  color: #184056;
  border: 1px solid #A2B0BA;
}
.button-secondary:hover {
  background: #C6D2DB;
  color: #184056;
}
.button-link:focus, .button-primary:focus {
  outline: 2px solid #D9840A;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 1px 10px 0 rgba(24,64,86,0.06);
  position: sticky;
  top: 0;
  z-index: 1040;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 0;
}
.header-bar nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-bar nav a {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #184056;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 3px 5px;
  border-radius: 4px;
  transition: background 0.16s, color 0.18s;
}
.header-bar nav a:hover, .header-bar nav a:focus {
  background: #E7EDEF;
  color: #D9840A;
}
.header-bar nav .button-primary {
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 16px;
  font-size: 1rem;
  padding: 10px 22px;
}
.header-bar img {
  height: 48px;
  width: auto;
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #E7EDEF;
  color: #184056;
  border: none;
  border-radius: 7px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  transition: background 0.18s;
  z-index: 1402;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #D9840A;
}
.mobile-menu-toggle:hover {
  background: #D9840A;
  color: #fff;
}

@media (max-width: 1024px) {
  .header-bar nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(24, 64, 86, 0.98);
  z-index: 1400;
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(.77, .2, .13, 1.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 24px;
  padding-left: 0;
  padding-right: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 26px;
  background: #E7EDEF;
  color: #184056;
  border: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1410;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:focus {
  outline: 2px solid #D9840A;
}
.mobile-menu-close:hover {
  background: #D9840A;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 72px 24px 24px 32px;
  gap: 26px;
}
.mobile-nav a {
  color: #fff;
  background: none;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.37rem;
  padding: 8px 0;
  border-radius: 0;
  transition: color 0.16s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #D9840A;
  background: none;
}
@media (max-width: 600px) {
  .mobile-nav {
    padding: 62px 14px 18px 19px;
    font-size: 1.16rem;
  }
  .mobile-menu-close {
    right: 10px;
    top: 10px;
    width: 37px;
    height: 37px;
    font-size: 1.5rem;
  }
}

/* --- FOOTER --- */
footer {
  background: #184056;
  color: #fff;
  padding: 0;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  padding: 38px 0 22px 0;
  border-bottom: 1px solid #375972;
}
.footer-nav, .footer-legal, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}
.footer-nav a, .footer-legal a, .footer-contact a {
  color: #c1d8e5;
  text-decoration: none;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  transition: color 0.14s;
  font-size: 1rem;
  padding: 1px 0;
}
.footer-nav a:hover, .footer-legal a:hover, .footer-contact a:hover {
  color: #D9840A;
}
.footer-contact {
  color: #e5eef4;
  font-size: 0.97rem;
}
.footer-bottom {
  padding: 16px 0;
  text-align: left;
  color: #aabfd1;
  font-size: 1.08rem;
}
.brand-tagline {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
}
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 18px;
    padding: 20px 0 12px 0;
  }
}
@media (max-width: 600px) {
  .footer-bottom { font-size: 0.94rem; }
  .footer-top { padding: 11px 0 6px 0; gap: 9px; }
}

/* --- BLOCKS & COMPONENTS --- */
.trust-section, .feature-grid, .service-list, .testimonial-slider, .testimonial-list, .project-grid, .post-grid {
  gap: 24px 24px;
}
.project-card {
  min-width: 200px;
  background: #f9fafb;
  color: #193040;
}
.project-card .outcome {
  font-weight: 600;
  color: #184056;
  margin-top: 9px;
}
.address-block, .map-embed {
  background: #E7EDEF;
  border-radius: 9px;
  padding: 16px;
  color: #22334C;
  margin-bottom: 16px;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.map-embed {
  flex-direction: row;
  gap: 14px;
}
@media (max-width: 600px) {
  .address-block, .map-embed { font-size: 0.97rem; padding: 9px; }
  .address-block {flex-direction: column;}
}

/* --- FORMS (Basic Input Styling) --- */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  padding: 10px 14px;
  border-radius: 7px;
  border: 1.5px solid #B3C2CC;
  background: #fff;
  margin-bottom: 12px;
  min-width: 220px;
}
input:focus, textarea:focus {
  border-color: #184056;
}
label {
  display: block;
  font-weight: 500;
  color: #184056;
  margin-bottom: 6px;
}

/* --- LISTS --- */
ul, ol {
  margin-left: 23px;
  margin-bottom: 16px;
  color: #22334C;
  font-size: 1rem;
}
li::marker {
  color: #184056;
}

/* --- SHADOWS, HOVER, MICRO-ANIMATIONS --- */
.card, .feature-box, .service-item, .testimonial-card, .trust-box, .project-card, .blog-post {
  transition: box-shadow 0.13s, transform 0.13s;
}
.card:hover, .feature-box:hover, .service-item:hover, .testimonial-card:hover, .trust-box:hover, .project-card:hover, .blog-post:hover {
  box-shadow: 0 8px 24px -6px rgba(24,64,86,.25);
  transform: translateY(-2px) scale(1.015);
}

.button-primary, .button-link, .button-accent, .button-secondary {
  transition: background 0.18s, color 0.15s, box-shadow 0.14s, border 0.14s;
}
@media (hover: hover) {
  .button-primary:hover, .button-link:hover, .button-accent:hover, .button-secondary:hover {
    filter: brightness(0.92);
    box-shadow: 0 2px 16px 0 rgba(24,64,86,0.11);
  }
  .button-primary:active {
    filter: brightness(0.87);
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
  .feature-grid, .service-list, .trust-section, .project-grid, .testimonial-slider, .testimonial-list, .post-grid {
    flex-direction: column;
    gap: 18px 0;
  }
}
@media (max-width: 600px) {
  .container { padding-left: 6px; padding-right: 6px; }
  .card, .feature-box, .service-item, .testimonial-card, .trust-box, .project-card, .blog-post {
    min-width: 0;
    padding: 16px 8px;
  }
  .trust-badges { gap: 8px; }
  .testimonial-card { padding: 12px; }
  .footer-nav, .footer-legal, .footer-contact { font-size: 0.97rem; }
}

/* --- COOKIE CONSENT BANNER + MODAL --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #184056;
  color: #fff;
  z-index: 2000;
  padding: 22px 14px 22px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 -2px 16px 0 rgba(24,64,86,0.17);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  animation: cookieBannerIn 0.55s cubic-bezier(.4,1.3,.28,1) 0s 1 normal both;
}
@keyframes cookieBannerIn {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
}
#cookie-banner .button-primary {
  padding: 9px 19px;
  font-size: 1rem;
  color: #fff;
}
#cookie-banner .button-secondary, #cookie-banner .button-settings {
  background: #E7EDEF;
  color: #184056;
  padding: 9px 17px;
  border-radius: 6px;
  font-size: 0.98rem;
  border: none;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
}
#cookie-banner .button-settings:hover {
  background: #c6d2db;
  color: #184056;
}

@media (max-width: 700px) {
  #cookie-banner {
    flex-direction: column;
    padding: 13px 6px;
    gap: 18px;
  }
  #cookie-banner .cookie-actions {
    gap: 8px;
  }
}

/* Cookie Modal */
#cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2100;
  background: rgba(24,64,86,0.82);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
#cookie-modal .modal-content {
  background: #fff;
  color: #184056;
  border-radius: 16px;
  box-shadow: 0 3px 36px 6px rgba(24,64,86,0.22);
  padding: 38px 32px 28px 32px;
  max-width: 420px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: fadeInModal 0.21s cubic-bezier(.42,1.5,.45,1) 1 both;
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: translateY(70px); }
  100% { opacity: 1; transform: translateY(0); }
}
#cookie-modal h3 {
  font-size: 1.21rem;
  margin-bottom: 2px;
  font-family: 'Oswald', Arial, sans-serif;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 28px;
  right: 31px;
  background: #e6edf1;
  color: #184056;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#cookie-modal .modal-close:hover {
  background: #D9840A;
  color: #fff;
}
.cookie-categories {
  margin-top: 11px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.cookie-category label {
  margin: 0;
}
.cookie-category .cookie-switch {
  width: 38px;
  height: 20px;
  background: #E7EDEF;
  border-radius: 15px;
  display: inline-block;
  position: relative;
}
.cookie-category .cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-category .cookie-switch .slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: #A2B0BA;
  border-radius: 50%;
  transition: left 0.21s;
}
.cookie-category .cookie-switch input:checked + .slider {
  background: #184056;
  left: 20px;
}
.cookie-category .cookie-switch input:disabled + .slider {
  background: #B3C2CC;
}
.cookie-category .desc {
  color: #22334C;
  font-size: 0.96rem;
}
#cookie-modal .button-group {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
@media (max-width: 600px) {
  #cookie-modal .modal-content { padding: 18px 8px 12px 12px; }
}

/* --- UTILITY --- */
.text-center {
  text-align: center;
}
.mr-1 { margin-right: 8px; }
.mt-2 { margin-top: 18px; }

/* --- ACCESSIBILITY --- */
:focus-visible {
  outline: 2px solid #D9840A;
  outline-offset: 1px;
}

/* --- PRINT CLEANUP --- */
@media print {
  header, footer, #cookie-banner, #cookie-modal { display: none !important; }
  body { color: #000; background: #fff; }
}
