/* =========================================
   CSS 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,
main, 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 {
  scroll-behavior: smooth;
}

body {
  background: #F5F5F5;
  color: #1B263B;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1B263B;
  font-weight: 700;
  line-height: 1.1;
}

h1 { font-size: 2.8rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }

p, ul, ol, blockquote, cite, address {
  font-size: 1rem;
  color: #273043;
  margin-bottom: 16px;
}

ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

li {
  margin-bottom: 8px;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1B263B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #415A77;
  text-decoration: underline;
}

button, .btn-primary, .btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 12px 32px;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-block;
  margin-bottom: 0;
}

/* =========================================
   COLORS & BRAND
 ========================================= */
:root {
  --brand-primary: #1B263B;
  --brand-secondary: #778DA9;
  --brand-accent: #F5F5F5;
  --brand-light-bg: #fff;
  --text-main: #1B263B;
  --text-secondary: #415A77;
  --border-default: #DBE2EF;
  --shadow-default: 0 4px 24px 0 rgba(43,63,100,.08);
  --btn-shadow: 0 2px 8px 0 rgba(43,63,100,.06);
  --focus-outline: #415A77;
  --success: #2C9241;
  --danger: #BE3144;
}

/* =========================================
   SPACING & LAYOUT
 ========================================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--brand-light-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-default);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px 24px 24px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(43,63,100,.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  box-shadow: var(--shadow-default);
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 250px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--brand-light-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-default);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.12s;
}
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(43,63,100,.11);
  transform: translateY(-2px) scale(1.02);
}
.feature-item img {
  width: 38px;
  height: 38px;
}
.feature-price {
  font-weight: 600;
  color: var(--brand-secondary);
  margin-top: 4px;
  font-size: 1rem;
}

/* =========================================
   HEADER & NAVIGATION
 ========================================= */
header {
  width: 100%;
  background: var(--brand-light-bg);
  box-shadow: 0 2px 12px rgba(48,66,94,0.07);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}
.logo img {
  height: 42px;
  width: auto;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.main-nav a {
  color: var(--brand-primary);
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-secondary);
  color: #FFF;
}
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  box-shadow: var(--btn-shadow);
  padding: 12px 32px;
  transition: background .18s, color .18s, box-shadow .18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-secondary);
  color: #fff;
  outline: 2px solid var(--focus-outline);
}
.btn-secondary {
  background: var(--brand-light-bg);
  color: var(--brand-primary);
  border: 2px solid var(--brand-secondary);
  border-radius: 6px;
  box-shadow: none;
  padding: 12px 32px;
  font-weight: 700;
  transition: background .18s, color .18s, border .18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--brand-secondary);
  color: #fff;
  border-color: var(--brand-secondary);
  outline: 2px solid var(--focus-outline);
}

/* =========================================
   MOBILE NAVIGATION
 ========================================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 45;
  background: var(--brand-secondary);
  color: #fff;
  border-radius: 5px;
  width: 46px;
  height: 46px;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(48,66,94,0.08);
  transition: background 0.18s, box-shadow 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--brand-primary);
  outline: 2px solid var(--focus-outline);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27, 38, 59, 0.96);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.8,0.1,0.3,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FFF;
  font-size: 2.2rem;
  margin: 22px 20px 0 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-secondary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 40px 0 40px;
  width: 100%;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  background: none;
  padding: 14px 8px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 3px;
  width: 100%;
  display: block;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: #FFF;
}

@media (max-width: 1050px) {
  header .main-nav {
    gap: 16px;
  }
  .container {
    max-width: 98vw;
    padding: 0 14px;
  }
}

@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ensure mobile menu covers everything */
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}

@media (max-width: 600px) {
  .mobile-nav {
    padding: 44px 18px 0 18px;
    gap: 15px;
  }
  .mobile-menu-close {
    margin: 16px 8px 0 0;
    font-size: 2rem;
  }
}

/* =========================================
   HERO & INTRO SECTIONS
 ========================================= */
.hero {
  background: linear-gradient(135deg, #F5F5F5 60%, #E1E7EF 100%);
  padding: 72px 0 56px 0;
}
.hero .container {
  display: flex;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 680px;
}
.hero h1 {
  font-size: 2.8rem;
  color: var(--brand-primary);
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}
.hero .btn-primary {
  min-width: 200px;
}

@media (max-width: 600px) {
  .hero {
    padding: 38px 0 22px 0;
  }
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 19px;
  }
}

/* =========================================
   FEATURES AND SERVICES
 ========================================= */
.features, .services-overview, .project-summary, .insights-list {
  background: var(--brand-accent);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(48,66,94,0.06);
}
.features .feature-grid,
.services-overview .service-list,
.project-summary .project-list,
.insights-list .blog-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  justify-content: flex-start;
}
.services-overview .service-item {
  background: var(--brand-light-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-default);
  padding: 24px 14px 18px 18px;
  min-width: 220px;
  flex: 1 1 215px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.17s, transform 0.11s;
}
.services-overview .service-item:hover {
  box-shadow: 0 8px 32px rgba(43,63,100,.11);
  transform: translateY(-2px) scale(1.03);
}
.service-price {
  font-weight: 600;
  color: var(--brand-secondary);
  margin-top: 8px;
  font-size: 1rem;
}

/* =========================================
   GENERAL TEXT & CONTENT
 ========================================= */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.text-section h3 {
  font-size: 1.1rem;
  color: var(--brand-primary);
}

blockquote {
  font-style: italic;
  color: #253143;
  border-left: 4px solid var(--brand-secondary);
  padding-left: 14px;
  margin-bottom: 8px;
}
cite {
  display: block;
  color: var(--brand-secondary);
  font-size: 0.97rem;
  margin-bottom: 6px;
}
address {
  font-style: normal;
  color: #253143;
}

/* =========================================
   CTA, WHY, PHILOSOPHY, PROCESS SECTIONS
 ========================================= */
.why-pristine, .philosophy, .project-process, .cta-last, .confirmation {
  background: var(--brand-light-bg);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(48,66,94,0.06);
  margin-bottom: 44px;
  padding: 38px 20px 32px 20px;
}
.project-process ul,
.why-pristine ul,
.philosophy ul,
.cta-last ul,
.insights-list ul {
  list-style: disc inside;
  margin-left: 6px;
  color: var(--brand-primary);
  margin-bottom: 0px;
}
.project-process ul li,
.why-pristine ul li,
.philosophy ul li,
.cta-last ul li,
.insights-list ul li {
  margin-bottom: 9px;
  color: var(--brand-primary);
}

/* =========================================
   TESTIMONIALS
 ========================================= */
.testimonials {
  background: var(--brand-accent);
  border-radius: 14px;
  margin-bottom: 60px;
  box-shadow: 0 2px 18px rgba(48,66,94,0.07);
}
.testimonial-card {
  background: #fff;
  border-left: 5px solid var(--brand-secondary);
  box-shadow: var(--shadow-default);
  color: var(--text-main);
  font-size: 1.06rem;
  margin-bottom: 20px;
  min-width: 210px;
}
.testimonial-card blockquote {
  font-size: 1.06rem;
  font-style: italic;
  color: #1B263B;
  border: none;
  padding-left: 0;
  margin-bottom: 6px;
}
.testimonial-card cite {
  color: var(--brand-secondary);
  font-size: 0.95rem;
}

/* =========================================
   CONTACT, ADDRESS
 ========================================= */
.contact-details address, .contact-short address {
  margin-bottom: 14px;
  font-style: normal;
  color: #273043;
}
.contact-short a.btn-secondary {
  margin-top: 10px;
}

/* =========================================
   FOOTER
 ========================================= */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 40px 0 8px 0;
  box-shadow: 0 -2px 12px rgba(48,66,94,0.08);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-content .logo img {
  height: 32px;
  width: auto;
  filter: grayscale(0) brightness(2.3);
}
.footer-nav, .footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-menu a {
  color: #fff;
  font-size: 0.98rem;
  opacity: 0.93;
  border-radius: 3px;
  padding: 2px 4px;
  transition: background .14s;
}
.footer-nav a:hover, .footer-menu a:hover {
  background: var(--brand-secondary);
  color: #fff;
}
.social-icons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.social-icons img {
  height: 26px;
  width: 26px;
  opacity: 0.85;
  transition: opacity .13s;
  cursor: pointer;
}
.social-icons img:hover {
  opacity: 1;
}
.privacy {
  font-size: 0.89rem;
  color: #aac2ef;
  width: 100%;
  margin-top: 16px;
  flex: 0 0 100%;
}

/* =========================================
   COOKIE CONSENT BANNER
 ========================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: #fff;
  color: #1B263B;
  box-shadow: 0 -2px 18px rgba(48,66,94,0.13);
  padding: 22px 14px 22px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: center;
  min-height: 70px;
  transition: transform .28s cubic-bezier(.39,.13,.21,1.13), opacity .2s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 0;
  color: #23304a;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 26px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: background .16s, color .16s;
}
.cookie-btn.accept {
  background: var(--success);
}
.cookie-btn.reject {
  background: var(--danger);
}
.cookie-btn.settings {
  background: var(--brand-secondary);
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--brand-secondary);
  color: #fff;
  outline: 2px solid var(--focus-outline);
}
.cookie-btn.accept:hover { background: #239954; }
.cookie-btn.reject:hover { background: #ae2234; }

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  background: rgba(27, 38, 59, 0.93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: #fff;
  color: #1B263B;
  padding: 44px 32px 36px 32px;
  border-radius: 14px;
  box-shadow: 0 12px 44px rgba(48,66,94,0.33);
  max-width: 420px;
  width: 95%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-dialog h3 {
  font-size: 1.22rem;
  margin-bottom: 4px;
  color: var(--brand-primary);
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #7B8798;
  cursor: pointer;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: var(--brand-secondary);
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-modal-category label {
  font-size: 1rem;
  color: #1B263B;
}
.cookie-switch {
  appearance: none;
  width: 40px;
  height: 20px;
  background: #dde5f7;
  outline: none;
  border-radius: 12px;
  position: relative;
  transition: background .23s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: var(--brand-secondary);
}
.cookie-switch::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(48,66,94,0.1);
  transition: left 0.17s;
}
.cookie-switch:checked::after {
  left: 23px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

/* Essential cookies row is dimmed and forced ON */
.cookie-modal-category[data-essential] label {
  opacity: 0.58;
  font-style: italic;
}
.cookie-modal-category[data-essential] .cookie-switch {
  pointer-events: none;
  background: #B4C0D3;
}
.cookie-modal-category[data-essential] .cookie-switch::after {
  background: #eee;
}

/* =========================================
   PAGE-SPECIFIC/MISCELLANEOUS LAYOUTS
 ========================================= */
.confirmation {
  text-align: center;
  justify-content: center;
  align-items: center;
}

/* Standorte, why, about, philosophy, details, etc */
.standorte, .philosophy, .about, .contact-details { }

/* Forms (add input base for future-proof) */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1.5px solid #E2E7F2;
  border-radius: 5px;
  background: #fff;
  color: var(--brand-primary);
  margin-bottom: 12px;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--brand-secondary);
  outline: 2px solid var(--focus-outline);
}

/* =========================================
   RESPONSIVE LAYOUTS
 ========================================= */
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
}
@media (max-width: 780px) {
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid, .service-list, .project-list, .blog-summary-list {
    flex-direction: column;
    gap: 20px;
  }
  .features, .services-overview, .why-pristine, .project-summary, .insights-list, .philosophy, .contact-details, .standorte, .about, .confirmation {
    padding: 28px 8px;
    margin-bottom: 34px;
    border-radius: 12px;
  }
  .section {
    margin-bottom: 40px;
    padding: 26px 8px;
  }
}
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 15px;
  }
}
@media (max-width: 580px) {
  .container {
    padding: 0 7px;
  }
  .feature-item, .services-overview .service-item {
    min-width: 90vw;
    padding: 18px 8px 14px 8px;
  }
  .testimonial-card, .card {
    min-width: 94vw;
    padding: 12px 7px 12px 12px;
    font-size: 0.97rem;
  }
}
@media (max-width: 450px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 4px 13px 7px;
  }
  .cookie-banner .cookie-btns {
    gap: 9px;
    flex-wrap: wrap;
  }
  .cookie-modal-dialog {
    padding: 21px 6px 19px 8px;
    max-width: 99vw;
    font-size: 95%;
  }
}

/* =========================================
   UTILITIES
 ========================================= */
.hide { display: none !important; }
.visible { display: inherit !important; }

/* For focus accessibility (for keyboard users) */
:focus-visible { outline: 2px solid var(--focus-outline); outline-offset: 1.5px; }
::-webkit-input-placeholder { color: #9DB0C3; }
::-moz-placeholder { color: #9DB0C3; }
:-ms-input-placeholder { color: #9DB0C3; }
::placeholder { color: #9DB0C3; }

/* =========================================
   MICRO-INTERACTIONS, ANIMATIONS
 ========================================= */
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, border .14s;
}
.card, .feature-item, .services-overview .service-item {
  transition: box-shadow 0.15s, transform 0.11s;
}
.card:hover, .feature-item:hover, .services-overview .service-item:hover {
  box-shadow: 0 8px 32px rgba(43,63,100,.13);
  transform: translateY(-3px) scale(1.02);
}
.mobile-menu, .cookie-banner, .cookie-modal {
  transition: transform 0.32s cubic-bezier(.69,.22,.23,1.02), opacity 0.23s;
}

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