/* --- CSS RESET & BASE STYLES (Normalize & Consistent Box Model) --- */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body, h1, h2, h3, h4, h5, h6, p, blockquote, ul, ol, li, dd, dt, figure, figcaption {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; height: auto; border: 0; }
button, input, select, textarea { font: inherit; background: none; border: none; outline: none; }
:focus { outline: 2px solid #235230; outline-offset: 2px; }

/* --- BRAND VARIABLES & FONT STACKS --- */
:root {
  --color-primary: #235230;
  --color-secondary: #B2D382;
  --color-accent: #F7F9F3;
  --color-heading: #1B2A23;
  --color-body: #27332a;
  --color-muted: #8d988d;
  --color-white: #fff;
  --color-border: #e7ece5;
  --border-radius: 14px;
  --shadow-sm: 0 2px 12px rgba(35, 82, 48, 0.08);
  --shadow-md: 0 3px 24px rgba(35, 82, 48, 0.10);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

html { background: var(--color-accent); color: var(--color-body); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  background: var(--color-accent);
  color: var(--color-body);
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--color-heading); line-height: 1.16; font-weight: 600; letter-spacing: 0.01em; }

h1 { font-size: 2.25rem; margin-bottom: 16px; }
h2 { font-size: 1.60rem; margin-bottom: 12px; }
h3 { font-size: 1.18rem; margin-bottom: 8px; }
h4 { font-size: 1.02rem; margin-bottom: 6px; }
p, li, span, a, small { font-family: var(--font-body); color: var(--color-body); font-weight: 400; }
p { margin-bottom: 18px; }
strong { font-weight: 600; }
small { font-size: 0.95rem; color: var(--color-muted); }

/* --- GLOBAL SPACING AND LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section { max-width: 750px; margin: 0 auto; }

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -12px;
}
.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  padding: 26px 22px;
  flex: 1 1 275px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(35,82,48,0.14);
  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;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 26px;
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  min-width: 0;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card p {
  font-size: 1.11rem;
  color: var(--color-body);
  margin-bottom: 0;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

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

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 22px 24px 22px;
  min-width: 210px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-md);
}
.feature-grid img {
  width: 40px; height: 40px; margin-bottom: 6px;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  padding: 20px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
}
.faq-item h3 { font-size: 1.07rem; margin-bottom: 8px; color: var(--color-primary); }
.faq-item:hover { box-shadow: var(--shadow-md); }

ul, ol {
  margin-bottom: 22px;
  padding-left: 22px;
  list-style: none;
}
ul li, ol li {
  position: relative;
  padding-left: 0;
  margin-bottom: 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
ul li img { width: 24px; height: 24px; flex-shrink: 0; }

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--color-white);
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(27,42,35,0.03);
  position: relative;
  z-index: 201;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
header img[alt="DämmerungTrakt"] {
  height: 38px; width: auto; margin-right: 2vw;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 5px 0;
  color: var(--color-primary);
  opacity: 0.88;
  transition: color 0.16s, opacity 0.16s;
  border-bottom: 2px solid transparent;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
  border-bottom: 2px solid var(--color-secondary);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  padding: 12px 30px;
  margin-left: 20px;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  box-shadow: var(--shadow-sm);
  border: none; cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* --- HAMBURGER & MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  border: none;
  padding: 7px 14px;
  margin-left: 14px;
  font-size: 1.8rem;
  border-radius: 9px;
  color: var(--color-primary);
  box-shadow: 0 1px 6px rgba(35,82,48,0.07);
  cursor: pointer;
  transition: background 0.17s, color 0.16s;
  z-index: 701;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-accent);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  box-shadow: -4px 0 16px rgba(27,42,35,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 28px 28px 32px;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  margin-bottom: 28px;
  cursor: pointer;
  padding: 6px 16px;
  transition: background 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 18px;
}
.mobile-nav a {
  font-size: 1.17rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  background: transparent;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.11s, background 0.17s;
  border-radius: 6px;
  min-width: 0;
  min-height: 42px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  background: var(--color-white);
}

/* Hide nav on mobile, show hamburger; reverse on desktop */
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 12px;
  }
  header nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* --- HERO / MAIN SECTIONS --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:first-of-type { padding-top: 56px; }
section:last-of-type { margin-bottom: 0; }

section .btn-primary {
  margin-top: 12px;
}

/* --- FOOTER --- */
footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 8px rgba(35,82,48,0.03);
  width: 100%;
  margin-top: 32px;
  padding: 34px 0 18px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer nav {
  display: flex;
  gap: 20px;
  margin-bottom: 6px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 1rem;
  opacity: 0.76;
  transition: color 0.16s, opacity 0.15s;
  font-family: var(--font-display);
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
  text-decoration: underline;
}
footer small {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: var(--color-muted);
  letter-spacing: 0.01em;
}

/* --- BUTTONS & CTA --- */
button, .btn-primary {
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.17s, color 0.15s, box-shadow 0.13s, opacity 0.12s;
  border: none;
}
.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- LINKS --- */
a, a:visited {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.13s;
}
a:hover, a:active {
  color: var(--color-secondary);
}

/* --- TABLES & FORMS (if present) --- */
table { border-collapse: collapse; width: 100%; margin-bottom: 28px; }
th, td { border: 1px solid var(--color-border); padding: 12px 8px; }
th { background: var(--color-accent); font-family: var(--font-display); }

input, textarea, select {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-accent);
  padding: 12px 14px;
  font-size: 1rem;
  margin-bottom: 18px;
  width: 100%;
  transition: border-color 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-white);
  color: var(--color-body);
  width: 100%;
  z-index: 1500;
  box-shadow: 0 -2px 16px rgba(35,82,48,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border-top: 1px solid var(--color-border);
  animation: cookie-slide-in 0.6s cubic-bezier(.33,1.15,.6,1) 1;
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__msg {
  font-size: 1rem;
  max-width: 440px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  box-shadow: none;
  min-width: 132px;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 9px;
}
.cookie-banner .btn-settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,51,42,0.12);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__window {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 32px 22px 24px 22px;
  min-width: 320px;
  max-width: 92vw;
  box-shadow: 0 8px 32px rgba(35,82,48,0.22);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal__close {
  position: absolute; top: 12px; right: 16px;
  background: transparent;
  font-size: 1.45rem;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
}
.cookie-modal__title {
  font-family: var(--font-display);
  font-size: 1.39rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal__category {
  background: var(--color-accent);
  border-radius: 8px;
  padding: 10px 12px 5px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}
.cookie-modal__category-title {
  font-family: var(--font-display);
  font-size: .99rem;
  color: var(--color-primary);
  flex: 1 1 auto;
}
.cookie-modal__category-toggle {
  margin-left: auto;
}
.cookie-modal__category-toggle input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 24px; height: 24px;
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* --- RESPONSIVE + FLEX ADJUSTMENTS --- */
@media (max-width: 768px) {
  html { font-size: 93%; }
  .container { max-width: 100vw; padding: 0 8px; }
  .content-wrapper, .text-section { max-width: 100vw; padding: 0 2vw; gap: 21px; }
  section { padding: 31px 0; margin-bottom: 44px; }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div { min-width: 0; width: 100%; }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    padding: 18px 14px;
  }
  .faq-item { padding: 15px 12px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
}
@media (max-width: 560px) {
  header .container { padding: 0 7px; min-height: 56px; }
  section { padding: 22px 0; }
  footer { padding: 18px 0 8px 0; }
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 17px 9px; gap: 10px; }
}

/* --- MICRO-INTERACTIONS / ANIMATIONS --- */
.btn-primary, .btn-secondary, .cookie-banner button {
  will-change: background, color, box-shadow, opacity, border;
}
.btn-primary:active {
  opacity: 0.85;
}
.card, .feature-grid > div, .testimonial-card, .faq-item {
  transition: box-shadow 0.20s, border-color 0.15s;
}

/* --- Z-INDEX --- */
header { z-index: 201; }
.mobile-menu { z-index: 999; }
.cookie-banner { z-index: 1500; }
.cookie-modal { z-index: 1600; }

/* --- UTILITIES & MISC --- */
.hide { display: none !important; }
.center { justify-content: center; align-items: center; }

/* --- COLOR CONTRAST FOCUS: TESTIMONIALS/REVIEWS --- */
.testimonial-card, .testimonial-card * {
  background: var(--color-white) !important;
  color: var(--color-body) !important;
}

/* --- ENFORCE CRITICAL SPACING & GAP BETWEEN ELEMENTS --- */
.card, .testimonial-card, .faq-item, .feature-grid > div {
  margin-bottom: 20px;
}
/* Add extra spacing between all major section wrappers */
section + section { margin-top: 0; }

/* --- END --- */
