/* RESET & BASE TYPOGRAPHY -------------------------------------------------- */
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #24313A;
  background: #fff;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* TYPOGRAPHY SCALE -------------------------------------------------- */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.75rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 14px;
}

h4, .h4 { font-size: 1.1rem; font-family: 'Montserrat', Arial, sans-serif; margin-bottom: 8px; font-weight: 500; }
p { margin-bottom: 18px; }
ul, ol { margin-left: 24px; margin-bottom: 18px; }
li { margin-bottom: 8px; }
a {
  color: #B87572;
  text-decoration: none;
  transition: color .18s;
}
a:hover, a:focus {
  color: #944846;
  text-decoration: underline;
}
strong { font-weight: 600; }

/* LAYOUT & CONTAINER -------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}

/* HEADER & NAV -------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #E7EDF2;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}
.header-flex img {
  height: 38px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #24313A;
  font-weight: 500;
  transition: color .18s;
  position: relative;
  padding: 8px 0;
}
.main-nav a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: #B87572;
  margin-top: 4px;
  transition: width .2s;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 90%;
}

.cta-button {
  background: #B87572;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(36,49,58,0.05);
  transition: background .2s, box-shadow .23s, transform .13s;
  outline: none;
  display: inline-block;
  text-align: center;
  margin-left: 18px;
}
.cta-button:hover, .cta-button:focus {
  background: #944846;
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 4px 16px rgba(36,49,58,0.09);
  color: #fff;
  text-decoration: none;
}

/* MOBILE MENU -------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #24313A;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E7EDF2;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.77, 0, .175, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 0 0 0;
  box-shadow: -4px 0 28px 0 rgba(36,49,58,0.10);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  border: none;
  background: transparent;
  color: #24313A;
  align-self: flex-end;
  margin-right: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E7EDF2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  width: 100%;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #24313A;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #E7EDF2;
  transition: color .18s, background .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B87572;
  background: #E7EDF2;
}

/* HERO -------------------------------------------------- */
.hero {
  padding: 64px 0 0 0;
  background: #E7EDF2;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  padding-top: 0;
  padding-bottom: 0;
}
.hero .content-wrapper {
  max-width: 600px;
  gap: 14px;
  padding: 16px 0 32px 0;
}
.hero h1 {
  color: #24313A;
  margin-bottom: 16px;
}

/* FLEX CONTAINERS (Mandatory, No Grid) --------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(36,49,58,0.05);
  padding: 28px 24px 24px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  flex: 1 1 230px;
}
.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: #F7F9FA;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(36,49,58,0.065);
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 530px;
  color: #24313A;
}
.testimonial-card p {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #24313A;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.testimonial-card strong {
  color: #944846;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SECTION SPACING (Mandatory) ------------------------------------------ */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 18px;
}

/* TABLES (Preise) ----------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(36,49,58,0.035);
  margin-bottom: 18px;
  border-radius: 10px;
  overflow: hidden;
  font-size: 1rem;
}
thead {
  background: #E7EDF2;
}
th, td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid #E7EDF2;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #24313A;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* FOOTER -------------------------------------------------------------- */
footer {
  background: #F7F9FA;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid #E7EDF2;
  color: #24313A;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
}
.footer-flex img {
  height: 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-nav a {
  color: #24313A;
  font-size: 0.97rem;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B87572;
}
.footer-contact {
  font-size: 0.98rem;
  color: #24313A;
  line-height: 1.7;
}
.footer-contact a { color: #B87572; }

/* COOKIE CONSENT ------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(36,49,58,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 18px 18px;
  min-height: 80px;
  gap: 18px;
  transition: transform 0.32s cubic-bezier(.77,0,.175,1);
  font-size: 1rem;
}
.cookie-banner.hide { transform: translateY(120%); }
.cookie-banner__text { color: #24313A; margin-bottom: 6px; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.cookie-btn {
  background: #B87572;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background .17s, transform .11s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #944846;
  transform: translateY(-1px) scale(1.02);
}
.cookie-btn.secondary {
  background: #E7EDF2;
  color: #24313A;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #D3DCE3;
}

/* COOKIE MODAL -------------------------------------------------------- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,49,58,0.24);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .21s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__content {
  background: #fff;
  border-radius: 14px;
  padding: 36px 28px 26px 28px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 10px 38px rgba(36,49,58,0.13);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalshow .36s cubic-bezier(.77, 0, .175, 1);
}
@keyframes modalshow {
  0% { transform: translateY(68px) scale(.93); opacity: 0; }
  80% { transform: translateY(-7px) scale(1.02); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #24313A;
}
.cookie-modal__category {
  margin-bottom: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #E7EDF2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-toggle {
  accent-color: #B87572;
  width: 22px; height: 22px;
}
.cookie-modal__footer {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* LISTS AND LINK DETAILS --------------------------------------------- */
ul li strong, ol li strong { color: #B87572; }

/* MISC: SHADOWS, CARDS, SUBTLE DETAILS------------------------------- */
.card, .feature-item, .testimonial-card, .cookie-modal__content {
  /* Use same shadow, rounded corners */
  box-shadow: 0 2px 16px rgba(36,49,58,0.05);
  border-radius: 14px;
}

/* BUTTONS COMMON ----------------------------------------------------- */
button, input[type="button"], input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  background: #B87572;
  color: #fff;
  border-radius: 24px;
  padding: 10px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .19s, color .13s, transform .13s;
  box-shadow: 0 2px 8px rgba(36,49,58,0.06);
  outline: none;
}
button:focus, input[type="button"]:focus, input[type="submit"]:focus {
  background: #944846;
}

button.secondary, .cookie-btn.secondary {
  background: #E7EDF2;
  color: #24313A;
  box-shadow: none;
  border: 1px solid #E7EDF2;
}
button.secondary:hover, button.secondary:focus {
  background: #D3DCE3;
}

/* FORM ELEMENTS (Contact Forms, Not in HTML currently) --------------- */
input, textarea, select {
  font-family: inherit;
  border: 1px solid #E7EDF2;
  background: #fff;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 1rem;
  color: #24313A;
  margin-bottom: 14px;
  outline: none;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #B87572;
}

/* RESPONSIVE DESIGN -------------------------------------------------- */
@media (max-width: 992px) {
  .header-flex {
    gap: 12px;
    flex-wrap: wrap;
  }
}
@media (max-width: 820px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .content-wrapper { padding-left: 0; padding-right: 0; }
  .section, section { padding: 28px 8px; }
  .hero { padding: 44px 0 0 0; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .header-flex {
    flex-wrap: wrap;
    gap: 7px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: 0;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 18px;
  }
  .footer-nav {
    gap: 10px;
  }
  .testimonial-card {
    max-width: 95vw;
    font-size: 1rem;
    padding: 15px 10px;
  }
  .text-image-section, .content-grid, .card-container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .cookie-modal__content {
    padding: 16px 10px 14px 10px;
    min-width: 0;
    width: 94vw;
  }
  .section, section {
    padding: 24px 6px;
    margin-bottom: 34px;
  }
  .hero {
    padding-top: 24px;
  }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  h1, .h1 { font-size: 1.6rem; }
  h2, .h2 { font-size: 1.2rem; }
  .section, section { padding: 10px 2px; }
  .footer-flex img { height: 28px; }
}

/* ACCESSIBILITY: FOCUS OUTLINE ---------------------------------------- */
a:focus, button:focus, .cta-button:focus, input:focus {
  outline: 2px solid #944846;
  outline-offset: 2px;
}

/* UTILITIES ---------------------------------------------------------- */
.text-center { text-align: center; }
.hide-mobile { display: block; }
.show-mobile { display: none; }
@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}

/* SMOOTH TRANSITIONS ------------------------------------------------- */
.section, .card, .testimonial-card, .cookie-banner, .cookie-modal__content {
  transition: box-shadow .28s, background .22s, color .16s;
}

/* MICRO-INTERACTIONS ------------------------------------------------- */
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 34px rgba(36,49,58,0.14);
  transform: translateY(-2px) scale(1.02);
}

/* ICONS -------------------------------------------------------------- */
.main-nav a[aria-current="page"] {
  color: #B87572;
  font-weight: 700;
}

/* Z-INDEX LAYERING --------------------------------------------------- */
header { z-index: 100; }
.mobile-menu { z-index: 1000; }
.cookie-banner { z-index: 3000; }
.cookie-modal { z-index: 3500; }

/* END CSS */
