/* ---- 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1; min-height: 100vh; color: #22312a; background: #F0E3CB;
}
ol,ul {
  list-style: none;
}
blockquote,q {
  quotes: none;
}
blockquote:before,blockquote:after,q:before,q:after {
  content: '';
}
table {
  border-collapse: collapse; border-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- FONT FACE, BRAND FONTS ---- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: #F0E3CB;
  color: #22312a;
  -webkit-text-size-adjust: 100%;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #20573A;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; color: #15406E; margin-bottom: 8px; }
h4,h5,h6 { font-size: 1rem; }
p,ul,ol,li { font-size: 1rem; margin-bottom: 1em; }
strong, b { font-weight: 700; }

/* ---- STRUCTURED FLEXBOX CONTAINERS ---- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px 24px 8px 8px;
  box-shadow: 0 2px 10px rgba(32,87,58,.07),0 1.5px 8px rgba(21,64,110,.04);
  position: relative;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px rgba(32,87,58,.08);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 16px 16px 16px;
  flex: 1 1 300px;
  min-width: 260px;
  border: 2.5px solid #20573A;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: #4675A6;
  box-shadow: 0 5px 16px rgba(32,87,58,.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  background: #f9f8f6;
  box-shadow: 0 1px 4px rgba(32,87,58,.05);
  flex: 1 1 280px;
  min-width: 240px;
  margin-bottom: 20px;
  border-left: 5px solid #20573A;
  transition: background .18s, box-shadow .18s;
}
.testimonial-card:hover {
  background: #F0E3CB;
  box-shadow: 0 4px 14px rgba(21,64,110,.09);
}

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

/* ---- HERO STYLES ---- */
.hero {
  background: linear-gradient(129deg,#fff 70%,#F0E3CB 100%);
  border-radius: 0 0 36px 36px;
  padding-top: 45px;
  padding-bottom: 45px;
  margin-bottom: 60px;
  box-shadow: 0 3.5px 18px rgba(21,64,110,.04);
}
.hero .content-wrapper {
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
  align-items: flex-start;
  gap: 20px;
}
.hero h1 { color: #20573A; }
.hero p { color: #22312a; font-size: 1.125rem; }

/* ---- TYPOGRAPHY SCALE ---- */
.display {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.02rem;
}
.lead {
  font-size: 1.25rem;
}

/* ---- BUTTONS & CTA ---- */
.cta,
button,
input[type=submit]{
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1;
  letter-spacing: 0.04em;
  border-radius: 12px;
  border: none;
  background: #20573A;
  color: #fff;
  padding: 16px 32px;
  cursor: pointer;
  text-align: center;
  transition: background .24s, box-shadow .18s, transform .1s;
  box-shadow: 0 2px 7px rgba(32,87,58,.09);
  outline: none;
  margin: 0 3px 8px 0;
  display: inline-block;
}
.cta.primary {
  background: #15406E;
  color: #fff;
  box-shadow: 0 2px 14px 0 rgba(21,64,110,.09);
}
.cta.secondary {
  background: #F0E3CB;
  color: #20573A;
  border: 2px solid #20573A;
}
.cta:hover, button:hover,
.cta.primary:hover {
  background: #4675A6;
  color: #fff;
  box-shadow: 0 2px 18px 0 rgba(70,117,166,0.13);
  transform: translateY(-3px) scale(1.031);
}
.cta:active, button:active {
  background: #15406E;
  color: #fff;
}
.cta.secondary:hover {
  background: #20573A;
  color: #fff;
  border-color: #4675A6;
}
.cta:focus,
button:focus {
  outline: 2px solid #4675A6;
  outline-offset: 2px;
}

/* ---- NAVIGATION ---- */
header {
  background: #fff;
  box-shadow: 0 1.5px 12px rgba(32,87,58,0.06);
  position: sticky;
  top: 0;
  z-index: 60;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 85px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: #20573A;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-bottom .18s, color .16s;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
  color: #15406E;
  border-bottom: 2.5px solid #4675A6;
}

/* --- MOBILE NAVIGATION --*/
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 26px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: #20573A;
  color: #fff;
  font-size: 2.1rem;
  border-radius: 12px;
  border: none;
  z-index: 108;
  cursor: pointer;
  transition: box-shadow .22s, background .22s;
  box-shadow: 0 2.5px 8px rgba(32,87,58,.15);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #4675A6;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #20573A;
  z-index: 110;
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(.88,.2,.16,1);
  box-shadow: 2px 0 16px rgba(32,87,58,0.24);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  margin: 28px 32px 14px 0;
  cursor: pointer;
  z-index: 115;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  padding: 24px 40px;
  margin-top: 24px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 2px 8px 2px;
  border-bottom: 2px solid transparent;
  transition: background .14s, border-bottom .15s, color .15s;
  border-radius: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #15406E;
  color: #F0E3CB;
  border-bottom: 2px solid #4675A6;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 24px 0 32px 0;
    border-radius: 0 0 22px 22px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
  .section {
    margin-bottom: 38px;
    padding: 28px 8px;
  }
  .content-wrapper,
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    min-width: unset;
    padding: 16px 10px;
    gap: 14px;
  }
}

/* ---- CARDS / SERVICE CARDS ---- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 18px;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 185px;
  background: #fff;
  padding: 22px 14px;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(21,64,110,0.04);
  border: 2px solid #f0e3cb;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .17s, border-color .16s;
}
.feature-grid > div:hover {
  border-color: #4675A6;
  box-shadow: 0 4px 18px rgba(70,117,166,.12);
}
.feature-grid img {
  width: 48px; height: 48px; margin-bottom: 10px;
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-cards > div {
  flex: 1 1 240px;
  min-width: 210px;
  padding: 18px 14px;
  border-radius: 13px;
  background: #fff;
  border: 2px solid #20573A;
  box-shadow: 0 1.5px 7px rgba(32,87,58,0.09);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .18s;
  position: relative;
}
.service-cards > div:hover {
  border-color: #4675A6;
  box-shadow: 0 5px 14px rgba(70,117,166,.12);
}

/* ------------ TABLE FORMAT ------------- */
table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  font-family: 'Roboto', Arial, sans-serif;
}
thead th {
  background: #20573A;
  color: #fff;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08rem;
  padding: 14px 10px;
  text-align: left;
  letter-spacing: .03em;
}
tbody td {
  border-bottom: 1.5px solid #E5D7BC;
  padding: 11px 10px;
  color: #20573A;
}
tbody tr:last-child td { border-bottom: none; }

/* ------------ LISTS AND TEXT ------------- */
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 1em;
  padding-left: 0.8em;
}
ul li, ol li {
  margin-bottom: 0.6em;
  font-size: 1em;
  position: relative;
  line-height: 1.7;
}
ul li::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 9px;
  height: 9px;
  margin-right: 12px;
  background: #20573A;
  border-radius: 2.5px;
}

/* ---- TESTIMONIALS ---- */
.testimonial-preview .content-wrapper,
.testimonial .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.testimonial-card p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #1c261f;
}
.testimonial-card strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #15406E;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* ------------ MODAL & OVERLAYS (for cookie modal) ------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32,87,58,0.85);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .35s cubic-bezier(.65,0,.2,1);
}
@keyframes fadeIn {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  padding: 36px 24px 28px 24px;
  box-shadow: 0 4px 38px 0 rgba(21,64,110,.14);
  max-width: 350px;
  width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.16rem;
  color: #20573A;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #22312a;
  padding-left: 4px;
}
.cookie-modal .cta {
  margin-top: 16px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #20573A;
  font-size: 1.7rem;
  position: absolute;
  top: 18px; right: 20px;
  cursor: pointer;
  z-index: 10;
  padding: 2px;
}
.cookie-modal-close:hover {
  color: #4675A6;
}

/* ------------ COOKIE CONSENT BANNER ------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  color: #20573A;
  box-shadow: 0 -4px 22px rgba(21,64,110,0.07);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-top: 3.5px solid #20573A;
  z-index: 200;
  padding: 28px 15px 17px 15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  animation: slideUp .5s cubic-bezier(.26,1,.58,1);
}
@keyframes slideUp {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner .cta {
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 9px;
  background: #20573A;
  color: #fff;
}
.cookie-banner .cta.secondary {
  background: #F0E3CB;
  color: #20573A;
  border: 2px solid #20573A;
}
.cookie-banner .cta.settings {
  background: #FFF;
  color: #15406E;
  border: 2px solid #15406E;
}
.cookie-banner .cta:hover {
  background: #4675A6;
  color: #fff;
}
.cookie-banner .cta.settings:hover {
  background: #F0E3CB;
  color: #15406E;
  border-color: #20573A;
}

/* ---- FOOTER ---- */
footer {
  background: #20573A;
  color: #F0E3CB;
  padding: 38px 0 20px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 21px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #F0E3CB;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1em;
  letter-spacing: 0.02em;
  transition: color .18s;
}
.footer-nav a:hover {
  color: #4675A6;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: .95em;
  text-align: right;
}
.footer-info img {
  width: 48px;
  height: auto;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-info {
    align-items: flex-start;
    text-align: left;
  }
  .footer-nav {
    gap: 10px;
  }
}

/* ---- SECTIONS, LAYOUT, UNIVERSAL SPACING ---- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.about-preview .content-wrapper,
.services-preview .content-wrapper {
  flex-wrap: wrap;
  gap: 20px;
}
.text-section {
  max-width: 700px;
}

@media (max-width: 600px) {
  .hero h1, h1 { font-size: 1.45rem; }
  h2 { font-size: 1.2rem; }
  .hero p, p, ul li, .footer-info, .footer-nav a { font-size: 0.97rem; }
  .service-cards > div,
  .feature-grid > div {
    min-width: unset;
    padding: 10px 8px;
  }
}

/* ---- FORMS (future proof for contact, cookie modal etc.) ---- */
input,
select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1.5px solid #20573A;
  border-radius: 8px;
  padding: 12px 12px;
  margin-bottom: 16px;
  background: #F0E3CB;
  color: #20573A;
  transition: border .15s;
  width: 100%;
  outline: none;
}
input:focus,
select:focus, textarea:focus {
  border: 2px solid #4675A6;
}
label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #20573A;
}

/* ---- RESPONSIVE TUNING ---- */
@media (max-width: 1050px) {
  .container { max-width: 96vw; }
  .main-nav { gap: 14px; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; }
  .feature-grid,
  .service-cards,
  .about-preview .content-wrapper,
  .services-preview .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .card,
  .testimonial-card {
    min-width: unset;
  }
}

/* ---- UTILITY CLASSES FOR GEOMETRY/STYLE ---- */
.bg-accent {
  background: #15406E;
  color: #fff;
}
.text-primary { color: #20573A; }
.text-accent { color: #15406E; }
.text-secondary { color: #4675A6; }

.rounded {
  border-radius: 16px;
}
.shadow {
  box-shadow: 0 2.5px 8px rgba(32,87,58,.10);
}

/* ---- MICRO-INTERACTIONS (cards, links, buttons) ---- */
a,
.button,
.cta {
  transition: color .17s, background .19s, box-shadow .21s, border .17s, transform .12s;
}
.card, .service-cards > div, .feature-grid > div,
.testimonial-card {
  transition: box-shadow .18s, border-color .18s, background .17s;
}

/* ---- NO OVERLAPS ---- */
.card, .feature-grid > div, .service-cards > div, .testimonial-card {
  margin-bottom: 20px;
}

/* ---- CLEARING FLOATS / RESPONSIVE DEMARCATION ---- */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/*****************
 * Cookie Banner and Modal Fallbacks (hide/show)
 *****************/
.cookie-banner,
.modal-overlay {
  display: none;
}
body.cookie-banner-active .cookie-banner {
  display: flex;
}
body.cookie-modal-active .modal-overlay {
  display: flex;
}

/****** Custom check / radio for cookie modal toggles *****/
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  margin-left: 10px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  border-radius: 10px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #E5D7BC;
  transition: .2s;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #20573A;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #FFF;
  border-radius: 50%;
  transition: .23s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* ---- Hide cookie modal close on small screens ---- */
@media (max-width: 400px) {
  .cookie-modal {
    padding: 18px 4px 14px 4px;
    max-width: 94vw;
  }
  .cookie-modal-close {
    top: 5px; right: 8px;
  }
}

/****** Accessibility helper: skip link ******/
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 18px;
  margin: 12px;
  background: #4675A6;
  color: #fff;
  z-index: 9999;
}

/*********
 * END OF STYLE.CSS for Silent Vibe Naturtouren - GEOMETRIC_STRUCTURED
 *********/
