/* =============================================
   Volodomo Immobilien – main.css (Vollständig & Mobil-Optimiert)
   Primär: #1d71b8  |  Sekundär: #ffffff  |  Vermarktung: Gelb
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Brand & Verwaltung (Blau) */
  --primary:        #1d71b8; 
  --primary-dark:   #11538c;
  --primary-light:  #eaf3fc;
  --secondary:      #ffffff; 
  --accent:         #dd3730; 

  /* Vermarktung (Gelb) */
  --yellow:         #FFC107;
  --yellow-dark:    #D39E00;
  --yellow-light:   #FFF8E1;

  /* Graustufen & Neutrale Farben */
  --white:          #ffffff;
  --off-white:      #f9fbfd;
  --light-gray:     #e8eaf0;
  --mid-gray:       #8b90a8;
  --text:           #2a2a3e;

  /* Typografie */
  --font-display:   'Barlow Condensed', sans-serif;
  --font-body:      'Barlow', sans-serif;
  --font-title:     'Barlow Condensed', sans-serif;

  /* UI Elemente */
  --radius-sm:      4px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --shadow-sm:      0 4px 12px rgba(29, 113, 184, 0.08);
  --shadow-md:      0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover:   0 15px 35px rgba(0, 0, 0, 0.15);
  
  --transition:     0.3s cubic-bezier(.4, 0, .2, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ─── Scroll Animationen ─── */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

.disabled-link {
    background-color: #b5b5b5 !important;
    border-color: #b5b5b5 !important;
    color: #666 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.disabled-link:hover {
    background-color: #b5b5b5 !important;
    border-color: #b5b5b5 !important;
    color: #666 !important;
    cursor: not-allowed;
}
/* ─── Header ─── */
.site-header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 20px 0;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 70px; width: auto; }
.main-nav ul { display: flex; gap: 25px; flex-wrap: wrap; }
.main-nav a { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.main-nav a:hover { color: var(--yellow-dark); }

/* ─── Hero Section & Slider ─── */
.hero {
    position: relative;
    color: var(--secondary);
    height: 65vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}
.hero-slider { position: absolute; inset: 0; z-index: 2; }
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 113, 184, 0.4) 0%, rgba(17, 83, 140, 0.6) 100%);
    z-index: 3;
}
.hero-content { position: relative; z-index: 4; padding: 0 20px; }
.hero h1 { font-size: 4rem; margin-bottom: 15px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); text-transform: uppercase; }
.hero p { font-size: 1.3rem; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }

.slider-dots {
    position: absolute;
    bottom: 95px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.35);
    padding: 8px 16px;
    border-radius: 30px;
}
.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot:hover { background-color: rgba(255, 255, 255, 0.9); }
.dot.active { background-color: var(--white); transform: scale(1.25); box-shadow: 0 0 8px rgba(255,255,255,0.6); }

/* ─── Division Selector ─── */
.division-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: -60px auto 40px auto;
    position: relative;
    z-index: 20;
    gap: 30px;
    padding: 0 25px;
}
.div-card {
    border-radius: var(--radius-lg);
    padding: 45px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.div-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.blue-card { background: var(--primary); color: var(--white); }
.yellow-card { background: var(--yellow); color: #000; }
.lane-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.blue-card .lane-tag { background: rgba(255,255,255,0.18); color: white; }
.yellow-card .lane-tag { background: rgba(0,0,0,0.08); color: #000; }
.div-card h2 { font-size: 2rem; margin-bottom: 12px; }
.div-card p { font-size: 1.05rem; margin-bottom: 25px; opacity: 0.9; }

/* ─── Buttons ─── */
.btn-solid {
    display: inline-block;
    padding: 14px 35px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.05rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-blue { background: var(--primary); color: var(--white); box-shadow: 0 4px 15px rgba(29, 113, 184, 0.25); }
.btn-blue:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: #000; box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3); }
.btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-white-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-white-outline:hover { background: var(--white); color: var(--primary); }
.btn-black-outline { background: transparent; border: 2px solid #000; color: #000; }
.btn-black-outline:hover { background: #000; color: var(--yellow); }

/* ─── Service Grid ─── */
.service-section { padding: 70px 0; }
.section-title { color: var(--primary); font-size: 2.4rem; text-align: center; margin-bottom: 8px; }
.section-header { text-align: center; margin-bottom: 45px; }
.section-header p { color: var(--mid-gray); font-size: 1.1rem; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.properti-style {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: relative;
    transition: all 0.3s ease;
}
.properti-style:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.properti-style h3 { color: var(--primary-dark); margin-bottom: 12px; font-size: 1.35rem; }
.card-desc { font-size: 0.95rem; color: var(--mid-gray); margin-bottom: 20px; }
.card-icon { width: 45px; height: 45px; border-radius: 10px; margin-bottom: 20px; }
.blue-icon { background: var(--primary-light); }
.yellow-icon { background: var(--yellow-light); }

.card-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}
.badge-blue { background: var(--primary-light); color: var(--primary-dark); }
.badge-yellow { background: var(--yellow-light); color: var(--yellow-dark); }

.properti-style ul li {
    padding-left: 22px;
    font-size: 0.95rem;
    border-bottom: 1px solid #f7f7f7;
    padding-bottom: 10px;
    margin-bottom: 10px;
    position: relative;
}
.properti-style ul li:last-child { border-bottom: none; }
.properti-style ul li::before {
    content: "→"; color: var(--primary); position: absolute; left: 0; top: 0; font-weight: bold;
}
.highlight-yellow h3 { color: #000; }
.highlight-yellow ul li::before { color: var(--yellow-dark); }

/* ─── Referenzen Vorschau ─── */
.ref-marketing-bg { background-color: var(--yellow-light); }
.ref-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.ref-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: block;
}
.ref-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--yellow-dark); }
.ref-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.ref-card h3 { font-size: 1.2rem; padding: 18px 10px 6px; color: #000; }
.ref-card p { font-size: 0.9rem; color: var(--mid-gray); padding: 0 10px 18px; }

/* ─── Referenzen Detail-Seite ─── */
.ref-header { background: var(--primary-light); padding: 60px 0; text-align: center; }
.ref-header h1 { color: var(--primary-dark); font-size: 3rem; margin-bottom: 10px; }
.ref-section { padding: 75px 0; border-bottom: 1px solid #eaeaea; scroll-margin-top: 110px; }
.ref-section:nth-child(even) { background: var(--off-white); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

.iframe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}
.iframe-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}
.iframe-wrapper iframe {
    width: 100%;
    height: 380px;
    border: none;
    display: block;
}
.iframe-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-align: center;
}

/* ─── Expert Call-to-Action ─── */
.expert-cta { background-color: var(--off-white); padding: 45px 0; }
.cta-container { display: flex; justify-content: space-between; align-items: center; background: var(--white); padding: 35px 45px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.cta-left-row { display: flex; align-items: center; gap: 25px; }
.cta-text h3 { color: var(--primary-dark); font-size: 1.7rem; margin-bottom: 4px; }
.expert-portrait { width: 85px; height: 85px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-light); }
.cta-expert-icon { position: relative; }
.status-dot { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--white); }

/* ─── Footer (Flexibler 4-Spalten-Grid) ─── */
.site-footer {  color: var(--white); padding: 70px 0 40px; }
.footer-logo { max-width: 170px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-col h4 { margin-bottom: 22px; font-size: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 8px; text-transform: uppercase; }
.footer-col p { font-size: 0.95rem; line-height: 1.7; opacity: 0.85; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; transition: var(--transition); }
.footer-links a:hover { color: var(--yellow); padding-left: 4px; }

.btn-footer {
    display: block;
    width: 100%;
    max-width: 250px;
    text-align: center;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    font-size: 0.95rem;
}
.btn-footer:hover { background-color: var(--white); color: var(--primary-dark); }
.btn-footer-emergency { background-color: var(--accent); border-color: var(--accent); }
.btn-footer-emergency:hover { background-color: var(--white); color: var(--accent); border-color: var(--white); }

/* ─── Responsive Media Queries (Gezielte iPhone Fixes) ─── */
@media screen and (max-width: 992px) {
    .division-selector { grid-template-columns: 1fr; margin-top: 20px; }
    .cta-container { flex-direction: column; text-align: center; gap: 25px; }
    .cta-left-row { flex-direction: column; gap: 12px; }
}

@media screen and (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .hero h1 { font-size: 2.4rem; }
    .slider-dots { bottom: 40px; }
    
    /* Verhindert Horizontales Ausbrechen auf Smartphones */
    .division-selector {
        padding: 0 15px;
        gap: 20px;
    }
    .div-card {
        padding: 30px 20px; /* Reduziertes Padding bricht das Layout nicht auf iPhones */
        min-width: 0;
    }
}