/* =======================================
  Haut & Haar Leicht  - Professional Corporate CSS
  Author: OpenAI Assistant (2024)
  ======================================= */

/* ----------- Reset & Normalize ---------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1b2a2f;
  background: #F9F6F0;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #30575C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #1b393e;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
  margin-top: 8px;
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #23363a;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5em;
}
h1 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  margin-top: 0.6em;
}
h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}
h3 {
  font-size: 1.125rem;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, blockquote, details, summary {
  font-size: 1rem;
  margin-bottom: 16px;
}
blockquote {
  border-left: 4px solid #B6D7D2;
  background: #eef4f3;
  padding: 16px 24px;
  margin: 20px 0;
  font-style: italic;
  color: #33505a;
}
strong {
  color: #30575C;
}

/* ----------- Utility Classes ------------- */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  gap: 16px;
}
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* ---------------- Header ----------------- */
header {
  background: #30575C;
  color: #fff;
  width: 100%;
  position: relative;
  box-shadow: 0 2px 16px rgba(48,87,92,0.07);
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img[alt="Haut & Haar Leicht"] {
  height: 48px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-size: 1rem;
  padding: 4px 8px;
  transition: background 0.2s, color 0.2s;
  border-radius: 4px;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #B6D7D2;
  color: #223739;
}

header .btn.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 24px;
  background: #B6D7D2;
  color: #23363a;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(48,87,92,0.10);
  margin-left: 16px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
header .btn.btn-primary:hover,
header .btn.btn-primary:focus {
  background: #30575C;
  color: #fff;
  box-shadow: 0 4px 16px rgba(48,87,92,0.18);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  margin-left: 24px;
  cursor: pointer;
  z-index: 61;
  padding: 8px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #B6D7D2;
  color: #223739;
}

/* ------------- Mobile menu ------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(48,87,92,0.96);
  color: #fff;
  z-index: 60;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  margin: 24px 24px 8px 0;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #B6D7D2;
  color: #30575C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 32px;
  margin-top: 12px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #B6D7D2;
  background: none;
}

@media (max-width: 992px) {
  .main-nav { gap: 16px; }
  header .container { padding-right: 12px; padding-left: 12px; }
}
@media (max-width: 768px) {
  .main-nav,
  header .btn.btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ------------ Main Layout Spacing --------- */
main {
  margin-bottom: 60px;
  min-height: 50vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.section, /* compatibility for .section class in legacy */
.hero-section,
.features-section,
.about-brief,
.testimonial-preview,
.cta-section,
.services-section,
.info-section,
.faq-section,
.contact-section,
.legal-section,
.confirmation-section,
.blog-list-section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 576px) {
  section, .section { padding: 28px 5px; }
}

/* ----------- Hero Section ----------------- */
.hero-section {
  background: #B6D7D2;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 4px 32px rgba(48,87,92,0.06);
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero-section h1 {
  color: #30575C;
  font-size: 2.5rem;
}
.hero-section p {
  font-size: 1.2rem;
  max-width: 540px;
}
.hero-section .btn.btn-primary {
  margin-top: 12px;
}

@media (max-width: 768px) {
  .hero-section h1 { font-size: 2rem; }
}

/* ------------- Features Section ----------- */
.features-section {
  background: #F9F6F0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1.5px 8px 0 rgba(48,87,92,0.09);
  padding: 28px 22px;
  min-width: 260px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item img {
  width: 48px;
  height: 48px;
}
.feature-item h3 {
  font-size: 1.2rem;
  color: #30575C;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 8px 32px rgba(48,87,92,0.15);
  transform: translateY(-4px) scale(1.01);
}
@media (max-width: 900px) {
  .feature-grid { gap: 20px; }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* ------------ About / Text Sections ------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.07rem;
  color: #213133;
}
.text-section ul, .text-section ol {
  margin-left: 1.2em;
  margin-bottom: 10px;
}
.text-section li {
  margin-bottom: 6px;
  padding-left: 0.3em;
}
.text-section a.btn-link,
.btn-link {
  color: #30575C;
  font-weight: 500;
  text-decoration: underline;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.18s;
}
.text-section a.btn-link:hover,
.btn-link:hover {
  color: #1b393e;
}

/* -------------- Testimonials -------------- */
.testimonial-preview {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(48,87,92,0.06);
}
.testimonial-preview > .container > h2 {
  color: #30575C;
  margin-bottom: 12px;
}
.testimonial-preview .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f2f6f7;
  border-radius: 14px;
  min-width: 240px;
  max-width: 320px;
  box-shadow: 0 1.5px 8px 0 rgba(48,87,92,0.075);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.18s;
}
.testimonial-card p {
  color: #23363a;
  font-size: 1em;
}
.testimonial-card span {
  color: #30575C;
  font-weight: 600;
  font-size: 0.96em;
  padding-left: 10px;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  background: #B6D7D2;
  box-shadow: 0 8px 32px rgba(48,87,92,0.13);
}

@media (max-width: 768px) {
  .testimonial-preview .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
}

/* -------------- CTA Section --------------- */
.cta-section {
  background: #30575C;
  color: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 16px rgba(48,87,92,0.18);
  text-align: center;
}
.cta-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 16px;
}
.cta-section h2, .cta-section p {
  color: #fff;
}
.btn-large {
  font-size: 1.2rem;
  padding: 16px 38px;
  border-radius: 28px;
}

/* ------------- FAQ (Details) -------------- */
.faq-section details {
  background: #f2f6f7;
  margin-bottom: 16px;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 1.5px 8px 0 rgba(48,87,92,0.08);
  transition: box-shadow 0.18s;
}
.faq-section details summary {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  outline: none;
  color: #30575C;
  font-size: 1rem;
  margin-bottom: 4px;
}
.faq-section details[open] {
  box-shadow: 0 4px 18px rgba(48,87,92,0.12);
  background: #B6D7D2;
}
.faq-section details div {
  margin-top: 10px;
  color: #213133;
  font-size: 0.98rem;
}

/* ----------- Blog List/Teaser -------------- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.blog-post-teaser {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 8px 0 rgba(48,87,92,0.09);
  padding: 24px 16px;
  min-width: 240px;
  width: 100%;
  max-width: 340px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.18s, transform 0.18s;
}
.blog-post-teaser h3 {
  color: #30575C;
  font-size: 1.1rem;
}
.blog-post-teaser p {
  font-size: 1rem;
  margin-bottom: 10px;
}
.blog-post-teaser .btn-link {
  align-self: flex-start;
  margin-top: 10px;
}
.blog-post-teaser:hover,
.blog-post-teaser:focus-within {
  box-shadow: 0 8px 32px rgba(48,87,92,0.13);
  background: #f2f6f7;
  transform: translateY(-3px) scale(1.02);
}
@media (max-width: 800px) {
  .blog-list { flex-direction: column; gap: 16px; }
}

.blog-search-filter {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}
.blog-search-filter input[type="search"] {
  flex: 2 1 0px;
  padding: 8px 12px;
  border: 1px solid #B6D7D2;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #23363a;
  transition: border 0.2s;
}
.blog-search-filter input[type="search"]:focus {
  outline: none;
  border: 1.5px solid #30575C;
  background: #F9F6F0;
}
.blog-search-filter .btn {
  padding: 8px 20px;
  background: #30575C;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.blog-search-filter .btn:hover,
.blog-search-filter .btn:focus {
  background: #B6D7D2;
  color: #30575C;
}
@media (max-width: 600px) {
  .blog-search-filter { flex-direction: column; gap: 10px; align-items: stretch; }
}

/* --------------- Footer ------------------- */
footer {
  background: #23363a;
  color: #fff;
  padding: 40px 0 0 0;
  font-size: 1rem;
  margin-top: 60px;
  box-shadow: 0 -1.5px 16px rgba(48,87,92,0.08);
}
.footer-nav {
  display: flex;
  gap: 32px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.footer-nav a, footer a {
  color: #B6D7D2;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.18s, text-decoration 0.18s;
  font-size: 0.98rem;
  font-weight: 500;
}
.footer-nav a:hover,
.footer-nav a:focus,
.footer-nav a,
footer a:hover,
footer a:focus {
  color: #fff;
  text-decoration: underline;
}
footer address {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #d6e9e7;
  font-size: 0.98rem;
  margin-top: 16px;
  margin-bottom: 14px;
}
footer address img {
  height: 18px;
  width: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
  margin-bottom: 0;
  padding-bottom: 20px;
}
.footer-brand img {
  width: 32px;
  height: 32px;
}
.footer-brand span {
  font-size: 0.94rem;
  color: #B6D7D2;
}

@media (max-width: 600px) {
  .footer-nav { gap: 14px; flex-direction: column; padding-bottom: 10px; }
  .footer-brand { justify-content: center; gap: 6px; }
}

/* ---------------- Buttons ----------------- */
.btn, .btn-primary {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 20px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: #30575C;
  color: #fff;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(48,87,92,0.08);
  text-align: center;
}
.btn-primary {
  background: #B6D7D2;
  color: #30575C;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #30575C;
  color: #fff;
  box-shadow: 0 6px 20px rgba(48,87,92,0.16);
}
.btn:hover, .btn:focus {
  background: #B6D7D2;
  color: #30575C;
  box-shadow: 0 4px 12px rgba(48,87,92,0.13);
}

/* ----- Cookie Consent Banner ----------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  background: #fff;
  color: #23363a;
  box-shadow: 0 3px 24px 0 rgba(48,87,92,0.18);
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 24px 24px 20px 24px;
  gap: 24px;
  z-index: 90;
  max-width: 680px;
  margin: 0 auto;
  transition: opacity 0.3s, transform 0.3s;
  font-size: 1rem;
  animation: cookie-slide-up 0.45s cubic-bezier(.32,.96,.53,1) 0s 1;
}
@keyframes cookie-slide-up {
  0% { opacity:0; transform: translateY(50px); }
  100% { opacity:1; transform: translateY(0); }
}
.cookie-banner__content {
  flex: 1 1 0px;
  color: #23363a;
  font-size: 1rem;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner .cookie-btn {
  padding: 7px 20px;
  border-radius: 18px;
  border: none;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: #30575C;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #1b393e;
}
.cookie-btn.reject {
  background: #B6D7D2;
  color: #23363a;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f2f6f7;
  color: #30575C;
}
.cookie-btn.settings {
  background: transparent;
  color: #30575C;
  border: 1px solid #B6D7D2;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #B6D7D2;
  color: #23363a;
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 18px 12px; }
  .cookie-banner__actions { flex-direction: column; gap: 8px; }
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(48,87,92,0.4);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fade-in { 0% { opacity: 0;} 100% { opacity:1; } }

.cookie-modal {
  background: #fff;
  border-radius: 20px;
  padding: 32px 26px 24px 26px;
  max-width: 370px;
  width: 90vw;
  box-shadow: 0 4px 36px 0 rgba(48,87,92,0.26);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 101;
  animation: modal-in 0.33s cubic-bezier(.32,.96,.53,1) 0s 1;
}
@keyframes modal-in { 0% { opacity:0; transform: translateY(-60px);}  100% { opacity:1; transform: none;} }
.cookie-modal h3 {
  font-size: 1.3rem;
  color: #30575C;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f2f6f7;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.cookie-category .label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #23363a;
}
.cookie-category input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #30575C;
}
.cookie-modal .btn-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #30575C;
  font-size: 1.45rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #B6D7D2;
  color: #1b393e;
}

/* --------------- Cards, Containers --------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 8px 0 rgba(48,87,92,0.09);
  margin-bottom: 20px;
  padding: 24px 18px;
  position: relative;
  transition: box-shadow 0.19s, background 0.17s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 7px 30px rgba(48,87,92,0.13);
  transform: translateY(-2px) scale(1.01);
}
.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: 16px;
    align-items: flex-start;
  }
  .card-container,
  .content-grid { gap: 14px; }
}

/* ----------- Contact / Map Section --------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #213133;
}
.contact-details img {
  width: 20px;
  height: 20px;
}
.map-embed {
  margin-top: 20px;
  background: #eef4f3;
  border-radius: 12px;
  padding: 14px 18px;
  color: #23363a;
}

/* -------- Confirmation Section ---------- */
.confirmation-section .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.confirmation-section a.btn-primary {
  margin-top: 16px;
}

/* -------- Legal Sections --------------- */
.legal-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(48,87,92,0.06);
}
.legal-section .text-section h2 {
  margin-top: 1.8em;
}

/* ------------ Miscellaneous ------------- */
::-webkit-input-placeholder { color: #96b3b4; opacity:1; }
:-moz-placeholder { color: #96b3b4; opacity:1; }
::-moz-placeholder { color: #96b3b4; opacity:1; }
:-ms-input-placeholder { color: #96b3b4; opacity:1; }
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* --------- Typography Scale ------------- */
@media (min-width: 1200px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 1.65rem; }
}

/* --------- Responsive Adjustments -------- */
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.25rem !important; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 1.6rem !important; }
  h2 { font-size: 1rem !important; }
}

/* -------- Print friendly ----------- */
@media print {
  * { color: #000 !important; background: none !important; box-shadow: none !important; }
}

/* ------- Accessibility Focus --------- */
a:focus, button:focus, .btn:focus {
  outline: 2px solid #30575C;
  outline-offset: 2px;
}

/* ========== End CSS ========== */
