/* 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,
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 {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  min-height: 100vh;
  line-height: 1.5;
  background: #F6EEE3;
  color: #19180f;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img, svg {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* ROOT VARIABLES FOR COLOR PALETTE */
:root {
  --color-primary: #29223A;
  --color-secondary: #8AB3A7;
  --color-accent: #F6EEE3;
  --color-success: #4A6E51;
  --color-earth: #B4935A;
  --color-soil: #714F32;
  --color-green: #476253;
  --shadow: 0 4px 24px rgba(21, 23, 11, 0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-full: 999px;
}

/*------------------------ TYPOGRAPHY ------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-size: 1.44rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.13rem;
  margin-bottom: 12px;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #3a372c;
}
strong {
  font-weight: 700;
}
.section strong {
  color: var(--color-primary);
}

/*------------------------ BASE LAYOUT CONTAINERS ------------------------*/
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.content-wrapper li {
  color: #19180f !important;
}

.section {
  background: transparent;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  padding: 24px 18px;
  min-width: 260px;
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(41, 34, 58, 0.14);
}
.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: #fffbe9;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 18px rgba(180, 147, 90, 0.08);
  margin-bottom: 20px;
  flex-direction: row;
}
.testimonial-card p {
  color: #301B0E;
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-earth);
  font-weight: 700;
  margin-left: 8px;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*------------- HERO, CTA & ORGANIC ELEMENTS -------------*/
.hero {
  min-height: 300px;
  background: var(--color-accent);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 36px rgba(138, 179, 167, 0.12);
  margin-bottom: 40px;
  padding: 48px 0 32px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.cta {
  background: var(--color-secondary);
  border-radius: 32px;
  color: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 36px 24px;
}
.cta h2 {
  color: #fff;
  margin-bottom: 8px;
}
.cta p {
  color: #f6eee3;
}

/*------------------------ BUTTONS & LINKS ------------------------*/
.btn-primary {
  background: var(--color-green);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 38px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 16px rgba(41, 34, 58, 0.07);
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 14px;
  transition: background 0.21s, box-shadow 0.27s, color 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-soil);
  color: #fffbe9;
  box-shadow: 0 4px 24px rgba(180, 147, 90, 0.12);
}
nav a:hover, nav a:focus {
  color: var(--color-green);
}

/*------------------------ HEADER & NAVIGATION ------------------------*/
header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(41, 34, 58, 0.03);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 72px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header a img {
  height: 44px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: var(--color-green);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 110;
  transition: background 0.18s;
  position: relative;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-soil);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  z-index: 120;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(246,238,227,0.96);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.7,0.3,0.3,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: var(--color-green);
  align-self: flex-end;
  margin: 12px 20px 0 0;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  padding: 6px 12px;
  transition: background 0.15s, border-color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-earth);
  color: #fff;
  border-color: var(--color-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 1.16rem;
  width: 100%;
  padding: 32px 28px;
}
.mobile-nav a {
  padding: 12px 0;
  color: var(--color-primary);
  border-bottom: 1px dashed #ddd7ce;
  transition: color 0.2s, background 0.18s;
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Hide/show nav according to screen */
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .btn-primary[href="kontakt.html"] {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle, .mobile-menu-close {
    display: none !important;
  }
}

/*------------------------ FOOTER ------------------------*/
footer {
  background: #29223A;
  color: #f6eee3;
  padding: 40px 0 0 0;
  border-radius: 40px 40px 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
}
.footer-brand img {
  height: 46px;
  margin-bottom:12px;
}
.footer-nav, .footer-utility {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-utility a {
  color: #f6eee3;
  font-size: 1.03rem;
  padding-bottom: 2px;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-utility a:hover {
  color: var(--color-secondary);
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
.footer-social a img {
  height: 28px;
}
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: #eeddc6;
  margin-bottom: 2px;
}
.footer-contact img {
  height: 19px;
}
.copyright {
  flex-basis: 100%;
  color: #aea68b;
  font-size: 0.95rem;
  margin-top: 20px;
  text-align: center;
  width: 100%;
  padding-bottom: 20px;
}

/*------------------------ MAIN CONTENT COMPONENTS ------------------------*/
.team-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.posts-list, .featured-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  justify-content: flex-start;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}
.topic-tags li {
  background: #fff;
  color: var(--color-green);
  border-radius: var(--radius-full);
  padding: 7px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  box-shadow: 0 2px 14px rgba(138,179,167, 0.14);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 1.06rem;
}
.text-section h3 {
  color: var(--color-green);
  font-size: 1.23rem;
  margin-bottom: 2px;
}
.text-section a {
  color: var(--color-soil);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.17s;
}
.text-section a:hover {
  color: var(--color-green);
}

/* Cards and Lists */
ul {
  margin-bottom: 12px;
}
ul li {
  margin-bottom: 17px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
ul li img {
  height: 24px;
  width: 24px;
}

/*------------------------ ORGANIC/NATURE DETAILS ------------------------*/
.section, .card, .testimonial-card, .cta, header, footer {
  border-radius: 40px 40px 20px 20px/28px 24px 28px 32px;
}
.card, .testimonial-card, .cta {
  box-shadow: var(--shadow);
}

/* Subtle texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: url('assets/textures/paper-light.png'); /* Provide actual texture asset */
  opacity: .045;
  mix-blend-mode: multiply;
}

/*------------------------ COOKIE CONSENT BANNER ------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 200;
  background: #fffbe9;
  color: var(--color-primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -2px 24px rgba(180, 147, 90, 0.13);
  padding: 22px 16px;
  font-size: 1rem;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  animation: slideUpBanner 0.48s cubic-bezier(.27,1.29,.33,1.01);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn-cookie {
  background: var(--color-green);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius-full);
  padding: 11px 24px;
  font-size: 0.99rem;
  transition: background 0.2s, color 0.18s;
  font-weight: 600;
  margin-left: 6px;
}
.btn-cookie:hover, .btn-cookie:focus {
  background: var(--color-soil);
  color: #fffbe9;
}
.btn-cookie-settings {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-green);
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.99rem;
  font-weight: 500;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}


.cookie-modal {
  display: none;
  position: fixed;
  z-index: 210;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 420px;
  background: #fff;
  box-shadow: 0 6px 40px rgba(41, 34, 58, 0.17);
  border-radius: var(--radius);
  transform: translate(-50%,-50%) scale(0.95);
  opacity: 0;
  transition: opacity 0.25s, transform 0.28s cubic-bezier(.21,1.14,.61,.99);
  padding: 32px 22px 26px 22px;
}
.cookie-modal.open {
  display: block;
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  margin-bottom: 18px;
  color: var(--color-green);
  font-size: 1.18rem;
}
.cookie-modal ul {
  margin-bottom: 22px;
  gap: 12px;
  display: flex;
  flex-direction: column;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 7px 1px;
  border-radius: var(--radius-sm);
}
.cookie-category.essential {
  color: var(--color-soil);
  font-weight: 700;
}
.cookie-modal-toggle {
  width: 40px; height: 22px;
  border-radius: 22px;
  background: #ded8cc;
  border: none;
  position: relative;
  transition: background 0.16s;
  margin-left: auto;
  cursor: pointer;
}
.cookie-modal-toggle[data-on="true"] {
  background: var(--color-green);
}
.cookie-modal-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.17s;
}
.cookie-modal-toggle[data-on="true"]::after {
  left: 21px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-green);
  font-size: 1.48rem;
  position: absolute;
  top: 9px; right: 13px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-earth);
  color: #fff;
}

/*------------------------ ORGANIC INTERACTIONS/ANIMATIONS ------------------------*/
.btn-primary, .btn-cookie, .btn-cookie-settings {
  transition: background 0.22s, color 0.19s, box-shadow 0.17s, border 0.13s;
}
.card, .testimonial-card, .cta {
  transition: box-shadow 0.25s, background 0.22s;
}
.card:hover, .testimonial-card:hover {
  background: #f4f1ea;
  box-shadow: 0 6px 32px rgba(138,179,167, 0.18);
}
.topic-tags li {
  transition: background 0.17s, color 0.14s;
}
.topic-tags li:hover {
  background: var(--color-secondary);
  color: #fff;
}

/*------------------------ RESPONSIVE DESIGN ------------------------*/
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .footer-brand, .footer-contact, .footer-social, .footer-utility, .footer-nav {
    flex-basis: 100%;
    margin-bottom: 18px;
  }
  .footer-social {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.88rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  h3 {
    font-size: 1.09rem;
  }
  .hero, .cta, .section {
    padding: 28px 8px;
  }
  .hero, .cta {
    border-radius: 0 0 25px 25px;
  }
  .section {
    margin-bottom: 32px;
  }
  .container {
    padding: 0 4px;
  }
  .content-wrapper, .card-container, .content-grid, .team-member-list, .posts-list, .featured-posts {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 540px) {
  .hero, .cta {
    padding: 18px 2px;
  }
  .btn-primary, .btn-cookie, .btn-cookie-settings {
    padding: 11px 13px;
    font-size: 0.93rem;
  }
  .cookie-modal {
    padding: 20px 5vw 16px 5vw;
  }
}

/*------------------------ OTHER MISC ------------------------*/
::-webkit-scrollbar {
  width: 10px;
  background: #f6eee3;
}
::-webkit-scrollbar-thumb {
  background: #c9b280;
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: #f6eee3;
}

body {
  /* Subtle movement of paper texture, optional */
  position: relative;
  z-index: 0;
}

/*------------------------ ACCESSIBILITY/UTILITIES ------------------------*/
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

/*------------------------ PRINT SAFE COLORS ------------------------*/
a, button, .btn-primary {
  -webkit-tap-highlight-color: rgba(74,110,81,0.2);
}
