/* CSS RESET & BASE NORMALIZATION (MOBILE-FIRST) */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body { min-height: 100vh; background: #F6F5F2; color: #243320; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; border: 0; }
a { color: #0E3750; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #28564a; text-decoration: underline; }
ul, ol { margin-left: 22px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
strong, b { font-weight: 600; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; color: #18402c; margin-bottom: 12px; line-height: 1.2; }
h1 { font-size: 2.6rem; margin-bottom: 20px; letter-spacing: -0.5px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
.subheadline { color: #3e593c; font-size: 1.17rem; margin-bottom: 20px; font-family: 'Roboto', Arial, sans-serif; }
p { margin-bottom: 16px; }
hr { border: none; height: 1px; background: #ced4c1; margin: 32px 0; }

/* BRAND COLOR PALETTE AND ORGANIC COLOR EXTENSIONS */
:root {
  --primary: #0E3750;
  --secondary: #F2B134;
  --accent: #E9EEF2;
  --dark-green: #18402c;
  --mid-green: #6d895d;
  --leaf-green: #81aa6b;
  --forest-brown: #837060;
  --earth-beige: #F6F5F2;
  --card-bg: #fbfaf6;
  --section-bg: #f3efe6;
  --shadow: 0 4px 14px 0 rgba(60,90,70,0.11);
  --radius-lg: 28px;
  --radius: 16px;
  --radius-sm: 8px;
}

/* LAYOUT CONTAINER */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper,
.text-section {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--section-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media(min-width: 900px) {
  .section {
    padding: 64px 44px;
    margin-bottom: 70px;
  }
}

/* TYPOGRAPHY SCALE */
body, html { font-size: 16px; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
}
@media (min-width: 900px) {
  h1 { font-size: 3.4rem; }
  h2 { font-size: 2.4rem; }
}

/* HEADER & NAVIGATION */
header {
  background: var(--earth-beige);
  border-bottom: 1.5px solid #dbe2ce;
  box-shadow: 0 2px 10px rgba(24,64,44,0.06);
  position: relative;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 24px;
}
header img { height: 44px; border-radius: 12px; }

.main-nav {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: background 0.18s, color 0.18s;
  font-weight: 600;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--dark-green);
}

.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  background: linear-gradient(92deg, var(--leaf-green), #b8d7b4 65%, var(--secondary));
  color: var(--primary);
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  box-shadow: 0 2px 10px rgba(160,191,89,0.10);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  display: inline-block;
  margin-top: 6px;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(98deg, #7ba95c, #e1c07e 82%, var(--secondary));
  color: #193522;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: none;
  background: transparent;
  color: var(--primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  transition: background 0.14s;
  z-index: 103;
  position: absolute;
  right: 22px;
  top: 14px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  outline: 2px solid var(--mid-green);
}
@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: var(--earth-beige);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-110vw);
  transition: transform 0.36s cubic-bezier(.75,.01,.31,1.05);
  box-shadow: 0 8px 32px rgba(24,64,44,0.25);
  padding: 28px 24px 18px 24px;
  gap: 24px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--primary);
  margin-bottom: 24px;
  border-radius: 50%;
  padding: 2px 9px;
  cursor: pointer;
  transition: background .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--dark-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 12px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.12rem;
  padding: 12px 2px 12px 0;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  width: 100%;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--leaf-green);
  color: var(--earth-beige);
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}


/* HERO SECTIONS */
.hero {
  background: linear-gradient(120deg, #e8f0e5 77%, #f3efe6 100%);
  padding: 56px 0 38px 0;
  border-radius: 0 0 54px 54px;
  box-shadow: 0 3px 22px rgba(119,138,64,0.10);
  margin-bottom: 44px;
}
.hero .container,
.cta .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  max-width: 800px;
}
.cta {
  background: linear-gradient(103deg, #eaf5ee 64%, #f9f7e9 100%);
  border-radius: 44px;
  box-shadow: var(--shadow);
}
@media(min-width:900px) {
  .hero { padding: 78px 0 60px; }
  .cta { padding: 62px 30px; }
  .hero .content-wrapper { align-items: flex-start; }
}

/* FEATURES: ORGANIC CARDS & LISTS */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--section-bg);
}
.features .content-wrapper {
  gap: 32px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 200px;
  background: var(--card-bg);
  border-radius: var(--radius-lg) 38% 42% 24%/38px 44px 31px 24px;
  box-shadow: 0 3px 18px 0 rgba(80,119,89,0.07);
  padding: 32px 22px 25px 22px;
  transition: box-shadow 0.16s, transform 0.16s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 46px 0 rgba(72,120,84,0.13);
  transform: translateY(-4px) scale(1.03);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 30% 44% 22% 60%;
  background: #F6F5F2;
}
.feature-grid h3 {
  color: var(--mid-green);
  margin-bottom: 3px;
  font-size: 1.22rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.features ul {
  list-style: disc inside;
  margin-bottom: 0;
  margin-left: 10px;
}
.features ol {
  margin-left: 14px;
}
.features ul li, .features ol li {
  margin-bottom: 8px;
}

/* GENERAL CARDS & FLEX GRIDS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 22px;
}
.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; }
  .feature-grid { flex-direction: column; }
  .content-grid { flex-direction: column; }
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* TESTIMONIALS */
.testimonials {
  background: #e8f1e6;
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonials .content-wrapper { align-items: flex-start; gap: 32px; }
.testimonial-slider {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
@media(min-width: 700px) {
  .testimonial-slider { flex-direction: row; gap: 24px; }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-width: 240px;
  background: var(--card-bg);
  border-radius: 32px 24px 40px 20px/48px 38px 38px 20px;
  box-shadow: 0 7px 30px 0 rgba(94,109,74,0.11);
  color: #193522;
  font-size: 1.05rem;
  position: relative;
  margin-bottom: 0;
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 6px;
  color: #224548;
  text-align: center;
  font-size: 1.05rem;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #385a34;
  letter-spacing: 0.04em;
  margin-top: 4px;
  font-size: 0.99rem;
}

/* CTA SECTION */
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 22px;
}
.cta h2 {
  color: var(--primary);
}
@media(min-width: 700px) {
  .cta .content-wrapper { align-items: flex-start; text-align: left; }
}

/* CONTACT SECTION */
.contact .container {
  flex-direction: column;
}
.contact .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}
@media(max-width: 800px) {
  .contact .content-wrapper { flex-direction: column; gap: 10px; }
}
.contact .text-section {
  flex: 1 1 250px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 7px 0 rgba(94,109,74,0.09);
  padding: 24px;
  margin-bottom: 8px;
  gap: 10px;
}
.contact .text-section img {
  vertical-align: middle;
  margin-right: 5px;
  width: 20px;
  height: 20px;
}
@media(max-width: 540px) {
  .contact .text-section { padding: 18px; }
}

/* FOOTER */
footer {
  background: #e6e3d7;
  border-top: 1.5px solid #d3d6ca;
  padding: 32px 0 14px 0;
  margin-top: 44px;
  font-size: 0.93rem;
}
footer .container {
  flex-direction: column;
  gap: 20px;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-menu a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-right: 7px;
  transition: color .18s;
  border-radius: var(--radius-sm);
  padding: 3px 7px;
}
.footer-menu a:hover, .footer-menu a:focus { color: var(--dark-green); background: var(--accent); }
.footer-contact {
  color: #19441E;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 2px;
}
.footer-contact p { margin-bottom: 2px; }


/* MODALS & BANNERS */
/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--card-bg);
  box-shadow: 0 -3px 24px rgba(64,85,46,.12);
  border-radius: 30px 30px 0 0;
  padding: 24px 14px 18px 14px;
  z-index: 2222;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.25s cubic-bezier(.33,.62,.23,1.06), opacity 0.2s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner p { text-align: center; color: #244a1d; }
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 4px;
}
.btn-cookie, .btn-cookie-settings {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius);
  padding: 9px 23px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  background: var(--leaf-green);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2.5px 8px rgba(95,159,62,0.08);
  transition: background 0.20s, color 0.20s;
}
.btn-cookie:hover, .btn-cookie:focus {
  background: #639552;
  color: var(--accent);
}
.btn-cookie-settings {
  background: var(--secondary);
  color: var(--primary);
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: #f5c75e;
  color: var(--dark-green);
}
.btn-cookie-reject {
  background: #f5e3d6;
  color: #97470c;
}
.btn-cookie-reject:hover, .btn-cookie-reject:focus {
  background: #e8b753;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(41, 52, 34, 0.45);
  z-index: 2230;
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.20s ease-in-out;
}
.cookie-modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0;} to { opacity:1;} }
.cookie-modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 66px rgba(32,42,20,0.17);
  max-width: 96vw;
  min-width: 90vw;
  max-width: 370px;
  padding: 36px 22px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #183636;
  animation: slideModal .28s cubic-bezier(.44,.8,.23,1.06);
}
@keyframes slideModal { from { transform: translateY(30px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.cookie-modal h3 {
  color: #1c4625;
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.cookie-modal-toggle {
  width: 36px;
  height: 20px;
  border-radius: 18px;
  background: #95bb7a;
  position: relative;
  transition: background 0.17s;
  cursor: pointer;
  border: none;
}
.cookie-modal-toggle[aria-checked="true"] {
  background: var(--secondary);
}
.cookie-modal-toggle-switch {
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s cubic-bezier(.56,.01,.36,1.21);
}
.cookie-modal-toggle[aria-checked="true"] .cookie-modal-toggle-switch {
  left: 18px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 17px;
  background: none;
  border: none;
  color: #43673e;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #edf7e5;
}

/*.section, .card-container, ... already defined above*/

/* MICROINTERACTIONS AND ORGANIC DETAILS */
section, .section {
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 10px 40px 0 rgba(60,90,70,0.17);
}

/* ORGANIC SHAPES WITH CLIP-PATHS OR BORDER-RADIUS */
.feature-grid > div, .card, .testimonial-card, .cookie-banner, .cookie-modal {
  border-radius: var(--radius-lg) 35% 45% 21% /40px 42px 31px 29px;
}

/* BUTTON FOCUS STYLES */
.btn-primary:focus, .btn-cookie:focus, .btn-cookie-settings:focus, .btn-cookie-reject:focus,
.mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2px solid var(--leaf-green);
  outline-offset: 2px;
}

/* SPACING AND ALIGNMENT PATTERNS (MANDATORY) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }


/* --- RESPONSIVE & FLEX ADAPTATION --- */
@media (max-width: 768px) {
  .feature-grid,
  .card-container,
  .content-grid,
  .footer-menu {
    flex-direction: column;
    gap: 16px;
  }
  .footer-menu { gap: 10px; }
  .card, .feature-grid > div, .testimonial-card { min-width: 0; width: 100%; }
  .hero, .features, .testimonials, .cta, .section { padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 540px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.45rem; }
  .section, .hero, .cta { padding: 30px 6px; }
  .feature-grid, .card-container, .content-grid, .footer-menu { gap: 10px; }
}

/* --- FORMS (for kontakt.html extensions if needed) --- */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #b3c8aa;
  outline: none;
  margin-bottom: 10px;
  transition: border 0.14s;
  width: 100%;
  background: #f8fdf7;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--leaf-green);
}

/* --- GENERIC ORGANIC DECORATIVE SHADOWS & TEXTURES --- */
.section, .hero, .features, .cta, .testimonials {
  background-image: url('../assets/decor/leaves-bg.svg');
  background-size: 320px auto;
  background-repeat: no-repeat;
  background-position: right bottom;
  opacity: 0.98;
}
@media (max-width: 700px) {
  .section, .hero, .features, .cta, .testimonials {
    background-position: left bottom;
    background-size: 180px auto;
  }
}

/* --- PRINT SUPPORT (just in case) --- */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}


/* --- END --- */
