/* ================================================================
   CSS RESET & BASE (normalize + scandinavian_clean foundation)
==================================================================*/
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, menu, 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%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  line-height: 1.5;
  background-color: #F5F3EC;
  color: #304039;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

*, *:before, *:after {
  box-sizing: inherit;
}

a {
  color: #35695A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #AF9767;
}

main {
  flex: 1 0 auto;
}

/* ================================================================
   TYPOGRAPHY & HEADINGS
==================================================================*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', 'Open Sans', Arial, Helvetica, sans-serif;
  color: #35695A;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
strong, b {
  font-weight: 700;
  color: #304039;
}
.subheadline {
  font-size: 1.125rem;
  color: #35695A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-style: italic;
  margin-bottom: 24px;
}

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

ul, ol {
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
}

.container {
  max-width: 950px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

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

/* ================================================================
   SPACING, LAYOUT & FLEXBOX PATTERNS
==================================================================*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(53, 105, 90, 0.05);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  flex-basis: 300px;
  flex-grow: 1;
  gap: 12px;
}

.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: #FFFFFF;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(53, 105, 90, 0.07);
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 600px;
  width: 100%;
  border-left: 5px solid #35695A;
}
.testimonial-card p {
  font-size: 1.125rem;
  color: #304039;
  margin-bottom: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-style: italic;
}
.testimonial-card span {
  color: #AF9767;
  font-size: 0.98rem;
  font-family: 'Nunito', Arial, sans-serif;
}

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

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ------------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------------*/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(53, 105, 90, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  position: relative;
  z-index: 100;
}
header a img {
  height: 40px;
  width: auto;
  vertical-align: middle;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  color: #35695A;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
header nav a:hover,
header nav a:focus {
  color: #AF9767;
  border-bottom: 2px solid #AF9767;
}
.cta.primary {
  background: #35695A;
  color: #fff;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 2px 16px rgba(53, 105, 90, 0.07);
  cursor: pointer;
  margin-left: 28px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  display: inline-block;
  letter-spacing: 0.05em;
}
.cta.primary:hover,
.cta.primary:focus {
  background: #AF9767;
  color: #fff;
  box-shadow: 0 4px 22px rgba(175, 151, 103, 0.17);
}

/* ------------------------------------------------
   MOBILE MENU
--------------------------------------------------*/
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 24px;
  background: #fff;
  border: none;
  font-size: 2rem;
  z-index: 1002;
  color: #35695A;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(53,105,90,0.08);
  align-items: center;
  justify-content: center;
  transition: background 0.22s, color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #35695A;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 375px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 36px rgba(53, 105, 90, 0.13);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 32px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #35695A;
  position: absolute;
  top: 20px;
  right: 22px;
  cursor: pointer;
  z-index: 10;
  padding: 7px;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #F5F3EC;
  color: #AF9767;
}
.mobile-nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1.17rem;
  color: #35695A;
  padding: 11px 0;
  font-weight: 500;
  border-radius: 12px;
  transition: background 0.21s, color 0.21s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F5F3EC;
  color: #AF9767;
}

@media (max-width: 1024px) {
  header nav {
    gap: 12px;
  }
  .cta.primary {
    margin-left: 10px;
    padding: 10px 18px;
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  header, .container { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 768px) {
  header nav, header .cta.primary {
    display: none !important;
  }
  header {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 16px 10px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ------------------------------------------------
   SECTION, CARDS, GENERAL BUTTONS
--------------------------------------------------*/
.section {
  /* Already defined above with spacing rules */
  background: transparent;
  border-radius: 11px;
}
.content-wrapper {
  background: transparent;
  border-radius: 8px;
  padding: 0;
}

button, .cta, input[type=submit], input[type=button] {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1.05rem;
  border: none;
  border-radius: 18px;
  outline: none;
  cursor: pointer;
  transition: background 0.20s, color 0.20s, box-shadow 0.18s;
}
button:focus,
.cta:focus,
input[type=submit]:focus {
  outline: 2px solid #AF9767;
  outline-offset: 2px;
}

/* ------------------------------------------------
   FOOTER
--------------------------------------------------*/
footer {
  background: #fff;
  padding: 34px 0 17px 0;
  border-top: 1.5px solid #E7E3DE;
  width: 100%;
  font-size: 1rem;
  color: #949c8f;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}
footer nav a {
  color: #35695A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding-bottom: 1px;
  border-bottom: 1px dotted #AF9767;
  transition: color 0.16s, border-bottom 0.16s;
}
footer nav a:hover,
footer nav a:focus {
  color: #AF9767;
  border-bottom: 1px solid #AF9767;
}
footer .text-section {
  color: #949c8f;
  font-size: 0.98rem;
  text-align: center;
}

/* ================================================================
   RESPONSIVE FLEX PATTERNS
==================================================================*/
@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 13px;
  }
  .content-wrapper {
    gap: 13px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 13px;
    padding: 14px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
  .container { padding: 0 6px; }
  .cta.primary { font-size: .97rem; padding: 9px 14px; }
}

/* ================================================================
   COOKIE CONSENT BANNER & COOKIE MODAL
==================================================================*/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(53, 105, 90, 0.13);
  border-top: 1.5px solid #AF9767;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 20px 18px 20px;
  z-index: 4000;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.63,-0.51,.49,1.37), opacity 0.32s;
}
.cookie-consent-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-consent-banner .cookie-message {
  color: #35695A;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 0;
  text-align: center;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 2px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-consent-banner .cookie-btn {
  padding: 8px 22px;
  border-radius: 17px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', Arial, sans-serif;
  transition: background 0.2s, color 0.2s;
  background: #F5F3EC;
  color: #35695A;
}
.cookie-consent-banner .cookie-btn.accept {
  background: #35695A;
  color: #fff;
  box-shadow: 0 1px 7px rgba(53,105,90,0.09);
}
.cookie-consent-banner .cookie-btn.accept:hover,
.cookie-consent-banner .cookie-btn.accept:focus {
  background: #AF9767;
  color: #fff;
}
.cookie-consent-banner .cookie-btn.reject {
  background: #fff;
  color: #35695A;
  border: 1.5px solid #AF9767;
}
.cookie-consent-banner .cookie-btn.reject:hover,
.cookie-consent-banner .cookie-btn.reject:focus {
  background: #F5F3EC;
  color: #AF9767;
  border-color: #35695A;
}
.cookie-consent-banner .cookie-btn.settings {
  background: #F5F3EC;
  color: #AF9767;
  border: 1.5px solid #d6c6ac;
}
.cookie-consent-banner .cookie-btn.settings:hover,
.cookie-consent-banner .cookie-btn.settings:focus {
  background: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5001;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(53,105,90,0.18);
  backdrop-filter: blur(1.3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 46px rgba(53,105,90,0.17);
  padding: 40px 28px 30px 28px;
  max-width: 420px;
  width: 95%;
  z-index: 5002;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  position: relative;
  animation: cookieModalPop 0.24s cubic-bezier(.7,1.5,.47,1.1);
}
@keyframes cookieModalPop {
  0% { transform: scale(0.90) translateY(25px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: #35695A;
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: #304039;
}
.cookie-modal .cookie-toggle {
  width: 44px;
  height: 26px;
  border-radius: 14px;
  background: #F5F3EC;
  border: 1.5px solid #AF9767;
  position: relative;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal .cookie-toggle[aria-checked="true"] {
  background: #AF9767;
}
.cookie-modal .cookie-toggle-inner {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px; top: 2.5px;
  transition: left 0.17s cubic-bezier(.9,0,.3,1.01);
  box-shadow: 0 1px 7px rgba(53,105,90,0.10);
}
.cookie-modal .cookie-toggle[aria-checked="true"] .cookie-toggle-inner {
  left: 22px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 8px 22px;
  border-radius: 17px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', Arial, sans-serif;
  transition: background 0.2s, color 0.2s;
  background: #F5F3EC;
  color: #35695A;
}
.cookie-modal .cookie-btn.accept {
  background: #35695A;
  color: #fff;
}
.cookie-modal .cookie-btn.accept:hover {
  background: #AF9767;
}
.cookie-modal .cookie-btn.cancel {
  background: #fff;
  color: #AF9767;
  border: 1.5px solid #d6c6ac;
}
.cookie-modal .cookie-btn.cancel:hover {
  background: #F5F3EC;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #35695A;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover { color: #AF9767; }
.cookie-modal .cookie-descr {
  font-size: 0.97rem;
  margin-bottom: 10px;
  color: #949c8f;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* ===================================================================
   MICRO-INTERACTIONS, SHADOWS, ANIMATIONS
====================================================================*/
.card, .testimonial-card {
  transition: box-shadow 0.18s, border-color 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 28px rgba(53,105,90,0.11);
  border-left: 5px solid #AF9767;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 20px rgba(175,151,103,0.22);
  border-left: 5px solid #AF9767;
}

button, .cta.primary, a.cta {
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
a.cta {
  text-align: center;
}

/* ================================================================
   GENERAL FORM ELEMENTS (minimal - for 'kontakt.html')
==================================================================*/
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #AF9767;
  border-radius: 7px;
  background: #FAF9F6;
  margin-bottom: 16px;
  width: 100%;
  color: #304039;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #35695A;
  box-shadow: 0 2px 10px rgba(53, 105, 90, 0.13);
}
label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #35695A;
  display: block;
  margin-bottom: 6px;
}

/* ================================================================
   MISC UTILITIES & ACCESSIBILITY
==================================================================*/
.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
 }

/* spacing utilities */
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }

/* ------------------------------------------------
  Scandinavian Clean: Additional Touch
--------------------------------------------------*/
::-webkit-scrollbar {
  width: 8px;
  background: #F5F3EC;
}
::-webkit-scrollbar-thumb {
  background: #E7E3DE;
  border-radius: 4px;
}

/* -- Subtle wood/nature style line for primary sections -- */
.section:not(:last-child):after {
  content: '';
  display: block;
  margin: 38px auto 0 auto;
  height: 2px;
  width: 48px;
  background: #AF9767;
  border-radius: 2px;
  opacity: 0.18;
}

/* For .text-section with h3, ensure proper spacing */
.text-section h3 {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 1.09rem;
  color: #35695A;
  letter-spacing: -0.2px;
}

/* Prevent element overlap, enhance breathing room */
main, .container, .content-wrapper {
  min-width: 0;
}

/* END OF CSS FILE */
