/* * Project: Smart Home Portal
 * File: assets/css/glass-style.css
 * Version: 1.1.0 (Kompakt & Shelly-Slider)
 */

body {
    background: radial-gradient(circle at top left, #1a2a6c, #b21f1f, #fdbb2d);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: white;
    margin: 0;
}

.glass-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

/* Basis für alle Karten */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

/* Button-Styling (angepasst für kompakte Ansicht) */
.glass-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85em;
    flex: 1;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- NEU: Kompakte Rollladen-Ansicht --- */

.roller-grid { 
    display: grid; 
    /* Zwingt die Kacheln klein zu bleiben (max 180px) und zentriert sie */
    grid-template-columns: repeat(auto-fit, minmax(130px, 180px)); 
    justify-content: center; 
    gap: 15px; 
    width: 100%; 
    max-width: 1000px; 
}

.roller-card { 
    text-align: center; 
    padding: 12px !important; 
    box-sizing: border-box;
}

.roller-card h3 { margin: 5px 0; font-size: 1.1em; }
.roller-card p { margin: 3px 0; font-size: 0.85em; }

.btn-group { 
    display: flex; 
    justify-content: center; 
    gap: 5px; 
    margin-top: 10px; 
}

.header-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    width: 100%; 
    max-width: 1000px; 
    margin-bottom: 20px; 
    box-sizing: border-box;
}

.header-bar h2 { margin: 0; font-size: 1.3em; }
.btn-back { padding: 8px 15px; text-decoration: none; }

/* --- NEU: Shelly-Style Slider --- */
.shelly-slider { 
    -webkit-appearance: none;
    appearance: none;
    width: 100%; 
    height: 6px; 
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    outline: none; 
    margin: 15px 0; 
}

.shelly-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
}

.shelly-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
}