/* -------------------------
   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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F4F6F8;
  color: #3d3330;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #22446B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #A25214; }
ul, ol { margin-left: 24px; }

/* --------- Nature Organic Brand Palette --------- */
:root {
--primary: #22446B; /* deep blue for trust */
--secondary: #F4F6F8; /* light background, like soft paper */
--accent: #A25214; /* warm earthy brown */
--green: #457a5a; /* organic green accent */
--tan: #e9e4d5; /* warm clay background */
--earth-dark: #6b5b4a; /* muted brown for subtle elements */
--card-bg: #ffffff;
--shadow: rgba(55,47,36,0.08);
--radius-round: 22px;
}

@media (prefers-color-scheme: dark) {
  body { background: #E1DFD6; }
  :root { --card-bg: #F9F7F3; }
}

/* ------- Typography Scale & Defaults -------- */
body {
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #3d3330;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.17;
}
h1 { font-size: 2.75rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1rem; margin-bottom: 7px; }
.subheadline {
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: 18px;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
}

p, li, blockquote, cite {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
blockquote {
  font-style: italic;
  color: var(--earth-dark);
  margin: 0 0 8px 0;
  padding: 0 6px;
}
cite {
  font-size: 0.99rem;
  color: var(--primary);
}

/* -------- Container & Section Layouts --------- */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px; /* controlled by children */
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: var(--radius-round);
  box-shadow: 0 4px 24px var(--shadow);
  transition: box-shadow 0.25s;
}
@media (max-width: 900px) {
  .section { padding: 32px 7vw; }
}
@media (max-width: 600px) {
  .section { padding: 24px 3vw; margin-bottom: 36px; }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
}

/* --------------- Flex Patterns --------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--card-bg);
  border-radius: var(--radius-round);
  box-shadow: 0 2px 16px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.23s, transform 0.23s;
  position: relative;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(33,68,107,0.13);
  transform: translateY(-3px) scale(1.025);
}
.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;
  border-radius: 20px;
  background: #f6f7f4;
  box-shadow: 0 2px 16px var(--shadow);
  margin-bottom: 20px;
  min-width: 280px;
  transition: box-shadow 0.22s;
}
.testimonial-card img {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--tan);
  object-fit: cover;
  margin-right: 10px;
}
.testimonial-card blockquote {
  color: #38452e;
  font-size: 1.1rem;
}
.testimonial-card cite {
  margin-left: 8px;
  color: var(--accent);
  font-size: 1rem;
  font-family: 'Merriweather', Georgia, serif;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .content-grid, .card-container, .features-list {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
  }
}

/* ------- Feature (Rubriken & List Items) ------- */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 14px;
  margin-top: 10px;
  padding-left: 0;
}
.features-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f6f7f4;
  border-radius: 18px;
  padding: 24px 20px 18px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 2px 10px rgba(69,122,90,0.08);
  gap: 11px;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 12px;
}
.features-list li img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 5px #e3e7e0);
}
.features-list li:hover {
  box-shadow: 0 8px 24px rgba(162,82,20,0.10);
  background: #eff5e7;
  transform: translateY(-2px) scale(1.02);
}

/* ----------- Headers & Navigation --------------*/
header {
  background: var(--primary);
  color: #fff;
  padding: 0;
  box-shadow: 0 4px 24px var(--shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  min-height: 80px;
  gap: 0;
}
header img {
  height: 58px;
  width: auto;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  margin-left: 32px;
}
nav.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #fff;
  font-size: 1rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  color: var(--accent);
  border-color: var(--accent);
}
.cta-btn {
  background: var(--green);
  color: #fff !important;
  font-weight: bold;
  font-family: 'Merriweather', serif;
  border-radius: 24px;
  padding: 13px 30px;
  margin-left: 24px;
  font-size: 1.13rem;
  box-shadow: 0 2px 12px rgba(33,68,107,0.07);
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.03em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 5px 18px rgba(162,82,20,0.11);
}

/* Hamburger Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 20px;
  outline: none;
  line-height:1;
  z-index: 21;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--accent);
}
@media (max-width: 1000px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-btn {
    margin-left: 14px;
    font-size: 1rem;
    padding: 10px 22px;
  }
}

/* --------- Mobile Menu Overlay ------------ */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(34,68,107,0.96);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.53,0.08,0.3,0.94);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 26px 0 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 1200;
  transition: color 0.20s;
}
.mobile-menu-close:focus,.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 32px 32px 0 36px;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.36rem;
  color: #fff;
  font-weight: 600;
  padding: 12px 0 12px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.18s, color 0.18s;
  border-radius: 8px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #e9e4d5;
  color: var(--primary);
}
@media (max-width: 600px) {
  .mobile-nav { padding-left: 18px; padding-right: 12px; }
  .mobile-nav a { font-size: 1.12rem; }
}

/* --------- Main Content ----------- */
main {
  margin-top: 0;
  margin-bottom: 70px;
  min-height: 50vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-round);
}

/* ----- List Styles ----- */
ul, ol {
  margin-bottom: 24px;
  font-size: 1rem;
}
ul strong, ol strong { color: var(--accent); font-weight: bold; }


/* -------- Footer --------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 14px 0;
  font-size: 1rem;
  border-top-left-radius:32px;
  border-top-right-radius:32px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  justify-content: space-between;
  max-width: 1040px;
}
footer img {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Roboto',sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  opacity: 0.93;
  transition: color 0.18s;
}
.footer-nav a:hover,.footer-nav a:focus {
  color: var(--accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #e9e4d5;
  font-size: 1rem;
}
.footer-contact img {
  height: 17px;
  width: auto;
  margin-right: 7px;
  margin-bottom: -3px;
  display: inline;
}
.footer-contact a {
  color: #FBF6ED;
  text-decoration: underline;
  font-size: 1rem;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.footer-social a img {
  height: 28px;
  width: 28px;
  background: #f7f2e6;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(162,82,20,0.08);
  transition: box-shadow 0.22s, background 0.16s;
  padding: 4px;
}
.footer-social a:hover img, .footer-social a:focus img {
  background: var(--accent);
  box-shadow: 0 5px 14px rgba(33,68,107,0.10);
}

@media (max-width: 950px) {
  footer .container {
    gap: 18px; padding: 0 7vw;
  }
  .footer-nav { gap: 20px; }
}
@media (max-width: 600px) {
  footer { padding: 26px 0 9px 0; }
  .footer-social a img { height: 26px; width: 26px; }
}
/* --------- Buttons, Links & Micro-interactions --------- */
button, .cta-btn {
  cursor: pointer;
  outline: none;
  border: none;
  font-family: inherit;
}
button:focus, .cta-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* -------- Misc Elements --------- */
::-webkit-input-placeholder { color: #acaba6; }
::-moz-placeholder { color: #acaba6; }
:-ms-input-placeholder { color: #acaba6; }
::placeholder { color: #acaba6; }

hr {
  height: 1px;
  border: none;
  border-top: 1.5px solid #e9e4d5;
  margin: 28px 0;
}

/* ------ Cookie Consent Banner ------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px;
  bottom: 20px;
  background: #f6f7f4;
  color: #2e2c25;
  border-radius: 18px;
  box-shadow: 0 6px 36px rgba(33,68,107,0.14);
  padding: 24px 18px 20px 18px;
  z-index: 3400;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  animation: cookieIn 0.5s cubic-bezier(0.6,0.2,0.2,1.0);
  font-size: 1rem;
}
@keyframes cookieIn {
  from { transform: translateY(60px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 8px;
}
.cookie-banner button {
  border-radius: 14px;
  font-size: 1rem;
  box-shadow: 0 2px 6px var(--shadow);
  padding: 11px 24px;
  margin: 0;
  font-weight: 500;
  border: none;
  background: var(--green);
  color: #fff;
  transition: background 0.17s, color 0.13s;
}
.cookie-banner .cookie-settings {
  background: #fff9ec;
  color: var(--earth-dark);
  box-shadow: 0 2px 10px rgba(69,122,90,0.05);
  border: 1px solid #ded7c3;
}
.cookie-banner button.accept {
  background: var(--green); color: #fff;
}
.cookie-banner button.reject {
  background: #e08e6a; color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--accent); color: #fff;
}
@media (max-width: 500px) {
  .cookie-banner {
      left: 3vw;
      right: 3vw;
      padding: 14px 7px 8px 12px;
      font-size: 0.96rem;
  }
  .cookie-banner-actions button { padding: 9px 11px; font-size:0.97rem; }
}

/* ----- Cookie Modal ------ */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3500;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,68,107,0.33);
  display:flex;
  align-items:center;
  justify-content:center;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0;} to { opacity: 1; } }
.cookie-modal {
  background: #fafbf6;
  border-radius: 28px;
  box-shadow: 0 5px 32px rgba(33,68,107,0.17);
  max-width: 380px;
  width: 95vw;
  padding: 30px 30px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  animation: modalIn 0.3s cubic-bezier(0.6,0.4,0.3,1);
}
@keyframes modalIn {
  from { transform: translateY(50px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-modal-title {
  font-family: 'Merriweather', serif;
  font-size: 1.38rem;
  color: var(--primary);
  margin-bottom: 7px;
}
.cookie-category {
  font-size: 1rem;
  color: var(--earth-dark);
  margin-bottom: 3px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.cookie-category .toggle {
  width: 36px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: #e3e7e0;
  border-radius: 14px;
  margin-left: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-category .toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-category .toggle .slider {
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(69,122,90,0.13);
  position: absolute;
  left: 2px; top: 2px;
  transition: left 0.17s, background 0.22s;
}
.cookie-category .toggle input:checked + .slider {
  left: 14px;
  background: var(--green);
}
.cookie-category.essential .toggle .slider,
.cookie-category.essential .toggle {
  background: #b4ddb2 !important;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal button {
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  border: none;
  font-size: 1rem;
  padding: 10px 22px;
  font-weight: 500;
  margin-right: 3px;
  transition: background 0.17s;
}
.cookie-modal button.cancel {
  background: #ded7c3;
  color: var(--earth-dark);
}
.cookie-modal button:hover,.cookie-modal button:focus {
  background: var(--accent);
  color: #fff;
}
@media (max-width:440px) {
  .cookie-modal { padding: 18px 6px 12px 10px; }
}

/* ---- Forms & Inputs (Kontakt-E-Mail etc.) ---- */
input, select, textarea {
  border-radius: 13px;
  border: 1px solid #cccbb2;
  padding: 9px 13px;
  font-size: 1rem;
  background: #fafbf6;
  box-shadow:0 2px 10px rgba(33,68,107,0.07);
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.4px solid var(--accent);
}

/* --- Responsive Tuning for Mobile --- */
@media (max-width: 1000px) {
  header .container {
    flex-direction: row;
    gap: 0;
    min-height: 62px;
  }
  header img {
    height: 40px;
  }
  footer .container { padding: 0 14px; }
}
@media (max-width:600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
  .section, section { padding: 18px 4vw 18px 4vw; }
}
@media (max-width: 460px) {
  h1 { font-size: 1.12rem; }
  body { font-size: 0.93rem; }
}

/* ---- Decorative Organic Shapes (Optional, subtle effect) ---- */
.section::before {
  content: '';
  position: absolute;
  left: -42px; top: -32px;
  width: 90px; height: 60px;
  border-radius: 70% 40% 55% 80%/70% 80% 40% 50%;
  background: rgba(69,122,90,0.06);
  z-index: 0;
  display: none;
}
.section { position: relative; }
@media (min-width:1080px) {
  .section::before { display: block; }
}

/* --- Accessibility: Focus Styles for Keyboard Navigation --- */
a:focus, button:focus, .cta-btn:focus { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* --- Margin/Gaps Enforcement for Between Cards --- */
.card-container > *, .features-list > *, .content-grid > * {
  margin-bottom: 20px;
}

/* --- Ensure No Overlap: Adequate Spacing --- */
.card, .features-list li, .testimonial-card, .footer-contact, .content-wrapper {
  margin-bottom: 20px;
}
.card:last-child, .features-list li:last-child, .testimonial-card:last-child, .footer-contact:last-child, .content-wrapper:last-child {
  margin-bottom: 0;
}

/* ---- Custom Scrollbar for nature organic look ---- */
::-webkit-scrollbar {
  width: 9px;
  background: #e9e4d5;
}
::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 7px;
}


/* =========== END =========== */
