/* CSS RESET & NORMALIZE (mobile-friendly, vintage modifications)*/
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F2E9E1;
  color: #2E4A62;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #2E4A62;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #8BB174;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
input, button, select, textarea {
  font-family: inherit;
}

/* VINTAGE RETRO BRAND COLORS (with a nostalgic flair) */
:root {
  --primary: #2E4A62;
  --secondary: #F2E9E1;
  --accent: #8BB174;
  --accent-dark: #5B843F;
  --retro-brown: #B4886B;
  --retro-sand: #FFFAEB;
  --retro-yellow: #FFD569;
  --retro-red: #B04935;
  --retro-dark-blue: #183148;
  --white: #FFFFFF;
  --black: #24211B;
  --shadow-vintage: 0 4px 24px rgba(46,74,98,0.13);
}

/* VINTAGE RETRO FONTS: font-face fallbacks */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Source+Sans+Pro:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  letter-spacing: 0.02em;
  color: #2E4A62;
  font-weight: 900;
}
h1 { font-size: 2.25rem; margin-bottom: 16px; line-height: 1.2; }
h2 { font-size: 1.75rem; margin-bottom: 16px; line-height: 1.25; }
h3 { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.3; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }
p, li, span, label, input, button {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #2E4A62;
  font-size: 1.1rem;
}
p { margin-bottom: 16px; }
strong, b { font-weight: bold; }

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-sand);
  border-radius: 16px;
  box-shadow: var(--shadow-vintage);
}
section {
  margin-bottom: 60px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(46,74,98,0.13);
  margin-bottom: 20px;
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  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;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
  align-items: flex-start;
}
.feature-item {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 1px 7px rgba(46,74,98,0.09);
  padding: 26px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 340px;
  border: 2.5px solid var(--retro-yellow);
  margin-bottom: 20px;
  transition: transform 0.17s, box-shadow 0.25s;
}
.feature-item img {
  width: 44px;
  height: 44px;
}
.feature-item:hover {
  box-shadow: 0 10px 40px rgba(46,74,98,0.21);
  transform: translateY(-4px) scale(1.04);
  border-color: var(--retro-brown);
}

/* TESTIMONIAL CARD (Vintage Speech Bubble) */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: var(--retro-yellow);
  border-radius: 18px 18px 18px 8px;
  box-shadow: 0 2px 12px rgba(176,136,107,0.10);
  font-style: italic;
  position: relative;
  border: 2px solid var(--primary);
}
.testimonial-card p {
  margin: 0;
  color: #232323;
  font-size: 1.1rem;
  flex: 1;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 1.05rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-left: 12px;
}

/* TEAM MEMBER CARD (about.html) */
.team-member {
  background: var(--white);
  border-radius: 12px;
  border-left: 6px solid var(--retro-brown);
  box-shadow: 0 1px 7px rgba(46,74,98,0.09);
  padding: 24px 18px;
  margin-bottom: 20px;
  width: 100%;
  transition: border-color 0.21s;
}
.team-member h3 {
  margin-bottom: 8px;
  color: var(--retro-brown);
}
.team-member:hover {
  border-color: var(--retro-yellow);
}

/* SEARCH BAR & FILTER CHIPS (immobilienangebote.html) */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  padding: 14px 20px;
  box-shadow: 0 1px 5px rgba(46,74,98,0.06);
}
.search-bar input {
  flex: 1 1 150px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  color: var(--black);
  padding: 10px 16px;
  background: var(--retro-sand);
  outline: none;
  margin-right: 8px;
}
.filter-options {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-chip {
  background: var(--accent);
  color: var(--white);
  border-radius: 18px;
  padding: 4px 16px;
  font-size: 1rem;
  margin-right: 5px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .04em;
  display: inline-block;
}

/* VINTAGE RETRO BUTTON STYLE */
.button, button, input[type='submit'] {
  background: var(--accent);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: 28px;
  margin-top: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(91,132,63,0.16);
  transition: background 0.18s, color 0.18s, transform 0.13s;
  outline: none;
}
.button.primary,
.button[type='submit'],
input[type='submit'] {
  background: var(--retro-red);
  color: var(--retro-sand);
}
.button.primary:hover, input[type='submit']:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px) scale(1.045);
}
.button.accent {
  background: var(--primary);
  color: var(--retro-yellow);
}
.button.accent:hover {
  background: var(--retro-yellow);
  color: var(--primary);
}
.button:active {
  opacity: 0.89;
}

/* Header Styles - Retro Navigation Bar */
header {
  position: relative;
  background: #fff8ef;
  border-bottom: 4px solid var(--retro-brown);
  box-shadow: 0 0px 16px rgba(46,74,98,.04);
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
header img {
  height: 38px;
  margin-right: 12px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
header nav a {
  padding: 7px 20px;
  border-radius: 24px;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  background: none;
  transition: background 0.11s, color 0.11s;
}
header nav a:hover, header nav a:focus {
  background: var(--retro-yellow);
  color: var(--accent-dark);
  outline: none;
}
.button.primary {
  margin-left: 24px;
}
/* Hide mobile nav by default on desktop */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* Footer */
footer {
  background: #fff8ef;
  padding: 40px 0 28px 0;
  border-top: 4px solid var(--retro-brown);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}
footer img {
  height: 44px;
  margin-bottom: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 50px;
  justify-content: center;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
footer nav a {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}
footer nav a:hover {
  color: var(--accent-dark);
}
footer .text-section {
  gap: 2px;
  font-size: 1rem;
  color: var(--primary);
}
footer .text-section img {
  vertical-align: middle;
  height: 18px;
  margin-right: 6px;
}
footer .copyright {
  margin-top: 10px;
  font-size: .98rem;
  color: #9d927f;
  letter-spacing: 0.02em;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--retro-brown);
  color: var(--white);
  z-index: 1112;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 1rem;
  box-shadow: 0 -2px 12px rgba(46,74,98,0.13);
  animation: cookie-fadein .7s cubic-bezier(.32,1.28,.43,1);
}
@keyframes cookie-fadein {from{opacity:0; transform:translateY(60px);} to{opacity:1; transform:translateY(0);}}
.cookie-banner .cookie-banner__text {
  flex: 1 1 180px;
  margin-right: 26px;
  font-family: 'Source Sans Pro', sans-serif;
}
.cookie-banner .cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button, .cookie-banner .button {
  background: var(--accent);
  color: var(--retro-sand);
  border-radius: 22px;
  padding: 8px 20px;
  font-size: 1.09rem;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  box-shadow: 0 0.5px 3px rgba(46,74,98,0.07);
  cursor: pointer;
  transition: background .17s, color .16s;
}
.cookie-banner button:hover {
  background: var(--accent-dark);
}
.cookie-banner .cookie-settings-btn {
  background: var(--retro-yellow);
  color: var(--primary);
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--retro-sand);
  color: var(--retro-brown);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0;top: 0;width: 100vw; height: 100vh;
  background: rgba(34,32,20, 0.4);
  z-index: 1113;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade .3s;
}
@keyframes cookie-modal-fade {from{opacity:0} to{opacity:1}}
.cookie-modal {
  background: #fff8ef;
  max-width: 460px;
  border-radius: 20px;
  box-shadow: 0 6px 60px rgba(46,74,98,0.19);
  padding: 38px 32px 28px 32px;
  color: var(--primary);
  font-family: 'Source Sans Pro', sans-serif;
  animation: cookie-modal-in .4s cubic-bezier(.7,-0.1,.46,1.18);
  position: relative;
}
@keyframes cookie-modal-in {from{opacity:0; transform:scale(.93) translateY(36px);} to{opacity:1;transform:none}}
.cookie-modal h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category label {
  font-size: 1.08rem;
}
.cookie-modal .cookie-toggle {
  width: 40px;
  height: 22px;
  border-radius: 12px;
  background: var(--retro-yellow);
  position: relative;
  cursor: pointer;
  display: inline-block;
  margin-left: 12px;
  transition: background .15s;
}
.cookie-modal .cookie-toggle input {
  width:0; height:0; opacity:0; position:absolute;
}
.cookie-modal .cookie-toggle span {
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  transition: left .15s, background .13s;
}
.cookie-modal .cookie-toggle input:checked + span {
  left: 21px;
  background: var(--accent-dark);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  margin-top: 22px;
  justify-content: flex-end;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--accent-dark);
  font-size: 1.3rem;
  cursor: pointer;
}
.cookie-modal .cookie-close:hover {
  color: var(--retro-red);
}

/* Interactive Animations - micro-interactions */
.button, .feature-item, .testimonial-card, .filter-chip, .cookie-banner button, .cookie-modal {
  transition: box-shadow 0.21s, background 0.13s, color 0.15s, transform .10s;
}

/* List/Bulletpoints Custom Style */
ul, ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 18px;
  font-size: 1.06rem;
}
ul li:before {
  content: '\2022';
  position: absolute;
  left: 0; color: var(--retro-red);
  font-size: 20px;
}
ol li {
  margin-bottom: 8px;
  font-size: 1.06rem;
}

/* Misc Elements & Spacing */
section h2 {
  font-family: 'Montserrat', cursive, sans-serif;
  letter-spacing: 0.03em;
  color: var(--retro-brown);
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 12px;
}
hr {
  border: 0; border-top: 1px dashed var(--retro-brown);
  margin: 40px 0;
}

/* Cards and Card Shadows */
.card {
  box-shadow: 0 2px 10px rgba(46,74,98,0.10);
  border: 2px solid var(--retro-sand);
}
.card:hover {
  box-shadow: 0 6px 28px rgba(46,74,98,0.17);
}

/* Mobile Navigation Hamburger */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.18rem;
  background: none;
  border: none;
  color: var(--primary);
  position: absolute;
  right: 22px; top: 20px;
  width: 46px; height: 44px;
  z-index: 112;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.12s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #fff8ef;
  box-shadow: 0 8px 40px rgba(46,74,98,0.51);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.61,1.58,.34,.98);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-size: 2.15rem;
  position: absolute;
  right: 22px; top: 18px;
  z-index: 1211;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-yellow);
  color: var(--primary);
}
.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 100px 36px 24px 36px;
  background: none;
  height: 100vh;
  overflow-y: auto;
}
.mobile-menu .mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  padding: 14px 0;
  border-bottom: 1.5px dotted var(--retro-brown);
  font-weight: 700;
}
.mobile-menu .mobile-nav a:hover {
  color: var(--retro-red);
  background: var(--retro-yellow);
}

/* --- Responsive Design --- */
@media (max-width: 1159px) {
  .container { max-width: 96vw; }
  .feature-grid { gap: 24px 12px; }
}
@media (max-width: 900px) {
  section, .section { padding: 32px 6vw; }
  .feature-grid .feature-item { max-width: 310px; }
}
@media (max-width: 820px) {
  .content-wrapper, .content-grid, .feature-grid {
    flex-direction: column;
    gap: 24px;
  }
  footer .content-wrapper { gap: 22px; }
  .feature-item { max-width: 100%; }
}
@media (max-width: 768px) {
  html { font-size: 96%; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }

  header .container {
    flex-direction: row;
    gap: 6px;
    padding: 12px 0;
  }
  nav, header nav {
    display: none;
  }
  .mobile-menu-toggle { display: flex; }
  body.menu-open { overflow: hidden; }
  .mobile-menu { display: flex; }
  .container {
    padding: 0 10px;
  }
  section, .section { padding: 18px 4vw; margin-bottom: 36px; }
  .content-wrapper, .content-grid, .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .feature-item, .team-member {
    max-width: 100%;
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .search-bar { flex-direction: column; gap: 10px; }
  footer .content-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 1.14rem;
    margin-bottom: 9px;
  }
  .section, section {
    padding: 10px 0.8em;
    border-radius: 12px;
  }
  .testimonial-card, .feature-item, .team-member, .card {
    padding: 16px 10px;
    border-radius: 9px;
  }
  .cookie-modal {
    padding: 18px 7vw 14px 7vw;
    min-width: 0;
    max-width: 97vw;
    font-size: 0.98rem;
  }
  .cookie-modal .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }
  .search-bar input {
    padding: 9px 8px;
    font-size: 1rem;
  }
}

/* Hide scroll when menu open */
body.menu-open {
  overflow: hidden !important;
}

/* Utility Classes for Vintage Effects */
.vintage-border {
  border: 3px dashed var(--retro-brown);
}
.vintage-bg {
  background: var(--retro-sand);
}

/* Accessibility: Focus States */
a:focus, button:focus, .button:focus {
  outline: 2.5px dashed var(--retro-brown);
  outline-offset: 2px;
  background: var(--retro-yellow);
  color: var(--primary);
}

/* Miscellaneous Styles */
::selection { background: var(--retro-yellow); color: var(--primary); }

/* Micro-separator style for cards/sections (dotted) */
.section + .section {
  border-top: 3px dotted var(--retro-brown);
}

/* Hide desktop nav show mobile nav at small screens */
@media (max-width: 768px) {
  header nav { display: none !important; }
  header .button.primary { display: none !important; }
  .mobile-menu-toggle { display: flex; }
}
