/**
 * HOBEGE Plugin - Elementor Widget Overrides
 *
 * Diese Datei überschreibt Elementor-Defaults und passt die Widgets
 * an das HOBEGE-Design an.
 *
 * @package Hobege_Plugin
 */

/* ================================================
   Elementor Container Reset für HOBEGE Widgets
   ================================================ */

/* Volle Breite für HOBEGE Sections */
.elementor-widget-hobege_apartments_home,
.elementor-widget-hobege_hausverwaltung_home,
.elementor-widget-hobege_eventlocation_hochzeit,
.elementor-widget-hobege_home {
    width: 100%;
}

/* Body Styles für HOBEGE Seiten */
body.elementor-page {
    background-color: #292b2e;
}

/* ================================================
   Hero Section Anpassungen für Elementor
   ================================================ */

/* Hero ohne Header-Margin in Elementor */
.elementor .hero {
    margin-top: 0;
    min-height: 711px;
}

/* Hero Vollbild */
.elementor-section.elementor-section-full_width .hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* ================================================
   Container Anpassungen
   ================================================ */

/* Container-Breite in Elementor */
.elementor .container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1600px) {
    .elementor .container {
        max-width: 1920px;
        padding: 0 280px;
    }
}

@media (max-width: 1600px) {
    .elementor .container {
        padding: 0 100px;
    }
}

@media (max-width: 1200px) {
    .elementor .container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .elementor .container {
        padding: 0 20px;
    }
}

/* ================================================
   Section Background Fixes
   ================================================ */

/* Dunkler Hintergrund für alle Sections */
.elementor section,
.elementor .elementor-section {
    background-color: #292b2e;
}

/* Sicherstellen, dass Text weiß ist */
.elementor .intro-section,
.elementor .services-section,
.elementor .contact-section,
.elementor .amenities-section,
.elementor .values-section,
.elementor .target-groups-section,
.elementor .statistics-section,
.elementor .hv-intro-section,
.elementor .problems-section,
.elementor .comparison-section {
    color: #ffffff;
}

/* ================================================
   Elementor Editor Preview
   ================================================ */

.elementor-editor-active .hobege-apartment-card,
.elementor-editor-active .hobege-apartment-grid,
.elementor-editor-active .hobege-apartment-gallery {
    pointer-events: none;
}

/* Placeholder für dynamische Inhalte im Editor */
.elementor-editor-active [data-hobege-dynamic="true"]::after {
    content: 'Dynamischer Inhalt wird im Frontend angezeigt';
    display: block;
    padding: 20px;
    background: rgba(71, 186, 178, 0.1);
    border: 2px dashed #47bab2;
    text-align: center;
    color: #47bab2;
    font-size: 14px;
    border-radius: 8px;
    margin: 10px 0;
}

/* ================================================
   Button Styles für Elementor
   ================================================ */

.elementor .btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.elementor .btn-primary {
    background-color: #47bab2;
    border-color: #47bab2;
    color: #ffffff;
}

.elementor .btn-primary:hover {
    background-color: transparent;
    color: #47bab2;
}

.elementor .btn-outline-accent {
    background-color: transparent;
    border-color: #47bab2;
    color: #ffffff;
}

.elementor .btn-outline-accent:hover {
    background-color: #47bab2;
}

.elementor .btn-lg {
    padding: 16px 48px;
}

/* ================================================
   Typography Fixes
   ================================================ */

.elementor h1,
.elementor h2,
.elementor h3,
.elementor h4,
.elementor h5,
.elementor h6,
.elementor p,
.elementor span,
.elementor a {
    font-family: 'Titillium Web', sans-serif;
}

/* ================================================
   Form Styles für Elementor
   ================================================ */

.elementor .contact-form input,
.elementor .contact-form textarea,
.elementor .contact-form select {
    font-family: 'Titillium Web', sans-serif;
    background-color: transparent;
    border: 1px solid #ffffff;
    border-radius: 38px;
    color: #ffffff;
    padding: 18px 34px;
}

.elementor .contact-form input::placeholder,
.elementor .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.elementor .contact-form input:focus,
.elementor .contact-form textarea:focus {
    border-color: #47bab2;
    outline: none;
}

/* ================================================
   Card Styles für HOBEGE
   ================================================ */

.elementor .target-group-card,
.elementor .service-card,
.elementor .value-item,
.elementor .amenity-item {
    background-color: #393c40;
    border-radius: 8px;
}

/* ================================================
   Grid Fixes
   ================================================ */

.elementor .services-grid,
.elementor .amenities-grid,
.elementor .values-grid,
.elementor .problems-grid,
.elementor .target-groups-grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 1024px) {
    .elementor .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .elementor .amenities-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .elementor .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .elementor .target-groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================
   Statistics Section
   ================================================ */

.elementor .statistics-section {
    position: relative;
}

.elementor .statistics-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.elementor .statistics-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elementor .statistics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(41, 43, 46, 0.9);
}

.elementor .statistics-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.elementor .stat-item {
    text-align: center;
}

.elementor .stat-number {
    display: block;
    font-size: 60px;
    font-weight: 700;
    color: #47bab2;
}

.elementor .stat-label {
    font-size: 18px;
    color: #ffffff;
}

/* ================================================
   Comparison Table
   ================================================ */

.elementor .comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    background: #393c40;
    border-radius: 8px;
    overflow: hidden;
}

.elementor .comparison-column {
    display: flex;
    flex-direction: column;
}

.elementor .comparison-header {
    padding: 30px 20px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor .comparison-row {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.elementor .comparison-row.highlight {
    background: rgba(71, 186, 178, 0.1);
}
