/* =====================================================
   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;
}
/* HTML5 display-role reset */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F9F6F1; /* brand accent + nature_organic offwhite sand */
  color: #233343;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img, picture { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit; border: none;
  background: none; outline: none;
}
button { cursor: pointer; }

/* =====================================================
   BRAND COLORS & NATURAL PALETTE
   ===================================================== */
:root {
  --primary: #233343; /* Deep forest (brand primary) */
  --secondary: #31B7CE; /* Stream blue (brand secondary) */
  --accent: #F9F6F1; /* Sand (brand accent) */
  /* Organic nature palette */
  --nature-green: #82a671;
  --nature-brown: #857667;
  --nature-beige: #eee9db; /* background alt */
  --nature-dark-green: #586752;
  --nature-bg-alt: #F4F1EC;
  --nature-shadow: rgba(35, 51, 67, 0.08);
  --nature-shadow-strong: rgba(35, 51, 67, 0.13);
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4 {
  font-family: 'Oswald', Arial, sans-serif;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; line-height: 1.12; }
h2 { font-size: 2rem; margin-bottom: 14px; line-height: 1.18; }
h3 { font-size: 1.3rem; margin-bottom: 8px; font-weight: 700; }
h4 { font-size: 1.1rem; }
p, li { font-family: 'Roboto', Arial, sans-serif; font-size: 1rem; color: var(--primary); line-height: 1.6; }
strong { color: var(--nature-dark-green); font-weight: 700; }
.text-section ul {
  margin-left: 20px;
  margin-bottom: 20px;
  list-style: disc inside;
  font-size: 16px;
}

/* =====================================================
   LAYOUT CONTAINERS & FLEXBOX UTILITIES
   ===================================================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 19px;
  background: var(--nature-beige);
  box-shadow: 0 3px 16px var(--nature-shadow);
  padding: 32px 24px;
  transition: box-shadow 0.23s, transform 0.23s;
}
.card:hover {
  box-shadow: 0 8px 30px var(--nature-shadow-strong);
  transform: translateY(-4px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--nature-shadow);
  color: #233343;
  font-size: 1.1rem;
  min-width: 0;
  transition: box-shadow 0.18s, transform 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 24px var(--nature-shadow-strong);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-meta {
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--nature-green);
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--nature-shadow);
  padding: 26px 18px;
  min-width: 210px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.20s, background 0.20s;
}
.feature-item:hover {
  box-shadow: 0 7px 20px var(--nature-shadow-strong);
  background: var(--nature-beige);
}
.feature-item img {
  width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0px 2px 2px #e5e5c8);
}

/* For .feature-grid in various sections */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* Buttons / Links / CTA */
.btn-primary {
  padding: 12px 28px;
  font-size: 1.16rem;
  font-family: 'Oswald', Arial, sans-serif;
  background: var(--nature-green);
  color: #fff;
  border: none;
  border-radius: 25px;
  letter-spacing: 0.03em;
  font-weight: 700;
  box-shadow: 0 2px 12px var(--nature-shadow);
  margin-top: 18px;
  transition: background 0.24s, transform 0.16s, box-shadow 0.16s;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--nature-dark-green);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 8px 18px var(--nature-shadow-strong);
}

/* =====================================================
   HEADER/NAVIGATION
   ===================================================== */
header {
  background: var(--nature-bg-alt);
  box-shadow: 0 1px 8px var(--nature-shadow);
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { max-height: 46px; }
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  padding: 7px 10px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  border-radius: 10px;
  letter-spacing: 0.01em;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--nature-green);
  color: #fff;
}
/* Hamburger menu */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: transparent;
  border: none;
  z-index: 1002;
  margin-left: 6px;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  color: var(--nature-green);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--nature-beige);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.75,-0.3,.39,1.5);
  box-shadow: 5px 0 26px var(--nature-shadow-strong);
  padding: 24px 0 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #233343;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 0 30px 12px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 22px 40px 32px 40px;
}
.mobile-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  padding: 12px 0;
  border-radius: 12px;
  transition: background 0.18s, color 0.14s;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--nature-green);
  color: #fff;
}

/* Hide nav, show burger on mobile */
@media (max-width: 1024px) {
  .main-nav, .btn-primary[href='kontakt.html'] {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =====================================================
   HERO & KEY SECTIONS
   ===================================================== */
.hero-section {
  background: linear-gradient(120deg, var(--nature-beige) 80%, var(--nature-green) 110%);
  padding-top: 48px; padding-bottom: 42px;
  margin-bottom: 54px;
  border-radius: 0 0 54px 54px / 0 0 26px 26px;
  box-shadow: 0 4px 32px var(--nature-shadow-strong);
}
.hero-section h1 {
  color: var(--nature-dark-green);
  font-size: 2.6rem;
  margin-bottom: 16px;
}
.hero-section p {
  color: var(--primary);
  font-size: 1.18rem;
}

/* CTA Section */
.cta-section {
  background: var(--nature-bg-alt);
  border-radius: 19px;
  padding: 40px 20px;
  margin-bottom: 60px;
  text-align: center;
  box-shadow: 0 2px 15px var(--nature-shadow);
}
.cta-section h2 {
  font-size: 2rem;
}
.cta-section p {
  font-size: 1.14rem;
  margin: 16px 0 20px 0;
}

/* =====================================================
   TEXT & LEGAL SECTIONS
   ===================================================== */
.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.legal-section {
  background: #fff;
  border-radius: 23px;
  box-shadow: 0 2px 14px var(--nature-shadow);
  padding: 40px 20px;
  margin-bottom: 60px;
}

/* Contact details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--accent);
  border-radius: 16px;
  padding: 18px 18px;
  margin: 18px 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.07rem;
}
.contact-details img { width: 22px; height: 22px; }
.map-embed {
  background: var(--nature-beige);
  border-radius: 13px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 9px;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--nature-dark-green);
  color: #fff;
  padding: 44px 0 30px 0;
  box-shadow: 0 -2px 18px var(--nature-shadow-strong);
  margin-top: 55px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
}
.footer-col {
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-col img {
  height: 42px;
}
.footer-col nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: 'Oswald', Arial, sans-serif;
  padding: 3px 0;
  margin-bottom: 0;
  transition: color 0.16s;
}
.footer-col nav a:hover, .footer-col nav a:focus {
  color: var(--nature-green);
}
.footer-col a {
  color: var(--secondary);
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

/* =====================================================
   RESPONSIVE DESIGN (MOBILE FIRST)
   ===================================================== */
@media (max-width: 950px) {
  .container {
    max-width: 99vw;
    padding: 0 12px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .footer-col {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  html { font-size: 92%; }
  .container { padding: 0 8px; }
  .hero-section, .cta-section, .legal-section, .section {
    padding: 24px 8px;
    margin-bottom: 38px;
    border-radius: 16px;
  }
  .content-wrapper { gap: 13px; }
  .feature-item { padding: 17px 10px; min-width: 160px; }
  .feature-grid {
    gap: 15px;
  }
  .footer-col { min-width: 130px; gap: 7px; }
  .footer-col img { height: 34px; }
  .testimonial-card { font-size: 1rem; }
  .section { margin-bottom: 32px; padding: 18px 2px; }
  .card { padding: 18px 7px; }
  footer .container { gap: 14px; }
}
@media (max-width: 600px) {
  .hero-section h1 { font-size: 1.55rem; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.2rem; }
  .content-grid, .feature-grid {
    flex-direction: column;
    gap: 0 !important;
  }
  .feature-item {
    flex: 1 1 100%;
    margin-bottom: 16px;
  }
  .footer-col { min-width: 0; width: 100%; }
  footer .container { flex-direction: column; gap: 8px; }
}

@media (max-width: 768px) {
  /* All flex layouts switch to column */
  .footer-col, .content-wrapper, .card-container, .text-image-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 13px;
  }
  .testimonial-card, .feature-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .text-image-section { flex-direction: column; gap: 12px; }
}

/* ========== MOBILE MENU OVERRIDE ========== */
@media (max-width:1024px) {
  .mobile-menu {
    display: flex;
  }
}

/* =====================================================
   COOKIE CONSENT BANNER & MODAL
   ===================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--nature-beige);
  color: var(--primary);
  box-shadow: 0 -2px 24px var(--nature-shadow-strong);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px 18px 10px;
  gap: 30px;
  border-radius: 18px 18px 0 0;
  animation: cookieBannerFadeIn 0.45s ease;
}
@keyframes cookieBannerFadeIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 210px;
  font-size: 1rem;
  margin-right: 15px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  border-radius: 20px;
  padding: 7px 17px;
  font-size: 0.98rem;
  font-family: 'Oswald', Arial, sans-serif;
  background: var(--nature-green);
  color: #fff;
  border: none;
  margin-right: 5px;
  margin-bottom: 3px;
  transition: background 0.18s, transform 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--nature-dark-green);
  transform: scale(1.04);
}
.cookie-btn.reject {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: #fff;
}

/* Cookie modal popup */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1602;
  background: rgba(35,51,67,0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1; pointer-events: auto;
}
.cookie-modal__box {
  background: #fff;
  color: var(--primary);
  border-radius: 22px;
  box-shadow: 0 6px 38px var(--nature-shadow-strong);
  padding: 34px 22px 24px 22px;
  min-width: 320px;
  max-width: 98vw;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  color: var(--primary);
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 1.05rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--nature-green);
  width: 18px; height: 18px;
}
.cookie-category .always-on {
  color: var(--nature-dark-green);
  font-size: 0.98rem;
  margin-left: 8px;
  font-weight: 600;
}

/* Modal backdrop touch on mobile */
@media (max-width: 700px) {
  .cookie-modal__box {
    padding: 16px 5vw 20px 5vw;
    min-width: 0; max-width: 99vw;
  }
}

/* =====================================================
   MICRO-INTERACTIONS / ANIMATION
   ===================================================== */
.btn-primary, .cookie-btn {
  transition: background 0.22s, transform 0.13s, box-shadow 0.19s;
}
.feature-item, .card, .testimonial-card {
  transition: box-shadow 0.20s, background 0.20s, transform 0.19s;
}

/* Icon color filter for earthy feel */
.feature-item img, .contact-details img, .map-embed img, .footer-col img {
  filter: hue-rotate(-9deg) brightness(0.92) saturate(1.07);
}

/* Organic shape overrides */
.hero-section, .cta-section, .card, .testimonial-card, .feature-item, .cookie-banner, .cookie-modal__box, .legal-section {
  border-radius: 23px 38px 19px 25px/19px 27px 42px 17px;
}

/* Breathe: whitespace in all wrappers */
.content-wrapper, .text-section, .legal-section, .footer-col {
  margin-bottom: 8px;
}

/* ===============================
   VISUAL HIERARCHY/UTILITIES
   =============================== */
.section:not(:last-child) { margin-bottom: 60px; }
.card + .card, .feature-item + .feature-item, .testimonial-card + .testimonial-card {
  margin-left: 0;
  margin-top: 20px !important;
}

/* Prevent overlaps for all content cards and wrap items */
.card-container, .feature-grid, .content-grid, .footer .container {
  gap: 24px !important;
}

/* Focus state */
a:focus, button:focus, .btn-primary:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Hide visually but accessible for modal overlay close */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
