/* --------------------------
   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 {
  height: 100%;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #F8F9FA 0%, #e9f7ef 70%, #fffbe6 100%);
  color: #19381e;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

img, picture {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

a {
  color: #145A32;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}

a:focus, a:hover {
  color: #F8C471;
  outline: none;
}

strong {
  font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #145A32;
  font-weight: 700;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

p {
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Typography Scale on Large Screens */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.5rem; }
  p, li { font-size: 1.08rem; }
}

/* --------------------------
   Containers, Spacing
--------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0px !important;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
}

.text-section {
  margin-bottom: 20px;
}

/* Card Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(20,90,50,0.06);
  padding: 28px 24px;
  flex: 1 1 270px;
  min-width: 250px;
}
.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: #F8F9FA;
  border-left: 5px solid #F8C471;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20,90,50,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px rgba(20,90,50,0.13);
  transform: translateY(-3px) scale(1.02);
}

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

/* --------------------------
   Header, Navbar, Logo
--------------------------- */
header {
  width: 100%;
  background: linear-gradient(120deg, #F8F9FA 80%, #F8C471 100%);
  box-shadow: 0px 2px 10px 0px rgba(20,90,50,0.045);
  z-index: 30;
  position: sticky;
  top: 0;
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 28px;
  transition: filter 0.24s;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav ul li {
  margin: 0;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #145A32;
  letter-spacing: 0.03em;
  font-size: 1.07rem;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #F8C471;
  color: #145A32;
}

.cta.primary, .cta.secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 32px;
  font-size: 1.07rem;
  padding: 13px 30px;
  margin-left: 18px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.24s, transform 0.17s;
  box-shadow: 0 2px 10px 0px rgba(20,90,50,0.07);
  text-align: center;
  line-height: 1.2;
}
.cta.primary {
  background: linear-gradient(90deg, #145A32 80%, #F8C471 120%);
  color: #F8F9FA;
  border: 2px solid #145A32;
}
.cta.primary:hover, .cta.primary:focus {
  background: #19381e;
  color: #fffbe6;
  box-shadow: 0 6px 34px -12px #145A32;
  transform: translateY(-2px) scale(1.04);
}
.cta.secondary {
  background: #fffbe6;
  color: #145A32;
  border: 2px solid #F8C471;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #F8C471;
  color: #145A32;
  box-shadow: 0 4px 28px -14px #F8C471;
  transform: translateY(-1px) scale(1.02);
}

/* Hamburger Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 80;
  font-size: 2rem;
  background: none;
  border: none;
  color: #145A32;
  cursor: pointer;
  margin-left: auto;
  margin-right: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F8C471;
  color: #19381e;
}

/* Mobile Navigation Overlay */
.mobile-menu {
  position: fixed;
  z-index: 120;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(110deg, #F8F9FA 70%, #F8C471 100%);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.82,.11,.23,.99);
  box-shadow: -6px 0 40px rgba(20,90,50,0.07);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 42px 30px 30px 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 23px;
  right: 30px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #145A32;
  cursor: pointer;
  z-index: 121;
  outline: none;
  padding: 4px 10px;
  border-radius: 10px;
  transition: background 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e7efe8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 38px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #145A32;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.21rem;
  font-weight: 600;
  padding: 10px 0px 10px 2px;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F8C471;
  color: #fff;
}

@media (max-width: 1110px) {
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
}

@media (max-width: 900px) {
  nav ul {
    gap: 14px;
  }
  nav {
    gap: 16px;
  }
  .cta.primary, .cta.secondary {
    margin-left: 0;
    padding: 12px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  nav ul,
  nav .cta.primary,
  nav .cta.secondary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-grid, .card-container, .features {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .section {
    padding: 30px 7px;
    margin-bottom: 42px;
  }
  .text-image-section, .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  /* Footer links stacked */
  footer nav {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* Hide mobile-menu when not open */
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --------------------------
   Main & Section Styling
--------------------------- */
main {
  min-height: 65vh;
  padding-top: 10px;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
}
section:first-of-type {
  margin-top: 0;
  padding-top: 30px;
}

/* Alternating section backgrounds for clarity */
section:nth-child(even) {
  background: #F8F9FA;
}

/* FAQ / Service List styling */
ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
ul li {
  margin-bottom: 10px;
  list-style: disc inside;
}
ul li strong {
  color: #145A32;
}

/* --------------------------
   Blog / Tag Elements
--------------------------- */
.tag {
  display: inline-block;
  background: #F8C471;
  color: #145A32;
  border-radius: 7px;
  font-size: 0.95em;
  font-weight: 700;
  padding: 4px 12px;
  margin-left: 8px;
  vertical-align: middle;
}

/* --------------------------
   Footer Styling
--------------------------- */
footer {
  background: linear-gradient(120deg, #F8F9FA 80%, #e9f7ef 100%);
  padding: 38px 0 22px 0;
  border-top: 1px solid #e1ede7;
  margin-top: 56px;
}
footer .container {
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 10px;
}
footer nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
footer nav a {
  font-size: 1rem;
  color: #145A32;
  letter-spacing: 0.01em;
}
footer nav a:hover, footer nav a:focus {
  text-decoration: underline;
  color: #F8C471;
}
footer .text-section {
  font-size: 0.99rem;
  color: #777;
  margin-left: 12px;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  footer .text-section {
    margin-left: 0;
  }
}
/* --------------------------
   Cookie Consent Banner
--------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #145A32;
  color: #fff;
  font-size: 1.09rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 26px 18px 26px;
  box-shadow: 0 -1px 22px -7px #19381e;
  z-index: 9999;
  animation: slideUpCookie .55s cubic-bezier(0.71,0.04,0.14,1.01);
}
@keyframes slideUpCookie {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  flex: 1 1 66%;
  margin-right: 20px;
}
.cookie-banner .cookie-btn {
  margin-right: 12px;
  margin-top: 4px;
}
.cookie-banner .cookie-btn:last-child {
  margin-right: 0;
}
.cookie-btn {
  display: inline-block;
  padding: 9px 23px;
  margin-left: 2px;
  font-size: 1.04em;
  border-radius: 26px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 1px 10px 0px rgba(20,90,50,0.06);
}
.cookie-btn.accept {
  background: #F8C471;
  color: #145A32;
  border: 2px solid #F8C471;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #fff;
  color: #145A32;
  border: 2px solid #F8C471;
}
.cookie-btn.reject {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F8C471;
  color: #145A32;
  border: 2px solid #F8C471;
}
.cookie-btn.settings {
  background: #fffbe6;
  color: #145A32;
  border: 2px solid #F8C471;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F8C471;
  color: #145A32;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.99rem;
    padding: 20px 10px 15px 13px;
  }
  .cookie-banner .cookie-btn {
    margin-bottom: 7px;
  }
}
/* Cookie Modal Popup */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(30,80,44,0.85);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal .36s cubic-bezier(.82,.11,.23,.99);
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 17px;
  padding: 36px 30px 28px 30px;
  max-width: 360px;
  width: 97%;
  box-shadow: 0 4px 35px -18px #19381e;
  color: #145A32;
  position: relative;
  overflow: hidden;
  animation: slideDownCookieModal .42s cubic-bezier(.55,.12,.12,1.07);
}
@keyframes slideDownCookieModal {
  0% { transform: translateY(-42px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2, .cookie-modal h3 {
  color: #145A32;
  font-size: 1.21rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.cookie-modal ul {
  margin: 12px 0 16px 0;
  padding-left: 16px;
}
.cookie-modal li {
  margin-bottom: 8px;
  font-size: 1em;
}
.cookie-category {
  font-weight: 600;
  color: #145A32;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 22px;
  background: #e8eae9;
  border: 2px solid #F8C471;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .16s, border .16s;
}
.cookie-toggle:checked {
  background: #F8C471;
  border-color: #145A32;
}
.cookie-toggle::after {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .26s cubic-bezier(0.88,0.01,0.44,0.97);
  box-shadow: 0 1px 6px rgba(0,0,0,0.11);
}
.cookie-toggle:checked::after {
  transform: translateX(16px);
}
.cookie-modal-close {
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 1.4rem;
  color: #145A32;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  padding: 3px 8px;
  transition: background 0.15s;
}
.cookie-modal-close:hover {
  background: #e7efe8;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 15px;
}
@media (max-width: 465px){
  .cookie-modal {
    padding: 16px 6px 18px 6px;
    font-size: 0.97em;
  }
}

/* --------------------------
   Utilities: Shadows, Radius
--------------------------- */
.shadow-light {
  box-shadow: 0 2px 15px 0px rgba(20,90,50,0.07);
}
.rounded-xl {
  border-radius: 20px;
}

/* --------------------------
   Forms (for kontakt.html)
--------------------------- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid #ddebe4;
  margin-bottom: 16px;
  background: #F8F9FA;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #F8C471;
  outline: none;
}
label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  background: #145A32;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: #F8C471;
  color: #145A32;
}

/* ------------------------------
   Responsive Patterns
------------------------------- */
@media (max-width: 560px){
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  h3 {
    font-size: 1rem;
  }
  .container {
    padding: 0 3vw;
  }
}

/* Ensure no flex content overlaps, force wrapping */
.content-grid, .card-container, .features {
  flex-wrap: wrap !important;
  gap: 20px !important;
}

/* --------------------------
   Micro-Interactions
---------------------------- */
.card, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.15s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 28px 0px rgba(20,90,50,0.13);
  transform: translateY(-3px) scale(1.02);
}

.cta.primary:active, .cta.secondary:active {
  transform: scale(0.98);
}

input[type=checkbox], input[type=radio] {
  accent-color: #145A32;
}

/* --------------------------
   Additional Utilities
---------------------------- */
.text-center {text-align: center;}
.d-flex {display: flex;}
.flex-column {flex-direction: column;}
.align-center {align-items: center;}
.w-100 {width: 100%;}
.mt-2 {margin-top: 16px;}
.mb-2 {margin-bottom: 16px;}
.mt-4 {margin-top: 32px;}
.mb-4 {margin-bottom: 32px;}

/* --------------------------
   Accessibility Focus Styles
---------------------------- */
a:focus, button:focus, .cta:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-btn:focus {
  outline: 2px solid #F8C471;
  outline-offset: 3px;
  z-index: 2;
}

/* --------------------------
   Custom Scrollbars
---------------------------- */
::-webkit-scrollbar {
  width: 8px;
  background: #F8F9FA;
}
::-webkit-scrollbar-thumb {
  background: #ddebe4;
  border-radius: 5px;
}

/* End of Style */
