/* ===== 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,
main, 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 {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F4F4EF;
  color: #263320;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #174EA6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #3c7334;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
ul, ol {
  list-style: none;
}

/* ===== CSS VARIABLES FOR NATURE ORGANIC THEME ===== */
:root {
  --color-primary: #174EA6; /* deep blue for trust */
  --color-secondary: #FFD700; /* sunny accent */
  --color-accent: #F5F5F5; /* soft off-white */
  --color-green: #4A7C59; /* nature green accent */
  --color-earth1: #E2D6BF; /* earth - sand/beige */
  --color-earth2: #B8B89F; /* sage gray */
  --color-earth3: #DEDDBB; /* lighter earthy */
  --color-bg: #F4F4EF;
  --color-border: #D6D6CB;
  --color-card: #FAFAF6;
  --color-shadow: rgba(57, 81, 43, 0.07);
  --color-text-dark: #263320;
  --color-text-semidark: #3c7334;
  --color-neutral-800: #373824;
}

/* ===== TYPOGRAPHY ===== */
body, input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-text-dark);
  font-size: 1rem;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}
p, blockquote, cite {
  font-size: 1.125rem;
}
strong {
  color: var(--color-green);
  font-weight: 700;
}
em {
  font-style: italic;
}

/* ===== CONTAINER & SECTION LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card);
  border-radius: 18px;
  box-shadow: 0 3px 20px var(--color-shadow);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.15s;
  border: 1px solid var(--color-border);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(47, 72, 26, 0.15);
  transform: translateY(-4px) scale(1.012);
}

.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;
  background: var(--color-earth1);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 20px;
  flex-direction: column;
}
.testimonial-card .stars {
  color: var(--color-secondary);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-top: 10px;
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-neutral-800);
  margin-bottom: 12px;
}
.testimonial-card cite {
  font-size: 1rem;
  color: var(--color-green);
  font-style: normal;
}
.testimonial-card.featured {
  border: 2px solid var(--color-secondary);
  background: #fffbe6;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s, transform 0.12s;
  min-width: 156px;
  box-shadow: 0 1px 8px var(--color-shadow);
  text-decoration: none;
}
.btn.primary {
  background: var(--color-green);
  color: #fff;
  border: 2px solid var(--color-green);
}
.btn.primary:hover,
.btn.primary:focus {
  background: #35704A;
  box-shadow: 0 4px 18px rgba(74,124,89,0.22);
  color: #fff;
}
.btn.secondary {
  background: var(--color-secondary);
  color: var(--color-green);
  border: 2px solid var(--color-secondary);
}
.btn.secondary:hover,
.btn.secondary:focus {
  background: #ffe455;
  color: var(--color-green);
  box-shadow: 0 4px 18px rgba(255,215,0,0.16);
}

/* ===== HEADER & MAIN NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 2px 16px var(--color-shadow);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  max-width: 1240px;
  margin: 0 auto;
  gap: 32px;
}
.main-nav > a img {
  height: 44px;
}
.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.025rem;
  font-weight: 500;
  color: var(--color-green);
  border-radius: 10px;
  padding: 7px 16px;
  transition: background 0.15s, color 0.12s;
}
.main-nav li a:hover, .main-nav li a:focus {
  background: var(--color-earth2);
  color: #35704A;
}
.main-nav a.btn.primary {
  margin-left: 24px;
  min-width: unset;
}

/* ===== HERO SECTIONS ===== */
.hero {
  background: linear-gradient(120deg, var(--color-earth3) 0 70%, var(--color-accent) 100%);
  border-radius: 0 0 72px 0/0 0 64px 0;
  padding: 56px 0 34px 0;
  margin-bottom: 60px;
}
.hero .container {
  padding-top: 0;
  padding-bottom: 0;
}
.hero .content-wrapper {
  gap: 16px;
  align-items: flex-start;
}
.hero h1 {
  color: var(--color-green);
  font-size: 2.35rem;
}

/* ===== FEATURES ===== */
.features {
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 0 40px var(--color-shadow);
}
.features .content-wrapper {
  gap: 20px;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.features ul li {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  gap: 15px;
  background: var(--color-earth1);
  border-radius: 18px;
  padding: 20px 26px;
  color: var(--color-green);
  min-width: 220px;
  box-shadow: 0 1px 6px var(--color-shadow);
  margin-bottom: 20px;
}
.features ul li img {
  width: 32px;
  height: 32px;
}

/* ===== SERVICES ===== */
.services {
  background: var(--color-accent);
  border-radius: 24px;
  box-shadow: 0 0 32px rgba(74,124,89,0.08);
}
.services ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}
.service-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.service-categories ul li {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  background: var(--color-earth2);
  color: var(--color-green);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.98rem;
}

/* ===== ABOUT BRIEF ===== */
.aboutbrief {
  background: var(--color-bg);
  border-radius: 30px;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(120deg, var(--color-green) 20%, #adcfa8 100%);
  color: #fff;
  border-radius: 32px 32px 78px 10px/32px 32px 45px 18px;
  box-shadow: 0 8px 36px rgba(74,124,89,0.12);
}
.cta h2,
.cta p {
  color: #fff !important;
}
.cta .btn.primary {
  background: #fff;
  color: var(--color-green);
  border-color: #fff;
  margin-top: 8px;
}
.cta .btn.primary:hover {
  background: var(--color-secondary);
  color: var(--color-green);
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-earth2);
  padding: 44px 0 24px 0;
}
footer .container {
  padding-top: 0;
  padding-bottom: 0;
}
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-nav a {
  color: var(--color-green);
  font-size: 1.05rem;
  transition: text-decoration 0.12s, color 0.16s;
}
.footer-nav a:hover {
  text-decoration: underline;
  color: #35704A;
}
.contact-info {
  font-size: 1rem;
  color: var(--color-neutral-800);
  padding: 10px 0;
}
.footer-branding {
  margin-top: 24px;
  margin-bottom: 12px;
}
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.social-icons img {
  width: 30px;
  height: 30px;
  filter: grayscale(60%) brightness(0.8);
  transition: filter 0.18s;
}
.social-icons img:hover {
  filter: grayscale(0%) brightness(1.07) drop-shadow(0 2px 7px var(--color-shadow));
}

/* ===== LEGAL PAGE ===== */
.legal {
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 0 32px var(--color-shadow);
}
.legal h1 {
  color: var(--color-green);
  font-size: 2rem;
}

/* ===== THANK-YOU ===== */
.thanks {
  background: #fff;
  border-radius: 32px 32px 32px 12px / 32px 32px 32px 10px;
  box-shadow: 0 8px 44px rgba(74,124,89,0.12);
  margin-bottom: 60px;
  padding: 50px 20px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 21px;
  z-index: 41;
  width: 46px;
  height: 46px;
  font-size: 2.1rem;
  color: var(--color-green);
  background: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-earth2);
  transition: background 0.15s, color 0.1s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-earth2);
  color: #35704A;
}
/* Hamburger hidden in desktop, visible on tablet/mobile */

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 49, 29, 0.94);
  z-index: 500;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.67,.03,.29,.99);
  will-change: transform;
  padding-top: 64px;
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
  animation: slideInMenu 0.33s cubic-bezier(.67,.03,.29,.99);
}
@keyframes slideInMenu {
  from { transform: translateX(-100vw); }
  to { transform: translateX(0); }
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.25rem;
  color: var(--color-secondary);
  background: rgba(255,255,255,0.14);
  padding: 6px 12px;
  border-radius: 24px;
  z-index: 600;
  border: 2px solid var(--color-secondary);
  transition: background 0.14s;color 0.1s;
}
.mobile-menu-close:hover {
  background: var(--color-secondary);
  color: var(--color-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  background: var(--color-green);
  border-radius: 18px;
  padding: 15px 36px;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  min-width: 210px;
  margin: 0 5px;
  box-shadow: 0 2px 8px rgba(255,255,255,0.10);
  transition: background 0.16s, color 0.16s, box-shadow 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-green);
  box-shadow: 0 4px 18px rgba(255,215,0,0.14);
}

/* ===== COOKIE CONSENT BANNER ===== */
#cookie-consent,
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff8ef;
  border-top: 2px solid var(--color-secondary);
  box-shadow: 0 -2px 18px 0 rgba(74,124,89,0.17);
  z-index: 990;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px 24px;
  gap: 24px;
  font-size: 1.09rem;
  color: var(--color-green);
  animation: fadeInCC 0.6s;
}
@keyframes fadeInCC {
  0% { opacity: 0; transform: translateY(48px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-consent-banner button, .cookie-consent-banner .btn {
  min-width: 125px;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 1.02rem;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.13s, color 0.10s;
}
.cookie-consent-banner .accept {
  background: var(--color-green);
  color: #fff;
}
.cookie-consent-banner .accept:hover { background: #35704A; }
.cookie-consent-banner .reject {
  background: #fff;
  color: var(--color-green);
  border: 2px solid var(--color-green);
}
.cookie-consent-banner .reject:hover { background: var(--color-green); color: #fff; }
.cookie-consent-banner .settings {
  background: var(--color-secondary);
  color: var(--color-green);
}
.cookie-consent-banner .settings:hover { background: #ffe455; }

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(50, 50, 26, 0.63);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInCC 0.4s;
}
.cookie-modal {
  background: #fff8ef;
  border-radius: 24px;
  width: 94vw;
  max-width: 420px;
  padding: 36px 28px 28px 28px;
  box-shadow: 0 4px 32px var(--color-shadow);
  color: var(--color-green);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popCC 0.35s;
}
@keyframes popCC {
  from { opacity: 0; transform: translateY(32px) scale(0.89); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 7px;
}
.cookie-modal .category {
  background: var(--color-earth1);
  border-radius: 18px;
  padding: 10px 16px 7px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.cookie-modal .category.essential label::after {
  content: ' (always enabled)';
  color: var(--color-green);
  font-style: italic;
  font-size: 0.97em;
  margin-left: 5px;
}
.cookie-modal .category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-green);
  margin-right: 4px;
}
.cookie-modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-modal button, .cookie-modal .btn {
  padding: 8px 18px;
  font-size: 1rem;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ===== UTILITY CLASSES & EFFECTS ===== */
.rounded {
  border-radius: 16px;
}
.shadow {
  box-shadow: 0 8px 24px var(--color-shadow) !important;
}
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.gap8  { gap: 8px  !important; }
.gap16 { gap: 16px !important; }
.gap20 { gap: 20px !important; }
.gap24 { gap: 24px !important; }
.gap32 { gap: 32px !important; }

/* ===== FORMS (for Kontakt) ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--color-card);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 2px 18px var(--color-shadow);
  border: 1px solid var(--color-border);
}
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #f8f8f2;
  color: var(--color-text-dark);
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-green);
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 500;
  color: var(--color-green);
}

/* ===== ANIMATION AIDS ===== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0.01ms !important; }
}

/* ===== RESPONSIVE BREAKPOINTS (MOBILE FIRST) ===== */
@media (max-width: 1040px) {
  .main-nav ul { gap: 18px; }
  .footer-nav { gap: 16px; }
  .container { max-width: 94vw; }
}
@media (max-width: 900px) {
  .main-nav ul { gap: 10px; }
  .content-wrapper { gap: 20px; }
  .card { padding: 22px 12px; }
  .features ul { gap: 14px; }
}
@media (max-width: 768px) {
  .main-nav ul,
  .main-nav .btn.primary { display: none !important; }
  .mobile-menu-toggle { display: flex; }
  .main-nav { justify-content: flex-start; }

  .content-grid, .card-container, .features ul, .service-categories ul {
    flex-direction: column !important;
    gap: 20px;
  }
  .section, .hero {
    padding: 22px 6vw;
    margin-bottom: 40px;
  }
  .container {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .aboutbrief, .services, .features, .legal, .cta, .thanks {
    border-radius: 16px !important;
    padding: 22px 8px !important;
  }
  .footer-nav, .social-icons {
    gap: 10px;
  }
  .testimonial-card {
    gap: 10px;
    padding: 14px;
  }
  h1 { font-size: 1.73rem; }
  h2 { font-size: 1.28rem; }
}
@media (max-width: 520px) {
  body { font-size: 0.98rem; }
  .hero, .thanks, .services, .aboutbrief, .cta, .footer, .features, .legal {
    padding: 12px 2vw !important;
  }
  .btn, .cookie-consent-banner button, .cookie-consent-banner .btn {
    font-size: 1rem;
    padding: 10px 12px;
  }
}

/* ===== NATURE ORGANIC - SHAPES & DECORATIONS ===== */
.section, .features, .services, .aboutbrief, .legal, .thanks, .cta {
  border-radius: 32px 12px 38px 42px/20px 18px 30px 22px;
}
.features ul li, .testimonial-card {
  border-radius: 22px 10px 26px 18px;
}

/* ===== Z-INDEX CONTEXT ===== */
header { z-index: 20; }
.mobile-menu { z-index: 500; }
.cookie-consent-banner, #cookie-consent { z-index: 990; }
.cookie-modal-overlay { z-index: 999; }

/* ===== VISUAL HIERARCHY & SPACING ===== */
main > section:not(.hero) {
  margin-top: 0px;
}
.section > *, .container > *, .content-wrapper > * {
  margin-bottom: 0 !important;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}
.features ul li + li {
  margin-top: 0;
}

/* ===== HOVER/ACTIVE/FOCUS STATES ===== */
a:focus, .btn:focus, button:focus {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}
.card:focus-within {
  box-shadow: 0 0 0 3px var(--color-secondary), 0 8px 24px var(--color-shadow);
}

/* ===== ADA & ACCESSIBILITY CONTRAST FIXES ===== */
.testimonial-card, .testimonial-card.featured {
  color: #263320;
  background: #fffbe8;
}

/* End CSS */
