/* =====================================================
   Shinelure Immobilien Institut – Monochrome Sophisticated CSS
   Brand: Modern, trustworthy, informative, Berlin focus
   Palette: #253858 (primary), #F4D35E (secondary), #FFFFFF (accent)
   Fonts: Montserrat (display), Open Sans (body)
   Monochrome sophisticated: black/white/gray, dramatic contrast, elegant typography
   ===================================================== */

/* 1. CSS RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #181818;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Font imports */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #181818;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.6em;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.8rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 500;
}
p, ul, ol, blockquote {
  margin-top: 0;
  margin-bottom: 1.2em;
}
strong {
  font-weight: 700;
}

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

/* 3. HEADER & NAVIGATION */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
header img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: #181818;
  text-decoration: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #253858;
}
.cta-btn {
  background: #181818;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 32px;
  border: none;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(24,24,24,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-left: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #253858;
  color: #F4D35E;
  box-shadow: 0 4px 24px rgba(37,56,88,0.12);
}

/* 4. MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #181818;
  cursor: pointer;
  margin-left: 16px;
  z-index: 120;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #253858;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,24,24,0.96);
  color: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F4D35E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 48px 0 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F4D35E;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }
  .cta-btn {
    padding: 10px 22px;
    font-size: 0.98rem;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 10px;
  }
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* 5. SECTIONS & SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(24,24,24,0.04);
  transition: box-shadow 0.2s;
}
section:last-child {
  margin-bottom: 0;
}

/* 6. FLEXBOX LAYOUTS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid > div {
  background: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(24,24,24,0.04);
  padding: 28px 24px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, background 0.2s;
}
.feature-grid > div:hover {
  background: #fff;
  box-shadow: 0 4px 24px rgba(37,56,88,0.10);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(24,24,24,0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  flex: 1 1 300px;
  min-width: 240px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, background 0.2s;
}
.card:hover {
  background: #f8f8f8;
  box-shadow: 0 6px 32px rgba(24,24,24,0.12);
}

.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: 20px;
}
.text-image-section > div {
  flex: 1 1 320px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f4f4f4;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(24,24,24,0.04);
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 600px;
  transition: box-shadow 0.2s, background 0.2s;
}
.testimonial-card blockquote {
  color: #181818;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-style: italic;
  margin: 0 0 8px 0;
  line-height: 1.5;
  quotes: "\201C" "\201D" "\2018" "\2019";
}
.testimonial-card span {
  color: #253858;
  font-size: 0.98rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
}
.testimonial-card:hover {
  background: #fff;
  box-shadow: 0 4px 24px rgba(37,56,88,0.10);
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.faq-list > div {
  background: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(24,24,24,0.04);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.gallery .text-image-section {
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 420px;
  background: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(24,24,24,0.04);
  padding: 24px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, background 0.2s;
}
.gallery .text-image-section:hover {
  background: #fff;
  box-shadow: 0 4px 24px rgba(37,56,88,0.10);
}

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

/* 7. BUTTONS & INTERACTIONS */
button, .cta-btn {
  cursor: pointer;
  outline: none;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid #253858;
  outline-offset: 2px;
}

/* 8. FOOTER */
footer {
  background: #181818;
  color: #fff;
  padding: 48px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F4D35E;
  opacity: 1;
}
.footer-brand img {
  height: 38px;
  width: auto;
  display: block;
  filter: grayscale(1) brightness(2);
}
.footer-social {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.footer-social a {
  color: #fff;
  opacity: 0.7;
  text-decoration: none;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.2s, opacity 0.2s;
}
.footer-social a:hover, .footer-social a:focus {
  color: #F4D35E;
  opacity: 1;
}
.footer-contact {
  color: #bbb;
  font-size: 0.98rem;
  text-align: center;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* 9. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #181818;
  color: #fff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 3000;
  box-shadow: 0 -2px 24px rgba(24,24,24,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-banner button {
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  margin: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cookie-banner .accept {
  background: #253858;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #F4D35E;
  color: #181818;
}
.cookie-banner .reject {
  background: #fff;
  color: #181818;
  border: 1px solid #253858;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #253858;
  color: #fff;
}
.cookie-banner .settings {
  background: transparent;
  color: #F4D35E;
  border: 1px solid #F4D35E;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #F4D35E;
  color: #181818;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,24,24,0.85);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #181818;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(24,24,24,0.18);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookieModalIn 0.4s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(60px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #181818;
  font-weight: 600;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: #253858;
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category.essential label {
  color: #253858;
}
.cookie-modal .cookie-category.essential input[type="checkbox"] {
  accent-color: #253858;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #253858;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #F4D35E;
}

/* 10. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .feature-grid > div, .faq-list > div, .gallery .text-image-section {
    min-width: 180px;
    max-width: 100%;
    padding: 20px 14px;
  }
  .card {
    min-width: 180px;
    max-width: 100%;
    padding: 20px 14px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  section {
    padding: 28px 8px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .feature-grid, .faq-list, .gallery, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .faq-list > div, .gallery .text-image-section, .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-modal {
    min-width: 0;
    width: 98vw;
    padding: 24px 8px 18px 8px;
  }
}
@media (max-width: 480px) {
  .footer-nav, .footer-social {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .footer-contact {
    font-size: 0.92rem;
  }
  .cookie-banner {
    padding: 16px 6px;
  }
}

/* 11. MISCELLANEOUS */
a {
  color: #253858;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F4D35E;
}
ul, ol {
  padding-left: 1.2em;
}
blockquote {
  border-left: 4px solid #253858;
  padding-left: 16px;
  margin: 0 0 1em 0;
  color: #181818;
  font-style: italic;
  background: transparent;
}
hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 32px 0;
}

/* 12. FORM ELEMENTS (for contact forms, if any) */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #bbb;
  background: #fafafa;
  color: #181818;
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.2s, background 0.2s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #253858;
  background: #fff;
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #181818;
  margin-bottom: 6px;
  display: block;
}

/* 13. VISUAL HIERARCHY & MICRO-INTERACTIONS */
section:hover, .card:hover, .feature-grid > div:hover, .gallery .text-image-section:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(24,24,24,0.10);
}

/* 14. ACCESSIBILITY */
:focus-visible {
  outline: 2px solid #F4D35E;
  outline-offset: 2px;
}

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

/* END OF CSS */
