/* ---------------------- CSS RESET & BASE --------------------- */
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #23423D;
  background: #f8f5ef;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.03em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #184E77;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C14B00; /* brand accent */
  text-decoration: underline;
}

/* ---------------------- BRAND COLORS & FONTS ------------------- */
:root {
  --color-primary: #184E77;
  --color-accent: #C14B00;
  --color-green: #6a994e;
  --color-leaf: #D9ED92;
  --color-bg: #f8f5ef;
  --color-brown: #ad8452;
  --color-beige: #f9f6ea;
  --color-grey: #E6E5E1;
  --color-text: #23423D;
  --color-error: #ba181b;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ---------------------- CONTAINER ---------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* ---------------------- HEADER ------------------------- */
header {
  background: var(--color-beige);
  box-shadow: 0 2px 16px rgba(30, 40, 25, 0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.brand-logo {
  padding: 10px 0;
  display: flex;
  align-items: center;
}
.brand-logo img {
  height: 48px;
  width: auto;
}
/* MAIN NAV */
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-primary);
  padding: 7px 16px;
  border-radius: 22px;
  transition: color .18s, background .18s;
  font-size: 16px;
}
.main-nav a.cta {
  background: var(--color-green);
  color: #fff;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 9px 24px;
  border-radius: 28px;
  box-shadow: 0 2px 8px rgba(120,150,80,0.07);
  transition: background 0.22s, color 0.17s;
}
.main-nav a.cta:hover {
  background: var(--color-accent);
  color: #fff;
}
.main-nav a:hover {
  background: var(--color-leaf);
  color: var(--color-accent);
}

/* BURGER BUTTON */
.mobile-menu-toggle {
  display: none;
  background: var(--color-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, box-shadow .17s;
  box-shadow: 0 2px 10px rgba(20,80,30,0.05);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  outline: none;
}

/* ---------------------- MOBILE MENU OVERLAY ------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 1111;
  background: var(--color-bg);
  box-shadow: 0 2px 32px rgba(30, 40, 25, 0.22);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.62,.01,.54,1.14), opacity 0.25s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 0 0 24px;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 2.2rem;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--color-text);
  padding: 10px 0;
  border-radius: 0 24px 24px 0;
  width: 100%;
  transition: background .16s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-leaf);
  color: var(--color-accent);
}

@media (max-width: 1060px) {
  .main-nav { gap: 13px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 6px; }
  header .container { padding: 0 10px; }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ---------------------- HERO SECTION ------------------------ */
.hero {
  background: linear-gradient(80deg,#D9ED92 60%,#fff 110%);
  border-bottom-left-radius: 130px 44px;
  border-bottom-right-radius: 40px 32px;
  box-shadow: 0 6px 24px rgba(97,140,88,0.08);
  margin-bottom: 44px;
  padding: 0;
}
.hero .container {
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 700px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-primary);
}
.hero .subheadline {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-green);
}

/* ---------------------- HEADINGS --------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.17;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-green);
}
.section h2 {
  margin-top: 0;
}

/* -------- SECTION GENERAL SPACING & ORGANIC SHAPES --------- */
.section, .about-section, .about-short, .privacy-policy, .gdpr-info,
.cookie-policy, .terms-of-use {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-beige);
  border-radius: 32px 90px 15px 44px;
  box-shadow: 0 2px 26px rgba(140,150,100, .06);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------------------- FEATURES / CARDS ------------------- */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features .content-wrapper { gap: 32px; }
.feature-grid, .feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  list-style: none;
  margin-top: 8px;
}
.feature-grid li, .feature-icons li {
  background: #f5f9f0;
  border-radius: 26px 26px 16px 44px;
  box-shadow: 0 1px 8px rgba(169,132,82,.03);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 18px 24px;
  min-width: 240px;
  flex: 1 0 200px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
  margin-bottom: 20px;
  position: relative;
}
.feature-grid li img, .feature-icons li img {
  width: 44px;
  height: 44px;
  background: #E6E5E1;
  padding: 8px;
  border-radius: 18px 24px 14px 42px;
  box-shadow: 0 1px 6px #00000011;
}
.feature-grid li div, .feature-icons li div {
  font-size: 1rem;
  line-height: 1.4;
}

/* ------------- SERVICES/OVERVIEWS TABLES, LISTS ------------ */
.services-table {
  width: 100%;
  border-collapse: separate;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(97,140,88,0.08);
  margin-bottom: 24px;
}
.services-table th, .services-table td {
  padding: 16px 12px;
  text-align: left;
}
.services-table th {
  background: var(--color-leaf);
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 700;
}
.services-table tr:nth-child(even) td {
  background: #faf9f3;
}
.services-table tbody tr:hover {
  background: #edf6e8;
}

.service-list, .team-bios {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}
.service-list li, .team-bios li {
  position: relative;
  background: #f3f6f0;
  border-radius: 18px 42px 22px 24px;
  padding: 20px 30px;
  color: var(--color-text);
  box-shadow: 0 2px 12px #41644212;
  margin-bottom: 20px;
  font-size: 1rem;
}
.service-list li strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
}
.service-list li span {
  display: inline-block;
  margin-top: 7px;
  margin-left: 6px;
  color: var(--color-green);
  font-weight: 700;
  font-size: 0.98em;
}

/* ---------------------- TESTIMONIALS ---------------------- */
.testimonials {
  background: #EDF6E8;
  border-radius: 30px 80px 20px 38px;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonials .content-wrapper {
  gap: 28px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  background: #fff;
  border-radius: 18px 34px 24px 44px;
  box-shadow: 0 6px 20px rgba(63,121,78,0.11);
  margin-bottom: 20px;
  min-width: 0;
  flex-wrap: wrap;
}
.testimonial-content {
  flex: 1 1 220px;
  font-size: 1.1rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  line-height: 1.45;
  font-weight: 500;
}
.testimonial-meta {
  font-size: 1rem;
  color: #47623a;
  font-style: italic;
  font-family: var(--font-body);
}
.testimonial-meta span {
  color: var(--color-accent);
  font-size: 1.1em;
  letter-spacing: 1.4px;
}

/* ------------------ GENERIC CARD CONTAINERS --------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(140,150,100, .08);
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  padding: 26px 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ---------------------- TEXT SECTIONS & INFO -------------- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section, .notice {
  background: #F9F6EA;
  border-radius: 18px 40px 22px 34px;
  padding: 26px 24px;
  color: var(--color-text);
  box-shadow: 0 2px 8px #41644211;
  font-size: 1.03rem;
  margin-bottom: 20px;
}
.notice {
  background: var(--color-leaf);
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 20px;
}

.section, .about-section, .privacy-policy, .gdpr-info, .cookie-policy, .terms-of-use {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f0f7ed;
  border-radius: 18px 32px 24px 38px;
  padding: 22px 18px;
  min-width: 190px;
}

/* ---------------------- CONTACT PAGE, FOOTER -------------- */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.contact-list a {
  word-break: break-all;
  color: var(--color-green);
}
footer {
  background: var(--color-beige);
  padding: 32px 0 16px 0;
  box-shadow: 0 -2px 16px rgba(30, 40, 25, 0.09);
  border-top: 2px solid #DAD7CD;
  margin-top: 48px;
  margin-bottom: 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 15px;
}
.footer-nav a {
  color: var(--color-primary);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.16s, color 0.12s;
}
.footer-nav a:hover {
  color: var(--color-accent);
  background: var(--color-leaf);
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-brown);
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-branding img {
  height: 32px;
  width: auto;
}

/* ---------------------- BUTTONS & CTA --------------------- */
.cta, button.cta {
  display: inline-block;
  background: var(--color-green);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.13rem;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  box-shadow: 0 2px 12px rgba(80,150,72,.09);
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.04em;
  transition: background 0.21s, color 0.13s, transform 0.12s;
  margin-top: 5px;
  margin-bottom: 5px;
}
.cta:hover, .cta:focus {
  background: var(--color-accent);
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px var(--color-leaf);
}
.cta.secondary {
  background: #fff;
  color: var(--color-green) !important;
  border: 2px solid var(--color-green);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-green);
  color: #fff !important;
}
button, input[type="button"], input[type="submit"], input[type="reset"] {
  font-family: var(--font-display);
  font-size: 1em;
  border-radius: 18px;
  padding: 10px 24px;
  background: var(--color-green);
  color: #fff;
  border: none;
  box-shadow: 0 1px 4px #41644218;
  cursor: pointer;
  transition: background 0.17s, color 0.13s, box-shadow 0.12s;
}
button:hover, button:focus { background: var(--color-accent); color: #fff; }

/* -------------------- TABLES GENERIC --------------------- */
table {
  width: 100%;
  font-size: 1rem;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
th, td {
  padding: 14px 8px;
  text-align: left;
  border-bottom: 1px solid #E6E5E1;
}
th {
  background: #D9ED92;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 650;
}

/* ---------------------- RESPONSIVE DESIGN ------------------ */
@media (max-width: 920px) {
  .features .feature-grid, .features .feature-icons, .footer-nav {
    gap: 16px;
  }
  .about-section, .about-short, .privacy-policy, .gdpr-info,
  .cookie-policy, .terms-of-use, .section {
    padding: 28px 7px;
    border-radius: 20px 40px 10px 22px;
  }
  .content-wrapper { gap: 18px; }
  .footer-branding img { height: 26px; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .main-nav, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero .container {
    min-height: 220px;
    padding-top: 17px; padding-bottom: 17px;
  }
  .hero .content-wrapper {
    gap: 15px;
  }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 640px) {
  .section, .about-section, .about-short, .privacy-policy, .gdpr-info, .cookie-policy, .terms-of-use {
    padding: 16px 2px;
    margin-bottom: 35px;
    border-radius: 12px 24px 8px 14px;
  }
  .feature-grid li, .feature-icons li {
    min-width: 80vw;
    flex: 1 1 80vw;
  }
  .service-list li, .testimonial-card {
    padding: 14px 8px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .footer-branding {
    font-size: 14px;
  }
  .testimonial-content { font-size: 1rem; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero h1 { font-size: 1.3rem; }
  h2 { font-size: 1.3rem; }
}
/* --- Text-image-section responsive alignment --- */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ---------------------- COOKIE CONSENT BANNER ---------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #184E77;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 10px;
  gap: 22px;
  box-shadow: 0 -4px 20px #2d612812;
  z-index: 1400;
  transition: transform .28s cubic-bezier(.62,.01,.54,1.14), opacity 0.21s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner__text {
  max-width: 440px;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 20px;
}
.cookie-btn {
  background: var(--color-green);
  color: #fff;
  border: none;
  border-radius: 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 22px;
  margin-right: 2px;
  cursor: pointer;
  transition: background 0.18s, color 0.13s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.secondary {
  background: #fff;
  color: var(--color-green);
  border: 2px solid var(--color-green);
}
.cookie-btn.secondary:focus, .cookie-btn.secondary:hover {
  background: var(--color-green);
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0;top: 0;bottom: 0;right: 0;
  background: rgba(40,60,30,0.40);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: #fff;
  border-radius: 26px 48px 20px 38px;
  box-shadow: 0 6px 40px rgba(63,121,78,0.26);
  padding: 48px 28px 32px 32px;
  min-width: 320px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  animation: cookiePop 0.27s cubic-bezier(.86,.02,.62,1.1);
}
@keyframes cookiePop {
  from { opacity: 0; transform: translateY(30px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  color: var(--color-text);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-green);
  margin-top: 2px;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: var(--color-green);
}
.cookie-category.essential label:after {
  content: " (immer aktiv)";
  color: var(--color-green);
  font-size: 0.9em;
  font-weight: 500;
  margin-left: 3px;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
  transition: color .17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-accent);
  outline: none;
}

/* ---------------------- ANIMATION & MICROINTERACTIONS ---------------- */
.cta, .cookie-btn {
  transition: background 0.22s, color 0.13s, transform 0.14s, box-shadow 0.18s;
}
.card, .feature-grid li, .feature-icons li, .testimonial-card,
.service-list li, .team-bios li {
  transition: box-shadow 0.22s, transform 0.15s;
}
.card:hover, .feature-grid li:hover, .feature-icons li:hover, .testimonial-card:hover,
.service-list li:hover, .team-bios li:hover {
  box-shadow: 0 6px 24px rgba(97,140,88,0.18);
  transform: translateY(-3px) scale(1.015);
}

/* Remove outlines except for keyboard focus */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* ---------------------- MISCELLANEOUS --------------------- */
ul, ol { padding-left: 1.4em; margin-bottom: 12px; }
li { margin-bottom: 8px; }
::-webkit-scrollbar {
  width: 11px;
  background: #e5ecde;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #b2baa9;
  border-radius: 8px;
}

/* ---------------------- END OF CSS ----------------------- */
