/* 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; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #101112;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}
img, video { max-width: 100%; display: block; height: auto; }
um, ol, li, dl, dt, dd { margin: 0; padding: 0; }
*, *::before, *::after { box-sizing: inherit; }
a { color: #24313C; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #A8976C; text-decoration: underline; }

/* Typography Hierarchy */
h1, .h1 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  color: #101112;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2, .h2 {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 18px;
  color: #24313C;
  letter-spacing: -0.3px;
}
h3, .h3 {
  font-family: 'Merriweather', serif;
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: #333;
}
h4, .h4 { font-size: 1.125rem; font-weight: 700; margin-bottom: 10px; }
h5, .h5, h6, .h6 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
p {
  color: #232629;
  margin-bottom: 18px;
}
ul, ol { margin-bottom: 20px; padding-left: 22px; }
ul li, ol li { margin-bottom: 8px; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid #E5E5E7; margin: 32px 0; }

/* Containers & Sections */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 20px rgba(36,49,60,0.07);
  padding: 32px 24px;
  margin-bottom: 24px;
}

/* Main Navigation */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(36,49,60,0.04);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 16px 20px;
}
.main-nav img {
  height: 38px;
  margin-right: 18px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #101112;
  transition: color 0.15s;
  position: relative;
  padding: 4px 0;
}
.main-nav a.cta.primary {
  background: #24313C;
  color: #fff;
  border-radius: 30px;
  padding: 9px 28px;
  margin-left: 12px;
  font-size: 1rem;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 16px rgba(36,49,60,0.1);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.main-nav a.cta.primary:hover, .main-nav a.cta.primary:focus {
  background: #A8976C;
  color: #24313C;
  box-shadow: 0 4px 16px rgba(168,151,108,0.13);
}
.main-nav a:hover:not(.cta), .main-nav a:focus:not(.cta) {
  color: #A8976C;
}

/* Mobile burger menu */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #101112;
  font-size: 2.1rem;
  padding: 6px 14px;
  cursor: pointer;
  display: none;
  z-index: 40;
  margin-left: auto;
  position: relative;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(24,24,24,0.93);
  z-index: 120;
  transform: translateX(100vw);
  transition: transform 0.4s cubic-bezier(0.7,0,0.3,1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 20px;
  cursor: pointer;
  margin-bottom: 16px;
  z-index: 121;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 20px 30px;
}
.mobile-nav a {
  color: #fff;
  font-weight: 600;
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  transition: color 0.16s, background 0.14s;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0 -10px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #A8976C;
  background: rgba(168,151,108,0.12);
}

@media (max-width: 1000px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 880px) {
  .main-nav a.cta.primary {
    padding: 7px 18px;
    font-size: 0.97rem;
  }
}
@media (max-width: 770px) {
  .main-nav > a:not(:first-child):not(.cta.primary) {
    display: none;
  }
  .main-nav a.cta.primary {
    margin-left: auto;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav {
    justify-content: flex-start;
    padding-right: 0;
  }
}
@media (max-width: 700px) {
  .main-nav a {
    font-size: 0.97rem;
    padding: 2px 0;
  }
}

/* Hero Section */
.hero {
  min-height: 48vh;
  background: linear-gradient(100deg, #fff 72%, #F5F3EE 100%);
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  border-bottom: 1px solid #eee;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
}
.hero h1 {
  font-size: 2.7rem;
  color: #24313C;
  margin-bottom: 16px;
}
.hero .subheadline {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 22px;
  font-family: 'Merriweather', serif;
}
.hero .cta.primary {
  margin-top: 10px;
}

/* Features Section & Cards */
.features {
  background: #fafbfc;
  border-top: 1px solid #E5E5E7;
  border-bottom: 1px solid #E5E5E7;
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .feature-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: flex-start;
}
.features .feature-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(36,49,60,0.10);
  padding: 32px 20px;
  flex: 1 1 280px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}
.features .feature-grid > div:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 6px 26px rgba(36,49,60,0.12);
}
.features img {
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  filter: grayscale(1) brightness(0.6);
}
.features h3 {
  margin-bottom: 10px;
  color: #24313C;
  font-size: 1.16rem;
  font-weight: 600;
}

/* Card Styles (for other cards and testimonials) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(37,37,41,0.12);
  padding: 28px 24px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 8px 22px rgba(36,49,60,0.15);
  transform: translateY(-2px) scale(1.013);
}

/* Content Grid */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Flexbox Alignment Patterns */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-left: 5px solid #A8976C;
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(36,49,60,0.07);
  color: #2e2e2e;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 24px rgba(168,151,108,0.12);
  border-left-color: #24313C;
}
.testimonial-card p {
  color: #222;
  font-size: 1.08rem;
  flex: 1;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #555;
  font-size: 0.99rem;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Tables, FAQ, Misc */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(36,49,60,.07);
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #ececec;
  color: #212226;
}
th {
  background: #F5F3EE;
  font-weight: 700;
  font-size: 1.05rem;
}
tr:last-child td { border-bottom: none; }

/* CTA Section/Button Styles */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #F5F3EE;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(36,49,60,0.04);
  margin-bottom: 60px;
  padding: 40px 20px;
  gap: 18px;
}
.cta.primary {
  background: #24313C;
  color: #fff !important;
  border: none;
  border-radius: 40px;
  padding: 12px 38px;
  font-family: 'Merriweather', serif;
  font-size: 1.13rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 18px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(36,49,60,0.09);
  transition: background 0.19s, color 0.19s, box-shadow 0.21s, transform 0.15s;
}
.cta.primary:hover, .cta.primary:focus {
  background: #A8976C;
  color: #24313C !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 7px 24px rgba(168,151,108,0.13);
}

/* Lists with icons */
ul li img, ol li img {
  vertical-align: middle;
  margin-right: 8px;
  height: 1.4em;
  opacity: 0.85;
  filter: grayscale(1) brightness(0.5);
}

/* Map placeholder styling */
.map-placeholder {
  background: #f6f6f7;
  border: 1px dashed #bbb;
  border-radius: 10px;
  padding: 18px 12px;
  color: #444;
  display: flex;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 18px;
  gap: 16px;
}
.map-placeholder img { height: 38px; }

/* Service List (Leistungen) */
.service-list {
  margin-bottom: 20px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #232629;
}
.service-list li img {
  height: 30px;
  margin-right: 5px;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid #e5e5e7;
  padding: 36px 0 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  font-size: 1rem;
  color: #3c3d3e;
  font-family: 'Merriweather', serif;
  font-weight: 500;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A8976C;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #868686;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-brand img { height: 34px; }

/* Confirmation/Thank You Styling */
.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}
.confirmation h1 { color: #24313C; }

/* FAQ (DL) styling */
.faq dl {
  margin-bottom: 24px;
}
.faq dt {
  font-family: 'Merriweather', serif;
  font-weight: bold;
  color: #24313C;
  margin-bottom: 8px;
  font-size: 1.07rem;
}
.faq dd {
  margin-bottom: 18px;
  margin-left: 24px;
  color: #232629;
  font-optical-sizing: auto;
}

/* Trust badges (about page) */
.trust-badges ul {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
}
.trust-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #24313C;
  font-size: 1.02rem;
}
.trust-badges img {
  height: 30px;
  filter: grayscale(1) brightness(0.58);
}
.customer-assurances p {
  color: #232629;
  background: #F5F3EE;
  padding: 14px 19px;
  border-radius: 10px;
}

/* Pricing Table (Bewertung page) */
.pricing-table h2 {
  margin-bottom: 12px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #232226;
  color: #fff;
  padding: 24px 22px 18px 22px;
  box-shadow: 0 -3px 24px rgba(36,49,60,0.17);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeInBanner 0.7s cubic-bezier(.8,.2,.22,1);
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner p { color: #fff; font-size: 0.969rem; }
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 7px;
}
.cookie-btn {
  background: #fff;
  color: #24313C;
  border: none;
  border-radius: 40px;
  padding: 7px 26px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.01rem;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.17s, color .17s, box-shadow 0.18s, transform 0.12s;
  box-shadow: 0 3px 8px rgba(36,49,60,0.07);
}
.cookie-btn.settings {
  background: #A8976C;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #A8976C;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #b12525;
  color: #fff;
  transform: scale(1.03);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #24313C;
  color: #fff;
}

/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.98);
  min-width: 340px;
  max-width: 98vw;
  background: #fff;
  color: #24313C;
  border-radius: 16px;
  box-shadow: 0 12px 44px rgba(24,24,24,0.21), 0 2px 18px rgba(168,151,108,0.08);
  z-index: 2200;
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal 0.3s cubic-bezier(.7,0,.2,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translate(-50%,-40%) scale(0.925); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #101112;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-toggle {
  margin-left: auto;
  background: #eee;
  border-radius: 16px;
  width: 48px;
  height: 25px;
  position: relative;
  cursor: pointer;
  transition: background 0.17s;
  border: 1px solid #d4d2c8;
}
.cookie-toggle[data-active="true"] {
  background: #A8976C;
  border-color: #A8976C;
}
.cookie-toggle-slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 21px; height: 21px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.22s cubic-bezier(.7,0,.2,1);
  box-shadow: 0 1px 3px rgba(36,49,60,0.06);
}
.cookie-toggle[data-active="true"] .cookie-toggle-slider {
  left: 25px;
}
.cookie-modal-controls {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #b1acaa;
  font-size: 1.9rem;
  position: absolute;
  right: 16px;
  top: 11px;
  cursor: pointer;
  z-index: 1;
  transition: color .19s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #A8976C;
}
.cookie-modal-blur {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,49,60,0.18);
  z-index: 2100;
  animation: fadeInBlur .3s cubic-bezier(.7,0,.2,1);
}
@keyframes fadeInBlur {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal .cookie-category small {
  color: #8b8886;
  font-size: 0.91rem;
}

/* Responsive design adjustments (mobile first, then desktop) */
@media (max-width: 960px) {
  .container {
    max-width: 800px;
  }
  .feature-grid {
    gap: 18px;
  }
  .features .feature-grid > div {
    min-width: 190px;
  }
  .footer-nav { gap: 18px; }
  .section, .cta { padding: 28px 10px; }
  .content-wrapper.text-section { padding: 22px 10px; }
}
@media (max-width: 700px) {
  h1, .h1 { font-size: 1.47rem; }
  h2, .h2 { font-size: 1.21rem; }
  .features .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    width: 100%;
    min-width: unset;
    padding: 22px 12px;
  }
  .main-nav img, .footer-brand img { height: 29px; }
  .footer-nav a { font-size: 0.96rem; }
  .card, .testimonial-card, .text-section { padding: 14px 10px; }
  .section, .cta { padding: 19px 6px; margin-bottom: 40px; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; }
  .content-grid { flex-direction: column; gap: 15px; }
  .features .feature-grid { flex-direction: column; gap: 14px; }
  .footer-brand { flex-direction: column; gap: 9px; }
  .footer { padding: 22px 0 5px 0; }
}
@media (max-width: 480px) {
  .container {
    padding: 0 6px;
    max-width: 98vw;
  }
  .hero h1 { font-size: 1.08rem; }
  .card, .testimonial-card, .text-section { padding: 7px 2px; }
  .card-container, .content-grid { gap: 8px; }
  .footer-nav { gap: 10px; flex-wrap: wrap; }
  .cta.primary { font-size: 0.97rem; padding: 8px 14px; }
  .section, .cta { padding: 8px 1px; margin-bottom: 28px; }
  .cookie-banner { font-size: 0.97rem; padding: 14px 5px 10px 5px; }
  .cookie-modal { min-width: 210px; padding: 15px 4px 14px 7px; }
}

/* Animations & Micro-interactions */
.card, .testimonial-card, .features .feature-grid > div {
  transition: box-shadow 0.19s, transform 0.16s, border-color 0.11s;
}
.cta.primary, .cookie-btn, .main-nav a, .footer-nav a {
  transition: background 0.18s, color 0.18s, box-shadow 0.21s, transform 0.13s;
}

/* Monochrome Sophisticated utilities */
body,
.section,
.text-section,
.features .feature-grid > div,
.card, .testimonial-card, .cta {
  background: #fff;
}
h1, h2, h3, h4, h5, h6 {
  color: #101112;
}

/* Hide mobile menu (if not open) */
.mobile-menu {
  display: flex;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  visibility: visible;
  pointer-events: auto;
}

/* Accessibility focus indicators */
:focus-visible {
  outline: 2px solid #A8976C;
  outline-offset: 2px;
}

/* Prevent overlapping and ensure spacing */
.card-container > *, .content-grid > *, .feature-grid > *, .testimonial-card + .testimonial-card {
  margin-bottom: 20px !important;
}
.section > .container {
  margin-bottom: 0;
}

/* Ensure large touch targets for navigation and buttons */
.main-nav a, .footer-nav a, .cta.primary, .cookie-btn, .mobile-nav a {
  min-height: 44px;
  line-height: 1.4;
}

/* Remove grid and columns if present anywhere, final guarantee */
[class*="grid-"] { display: flex !important; }
[class*="columns-"] { display: flex !important; }

/* END CSS */
