/*-------------------------------------------------
  UrbanDomizil München - Scandinavian Clean CSS
  Designed to match all provided HTML pages & brand
  CRITICAL: FLEXBOX ONLY (no grid/columns), pixel-perfect spacing, accessible contrast
  Brand colors: #19496A (primary), #E9EDF3 (secondary/light bg), #F9B233 (accent)
  Fonts: Montserrat (display), Roboto (body)
---------------------------------------------------*/

/* ------------------- 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 {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: #FCFCFD;
  color: #19496A;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
}
img, video {
  max-width: 100%;
  display: block;
}
a {
  color: #19496A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F9B233;
}
ul, ol {
  margin-left: 1.5em;
}
strong, b {
  font-weight: 600;
}

/* ------------------- TYPOGRAPHY ------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #19496A;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-top: 0;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 500;
}
p {
  font-size: 1rem;
  margin-bottom: 20px;
}
.section ul {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
}

/* ------------------- LAYOUT & CONTAINERS ------------------- */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 680px;
  margin: 0 auto;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 16px 0 rgba(25,73,106,0.07);
  display: flex;
}
@media (max-width: 820px) {
  .section {
    padding: 32px 8px;
    margin-bottom: 40px;
    border-radius: 16px;
  }
}
.section:last-child {
  margin-bottom: 0;
}

/* Flexbox layouts for specific patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(25,73,106,0.08);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 350px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(25,73,106,0.13);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .container { padding: 0 8px; }
}

/* Feature grid (custom for index) */
.feature-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  background: #E9EDF3;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  flex: 1 1 210px;
  max-width: 300px;
  box-shadow: 0 1px 4px 0 rgba(25,73,106,0.05);
  transition: box-shadow 0.2s, background 0.2s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.feature-item:hover {
  box-shadow: 0 8px 24px 0 rgba(25,73,106,0.12);
  background: #f5f7fa;
}
@media (max-width: 900px) {
  .feature-grid, .features {
    gap: 16px;
  }
  .feature-item {
    padding: 20px 14px;
    min-width: 170px;
  }
}
@media (max-width: 650px) {
  .feature-item {
    min-width: 100%;
    width: 100%;
    max-width: unset;
  }
  .feature-grid, .features {
    flex-direction: column;
    gap: 10px;
  }
}

/* Testimonial cards */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px 0 rgba(25,73,106,0.10);
  min-width: 240px;
  max-width: 370px;
  color: #19496A;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.12s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px 0 rgba(25,73,106,0.13);
  transform: translateY(-3px) scale(1.027);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #19496A;
  margin-bottom: 0;
  margin-top: 0;
}
.testimonial-card span {
  color: #19496A;
  font-size: 1rem;
  opacity: 0.88;
}

/* Property list (angebote) */
.property-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.property-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 14px 0 rgba(25,73,106,0.08);
  padding: 28px 22px 18px 22px;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 210px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.property-item h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #19496A;
  letter-spacing: -0.005em;
}

@media (max-width: 650px) {
  .property-list {
    flex-direction: column;
    gap: 12px;
  }
  .property-item {
    max-width: 100%;
    min-width: 95%;
  }
}

/* Contact Details (kontakt) */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.contact-details img {
  vertical-align: middle;
  margin-right: 10px;
  height: 24px;
  width: 24px;
  display: inline-block;
}
.contact-details a {
  color: #19496A;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.18s;
}
.contact-details a:hover {
  color: #F9B233;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-list h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #164376;
}
.faq-list p {
  margin-bottom: 8px;
  font-size: 0.99rem;
}

/* ------------------- BUTTONS & LINKS ------------------- */
.btn-primary {
  background: #19496A;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.24s, color 0.08s, box-shadow 0.24s, transform 0.14s;
  box-shadow: 0 2px 6px rgba(25,73,106,0.07);
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #133759;
  color: #F9B233;
  box-shadow: 0 4px 16px 0 rgba(25,73,106,0.13);
  transform: translateY(-1px) scale(1.03);
}
.btn-link {
  color: #19496A;
  background: transparent;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 0 0 4px 0;
  border: none;
  text-decoration: underline;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.18s;
  margin-top: 2px;
}
.btn-link:hover, .btn-link:focus { color: #F9B233; }

/* Utility, small badge button look for cookies (modals) */
.btn-secondary {
  background: #E9EDF3;
  color: #19496A;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 10px 0 0;
  transition: background 0.19s, color 0.09s, box-shadow 0.16s;
  box-shadow: 0 2px 5px rgba(33, 73, 106, 0.07);
}
.btn-secondary:hover, .btn-secondary:focus { 
  background: #f5f7fa;
  color: #19496A;
}
.btn-accent {
  background: #F9B233;
  color: #19496A;
  border: none;
  border-radius: 8px;
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 10px 0 0;
  transition: background 0.18s, color 0.12s;
  box-shadow: 0 2px 5px rgba(25,73,106,0.08);
}
.btn-accent:hover, .btn-accent:focus {
  background: #ffcd65;
  color: #19496A;
}

/* ------------------- HEADER & NAVIGATION ------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(25,73,106,0.06);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}
.main-nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  padding: 16px 20px;
  width: 100%;
}
.main-nav .logo {
  margin-right: 30px;
  display: flex;
  align-items: center;
  height: 46px;
}
.main-nav .logo img { height: 38px; }
.main-nav a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #19496A;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background 0.13s, color 0.17s;
}
.main-nav a:not(.btn-primary):hover, .main-nav a:not(.btn-primary):focus {
  background: #E9EDF3;
  color: #133759;
}
.main-nav .btn-primary {
  margin-left: auto;
  margin-right: 0;
}
@media (max-width: 1050px) {
  .main-nav { padding: 16px 10px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 10px; }
}
@media (max-width: 820px) {
  .main-nav a { font-size: 0.97rem; }
}

/* ------------------- MOBILE NAV ------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  line-height: 1;
  color: #19496A;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 1202;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E9EDF3;
}
@media (max-width: 880px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #fff;
  z-index: 1201;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.9,0.05,0.18,0.99);
  box-shadow: 0 10px 44px 0 rgba(25,73,106,0.20);
  display: flex;
  flex-direction: column;
  padding-top: 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  left: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #19496A;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  transition: background 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { background: #E9EDF3; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 48px 0 0 30px;
}
.mobile-nav a {
  color: #19496A;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.16s;
}
.mobile-nav a:focus,
.mobile-nav a:hover { color: #F9B233; }
@media (min-width: 881px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* Overlay backdrop for mobile menu */
.mobile-menu.open::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(25,73,106,0.18);
  z-index: -1;
}

/* ------------------- FOOTER ------------------- */
footer {
  background: #E9EDF3;
  color: #19496A;
  padding: 40px 20px 18px 20px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 2px solid #d7dde4;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #19496A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.13s, color 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #fff;
  color: #F9B233;
}
.footer-contact {
  font-size: 0.98rem;
  color: #195180;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-contact a {
  color: #19496A;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .footer-nav { gap: 10px; }
  footer { padding: 24px 6px 10px 6px; }
}

/* ------------------- COOKIE CONSENT BANNER ------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #19496A;
  box-shadow: 0 -2px 24px 0 rgba(25,73,106,0.09);
  padding: 24px 20px 14px 20px;
  z-index: 1203;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  font-size: 1rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  animation: cookieBannerSlideIn 0.7s cubic-bezier(.65,-0.08,.73,1.15);
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  justify-content: center;
}
@media (max-width: 600px) {
  .cookie-banner {
    padding: 17px 5px 10px 5px;
    font-size: 0.98rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
}
@keyframes cookieBannerSlideIn {
  0% { transform: translateY(120%); opacity: 0; }
  88% { transform: translateY(-8%); }
  100% { transform: translateY(0); opacity: 1; }
}

/* Modal for settings (overlay) */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1600;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(25,73,106,0.17);
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInCookieOverlay 0.22s cubic-bezier(.34,1.36,.54,.89);
}
@keyframes fadeInCookieOverlay {
  from { opacity: 0; }
  90% { opacity: 0.96; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  padding: 38px 25px 24px 25px;
  max-width: 430px;
  min-width: 260px;
  box-shadow: 0 10px 40px rgba(25,73,106,0.18);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  color: #19496A;
  animation: cookieModalSlideUp 0.25s cubic-bezier(.1,.7,.34,1);
}
@keyframes cookieModalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  70%  { transform: translateY(-8px); }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: #E9EDF3;
  color: #19496A;
  font-size: 1.3rem;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background 0.14s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #FCFCFD;
}
.cookie-modal h2 {
  font-size: 1.33rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #E9EDF3;
  font-size: 1rem;
}
.cookie-switch {
  display: flex;
  align-items: center;
}
.cookie-switch input[type="checkbox"] {
  appearance: none;
  width: 36px; height: 22px;
  background: #E9EDF3;
  border-radius: 16px;
  position: relative;
  outline: none;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-switch input[type="checkbox"]:checked {
  background: #F9B233;
}
.cookie-switch input[type="checkbox"]::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
  box-shadow: 0 1px 4px rgba(25,73,106,0.08);
}
.cookie-switch input[type="checkbox"]:checked::before {
  left: 17px;
}
.cookie-category label {
  font-size: 1rem;
  margin-left: 9px;
  color: #19496A;
}
.cookie-category .info {
  font-size: 0.94rem;
  color: #7c98b1;
  margin-left: 6px;
}

/* ------------------- MICRO INTERACTIONS & ANIMATION ------------------- */
section, .feature-item, .testimonial-card, .property-item, .card {
  transition: box-shadow 0.18s, background 0.13s, transform 0.13s;
}

/* ------------------- LISTS & ICONS ------------------- */
ul li, ol li {
  margin-bottom: 8px;
}
.text-section ul {
  padding-left: 1.1em;
}
.text-section li {
  font-size: 1rem;
  color: #19496A;
}
.text-section li img {
  margin-right: 10px; height: 23px;
  vertical-align: middle;
}

/* ------------------- UTILITY CLASSES ------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.hide { display: none !important; }
.show { display: block !important; }
.centered { text-align: center !important; align-items: center !important; }

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 650px) {
  .container, .content-wrapper {
    padding-left: 0; padding-right: 0;
  }
  .section {
    padding: 21px 2px;
    margin-bottom: 20px;
    border-radius: 8px;
  }
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.12rem; }
}

/*
  End of Scandinavian Clean CSS. All layouts are flexbox-based. No grid/columns.
  Cookie Banner/modal, Mobile Nav, Testimonials, Feature cards etc. all match Flexbox, branding, spacing and accessibility requirements.
*/
