/* ==========================================================================  
   S Bert Blue Immobilien Minimalist Responsive CSS (FLEXBOX ONLY, NO GRID)
   Brand: Modern, vertrauenswürdig, professionell, mit frischen Akzenten
   Colors: #143E69 (primary), #4FD19E (secondary), #FFFFFF (accent/white)
   Fonts: Montserrat (Display), Open Sans (Body)
   Target: All provided HTML classes & layouts
   ========================================================================== */

/* CSS Reset & Base Normalization ------------------------------------------------ */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
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: inherit;
  vertical-align: baseline;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #243444;
  background: #fff;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: inline-block; }
a { color: #143E69; text-decoration: none; transition: color 0.2s; }
nav a:hover, nav a:focus { color: #4FD19E; }
ul, ol { list-style: none; }

/* Typography hierarchy --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #143E69;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }
p { font-size: 1rem; margin-bottom: 12px; color: #243444; }
strong { font-weight: 600; color: #143E69; }
.text-section p { margin-bottom: 18px; }
.text-section ul, .text-section ol { margin-left: 1.25em; margin-top: 10px; }
.text-section li { font-size: 1rem; margin-bottom: 4px; color: #243444; padding-left: 0; }

/* Container & Core Layouts ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Section & Spacing Rules ------------------------------------------------------ */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { 
  margin-bottom: 20px; 
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(20,62,105,0.06);
  padding: 32px 24px;
  position: relative;
  min-width: 280px;
  flex: 1 1 320px;
  transition: box-shadow 0.2s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 4px 18px 0 rgba(20,62,105,0.13);
  transform: translateY(-2px) scale(1.015);
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(20,62,105,0.07);
  color: #243444;
  font-size: 1.05rem;
  min-width: 260px;
  max-width: 480px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 14px 0 rgba(20,62,105,0.17);
  transform: translateY(-2px) scale(1.011);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(20,62,105,0.04);
  transition: box-shadow 0.18s, transform 0.13s;
  min-width: 240px;
  flex: 1 1 260px;
  margin-bottom: 20px;
}
.feature-item:hover {
  box-shadow: 0 4px 16px 0 rgba(20,62,105,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* =============== NAVIGATION & HEADER STYLES =================== */
header {
  background: #FFFFFF;
  border-bottom: 1px solid #f0f3f6;
  padding-top: 8px;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.logo img {
  height: 42px;
  margin-right: 24px;
  vertical-align: middle;
  display: block;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 28px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.13s, color 0.16s;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #494f57;
}
.main-nav a.btn-primary {
  margin-left: 16px;
}
.main-nav a.current, .main-nav a[aria-current=page] {
  color: #143E69;
  background: #eef3f7;
  font-weight: 600;
}
.main-nav a:hover:not(.btn-primary), .main-nav a:focus:not(.btn-primary) {
  color: #143E69;
  background: #f5faf9;
}
header .btn-primary {
  background: #143E69;
  color: #fff;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.11s;
}
header .btn-primary:hover, header .btn-primary:focus {
  background: #112F4D;
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(20,62,105,0.10);
  transform: translateY(-2px) scale(1.01);
}

/* =================== MOBILE BURGER MENU ===================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #143E69;
  cursor: pointer;
  margin-left: 24px;
  z-index: 105;
  line-height: 1.1;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #eef3f7;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 200;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 30px 30px 0 24px;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.72,.04,.27,.99), box-shadow 0.27s;
  box-shadow: 0 4px 32px 0 rgba(20,62,105,0.17);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #143E69;
  align-self: flex-end;
  margin-bottom: 22px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #eef3f7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #143E69;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 8px;
  margin-right: 18px;
  transition: background 0.13s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f0f7f5;
  color: #4FD19E;
}

/* Show/hide mobile & desktop nav appropriately */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===================== HERO & CTA SECTIONS ================== */
section {
  background: #fff;
}
.text-section {
  max-width: 650px;
  margin-left: auto; margin-right: auto;
  justify-content: flex-start;
  gap: 16px;
}
.text-section ul, .text-section ol {
  margin-top: 8px; margin-bottom: 12px;
  padding-left: 18px;
  color: #243444;
}
.text-section li {
  margin-bottom: 3px;
  list-style: disc;
}
.text-section a, .text-section a:visited {
  color: #143E69;
  text-decoration: underline;
}
.text-section a:hover, .text-section a:focus {
  color: #4FD19E;
  text-decoration: underline;
}

/* CTA Button ------------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: #143E69;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 36px;
  margin-top: 17px;
  cursor: pointer;
  transition: background 0.17s, color 0.16s, box-shadow 0.17s, transform 0.13s;
  box-shadow: 0 2px 9px 0 rgba(20,62,105,0.055);
}
.btn-primary:hover, .btn-primary:focus {
  background: #4FD19E;
  color: #143E69;
  box-shadow: 0 4px 16px 0 rgba(20,62,105,0.12);
  transform: translateY(-2px) scale(1.015);
}

/* ======= FEATURES AND FLEX GRIDS (NO GRID, ONLY FLEXBOX) ======== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  justify-content: flex-start;
}
.category-grid > div {
  background: #f7faf9;
  border-radius: 10px;
  padding: 20px 18px;
  flex: 1 1 240px;
  min-width: 220px;
  font-size: 1rem;
  color: #143E69;
  margin-bottom: 18px;
}
.popular-guides ul {
  margin-left: 1.2em;
  color: #243444;
}
.popular-guides li {
  margin-bottom: 7px;
  list-style: disc;
}

/* =========== TEAM, TESTIMONIAL & CUSTOM FLEX LAYOUTS =========== */
.team-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.team-overview > div {
  background: #f7faf9;
  border-radius: 10px;
  padding: 20px 18px;
  min-width: 200px;
  flex: 1 1 195px;
  font-size: 1rem;
  color: #143E69;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.star-ratings {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  color: #243444;
}
.star-ratings img {
  width: 22px; height: auto;
  display: inline-block;
}

/* =================== CONTACT DETAILS ========================== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.contact-details img {
  height: 22px; width: 22px; vertical-align: bottom; margin-right: 8px;
}
.contact-hours, .note, .privacy-info p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #243444;
}
.privacy-info a {
  color: #143E69;
  text-decoration: underline;
  font-weight: 500;
}

/* ================= CERTIFICATION BADGES ======================= */
.certifications {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
  font-size: 1rem;
}
.certifications span {
  background: #f5f9fb;
  border-radius: 8px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.certifications img {
  width: 28px; height: 28px; display: inline-block;
}

/* ===================== FOOTER ============================= */
footer {
  background: #f7fafd;
  border-top: 1px solid #eaf2fc;
  padding: 44px 0 26px 0;
  font-size: 1rem;
}
footer .container { max-width: 1140px; }
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.footer-menu {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-menu a {
  color: #494f57;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  padding: 6px 11px;
  transition: background 0.12s, color 0.13s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #143E69;
  background: #eef5f7;
}
.brand-info {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: #6A7687;
  font-size: 0.97rem;
  justify-content: center;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social img {
  width: 26px; height: 26px;
  opacity: 0.7;
  transition: opacity 0.14s, transform 0.13s;
}
.footer-social a:hover img {
  opacity: 1;
  transform: scale(1.12);
}

/* ================= COOKIES BANNER & MODAL ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -2px 18px 0 rgba(20,62,105,0.07);
  border-top: 1px solid #EDF2F7;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 997;
  font-size: 1.08rem;
  transition: transform 0.33s, opacity 0.17s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 5px;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 8px 22px;
  font-size: 1em;
  cursor: pointer;
  margin: 0;
  background: #143E69;
  color: #fff;
  transition: background 0.15s, color 0.13s, box-shadow 0.17s;
}
.cookie-banner button.accept {
  background: #4FD19E;
  color: #fff;
}
.cookie-banner button.reject {
  background: #fff;
  color: #143E69;
  border: 1px solid #143E69;
}
.cookie-banner button.settings, .cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #143E69;
  border: 1px solid #143E69;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #25bf8b;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus, 
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #eef3fa;
  color: #143E69;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom:0;
  background: rgba(36, 52, 68, 0.34);
  z-index: 999;
  justify-content: center;
  align-items: center;
  transition: opacity 0.16s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px 0 rgba(20,62,105,0.13);
  padding: 36px 26px 26px 26px;
  min-width: 300px;
  max-width: 98vw;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #143E69;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1em;
  color: #143E69;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4FD19E;
}
.cookie-category.essential label {
  color: #999;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #143E69;
  color: #fff;
  transition: background 0.14s, color 0.13s;
}
.cookie-modal-actions button.save {
  background: #4FD19E;
  color: #fff;
}
.cookie-modal-actions button.decline {
  background: #fff;
  color: #143E69;
  border: 1.2px solid #143E69;
}
.cookie-modal-actions button.save:hover, .cookie-modal-actions button.save:focus {
  background: #25bf8b;
}
.cookie-modal-actions button.decline:hover, .cookie-modal-actions button.decline:focus {
  background: #f0f7f9;
}

/* ============= TRANSITIONS, HOVER, MICRO-INTERACTIONS ============= */
button, a, .feature-item, .testimonial-card, .card, .btn-primary, .cookie-banner button, .cookie-modal-actions button, .main-nav a, .footer-menu a, .mobile-menu-toggle {
  transition: background 0.16s, color 0.18s, box-shadow 0.15s, transform 0.13s;
}

/* =================== RESPONSIVE QUERIES ======================== */
@media (max-width: 991px) {
  .container { max-width: 98vw; }
  .content-wrapper, .text-section { gap: 11px; }
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 850px) {
  .feature-grid, .category-grid, .team-overview, .testimonial-list { flex-direction: column; gap: 18px; }
  .feature-item, .card, .testimonial-card, .category-grid > div, .team-overview > div { min-width: 0; width: 100%; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .section, section, .content-wrapper { padding-left: 0; padding-right: 0; }
  .container { padding: 0 10px; }
  .logo img { height: 35px; }
  .footer-menu, .brand-info, .footer-social { gap: 10px; }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  header .container { min-height: 56px; gap: 13px; }
  footer { padding: 30px 0 18px 0; }
  .cookie-modal { padding: 22px 12px 18px 12px; width: 98vw; min-width: auto; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  .btn-primary, .cookie-banner button, .cookie-modal-actions button { padding: 10px 18px; font-size: 1em; }
  .testimonial-card { padding: 18px 6px; }
}

/* ================= UTILITY, Z-INDEX, HIDE/SHOW ================== */
.hide { display: none !important; }
.show { display: block !important; }
.z-100 { z-index: 100; }
.z-999 { z-index: 999; }

/* =================== PRINT FRIENDLY ============================= */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none!important; }
  section, .container { box-shadow: none!important; background: #fff!important; }
}
