/* ==== 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F3F2F1;
  color: #23292A;
  font-family: 'Roboto', Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #B39573;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #B39573;
  outline-offset: 2px;
}
a:hover {
  color: #23292A;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Georgia, serif;
  font-weight: 600;
  color: #23292A;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; margin-bottom: 20px; line-height: 1.1; }
h2 { font-size: 2rem; margin-bottom: 18px; line-height: 1.2; }
h3 { font-size: 1.25rem; margin-bottom: 15px; line-height: 1.3; }
.subheadline { font-size: 1.25rem; margin-bottom: 22px; color: #554c42; line-height: 1.5; }
p,
ul, ol { margin-bottom: 16px; font-size: 1.05rem; }
strong, b { font-weight: 600; color: #23292A; }

/* Typography for table */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 8px rgba(35,41,42,0.05);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}
thead tr {
  background: #B39573;
}
thead th {
  color: #fff;
  font-family: 'Oswald', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 8px;
  letter-spacing: 0.04em;
}
tbody td {
  color: #23292A;
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  padding: 14px 8px;
  border-bottom: 1px solid #F3F2F1;
}
tbody tr:last-child td { border-bottom: none; }

/* Ordered/Unordered lists */
ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 10px;
}

/* ==== LAYOUT CONTAINERS & SPACING ==== */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(35,41,42,0.05);
  padding: 36px 26px;
  margin-bottom: 36px;
  position: relative;
}

/* Flexible Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(35,41,42,0.06);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover{
  box-shadow: 0 4px 20px rgba(35,41,42,0.09);
  transform: translateY(-6px);
  z-index: 2;
}

.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: 18px;
  }
}

/****** Feature Grid + Features ******/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  margin-top: 20px;
}
.feature {
  background: #fff;
  border: 1px solid #F3F2F1;
  border-radius: 10px;
  flex: 1 1 220px;
  max-width: 280px;
  min-width: 180px;
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 10px 0 rgba(35,41,42,0.03);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  margin-bottom: 20px;
}
.feature img { width: 40px; height: 40px; }
.feature h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #23292A;
  margin-bottom: 4px;
}
.feature p { color: #554c42; }
.feature:hover {
  box-shadow: 0 8px 30px 0 rgba(35,41,42,0.10);
  border-color: #B39573;
  transform: translateY(-5px);
  z-index: 2;
}

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

/****** Testimonials ******/
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px 0 rgba(35,41,42,0.09);
  padding: 20px 28px 26px 28px;
  min-width: 240px;
  max-width: 340px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  border-left: 5px solid #B39573;
  position: relative;
  z-index: 1;
  color: #23292A;
}
.testimonial-card .stars {
  font-family: 'Oswald', Georgia, serif;
  color: #B39573;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.testimonial-card p {
  font-style: italic;
  color: #23292A;
}
.testimonial-author {
  font-size: 0.97rem;
  color: #766859;
  letter-spacing: 0.01em;
}
/****** Buttons & CTA ******/
.cta-btn {
  background: #B39573;
  color: #fff !important;
  font-family: 'Oswald', Georgia, serif;
  font-size: 1.13rem;
  font-weight: 600;
  padding: 12px 34px;
  border-radius: 26px;
  letter-spacing: 0.04em;
  display: inline-block;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 2px 10px 0 rgba(35,41,42,0.07);
  transition: background 0.22s, color 0.18s, box-shadow 0.21s, transform 0.15s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #23292A;
  color: #fff;
  box-shadow: 0 4px 20px 0 rgba(35,41,42,0.11);
  transform: translateY(-3px);
  outline: none;
}

/* Footer and links */
footer {
  background: #23292A;
  color: #fff;
  padding: 48px 0 10px 0;
  font-size: 1rem;
  font-family: 'Roboto', Georgia, serif;
  letter-spacing: 0.02em;
  margin-top: 60px;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: #B39573;
  font-family: 'Oswald', Georgia, serif;
  font-size: 1.08rem;
  margin-bottom: 2px;
}
footer nav a:hover {
  color: #fff;
}
.footer-contact {
  font-size: 0.97rem;
  color: #B39573;
  font-family: 'Roboto', Georgia, serif;
  margin-top: 2px;
}
.footer-contact a { color: #F3F2F1; }

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #fff;
  border-bottom: 1px solid #EFE7DE;
  width: 100%;
  position: relative;
  z-index: 8;
  padding: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  padding: 18px 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Oswald', Georgia, serif;
  color: #23292A;
  font-size: 1.09rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 7px 12px;
  border-radius: 18px;
  transition: background 0.18s;
}
header nav a:hover, header nav a:focus {
  background: #F3F2F1;
  color: #B39573;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 10px;
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: #23292A;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  margin-left: 6px;
  z-index: 18;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #EFE7DE;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #23292A;
  color: #fff;
  z-index: 49;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0;
  transform: translateX(-105%);
  transition: transform 0.34s cubic-bezier(.82,.02,.41,1.04);
  box-shadow: 0 10px 30px 0 rgba(35,41,42,0.2);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #B39573;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 26px 22px 12px 0;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 60;
  border-radius: 8px;
  transition: background 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #B39573;
  color: #fff;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  padding: 14px 34px;
  gap: 14px;
  margin-top: 10px;
  font-size: 1.19rem;
  font-family: 'Oswald', Georgia, serif;
}
.mobile-nav a {
  color: #fff;
  padding: 13px 0 13px 7px;
  border-radius: 12px;
  font-size: 1.09rem;
  letter-spacing: 0.04em;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #B39573;
  color: #fff;
}

@media (max-width: 1000px) {
  header .container nav,
  header .container .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 650px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 21px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 7px;
  }
  .section {
    padding: 26px 3px;
    margin-bottom: 38px;
  }
  .content-wrapper, .text-section {
    padding: 17px 4px;
    margin-bottom: 20px;
  }
  table thead th, table tbody td { font-size: 0.99rem; padding: 10px 5px; }
  .feature-grid { gap: 15px; }
  .testimonial-list { gap: 12px; }
}

/* Responsive stacking for content wrappers and grids */
@media (max-width: 810px) {
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* Service List Styling (Leistungen) */
.service-list {
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
}
.service-list li {
  background: #fff;
  border-left: 5px solid #B39573;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 18px 16px 18px 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  color: #23292A;
  box-shadow: 0 1px 5px 0 rgba(35,41,42,0.06);
}
.service-list span {
  color: #B39573;
  font-family: 'Oswald', Georgia, serif;
  margin-left: 8px;
  font-size: 1.08rem;
}

/* ==== Cookie Banner ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 96;
  background: #23292A;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 4vw 22px 4vw;
  box-shadow: 0 -4px 32px 0 rgba(35,41,42,0.18);
  font-size: 1.03rem;
  animation: cookiefadein 0.6s cubic-bezier(.46,.88,.13,.97);
  gap: 24px;
}
@keyframes cookiefadein {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  margin: 0;
  color: #fff;
  font-size: 1.04rem;
}
.cookie-banner .cookie-btn {
  background: #B39573;
  color: #fff;
  font-family: 'Oswald', Georgia, serif;
  font-size: 1.01rem;
  padding: 8px 20px;
  border: none;
  border-radius: 18px;
  margin-left: 10px;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.18s, color 0.15s, box-shadow 0.13s;
  box-shadow: 0 1px 7px 0 rgba(35,41,42,0.05);
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #fff;
  color: #23292A;
  outline: none;
}
.cookie-banner .cookie-btn.settings {
  background: #EFE7DE;
  color: #23292A;
  border: 1px solid #B39573;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #B39573;
  color: #fff;
}

/***** Cookie Consent Modal (Popup) *****/
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 110;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35, 41, 42, 0.37);
  align-items: center;
  justify-content: center;
  animation: cookiefadein 0.6s cubic-bezier(.46,.88,.13,.97);
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  max-width: 420px;
  width: 96vw;
  border-radius: 14px;
  box-shadow: 0 9px 38px 2px rgba(35,41,42,0.13);
  padding: 32px 32px 28px 32px;
  color: #23292A;
  font-family: 'Roboto', Georgia, serif;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: modalin 0.5s cubic-bezier(.46,.88,.13,.97);
}
@keyframes modalin {
  from { opacity: 0; transform: scale(0.91) translateY(21px); } 
  to   { opacity: 1; transform: none;}
}
.cookie-modal h3 {
  font-family: 'Oswald', Georgia, serif;
  color: #23292A;
  font-size: 1.32rem;
  margin-bottom: 2px;
}
.cookie-modal .modal-close-btn {
  position: absolute;
  top: 17px;
  right: 19px;
  font-size: 1.45rem;
  background: none;
  border: none;
  color: #B39573;
  cursor: pointer;
  border-radius: 7px;
  padding: 2px 8px;
  transition: background 0.14s;
}
.cookie-modal .modal-close-btn:hover,
.cookie-modal .modal-close-btn:focus{
  background: #EFE7DE;
  color: #23292A;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F3F2F1;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 11px;
  font-size: 1.02rem;
}
.cookie-modal label {
  font-family: 'Roboto', Georgia, serif;
  color: #23292A;
  font-size: 1.02rem;
  margin-left: 8px;
}
.cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #B39573;
  cursor: pointer;
}
.cookie-modal .cookie-btn {
  margin: 11px 6px 0 0;
  padding: 8px 20px;
  font-size: 1.04rem;
}


/* ==== Micro interactions ==== */
.card, .feature, .cta-btn, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.13s;
}
.card:active, .feature:active, .cta-btn:active {
  transform: scale(0.98);
}

/* Buttons in context (accept/reject settings) */
.cookie-modal .cookie-btn { margin-top: 17px; }

/**** Utility: Hide visually but keep accessible for screen readers ****/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/**** Accessibility focus style ****/
a, button, .cta-btn, input, select, textarea {
  outline: 2px solid #B39573;
  outline-offset: 2px;
  transition: outline 0.14s;
}
:focus:not(:focus-visible) {
  outline: none;
}

/**** Box shadows and subtle hover for all interactive elements ****/
button, [role="button"] {
  cursor: pointer;
}

/* ==== RESPONSIVE HEADINGS ==== */
@media (max-width: 600px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.14rem; }
  .subheadline { font-size: 1rem; }
}

/* ==== MISCELLANEOUS ==== */
main {
  min-height: 60vh;
  margin-top: 16px;
}

/* Form Elements (if any) */
input, select, textarea {
  padding: 11px 14px;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
  border: 1px solid #EFE7DE;
  background: #F3F2F1;
  color: #23292A;
  margin-bottom: 14px;
}
input:focus, select:focus, textarea:focus {
  border-color: #B39573;
  background: #fff;
}

/* Hide scroll for modal when open */
body.cookie-modal-open {
  overflow: hidden;
}

/* Utility spacing */
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.pt-2 { padding-top: 20px; }
.pb-2 { padding-bottom: 20px; }

/* General visual hierarchy */
h1, h2, h3 {
  font-weight: 600;
  color: #23292A;
}

/***** Loader overlay (when needed) *****/
.loader-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35, 41, 42, 0.16);
  justify-content: center;
  align-items: center;
  z-index: 99;
}
.loader-overlay.active {
  display: flex;
}
.loader {
  border: 4px solid #EFE7DE;
  border-radius: 50%;
  border-top: 4px solid #B39573;
  width: 42px;
  height: 42px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg) }
  100% { transform: rotate(360deg) }
}

/******* Ensure NO children overlap or are clipped! ******/
.card, .feature, .testimonial-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}

/******* End of Styles ******/
