/* ============================================================
   CSS RESET & NORMALIZATION FOR ELEGANT_CLASSIC DESIGN
   ============================================================ */
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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font: inherit;
  box-sizing: border-box;
}
html {
  line-height: 1.5;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: #F3F6F2;
}
body {
  font-family: 'Roboto', Georgia, Times, 'Times New Roman', serif;
  background: #F3F6F2;
  color: #2d2d2d;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
input, button, textarea, select {
  font: inherit;
  font-size: 1rem;
  border-radius: 0;
}
a {
  text-decoration: none;
  color: #093752;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #8DB959;
  outline-offset: 2px;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
ul, ol {
  list-style: none;
}

/* ======================
   TYPOGRAPHY
   ====================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, Times, 'Times New Roman', serif;
  color: #093752;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  margin-top: 12px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.05rem;
  font-weight: 400;
}
p {
  font-size: 1.1rem;
  color: #36383d;
  margin-bottom: 14px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: #093752;
}
.text-section h2,
.text-section h3 {
  margin-top: 2em;
}
a:hover,
nav a:hover {
  color: #8DB959;
}

/* ==============
   LAYOUT & UTILS
   ============== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
section {
  background: #fff;
  border-radius: 20px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 4px 17px rgba(9,55,82,0.07);
}
@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 32px;
    border-radius: 14px;
  }
  .container {
    padding: 0 7px;
  }
}

/* ====================================
   BRAND BUTTONS & CTA
   ==================================== */
.cta-button, .cookie-consent-btn, .cookie-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Georgia, Times, serif;
  font-size: 1.1rem;
  font-weight: 600;
  background: #093752;
  color: #fff;
  padding: 13px 28px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 2px 8px rgba(9,55,82,0.12);
  transition: background 0.18s, color 0.18s, transform 0.11s;
  cursor: pointer;
  margin-top: 18px;
  letter-spacing: 0.01em;
}
.cta-button:hover, .cookie-consent-btn:hover, .cookie-modal-btn:hover {
  background: #8DB959;
  color: #093752;
  transform: translateY(-2px) scale(1.03);
}
.cta-button:focus, .cookie-consent-btn:focus, .cookie-modal-btn:focus {
  outline: 2px solid #8DB959;
  background: #F3F6F2;
  color: #093752;
}

/* Secondary/white outlined buttons for cookie banner */
.cookie-consent-btn.reject {
  background: #fff;
  color: #093752;
  border: 1.5px solid #093752;
}
.cookie-consent-btn.reject:hover {
  background: #093752;
  color: #fff;
}
.cookie-consent-btn.settings {
  background: #8DB959;
  color: #093752;
}
.cookie-consent-btn.settings:hover {
  background: #093752;
  color: #8DB959;
}

/* ==================================
  HEADER, NAVIGATION, LOGO & MENU
  ================================== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #F3F6F2;
  box-shadow: 0 2px 7px rgba(9,55,82,0.03);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  min-height: 76px;
  justify-content: space-between;
  gap: 12px;
}
header img {
  height: 55px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  font-size: 1.09rem;
  color: #093752;
  letter-spacing: .01em;
  padding: 2px 6px;
  transition: color 0.16s;
}
nav a.active, nav a:active {
  color: #8DB959;
  text-decoration: underline;
}
@media (max-width: 980px) {
  nav {
    gap: 15px;
  }
}
@media (max-width: 820px) {
  nav {
    gap: 7px;
  }
}

/* ===============
   MOBILE MENU
   =============== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #8DB959;
  color: #093752;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
  margin-left: 18px;
  border: none;
  z-index: 34;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #093752;
}
@media (max-width: 970px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-button {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #F3F6F2;
  box-shadow: 2px 0 22px rgba(9,55,82,0.12);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 16px 30px 20px 30px;
  transform: translateX(-105vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 390ms cubic-bezier(.72,0,.32,1), opacity 180ms linear;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: #8DB959;
  color: #093752;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  margin-right: 5px;
  margin-bottom: 23px;
  transition: background 0.17s;
}
.mobile-menu-close:hover {
  background: #093752;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.35rem;
  font-family: 'Montserrat', serif;
  color: #093752;
  padding: 10px 0;
  border-bottom: 1px solid #DDD;
  width: 100%;
  display: block;
  transition: color 0.15s;
}
.mobile-nav a:hover {
  color: #8DB959;
  background: #e8efdd;
}
@media (min-width: 971px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =====================================
   HERO, PAGE AND FEATURE SECTIONS
   ===================================== */
.features-grid,
.services-preview,
.services-list,
.advantages-list,
.case-studies,
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 15px;
  justify-content: space-between;
}
.features-grid>div,
.services-preview>div,
.services-list>div,
.advantages-list>div,
.case-studies>div,
.contact-details>div {
  background: #F3F6F2;
  border-radius: 14px;
  padding: 28px 18px 22px 18px;
  border: 1.5px solid #e1e7d9;
  box-shadow: 0 1px 5px rgba(9,55,82,0.05);
  flex: 1 1 220px;
  min-width: 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  transition: box-shadow 0.2s, border 0.2s;
}
.features-grid>div:hover,
.services-preview>div:hover,
.services-list>div:hover,
.advantages-list>div:hover {
  border: 1.5px solid #8DB959;
  box-shadow: 0 4px 12px rgba(141,185,89,0.08);
}
.features-grid img,
.services-list img,
.advantages-list img,
.contact-details img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}
.services-list>div {
  background: #fff;
}
.case-studies>div {
  border: 1px dashed #8DB959;
  background: #f8faf6;
}

@media (max-width: 1024px) {
  .features-grid, .services-preview, .services-list, .advantages-list, .case-studies, .contact-details {
    gap: 18px;
  }
  .features-grid>div, .services-preview>div, .services-list>div, .advantages-list>div, .case-studies>div, .contact-details>div {
    min-width: 180px;
    padding: 20px 12px 17px 12px;
    font-size: 1rem;
  }
}
@media (max-width: 800px) {
  .features-grid, .services-preview, .services-list, .case-studies, .advantages-list, .contact-details {
    gap: 12px;
    flex-direction: column;
  }
  .features-grid>div, .services-preview>div, .services-list>div, .advantages-list>div, .case-studies>div, .contact-details>div {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    padding: 15px 7px 14px 12px;
  }
}

/* Process steps (Leistungen Ablauf) */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 8px;
  margin-bottom: 24px;
}
.process-steps li {
  background: #F3F6F2;
  border-left: 4px solid #8DB959;
  border-radius: 8px;
  padding: 11px 14px 11px 17px;
  font-size: 1.08rem;
  color: #093752;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.process-steps img {
  height: 28px;
  width: 28px;
  margin-right: 7px;
}

.timeline-overview {
  font-size: 1.08rem;
  color: #36383d;
  background: #e9edec;
  border-radius: 7px;
  padding: 11px 18px;
  margin-top: 5px;
}

.opening-hours {
  font-size: 1.13rem;
  margin-bottom: 13px;
  margin-left: 12px;
  color: #093752;
}
.opening-hours li {
  margin-bottom: 2px;
}

.map-snippet {
  margin: 18px 0 9px;
  background: #edf2ee;
  border-radius: 9px;
  padding: 20px 20px 14px 24px;
  color: #536174;
  font-size: 1.08rem;
}
.map-snippet h3 {
  color: #093752;
  margin-top: 0;
  margin-bottom: 6px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list>div {
  background: #F3F6F2;
  border-radius: 10px;
  border: 1px solid #e1e7d9;
  padding: 22px 17px 17px 18px;
  margin-bottom: 20px;
}
.faq-list h3 {
  margin-bottom: 7px;
}

/* ============================
   TESTIMONIALS + CARDS
   ============================ */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 11px;
  margin-bottom: 23px;
  align-items: stretch;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  background: #fff;
  border-radius: 15px;
  border: 1.4px solid #8DB959;
  box-shadow: 0 2px 13px rgba(141,185,89,0.09);
  padding: 26px 23px 19px 23px;
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 400px;
  color: #093752;
  transition: box-shadow 0.25s, border 0.23s;
}
.testimonial-card:hover {
  border: 1.8px solid #093752;
  box-shadow: 0 6px 24px rgba(9,55,82,0.09);
}
.testimonial-card p {
  font-size: 1.14rem;
  color: #093752;
  margin-bottom: 5px;
  line-height: 1.6;
  font-style: italic;
}
.testimonial-card strong {
  font-size: 1.01rem;
  color: #536174;
  font-weight: 500;
  margin-top: 5px;
}

@media (max-width: 800px) {
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 98%;
    min-width: 0;
  }
}

.card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 11px rgba(9,55,82,0.07);
  padding: 22px 19px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border 0.2s;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

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

/* ==============
   FOOTER
   ============== */
footer {
  width: 100%;
  background: #093752;
  color: #fff;
  border-top: 2px solid #F3F6F2;
  padding: 35px 0 15px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
footer img {
  height: 48px;
  margin-right: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}
footer nav a {
  color: #F3F6F2;
  font-family: 'Montserrat', serif;
  font-weight: 400;
  font-size: 1.08rem;
  padding-bottom: 3px;
}
footer nav a:hover {
  color: #8DB959;
}
.footer-contact p,
.footer-contact a {
  font-size: 1rem;
  color: #edf4ed;
}
.footer-contact a:hover {
  color: #8DB959;
}
@media (max-width: 950px) {
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 19px;
  }
}
@media (max-width: 780px) {
  footer {
    padding: 17px 0 8px 0;
  }
  footer img {
    height: 37px;
    margin-top: 9px;
    margin-bottom: 17px;
  }
}

/* =====================================================
   COOKIE CONSENT BANNER & MODAL
   ===================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -3px 14px rgba(9,55,82,0.12);
  border-top: 2px solid #8DB959;
  padding: 22px 18px;
  z-index: 1011;
  display: flex;
  flex-direction: row;
  gap: 34px;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.77,0,0.18,1), opacity 0.25s;
}
.cookie-consent-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: #093752;
  flex: 1 1 0;
  margin-bottom: 0;
  margin-right: 18px;
}
.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
@media (max-width: 800px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 6px 18px 6px;
  }
  .cookie-consent-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
}

.cookie-consent-banner .cookie-consent-btn {
  min-width: 145px;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1050;
  background: rgba(9,55,82,0.40);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.28s;
}
.cookie-modal.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 38px rgba(9,55,82,0.17);
  max-width: 420px;
  width: 95%;
  padding: 32px 25px 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal-title {
  font-family: 'Montserrat', serif;
  font-size: 1.44rem;
  color: #093752;
  margin-bottom: 10px;
}
.cookie-modal-category {
  margin-bottom: 8px;
  font-size: 1.08rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-modal-category > label {
  font-family: 'Roboto', Georgia, Times, serif;
  color: #36383d;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: #8DB959;
  width: 21px; height: 21px;
}
.cookie-modal-category .cookie-essential {
  font-style: italic;
  color: #8DB959;
  margin-left: 8px;
  font-size: 1rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 600px) {
  .cookie-modal-dialog {
    padding: 16px 4px 12px 8px;
    border-radius: 8px;
  }
}

/* =============
   ANIMATIONS
   ============= */
.cta-button, .cookie-consent-btn, .cookie-modal-btn {
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.12s;
}
section, .card, .testimonial-card, .features-grid>div,
.advantages-list>div, .services-list>div, .case-studies>div {
  transition: box-shadow 0.15s, border 0.21s, transform 0.14s;
}
.card:hover, .testimonial-card:hover, .features-grid>div:hover, .advantages-list>div:hover, .services-list>div:hover, .case-studies>div:hover {
  transform: translateY(-2px) scale(1.016);
  box-shadow: 0 8px 28px rgba(9,55,82,0.10);
  border-color: #093752;
}

/* ===============================
   MISC: OTHERS & ADJUSTMENTS
   =============================== */
::-webkit-scrollbar {
  width: 6px;
  background: #f0f4ef;
}
::-webkit-scrollbar-thumb {
  background: #b9d39f;
  border-radius: 8px;
}

hr {
  border: none;
  border-top: 1.5px solid #e1e7d9;
  margin: 32px 0 28px 0;
}

/* Tables (for legal pages, text-section) */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  border: 1.2px solid #d7dcd5;
  padding: 8px 13px;
  font-size: 1.04rem;
}
th {
  background: #eaf2e5;
  font-family: 'Montserrat', serif;
}

blockquote {
  font-style: italic;
  background: #eaf6e5;
  border-left: 4px solid #8DB959;
  padding: 14px 22px;
  border-radius: 12px;
  margin: 18px 0;
  color: #093752;
}

/* =====================
   FORMS (Kontakt, etc.)
   ===================== */
input, textarea {
  padding: 11px 14px;
  font-family: 'Roboto', Georgia, Times, serif;
  font-size: 1.09rem;
  border: 1.2px solid #bfc9c1;
  background: #F3F6F2;
  border-radius: 8px;
  margin-bottom: 14px;
  width: 100%;
}
input:focus, textarea:focus {
  outline: 2px solid #8DB959;
  background: #fff;
}
label {
  font-size: 1.06rem;
  color: #093752;
  font-family: 'Montserrat', serif;
}

/* ===============================
   UTILITIES & HIDE
   =============================== */
.hide { display: none !important; }

/* keep card margins for any generic .card visuals */
.card {
  margin-bottom: 20px;
}

/* ENFORCE FLEXBOX GAP/PATTERNS */
.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; }

/* FINAL RESPONSIVE ADJUSTMENTS */
@media (max-width: 600px) {
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.4rem; }
  nav a, .footer-contact p, th, td { font-size: 0.99rem; }
  .cta-button, .cookie-consent-btn, .cookie-modal-btn {
    font-size: 1rem;
    padding: 10px 13px;
  }
}
