/* ===========================
   CSS RESET & NORMALIZATION
   =========================== */
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(120deg,#F4F4F6 0%, #D8A7B1 100%);
  color: #2A2A3D;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background-attachment: fixed;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: #2A2A3D;
  transition: color .22s cubic-bezier(.4,0,.2,1);
}
a:focus, a:hover {
  outline: none;
  color: #b67682;
}
img {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
  border: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #2A2A3D;
  font-weight: 700;
  letter-spacing: 0.01em;
}
::selection {
  background: #D8A7B1;
  color: #fff;
}

/* ===========================
   TYPOGRAPHY & HEADINGS
   =========================== */
h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p, li, blockquote, cite {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #2A2A3D;
  font-size: 1rem;
  margin-bottom: 14px;
  line-height: 1.7;
}
strong, b {
  font-weight: 700;
}
blockquote {
  font-style: italic;
  color: #2A2A3D;
  border-left: 4px solid #D8A7B1;
  background: #f7f3f7;
  padding: 12px 20px;
  margin-bottom: 8px;
  border-radius: 8px;
}
cite {
  font-style: normal;
  color: #6c6070;
  display: block;
  margin-bottom: 0;
  font-size: 0.95rem;
  margin-left: 16px;
}
ul, ol {
  margin-bottom: 20px;
  padding-left: 0;
}
li {
  margin-bottom: 8px;
}

/* ===========================
   LAYOUT & SPACING
   =========================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  box-sizing: border-box;
  background: rgba(255,255,255,0.87);
  border-radius: 26px;
  box-shadow: 0 4px 24px 0 rgba(42,42,61,0.08);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Flex utility layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 rgba(42,42,61,0.06);
  padding: 28px 22px 20px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  flex: 1 1 320px;
  transition: box-shadow .22s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(42,42,61,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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(42,42,61,0.08);
  margin-bottom: 20px;
  min-width: 260px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 2px 12px 0 rgba(42,42,61,0.03);
}

/* Cards in lists */
.content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.content-wrapper > ul > li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 rgba(42,42,61,0.05);
  padding: 28px 20px 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  flex: 1 1 320px;
  gap: 8px;
  transition: box-shadow .2s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1);
}
.content-wrapper > ul > li:hover {
  box-shadow: 0 8px 30px 0 rgba(42,42,61,0.10);
  transform: translateY(-2px) scale(1.015);
}

/* Category filter */
.category-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.category-filters li {
  margin-bottom: 0;
}
.category-filters a {
  display: block;
  padding: 7px 22px;
  border-radius: 20px;
  border: 2px solid #D8A7B1;
  background: #fff;
  color: #2A2A3D;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background .18s, color .18s, box-shadow .18s;
}
.category-filters a:hover, .category-filters a:focus {
  background: #D8A7B1;
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(216,167,177,0.21);
}

/* Pricing table */
.pricing-table {
  background: #F4F4F6;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(42,42,61,0.03);
  padding: 17px 22px;
  margin-top: 16px;
  margin-bottom: 20px;
}
.pricing-table h3 {
  margin-bottom: 4px;
}
.pricing-table ul {
  margin-bottom: 0;
}
.pricing-table li {
  margin-bottom: 4px;
  font-weight: 600;
}

/* Designer team block (massanfertigung) */
.designer-team {
  margin-top: 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(42,42,61,0.04);
  padding: 16px 19px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #2A2A3D;
  margin-bottom: 16px;
}

/* ===========================
   BUTTONS & LINKS
   =========================== */
.btn-primary, .btn-secondary {
  display: inline-block;
  border-radius: 28px;
  padding: 13px 36px;
  font-size: 1.13rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
  border: none;
  cursor: pointer;
  transition: background .19s, color .18s, box-shadow .16s;
  outline: none;
  box-shadow: 0 2px 12px 0 rgba(216,167,177,0.13);
  margin-top: 8px;
  margin-bottom: 8px;
  margin-right: 12px;
}
.btn-primary {
  background: linear-gradient(90deg,#D8A7B1,#bba0a6);
  color: #fff;
  border: 2px solid #D8A7B1;
}
.btn-primary:hover, .btn-primary:focus {
  background: #2A2A3D;
  color: #fff;
  border-color: #2A2A3D;
  box-shadow: 0 4px 18px 0 rgba(42,42,61,0.08);
}
.btn-secondary {
  background: #fff;
  color: #D8A7B1;
  border: 2px solid #D8A7B1;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #D8A7B1;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(216,167,177,0.18);
}

/* ===========================
   HEADER, NAVIGATION & RESPONSIVE MENU
   =========================== */
header {
  background: #fff;
  box-shadow: 0 4px 36px 0 rgba(42,42,61,0.04);
  width: 100%;
  z-index: 90;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
}
header a img {
  height: 38px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-right: 18px;
}
.main-nav a {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 9px;
  color: #2A2A3D;
  transition: background .15s, color .13s;
}
.main-nav a:hover, .main-nav a:active, .main-nav a:focus {
  background: #F4F4F6;
  color: #D8A7B1;
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: #D8A7B1;
  color: #fff;
  width: 46px;
  height: 46px;
  font-size: 2.1rem;
  border: none;
  border-radius: 8px;
  margin-left: 8px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(216,167,177,0.09);
  z-index: 121;
  transition: background .18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #b67682;
  color: #fff;
}

/* Mobile menu overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: transform .33s cubic-bezier(.77,0,.18,1);
  z-index: 180;
  box-shadow: 0 2px 34px 0 rgba(42,42,61,0.22);
  padding: 0 0 32px 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #2A2A3D;
  border: none;
  font-size: 2.1rem;
  margin: 18px 22px 12px 0;
  cursor: pointer;
  padding: 0 0 6px 0;
  border-radius: 8px;
  transition: background .19s, color .13s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F4F4F6;
  color: #D8A7B1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin: 24px 32px;
}
.mobile-nav a {
  font-size: 1.23rem;
  font-weight: 700;
  color: #2A2A3D;
  background: none;
  padding: 12px 0 11px 0;
  border-radius: 8px;
  width: 100%;
  transition: background .15s, color .14s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F4F4F6;
  color: #D8A7B1;
}

/* On mobile: hide main nav, show burger */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 11px 26px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: linear-gradient(90deg,#F4F4F6 80%,#D8A7B1 100%);
  border-top: 1px solid #e1e1e6;
  padding: 28px 0 0 0;
  margin-top: 50px;
  box-shadow: 0 -2px 10px 0 rgba(42,42,61,0.03);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-nav a {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  color: #2A2A3D;
  padding: 6px 7px;
  border-radius: 6px;
}
.footer-nav a:focus, .footer-nav a:hover {
  background: #D8A7B1;
  color: #fff;
}
footer p {
  font-size: 0.93rem;
  color: #726081;
  margin-bottom: 8px;
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 3px solid #D8A7B1;
  box-shadow: 0 -2px 24px 0 rgba(42,42,61,0.09);
  z-index: 200;
  padding: 20px 12px 22px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cookieBannerSlideIn .48s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-consent-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 14px;
}
.cookie-consent-banner button {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  padding: 9px 22px;
  transition: background .18s, color .13s; 
  background: #D8A7B1;
  color: #fff;
  margin-right: 6px;
}
.cookie-consent-banner button.settings {
  background: #fff;
  color: #D8A7B1;
  border: 2px solid #D8A7B1;
}
.cookie-consent-banner button.settings:hover, .cookie-consent-banner button.settings:focus {
  background: #D8A7B1;
  color: #fff;
}
.cookie-consent-banner button.reject {
  background: #F4F4F6;
  color: #2A2A3D;
  border: 2px solid #aaa;
}
.cookie-consent-banner button.reject:hover, .cookie-consent-banner button.reject:focus {
  background: #D8A7B1;
  color: #fff;
}
.cookie-consent-banner button.accept:hover, .cookie-consent-banner button.accept:focus {
  background: #2A2A3D;
  color: #fff;
}

/* COOKIE PREFERENCE MODAL */
.cookie-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(42,42,61,0.24);
  z-index: 350;
}
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 360;
  pointer-events: none;
}
.cookie-modal.active {
  pointer-events: all;
}
.cookie-preferences-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 44px 0 rgba(42,42,61,0.19);
  max-width: 420px;
  width: 97vw;
  padding: 30px 24px 26px 24px;
  animation: modalIn .35s cubic-bezier(.77,0,.18,1);
  position: relative;
  z-index: 370;
  pointer-events: all;
}
@keyframes modalIn {
  0% { opacity: 0; transform: scale(.97) translateY(50px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-preferences-modal h3 {
  font-size: 1.33rem;
  margin-bottom: 12px;
}
.cookie-preferences-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #F4F4F6;
  border-radius: 11px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.cookie-preferences-modal .category label {
  font-size: 1rem;
  font-weight: 600;
}
.cookie-preferences-modal .category input[type="checkbox"] {
  accent-color: #D8A7B1;
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.cookie-preferences-modal .close-modal {
  background: none;
  border: none;
  color: #D8A7B1;
  font-size: 1.6rem;
  position: absolute;
  right: 18px;
  top: 18px;
  cursor: pointer;
  border-radius: 8px;
  padding: 1px 6px 1px 6px;
}
.cookie-preferences-modal .close-modal:focus, .cookie-preferences-modal .close-modal:hover {
  background: #F4F4F6;
  color: #2A2A3D;
}
.cookie-preferences-modal .modal-actions {
  display: flex;
  gap: 10px;
  flex-direction: row;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-preferences-modal button {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 20px;
  font-size: 1rem;
  border-radius: 14px;
  border: none;
  margin-right: 4px;
  cursor: pointer;
  background: #D8A7B1;
  color: #fff;
  transition: background .16s, color .13s;
}
.cookie-preferences-modal button.secondary {
  background: #fff;
  color: #D8A7B1;
  border: 2px solid #D8A7B1;
}
.cookie-preferences-modal button.secondary:hover, .cookie-preferences-modal button.secondary:focus {
  background: #D8A7B1;
  color: #fff;
}

/* ===========================
   RESPONSIVE DESIGN (mobile-first)
   =========================== */
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.25rem; }
  .section { padding: 33px 8px; }
  .content-wrapper { gap: 14px; }
  .content-wrapper > ul { gap: 18px; }
  .card-container { gap: 14px; }
  .testimonial-card { padding: 14px; }
  .feature-item { padding: 13px 8px; }
  .footer-nav { gap: 12px; }
}

@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  .section {
    padding: 28px 4vw;
    margin-bottom: 34px;
  }
  h1 { font-size: 1.67rem; }
  h2 { font-size: 1.1rem; }
  .content-wrapper > ul, .card-container, .content-grid {
    gap: 10px;
  }
  .text-section, .content-wrapper {
    gap: 11px;
  }
  .category-filters {
    gap: 7px;
  }
}
@media (max-width: 540px) {
  .section {
    padding: 13px 0;
    border-radius: 0;
  }
  header .container {
    padding: 11px 5px 11px 11px;
  }
  footer .container {
    padding: 8px 2px 8px 2px;
  }
}

/* Responsive flex and stacking navigation */
@media (max-width: 992px) {
  .content-wrapper > ul,
  .card-container,
  .content-grid {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px;
  }
  .card {
    min-width: 85vw;
    padding: 18px 8px 12px 8px;
  }
  .testimonial-card {
    min-width: 95vw;
    padding: 14px 8px;
  }
}

/* ===========================
   ANIMATIONS & MICRO-INTERACTIONS
   =========================== */
.btn-primary, .btn-secondary, .category-filters a {
  transition: background .16s, color .13s, box-shadow .13s, border .11s, transform .18s cubic-bezier(.56,0,.18,1);
}
.card, .content-wrapper > ul > li, .testimonial-card {
  transition: box-shadow .18s cubic-bezier(.4,0,.2,1), transform .18s cubic-bezier(.56,0,.18,1);
}
.card:hover, .content-wrapper > ul > li:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(42,42,61,0.15);
  transform: translateY(-2px) scale(1.012);
}

/* Accessibility: focus states for all interactive elements */
a:focus, button:focus, .category-filters a:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #D8A7B1;
  outline-offset: 1px;
}

/* ===========================
   MISCELLANEOUS
   =========================== */
::-webkit-scrollbar {
  width: 8px;
  background: #F4F4F6;
}
::-webkit-scrollbar-thumb {
  background: #D8A7B1;
  border-radius: 6px;
}

/* Ensure section image icons and inline icons */
.text-section img, .content-wrapper img, p img {
  display: inline-block;
  vertical-align: middle;
  height: 22px;
  width: auto;
  margin-right: 8px;
}

/* Hide visually when aria-hidden */
[aria-hidden="true"] {
  display: none;
}

/* ===========================
   PRINT STYLES (MINIMAL)
   =========================== */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal-bg, .cookie-modal {
    display: none !important;
  }
  .section, .container {
    background: #fff !important;
    box-shadow: none !important;
    color: #2A2A3D;
  }
  body {
    background: #fff !important;
  }
}
