/* =====================================================
   CSS RESET & BASE STYLES
   ===================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #2C3A24;
  background-color: #F5F6F4;
  line-height: 1.7;
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  margin-left: 1.4rem;
  margin-bottom: 1.2rem;
}
a {
  color: #18435A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #31643b;
}

/* =====================================================
   BRAND FONTS
===================================================== */
h1, h2, h3, .btn-primary, .btn-secondary, .main-nav a, .footer-nav a, .mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
}

/* =====================================================
   COLOR PALETTE (Nature Organic)
===================================================== */
:root {
  --primary: #18435A;
  --secondary: #D6E5F3;
  --accent: #D4B019;
  --earth-1: #F1EEE8;
  --earth-2: #D5CFBA;
  --forest-green: #31643b;
  --leaf-green: #8EB388;
  --brown: #A88953;
  --white: #FFFFFF;
  --text-dark: #253022;
  --black: #181C13;
  --shadow: rgba(37,48,34,0.07);
}

/* =====================================================
   LAYOUT CONTAINERS
===================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px;
  background-color: var(--earth-1);
  box-shadow: 0 6px 32px var(--shadow);
  transition: box-shadow 0.3s;
}
@media (max-width: 600px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--forest-green);
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest-green);
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 700;
}
p {
  margin-bottom: 0.8em;
}
strong {
  color: var(--forest-green);
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6rem;
  font-size: 1rem;
  background: var(--earth-2);
  border-radius: 16px;
  overflow: hidden;
}
thead {
  background: var(--forest-green);
  color: var(--white);
}
th, td {
  padding: 16px 12px;
  text-align: left;
}
tr {
  border-bottom: 1px solid var(--earth-2);
}
tr:last-child {
  border-bottom: none;
}

/* =====================================================
   HEADER & NAVIGATION
===================================================== */
header {
  background-color: var(--white);
  box-shadow: 0 3px 12px var(--shadow);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
header img {
  height: 54px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  border-radius: 20px;
  padding: 7px 18px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--forest-green);
}
.btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  background: var(--forest-green);
  color: var(--white);
  border: none;
  border-radius: 24px 36px 20px 32px/38px 18px 34px 20px; /* organic shape */
  padding: 13px 38px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--shadow);
  transition: box-shadow .22s, background .22s, transform .15s;
  outline: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 7px 32px var(--shadow);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  background: var(--white);
  color: var(--forest-green);
  border: 2px solid var(--forest-green);
  border-radius: 24px 36px 20px 32px/38px 18px 34px 20px;
  padding: 12px 34px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow);
  transition: box-shadow .20s, background .14s, color .14s;
  outline: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--forest-green);
  color: var(--white);
}

/* Hide mobile toggle by default, show on mobile */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 22px;
  top: 18px;
  z-index: 2030;
  background: var(--forest-green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px var(--shadow);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--primary);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(114deg, var(--earth-2) 69%, var(--secondary) 100%);
  box-shadow: 0 6px 48px var(--shadow);
  z-index: 2020;
  transform: translateX(-100%);
  transition: transform .33s cubic-bezier(.8, .13, .34, .89);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
  gap: 0;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--forest-green);
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 24px 30px 10px 0;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 30px 0 0 36px;
}
.mobile-nav a {
  font-size: 1.25rem;
  padding: 12px 0 7px 0;
  color: var(--forest-green);
  border-radius: 18px 28px 18px 28px/28px 12px 20px 20px;
  font-weight: 600;
  transition: background 0.14s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--primary);
  background: var(--secondary);
}
@media (max-width: 980px) {
  .main-nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 600px) {
  header .container {
    flex-direction: row;
    gap: 12px;
  }
  header img {
    height: 38px;
  }
}

/* =========================
   MAIN
========================= */
main {
  flex: 1;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (max-width:600px) {
  main {
    gap: 20px;
  }
}

/* =========================
   SECTIONS
========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.card {
  background: var(--white);
  border-radius: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--shadow);
  position: relative;
  padding: 26px 20px 22px 20px;
  transition: box-shadow 0.18s, transform .16s;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 370px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 32px var(--shadow);
  transform: scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--secondary);
  margin-bottom: 20px;
  border-radius: 26px;
  box-shadow: 0 4px 20px var(--shadow);
  color: var(--text-dark);
  font-size: 1.1rem;
  min-width: 0;
  flex: 1 1 270px;
  max-width: 480px;
}
.testimonial-card p {
  color: var(--primary);
  margin-bottom: 4px;
}
.testimonial-card span {
  color: var(--forest-green);
  font-weight: 700;
  font-size: 0.98em;
}
@media (max-width: 600px) {
  .testimonial-card { padding: 14px; font-size: 0.98rem; }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 14px;
  background: var(--earth-1);
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 9px var(--shadow);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 18px;
}
.faq-item {
  background: var(--earth-2);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--text-dark);
  box-shadow: 0 2px 7px var(--shadow);
  font-size: 1rem;
}

/* Dienstleistungen: Services as Card Grid */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 0 0 32px 0;
}
.service-box {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  background: var(--white);
  border-radius: 26px 32px 20px 30px/32px 22px 30px 22px;
  box-shadow: 0 2px 12px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 18px 22px 18px;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform .13s;
  position: relative;
}
.service-box img {
  height: 48px;
  width: auto;
  margin-bottom: 7px;
  filter: drop-shadow(0 2px 2px var(--shadow));
}
.service-box:hover, .service-box:focus-within {
  box-shadow: 0 7px 32px var(--shadow);
  transform: scale(1.02);
  border-color: var(--leaf-green);
}
.service-box h3 {
  margin-bottom: 8px;
}

/* Contact details */
.contact-details {
  font-size: 1.1rem;
  background: var(--leaf-green);
  color: var(--primary);
  padding: 15px 18px;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px var(--shadow);
  word-break: break-word;
}
@media (max-width: 650px) {
  .service-grid { gap: 14px; }
  .service-box { min-width: 94vw; max-width: 98vw; padding: 17px 8px; }
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--earth-2);
  color: var(--forest-green);
  padding: 40px 0 18px 0;
  width: 100%;
  font-size: 1.05rem;
  margin-top: 48px;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  box-shadow: 0 -2px 22px var(--shadow);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-logo img {
  height: 48px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--forest-green);
  font-size: 1.1em;
  padding: 4px 0;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary);
}
.footer-contact {
  min-width: 160px;
  color: var(--primary);
  font-size: 1em;
  line-height: 1.4;
  background: var(--earth-1);
  border-radius: 16px;
  padding: 10px 15px;
  box-shadow: 0 2px 10px var(--shadow);
}
@media (max-width: 800px) {
  footer .container { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 500px) {
  footer { padding: 16px 0; }
  .footer-logo img { height: 34px; }
}

/* =========================
   COOKIE CONSENT BANNER & MODAL
========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--forest-green);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4000;
  box-shadow: 0 -2px 26px var(--shadow);
  padding: 18px 10px 18px 10px;
  transition: transform 0.3s;
  gap: 15px;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-content {
  font-size: 1.1rem;
  max-width: 850px;
  text-align: center;
  margin-bottom: 10px;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 20px 28px 20px 34px/34px 20px 20px 18px;
  border: none;
  background: var(--accent);
  color: var(--primary);
  margin: 0;
  cursor: pointer;
  transition: background 0.13s, color 0.15s;
  font-size: 1.08em;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--white);
  color: var(--forest-green);
}
.cookie-btn.reject {
  background: var(--earth-2);
  color: var(--forest-green);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--leaf-green);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--white);
  color: var(--forest-green);
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%) scale(0.93);
  background: var(--white);
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 12px 40px var(--shadow);
  padding: 30px 28px 18px 28px;
  border-radius: 30px 50px 18px 30px/30px 18px 30px 50px;
  z-index: 4010;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.17s, transform 0.22s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1.0);
}
.cookie-modal h2 { color: var(--forest-green); font-size: 1.4rem; margin-bottom: 8px; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.cookie-modal .switch {
  width: 48px;
  height: 24px;
  background: var(--earth-2);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal .switch input { display:none; }
.cookie-modal .slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  transition: left 0.17s;
}
.cookie-modal .switch input:checked + .slider {
  left: 26px;
  background: var(--forest-green);
}
.cookie-modal .essential-label {
  color: var(--primary);
  font-weight: 700;
  opacity: 0.7;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--forest-green);
  font-size: 1.8rem;
  position: absolute;
  right: 19px;
  top: 18px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}

@media (max-width:480px) {
  .cookie-banner-content { font-size: 0.93rem; }
  .cookie-modal { padding: 18px 7px 12px 12px; }
}

/* =========================
   UTILITIES, SPACING, MICRO-INTERACTIONS
========================= */
::-webkit-input-placeholder { color: #a6b3a8; }
::-moz-placeholder { color: #a6b3a8; }
:-ms-input-placeholder { color: #a6b3a8; }
::placeholder { color: #a6b3a8; }

.section + .section {
  margin-top: 40px;
}

.button, .btn, .btn-primary, .btn-secondary {
  transition: box-shadow 0.22s, background 0.18s, color 0.15s, transform 0.14s;
}

@media (max-width:600px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .section { padding: 16px 6px; }
}

/* Organic divider & accent bar (example usage) */
.organic-bar {
  height: 6px;
  width: 88px;
  background: var(--accent);
  border-radius: 3px 14px 8px 16px;
  opacity: .6;
  margin: 24px 0;
}

/* =========================
   RESPONSIVE FLEX LAYOUTS (NO GRID!)
========================= */
@media (max-width: 1180px) {
  .card-container, .content-grid, .service-grid {
    gap: 18px;
    justify-content: center;
  }
}
@media (max-width: 900px) {
  .card-container, .service-grid, .content-grid {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 500px) {
  .card, .testimonial-card, .service-box {
    min-width: 90vw;
    padding: 12px 8px;
  }
  .feature-item{ padding:7px 3px; margin-bottom:10px; }
}

/* =========================
   FORMS & FIELDS (Kontakt)
========================= */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  background: var(--earth-1);
  color: var(--primary);
  border: 1.5px solid var(--earth-2);
  border-radius: 14px 24px 8px 12px;
  outline: none;
  padding: 14px 16px;
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.15s, box-shadow 0.14s;
  box-shadow: 0 1px 6px var(--shadow);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 3px 12px var(--shadow);
}

/* =========================
   MISCELLANEOUS
========================= */
blockquote {
  border-left: 5px solid var(--forest-green);
  background: var(--earth-1);
  color: var(--primary);
  margin: 16px 0;
  padding: 10px 24px;
  border-radius: 14px 20px 12px 18px;
  font-size: 1.06rem;
}

hr {
  border: 0;
  height: 1px;
  background: var(--earth-2);
  margin: 28px 0 18px 0;
}

/* =========================
   PRINT STYLE (Just for accessibility/consistency)
========================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  main { margin: 0; }
  section { box-shadow: none; background: #fff; }
}

/* =========================
   Z-INDEX & LAYERING
========================= */
header { z-index: 100; }
.mobile-menu { z-index: 2020; }
.mobile-menu-toggle { z-index: 2030; }
.cookie-banner { z-index: 4000; }
.cookie-modal { z-index: 4010; }

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
.section, .card, .testimonial-card, .service-box {
  animation: fadeInUp .8s ease;
}
.mobile-menu, .mobile-menu.active {
  will-change: transform;
}

/* Accessibility Focus
   ========================= */
a:focus, button:focus, input:focus, .btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================
   UTILITY CLASSES
========================= */
.mt-24 { margin-top: 24px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.w-100 { width: 100%; }
