/* === 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 {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  background: #fcf8f4; /* soft light sand/taupe background for organic feel */
  color: #283D4B;
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background-image: url('../assets/nature-texture-light.png'); /* subtle organic texture optional */
  background-repeat: repeat;
}
*, *::before, *::after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* --- COLOR PALETTE --- */
:root {
  --primary: #283D4B;
  --secondary: #F1C232;
  --accent: #FFFFFF;
  --earth-brown: #7D5C40;
  --earth-green: #557355;
  --earth-leaf: #A2B49F;
  --earth-sand: #F5ECE0;
  --bg-light: #fcf8f4;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #283D4B;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.17rem;
  margin-bottom: 10px;
}
p, ul, ol {
  margin-bottom: 16px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #283D4B;
}
strong {
  color: var(--earth-brown);
}
li {
  margin-bottom: 10px;
}

/* === BODY LAYOUT === */
.container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}
main {
  margin-top: 80px;
}

/* === HEADER === */
header {
  background: var(--bg-light);
  box-shadow: 0 3px 15px 0 rgba(85, 115, 85, 0.04);
  position: relative;
  width: 100%;
  padding: 0 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 14px;
}
header > a img {
  height: 48px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0 6px;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--earth-green);
}
.cta-btn {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  background: var(--earth-green);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 18px 0 rgba(87, 133, 69, 0.11);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.03em;
  margin-left: 6px;
  margin-top: 6px;
  text-decoration: none;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #446443;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px 0 rgba(87, 133, 69, 0.16);
  color: #fff;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 21px;
  z-index: 150;
  background: var(--earth-green);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px 0 rgba(87, 133, 69, 0.09);
  transition: background 0.15s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--earth-sand);
  width: 100vw;
  height: 100vh;
  z-index: 500;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(.69,.01,.45,1.44);
  box-shadow: 2px 0 30px 0 rgba(40,61,75,0.13);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.5rem;
  background: none;
  border: none;
  padding: 20px 20px 8px 20px;
  align-self: flex-end;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--earth-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 32px 32px 0 32px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 6px;
  transition: background 0.17s, color 0.15s;
  margin-right: 10px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--earth-leaf);
  color: var(--earth-green);
}

@media (max-width: 1040px) {
  .main-nav {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
  .cta-btn {
    padding: 10px 20px;
    font-size: 0.96rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    padding: 7px 0 7px 0;
    gap: 8px;
    min-height: 60px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* === SECTIONS & FLEX SPACING === */
section {
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--earth-sand);
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(125,92,64,0.07);
  padding: 28px 28px 24px 28px;
  position: relative;
  flex: 1 1 250px;
  min-width: 240px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover, .card:focus-within {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 22px 0 rgba(125,92,64,0.13);
}
.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;
}
.text-section ul {
  padding-left: 18px;
  list-style-type: disc;
}
.text-section li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Lists with icons --- */
ul li img {
  vertical-align: middle;
  margin-right: 10px;
  height: 20px;
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border-radius: 18px 37px 18px 30px;
  box-shadow: 0 3px 18px 0 rgba(86,126,83,0.09);
  margin-bottom: 24px;
  position: relative;
  border-left: 7px solid var(--earth-green);
  border-top: 2px solid var(--earth-leaf);
}
.testimonial-card p {
  color: #283D4B;
  font-size: 1.12rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--earth-brown);
  font-weight: 600;
  font-size: 1rem;
}

/* Star Row under testimonials */
.content-wrapper > div > img[alt=""] {
  height: 24px!important;
  display: inline-block;
}
.content-wrapper > div:has(img[alt="star"]) {
  margin-top: 6px;
  margin-bottom: 16px;
}

/* === TABLES (Preise) === */
table {
  width: 100%;
  border-spacing: 0;
  background: var(--earth-sand);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(89,110,80,0.08);
  margin-bottom: 32px;
}
thead {
  background: var(--earth-green);
  color: #fff;
}
thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  padding: 14px 10px;
  text-align: left;
  font-weight: 700;
}
tbody td {
  padding: 14px 10px;
  font-size: 1rem;
  color: var(--primary);
  border-bottom: 1px solid var(--earth-leaf);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* === FOOTER === */
footer {
  margin-top: 60px;
  background: var(--earth-green);
  color: #fff;
  padding: 32px 0;
  box-shadow: 0 -3px 12px 0 rgba(87,133,69,0.10);
}
footer .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  opacity: 0.86;
  text-decoration: none;
  transition: opacity 0.16s, text-decoration 0.16s;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  text-decoration: underline;
}
footer address {
  font-style: normal;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.92rem;
  color: #fff;
  opacity: 0.84;
  line-height: 1.5;
}
footer a img {
  height: 36px;
}
footer a:visited {
  color: #fff;
}

/* === ADDRESS === */
address a {
  color: var(--secondary);
  text-decoration: underline dotted;
  transition: color 0.16s;
}
address a:hover, address a:focus {
  color: #fff;
}

/* === BUTTONS & LINKS === */
a, button {
  cursor: pointer;
}
a {
  transition: color 0.17s, text-decoration 0.17s;
}

/* === MICRO-INTERACTIONS === */
button, .cta-btn, input, select, textarea {
  transition: background 0.14s, box-shadow 0.14s, color 0.16s;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--earth-leaf);
  box-shadow: 0 -4px 24px 0 rgba(87,133,69,0.11);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(.65,1.45,.24,1.03);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner__text {
  color: #283D4B;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 8px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
}
.cookie-btn {
  background: #fff;
  color: var(--earth-green);
  border: 2px solid var(--earth-green);
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.16s;
}
.cookie-btn-primary {
  background: var(--earth-green);
  color: #fff;
  border-color: var(--earth-green);
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: #446443;
  border-color: #446443;
  color: #fff;
}
.cookie-btn-secondary {
  background: #fff;
  color: var(--earth-brown);
  border-color: var(--earth-brown);
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: var(--earth-leaf);
  color: var(--primary);
  border-color: var(--primary);
}
.cookie-btn-settings {
  background: transparent;
  color: var(--primary);
  border-color: var(--earth-green);
  border-width: 2px;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--earth-leaf);
  color: var(--primary);
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(55,80,50,0.35);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  transition: background 0.26s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 18px;
  padding: 32px 28px 26px 28px;
  max-width: 420px;
  width: calc(100vw - 44px);
  box-shadow: 0 6px 40px 0 rgba(87,133,69,0.19);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-modal-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--earth-leaf);
  border-radius: 12px;
  padding: 12px 16px;
}
.cookie-modal-category label {
  font-size: 1rem;
  color: var(--primary);
}
/* Toggle switch */
.toggle-switch {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #c8dbba;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.toggle-switch:checked {
  background: var(--earth-green);
}
.toggle-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 4px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.20s;
}
.toggle-switch:checked::before {
  left: 20px;
}

/* Essential always enabled (not clickable) */
.cookie-modal-category .toggle-switch[disabled] {
  background: #b1b1b1;
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 10px;
}

.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--earth-green);
}

/* === RESPONSIVENESS === */
@media (max-width: 1080px) {
  .container {
    max-width: 900px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 700px;
  }
  .card {
    min-width: 190px;
    padding: 21px 13px 15px 19px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .container {
    max-width: 100%;
    padding: 0 10px;
  }
  main {
    margin-top: 62px;
  }
  h1 {
    font-size: 1.68rem;
  }
  h2 {
    font-size: 1.21rem;
  }
  .section {
    margin-bottom: 36px;
    padding: 22px 6px;
  }
  .content-wrapper, .text-section {
    gap: 10px;
  }
  .card-container, .content-grid {
    gap: 13px;
  }
  .testimonial-card {
    margin-bottom: 16px;
    padding: 13px 12px;
  }
  .footer .content-wrapper {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 2px;
  }
  .cookie-modal {
    padding: 18px 5px 13px 10px;
  }
}

/* === ORGANIC SHAPES & NATURAL LOOK === */
section, .card, .testimonial-card, .cookie-modal {
  border-radius: 30px 12px 24px 18px;
}

/* Decorative leaf-like border for hero block (simulate organic feel) */
section:first-of-type .container {
  background: #fffefb;
  border-radius: 48px 14px 50px 25px;
  box-shadow: 0 6px 32px 0 rgba(241,194,50,0.09);
  padding: 20px 0;
  margin-bottom: 30px;
}


/* === FORM STYLING (for any future forms) === */
input, textarea, select {
  border-radius: 12px;
  border: 2px solid var(--earth-leaf);
  font-size: 1rem;
  padding: 11px 10px;
  margin-bottom: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--earth-green);
  border-color: var(--earth-green);
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}
[tabindex="0"]:focus {
  outline: 2.5px solid var(--secondary) !important;
}

/* === TRANSITIONS & ANIMATIONS === */
.card, .testimonial-card, .cookie-modal, .cta-btn, .cookie-banner, .mobile-menu {
  transition: box-shadow 0.18s, background 0.18s, border-radius 0.18s, transform 0.22s;
}

/* === MISC SMALL ELEMENTS === */
hr {
  border: 0;
  height: 1px;
  background: var(--earth-leaf);
  margin: 32px 0 24px 0;
}

/* === Z-INDEX FIXES === */
header { z-index: 50; }
.mobile-menu { z-index: 500; }
.cookie-banner { z-index: 1000; }
.cookie-modal-overlay { z-index: 2000; }

/* === HIDE CONTENT ON MENU OPEN (for accessibility, visually) === */
body.menu-open main, body.menu-open footer, body.menu-open .cookie-banner {
  filter: blur(2.5px) grayscale(16%);
  pointer-events: none;
  user-select: none;
  transition: filter 0.27s;
}

/* === PRINT OPTIMIZATION === */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  body, main, section, .container, .content-wrapper { background: #fff !important; color: #222 !important; box-shadow: none !important; }
}
