/* Riegel Immobilien System - Frontend Styles */

/* Riegel Immobilien Farben */
:root {
    --riegel-primary: #1e3a8a;      /* Dunkelblau - Hauptfarbe */
    --riegel-secondary: #3b82f6;    /* Blau - Akzentfarbe */
    --riegel-accent: #f59e0b;       /* Orange - Akzentfarbe */
    --riegel-success: #10b981;      /* Grün - Erfolg */
    --riegel-warning: #f59e0b;      /* Orange - Warnung */
    --riegel-error: #ef4444;        /* Rot - Fehler */
    --riegel-light: #f8fafc;        /* Hellgrau - Hintergrund */
    --riegel-dark: #1e293b;         /* Dunkelgrau - Text */
    --riegel-white: #ffffff;        /* Weiß */
    --riegel-border: #e2e8f0;       /* Rahmenfarbe */
}

/* Erweiterte Immobiliensuche */
.immobilien-erweiterte-suche.riegel-theme {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, var(--riegel-primary) 0%, var(--riegel-secondary) 100%);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
    overflow: hidden;
}

.suche-header {
    text-align: center;
    padding: 60px 20px 40px;
    color: var(--riegel-white);
    background: rgba(0, 0, 0, 0.1);
}

.suche-header h2 {
    font-size: 3.5em;
    font-weight: 300;
    margin: 0 0 20px 0;
    color: var(--riegel-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.suche-header p {
    font-size: 1.4em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
}

.erweiterte-suche-form {
    background: var(--riegel-white);
    padding: 40px;
    border-radius: 0;
}

/* Zweizeiliges Layout - Exakt wie lomadesign.de */
.suche-spalten {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 100%;
}

.suche-spalte {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.suche-spalte h3 {
    color: var(--riegel-white);
    margin: 0 0 20px 0;
    font-size: 1.2em;
    font-weight: 600;
    background: var(--riegel-primary);
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkbox-Gruppen */
.checkbox-gruppe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.85em;
}

.checkbox-item:hover {
    background: var(--riegel-light);
    transform: translateX(3px);
}

.checkbox-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--riegel-accent);
    flex-shrink: 0;
}

.checkbox-item span {
    color: var(--riegel-dark);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Select-Felder */
.suche-spalte select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--riegel-border);
    border-radius: 8px;
    font-size: 0.9em;
    background: var(--riegel-white);
    color: var(--riegel-dark);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.suche-spalte select:focus {
    outline: none;
    border-color: var(--riegel-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Umkreis-Filter */
.umkreis-filter {
    display: flex;
    align-items: center;
    gap: 6px;
}

.umkreis-filter label {
    font-weight: 600;
    color: var(--riegel-dark);
    min-width: 45px;
    font-size: 0.85em;
    flex-shrink: 0;
}

.umkreis-filter select {
    margin-bottom: 0;
    width: auto;
    min-width: 70px;
    padding: 8px 10px;
    flex-shrink: 0;
}

/* Preis- und Flächen-Inputs */
.preis-inputs,
.flaeche-inputs,
.zimmer-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.preis-inputs input,
.flaeche-inputs input,
.zimmer-inputs input {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid var(--riegel-border);
    border-radius: 8px;
    font-size: 0.85em;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 0;
}

.preis-inputs input:focus,
.flaeche-inputs input:focus,
.zimmer-inputs input:focus {
    outline: none;
    border-color: var(--riegel-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.preis-inputs span,
.flaeche-inputs span,
.zimmer-inputs span {
    color: var(--riegel-dark);
    font-weight: 600;
    font-size: 0.9em;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Slider-Container */
.slider-container {
    margin: 12px 0;
    padding: 0 6px;
}

/* jQuery UI Slider Styling - Riegel Immobilien Theme */
.ui-slider {
    position: relative;
    text-align: left;
    background: var(--riegel-light);
    border: 2px solid var(--riegel-border);
    border-radius: 10px;
    height: 10px;
}

.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    font-size: .7em;
    display: block;
    border: 0;
    background: var(--riegel-accent);
    border-radius: 8px;
}

.ui-slider.ui-slider-horizontal .ui-slider-range {
    top: 0;
    height: 100%;
}

.ui-slider.ui-slider-horizontal .ui-slider-range-min {
    left: 0;
}

.ui-slider.ui-slider-horizontal .ui-slider-range-max {
    right: 0;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 24px;
    height: 24px;
    cursor: pointer;
    background: var(--riegel-white);
    border: 3px solid var(--riegel-accent);
    border-radius: 50%;
    outline: none;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.ui-slider .ui-slider-handle:hover {
    background: var(--riegel-accent);
    border-color: var(--riegel-primary);
    border-radius: 8px;
}

.ui-slider.ui-slider-horizontal .ui-slider-handle {
    top: -7px;
    margin-left: -12px;
}

/* Zusätzliche Filter */
.filter-optionen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 6px;
}

/* Suche-Aktionen */
.suche-aktionen {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 30px;
    border-top: 2px solid var(--riegel-light);
}

.suche-aktionen button {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button-primary {
    background: var(--riegel-primary);
    color: var(--riegel-white);
}

.button-primary:hover {
    background: var(--riegel-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.button-secondary {
    background: var(--riegel-light);
    color: var(--riegel-dark);
    border: 2px solid var(--riegel-border);
    border-radius: 8px;
}

.button-secondary:hover {
    background: var(--riegel-border);
    transform: translateY(-2px);
}

/* Einfache Suchform */
.immobilien-suche-einfach.riegel-theme {
    background: linear-gradient(135deg, var(--riegel-primary) 0%, var(--riegel-secondary) 100%);
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
    margin: 30px 0;
}

.immobilien-suche-einfach .suche-header {
    padding: 0 0 30px 0;
    background: none;
}

.immobilien-suche-einfach .suche-header h2 {
    font-size: 2.5em;
    margin: 0;
    color: var(--riegel-white);
}

.einfache-suche-form {
    background: var(--riegel-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.suche-zeile {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 20px;
    align-items: center;
}

.suche-zeile select,
.suche-zeile input[type="text"] {
    padding: 15px;
    border: 2px solid var(--riegel-border);
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.suche-zeile select:focus,
.suche-zeile input[type="text"]:focus {
    outline: none;
    border-color: var(--riegel-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.suche-zeile button {
    padding: 15px 30px;
    background: var(--riegel-primary);
    color: var(--riegel-white);
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suche-zeile button:hover {
    background: var(--riegel-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Immobilienliste */
.immobilien-liste.riegel-theme {
    background: var(--riegel-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    border-left: 5px solid var(--riegel-accent);
}

.immobilien-liste.riegel-theme h3 {
    color: var(--riegel-primary);
    margin: 0 0 20px 0;
    font-size: 1.8em;
    border-bottom: 2px solid var(--riegel-accent);
    padding-bottom: 10px;
}

.immobilien-liste.riegel-theme p {
    color: var(--riegel-dark);
    line-height: 1.6;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .suche-spalten {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .suche-header h2 {
        font-size: 2.5em;
    }
    
    .suche-spalten {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .erweiterte-suche-form {
        padding: 25px;
    }
    
    .checkbox-gruppe {
        grid-template-columns: 1fr;
    }
    
    .preis-inputs,
    .flaeche-inputs,
    .zimmer-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .suche-aktionen {
        flex-direction: column;
        gap: 15px;
    }
    
    .suche-aktionen button {
        width: 100%;
    }
    
    .suche-zeile {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .umkreis-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* Responsive Überschrift für kleine Suche */
    .immobilien-suche-einfach .suche-header h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .suche-header {
        padding: 40px 15px 30px;
    }
    
    .suche-header h2 {
        font-size: 2em;
    }
    
    .erweiterte-suche-form {
        padding: 20px;
    }
    
    .suche-spalte h3 {
        font-size: 1.1em;
    }
    
    /* Noch kleinere Überschrift für sehr kleine Bildschirme */
    .immobilien-suche-einfach .suche-header h2 {
        font-size: 1.5em;
    }
    
    .immobilien-suche-einfach {
        padding: 25px 15px;
    }
} 