/* ============= 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,
main, 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;
}
html {
  height: 100%;
}
body {
  min-height: 100%;
  background: #F2F6F9;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
a { text-decoration: none; color: inherit; }
ol, ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
button { cursor: pointer; font-family: inherit; }
:focus { outline: 2px solid #88AE4C; outline-offset: 2px; }

/* ============= ROOT VARIABLES ============= */
:root {
  --color-primary: #263238;
  --color-secondary: #D3B94C;
  --color-accent: #F2F6F9;
  --color-green: #88AE4C;
  --color-brown: #947255;
  --color-earth: #E9E6DD;
  --color-white: #fff;
  --color-dark: #22312C;
  --color-grey: #768179;
  --color-shadow: rgba(38, 50, 56, 0.07);
  --radius-main: 18px;
  --radius-small: 11px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --transition-main: 0.3s cubic-bezier(.53,.03,.28,1.02);
  --shadow-main: 0 5px 24px rgba(110,125,90,.08);
  --shadow-elevated: 0 8px 28px rgba(38,50,56,.11);
  --section-spacing: 60px;
  --container-max: 1160px;
}

/* ============= TYPOGRAPHY ============= */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-accent);
  line-height: 1.7;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.38rem; margin-bottom: 10px; }
h4 { font-size: 1.15rem; }
p, ul li, ol li { font-size: 1rem; margin-bottom: 10px; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
strong { color: var(--color-dark); font-weight: 600; }
.small { font-size: 0.93rem; color: var(--color-grey); }

/* ============= LAYOUT & CONTAINERS ============= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: var(--section-spacing);
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-main);
}

.accent-bg {
  background: var(--color-earth);
  border-radius: var(--radius-main);
}

/* ============= HEADER ============= */
header {
  background: var(--color-white);
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: 0;
  width: 100%;
  position: relative;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
}
header img {
  height: 48px;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 7px 10px;
  border-radius: var(--radius-small);
  transition: background var(--transition-main), color var(--transition-main);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-green);
  color: var(--color-white);
}

.btn.btn-primary {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-white);
  border: none;
  border-radius: 99px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  transition: background var(--transition-main), box-shadow var(--transition-main);
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-left: 18px;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background: var(--color-brown);
  color: var(--color-white);
  box-shadow: var(--shadow-elevated);
}
.btn-link {
  color: var(--color-green);
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--transition-main);
  font-family: var(--font-body);
  margin-top: 8px;
}
.btn-link:hover,
.btn-link:focus {
  color: var(--color-brown);
}

/* ============= HERO SECTION ============= */
.hero {
  background: var(--color-earth);
  border-radius: var(--radius-main);
  margin-bottom: var(--section-spacing);
  padding: 64px 0 44px 0;
  box-shadow: 0 4px 16px var(--color-shadow);
}
.hero .container {
  align-items: center;
  flex-direction: row;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  width: 100%;
  max-width: 700px;
  gap: 22px;
}

/* ============= FEATURES / CARDS / GRIDS ============= */
.features { margin-bottom: var(--section-spacing); }
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 26px 22px;
  background: var(--color-white);
  border-radius: var(--radius-main);
  box-shadow: 0 4px 14px var(--color-shadow);
  min-width: 235px;
  flex: 1 1 235px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
  border: 1.5px solid var(--color-accent);
}
.feature-grid li:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-4px) scale(1.02);
  border: 1.5px solid var(--color-green);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 7px;
}

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-main);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  gap: 13px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============= TESTIMONIALS & HIGHLIGHT CARDS ============= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px 20px 22px;
  background: var(--color-earth);
  border: 1.5px solid var(--color-green);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  margin-bottom: 24px;
  color: var(--color-primary);
}
.testimonial-card .testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-green);
}
.testimonial-card cite,
.testimonial-card .source {
  font-size: 1rem;
  color: var(--color-brown);
  font-style: normal;
  font-weight: 600;
}

/* ============= TEAM GRID ============= */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.team-grid > div {
  flex: 1 1 240px;
  background: var(--color-white);
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-small);
  padding: 22px 18px;
  margin-bottom: 20px;
  border-left: 6px solid var(--color-green);
  transition: border var(--transition-main), box-shadow var(--transition-main);
}
.team-grid > div:hover {
  border-left: 6px solid var(--color-brown);
  box-shadow: var(--shadow-elevated);
}

/* ============= TABLES (Vergleichstabelle etc.) ============= */
.comparison-table table {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-main);
  border-spacing: 0;
  overflow: hidden;
  margin: 18px 0 10px 0;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid #eceae6;
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-body);
}
.comparison-table th {
  background: var(--color-earth);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

/* ============= TEXT-IMAGE SECTION ============= */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ============= FEATURE ITEMS ============= */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============= FOOTER ============= */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 -2px 16px var(--color-shadow);
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  margin-top: 56px;
  position: relative;
  z-index: 10;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 18px 22px 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  font-family: var(--font-display);
  transition: color var(--transition-main);
  padding: 6px 12px;
  border-radius: var(--radius-small);
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-green);
  background: var(--color-earth);
}
.footer-meta {
  font-size: 0.92rem;
}

/* ============= CTA SECTION ============= */
.cta {
  margin-bottom: var(--section-spacing);
  padding: 36px 20px;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: var(--radius-main);
  text-align: center;
  box-shadow: 0 2px 12px var(--color-shadow);
}
.cta .btn.btn-primary {
  margin-left: 0;
  margin-top: 14px;
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cta .btn.btn-primary:hover {
  background: var(--color-brown);
  color: var(--color-white);
}

/* ============= LEGAL SECTION ============= */
.legal {
  margin-bottom: var(--section-spacing);
  padding: 40px 20px;
  background: var(--color-earth);
  border-radius: var(--radius-main);
  color: var(--color-primary);
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 1080px) {
  .container { padding: 0 10px; }
}
@media (max-width: 900px) {
  .main-nav,
  .footer-nav { gap: 10px; }
  .feature-grid, .team-grid, .card-container { gap: 16px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  .section, .legal, .cta, .about-snippet, .accent-bg {
    padding: 28px 8px;
    margin-bottom: 34px;
  }
  header .container { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .main-nav { display: none; }
  .btn.btn-primary { font-size: 0.97rem; padding: 11px 20px; }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li, .team-grid > div {
    min-width: unset;
    width: 100%;
  }
  .team-grid {
    gap: 12px;
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container, .card-grid {
    gap: 14px;
    flex-direction: column;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    margin-bottom: 32px;
    padding: 28px 0 14px 0;
  }
  .cta, footer .container {
    padding-left: 6px;
    padding-right: 6px;
  }
}
@media (max-width: 530px) {
  header img { height: 37px; }
  .btn.btn-primary { font-size: 0.89rem; }
  .footer-nav { gap: 8px; }
}

/* ============= MOBILE NAV & BURGER ============= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--color-green);
  padding: 7px 8px;
  border-radius: 8px;
  transition: background var(--transition-main);
  z-index: 999;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-earth);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 2px 0 32px rgba(80,85,70,.13);
  z-index: 2000;
  padding: 36px 22px 12px 22px;
  transform: translateX(-120vw);
  transition: transform 0.36s cubic-bezier(.41,.24,.31,1.03);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-brown);
  font-size: 2.04rem;
  position: absolute;
  top: 19px;
  right: 27px;
  z-index: 2010;
  padding: 5px;
  border-radius: 8px;
  transition: background var(--transition-main);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-earth);
}
.mobile-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  padding: 11px 0;
  transition: color var(--transition-main), background var(--transition-main);
  border-radius: var(--radius-small);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-green);
  background: var(--color-earth);
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
  }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* ============= ABOUT SECTION & SPECIAL SNIPPETS ============= */
.about-snippet, .thank-you {
  margin-bottom: var(--section-spacing);
  padding: 40px 20px;
  background: var(--color-earth);
  border-radius: var(--radius-main);
}

/* ============= CONTACT DETAILS ============= */
.contact-details ul {
  padding-left: 0;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--color-primary);
}
.contact-details img {
  width: 28px;
  height: 28px;
}

/* ============= COOKIE CONSENT BANNER ============= */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3000;
  background: var(--color-earth);
  color: var(--color-primary);
  box-shadow: 0 -3px 22px var(--color-shadow);
  padding: 22px 34px 22px 18px;
  font-size: 1rem;
  border-top-left-radius: var(--radius-main);
  border-top-right-radius: var(--radius-main);
  animation: cookiebanner-in 0.45s cubic-bezier(.39,1.29,.42,1.0);
}
@keyframes cookiebanner-in {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 1 1 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 22px;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 23px;
  margin: 2px 0;
  transition: background var(--transition-main), color var(--transition-main);
  box-shadow: 0 2px 12px var(--color-shadow);
}
.cookie-btn.accept {
  background: var(--color-green);
  color: var(--color-white);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--color-brown);
}
.cookie-btn.reject {
  background: #d7cab6;
  color: var(--color-primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #c7b296;
}
.cookie-btn.settings {
  background: transparent;
  border: 1.5px solid var(--color-grey);
  color: var(--color-primary);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  border-color: var(--color-green);
  color: var(--color-green);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 6px 17px 5px;
    gap: 10px;
    font-size: 0.99rem;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(38,50,56,.32);
  justify-content: center;
  align-items: center;
  animation: fadein-panel .3s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadein-panel {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-earth);
  border-radius: 24px;
  box-shadow: 0 8px 44px rgba(38,50,56,0.14);
  max-width: 440px;
  padding: 34px 30px 22px 30px;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalin .42s cubic-bezier(.48,1.25,.3,1.08);
}
@keyframes modalin {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 11px;
  color: var(--color-primary);
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 7px;
}
.cookie-modal-category label {
  flex: 1 1 0;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-toggle {
  appearance: none;
  width: 32px;
  height: 18px;
  border-radius: 12px;
  background: #cce3bd;
  position: relative;
  outline: none;
  cursor: pointer;
  margin-left: 8px;
  transition: background var(--transition-main);
}
.cookie-toggle:checked {
  background: var(--color-green);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform var(--transition-main);
}
.cookie-toggle:checked::before {
  transform: translateX(14px);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .cookie-btn {
  box-shadow: none;
  padding: 8px 18px;
  font-size: 1rem;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 19px;
  background: none;
  border: none;
  color: var(--color-brown);
  font-size: 1.6rem;
  padding: 3px;
  border-radius: 8px;
  transition: background var(--transition-main);
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--color-earth);
}

/* ============= MICRO-INTERACTIONS ============= */
a, .btn, .btn.primary, .btn-link, .cookie-btn {
  transition: color var(--transition-main), background var(--transition-main), box-shadow var(--transition-main), border-color var(--transition-main), outline var(--transition-main);
}
.card, .feature-grid li, .team-grid > div, .testimonial-card, .cookie-modal, .cookie-banner {
  transition: box-shadow var(--transition-main), border-color var(--transition-main), transform var(--transition-main);
}

/* ============= NATURAL DECORATIVE SHAPES ============= */
.section, .accent-bg, .card, .feature-grid li, .testimonial-card, .about-snippet, .cta, .benefits, .thank-you, .contact-details {
  /* subtle texture/pattern overlays can be added if desired as background-image: url('assets/bg-texture.png'); */
  background-size: cover;
  background-repeat: no-repeat;
}

/* ============= SCROLLBAR (optional for desktop) ============= */
::-webkit-scrollbar { width: 11px; background: var(--color-earth); }
::-webkit-scrollbar-thumb {
  background: var(--color-green);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-brown); }

/* ============= UTILS ============= */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.gap-20 { gap: 20px !important; }
.gap-30 { gap: 30px !important; }

/* ============= ACCESSIBILITY ============= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
