/* ========================
   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;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  background: #FAF8F4;
  scroll-behavior: smooth;
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #222;
  background: #FAF8F4;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #264653;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #E9C46A;
  outline: none;
}
ul, ol {
  list-style: none;
  padding: 0;
}

/* =========================
   FONT DEFINITIONS
   (Elegant Classic serif)
========================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Playfair Display', Georgia, serif;
  background: #FAF8F4;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #222;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2.1rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}
p, li, blockquote, span, label {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #3B3B3B;
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}

/* =======================
   CONTAINER & LAYOUT
======================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}


/* ========================
   HEADER & NAVIGATION
======================== */
header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 2px 6px rgba(38, 70, 83, 0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  height: 46px;
  margin-right: 36px;
}
.logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  color: #264653;
  padding: 8px 0;
  font-weight: 600;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #E9C46A;
  border-bottom: 2px solid #E9C46A;
}
.main-nav .cta {
  background: #264653;
  color: #fff !important;
  border-radius: 26px;
  padding: 8px 28px;
  margin-left: 16px;
  border: none;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background .2s, color .2s;
  box-shadow: 0 3px 10px rgba(38,70,83,0.09);
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: #E9C46A;
  color: #264653 !important;
}

/* ========================
   MOBILE NAVIGATION
======================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.3rem;
  color: #264653;
  cursor: pointer;
  z-index: 1200;
  padding: 2px 10px;
  transition: color 0.13s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #E9C46A;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(38,70,83,0.97);
  z-index: 1201;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.66,0,.19,1);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: #fff;
  margin: 28px 30px 12px 0;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E9C46A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 40px;
  margin-top: 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 12px 0;
  transition: color .2s;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  width: 80vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #E9C46A;
}
@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .logo {
    margin-right: 0;
  }
}

/* ========================
   HERO / INTRO SECTIONS
======================== */
.hero {
  background: #fff;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 4px 30px rgba(38,70,83,0.09);
  margin-bottom: 60px;
  padding-bottom: 30px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  color: #264653;
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.hero p {
  color: #58503d;
  font-size: 1.17rem;
  margin-bottom: 24px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================
   FEATURES / CARDS
======================== */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  background: #f7f5f1;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(38,70,83,0.04);
  padding: 32px 24px 28px 24px;
  flex: 1 1 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #ece9e3;
  transition: box-shadow .2s, border-color .23s;
  margin-bottom: 20px;
}
.feature img {
  height: 39px;
  width: 39px;
  margin-bottom: 9px;
  filter: grayscale(0.22) contrast(0.9);
}
.feature h3 {
  color: #264653;
  font-size: 1.16rem;
  font-weight: 700;
}
.feature p {
  font-size: 0.98rem;
  color: #544B39;
  margin-bottom: 0;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 26px rgba(38, 70, 83, 0.13);
  border-color: #e9c46a77;
}

/* ========================
   TESTIMONIALS
======================== */
.testimonials {
  background: #F3EEE5;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(38,70,83,0.06);
  padding: 40px 16px 30px 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(38,70,83,0.09);
  padding: 24px 28px;
  margin-bottom: 20px;
  border: 1px solid #ece9e3;
  max-width: 600px;
  transition: box-shadow .2s, border-color .2s;
}
.testimonial-card p {
  font-size: 1.14rem;
  color: #264653;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0;
}
.testimonial-meta {
  font-size: 0.97rem;
  color: #9C967B;
  text-align: right;
  font-family: 'Open Sans', Arial, sans-serif;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 18px 0 rgba(38,70,83,0.16);
  border-color: #e9c46a91;
}
.testimonials h2 {
  margin-bottom: 30px;
}

/* ========================
   CARDS GENERIC
======================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(38,70,83,.08);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 26px;
  border: 1px solid #ece9e3;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px 0 rgba(38, 70, 83, 0.17);
  border-color: #e9c46a;
}

/* ========================
   BLOG LIST & ARTICLES
======================== */
.blog-list {
  background: #fffaf6;
  border-radius: 20px;
  padding: 34px 18px 20px 18px;
  box-shadow: 0 3px 12px rgba(38,70,83,0.06);
}
.blog-article {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(38,70,83,0.08);
  padding: 22px 24px 18px 24px;
  margin-bottom: 20px;
  border: 1px solid #ece9e3;
  transition: box-shadow .18s, border-color .2s;
}
.blog-article h3 {
  color: #264653;
  margin-bottom: 7px;
  font-size: 1.11rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}
.blog-article p {
  font-size: 0.98rem;
  color: #544B39;
}
.blog-article:hover {
  box-shadow: 0 8px 24px 0 rgba(38, 70, 83, 0.09);
  border-color: #E9C46A;
}

/* ========================
   CTA BUTTONS & LINKS
======================== */
.cta {
  display: inline-block;
  background: #E9C46A;
  color: #264653 !important;
  border-radius: 30px;
  padding: 12px 36px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.11rem;
  letter-spacing: 0.05em;
  margin-top: 10px;
  margin-bottom: 10px;
  border: none;
  box-shadow: 0 3px 11px rgba(38,70,83,0.09);
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: background .18s, color .16s, box-shadow .17s;
}
.cta:hover, .cta:focus {
  background: #264653;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(38,70,83,0.17);
}

/* ========================
   OTHER CONTENT BLOCKS
======================== */
.services-preview, .about-preview, .contact-cta, .about-hero, .about-intro, .about-values, .company-timeline, .services-list, .hausbau-services, .process, .faq, .case-studies, .thank-you-section, .privacy-policy, .cookie-policy, .gdpr-section, .terms-section, .contact-details {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 14px rgba(38,70,83,0.06);
  padding: 44px 22px;
  margin-bottom: 60px;
}
ul.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}
ul.contact-info li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
  font-weight: 600;
  font-size: 1rem;
}
ul.contact-info img {
  height: 20px;
  width: 20px;
  filter: grayscale(0.45) contrast(0.97);
}
.note {
  background: #F3EEE5;
  border-radius: 13px;
  padding: 13px 16px;
  margin-top: 14px;
  color: #856c3c;
  font-size: 0.96rem;
  box-shadow: 0 1px 6px rgba(200,188,132,0.08);
}

/* ============================
   FOOTER
============================ */
footer {
  background: #264653;
  color: #fff;
  padding: 38px 0 0 0;
  font-size: 1rem;
  margin-top: 30px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
}
.footer-content p{
  color: white;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 190px;
}
.footer-nav a {
  color: #e9c46a;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 500;
  transition: color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact img {
  height: 38px;
  width: auto;
  margin-bottom: 10px;
  filter: brightness(1.08);
}
.footer-brand-tagline p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: #fff;
  opacity: 0.95;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 21px;
    align-items: flex-start;
  }
}

/* ================================
   SECTION FLEXBOX 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;
}

/* =============================
   RESPONSIVE DESIGN
============================== */
@media (max-width: 1024px) {
  section, .section {
    padding: 32px 8px;
  }
}
@media (max-width: 850px) {
  .features .feature-grid, .content-grid, .footer-content {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .feature {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.48rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 18px;
  }
  .section, section {
    padding-left: 4px;
    padding-right: 4px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .feature {
    padding: 22px 9px 18px 13px;
  }
  .blog-list, .services-preview, .about-preview, .contact-cta, .about-hero, .about-intro, .about-values, .company-timeline, .services-list, .hausbau-services, .process, .faq, .case-studies, .thank-you-section, .privacy-policy, .cookie-policy, .gdpr-section, .terms-section, .contact-details {
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  h3 {
    font-size: 1rem;
  }
  .cta {
    font-size: 0.98rem;
    padding: 10px 21px;
    margin-bottom: 14px;
  }
}

/* =============================
   MICRO-INTERACTIONS, TRANSITIONS
============================== */
.cta, .main-nav .cta, .feature, .blog-article, .card, .testimonial-card {
  transition: box-shadow 0.18s cubic-bezier(.7,.1,.12,1), background 0.16s;
}
.cta:active {
  background: #cab56f;
}
.card:active, .feature:active {
  background: #f5efd7;
}

/* =============================
   COOKIE CONSENT BANNER
============================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #fffbe8;
  color: #264653;
  box-shadow: 0 -2px 16px rgba(38,70,83,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 22px 18px 22px 28px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.03rem;
  border-top: 1px solid #E9C46A;
  opacity: 1;
  transition: opacity .33s cubic-bezier(.55,0,.28,1);
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-consent-banner button {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.98rem;
  padding: 7px 20px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  background: #E9C46A;
  color: #264653;
  font-weight: 700;
  margin-left: 6px;
  box-shadow: 0 2px 8px rgba(38,70,83,0.06);
  transition: background .18s,color .14s;
}
.cookie-consent-banner button.cookie-reject {
  background: #EEE;
  color: #264653;
  border: 1px solid #ddd4b6;
}
.cookie-consent-banner button.cookie-settings {
  background: transparent;
  color: #264653;
  border: 1px solid #E9C46A;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: #264653;
  color: #fff;
}
.cookie-consent-banner .cookie-settings:hover, .cookie-consent-banner .cookie-settings:focus {
  background: #f7f4e4;
  color: #264653;
  border-color: #cab56f;
}

/* =============================
   COOKIE MODAL
============================== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(38,70,83,.55);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .22s cubic-bezier(.45,0,.25,1);
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  max-width: 430px;
  width: 96vw;
  border-radius: 18px;
  box-shadow: 0 10px 52px rgba(38,70,83,0.19);
  padding: 34px 22px 24px 32px;
  position: relative;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInUp .44s cubic-bezier(.68,.07,.18,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(64px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 17px;
  background: transparent;
  border: none;
  color: #264653;
  font-size: 2rem;
  cursor: pointer;
  transition: color .14s;
  z-index: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #E9C46A;
}
.cookie-modal h2 {
  font-size: 1.34rem;
  font-family: 'Playfair Display', Georgia, serif;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
}
.cookie-category label {
  font-size: 1.01rem;
  color: #222;
}
.cookie-category input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #E9C46A;
}
.cookie-category.essential label {
  color: #b3a165;
  font-weight: 700;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: #b3a165;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-actions button {
  font-size: 1.01rem;
  padding: 7px 22px;
}
@media (max-width: 430px) {
  .cookie-modal {
    padding: 16px 8px;
    min-width: 0;
  }
  .cookie-modal-actions button {
    padding: 7px 12px;
    font-size: .98rem;
  }
}

/* ===========
   UTILITIES
============== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.float-right { float: right; }
.text-center { text-align: center; }
.text-right { text-align: right; }
display-none { display: none; }

/* ===============
  ACCESSIBILITY
================= */
:focus-visible {
  outline: 2px solid #E9C46A;
  outline-offset: 2px;
}

/* ===============
   PRINT STYLES
================ */
@media print {
  nav, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay, .cta, button {
    display: none !important;
  }
}
