/* --- 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #232323;
  line-height: 1.6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #1B3445;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.25,.8,.25,1);
}
a:hover, a:focus {
  color: #232323;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 1.1em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.65em;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
}

/* --- BRAND TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.4em;
  color: #1B3445;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.12;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.33rem;
  line-height: 1.25;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
  line-height: 1.3;
}

p, li, span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #232323;
}
strong {
  font-weight: 700;
  color: #232323;
}

/* --- CONTAINER & SECTIONS --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
}

/* --- BUTTONS --- */
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1B3445;
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 32px;
  padding: 13px 36px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(24,32,41,0.1);
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.23s, box-shadow 0.23s, color 0.23s;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.primary-cta:hover, .primary-cta:focus {
  background: #232323;
  color: #F2EDE8;
  box-shadow: 0 4px 22px 0 rgba(27,52,69,0.14);
}

button, .button {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 30px;
  border: none;
  background: #232323;
  color: #fff;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s;
  cursor: pointer;
}
button:hover, .button:hover,
button:focus, .button:focus {
  background: #1B3445;
  color: #F2EDE8;
  outline: none;
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(27,52,69,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 44px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  margin-right: 20px;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #1B3445;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #232323;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #1B3445;
  cursor: pointer;
  display: none;
  margin-left: 14px;
  transition: color 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #232323;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  z-index: 200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(27,52,69, 0.98);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.48,.24,.22,.88);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  align-self: flex-end;
  font-size: 2.1rem;
  margin: 32px 28px 0 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F2EDE8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
  margin-top: 48px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: #fff;
  font-weight: 600;
  font-size: 1.28rem;
  padding: 15px 0;
  width: 100%;
  text-align: center;
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #232323;
  color: #F2EDE8;
}

/* --- HERO SECTIONS --- */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
@media (max-width: 767px) {
  section {
    padding: 30px 0 30px 0;
    margin-bottom: 36px;
  }
}

/* --- FEATURES/GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  margin-top: 20px;
}
.feature-grid li {
  background: #f8f8f8;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(35,35,35,0.06);
  flex: 1 1 250px;
  min-width: 230px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px;
  position: relative;
  margin-bottom: 20px;
  border: 1px solid #e7e7e7;
  transition: box-shadow 0.23s, border-color 0.23s;
}
.feature-grid li:hover {
  box-shadow: 0 7px 32px rgba(30,40,50,0.13);
  border-color: #D1D1D1;
}
.feature-grid li img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}
.feature-grid li h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature-grid li span {
  font-size: 1rem;
  color: #1B3445;
  font-weight: 700;
  margin-top: 10px;
}

/* --- CARDS & CARD CONTAINERS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(27,52,69,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, border-color 0.19s;
}
.card:hover {
  box-shadow: 0 8px 26px rgba(27,52,69,0.11);
  border-color: #cccccc;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
  gap: 12px;
}

/* --- CONTENT GRID --- */
.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;
    align-items: flex-start;
    gap: 20px;
  }
}

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

/* --- SERVICE LIST --- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 24px 0; 
  list-style: none;
}
.service-list li {
  background: #F2EDE8;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(35,35,35,0.04);
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 355px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 24px 18px;
  border: 1px solid #e0e0e0;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, border-color 0.23s;
}
.service-list li:hover {
  box-shadow: 0 8px 30px rgba(27,52,69,0.12);
  border-color: #bbbbbb;
}
.service-list li h3 {
  margin-bottom: 10px;
}
.service-list li span {
  font-style: italic;
  color: #1B3445;
}

@media (max-width: 1024px) {
  .feature-grid, .service-list, .card-container {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 20px 28px;
  background: #fafbfc;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(35,35,35,0.07);
  border: 1.5px solid #dddddd;
  margin-bottom: 24px;
  transition: box-shadow 0.21s, border-color 0.15s;
}
.testimonial-card p {
  color: #232323;
  font-size: 1.16rem;
  font-style: italic;
  line-height: 1.55;
}
.testimonial-card strong {
  color: #232323;
  font-size: 1rem;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(27,52,69,0.08);
  border-color: #acb4b8;
}

/* --- BLOG CATEGORY LIST --- */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0 16px 0;
  list-style: none;
  padding-left: 0;
}
.category-list li {
  background: #1B3445;
  color: #fff;
  padding: 7px 22px;
  border-radius: 16px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 500;
}

/* --- CONTACT SUMMARY --- */
.contact-summary {
  margin-top: 14px;
  background: #f6f6f6;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.97rem;
  color: #1B3445;
}
.contact-summary a {
  color: #1B3445;
  text-decoration: underline;
}

/* --- FOOTER --- */
footer {
  background: #232323;
  color: #fff;
  padding: 34px 0 8px 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #ffffff;
  font-size: 0.98rem;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 500;
  opacity: 0.82;
  text-decoration: none;
  transition: color 0.19s, opacity 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F2EDE8;
  opacity: 1;
}
.footer-copy {
  font-size: 0.92rem;
  opacity: 0.74;
  margin-top: 3px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: #232323;
  color: #fff;
  padding: 28px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  box-shadow: 0 -2px 16px rgba(27,52,69,0.17);
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(.54,.18,.47,.98);
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner p {
  margin-bottom: 0;
  color: #fff;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  padding: 10px 28px;
  border-radius: 22px;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.22s, color 0.15s;
}
.cookie-btn.accept {
  background: #1B3445;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #232323;
  color: #F2EDE8;
}
.cookie-btn.settings {
  background: #F2EDE8;
  color: #1B3445;
  border: 1.5px solid #1B3445;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #1B3445;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #232323;
  border: 1.3px solid #232323;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #232323;
  color: #F2EDE8;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 4100;
  background: rgba(27, 35, 45, 0.79);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(.54,.18,.47,.98);
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  color: #1B3445;
  border-radius: 18px;
  min-width: 320px;
  max-width: 97vw;
  box-shadow: 0 6px 42px rgba(29,39,49,0.15);
  padding: 36px 32px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h2 {
  color: #1B3445;
  margin-bottom: 8px;
  font-size: 1.6rem;
}
.cookie-modal-close {
  position: absolute;
  top: 20px; right: 22px;
  background: none;
  border: none;
  color: #1B3445;
  font-size: 2rem;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #232323;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: #1B3445;
}
.cookie-category[data-essential] label {
  font-style: italic;
  color: #cccccc;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 20px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  min-width: 120px;
}

/* --- ANIMATIONS / TRANSITIONS --- */
:root {
  --transition-main: 0.3s cubic-bezier(.48,.24,.22,.88);
}
.primary-cta, button, .button, .card, .feature-grid li, .service-list li, .testimonial-card, .mobile-menu { transition: box-shadow 0.21s, background 0.18s, color .17s, border .21s, transform 0.3s;
}

/* --- SPACING & FLEX UTILITIES --- */
.mt-2 { margin-top: 12px; }
.mb-3 { margin-bottom: 20px; }
.gap-lg { gap: 32px; }
.gap-md { gap: 20px; }
.gap-sm { gap: 10px; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .main-nav { gap: 14px; }
  .footer-nav { gap: 18px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .card-container, .feature-grid, .service-list {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    padding: 15px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 16px 8px;
  }
  .cookie-banner p {
    font-size: 0.98rem;
  }
  .cookie-modal-content {
    padding: 22px 9vw 16px 9vw;
  }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.14rem; }
  .container { padding-left: 4px; padding-right: 4px; }
  .cookie-modal-content { min-width: unset; }
}

/* --- INSPIRATION TIP SPECIAL (wohnideen) --- */
.inspiration-tip {
  background: #F2EDE8;
  color: #1B3445;
  padding: 10px 16px;
  border-radius: 13px;
  font-style: italic;
  margin: 13px 0;
  box-shadow: 0 1px 7px rgba(27,52,69,0.06);
}

/* --- MICRO-INTERACTIONS --- */
.primary-cta, button, .button, .cookie-btn {
  transition: background 0.18s, color 0.16s, box-shadow 0.21s, transform 0.13s;
}
.primary-cta:active, button:active, .button:active, .cookie-btn:active {
  transform: translateY(2px) scale(0.98);
}
.card:active, .feature-grid li:active, .service-list li:active {
  transform: scale(0.99);
}

/* --- SELECTION COLOR --- */
::selection {
  background: #1B3445;
  color: #fff;
}

/* --- FOCUS STATES --- */
a:focus-visible, .primary-cta:focus-visible, button:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid #1B3445;
  outline-offset: 2px;
}

/* --- VISUALLY HIDE/ACCESSIBILITY --- */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

/* --- UTILITY FOR FLEX COLUMN ON MOBILE --- */
.flex-column-mobile {
  display: flex;
}
@media (max-width: 768px) {
  .flex-column-mobile {
    flex-direction: column !important;
    gap: 14px !important;
  }
}
