/* =====================
   CSS RESET & BASE STYLE
   ===================== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFF8F0;
  color: #143B56;
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a {
  color: #143B56;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover,
a:focus { color: #82B1A6; }
ul, ol { margin-left: 24px; }
strong, b { font-weight: bold; }

/* ====================
   BRAND COLORS & FONTS
   ==================== */
:root {
  --color-primary: #143B56;
  --color-secondary: #82B1A6;
  --color-accent: #FFF8F0;
  --color-highlight: #FFBE76;
  --color-negative: #ED4C4C;
  --color-text: #143B56;
  --color-card-bg: #fff;
  --color-shadow: rgba(20,59,86,0.07);
  --color-contr: #fff;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  font-weight: 700;
  line-height: 1.13;
}
h1 { font-size: 2.75rem; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 800; }
h3 { font-size: 1.375rem; font-weight: 700; }
h4 { font-size: 1.125rem; }

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

/* Artistic Section Titles & Ornament */
h1, h2 {
  position: relative;
}
h2:after {
  content: "";
  display: block;
  width: 58px;
  height: 8px;
  margin-top: 6px;
  background: var(--color-secondary);
  border-radius: 4px;
  opacity: 0.45;
}

/* ================================
   FLEXBOX GLOBAL CONTAINER PATTERNS
   ================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.card-container,
.card-grid,
.feature-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 20px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 28px 28px 28px;
  flex: 1 1 220px;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px rgba(130,177,166,0.18), 0 4px 24px var(--color-shadow);
  transform: translateY(-4px) scale(1.02);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .content-wrapper,
  .card-container, .card-grid, .feature-grid, .content-grid,
  .text-image-section { flex-direction: column; }
}

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

/* =========================
   HEADER & MAIN NAVIGATION
   ========================= */
header {
  background: var(--color-primary);
  color: var(--color-contr);
  padding: 0;
  box-shadow: 0 3px 18px rgba(20,59,86,0.07);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 18px;
  position: relative;
}
header a {
  color: var(--color-contr);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  margin-right: 18px;
  letter-spacing: 0.005em;
  transition: color 0.13s;
}
header nav a:last-child { margin-right: 0; }

header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header nav .cta-button {
  margin-left: 20px;
}

header img[alt="HausVision"] {
  height: 46px;
  width: auto;
}

/* =================
   CTA BUTTONS
   ================= */
.cta-button,
button.cta-button,
.mobile-nav a.cta-button {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.08rem;
  border:none;
  border-radius: 32px;
  padding: 12px 30px;
  margin: 0 0 0 12px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s, transform 0.19s;
  box-shadow: 0 2px 10px rgba(130,177,166,0.08);
  letter-spacing: 0.03em;
  text-shadow: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-highlight);
  color: var(--color-primary);
  transform: scale(1.045);
  box-shadow: 0 4px 18px rgba(130,177,166,0.18);
}

/* ===================
   BURGER MENU MOBILE
   =================== */
.mobile-menu-toggle {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-size: 2.2rem;
  border-radius: 12px;
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s;
  margin-left: 18px;
  z-index: 101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-highlight);
}

@media (max-width: 1024px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 768px) {
  header .container { height: 64px; }
  header img[alt="HausVision"] { height: 36px; }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,59,86,0.97);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(0.8,0.1,0.32,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-secondary);
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 24px 26px 0 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 1;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-highlight);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 60px 0 0 38px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 7px 0 7px 0;
  border-radius: 8px;
  line-height: 1.4;
  transition: color 0.14s, background 0.16s;
  margin: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav a.cta-button {
  margin-top: 16px;
  background: var(--color-highlight);
  color: var(--color-primary);
  display: inline-block;
  text-align: center;
  font-size: 1rem;
  padding: 11px 20px;
}

@media (min-width: 1025px) {
  .mobile-menu { display:none !important; }
}

/* ===============
   HERO SECTION
   =============== */
.hero {
  background: linear-gradient(120deg, #82B1A6 0%, #FFF8F0 70%);
  padding: 75px 0 80px 0;
  border-radius: 0 0 48px 48px;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 640px;
  background: rgba(255,255,255,0.93);
  padding: 42px 38px;
  border-radius: 32px 32px 24px 8px;
  box-shadow: 0 8px 36px rgba(20,59,86,0.11);
  position: relative;
}
.hero h1 {
  margin-bottom: 26px;
  background: linear-gradient(90deg, #143B56 60%, #82B1A6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-display);
  font-size: 2.55rem;
}
.hero p {
  font-size: 1.25rem;
  color: #143B56;
  margin-bottom: 40px;
  font-weight: 500;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 32px 0;
    border-radius: 0 0 18px 18px;
  }
  .hero .content-wrapper { padding: 18px 10px; }
  .hero h1 { font-size: 1.55rem; }
  .hero p { font-size: 1rem; margin-bottom: 24px; }
}

/* ===================
   FEATURES & CARDS
   =================== */
.feature-grid > div, .feature-item, .faq-list h2 {
  background: #fff;
  border-radius: 20px;
  padding: 28px 18px 18px 18px;
  min-width: 210px;
  flex: 1 1 210px;
  box-shadow: 0 2px 15px rgba(130,177,166,0.11);
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.2s;
  border-left: 7px solid var(--color-secondary);
  z-index: 1;
}
.feature-grid > div:hover, .feature-grid > div:focus {
  box-shadow: 0 7px 28px rgba(130,177,166,0.19);
  transform: scale(1.025) translateY(-5px);
}
.feature-grid > div img {
  height: 50px;
  width: 50px;
  margin-bottom: 15px;
}

/* ===================
   TESTIMONIALS
   =================== */
.testimonial-slider {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 22px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-shadow);
  min-width: 245px;
  max-width: 350px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.2s;
  border-left: 6px solid var(--color-secondary);
  font-size: 1.06rem;
}
.testimonial-card p {
  color: #143B56;
  font-size: 1.1rem;
  font-family: var(--font-body);
  margin-bottom: 10px;
}
.testimonial-card .testimonial-name {
  color: #82B1A6;
  font-size: 0.98rem;
  font-style: italic;
  font-family: var(--font-display);
  margin-left: 2px;
  letter-spacing: 0.01em;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 7px 28px rgba(130,177,166,0.18);
  transform: scale(1.025) translateY(-3px);
}

/* Text blockquote testimonials for referenzen.html */
blockquote {
  padding: 20px 32px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 6px solid var(--color-secondary);
  color: #143B56;
  font-family: var(--font-body);
  font-size: 1.04rem;
}
blockquote span {
  display: block;
  margin-top: 11px;
  color: #82B1A6;
  font-size: 0.98rem;
  font-style: italic;
  font-family: var(--font-display);
}

/* ===================
   FAQ Section
   =================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.faq-list h2 {
  color: var(--color-secondary);
  background: #fff;
  border-radius: 12px 8px 12px 8px;
  border-left: 5px solid var(--color-highlight);
  font-size: 1.18rem;
  margin-bottom: 10px;
  padding: 12px 9px;
  font-family: var(--font-display);
}
.faq-list p {
  margin-bottom: 8px;
  padding-left: 20px;
  color: #143B56;
  font-size: 1.01rem;
}

/* ===================
   TEXT & MISC SECTIONS
   =================== */
.text-section, .address-map {
  background: #fff;
  border-radius: 15px;
  padding: 24px 32px;
  font-size: 1.03rem;
  box-shadow: 0 1px 7px rgba(130,177,166,0.08);
  margin-bottom: 20px;
}
.text-section ul, .text-section ol, .faq-list ul, .faq-list ol {
  margin: 13px 0 13px 19px;
  padding: 0;
}
.text-section li {
  margin-bottom: 8px;
  font-size: 1rem;
}
.text-section img {
  height: 22px;
  width: 22px;
  margin-right: 8px;
  vertical-align: middle;
}
.address-map strong {
  color: var(--color-secondary);
  font-size: 1.12rem;
}

/* Ordered steps list (leistungen) */
ol {
  counter-reset: artistic-counter;
  list-style: none;
}
ol li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 35px;
}
ol li:before {
  content: counter(artistic-counter, decimal-leading-zero);
  counter-increment: artistic-counter;
  position: absolute;
  left: 0; top: 0;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 50%;
  width: 25px; height: 25px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 700;
  margin-right: 8px;
}

/* ===================
   FOOTER
   =================== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 34px 0 25px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 1rem;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 500;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus { color: var(--color-highlight); }
footer address {
  font-style: normal;
  font-family: var(--font-body);
  color: var(--color-accent);
  line-height: 1.69;
  font-size: 1rem;
}
footer p {
  color: #ccd6db;
  margin-top: 16px;
  font-size: 0.96rem;
}
footer a {
  text-decoration: underline;
  color: #fff8f0;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    padding: 0 8px;
  }
}

/* ===================
   COOKIE CONSENT BANNER
   =================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 5px solid var(--color-secondary);
  box-shadow: 0 -2px 22px rgba(20,59,86,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  z-index: 3000;
  font-size: 1.03rem;
  gap: 32px;
  transition: transform 0.27s;
}
.cookie-banner.hide {
  transform: translateY(115%);
}
.cookie-banner .cookie-text {
  color: #143B56;
  max-width: 480px;
  line-height: 1.67;
}
.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 24px;
  padding: 9px 24px;
  margin: 0 5px;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(130,177,166,0.10);
  background: var(--color-secondary);
  color: var(--color-primary);
  transition: background 0.18s, color 0.19s, transform 0.2s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-highlight);
  color: var(--color-primary);
  transform: scale(1.04);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
    gap: 18px;
  }
  .cookie-banner .cookie-text { max-width: 100%; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3100;
  background: rgba(20,59,86,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  padding: 36px 34px;
  border-radius: 20px;
  box-shadow: 0 7px 33px rgba(20,59,86,0.19);
  width: 98%;
  max-width: 420px;
  position: relative;
  animation: modalSlideIn 0.39s cubic-bezier(.22,1.22,.36,1) 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes modalSlideIn {
  from { transform: translateY(60px) scale(0.97); opacity: 0.5; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 { color: var(--color-primary); font-size: 1.38rem; }
.cookie-modal-close {
  background: none;
  color: #143B56;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 17px;
  right: 22px;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e2e2;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-family: var(--font-body);
  color: #143B56;
  font-size: 1.08rem;
  font-weight: 500;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 24px;
  background: #e2e2e2;
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: background 0.18s;
}
.cookie-toggle.checked {
  background: var(--color-secondary);
}
.cookie-toggle .dot {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 1px;
  transition: left 0.21s;
  box-shadow: 0 1px 4px rgba(20,59,86,0.07);
}
.cookie-toggle.checked .dot {
  left: 21px;
}
.essential { color: #bbb; font-size: 0.98em; }

.cookie-modal-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

/* ===============
   ANIMATIONS
   =============== */
.cta-button, .cookie-banner button, .mobile-menu-toggle, .card, .feature-grid>div,
.testimonial-card, .faq-list h2 {
  transition: box-shadow 0.19s, background 0.19s, color 0.15s, transform 0.19s;
}

/* Misc animation for entry */
.section, .card, .feature-grid>div, .testimonial-card, .faq-list h2, .cta-button {
  animation: fadeInterval 0.68s cubic-bezier(.22,1.10,.36,1) 1;
}
@keyframes fadeInterval {
  from { opacity: 0; transform: translateY(35px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ===================
   RESPONSIVE LAYOUT
   =================== */
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  .card-container,
  .card-grid,
  .feature-grid,
  .content-grid {
    gap: 16px;
  }
}
@media (max-width: 820px) {
  .feature-grid>div,
  .card {
    min-width: 180px;
    flex: 1 1 98vw;
  }
}
@media (max-width: 799px) {
  .section { padding: 32px 8px; margin-bottom: 38px; }
}
@media (max-width: 700px) {
  .testimonial-card, .feature-grid>div, .card {
    max-width: 97vw;
    min-width: 90vw;
    padding: 16px 8px;
  }
  .content-wrapper {
    padding: 0 3vw;
    gap: 19px;
  }
}
@media (max-width: 480px) {
  .hero .content-wrapper { padding: 8px 4px; }
}

/* ===============
   ARTISTIC TOUCHES
   =============== */
.card:before, .feature-grid>div:before,
.testimonial-card:before, .faq-list h2:before {
  content: '';
  display: block;
  position: absolute;
  top: -16px;
  left: 30px;
  width: 60px; height: 10px;
  background: var(--color-highlight);
  border-radius: 8px;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.card:before { left: 28px; width: 76px; }
.feature-grid>div:before { width: 32px; top: -8px; left: 28px; }
.testimonial-card:before { width: 44px; left: 18px; top: -14px; }
.faq-list h2:before { width: 33px; left: 16px; top: -8px; }
@media (max-width: 599px) {
  .card:before, .feature-grid>div:before, .testimonial-card:before, .faq-list h2:before { display: none; }
}

/* ===============
   ACCESSIBILITY
   =============== */
:focus {
  outline: 2.5px dotted var(--color-highlight);
  outline-offset: 3px;
}

/* Hide visually but accessible labels for toggle */
.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ===================
   MISC STRUCTURAL
   =================== */
main { min-height: 60vh; }
.section:last-child { margin-bottom: 0; }
.card-container:last-child, .content-grid:last-child, .feature-grid:last-child { margin-bottom: 0; }

/* ===================
   END OF MAIN CSS
   =================== */