/* ================== CSS RESET & BASE STYLES ================== */
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;
  box-sizing: border-box;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F7F8;
  color: #22303C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
a {
  color: #22303C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #4d684b;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
strong {
  font-weight: bold;
}
blockquote {
  border-left: 4px solid #98b07a;
  margin-left: 0;
  padding-left: 16px;
  color: #22303C;
  font-style: italic;
  background: #f5f7f8;
  border-radius: 4px;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #22303C;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.375rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; margin-bottom: 10px; }
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #53614d;
  font-size: 1.15rem;
  margin-bottom: 18px;
  line-height: 1.7;
}
.policy-block h2 { font-size: 1.2rem; margin-bottom: 10px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ================== ORGANIC/NATURE STYLE ================ */
:root {
  --primary: #22303C;
  --secondary: #7CA7B2;
  --accent: #F5F7F8;
  --green: #98b07a;
  --earth: #eadbc8;
  --sand: #e7e0d2;
  --brown: #a1927a;
  --shadow: 0 2px 16px rgba(34, 67, 44, 0.08);
}

body {
  background: var(--accent);
  color: var(--primary);
}

.organic-bg {
  background: var(--earth);
}

/* For subtle organic/nature textures (example usage: add to sections) */
.section.organic-bg {
  background: repeating-linear-gradient(120deg, #F5F7F8, #F5F7F8 70px, #e7e0d2 80px, #F5F7F8 120px);
}

/* ================== LAYOUT CONTAINERS ================ */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  margin-bottom: 24px;
  padding: 0px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 32px;
    padding: 24px 10px;
  }
}

/* ================== FLEX LAYOUTS =================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 30px 22px;
  transition: box-shadow 0.25s, transform 0.2s;
  min-width: 270px;
  flex: 1 1 320px;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(135, 181, 119, 0.18);
  transform: translateY(-2px) scale(1.015);
}

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

.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; gap: 18px; align-items: flex-start; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: box-shadow 0.23s, background 0.18s;
  margin-bottom: 24px;
}
.feature-item img {
  width: 48px;
  height: 48px;
  filter: grayscale(15%) contrast(1.1);
}
.feature-item:hover {
  background: #e7e0d2;
  box-shadow: 0 4px 36px rgba(122,154,80, 0.13);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 12px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  position: relative;
  border-left: 6px solid var(--green);
  transition: box-shadow 0.23s, border 0.15s, transform 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 34px rgba(152,176,122,0.17);
  transform: translateY(-1.5px);
  border-left: 6px solid #7CA7B2;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  padding-left: 0;
  color: #22303C;
  font-size: 1rem;
  font-style: italic;
}
.testimonial-card p {
  color: #53614d;
  margin-left: 18px;
  font-size: 1rem;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px 12px;
  }
}

/* ====== Team Section (About page) ===== */
.team-wrapper {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.team-member {
  flex: 1 1 260px;
  background: #f4f9f5;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px 18px;
  margin-bottom: 20px;
  min-width: 220px;
  transition: box-shadow 0.22s;
}
.team-member:hover {
  box-shadow: 0 8px 32px rgba(122,154,80, 0.14);
}

/* About/Portfolio/Blog shared category list style */
.category-list, .blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 14px 0;
}
.category-list li, .blog-categories li {
  background: #e7e0d2;
  border-radius: 16px;
  padding: 6px 18px;
  color: #22303C;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}

/* ================== HEADER & NAV =================== */
header {
  background: var(--earth);
  box-shadow: 0 2px 18px rgba(109,132,96,0.08);
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  position: sticky;
  top: 0; /* sticky navigation */
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: #22303C;
  font-weight: 600;
  font-size: 1.01rem;
  padding: 4px 11px;
  border-radius: 12px;
  transition: background 0.19s, color 0.18s;
  font-family: 'Montserrat', Arial, sans-serif;
}
header nav a:hover, header nav a.active {
  background: #e7e0d2;
  color: #4d684b;
}
header nav .cta {
  background: var(--green);
  color: #fff;
  padding: 8px 22px;
  font-weight: bold;
  border-radius: 22px;
  font-size: 1.06rem;
  box-shadow: 0 2px 10px rgba(152,176,122, 0.12);
  transition: background 0.2s, transform 0.16s;
  border: none;
}
header nav .cta:hover {
  background: #7CA7B2;
  color: #fff;
  transform: translateY(-1px) scale(1.035);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e7e0d2;
}

@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =============== MOBILE MENU ============ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  background: rgba(34,48,60,0.95);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1), opacity 0.22s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 24px 8px 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover { color: #98b07a; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-left: 32px;
  margin-top: 34px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: bold;
  padding: 10px 0;
  border-radius: 8px;
  transition: background 0.15s, color 0.13s;
  min-width: 180px;
}
.mobile-nav a:hover {
  background: #7CA7B2;
  color: #fff;
}

/* Ensure mobile menu covers everything safely */
@media (max-width: 980px) {
  .mobile-menu {
    display: flex;
  }
}

/* ================== MAIN CTA/BUTTON ================ */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--green);
  color: #fff;
  font-weight: bold;
  font-size: 1.11rem;
  padding: 13px 30px;
  border: none;
  border-radius: 26px;
  margin-top: 14px;
  margin-bottom: 10px;
  box-shadow: 0 3px 16px rgba(152,176,122, 0.11);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.17s, color 0.13s, transform 0.16s;
}
.cta:hover, .cta:focus {
  background: #7CA7B2;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
  outline: none;
}

/* Primary button on cookie/modal, etc. */
.button {
  display: inline-block;
  padding: 11px 25px;
  border-radius: 24px;
  background: var(--green);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  box-shadow: 0 2px 10px rgba(152,176,122, 0.09);
  margin: 4px 12px 4px 0;
  cursor: pointer;
  transition: background 0.14s, transform 0.12s;
}
.button:hover, .button:focus {
  background: #7CA7B2;
  color: #fff;
  transform: translateY(-2px) scale(1.035);
  outline: none;
}
.button.secondary {
  background: #7CA7B2;
  color: #fff;
}
.button.secondary:hover, .button.secondary:focus {
  background: #98b07a;
}
.button.settings {
  background: #e7e0d2;
  color: #22303C;
}
.button.settings:hover {
  background: #fff;
  color: #7CA7B2;
}

/* ================== BLOG POST PREVIEWS ================ */
.post-preview {
  background: #f5f7f8;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(122,154,80, 0.07);
  padding: 22px 16px;
  min-width: 210px;
  flex: 1 1 270px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s, background 0.13s;
}
.post-preview:hover {
  background: #e7e0d2;
  box-shadow: 0 4px 26px rgba(122,154,80, 0.13);
}
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
@media (max-width: 800px) {
  .blog-list {
    flex-direction: column;
    gap: 12px;
  }
}

/* ================== SERVICE LIST/ITEMS ================= */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.service-item {
  flex: 1 1 260px;
  background: #f5f7f8;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 18px;
  margin-bottom: 20px;
  min-width: 220px;
  transition: box-shadow 0.22s;
}
.service-item:hover {
  box-shadow: 0 8px 32px rgba(122,154,80, 0.16);
  background: #e7e0d2;
}
.service-price {
  font-size: 1.04rem;
  color: var(--green);
  background: #e7e0d2;
  border-radius: 12px;
  padding: 2px 12px;
  font-weight: 600;
  margin-left: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ================== FOOTER ================== */
footer {
  background: var(--earth);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  box-shadow: 0 -2px 18px rgba(98,133,89,0.09);
  margin-top: 60px;
  position: relative;
  z-index: 20;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 32px;
  padding-bottom: 18px;
}
.footer-top {
  display: flex;
  gap: 38px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.footer-top nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-top a {
  color: #22303C;
  font-weight: 500;
  padding: 4px 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  transition: background 0.16s, color 0.15s;
}
.footer-top a:hover {
  background: #e7e0d2;
  color: #7CA7B2;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 18px;
}
.footer-bottom nav {
  display: flex;
  gap: 16px;
}
.footer-bottom nav a {
  color: #22303C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .97rem;
  padding: 3px 7px;
  border-radius: 7px;
  transition: background 0.13s, color 0.13s;
}
.footer-bottom nav a:hover {
  background: #7CA7B2;
  color: #fff;
}
.brand-info {
  font-size: 0.97rem;
  color: #22303C;
  margin-right: 20px;
}
.brand-info img {
  width: 17px;
  height: 17px;
  margin-right: 5px;
  vertical-align: middle;
  filter: grayscale(15%) contrast(1.10);
}
.impressum {
  color: #98b07a;
  font-size: 0.955rem;
  align-self: flex-end;
}

@media (max-width: 900px) {
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

@media (max-width: 600px) {
  .footer-top, .footer-bottom {
    gap: 14px;
  }
  .brand-info { margin-right: 0; }
}

/* ================== MISC ELEMENTS =============== */
.map-placeholder {
  background: #F5F7F8;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(122,154,80, 0.06);
  margin-bottom: 18px;
  color: #22303C;
  font-size: 1.03rem;
}
.contact-details {
  background: #f4f9f5;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(122,154,80, 0.07);
  padding: 20px 16px;
  font-size: 1.05rem;
  color: #22303C;
  margin-bottom: 20px;
}
.contact-details img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ================= POLICY BLOCKS =================== */
.policy-block {
  background: #faf9f6;
  padding: 22px 16px;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(152,176,122, 0.05);
  margin-bottom: 18px;
}

/* ================= COOKIE CONSENT BANNER ================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 9000;
  background: var(--earth);
  color: #22303C;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 18px 22px 24px;
  box-shadow: 0 -2px 16px rgba(122,154,80, 0.10);
  font-size: 1.08rem;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  transition: transform 0.33s cubic-bezier(.88,0,.22,1), opacity 0.25s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1 1 230px;
  font-size: 1rem;
  color: #22303C;
}
@media (max-width: 630px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    font-size: 0.97rem;
    padding: 18px 6px;
    border-radius: 12px 12px 0 0;
  }
}

/* ========== COOKIE PREFERENCE MODAL POPUP ========== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  inset: 0;
  background: rgba(34,48,60, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 36px rgba(152,176,122, 0.18);
  padding: 36px 22px 26px 22px;
  max-width: 430px;
  width: 94vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.08rem;
  animation: cookieModalIn .33s cubic-bezier(.21,1,.33,1);
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 11px;
  background: none;
  color: #7CA7B2;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover { color: #22303C; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 14px 0 10px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.cookie-category input[type="checkbox"][disabled] {
  accent-color: var(--green);
  opacity: 0.85;
}

/* Toggle switch style for cookie categories */
.switch {
  position: relative;
  display: inline-block;
  width: 41px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #e7e0d2;
  border-radius: 15px;
  transition: background 0.2s;
}
.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(150,165,136,0.11);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.switch input:checked + .slider {
  background-color: var(--green);
}
.switch input:checked + .slider:before {
  transform: translateX(17px);
}

/* ================== RESPONSIVE LAYOUTS ================ */
@media (max-width: 1160px) {
  .container { max-width: 99vw; }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .team-wrapper, .card-container, .content-grid, .footer-bottom, .footer-top {
    flex-direction: column;
    gap: 12px;
  }
  .category-list, .blog-categories ul {
    gap: 9px;
  }
}
@media (max-width: 630px) {
  .card, .feature-item, .service-item, .team-member, .post-preview {
    min-width: 160px;
    padding: 15px 9px;
  }
  .section { padding: 18px 5px; }
}

/* ================== MICRO-INTERACTIONS + TRANSITIONS =============== */
*:focus {
  outline: 2px solid #7CA7B2;
  outline-offset: 2px;
}

/* Smooth transitions on main interactive elements */
.button, .cta, header nav a, .card, .feature-item, .team-member {
  transition: box-shadow .19s, background .15s, color .13s, transform .15s;
}

/* ================== Z-INDEX SAFETY ================ */
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 9000; }
.cookie-modal-overlay { z-index: 10001; }
header { z-index: 30; }

/* ================== PRINT ================ */
@media print {
  nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay, .cta, .button {
    display: none !important;
  }
  .section, footer, header, body, .content-wrapper, .container {
    background: #fff !important;
    box-shadow: none !important;
  }
}

/* =============== ORGANIC SHAPE DECORS (OPTIONAL) ============== */
/* Example usage for organic corner decorations */
.organic-decor {
  position: absolute;
  border-radius: 50% / 44%;
  background: #e7e0d2;
  filter: blur(4px) opacity(0.22);
  z-index: 0;
  pointer-events: none;
}
.section .organic-decor {
  width: 56px; height: 40px; left: -30px; top: -32px;
}
@media (max-width:600px) {
  .section .organic-decor { display:none; }
}

/* ================== END ================== */
