/* ---------------------------------------------------------
   Loxos Radic Immobilien – Luxury Premium Style CSS
   Author: Senior CSS Developer & UI Designer
   Brand: Modern, Luxury, Premium, Trustworthy
   Font Imports: Montserrat (display), Roboto (body)
   --------------------------------------------------------- */

/* CSS RESET & NORMALIZATION */
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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7F6F3;
  color: #113340;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -ms-font-smoothing: antialiased;
}

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --primary: #113340;
  --secondary: #D9A441;
  --accent: #F7F6F3;
  --dark: #182A36;
  --light: #FFFFFF;
  --grey: #E5E5E5;
  --radius: 18px;
  --shadow-xs: 0 2px 8px rgba(17, 51, 64, 0.06);
  --shadow-md: 0 4px 20px rgba(17, 51, 64, 0.12);
}

/* GLOBAL LAYOUTS ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  padding-top: 16px;
  padding-bottom: 8px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

/* FLEXBOX SPACING CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(17,51,64,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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--accent);
  border: 1px solid #e7e3da;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* NAVIGATION ------------------------------------------------------------- */
header {
  width: 100%;
  background: var(--light);
  box-shadow: 0 2px 10px rgba(17, 51, 64, 0.07);
  z-index: 20;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px 10px 20px;
  max-width: 1240px;
}
header a img {
  height: 34px;
  max-width: 125px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 0.03em;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.18s;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transition: width 0.2s;
  margin-top: 3px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}

.cta-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 30px;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  letter-spacing: 0.03em;
  margin-left: 20px;
  transition: background 0.2s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 2px 18px rgba(217, 164, 65, 0.10);
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #b98a2f;
  color: var(--light);
  box-shadow: 0 4px 22px rgba(217,164,65,0.22);
  outline: none;
}

/* HAMBURGER MENU & MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 32px;
  border: none;
  border-radius: 12px;
  padding: 7px 18px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  z-index: 40;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}
@media (max-width: 990px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgb(17,51,64, .98);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.5,.33,.39,1.12), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--secondary);
  font-size: 34px;
  border: none;
  padding: 20px 25px 10px 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  margin: 0 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 7px;
  padding: 6px 0;
  display: block;
  transition: color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}

/* TYPOGRAPHY ----------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.16;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.4rem;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.75rem;
  color: var(--dark);
  letter-spacing: 0.013em;
  margin-top: 12px;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-top: 6px;
  margin-bottom: 9px;
  font-weight: 600;
}
h4, h5 {
  font-size: 1.06rem;
  color: var(--primary);
}
p, li, ul {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}
em {
  color: var(--secondary);
  font-style: italic;
}

ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 6px 0;
}
ul li {
  margin-bottom: 14px;
  position: relative;
  padding-left: 38px;
  min-height: 30px;
  display: flex;
  align-items: center;
}
ul li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-right: 12px;
  margin-left: -38px;
  flex-shrink: 0;
}

/* LINKS & BUTTONS -------------------------------------------------------- */
a {
  color: var(--secondary);
  text-decoration: underline;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #B98A2F;
  text-decoration: none;
  outline: none;
}
footer a {
  color: var(--light);
  text-decoration: none;
}
footer a:hover, footer a:focus {
  color: var(--secondary);
}
button, .cta-btn {
  transition: background 0.13s, color 0.12s, box-shadow 0.17s;
}

/* CARDS & VISUAL ELEMENTS -------------------------------------------------- */
.card {
  border: 1.5px solid #ece8db;
}
.card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ratings-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 22px;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border-left: 4px solid var(--secondary);
  margin-bottom: 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
}

/* TESTIMONIALS / REVIEWS -------------------------------------------------- */
.testimonial-card {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid #efd98d;
  box-shadow: 0 2px 12px rgba(17,51,64,0.06);
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card strong {
  color: var(--secondary);
  margin-left: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}

/* FOOTER --------------------------------------------------------------- */
footer {
  background: var(--primary);
  color: var(--light);
  padding: 38px 0 22px 0;
  font-size: 14px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 44px;
  max-width: 1240px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--light);
  font-size: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 2px;
  transition: color 0.18s;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 5px;
}
.footer-contact a {
  color: var(--secondary);
  text-decoration: none;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* SPECIAL COMPONENTS --------------------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

/* COOKIE CONSENT BANNER ----------------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px 16px;
  box-shadow: 0 -2px 12px rgba(17,51,64,0.17);
  gap: 18px;
  border-radius: 20px 20px 0 0;
  transition: transform 0.38s cubic-bezier(.55,.37,.39,1.06), opacity 0.32s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-banner .consent-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  margin-right: 10px;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(217,164,65,0.08);
  transition: background 0.18s, color 0.14s, box-shadow 0.18s;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--secondary);
  border: 1.4px solid var(--secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #B98A2F;
  color: var(--light);
  outline: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1400;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,51,64,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.28s;
}
.cookie-modal {
  background: var(--light);
  color: var(--primary);
  max-width: 480px;
  width: 92vw;
  padding: 36px 30px 26px 30px;
  border-radius: var(--radius);
  box-shadow: 0 4px 32px rgba(17,51,64,0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: popIn 0.26s;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes popIn {
  0% { transform: scale(.96) translateY(12px); opacity:0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  margin-bottom: 10px;
}
.cookie-modal-close {
  background: none;
  color: var(--primary);
  border: none;
  font-size: 23px;
  position: absolute;
  top: 20px; right: 20px;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}
.cookie-toggle {
  width: 36px;
  height: 18px;
  border-radius: 9px;
  background: var(--grey);
  position: relative;
  transition: background 0.17s;
  margin-right: 7px;
  cursor: pointer;
  border: 1px solid #e5dfc6;
}
.cookie-toggle.active {
  background: var(--secondary);
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--light);
  position: absolute;
  top: 1px; left: 2px;
  transition: left 0.20s;
  box-shadow: 0 0 4px rgba(17,51,64,0.10);
}
.cookie-toggle.active:before {
  left: 18px;
}
.cookie-description {
  font-size: 15px;
  color: #5D6870;
}

/* RESPONSIVE DESIGN -------------------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
    padding: 0 12px;
  }
  .content-wrapper {
    max-width: 98vw;
    padding: 0 2vw;
  }
  .footer-contact, .footer-nav {
    font-size: 14px;
  }
}
@media (max-width: 990px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
  }
  .footer-contact {
    margin-top: 16px;
    gap: 2px;
  }
  .content-wrapper {
    padding: 0 2vw;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 3vw;
  }
  .content-wrapper {
    padding: 0 4vw;
    gap: 13px;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 32px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
  .card {
    padding: 18px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px;
  }
  .feature-item {
    gap: 7px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.16rem;
  }
  .footer-contact, .footer-nav {
    font-size: 13px;
  }
  .ratings-summary {
    padding: 10px 8px;
    font-size: 14px;
  }
  .cookie-modal {
    padding: 20px 7vw;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.21rem; }
  h2 { font-size: 1.07rem; }
  .container, .content-wrapper, .footer-contact, .footer-nav {
    padding-left: 1vw;
    padding-right: 1vw;
    font-size: 13px;
  }
}

/* MICRO-INTERACTIONS ------------------------------------------------------ */
.card, .testimonial-card, .cta-btn, .cookie-btn, .mobile-menu, .mobile-menu-toggle {
  transition: box-shadow 0.18s, border-color 0.18s, background 0.18s, color 0.16s, transform 0.19s;
}
.card:active, .testimonial-card:active, .cta-btn:active, .cookie-btn:active {
  transform: scale(.99);
}

/* MISC DECORATIVE -------------------------------------------------------- */
::-webkit-scrollbar {
  width: 9px;
  background: #e5dfc6;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 8px;
}

/* ACCESSIBILITY HELPER */
:focus-visible {
  outline: 2.5px dashed var(--secondary);
  outline-offset: 2px;
}

/* Z-INDEX LAYERING */
header { z-index: 20; }
.mobile-menu { z-index: 1200; }
.cookie-consent-banner { z-index: 1300; }
.cookie-modal-overlay { z-index: 1400; }

/* END Luxury Premium CSS ------------------------------------------------------ */
