/* ========== CSS RESET & NORMALIZATION ========== */
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, 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #f8fafb;
  color: #27323F;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #316D4C;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #F9B015;
  outline: none;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: none;
  transition: background 0.2s, color 0.2s;
}

/* =================== BASE TYPOGRAPHY ===================== */
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #25303A;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #26543B;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.3rem; margin-bottom: 20px; }
h2 { font-size: 1.75rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1rem; margin-bottom: 10px; }
p, li, blockquote, table, td, th {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}
strong, b { color: #316D4C; }
blockquote {
  border-left: 4px solid #F9B015;
  padding-left: 16px;
  font-style: italic;
  color: #234020;
  background: #F8FAFB;
  margin: 8px 0 8px 0;
}

/* =================== LAYOUT CONTAINERS =================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FEF9F6;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(40,60,90,0.07);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 10px;
  }
}

/* =============== HEADER & NAVIGATION ================ */
header {
  background: #316D4C;
  color: #fff;
  box-shadow: 0 2px 16px rgba(50, 50, 70, 0.10);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #F9B015;
  color: #234020;
}
header img {
  height: 44px;
  width: auto;
}
.cta-button {
  background: #F9B015;
  color: #234020;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-block;
  padding: 12px 28px;
  margin-left: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(40,60,90,0.07);
}
.cta-button:hover, .cta-button:focus {
  background: #316D4C;
  color: #fff;
  box-shadow: 0 4px 18px rgba(41, 109, 76, 0.12);
}

/* === MOBILE NAV === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  margin-left: 20px;
  transition: color 0.2s;
  z-index: 31;
  border-radius: 6px;
  width: 46px;
  height: 46px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #F9B015;
  background: rgba(255,255,255,0.15);
}
@media (max-width: 1024px) {
  header nav,
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 500px) {
  header .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  header img {
    height: 32px;
  }
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #26543Bc9;
  z-index: 999;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.76,.12,.34,1.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  margin: 18px 0 28px 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  z-index: 1010;
  border-radius: 6px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F9B015;
  background: rgba(255,255,255,0.11);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding-left: 32px;
  padding-top: 10px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  padding: 12px 6px 12px 0;
  width: 100%;
  display: block;
  transition: color .2s, background .2s;
  border-radius: 7px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F9B015;
  color: #234020;
}
@media (min-width: 1025px){
  .mobile-menu,
  .mobile-menu-toggle {
    display: none!important;
  }
}

/* =============== FOOTER =============== */
footer {
  background: #f7f9fA;
  color: #234020;
  border-top: 2px solid #ededed;
  padding: 32px 0 12px 0;
  font-size: 1rem;
  margin-top: 48px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 8px;
  align-items: center;
  justify-content: center;
}
footer nav a {
  color: #316D4C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 6px 8px;
}
footer nav a:hover, footer nav a:focus {
  color: #F9B015;
}
footer p {
  text-align: center;
  font-size: 0.97rem;
  color: #25303A;
}

/* =============== HERO & SECTION STYLES =================*/
.hero {
  background: linear-gradient(90deg,#FEF9F6 60%,#f2f6f3 100%);
  padding: 60px 0 44px 0;
  margin-bottom: 44px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 700px;
}
.hero h1 {
  color: #26543B;
  font-size: 2.2rem;
  letter-spacing: -1px;
  line-height: 1.12;
  margin-bottom: 8px;
}
.hero .subheadline {
  font-size: 1.25rem;
  color: #316D4C;
  margin-bottom: 12px;
}
.hero .cta-button {
  margin-top: 12px;
}
@media (max-width: 900px){
  .hero {
    padding: 38px 0 24px 0;
    margin-bottom: 34px;
  }
  .hero .content-wrapper {
    padding: 0;
  }
}
@media (max-width: 600px){
  .hero h1 {
    font-size: 1.45rem;
  }
  .hero .content-wrapper {
    gap: 12px;
  }
}

.features, .services, .about, .contact, .locations, .pricing, .legal, .thank-you {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #FEF9F6;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(40,60,90,0.07);
}
.features h2, .about h1, .contact h1, .pricing h1, .legal h1, .thank-you h1, .locations h1 {
  margin-bottom: 14px;
}
.services ul, .features ul {
  margin-top: 8px;
}
.features ul, .about ul, .pricing ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-left: 0;
}
.features ul li {
  position: relative;
  padding-left: 0;
  color: #374151;
}
.features ul li:before {
  content: '';
  display: inline-block;
  background: #316D4C;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  margin-right: 13px;
  vertical-align: middle;
}
.features ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}
.features .content-wrapper > h2,
.about .content-wrapper > h2 {
  margin-bottom: 12px;
}

/* =============== CARD / FLEX CONTAINERS =================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(50,70,60,0.07);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  flex: 1 1 320px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(41, 109, 76, 0.13);
  border-color: #316D4C;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 900px){
  .card-container, .content-grid {
    flex-direction: column !important;
    gap: 12px;
  }
}
@media (max-width: 768px){
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* =============== SERVICE ICON LISTS =============== */
.services ul, .services-overview ul, .contact ul, .about ul, .locations ul {
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.services ul li, .services-overview ul li, .contact ul li,
.about ul li, .locations ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  background: #fff;
  padding: 16px 16px 16px 14px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(50,80,60,0.06);
  margin-bottom: 4px;
}
.services ul li img, .services-overview ul li img, .contact ul li img {
  width: 28px; height: 28px; margin-right: 0;
}

/* =============== TESTIMONIALS =============== */
.testimonials {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(41,109,76,0.10);
  padding: 40px 0;
  margin-bottom: 60px;
}
.testimonials h2 {
  text-align: center;
  color: #26543B;
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}
.testimonial-card {
  background: #FEF9F6;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(41,109,76,0.07);
  min-width: 270px;
  max-width: 400px;
  flex: 1 1 310px;
  transition: box-shadow 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(41, 109, 76, 0.16);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  min-width: 110px;
}
.testimonial-stars img {
  width: 22px;
}
blockquote {
  color: #27323F;
  font-size: 1rem;
  margin: 0;
}
blockquote span {
  display: block;
  color: #26543B;
  font-size: 0.96rem;
  margin-top: 6px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .testimonials .content-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 99vw;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .testimonials {
    padding: 26px 0;
    margin-bottom: 36px;
  }
}

/* =============== TABLES (Preislisten) =============== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
table th, table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid #dde3ea;
  font-size: 1rem;
}
table th {
  background: #F1F7F5;
  color: #26543B;
  font-weight: 700;
}
table tr:hover td {
  background: #f7fbf8;
}

/* ================== CTA SECTIONS ================== */
.cta {
  background: #316D4C;
  border-radius: 18px;
  color: #fff;
  text-align: center;
  padding: 44px 14px;
  box-shadow: 0 3px 14px rgba(41, 109, 76, 0.09);
  margin-bottom: 42px;
}
.cta .content-wrapper {
  align-items: center;
  gap: 10px;
}
.cta h2 {
  color: #fff;
  margin-bottom: 10px;
}
.cta p {
  color: #f7f6f4;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.cta .cta-button {
  background: #F9B015;
  color: #234020;
  margin-top: 14px;
}

/* =============== THANK YOU PAGE =============== */
.thank-you {
  background: #fff8ec;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(41,109,76,0.08);
  padding: 42px 0;
  text-align: center;
}
.thank-you .cta-button {
  margin-top: 18px;
}

/* ================== LEGAL / POLICY PAGES =================== */
.legal {
  background: #f7fafd;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(41,109,76,0.06);
  padding: 42px 0;
  color: #28374A;
}
.legal h1, .legal h2 {
  color: #26543B;
}
.legal ul {
  margin: 12px 0 20px 0;
  padding-left: 18px;
}
.legal ul li {
  list-style-type: disc;
  margin-bottom: 8px;
  color: #3c4c60;
  font-size: 1rem;
}
.legal a {
  color: #316D4C; text-decoration: underline;
}

/* =============== COOKIE CONSENT BANNER & MODAL =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #234020;
  border-top: 2px solid #dde6db;
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10001;
  box-shadow: 0 -5px 22px rgba(41,109,76,.10);
  animation: cookieSlideIn 0.62s cubic-bezier(0.21,0.78,0.4,1);
}
@keyframes cookieSlideIn {
  0% {
    opacity: 0; transform: translateY(120px);
  }
  95% {
    opacity: 1; transform: translateY(-6px);
  }
  100% {
    opacity: 1; transform: translateY(0);
  }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-banner button {
  background: #F9B015;
  color: #234020;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 1rem;
  margin-right: 3px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 7px rgba(41,109,76,0.10);
  display: inline-block;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cookie-banner button.settings {
  background: #316D4C;
  color: #fff;
}
.cookie-banner button.reject {
  background: #e7ece5;
  color: #234020;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #234020;
  color: #F9B015;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #F9C54D;
  color: #234020;
}

/* --- Cookie Modal --- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(38,84,59,0.44);
  z-index: 100101;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 410px;
  padding: 34px 26px 18px 26px;
  box-shadow: 0 8px 40px rgba(41,109,76,0.15);
  color: #234020;
  animation: fadeScaleIn 0.45s cubic-bezier(0.21,0.78,0.4,1);
}
@keyframes fadeScaleIn {
  0% { opacity:0; transform: scale(0.88); }
  100% { opacity:1; transform: scale(1); }
}
.cookie-modal-content h3 {
  color: #26543B;
  font-size: 1.15rem;
  margin-bottom: 17px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.cookie-modal-content .cookie-category label {
  font-size: 1rem;
  color: #316D4C;
  font-weight: 600;
}
.cookie-modal-content .toggle-switch {
  position: relative;
  display: inline-flex;
  width: 52px; height: 28px;
  background: #e9f3eb;
  border-radius: 18px;
  align-items: center;
  transition: background 0.2s;
}
.cookie-modal-content .toggle-switch input[type="checkbox"] {
  display: none;
}
.cookie-modal-content .toggle-slider {
  position: absolute;
  top: 3.5px;
  left: 5px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #316D4C;
  transition: left 0.2s, background 0.18s;
}
.cookie-modal-content .toggle-switch input:checked + .toggle-slider {
  left: 26px;
  background: #F9B015;
}
.cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-modal-actions button {
  background: #316D4C;
  color: #fff;
  border-radius: 8px;
  padding: 9px 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #F9B015;
  color: #234020;
}
.cookie-modal-content .cookie-category input[disabled] + .toggle-slider {
  background: #90a394;
  cursor: not-allowed;
}

/* =============== SPACING for FLEX LAYOUTS [MANDATORY] =============== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* =============== RESPONSIVE FLEX LAYOUTS =============== */
@media (max-width: 900px) {
  .card-container, .content-grid { flex-direction: column; gap: 16px; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 15px; }
}

/* =============== GENERAL UTILITIES =============== */
.hide { display: none !important; }
.visible { display: block !important; }
.mt-20 { margin-top: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }

/* =============== TRANSITIONS & MICRO-INTERACTIONS =============== */
.cta-button, button, .card, .testimonial-card {
  transition: box-shadow 0.18s, background 0.16s, color 0.16s, border .17s;
}

/* =============== FOCUS VISIBLE ACCESSIBILITY =============== */
a:focus-visible, button:focus-visible, .cta-button:focus-visible, .mobile-menu-toggle:focus-visible {
  outline: 2.5px solid #F9B015;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #23402022;
}

/* ================== SCROLLBAR (Modern) ================== */
::-webkit-scrollbar {
  width: 10px;
  background: #e8f1eb;
}
::-webkit-scrollbar-thumb {
  background: #316D4C55;
  border-radius: 8px;
}

/* ================= FONT LOADING ==================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;500;700&display=swap');
