/* ========================== 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #F8F9FB;
  color: #23272C;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  accent-color: #234C7C;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* ========================== TYPOGRAPHY ========================== */
h1, .display-1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.1;
  color: #234C7C;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
@media (min-width: 600px) {
  h1, .display-1 { font-size: 3rem; }
}
h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 24px;
  color: #234C7C;
  letter-spacing: 0.01em;
}
h3 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 500;
  font-size: 1.375rem;
  margin-bottom: 16px;
  color: #1a2331;
}
h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #1a2331;
}
p, li, ul, ol {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.063rem;
  color: #363636;
  margin-bottom: 12px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
strong, b {
  font-weight: bold;
  color: #1a2331;
}
em, i {
  font-style: italic;
}

/* ========================== CONTAINER & SECTION SPACING ========================== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .section { padding: 28px 6px; margin-bottom: 36px; }
}

.text-section, .text-image-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.card-container, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(35,76,124,0.04), 0 1.5px 6px rgba(120, 130, 150, 0.06);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(35,76,124,0.09), 0 3px 9px rgba(120,130,150,0.10);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card {
    padding: 20px 12px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f3f5f9;
  border-radius: 10px;
  padding: 20px 18px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 20px 24px;
  margin-bottom: 24px;
  background: #fff;
  border-left: 5px solid #FFD875;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(35,76,124,0.06);
  font-size: 1.125rem;
  color: #23272C;
}
.testimonial-card strong {
  color: #234C7C;
  font-size: 1.1em;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #767676;
  letter-spacing: 0.01em;
  margin-left: 3px;
}

/* ============ HEADER & NAVIGATION ============ */
header {
  background: #fff;
  border-bottom: 1px solid #e5e9f2;
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-size: 1.04rem;
  padding: 8px 14px;
  color: #234C7C;
  font-family: 'Georgia', serif;
  position: relative;
  border-radius: 6px;
  transition: background 0.20s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #D9E4F5;
  color: #142940;
}
/* Primary nav CTA button */
.btn-primary, .main-nav .btn-primary {
  background: #234C7C;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 99px;
  border: none;
  font-family: 'Georgia', serif;
  font-size: 1.08rem;
  box-shadow: 0 2px 10px rgba(35,76,124,0.05);
  transition: background 0.18s, box-shadow 0.20s;
  margin-left: 14px;
}
.btn-primary:hover, .main-nav .btn-primary:hover, .btn-primary:focus {
  background: #18375b;
  color: #FFD875 !important;
  box-shadow: 0 4px 16px rgba(35,76,124,0.08);
}
.btn-secondary {
  background: #FFD875;
  color: #234C7C !important;
  padding: 10px 24px;
  border-radius: 99px;
  border: none;
  font-family: 'Georgia', serif;
  font-size: 1.08rem;
  font-weight: 600;
  transition: box-shadow 0.19s, background 0.20s, color 0.18s;
  box-shadow: 0 2px 10px rgba(35,76,124,0.03);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F2C338;
  color: #1a2331 !important;
}

/* =============== MOBILE NAVIGATION =============== */
.mobile-menu-toggle {
  background: #FFD875;
  color: #234C7C;
  border-radius: 10px;
  border: none;
  font-size: 2.0rem;
  padding: 8px 16px 6px 16px;
  margin-left: 12px;
  cursor: pointer;
  display: none;
  z-index: 1002;
  transition: background 0.22s, color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFE09A;
  color: #1a2331;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,76,124,0.98);
  color: #FFF;
  z-index: 1999;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.67,.16,0,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: transparent;
  color: #FFD875;
  font-size: 2rem;
  border: none;
  z-index: 2001;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover {
  color: #fff00b;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;
  width: 100%;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 0;
  border-radius: 7px;
  transition: background 0.24s, color 0.18s;
  width: 100%;
  display: block;
  outline: none;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #18375B;
  color: #FFD875;
}

@media (max-width: 1024px) {
  .main-nav .btn-primary {
    margin-left: 0;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ========== SECTIONS/HEROES/FEATURE-GRIDS/CTA ========== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:last-child {
  margin-bottom: 0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35,76,124,0.05);
  padding: 28px 20px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  transition: box-shadow 0.18s;
  border-left: 3px solid #D9E4F5;
}
.feature-grid > div:hover {
  border-left: 3px solid #FFD875;
  box-shadow: 0 4px 20px rgba(35,76,124,0.07);
}
.feature-grid img {
  height: 44px;
  width: 44px;
  margin-bottom: 14px;
}
@media (max-width: 980px) {
  .feature-grid > div {
    flex-basis: 100%;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  section {
    padding: 24px 0;
    margin-bottom: 36px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div {
    border-left: 3px solid #D9E4F5;
  }
}

/* ========== FORMS, INPUTS, CALLS TO ACTION ========== */
input[type='text'],
input[type='email'],
input[type='phone'],
textarea {
  background: #fff;
  border: 1.5px solid #D9E4F5;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 1rem;
  color: #1a2331;
  transition: border 0.16s;
  margin-bottom: 14px;
}
input[type='text']::placeholder,
input[type='email']::placeholder,
input[type='phone']::placeholder {
  color: #8E9AAC;
  opacity: 1;
}
input:focus,
textarea:focus {
  border-color: #234C7C;
}

/* DISABLED SEARCH ON IMMOBILIEN.HTML */
input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f3f6fa;
}

/* ========== BUTTONS ========== */
button, .btn-primary, .btn-secondary {
  cursor: pointer;
  outline: none;
  border: none;
  transition: background 0.18s, color 0.16s, box-shadow 0.16s, border 0.16s;
}
.btn-primary:active,
.btn-secondary:active {
  transform: translateY(1.5px) scale(0.98);
  box-shadow: 0 1px 3px rgba(35,76,124,0.02);
}

/* ========== FOOTER ========== */
footer {
  background: #234C7C;
  color: #fff;
  padding: 0;
  border-top: 1px solid #D9E4F5;
}
footer .container {
  padding: 32px 20px 24px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-direction: row
}
footer img {
  height: 42px;
  width: auto;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 152px;
}
footer nav a {
  color: #fff;
  opacity: 0.93;
  font-weight: 400;
  font-size: 1.01rem;
  letter-spacing: 0.008em;
  margin-bottom: 0;
  transition: opacity 0.13s, color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #FFD875;
  opacity: 1;
}
footer .contact-short-info {
  font-size: 0.98rem;
  color: #EFEFEF;
  margin-top: 0.5em;
  line-height: 1.7;
}
footer .contact-short-info img {
  height: 22px;
  width: 22px;
  vertical-align: middle;
  margin-right: 7px;
}
footer .legal-notice {
  font-size: 0.96rem;
  color: #D9E4F5;
  margin-top: 18px;
}
@media (max-width: 960px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer .container {
    padding: 24px 8px 16px 8px;
  }
}

/* ========== LISTS, UL/OL STYLES ========== */
ul, ol {
  padding-left: 22px;
  margin-bottom: 12px;
}
ul li,
ol li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.7;
}
ul li strong, ol li strong {
  color: #234C7C;
  font-weight: 700;
}
ul li img {
  margin-right: 7px;
  vertical-align: middle;
}
ul > li {
  position: relative;
  padding-left: 12px;
}
ul > li::before {
  content: '\2022';
  color: #FFD875;
  position: absolute;
  left: -12px;
  font-size: 1.2em;
  top: -1px;
}
ol > li {
  list-style-type: decimal;
  padding-left: 0;
}
ul ul, ol ul {
  margin-bottom: 0;
  padding-left: 18px;
}

/* ========== ACCESSIBILITY ========== */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #FFD875;
  outline-offset: 2px;
}

::selection {
  background: #D9E4F5;
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #1a2331;
  border-top: 2px solid #D9E4F5;
  box-shadow: 0 -2px 14px rgba(35,76,124,0.13);
  z-index: 9999;
  padding: 24px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1.04rem;
  animation: banner-fade-in 0.5s;
}
@keyframes banner-fade-in {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner button {
  margin: 0 8px 0 0;
  padding: 8px 20px;
  font-size: 1rem;
  border-radius: 7px;
  border: none;
  font-family: 'Georgia', serif;
  font-weight: 600;
  min-width: 132px;
}
.button-accept {
  background: #234C7C;
  color: #fff;
  transition: background 0.16s, color 0.1s;
}
.button-accept:hover, .button-accept:focus {
  background: #18375b;
  color: #FFD875;
}
.button-reject {
  background: #D9E4F5;
  color: #234C7C;
  border: 1px solid #234C7C;
  transition: background 0.13s, color 0.12s;
}
.button-reject:hover,
.button-reject:focus {
  background: #fff;
  color: #1a2331;
}
.button-settings {
  background: #FFD875;
  color: #234C7C;
}
.button-settings:hover, .button-settings:focus {
  background: #FFE08A;
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 10010;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,76,124,0.35);
  justify-content: center;
  align-items: center;
  animation: modal-backdrop-fade 0.23s;
}
.cookie-modal-backdrop.open {
  display: flex;
}
@keyframes modal-backdrop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  min-width: 320px;
  max-width: 98vw;
  background: #fff;
  color: #1a2331;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(35,76,124,0.10);
  padding: 36px 30px 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10011;
  animation: modal-slide-in 0.32s;
}
@keyframes modal-slide-in {
  from { opacity: 0; transform: scale(0.96) translateY(32px); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal h3 {
  font-size: 1.22rem;
  color: #234C7C;
  margin-bottom: 12px;
}
.cookie-modal label {
  font-size: 1.03rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
}
.cookie-modal input[type='checkbox'] {
  accent-color: #234C7C;
  width: 19px;
  height: 19px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.cookie-modal .close-modal {
  background: transparent;
  color: #234C7C;
  font-size: 1.3rem;
  border: none;
  position: absolute;
  right: 19px;
  top: 16px;
  cursor: pointer;
  transition: color 0.12s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #FFD875;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 18px 7px 16px 10px;
    min-width: 80vw;
  }
}

/* ========== MICRO INTERACTIONS, TRANSITIONS, HOVERABLES ========== */
a, button, .btn-primary, .btn-secondary, .main-nav a, .feature-grid > div, .card {
  transition: background 0.18s, color 0.14s, box-shadow 0.19s, border 0.14s;
}
nav a:active, button:active {
  transform: scale(0.97);
  opacity: 0.92;
}

/* ========== ELEGANT SPACING / CLASSIC PROPORTIONS ========== */
.section, section, .container, .content-wrapper, .card-container, .card, .content-grid, .feature-grid, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}
.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; }

/* Avoid overlap on mobile, space out all major blocks and cards */
@media (max-width: 570px) {
  .section, section {
    margin-bottom: 24px;
    padding: 14px 2px;
  }
  .testimonial-card {
    padding: 15px 6px 15px 9px;
  }
}

/* === ACCESSIBILITY/CONTRAST in Testimonials === */
.testimonial-card {
  background: #fff;
  color: #1a2331;
}

/* ========== CUSTOM SCROLLBAR FOR ELEGANCE ========== */
::-webkit-scrollbar { width: 9px; background: #f5f7fa; }
::-webkit-scrollbar-thumb { background: #D9E4F5; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #98b5d7; }

/* ========== ADDITIONAL UTILITIES ========== */
.d-flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.mb20 { margin-bottom: 20px !important; }

/* ========== BRAND COLORS (CSS VARIABLES) ========== */
:root {
  --brand-primary: #234C7C;
  --brand-secondary: #D9E4F5;
  --brand-accent: #FFD875;
}

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