/* =============================================================
   CSS RESET AND BASE STYLES
   ============================================================= */
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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F5F3EF;
  color: #24272B;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =============================================================
   BRAND COLORS & TYPOGRAPHY
   ============================================================= */
:root {
  --primary: #24272B;
  --secondary: #9A7C54;
  --accent: #F5F3EF;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow-card: 0 2px 16px rgba(36,39,43,0.07);
  --shadow-hover: 0 4px 20px rgba(36,39,43,0.11);
  --radius: 12px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --max-width: 1040px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.14;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.7rem;
}
h3 {
  font-size: 1.18rem;
  color: var(--secondary);
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.04rem;
  font-weight: 500;
}
p, ul, ol, .imprint, blockquote {
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 18px;
}
strong {
  font-weight: 600;
}
a {
  color: var(--secondary);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--transition);
}
a:hover,
a:focus {
  color: var(--primary);
}
ul, ol {
  margin-left: 22px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* =============================================================
   CONTAINER & LAYOUT
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =====================
   HEADER
   ====================== */
header {
  background: var(--accent);
  border-bottom: 1px solid #e0ded9;
  position: sticky;
  top: 0;
  z-index: 102;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 20px;
}
header img {
  height: 42px;
  width: auto;
  margin-right: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--primary);
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
header nav a.cta {
  background: var(--secondary);
  color: #fff;
  border-radius: 24px;
  padding: 10px 24px;
  font-weight: 600;
  margin-left: 16px;
  box-shadow: var(--shadow-card);
  transition: background var(--transition), box-shadow var(--transition);
}
header nav a.cta:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
header nav a:not(.cta):hover {
  background: #eaeaea;
}

/* Hide mobile menu button on desktop by default */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  margin-left: 18px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #ecebea;
}

/* Mobile nav overlay (hidden by default) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px rgba(36,39,43,0.18);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform var(--transition);
  padding-top: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  align-self: flex-end;
  margin: 10px 18px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 32px 24px 0 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  background: none;
  text-decoration: none;
  padding: 10px 4px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ecebea;
  color: var(--secondary);
}

/* =====================
   HERO SECTION (Home)
   ====================== */
.hero {
  background: #fff;
  padding: 52px 0 56px 0;
  margin-bottom: 60px;
}
.hero .container { justify-content: center; align-items: center; }
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
  max-width: 620px;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.2rem;
  color: var(--primary);
}
.hero .cta {
  margin-top: 6px;
}

/* =====================
   FEATURES & FEATURE GRID
   ====================== */
.features, .feature-grid {
  width: 100%;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 270px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px) scale(1.022);
}
.feature-grid > div img {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 0;
  background: #f8f7f5;
}
.feature-grid > div h3 {
  margin-bottom: 6px;
  color: var(--secondary);
  font-size: 1.07rem;
  letter-spacing: 0.01em;
}
.feature-grid > div p {
  color: var(--primary);
  font-size: 0.99rem;
  line-height: 1.6;
}

/* =====================
   CARDS & TESTIMONIALS
   ====================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.012);
}

/* Testimonials */
.testimonials {
  background: #F5F3EF;
  padding: 40px 0 25px 0;
}
.testimonial-card {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 28px 18px 24px;
  margin-bottom: 20px;
  min-width: 200px;
  max-width: 480px;
  color: var(--primary);
}
.testimonial-card p {
  font-size: 1.08rem;
  margin-bottom: 0;
  color: var(--primary);
  line-height: 1.6;
}
.testimonial-card div {
  color: var(--secondary);
  font-size: 1.13rem;
  letter-spacing: 0.10em;
  margin-top: -4px;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #5A5446;
}

/* =====================
   TEXT-IMAGE SECTION & FLEX GRIDS
   ====================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

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

/* =====================
   CARDS AND TABLES
   ====================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
  font-size: 1rem;
}
table th, table td {
  border-bottom: 1px solid #E5E2DD;
  text-align: left;
  padding: 12px 8px;
}
table th {
  background: #F5F3EF;
  color: var(--primary);
  font-weight: 600;
}
table tr:last-child td {
  border-bottom: none;
}

/* =============================================================
   CTA BUTTONS
   ============================================================= */
.cta {
  background: var(--secondary);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 32px;
  font-size: 1.10rem;
  text-align: center;
  text-decoration: none;
  border: none;
  box-shadow: var(--shadow-card);
  margin-top: 10px;
  cursor: pointer;
  display: inline-block;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: #fff !important;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.018);
}

button, input[type=submit] {
  font-family: var(--font-display);
  padding: 8px 21px;
  border-radius: 24px;
  border: none;
  background: var(--secondary);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background var(--transition), box-shadow var(--transition);
}
button:hover, input[type=submit]:hover,
button:focus, input[type=submit]:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

/* =====================
   FORMS
   ====================== */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
}
input[type=email], input, textarea {
  padding: 10px 14px;
  border: 1px solid #E1DED7;
  border-radius: 7px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--primary);
  transition: border var(--transition), box-shadow var(--transition);
}
input[type=email]:focus, textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 1px 8px rgba(154,124,84,0.13);
}

/* =====================
   FOOTER
   ====================== */
footer {
  background: #fff;
  border-top: 1px solid #edeade;
  padding: 28px 0;
  margin-top: 30px;
  position: relative;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer img {
  height: 38px;
  width: auto;
}
footer nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
footer nav a {
  font-size: 0.97rem;
  color: #96907A;
  text-decoration: none;
  transition: color var(--transition);
  background: none;
  padding: 4px 8px;
  border-radius: 6px;
}
footer nav a:hover {
  color: var(--secondary);
  background: #f8f7f5;
}
.imprint {
  font-size: 0.95rem;
  color: #AFAFA2;
  margin-left: auto;
}

/* =====================
   RESPONSIVE STYLES
   ====================== */
@media (max-width: 1050px) {
  .container {
    max-width: 92vw;
  }
}
@media (max-width: 900px) {
  .feature-grid > div { max-width: 100%; }
  .content-wrapper { gap: 18px; }
  .container { padding: 0 10px; }
  main, .section, section { padding: 32px 0; }
}
@media (max-width: 768px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .container { padding: 0 6vw; }
  .section, section { padding: 25px 0; margin-bottom: 42px; }
  .feature-grid { gap: 16px; }
  .card-container, .content-grid { gap: 12px; }
  .feature-grid > div {
    min-width: 90vw;
    max-width: 100vw;
    padding: 18px 16px;
  }
  .testimonial-card {
    max-width: 94vw;
    padding: 16px 14px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .imprint {
    margin-left: 0;
  }
  .hero h1 { font-size: 1.45rem; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.08rem; }
  h3 { font-size: 1.02rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 2vw; }
  .feature-grid > div img { width: 25px; height: 25px; }
  .cta, button, input[type=submit] { font-size: 0.98rem; padding: 10px 18px; }
  .section, section { padding: 14px 0; }
}

/* =====================
   COOKIE CONSENT BANNER & MODAL
   ====================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 22px rgba(36, 39, 43, 0.10);
  z-index: 10000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw 20px 5vw;
  gap: 24px;
  transition: transform var(--transition), opacity var(--transition);
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0;
  flex: 1 1 auto;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  font-size: 0.99rem;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 10px 18px;
  background: var(--secondary);
  color: #fff;
  border: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: var(--secondary);
  border: 1.2px solid var(--secondary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #eceaea;
  color: var(--primary);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    padding: 15px 2.5vw 15px 2.5vw;
    gap: 16px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-buttons { width: 100%; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,39,43, 0.25);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition), visibility var(--transition);
  opacity: 0; visibility: hidden;
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 98vw;
  width: 410px;
  box-shadow: 0 8px 30px rgba(36,39,43,0.17);
  padding: 28px 28px 14px 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  animation: cookieModalPop 0.26s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalPop {
  from { transform: scale(0.94) translateY(30px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10;
}
.cookie-modal h2 {
  font-size: 1.18rem;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #F5F3EF;
  padding: 9px 10px 9px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.cookie-category label {
  flex: 1;
  color: var(--primary);
  cursor: pointer;
}
.toggle-switch {
  position: relative;
  width: 42px;
  height: 26px;
}
.toggle-switch input[type=checkbox] {
  opacity: 0;
  width: 42px;
  height: 26px;
  position: absolute;
  left: 0; top: 0;
  margin: 0;
  cursor: pointer;
}
.toggle-slider {
  position: absolute;
  left: 0; top: 0;
  right: 0; bottom: 0;
  background: #e3e1da;
  border-radius: 16px;
  transition: background var(--transition);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--secondary);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(36,39,43,0.10);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal .cookie-actions button {
  border-radius: 20px;
  font-size: 1rem;
  padding: 8px 18px;
}

/* =============================================================
   MICRO-INTERACTIONS & TRANSITIONS
   ============================================================= */
.card, .feature-grid > div, .testimonial-card, .cta, button, input[type=submit], .mobile-menu, .cookie-banner, .cookie-modal-content {
  transition: box-shadow var(--transition), background var(--transition), transform var(--transition), color var(--transition);
}

::selection {
  background: var(--secondary);
  color: #fff;
}

/* =============================================================
   MISC UTILITY
   ============================================================= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mt-4 { margin-top: 4px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-16 { margin-bottom: 16px !important; }
.gap-20 { gap: 20px !important; }

/* === END OF CSS FILE === */