/* Dawn Passage Immobilienberatung - Futuristic Tech-Inspired Style
   Brand: #1F3A5A (primary), #00A676 (secondary), #F2F2F2 (accent)
   Fonts: Montserrat (Display), Roboto (Body)
   Modern, inviting, futuristic with neon accents and gradients
   ALL layout with flex only
*/

/* ---------------- CSS Reset & Normalize ----------------- */

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(130deg, #192538, #213d5e 75%, #1F3A5A 100%);
  color: #F2F2F2;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.02em;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: #00ffc8;
  text-decoration: none;
  transition: color 0.20s;
}
a:hover, a:focus {
  color: #00A676;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong { font-weight: bold; }

/* -------------- Brand Typography -------------- */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #fff;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.25rem; /* 36px */ margin-bottom: 16px; }
h2 { font-size: 1.75rem; /* 28px */ margin-bottom: 16px; }
h3 { font-size: 1.25rem; /* 20px */ margin-bottom: 10px; }
h4 { font-size: 1.125rem; margin-bottom: 8px; }

p { margin-bottom: 16px; }

/* -------------- Containers and Layout -------------- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* ------------------------ Header & Navigation ------------------------ */
header {
  background: #101820e8;
  box-shadow: 0 2px 16px rgba(40,70,120,0.18);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 16px;
}
header img {
  width: 170px;
  height: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #F2F2F2;
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  position: relative;
  transition: background 0.17s, color 0.17s;
}
nav a:hover, nav a:focus {
  background: #00A67622;
  color: #00ffc8;
  text-decoration: none;
}

.btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.20s;
  line-height: 1.15;
  display: inline-block;
  position: relative;
}
.btn-primary {
  background: #00A676;
  color: #101820;
  box-shadow: 0 0 0 0 rgba(0,255,200,0.18);
}
.btn-primary:hover, .btn-primary:focus {
  background: #00ffc8;
  color: #101820;
  box-shadow: 0 0 16px #00ffc888;
  text-shadow: 0 0 4px #fff5;
}

.mobile-menu-toggle {
  background: #1F3A5A;
  border: 2px solid #00ffc982;
  color: #00ffc8;
  font-size: 2rem;
  padding: 8px 16px;
  border-radius: 8px;
  display: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 16px;
  z-index: 1001;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #00A676;
  color: #fff;
}

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(12,30,48,0.98);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.75,.01,.48,1.12);
  z-index: 9910;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 0 0 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #00ffc8;
  margin: 24px 24px 10px 0;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, color 0.19s;
  z-index: 9912;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #00A676;
  color: #F2F2F2;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0 36px;
}
.mobile-nav a {
  color: #F2F2F2;
  background: transparent;
  padding: 10px 0;
  width: 100%;
  font-size: 1.15rem;
  border-radius: 6px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #00A67625;
  color: #00ffc8;
}

/* Hide regular nav and show burger on mobile */
@media (max-width: 1024px) {
  nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* -------------- Section and Card Spacing -------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #223048;
  border-radius: 20px;
  box-shadow: 0 2px 18px #00ffc808;
  padding: 32px 24px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 0 26px #00ffc891;
  transform: translateY(-4px) 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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F2F2F2;
  border-radius: 20px;
  margin-bottom: 20px;
  color: #121720;
  box-shadow: 0 2px 16px rgba(31,58,90,0.10);
  font-size: 1.06rem;
  position: relative;
}
.testimonial-card strong {
  color: #00A676;
  margin-left: 10px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 20px;
  background: #223048;
  border-radius: 14px 38px 14px 22px;
  box-shadow: 0 1px 8px #00ffc818;
  width: 260px;
  transition: box-shadow 0.18s, border 0.18s;
  border: 1.5px solid #1F3A5A;
}
.feature-item:hover {
  box-shadow: 0 0 16px #00ffc887;
  border-color: #00A676;
}
.feature-item img {
  width: 44px;
  height: 44px;
}

/* --------------- Grids for service, team, listings --------------- */
.features-grid, .services-grid, .team-intros {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.service-item, .team-member {
  background: #223048;
  border-radius: 18px;
  box-shadow: 0 1px 12px #00ffc81a;
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 320px;
  padding: 24px 18px 24px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, border 0.16s;
  border: 1.5px solid #1F3A5A;
}
.service-item:hover, .team-member:hover {
  box-shadow: 0 0 18px #00ffc86d;
  border-color: #00A676;
}
.service-item img, .team-member img {
  width: 40px;
  height: 40px;
}

/* -------------- Section Specifics -------------- */
.hero {
  padding: 64px 0 56px 0;
  background: linear-gradient(120deg, #222e43 75%, #00A6762c 100%);
  box-shadow: 0 6px 20px #1018201a;
}
.hero h1 {
  font-size: 2.75rem;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 3px 24px #00ffc850;
}
.hero .btn-primary {
  font-size: 1.15rem;
}

.cta {
  margin: 60px 0 32px 0;
  padding: 40px 20px;
  background: linear-gradient(110deg, #1F3A5A 75%, #00A67625 100%);
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 3px 32px #00ffc81c;
}
.cta h2 {
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 3px 20px #00ffc850;
}
.cta p {
  color: #F2F2F2;
}

/* --- Process/Steps --- */
.steps-list, .process-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.steps-list li, .process-steps li {
  background: #223048;
  border-radius: 18px;
  padding: 28px 16px 24px 16px;
  box-shadow: 0 1px 12px #00ffc81f;
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1.5px solid #1F3A5A;
  transition: box-shadow .16s, border .16s;
}
.steps-list li:hover, .process-steps li:hover {
  border-color: #00A676;
  box-shadow: 0 0 18px #00ffc86a;
}
.steps-list img, .process-steps img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}

/* --- Footer --- */
footer {
  background: #202a39;
  padding: 38px 0 20px 0;
  margin-top: 44px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.footer-menu a {
  color: #00ffc8;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-radius: 4px;
  padding: 3px 10px;
  transition: background 0.18s, color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #00A67633;
  color: #fff;
}
.footer-brand-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: center;
}
.footer-brand-contact img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 10px #00ffc812);
}
.mini-contact {
  color: #ddd;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}

/* -------- Legal Page/Info Section ------- */
.legal {
  background: #192538cc;
  border-radius: 20px;
  margin: 54px 0 30px 0;
  padding: 40px 20px;
}
.legal h1, .legal h2 { color: #fff; }
.text-section {
  margin-bottom: 16px;
  color: #e6f3ef;
  font-size: 1.08rem;
}
.text-section h2 {
  color: #00ffc8;
  font-size: 1.3rem;
  margin-top: 18px;
}
.text-section a {
  color: #00A676;
}
.text-section ul li {
  margin-bottom: 7px;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.faq-item {
  background: #223048;
  color: #F2F2F2;
  border-radius: 12px;
  padding: 20px 18px 18px 18px;
  box-shadow: 0 1px 8px #00ffc81a;
  transition: box-shadow 0.18s;
}
.faq-item:hover {
  box-shadow: 0 0 16px #00ffc87a;
}
.faq-item h3 {
  margin-bottom: 6px;
  color: #00ffc8;
  font-size: 1.1rem;
}

/* --- Misc Lists with Icons --- */
.listings-summary ul li,
.intro ul li,
.why-us ul li,
.process-summary ul li,
.listings-summary ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 13px;
}
.listings-summary ul img, .intro ul img, .why-us ul img { width: 24px; height: 24px; }

/* --- Contact Details --- */
.contact ul, .text-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}
.contact ul li, .text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact ul img, .text-section ul img {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 4px #00ffc84c);
}
.contact a { color: #00ffc8; }
.contact a:hover { color: #00A676; }

/* --- Values/Highlight lists --- */
.values-highlight {
  background: #25b09918;
  padding: 22px 20px 16px 20px;
  border-radius: 16px 8px 18px 24px;
  margin-top: 20px;
  box-shadow: 0 1px 8px #00ffc815;
}
.values-highlight h4 {
  color: #00ffc8;
  margin-bottom: 7px;
}

/* --- Thank You page --- */
.thank-you {
  background: linear-gradient(110deg, #223048 70%, #00A67629 100%);
  padding: 54px 0 38px 0;
  border-radius: 28px;
  box-shadow: 0 3px 32px #00ffc81a;
  text-align: center;
}
.thank-you h1 {
  margin-bottom: 22px;
  color: #00ffc8;
}
.thank-you p, .thank-you ul {
  color: #F2F2F2;
}

/* ---------------- Cookie Consent Banner ----------------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #111c29fa;
  color: #F2F2F2;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20000;
  padding: 21px 18px 15px 18px;
  box-shadow: 0 -2px 32px #00ffc84d;
  font-size: 1.1rem;
  border-top: 2px solid #00ffc86a;
  animation: fadeInUp .55s forwards cubic-bezier(.18,.6,.55,1.04);
  gap: 14px;
}
@keyframes fadeInUp {
  0% { transform: translateY(64px); opacity: 0; }
  80% { transform: translateY(-2px); opacity: .88;}
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-actions {
  display: flex;
  gap: 13px;
  margin-top: 6px;
}
.cookie-btn {
  background: #00A676;
  color: #08111e;
  border: none;
  border-radius: 18px;
  padding: 8px 25px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, box-shadow 0.14s;
  box-shadow: 0 2px 0 #00ffc86a;
}
.cookie-btn.settings {
  background: transparent;
  border: 2px solid #00ffc890;
  color: #00ffc8;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #00ffc8;
  color: #151c27;
  box-shadow: 0 0 14px #00ffc885;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #00ffc840;
}

/* --- Cookie Modal --- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(13, 22, 33, 0.88);
  z-index: 21000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: fadeIn .3s forwards;
  transition: opacity .22s;
}
@keyframes fadeIn {
  0% {opacity:0;} 100% {opacity:1;}
}
.cookie-modal-content {
  background: #15253b;
  color: #F2F2F2;
  padding: 36px 24px 26px 24px;
  border-radius: 24px;
  width: 95%;
  max-width: 400px;
  box-shadow: 0 6px 34px #00ffc858;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 12px;
  font-size: 1.7rem;
  color: #00ffc8;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 10px 2px;
  border-radius: 8px;
  transition: background .2s, color .17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #00A676;
  color: #fff;
}
.cookie-modal-content h2 {
  color: #00ffc8;
  margin-bottom: 8px;
}
.cookie-cat {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 0;
}
.cookie-toggle {
  width: 40px; height: 24px;
  background: #101a24;
  border-radius: 15px;
  border: 1.5px solid #00A676;
  position: relative;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.19s;
}
.cookie-toggle[aria-checked="true"] {
  background: #00ffc8;
  border-color: #00ffc8;
}
.cookie-toggle-knob {
  display: block;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 1px;
  transition: left 0.22s;
  box-shadow: 0 2px 6px #181c25b2;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-knob {
  left: 16px;
  background: #00ffc8;
  box-shadow: 0 2px 8px #00ffc897;
}
.cookie-cat .cookie-desc {
  font-size: 14px;
  color: #b9e8e0;
  margin-left: 4px;
}

/* ------------------- RESPONSIVE ONLY FLEXBOX ------------------- */
@media (max-width: 1024px) {
  .footer-brand-contact {
    flex-direction: column;
    gap: 12px;
  }
  .features-grid, .services-grid, .team-intros, .steps-list, .process-steps, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  header .container, .content-wrapper, .footer-menu, .footer-brand-contact, .container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
  }
  .hero {
    padding: 36px 0 24px 0;
    text-align: left;
  }
  .cta {
    margin: 36px 0 16px 0;
    padding: 26px 10px;
    border-radius: 16px;
    text-align: left;
  }
  .section {
    margin-bottom: 34px;
    padding: 22px 10px;
    border-radius: 14px;
  }
  .features-grid, .services-grid,
  .team-intros, .steps-list, .process-steps, .content-grid {
    flex-direction: column !important;
    gap: 17px;
    align-items: stretch;
  }
  .feature-item, .service-item, .team-member, .steps-list li, .process-steps li {
    min-width: unset !important;
    max-width: unset !important;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 11px;
    font-size: 1rem;
  }
  .footer-menu {
    gap: 14px;
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.17rem; }
  .hero h1 { font-size: 1.8rem; }
  .cta h2 { font-size: 1.25rem; }
  .container { padding: 0 7px; }
  .content-wrapper { padding: 0; }
}

/* --------- Animations & Microinteractions --------- */
.card, .service-item, .feature-item, .testimonial-card,
.steps-list li, .process-steps li, .faq-item {
  transition: box-shadow 0.19s, transform 0.15s, border .18s;
}
.btn, .cookie-btn { transition: background 0.18s, color 0.18s, box-shadow .17s; }
nav a, .footer-menu a, .mobile-nav a { transition: background 0.14s, color 0.14s; }

/* --------- Accessibility Focus Styles --------- */
a:focus, .btn:focus, .cookie-btn:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2px solid #00ffc8;
  outline-offset: 2px;
}

/* --------- Utility: Hide visually --------- */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap !important;
}

/* -------- Ensuring no overlap, clear gaps -------- */
.section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  box-sizing: border-box;
}

/* --------- THE END --------- */
