/* ---- 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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #FFFFFF;
  color: #224E33;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
}
article, aside, details, figcaption, figure,footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: background .2s, box-shadow .2s, color .2s;
}
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border-radius: 0;
}

/* ---- BRAND FONT IMPORT ---- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --color-primary: #224E33;
  --color-secondary: #ECC185;
  --color-accent: #FFFFFF;
  --color-neutral: #F6F6F3;
  --color-footer: #F8F8F5;
  --color-shadow: rgba(34, 78, 51, 0.07);
  --color-border: #E5E8E1;
  --color-content-bg: #FFFFFF;
  --color-text: #224E33;
  --color-subtle-text: #586D5D;
  --color-link-hover: #ECC185;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ---- LAYOUT BASIC ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- HEADER & NAVIGATION ---- */
header {
  background: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 32px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 5px 2px;
  border-radius: 3px;
  transition: color .16s, background .14s;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-primary);
  background: var(--color-secondary);
}

header .cta-btn {
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 28px;
  font-family: var(--font-display);
  font-size: 16px;
  padding: 10px 30px;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--color-shadow);
  border: none;
  margin-left: 24px;
  transition: background .17s, color .17s, box-shadow .2s;
}
header .cta-btn:hover,
header .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 5px 20px var(--color-shadow);
}

header img {
  height: 38px;
  width: auto;
}

/* ---- SECTION SPACING ---- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  section {
    margin-bottom: 40px;
    padding: 24px 8px;
  }
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 14px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 4px;
}
p, ul, ol, li, address, details, summary {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
}
p, ul, ol, address {
  margin-bottom: 12px;
}
ul, ol {
  padding-left: 20px;
}
strong {
  font-weight: 700;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  outline: none;
}
details[open] summary {
  color: var(--color-secondary);
}

/* ---- BUTTONS ---- */
.cta-btn, .cta-btn-group .cta-btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 30px;
  border: none;
  margin: 10px 10px 10px 0;
  transition: background .16s, color .13s, box-shadow .15s;
  box-shadow: 0 2px 8px var(--color-shadow);
  outline: none;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 18px var(--color-shadow);
}
.cta-btn-group {
  display: flex;
  gap: 20px;
}

/* ---- CARDS & FLEX CONTAINERS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-content-bg);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 28px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
  flex: 1 1 260px;
  transition: box-shadow .15s, transform .19s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 7px 32px 0 rgba(34,78,51,.16);
  transform: translateY(-2px) scale(1.01);
}
.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: var(--color-neutral);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
  flex: 1 1 220px;
  color: var(--color-text);
}
.testimonial-card p {
  margin-bottom: 0;
  font-family: var(--font-body);
  color: var(--color-text);
}
.testimonial-card strong {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Service Cards (For Dienstleistungen page) */
.service-card {
  background: var(--color-content-bg);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 20px;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-text);
  border-left: 5px solid var(--color-secondary);
  transition: box-shadow .14s, border-color .18s;
}
.service-card:hover,
.service-card:focus-within {
  box-shadow: 0 7px 32px 0 rgba(34,78,51,.14);
  border-left-color: var(--color-primary);
}

.cta-box {
  background: var(--color-neutral);
  border-radius: 14px;
  box-shadow: 0 1px 7px var(--color-shadow);
  padding: 26px 18px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--color-footer);
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.98rem;
  padding: 0;
  margin: 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 32px 20px 18px 20px;
  align-items: stretch;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  transition: color .14s;
}
footer nav a:hover {
  color: var(--color-primary);
}
.footer-note {
  color: var(--color-subtle-text);
  font-size: 0.92em;
  text-align: right;
}
footer img {
  height: 32px;
}

/* ---- MOBILE MENU ---- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent);
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background .18s;
}
.mobile-menu-toggle:active {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.98);
  box-shadow: -2px 0 28px rgba(34,78,51,0.07);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .33s cubic-bezier(0.5,0,0.5,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: var(--color-primary);
  background: none;
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: 2.3rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: background .18s, color .13s;
  z-index: 2200;
}
.mobile-menu-close:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.mobile-nav {
  margin-top: 78px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100vw;
  align-items: flex-start;
  padding: 0 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  padding: 8px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  transition: color .18s, background .18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-primary);
  background: var(--color-secondary);
}
@media (max-width: 1020px) {
  header .container nav,
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    background: var(--color-primary);
    color: var(--color-accent);
    border: none;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 490px) {
  .mobile-nav {
    padding: 0 15px;
  }
}

/* ---- RESPONSIVE FLEXBOX ---- */
@media (max-width: 900px) {
  .card-container, .content-grid, .footer-main {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.4rem;}
  .service-card, .testimonial-card, .card {
    padding: 18px 10px;
  }
}

/* ---- DETAILS & FAQ SECTION ---- */
details {
  border: 1px solid var(--color-border);
  background: var(--color-neutral);
  border-radius: 9px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px var(--color-shadow);
  padding: 12px 20px 12px 16px;
  transition: box-shadow .13s;
}
details[open] {
  box-shadow: 0 4px 18px rgba(34,78,51,.11);
}
details div {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.6;
}

/* ---- MISCELLANEOUS FLEX SECTIONS ---- */
.cta-btn-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- COLOR ACCENTS ---- */
mark {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: var(--color-neutral);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 20px 18px 26px;
  font-size: 1rem;
  box-shadow: 0 -3px 30px rgba(34,78,51,.11);
  border-top: 1px solid var(--color-border);
  transition: transform .33s cubic-bezier(0.55,0,0.53,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-content {
  flex: 2 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 24px;
  padding: 7px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  margin: 0 5px;
  transition: background .17s, color .13s, box-shadow .16s;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

@media (max-width: 740px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 10px;
  }
  .cookie-banner-content {
    font-size: 0.95rem;
  }
  .cookie-banner-buttons {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
}

/* ---- COOKIE PREFERENCES MODAL ---- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10001;
  background: rgba(34, 78, 51, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
  animation: fade-in 0.33s cubic-bezier(.55,0,.52,1);
}
.cookie-modal.hide {
  display: none !important;
}
.cookie-modal-content {
  background: var(--color-content-bg);
  border-radius: 16px;
  min-width: 290px;
  max-width: 400px;
  padding: 34px 30px 22px 30px;
  box-shadow: 0 7px 38px rgba(34,78,51,.16);
  color: var(--color-text);
  animation: slide-in-up 0.33s cubic-bezier(.35,0,.45,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-header {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.cookie-category-label {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text);
}
.cookie-toggle {
  width: 36px;
  height: 22px;
  background: #EEE;
  border-radius: 13px;
  display: flex;
  align-items: center;
  position: relative;
  transition: background .18s;
  margin-left: 4px;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle-slider {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--color-secondary);
  position: absolute;
  left: 2px; top: 2px;
  transition: left .18s, background .18s;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 16px;
  background: var(--color-primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 9px;
  right: 17px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.25rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .1s;
  z-index: 10;
}
.cookie-modal-close:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}
@media (max-width: 520px) {
  .cookie-modal-content {
    padding: 24px 10px 18px 10px;
    max-width: 97vw;
  }
  .cookie-modal-header {
    font-size: 1.05rem;
  }
}
@keyframes fade-in {
  0% { background: rgba(34, 78, 51, 0.01); }
  100% { background: rgba(34, 78, 51, 0.36); }
}
@keyframes slide-in-up {
  from {
    transform: translateY(35px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

/* ---- ANIMATIONS & INTERACTIONS ---- */
a, button, .cta-btn, .cookie-btn, .service-card, .card, .testimonial-card {
  transition: background .17s, color .13s, box-shadow .15s, transform .13s;
}

/* ---- FOCUS STATES ---- */
a:focus, button:focus, summary:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 5px;
}

/* ---- UTILITY CLASSES ---- */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.gap-20 { gap: 20px !important; }

/* ---- END ---- */
