/* ==================== 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 {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background-color: #f5f8fc;
  color: #203146;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #0062ff;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FF39B3;
  outline: none;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1b2336;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {font-size: 2.5rem;}
h2 {font-size: 2rem;}
h3 {font-size: 1.25rem;}
h4 {font-size: 1.1rem;}
p, li {
  color: #203146;
  font-size: 1rem;
  margin-bottom: 12px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
strong {font-weight: 700;}
button, .cta-button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 10px;
  background: #FF39B3;
  color: #fff;
  padding: 13px 36px;
  margin-top: 16px;
  box-shadow: 0 3px 14px 0 rgba(32,49,70,0.10);
  transition: background 0.2s, box-shadow 0.3s, transform 0.17s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-sizing: border-box;
}
button:hover, .cta-button:hover, input[type="submit"]:hover,
button:focus, .cta-button:focus, input[type="submit"]:focus {
  background: #0062FF;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 28px 0 rgba(0,98,255,0.16);
}
button:active, .cta-button:active {
  background: #9107eb;
  color: #fff;
}
input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid #E7E9EB;
  padding: 12px;
  margin-bottom: 16px;
  width: 100%;
  transition: outline 0.2s, border 0.2s;
  background: #fff;
  color: #203146;
}
input:focus, select:focus, textarea:focus {
  border-color: #FF39B3;
  outline: 1.5px solid #FF39B3;
}
::-webkit-input-placeholder {color: #5C879E;}
::-moz-placeholder {color: #5C879E;}
:-ms-input-placeholder {color: #5C879E;}
::placeholder {color: #5C879E;}

/* ==================== BRAND COLORS & VIBRANT ENERGETIC ==================== */
:root {
  --brand-primary: #203146;
  --brand-secondary: #5C879E;
  --brand-accent: #E7E9EB;
  --color-electric-blue: #0062FF;
  --color-hot-pink: #FF39B3;
  --color-citrus: #FFD900;
  --color-bright-green: #00F381;
  --color-dark: #1b2336;
}

/* ==================== LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px 0 rgba(32,49,70,0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========== FLEX PATTERNS AS REQUIRED ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(0,98,255,0.09);
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  padding: 22px 22px 16px 22px;
  transition: box-shadow 0.25s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 6px 30px 0 rgba(255,57,179,0.14);
  transform: translateY(-6px) scale(1.025);
}
.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: 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 26px 0 rgba(93,103,242,0.10);
  border-left: 6px solid #FF39B3;
  transition: box-shadow 0.23s, border-color 0.18s;
  min-width: 260px;
}
.testimonial-card:hover {
  border-left: 6px solid #0062FF;
  box-shadow: 0 16px 48px 0 rgba(93,103,242,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f7faff;
  padding: 22px 18px 20px 18px;
  border-radius: 13px;
  box-shadow: 0 1.5px 6px 0 rgba(255,57,179,0.06);
  margin-bottom: 20px;
  border: 2px solid #e7e9eb;
  min-width: 220px;
  transition: border 0.18s, box-shadow 0.18s;
}
.feature-item:hover {
  border: 2px solid #FF39B3;
  box-shadow: 0 3px 18px 0 rgba(0,243,129,0.11);
}

/* ==================== HEADER / NAVIGATION ==================== */
header {
  width: 100%;
  background: #203146;
  box-shadow: 0 5px 32px 0 rgba(32,49,70,0.09);
  position: relative;
  z-index: 60;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  max-height: 48px;
  margin-right: 12px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 5px 3px 5px 3px;
  transition: color 0.16s;
  position: relative;
}
nav a:not(.cta-button)::after {
  content: '';
  display: block;
  background: #FF39B3;
  height: 2.5px;
  width: 0%;
  border-radius: 2px;
  transition: width 0.2s;
  position: absolute;
  bottom: -5px;
  left: 0;
}
nav a:not(.cta-button):hover::after, nav a:not(.cta-button):focus::after {
  width: 82%;
}
nav .cta-button {
  margin-left: 16px;
  background: #FF39B3;
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(255,57,179,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
nav .cta-button:hover, nav .cta-button:focus {
  background: #0062FF;
  color: #fff;
}
.mobile-menu-toggle {
  font-size: 2rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  display: none;
  align-items: center;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 180;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FF39B3;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100vw;
  background: #203146;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 28px;
  padding-left: 0;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.40s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 5px 22px 0 rgba(32,49,70,0.10);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin-bottom: 12px;
  margin-right: 22px;
  background: transparent;
  color: #fff;
  font-size: 2.4rem;
  padding: 4px 16px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FF39B3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 12px;
  width: 100vw;
  padding-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  padding: 12px 0;
  transition: color 0.18s, background 0.19s;
  border-radius: 7px;
  display: inline-block;
  width: 85%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FF39B3;
  color: #fff;
}

/* ==================== HERO & VIBRANT SECTION STYLES ==================== */
.hero {
  background: linear-gradient(108deg, #0062FF 48%, #FF39B3 140%);
  color: #fff;
  min-height: 320px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 48px 0 44px 0;
}
.hero .container {
  align-items: flex-start;
}
.hero h1, .hero p {
  color: #fff;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  text-shadow: 0 3px 32px #0062ff5c,0 3px 12px #ff39b350;
}
.hero p {
  font-size: 1.12rem;
  margin-bottom: 22px;
  max-width: 700px;
}
.hero .cta-button {
  background: #FFD900;
  color: #203146;
}
.hero .cta-button:hover, .hero .cta-button:focus {
  background: #FF39B3;
  color: #fff;
}

.features, .immobilien-features, .service-grid, .feature-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 36px;
}
.feature-grid, .service-grid {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item img, .service-item img {
  height: 48px;
  width: 48px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1.5px 12px 0 rgba(255,57,179,0.11);
  padding: 3px;
  margin-bottom: 0;
}
.feature-item h3, .service-item h3 {
  margin-top: 3px;
  color: #203146;
  font-size: 1.21rem;
  letter-spacing: 0.01em;
}

.service-item {
  background: #eaf8fe;
  border-left: 5px solid #0062FF;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-radius: 16px;
  box-shadow: 0 6px 24px 0 rgba(93,103,242,0.09);
  padding: 17px 17px 17px 22px;
  transition: border 0.14s, box-shadow 0.12s;
}
.service-item:hover {
  border-left: 5px solid #FF39B3;
  box-shadow: 0 12px 36px 0 rgba(255,57,179,0.12);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
}
.quick-links a {
  color: #0062FF;
  font-weight: bold;
  position: relative;
}
.quick-links a:hover, .quick-links a:focus {
  color: #FF39B3;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
  background: #FFD90010;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 44px 0;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  flex: 1 1 290px;
  max-width: 360px;
  background: #fff;
  color: #203146;
  border-radius: 18px;
  border-left: 6px solid #0062FF;
  margin-bottom: 0;
  align-items: flex-start;
  box-shadow: 0 3px 14px 0 rgba(32,49,70,0.08);
  transition: border-color 0.15s, box-shadow 0.17s;
}
.testimonial-card:hover {
  border-left: 6px solid #FF39B3;
  box-shadow: 0 12px 36px 0 rgba(255,57,179,0.11);
}
.testimonial-card p {
  color: #203146;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.testimonial-meta {
  margin-top: 7px;
  font-size: 0.98rem;
  color: #203146;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonial-meta strong {
  font-weight: bold;
  color: #FF39B3;
}
.testimonial-meta img {
  width: 19px;
  height: 19px;
  display: inline-block;
  margin-left: 1px;
}

/* ==================== FORMS, INPUTS, CONTACT, MAP ==================== */
.contact-details, .contact-form-info {
  padding: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact-details p, .contact-info p {
  display: flex;
  align-items: center;
  font-size: 1.04rem;
  color: #203146;
  gap: 8px;
}

.contact-form-info ul {margin-top:6px;}
.contact-form-info li {
  margin-bottom: 8px;
  color: #5C879E;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.contact-form-info .cta-button {
  margin: 0;
}

/* ==================== FAQ, RATGEBER, LISTS, ETC ==================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff6fe;
  border-radius: 12px;
  box-shadow: 0 1.5px 12px 0 rgba(255,57,179,0.06);
  padding: 22px 18px;
  margin-bottom: 8px;
  border-left: 4px solid #FF39B3;
  transition: border 0.15s, box-shadow 0.14s;
}
.faq-item h3 {
  font-size: 1.14rem;
  color: #FF39B3;
  margin-bottom: 6px;
  font-weight: bold;
}
.faq-item:hover {
  border-left: 4px solid #0062FF;
  box-shadow: 0 8px 30px 0 rgba(0,98,255,0.10);
}

/* ==================== FOOTER ==================== */
footer {
  background: #203146;
  color: #fff;
  padding: 45px 0 24px 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
  padding: 0 20px;
}
footer a {
  color: #FF39B3;
  transition: color 0.16s;
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer a:hover, footer a:focus {
  color: #FFD900;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-social {
  flex-direction: row;
  gap: 12px;
  margin-top: 10px;
}
.footer-social a img {
  width: 29px;
  height: 29px;
  opacity: 0.86;
  transition: opacity 0.18s;
}
.footer-social a:hover img, .footer-social a:focus img {
  opacity: 1;
}
footer p {
  color: #e7e9eb;
  margin-top: 15px;
  margin-bottom: 0;
  font-size: 0.94rem;
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0.85;
}

/* ==================== COOKIE CONSENT BANNER & MODAL ==================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #203146;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 27px 20px 20px 20px;
  z-index: 2100;
  box-shadow: 0 0 44px 0 rgba(32,49,70,0.13);
  font-size: 1rem;
  animation: cookieIn 0.6s cubic-bezier(.46,.22,.57,.63);
}
@keyframes cookieIn {from{transform:translateY(110px);opacity:0;} to{transform:translateY(0);opacity:1;}}
.cookie-banner .cookie-text {
  flex: 3 1 270px;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: center;
}
.cookie-banner button {
  padding: 10px 20px;
  margin: 0;
  font-size: 1rem;
  border-radius: 7px;
  transition: background 0.13s, color 0.17s;
}
.cookie-banner .accept {
  background: #00F381;
  color: #203146;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #FFD900;
  color: #203146;
}
.cookie-banner .reject {
  background: #FF39B3;
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #9107eb;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff;
  color: #203146;
  border: 1px solid #FF39B3;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #E7E9EB;
  color: #FF39B3
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,49,70,0.63);
  z-index: 2140;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  color: #203146;
  box-shadow: 0 9px 52px 0 rgba(255,57,179,0.09);
  border-radius: 15px;
  min-width: 340px;
  max-width: 94vw;
  padding: 36px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalPop 0.36s cubic-bezier(.56,.43,.44,.95);
}
@keyframes modalPop {from{transform:scale(0.77) translateY(-30px);opacity:0;} to{transform:scale(1) translateY(0);opacity:1;}}
.cookie-modal h2 {
  font-size: 1.42rem;
  color: #FF39B3;
  margin-bottom: 7px;
}
.cookie-modal .category {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-modal .category label {
  font-weight: 700;
  margin-right: 3px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px;
  right: 19px;
  font-size: 1.56rem;
  background: none;
  color: #FF39B3;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  border-radius: 5px;
  padding: 2px 9px;
  transition: background 0.15s, color 0.13s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #FF39B3;
  color: #fff;
  opacity:1;
}
.cookie-modal input[type="checkbox"]{
  accent-color: #0062FF;
}

/* ==================== TYPOGRAPHY SCALE ==================== */
@media (max-width: 800px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.41rem; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 600px) {
  html, body {
    font-size: 15px;
  }
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.16rem; }
  .hero h1 { font-size: 1.3rem; }
}

/* ==================== RESPONSIVE DESIGN / FLEX ADJUSTMENTS ==================== */
@media (max-width: 1040px) {
  .container {
    max-width: 100vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .footer-social { margin-top: 30px; }
  footer .container { gap: 14px; }
}
@media (max-width: 820px) {
  .feature-grid, .service-grid, .testimonial-list {
    gap: 18px;
  }
  .card, .testimonial-card, .service-item, .feature-item {
    min-width: 96vw;
    max-width: 99vw;
  }
  .footer-social {
    margin-top: 18px;
  }
}
@media (max-width: 768px) {
  nav, header nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .feature-grid, .service-grid, .testimonial-list, .card-container {
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .hero {
    padding: 26px 0 27px 0;
    min-height: 180px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 10px 16px 10px;
  }
}
@media (max-width: 520px){
  .section, .hero, .features, .immobilien-intro, .about-preview, .contact-brief, .services-overview {
    padding: 21px 4px;
  }
  .content-wrapper {
    gap:8px;
  }
  .feature-item, .service-item {
    padding: 13px 7px 10px 10px;
  }
}

/* Ensure minimum margin/gap between all cards/sections as per requirements */
.section, .card, .feature-item, .service-item, .testimonial-card {
  margin-bottom: 20px;
}

/* ==================== UTILITIES ==================== */
.align-center {align-items: center; justify-content: center;}
.text-center {text-align: center;}
.mt-2 {margin-top: 20px;}
.mb-2 {margin-bottom: 20px;}
.mb-3 {margin-bottom: 32px;}
.gap-1 {gap: 10px;}
.gap-2 {gap: 20px;}

/* ==================== END ==================== */

/* Fonts (Google Fonts import for Montserrat/Roboto) */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
