/* -----------------------
   Scandinavian Clean CSS for Zazzees Immobilien
   Brand: Modern, clean, functional elegance with warmth
   COLORS:
     --primary:   #274472 (deep blue)
     --secondary: #ADC6DE (light blue)
     --accent:    #F7F7F7 (subtle light background)
   FONTS:
     --display: Montserrat, 'Segoe UI', Arial, sans-serif
     --body:    Roboto, 'Segoe UI', Arial, sans-serif
-------------------------*/

/* ========== CSS RESET & BASE ==========
   Normalize and natural vertical rhythm
*/
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: inherit; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.25s; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}
button { cursor: pointer; }

/* ========== ROOT VARIABLES ==========
   Scandinavian Clean Palette
*/
:root {
  --primary: #274472;
  --secondary: #ADC6DE;
  --accent: #F7F7F7;
  --text-dark: #1C2734;
  --text-light: #555;
  --white: #FFF;
  --border: #E3E6EA;
  --success: #347C55;
  --warning: #A07233;
  --error: #B23A48;
  --radius: 14px;
  --card-radius: 18px;
  --shadow: 0 4px 18px rgba(39,68,114,0.07);
  --shadow-hover: 0 6px 24px rgba(39,68,114,0.10);
}

/* ==================
   TYPOGRAPHY
=================== */
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background: var(--accent);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.25rem; margin-bottom: 18px; }
h2 { font-size: 1.8rem; margin-bottom: 16px; }
h3 { font-size: 1.28rem; margin-bottom: 12px; }
h4 { font-size: 1.05rem; color: var(--text-dark); }
p, li, address { font-size: 1rem; color: var(--text-light); }
p { margin-bottom: 14px; }
strong { font-weight: 700; }

@media (min-width: 700px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.32rem; }
}

/* Typography utility */
.lead { font-size: 1.2rem; color: var(--primary); font-weight: 500; }

/* ========== LAYOUT CONTAINER & SPACING ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--card-radius);
}
@media (max-width: 700px) {
  .section { padding: 32px 8px; margin-bottom: 32px; }
}

/* =======================
   NAVIGATION & HEADER
========================*/
header {
  background: var(--white);
  box-shadow: 0 1px 13px rgba(39,68,114,0.05);
  width: 100%;
  z-index: 100;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 22px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--primary);
  padding: 7px 12px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: var(--text-dark);
}
.cta-btn {
  margin-left: auto;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 10px 28px;
  font-size: 1.03rem;
  box-shadow: var(--shadow);
  font-weight: 600;
  transition: background 0.24s, box-shadow 0.19s, color 0.28s;
  letter-spacing: 0.012em;
  outline: 0;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

/* ========================
   MOBILE NAVIGATION
======================== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  border: none;
  box-shadow: 0 2px 14px rgba(39,68,114,0.08);
  z-index: 151;
  position: relative;
  margin-left: 10px;
  transition: background 0.22s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus { background: var(--secondary); color: var(--primary); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: var(--white);
  box-shadow: 0 3px 64px rgba(30,50,80,0.12);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.24,.88,.47,1);
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 22px 0 0;
  font-size: 2rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  width: 44px; height: 44px;
  border: none;
  transition: background 0.22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { background: var(--primary); color: var(--white); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin: 32px 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--primary);
  padding: 12px 0;
  width: 100%;
  border-radius: var(--radius);
  font-size: 1.13rem;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--text-dark);
}
@media (min-width: 1000px) {
  .mobile-menu-toggle,
  .mobile-menu { display: none !important; }
}
@media (max-width: 999px) {
  header nav,
  .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle { display: flex; }
}

/* ===============
   MAIN LAYOUT
================ */
main { width: 100%; margin: 0 auto; }

/* Content spacing utility */
.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;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 22px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.21s, transform 0.18s;
}
.card:hover,
.card:focus-within {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.01);
}

@media (max-width: 768px) {
  .text-image-section,
  .content-grid,
  .card-container
    { flex-direction: column; gap: 18px; }
}

/* Feature grid (site-specific): index, about, etc. */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 10px rgba(39,68,114,0.05);
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 20px 22px 24px;
  min-width: 180px;
  max-width: 320px;
  transition: box-shadow 0.2s;
  margin-bottom: 0; /* grid gap in flex covers the gap */
}
.feature-grid li img { height: 38px; margin-bottom: 6px; }
.feature-grid li h3{
  font-size: 1.18rem; line-height:1.2; color: var(--primary); margin: 0 0 7px 0;
}
.feature-grid li p{
  font-size: 1rem;
  color: var(--text-light);
}
@media (max-width: 900px) {
  .feature-grid{ gap: 16px; }
  .feature-grid li{ min-width: 140px; max-width: 100%; }
}
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid li { width: 100%; max-width: 100%; padding: 18px 12px; }
}

/* Service list (dienstleistungen, index) */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 22px 0 32px 0;
}
.service-list li, .service-list div {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 18px 20px 16px 24px;
  box-shadow: 0 1px 10px rgba(39,68,114,0.04);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: box-shadow 0.18s, border 0.17s;
}
.service-list li:hover,
.service-list li:focus-within,
.service-list div:hover,
.service-list div:focus-within {
  border-color: var(--secondary);
  box-shadow: var(--shadow-hover);
}
.service-list h3 { color: var(--primary); font-size: 1.1rem; }
.service-list strong { color: var(--primary); }

/* Guarantee badges (dienstleistungen.html) */
.guarantee-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}
.guarantee-badges span {
  display: flex;
  align-items: center;
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 8px 18px 8px 12px;
  font-weight: 600;
  gap: 8px;
  font-size: 1rem;
}
.guarantee-badges img { height: 28px; width: auto; }
@media (max-width:700px) {
  .guarantee-badges {flex-direction:column;gap:10px;}
}

/* Pricing summary */
.pricing-summary {
  border-radius: var(--card-radius);
  background: var(--secondary);
  color: var(--primary);
  margin-top: 20px;
  padding: 20px 24px;
}
.pricing-summary h4 { font-size: 1.1rem; }

/* =====================
   TESTIMONIALS CARDS
===================== */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--secondary);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 18px rgba(39,68,114,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  margin-bottom: 20px;
  margin-top: 14px;
  min-width: 0;
  color: var(--text-dark);
  position: relative;
}
.testimonial-card span {
  color: #E1B800;
  font-size:1.12rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.06rem;
  margin-bottom: 0;
}
.testimonial-card h4 {
  margin-top:3px;
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}
@media (max-width:700px) {
  .testimonial-card { padding: 15px 8px; }
}

/* ==============
   TEXT-IMAGE SECTION, TEXT BLOCKS
 ============== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}
.text-section ul {
  padding-left: 22px;
}
.text-section li {
  margin-bottom: 8px;
  color: var(--text-light);
  font-size: 1rem;
}
.text-section li img {
  vertical-align: middle;
  height: 20px;
  margin-right: 8px;
}
@media (max-width: 768px) {
  .text-section { padding: 0 2px; }
}

/* ================
   MAP EMBED / INFO SECTIONS
================== */
.map-embed {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-top: 18px;
  font-size: 0.98rem;
}

/* ================
   GENERAL LIST STYLE FOR CONTENT
================== */
ul:not([class]), ol:not([class]) {
  padding-left: 23px;
  margin-bottom: 18px;
}
ul:not([class]) li, ol:not([class]) li {
  color: var(--text-light);
  margin-bottom: 8px;
  font-size: 1rem;
  position: relative;
}
ul:not([class]) li::before {
  content: '\2022';
  color: var(--secondary);
  margin-right: 9px;
  font-weight: bold;
  font-size: 18px;
  display:inline-block;
}

/* ================
   PAGE UTILITY/HELPER CLASSES
================== */
.muted { color: var(--secondary); font-weight: 500; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }

/* ================
   FOOTER
================== */
footer {
  background: var(--white);
  padding: 36px 0 18px 0;
  border-top: 1px solid var(--border);
  box-shadow: 0 -1px 10px rgba(39,68,114,0.04);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
  padding-bottom: 0;
}
footer img {
  height: 42px;
  min-width: 44px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 24px;
}
footer nav a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 2px;
  transition: color 0.17s;
}
footer nav a:hover { color: var(--secondary); }
footer address {
  font-style: normal;
  color: var(--text-light);
  font-size: 0.97rem;
  display: block;
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 24px; align-items: flex-start; }
  footer nav { flex-direction: row; flex-wrap: wrap; gap: 20px; margin: 0; }
}

/* ================
   BUTTONS
================== */
button,
.btn, .cta-btn {
  border-radius: var(--radius);
  border: none;
  outline: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 22px;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(39,68,114,0.10);
  transition: background 0.21s, color 0.25s, box-shadow 0.22s, transform 0.17s;
}
button:hover,
.btn:hover, .cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-hover);
}

/* =======================
   COOKIE CONSENT BANNER
======================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 -2px 24px rgba(39,68,114,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  z-index: 3000;
  justify-content: center;
  border-top: 1px solid var(--border);
  transition: transform 0.4s, opacity 0.35s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  color: var(--text-dark);
  font-size: 1rem;
  max-width: 540px;
}
.cookie-banner button {
  margin-left: 6px;
  border: none;
  border-radius: var(--radius);
  padding: 9px 19px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  box-shadow: none;
  background: var(--primary);
  color: var(--white);
  transition: background 0.21s, color 0.25s;
}
.cookie-banner button.cookie-accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-banner button.cookie-accept:hover,
.cookie-banner button.cookie-accept:focus {
  background: var(--success);
}
.cookie-banner button.cookie-reject {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner button.cookie-reject:hover,
.cookie-banner button.cookie-reject:focus {
  background: var(--error);
  color: var(--white);
}
.cookie-banner button.cookie-settings {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--primary);
}
.cookie-banner button.cookie-settings:hover,
.cookie-banner button.cookie-settings:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width:700px){
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 10px;
  }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: var(--white);
  border-radius: var(--card-radius);
  max-width: 370px;
  width: 92vw;
  box-shadow: 0 12px 40px rgba(39,68,114,0.20);
  z-index: 3025;
  padding: 32px 28px 30px 28px;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.34s, transform 0.22s;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-45%) scale(0.96);
}
.cookie-modal h2, .cookie-modal h3 {
  margin-top: 0;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-modal ul {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal label { display: flex; align-items: center; gap: 12px; }
.cookie-modal input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px; height: 20px;
  margin-right: 8px;
}
.cookie-modal .cookie-category { font-weight: 700; color: var(--primary); }
.cookie-modal .cookie-desc { color: var(--text-light); font-size: 0.98rem; }
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal .cookie-save-btn {
  background: var(--primary);
  color: var(--white);
}
.cookie-modal .cookie-save-btn:hover,
.cookie-modal .cookie-save-btn:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .cookie-cancel-btn {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .cookie-cancel-btn:hover,
.cookie-modal .cookie-cancel-btn:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width:600px){
  .cookie-modal {
    padding:20px 8px 18px 8px;
    width:95vw;
    max-width:95vw;
  }
}

/* ===================
   LINK + BUTTON SHARED BRAND
==================== */
a.cta-btn, button.cta-btn {
  display: inline-block;
  text-align: center;
}
a.cta-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

/* ===============
   FORM, INPUTS (future-proof)
================*/
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 18px;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
  outline: none;
}

/* ===============
   MISC
================*/
hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }

/* ================
   RESPONSIVE TYPO
================= */
@media (max-width: 450px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.21rem; }
  .cta-btn { font-size:0.98rem; padding:9px 11px; }
}

/* ================
   SUCCESS + ERROR
================= */
.success { color: var(--success); }
.error { color: var(--error); }

/* ================
   ANIMATIONS
================= */
.card, .feature-grid li, .service-list li, .testimonial-card {
  transition: box-shadow 0.23s, transform 0.2s, border 0.15s;
}
.card:hover, .feature-grid li:hover, .service-list li:hover, .testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.012);
  border-color: var(--secondary);
}

/* Subtle fade in (optional usage) */
.fade-in { opacity: 0; animation: fadeIn 0.7s 0.1s forwards; }
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Highlight icons in service lists or features */
.feature-grid li img,
.service-list li img {
  filter: grayscale(10%) brightness(1.05);
  opacity: 0.85;
  transition: filter 0.21s;
}
.feature-grid li:hover img, .service-list li:hover img { filter: none; opacity: 1; }

/* Visually hide scroll on mobile menu overlay */
body.menu-open {
  overflow: hidden;
}

/* ================
   SPECIAL: THANK-YOU PAGE
================= */
.thank-you { text-align: center; }
.thank-you ul { margin: 23px auto; max-width: 420px; }
.thank-you .cta-btn { margin-top: 26px; }

/********************************
 MEDIA QUERIES FOR FLEX LAYOUTS
********************************/
@media (max-width: 768px) {
  .container,
  .content-wrapper {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/*********************************
  PRINT (basic, just in case)
**********************************/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  main, section, .container, .content-wrapper { background: var(--white) !important; color: var(--text-dark) !important; box-shadow: none !important; }
}
