/* ======================= 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, menu, 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, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  scroll-behavior: smooth;
  background: #FFFBEA;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #24572C;
  background: #FBFDF9;
  min-height: 100vh;
  position: relative;
}
article, aside, footer, header, nav, main, section {
  display: block;
}
ul, ol{
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  background: none;
  border: none;
}

/* ======================= Brand Variables ======================= */
:root{
  --color-primary: #24572C;
  --color-secondary: #D8EDD0;
  --color-accent: #F6A200;
  --color-dark: #386D3F;
  --color-light: #FFFFFF;
  --color-background: #FBFDF9;
  --color-grey1: #7C9268;
  --color-grey2: #D9D9D6;
  --color-warning: #F6B800;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-md: 0 4px 16px rgba(36, 87, 44, 0.06), 0 1.5px 4px 0 rgba(168,194,156,0.10);
  --shadow-card: 0 2px 8px rgba(36,87,44,0.10),0 0.5px 2px 0 rgba(168,194,156,0.10);
}

/* ======================= Typography ======================= */
h1, h2, h3, h4, h5 {
  font-family: 'Rubik', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
h4, h5 {
  font-size: 1.1rem;
}
p, li, span, ul {
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  color: var(--color-primary);
  font-weight: bold;
}
small {
  font-size: 0.90em;
  opacity: 0.7;
}

/* ======================= Container & Section Layout ======================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px){
  .section {
    margin-bottom: 36px;
    padding: 24px 10px;
  }
  .container{
    padding: 0 8px;
  }
}

/* ======================= Header & Navigation ======================= */
header {
  width: 100%;
  background: var(--color-light);
  box-shadow: 0 1px 8px rgba(56,109,63,0.08);
  z-index: 60;
  position: sticky;
  top: 0;
}

header .container{
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
header a img {
  max-height: 38px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0.88;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a:focus{
  background: var(--color-secondary);
  color: var(--color-dark);
}
.cta-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--color-accent);
  border-radius: 48px;
  color: #FFF;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  margin-left: 8px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FDBA20;
  color: #24572C;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(246,168,0,0.12);
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1020px) {
  nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  nav {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  header .container{
    flex-direction: row;
    padding: 12px 10px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-primary);
    margin-left: 16px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
    z-index: 101;
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: var(--color-secondary);
  }
}

/* ======================= Mobile Menu Overlay ======================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(216,237,208, 0.97);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
  padding-left: 0;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: all 0.36s cubic-bezier(.87,0,.13,1);
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  z-index: 2010;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 60px;
  margin-left: 36px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--color-primary);
  background: none;
  padding: 10px 4px 10px 4px;
  width: 190px;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #FFF;
}

/* ======================= Section / Card Layout Patterns ======================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 28px 20px 22px 20px;
  position: relative;
  min-width: 220px;
  transition: box-shadow 0.19s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px rgba(56,109,63,0.15);
  transform: translateY(-3px) scale(1.03);
  z-index: 10;
}
.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;
}
@media (max-width: 768px){
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #FAFDF5;
  box-shadow: 0 2px 10px rgba(36,87,44,0.09);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-accent);
  transition: box-shadow 0.18s;
  min-width: 235px;
}
.testimonial-card p {
  color: #24572C;
  font-size: 1.16rem;
  line-height: 1.55;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #386D3F;
  font-weight: 500;
  margin-left: 0;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(246,168,0,0.12);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 0;
}

/* ========== Timeline & Article Card Patterns (About, Ratgeber) ========= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 4px solid var(--color-secondary);
  padding-left: 20px;
  margin: 18px 0;
}
.timeline h3 {
  font-size: 1.16rem;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.article-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0 0 0;
}
.article-preview-grid article {
  background: #F5F8F2;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  min-width: 220px;
  max-width: 310px;
  flex: 1 1 0;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s, transform 0.14s;
}
.article-preview-grid article:hover,
.article-preview-grid article:focus {
  box-shadow: 0 6px 24px rgba(36,87,44,0.10);
  transform: translateY(-2px) scale(1.03);
}
.article-preview-grid h3{
  font-size: 1.09rem;
  color: var(--color-primary);
  margin-bottom: 7px;
}
.article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.article-categories span {
  font-size: 0.96rem;
  color: #fff;
  background: var(--color-accent);
  padding: 6px 16px;
  border-radius: 32px;
  letter-spacing: 0.03em;
}

/* ========== List Icon Styling ========== */
ul li, .feature-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 11px;
}
ul li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 #FFF) drop-shadow(0 0.5px 0 #d8edd0);
}
ul li strong {
  margin-right: 4px;
}

/* ========== White Card for Privacy/Details Page ========== */
.section > .container > .content-wrapper > h1,
.section > .container > .content-wrapper > h2 {
  margin-bottom: 16px;
}

/* ======================= Buttons & Interaction ======================= */
button,
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #FFF;
  border-radius: 48px;
  padding: 10px 28px;
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.16s, color 0.18s, box-shadow 0.15s, transform 0.15s;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 6px 22px rgba(246,168,0,0.13);
  transform: translateY(-2px) scale(1.045);
}

/* ======================= Footer ======================= */
footer {
  background: #24572C;
  color: #fff;
  width: 100%;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 50px;
}
footer .container {
  flex-direction: column;
  gap: 0;
  padding: 32px 20px 20px 20px;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
footer nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
footer nav a {
  color: #C4E6B8;
  font-size: 1rem;
  opacity: 0.86;
  padding: 2px 0;
}
footer nav a:hover, footer nav a:focus {
  color: #FFF;
  text-decoration: underline;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  color: #F5FFEA;
}
.footer-info img {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: middle;
}
.privacy-info {
  margin-top: 14px;
  color: #BADC99;
  font-size: 0.89rem;
}
footer a img {
  max-height: 34px;
  margin-bottom: 14px;
}
@media (max-width:900px){
  footer .content-wrapper{
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  footer .container{
    padding: 24px 10px 14px 10px;
  }
}

/* ======================= Cookie Consent Banner ======================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3050;
  background: #F6FCEB;
  box-shadow: 0 -2px 18px rgba(36,87,44,0.10);
  padding: 22px 10px 16px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
  justify-content: center;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  opacity: 1;
  transition: opacity 0.28s, transform 0.33s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(95px);
}
.cookie-banner__text {
  color: #24572C;
  font-size: 1rem;
  max-width: 440px;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--color-primary);
  color: #fff;
  border-radius: 32px;
  font-size: 0.96rem;
  font-family: 'Rubik', sans-serif;
  padding: 9px 22px;
  font-weight: 600;
  transition: background 0.16s, color 0.17s;
  border: none;
  box-shadow: var(--shadow-md);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: #FFF;
  color: var(--color-dark);
  border: 1.5px solid var(--color-secondary);
  box-shadow: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: var(--color-light);
  border: 1.5px solid var(--color-accent);
}
@media (max-width:700px){
  .cookie-banner{
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 6px 10px 6px;
  }
  .cookie-banner__actions{
    gap: 10px;
  }
}

/* ============ Cookie Preferences Modal ============ */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34, 56, 44, 0.37);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.30s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFFBEF;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 50px rgba(36,87,44,0.12);
  width: 97vw;
  max-width: 400px;
  padding: 30px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: emergeModal .34s cubic-bezier(.79,-0.04,.24,1.07);
}
@keyframes emergeModal{
  0%{opacity: 0; transform: scale(0.92) translateY(40px);}
  95%{opacity: 1;}
  100%{transform: scale(1) translateY(0);}
}
.cookie-modal__close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  margin-top: -10px;
  margin-right: -8px;
  cursor: pointer;
  transition: background 0.13s;
  padding: 2px 8px;
  border-radius: 50%;
}
.cookie-modal__close:hover, .cookie-modal__close:focus{
  background: var(--color-secondary);
}
.cookie-modal__title{
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 9px;
  font-family: 'Rubik',sans-serif;
  color: #24572C;
}
.cookie-modal__desc{
  font-size: 0.98rem;
  color: #386D3F;
  margin-bottom: 22px;
}
.cookie-category{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  accent-color: var(--color-accent);
  outline-offset: 2px;
}
.cookie-category input[type="checkbox"]:disabled{
  accent-color: #B8CBB5;
  opacity: 0.7;
}
.cookie-category-label {
  font-size: 1rem;
  font-family: 'Rubik',sans-serif;
  color: #386D3F;
}
.cookie-category-label small {
  display: block;
  font-size: 0.85rem;
  color: #7C9268;
  margin-top: 1px;
}
.cookie-modal__actions{
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
}

/* =================== General Responsive & Layout Adjustments =================== */
@media (max-width: 980px){
  .content-grid, .card-container, .article-preview-grid {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
}
@media (max-width:580px){
  h1 { font-size: 2rem;}
  h2 { font-size: 1.3rem;}
  .section {
    padding: 14px 2px;
  }
}

/* ====================== Other Utility/Overrides ====================== */
::-webkit-scrollbar { width:10px; background: #ecefe3; }
::-webkit-scrollbar-thumb { background: #CCE5C4; border-radius:10px; }
hidden, [hidden] { display: none !important; }

/* ================= Organic/Nature Accents ================= */
.section, .card, .testimonial-card, .article-preview-grid article {
  border-radius: 32px 44px 26px 54px/36px 22px 48px 38px; /* organic shapes */
}
.card, .testimonial-card {
  border: 2.2px solid #F1F8EE;
}

/* Subtle paper/fiber texture via SVG BG */
.section, .testimonial-card, .article-preview-grid article, .card {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="150"><ellipse opacity="0.08" fill="%23B8CBB5" cx="130" cy="30" rx="80" ry="25"/><ellipse opacity="0.09" fill="%23F6A200" cx="60" cy="120" rx="40" ry="15"/></svg>');
  background-repeat: no-repeat;
  background-position: right bottom;
}

/* ======================= Micro-interactions ======================= */
a, .cta-btn, button, .card, .testimonial-card, .article-preview-grid article {
  transition: box-shadow 0.19s, background 0.14s, color 0.15s, transform 0.15s, border 0.14s;
}
a:active, .cta-btn:active, button:active{
  opacity: 0.88;
  transform: scale(0.98);
}

/* ======================= Focus States for Accessibility ======================= */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  z-index: 2;
}

/* ======================= Hide Print Banner/Modal ======================= */
@media print{
  .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
}
