/* -------------------------------------------------------
   CSS RESET & BASELINE 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, 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;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F3F7F2;
  color: #222D42;
  font-family: 'Roboto', 'Georgia', serif;
  -webkit-font-smoothing: antialiased;
}
ul, ol { list-style: disc inside; margin-bottom: 16px; }
li { margin-bottom: 6px; }
img { max-width: 100%; display: block; height: auto; }
a { color: #222D42; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px solid #39BDB7; outline-offset: 2px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {font-family: 'Montserrat', 'Georgia', serif; line-height:1.15; font-weight: 600;}
h1 { font-size: 2.5rem; margin-bottom: 24px; letter-spacing: -1px; }
h2 { font-size: 2rem; margin-bottom: 18px; letter-spacing: -0.5px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
h5,h6 { font-size: 1rem; }
p, ul, ol, blockquote { font-size: 1rem; margin-bottom: 18px; color: #222D42; }
strong, b { font-weight: 700; }
blockquote {
  border-left: 4px solid #39BDB7;
  margin: 18px 0;
  padding-left: 22px;
  font-style: italic;
  color: #222d42;
  background: #f5faf9;
}
cite {
  display: inline-block;
  margin-top: 8px;
  color: #4B6269;
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* General Containers & Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
}

/* Sections */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(34,45,66,0.04);
  border-radius: 10px;
}

.hero {
  background: #F3F7F2;
  padding-top: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid #E1E6E0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 730px;
  margin: 0 auto;
}

/* Cards and Features */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px 0 rgba(34,45,66,0.10);
  padding: 32px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 20px;
}
.features-grid > div:hover {
  box-shadow: 0 6px 18px 0 rgba(57,189,183,0.08), 0 2px 6px #DCE6E1;
  transform: translateY(-4px);
}
.feature-price {
  margin-top: 12px;
  font-family: 'Montserrat', serif;
  background: #E6F5F4;
  color: #28746B;
  padding: 4px 16px;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 500;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(34,45,66,0.08);
  margin-bottom: 20px;
  position: relative; /* only for decorative elements if needed */
  padding: 28px 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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;
  margin-bottom: 40px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px 0 rgba(34,45,66,0.07);
  margin-top: 32px;
  margin-bottom: 20px;
  font-size: 1.08rem;
  color: #222D42;
  flex-wrap: wrap;
  min-width: 200px;
}
.testimonial-card blockquote {
  border: none;
  padding: 0;
  background: none;
  margin: 0;
  color: #194150;
  font-size: 1.1rem;
  font-style: italic;
}
.testimonial-card cite {
  color: #28746B;
  margin-left: 10px;
  font-weight: 500;
  font-size: 0.97rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-list > div {
  background: #f9fbfa;
  border-radius: 8px;
  padding: 20px 18px 16px 18px;
  box-shadow: 0 0.5px 3px 0 rgba(34,45,66,0.07);
  margin-bottom: 12px;
}
.faq-list h3 {
  font-size: 1.05rem;
  font-family: 'Montserrat', serif;
  color: #222D42;
  margin-bottom: 8px;
  font-weight: 600;
}

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

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 1rem;
}
thead th {
  background: #f3f7f2;
  font-family: 'Montserrat', serif;
  padding: 12px 8px;
  color: #222D42;
  font-size: 1.08rem;
  font-weight: 600;
}
td, th {
  border: 1px solid #e3e9e7;
  padding: 10px 8px;
}
tbody td {
  background: #fff;
}
tr:nth-child(even) td { background: #f9fbfa; }

/* -------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #E1E6E0;
  box-shadow: 0 2px 8px 0 rgba(34,45,66,0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img[alt="Neon Schild Immobilienberatung"] {
  height: 40px;
  min-width: 140px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
  color: #222D42;
  padding: 5px 0;
  position: relative;
  transition: color 0.18s;
}
.main-nav a:after {
  content: "";
  display: block;
  width: 0%;
  height: 2px;
  background: #39BDB7;
  transition: width 0.22s cubic-bezier(.27,0,.41,1);
  position: absolute;
  left: 0;
  bottom: -2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: #39BDB7;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 60%;
}
.cta-btn {
  font-family: 'Montserrat', serif;
  display: inline-block;
  background: #222D42;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 11px 32px;
  margin-left: auto;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.15s;
  box-shadow: 0 2px 8px 0 rgba(34,45,66,0.04);
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: #39BDB7;
  color: #fff;
  box-shadow: 0 4px 14px rgba(57,189,183,0.13);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

/* -------------------------------------------------------
   MOBILE MENU (BURGER)
------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #222D42;
  margin-left: auto;
  cursor: pointer;
  z-index: 1201;
  transition: color 0.14s;
  padding: 6px 12px;
}
.mobile-menu-toggle:focus {
  color: #39BDB7;
  outline: 2px solid #39BDB7;
  border-radius: 8px;
}
.mobile-menu {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,45,66,0.68);
  z-index: 1200;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  will-change: transform, opacity;
  transition: opacity 0.22s, visibility 0.18s;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  animation: slideInMenu 0.32s ease;
}
@keyframes slideInMenu {
  from {
    opacity: 0;
    transform: translateX(60vw);
  } to {
    opacity: 1;
    transform: translateX(0);
  }
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 24px 0 0;
  background: #fff;
  border-radius: 50%;
  border: none;
  width: 40px; height: 40px;
  font-size: 1.6rem;
  color: #222D42;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 #d0d6d2;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { background: #39BDB7; color: #fff; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding: 38px 38px 38px 32px;
  margin: 16px 0 0 0;
  min-width: 220px;
  width: 90vw;
  max-width: 350px;
  box-shadow: 0 6px 32px 0 rgba(57,189,183,0.12);
  z-index: 1201;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: #222D42;
  padding: 9px 0;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
  min-width: 75%;
  text-align: left;
  margin-right: 16px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6F5F4;
  color: #39BDB7;
}

@media (max-width: 1000px) {
  header .container { gap: 18px; }
  .main-nav { gap: 18px; }
  .cta-btn { padding: 10px 17px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 13px; }
}
@media (max-width: 880px) {
  header .container { flex-wrap: wrap; }
  .main-nav { gap: 8px; }
  .cta-btn { padding: 8px 12px; font-size: 1rem; }
}

@media (max-width: 820px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    margin-right: 10px;
  }
}
@media (min-width: 821px) {
  .mobile-menu { display: none !important; }
}

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */
footer {
  background: #192233;
  color: #fff;
  padding: 44px 0 18px 0;
  font-size: 1rem;
  margin-top: 70px;
  box-shadow: 0 -3px 20px 0 rgba(34,45,66,0.07);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  color: #fff;
  font-weight: 400;
  transition: color 0.18s, text-decoration 0.15s;
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  text-decoration: underline transparent;
  text-underline-offset: 3px;
}
.footer-links a:hover { color: #39BDB7; text-decoration: underline #39BDB7; }
.brand-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', serif;
  font-size: 0.97rem;
  color: #D5E0DE;
}
.brand-info img { height: 34px; }
.contact-details {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 6px;
}

/* -------------------------------------------------------
   COOKIE CONSENT BANNER
------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 20px 0 #d0dbd7;
  border-top: 2px solid #39BDB7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 36px 22px 32px;
  z-index: 1500;
  animation: slideUpCookieBanner 0.33s ease;
}
@keyframes slideUpCookieBanner {
  0% { transform: translateY(56px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  font-size: 1.03rem;
  color: #222D42;
  max-width: 650px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  border-radius: 22px;
  border: none;
  padding: 9px 22px;
  margin-right: 2px;
  margin-top: 2px;
  min-width: 125px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  font-weight: 600;
  box-shadow: 0 1px 4px 0 rgba(34,45,66,0.06);
}
.cookie-btn.accept {
  background: #222D42;
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #39BDB7;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #222D42;
  border: 1.2px solid #222D42;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f3f7f2;
  color: #39BDB7;
  border-color: #39BDB7;
}
.cookie-btn.settings {
  background: #fff;
  color: #28746B;
  border: 1.2px solid #28746B;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E6F5F4;
  color: #222D42;
  border-color: #222D42;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(34,45,66,0.60);
  z-index: 1550;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInCookieModal 0.32s cubic-bezier(.45,.08,.35,.99);
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 88vw;
  padding: 38px 32px 32px 32px;
  box-shadow: 0 6px 32px 0 rgba(34,45,66,0.11);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  position: relative;
}
.cookie-modal h3 {
  color: #222D42;
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.cookie-modal-category {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-toggle {
  width: 42px; height: 22px;
  background: #E6F5F4;
  border-radius: 12px;
  border: none;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle.active {
  background: #39BDB7;
}
.cookie-toggle::after {
  content: '';
  display: block;
  position: absolute;
  left: 4px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(34,45,66,0.09);
  transition: left 0.19s;
}
.cookie-toggle.active::after {
  left: 22px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 19px;
  font-size: 1.26rem;
  background: none;
  border: none;
  color: #222D42;
  cursor: pointer;
  border-radius: 50%;
  width: 36px; height: 36px;
  transition: background 0.12s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus { background: #E6F5F4; color: #39BDB7; }

/* -------------------------------------------------------
   SPACING & FLEX UTILITY - ENSURE NO OVERLAP
------------------------------------------------------- */
.mt-2    { margin-top: 2px;  }
.mt-8    { margin-top: 8px;  }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.mt-32   { margin-top: 32px; }
.mb-16   { margin-bottom: 16px; }
.mb-24   { margin-bottom: 24px; }
.mb-32   { margin-bottom: 32px; }
.gap-12  { gap: 12px; }
.gap-20  { gap: 20px; }
.gap-24  { gap: 24px; }
.gap-32  { gap: 32px; }

/* -------------------------------------------------------
   RESPONSIVE DESIGN (Mobile-first)
------------------------------------------------------- */
@media (max-width: 900px) {
  .features-grid {
    gap: 18px;
  }
  .features-grid > div {
    min-width: 180px;
    max-width: 100%;
    padding: 19px 10px 17px 10px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.25rem; }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-links, .brand-info, .contact-details {
    font-size: 0.89rem;
    gap: 6px;
  }
}
@media (max-width: 660px) {
  footer .container {
    flex-direction: column;
    gap: 23px;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
  }
  .features-grid {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 600px) {
  .hero,
  .section {
    padding: 18px 6px;
    margin-bottom: 30px;
    border-radius: 7px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 14px !important;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 11px;
    padding: 15px 8px;
    font-size: 0.98rem;
  }
}
@media (max-width: 490px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 14px 10px 14px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-btns { gap: 11px; }
}
@media (max-width: 440px) {
  .mobile-nav {
    padding: 26px 9vw 23px 6vw;
    font-size: 1rem;
  }
}

/* -------------------------------------------------------
   FORMS (Contact page in future)
------------------------------------------------------- */
input, textarea, select, button {
  font-family: 'Roboto', 'Georgia', serif;
  font-size: 1rem;
  box-sizing: border-box;
}
label {
  font-weight: 500;
}
input, textarea, select {
  background: #f8faf9;
  border: 1px solid #E1E6E0;
  border-radius: 8px;
  padding: 12px 10px;
  margin-bottom: 11px;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #39BDB7;
  outline: none;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -------------------------------------------------------
   MICRO-INTERACTIONS
------------------------------------------------------- */
button, .cta-btn, .cookie-btn, .cookie-toggle, .mobile-menu-close, .mobile-menu-toggle {
  transition: background 0.13s, color 0.13s, box-shadow 0.16s, transform 0.18s;
}
.card, .features-grid > div, .faq-list > div, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.17s;
}
.card:hover, .features-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 30px 0 rgba(34,45,66,0.10), 0 2px 8px #c7e2df;
  transform: translateY(-3px) scale(1.012);
}

/* -------------------------------------------------------
   HELPER CLASSES
------------------------------------------------------- */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-secondary { color: #39BDB7 !important; }
.bg-accent { background: #F3F7F2 !important; }
.rounded { border-radius: 10px !important; }
.shadow {
  box-shadow: 0 3px 14px 0 rgba(34,45,66,0.06), 0 1.5px 6px #c7e2df !important;
}

/* -------------------------------------------------------
   ACCENTUATION & HIGHLIGHTS
------------------------------------------------------- */
mark, .highlight {
  background: #E6F5F4;
  color: #222D42;
  padding: 1px 7px;
  border-radius: 8px;
}

/* -------------------------------------------------------
   PRINT STYLE (optional for checklists or downloads)
------------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  .section, .hero {
    box-shadow: none !important;
    background: #fff !important;
  }
}
