/* ==========================================================
   CSS RESET & BASELINE NORMALISIERUNG
   ========================================================== */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  font-size: 16px;
}
body {
  min-height: 100vh;
  background: #FAF9F7;
  font-family: 'Roboto', Arial, sans-serif;
  color: #322a18;
  line-height: 1.7;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}

/* ==========================================================
   CSS VARIABLEN & FARBPALETTE (nature_organic)
   ========================================================== */
:root {
  --clr-primary: #00447F;
  --clr-secondary: #398B2E;
  --clr-accent: #F6F8FB;
  --clr-earth: #b49273;
  --clr-dark-earth: #7a6244;
  --clr-leaf: #d1e5cb;
  --clr-sand: #eee7dd;
  --clr-bg: #FAF9F7;
  --clr-text: #322a18;
  --clr-card-bg: #fff;
  --clr-success: #357a38;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-xs: 0 1px 8px 0 rgba(80,70,46,0.05);
  --shadow-sm: 0 2px 12px 0 rgba(80,70,46,0.08);
  --shadow-md: 0 4px 24px 0 rgba(80,70,46,0.13);
}

/* ==========================================================
   TYPOGRAPHIE
   ========================================================== */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--clr-text);
  background: var(--clr-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol, dl, blockquote {
  font-size: 1.125rem;
  color: var(--clr-dark-earth);
  margin-bottom: 16px;
}
strong {
  color: var(--clr-primary);
  font-weight: 700;
}
blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--clr-primary);
  margin: 0 0 8px 0;
  padding-left: 18px;
  border-left: 4px solid var(--clr-secondary);
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

a {
  color: var(--clr-secondary);
  font-weight: 500;
}
a:hover, a:focus {
  color: var(--clr-primary);
  text-decoration: underline;
}

/* ==========================================================
   FLARE DYN FLEX CONTAINER MUSTER
   ========================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 18px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--clr-card-bg);
  box-shadow: var(--shadow-xs);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--clr-card-bg);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  min-width: 260px;
}
.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;
  margin-bottom: 20px;
  background: var(--clr-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  color: #183018;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Spezialgrid für Feature-Kacheln */
.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;
  background: var(--clr-leaf);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 20px 24px;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 220px;
  transition: box-shadow 0.16s;
}
.feature_grid li:hover {
  box-shadow: var(--shadow-md);
}
.feature_grid img {
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--clr-sand);
  padding: 7px;
}
.feature_grid h3 {
  color: var(--clr-secondary);
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 700;
}
.feature_grid p {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--clr-dark-earth);
}

/* Success Message */
.success-message {
  display: flex;
  align-items: center;
  background: var(--clr-leaf);
  color: var(--clr-success);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  margin-top: 18px;
  box-shadow: var(--shadow-xs);
  font-weight: 500;
}

/* ==========================================================
   TABLES (Preistabelle)
   ========================================================== */
.pricing_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--clr-sand);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}
.pricing_table th, .pricing_table td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
}
.pricing_table th {
  background: var(--clr-leaf);
  color: var(--clr-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.075rem;
  font-weight: 800;
  border-bottom: 2px solid var(--clr-secondary);
}
.pricing_table td {
  font-size: 1rem;
  background: none;
  color: var(--clr-dark-earth);
}
.pricing_table tr:not(:last-child) td {
  border-bottom: 1px solid #e5dcc5;
}
/* Zebra striping */
.pricing_table tbody tr:nth-child(odd) td {
  background: #f8f5ee;
}
.pricing_table tbody tr:nth-child(even) td {
  background: #f2efe7;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.button {
  display: inline-block;
  padding: 0.7em 2em;
  background: var(--clr-secondary);
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  border: none;
  transition: background 0.22s, color 0.16s, box-shadow 0.16s, transform 0.18s;
  text-align: center;
}
.button.primary {
  background: var(--clr-secondary);
  color: #fff;
}
.button.primary:hover, .button.primary:focus {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px) scale(1.04);
}
.button.secondary {
  background: var(--clr-primary);
  color: #fff;
}
.button.secondary:hover, .button.secondary:focus {
  background: #398B2E;
  color: #fff;
}
.button.text {
  background: none;
  color: var(--clr-secondary);
  box-shadow: none;
  font-weight: 500;
}
.button.text:hover, .button.text:focus {
  text-decoration: underline;
  background: none;
  color: var(--clr-primary);
}
.button:active {
  transform: scale(0.97);
}

/* ==========================================================
   HEADER & NAVIGATION
   ========================================================== */
header {
  background: var(--clr-card-bg);
  box-shadow: 0 1px 8px rgba(80,70,46,0.07);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px 16px 14px;
  gap: 12px;
}
header img {
  height: 36px;
  margin-right: 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  padding: 6px 0;
  color: var(--clr-primary);
  font-weight: 600;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.075rem;
  position: relative;
  transition: color 0.14s;
}
header nav a:hover, header nav a:focus {
  color: var(--clr-secondary);
}
header .button.primary {
  margin-left: 20px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--clr-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 46px;
  height: 46px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  transition: background 0.21s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--clr-primary);
  color: #fff;
}

/* ==========================================================
   MOBILE BURGER MENU
   ========================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(27,30,24,0.85);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.47,1.64,.41,.8);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--clr-earth);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 50px; height: 50px;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 18px 6px 0;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: background 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--clr-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  background: var(--clr-card-bg);
  border-radius: var(--radius-md);
  margin: 10px 30px;
  padding: 40px 18px 28px 26px;
  box-shadow: var(--shadow-sm);
}
.mobile-nav a {
  color: var(--clr-primary);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 9px;
  padding: 14px 0;
  text-align: left;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-leaf);
  color: var(--clr-secondary);
}

/* Show/hide navigation for mobile/desktop */
@media (max-width: 1000px) {
  header nav, header .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1001px) {
  .mobile-menu, .mobile-menu.open {
    display: none !important;
  }
}

/* ==========================================================
   MAIN CONTENT & BACKGROUND DECO
   ========================================================== */
main {
  min-height: 55vh;
  background: var(--clr-bg);
  display: flex;
  flex-direction: column;
  gap: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--clr-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
section:last-child {
  margin-bottom: 0;
}

/* Hero-Bereich */
.text-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 5vw;
  }
  .feature_grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.25rem;}
  section {
    padding: 26px 6px;
    margin-bottom: 40px;
  }
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature_grid {
    flex-direction: column;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .card-container {
    gap: 14px;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 6px;
  }
  .footer-contact span {
    font-size: 0.92rem;
  }
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
  background: var(--clr-earth);
  color: #fff;
  padding: 42px 0 18px 0;
  box-shadow: 0 -2px 12px rgba(80,70,46,0.05);
  margin-top: 36px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
footer img {
  height: 40px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--clr-leaf);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 19px 30px;
  align-items: center;
  font-size: 1rem;
}
.footer-contact img {
  height: 18px;
  vertical-align: middle;
  margin-right: 5px;
}
footer small {
  color: #f9f7f1;
  font-size: 0.96rem;
  margin-top: 5px;
}

@media (max-width: 650px) {
  footer .container {
    gap: 18px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  footer nav {
    gap: 13px;
  }
}

/* ==========================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  width: 100vw;
  background: #fff6e3;
  color: var(--clr-dark-earth);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 16px 20px 16px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -2px 20px 1px rgba(126,110,68,0.10);
  font-size: 1.06rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s, transform 0.35s cubic-bezier(.6,-0.28,.74,0.05);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .button {
  margin-right: 12px;
  min-width: 140px;
  padding: 0.55em 1.5em;
}
.cookie-banner .button:last-child {
  margin-right: 0;
}
.cookie-banner .button.settings {
  background: var(--clr-accent);
  color: var(--clr-secondary);
  font-weight: 700;
}
.cookie-banner .button.settings:hover {
  background: var(--clr-leaf);
  color: var(--clr-primary);
}
@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 22px 4px 12px 4px;
    font-size: 0.99rem;
  }
  .cookie-banner .button {
    min-width: 100px;
    width: 94%;
  }
}

/* MODAL Cookie Settings */
.cookie-modal {
  position: fixed;
  z-index: 1500;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(67,53,33,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: var(--clr-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 98vw;
  width: 370px;
  padding: 38px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.16rem;
  color: var(--clr-primary);
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 7px 0;
  border-bottom: 1px solid #f4efe3;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  cursor: pointer;
  color: var(--clr-dark-earth);
  font-weight: 500;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--clr-secondary);
  width: 18px; height: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--clr-earth);
  color: #fff;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--clr-secondary);
}
@media (max-width: 498px) {
  .cookie-modal-content {
    padding: 18px 8px 8px 8px;
    width: 92vw;
    font-size: 0.99rem;
  }
}

/* ==========================================================
   SPECIAL INTERACTION MICRO-ANIMATIONS
   ========================================================== */
.button, .feature_grid li, .card, .testimonial-card, section {
  transition: box-shadow 0.19s, background 0.21s, transform 0.14s;
}
.button:active, .feature_grid li:active, .card:active {
  transform: scale(0.98);
}

/* ==========================================================
   FAQ STYLING
   ========================================================== */
dt {
  font-weight: 700;
  color: var(--clr-primary);
  margin-top: 18px;
}
dd {
  margin-left: 0;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--clr-dark-earth);
}

/* ==========================================================
   MISC FORMS, ETC.
   ========================================================== */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: var(--clr-accent);
  color: var(--clr-text);
  padding: 13px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid #d5e5d0;
  margin-bottom: 14px;
  font-size: 1rem;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--clr-secondary);
  outline: 2px solid var(--clr-secondary);
}
textarea {
  min-height: 80px;
}

/* Verschiedene Utility-Klassen */
.mt-2 {margin-top: 16px;}
.mb-2 {margin-bottom: 16px;}
.pt-1 {padding-top: 8px;}
.pb-2 {padding-bottom: 16px;}

/* Hide visually but accessible for screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Ensure headings and cards never overlap visually */
.card, .testimonial-card, .feature_grid li {
  margin-bottom: 20px;
}

/* Ensuring minimum spacing for all direct children in flex containers */
.card-container>*:not(:last-child),
.content-grid>*:not(:last-child),
.text-image-section>*:not(:last-child),
.feature_grid>*:not(:last-child) {
  margin-right: 0;
}

/* End of main CSS */
