:root {
    --solar-yellow: #ffc107;
    --energy-blue: #007bff;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gauge {
    position: relative;
    height: 220px !important;
    width: 220px !important;
}

.gauge-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 180px;
    max-height: 180px;
}

.gauge-labels {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.gauge-min {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #999;
}

.gauge-max {
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    color: #999;
}

.gauge-title {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.gauge-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.power-card {
    height: 280px;           /* Fixed height */
    display: flex;
    flex-direction: column;
}

.power-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    padding: 1.5rem !important;
}

.power-card .title {
    font-size: 2.5rem;
    font-weight: 700;
}

.battery-high { border-left: 5px solid var(--success-green); }
.battery-medium { border-left: 5px solid var(--warning-orange); }
.battery-low { border-left: 5px solid #dc3545; }

@media (max-width: 768px) {
    .power-card .title { font-size: 2rem; }
    .gauge-container { height: 150px; }
}

.justgage {
    width: 200px !important;
    height: 140px !important;
    margin: 0 auto;
    flex-grow: 1;            /* Fill space */
    min-height: 120px;
}

.jGaugeValue {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
}

.jGaugeMinLabel, .jGaugeMaxLabel {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #666 !important;
}

.jGaugeTitle { 
    display: none !important; 
}

.power-card .subtitle { 
    margin-bottom: 0.5rem !important; 
}

.controlbtn {
    background-repeat: no-repeat;
    background-position: center;
    min-width: 50px;
    min-height: 50px;
}

.smallgap {
    margin-right: 0.75rem !important;
}

.automatik {
	background-image: url("/static/automatik.png");
}

.komfort {
	background-image: url("/static/komfort.png");
}

.reduziert {
	background-image: url("/static/reduziert.png");
}

.a_komfort {
	background-image: url("/static/a_komfort.png");
}

.a_reduziert {
	background-image: url("/static/a_reduziert.png");
}

.frostschutz {
	background-image: url("/static/8131667.png");
}

.outputbox {
    min-width: 80px; /* Fixed width for output; tweak for your layout */
}

.fixed-height {
    height: 100%; /* Matches is-medium input/button height; adjust if needed */
}

.navbar-burger {
    border-radius: 4px;
}

.navbar-menu.is-active {
    background-color: hsl(348, 86%, 96%); /* Light overlay */
}

@media (max-width: 1023px) {
    .navbar-item {
        border-bottom: 1px solid hsl(0, 0%, 93%);
    }
    
    .navbar-end .navbar-item {
        padding-right: 1.5rem;
    }
    
    #live-time {
        background: hsl(0, 0%, 96%);
        padding: 0.25rem 0.75rem;
        border-radius: 4px;
    }
}