/* ============================================================
   index.css — Stile nur für index.html
   Jupiter Observatory
   ============================================================ */

/* ── Body-Überschreibung für index (schwärzer) ───────────────── */
body {
    background-color: #000000;
}

/* ── Observatory Info Banner ─────────────────────────────────── */
.observatory-info {
    background: linear-gradient(135deg, #08144f 0%, #08527a 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}


.w3-text-orange{
    color: #ff9800;
}


.observatory-info h3 {
    margin: 0;
    font-size: 1.3em;
}

.observatory-info .info-detail {
    font-size: 0.9em;
    opacity: 0.95;
}

/* ── Camera Sections ─────────────────────────────────────────── */
.camera-section {
    background-color: #333;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.camera-section h2 {
    margin-top: 0;
    color: white;
    border-bottom: 2px solid #ff9800;
    padding-bottom: 10px;
}

.camera-frame {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    background-color: #000;
    border-radius: 5px;
    overflow: hidden;
}

.camera-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.camera-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media screen and (min-width: 768px) {
    .camera-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Weather Section ─────────────────────────────────────────── */
.weather-section {
    background-color: #333;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.weather-section h2 {
    margin-top: 0;
    color: white;
    border-bottom: 2px solid #ff9800;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ── Gauges Grid ─────────────────────────────────────────────── */
.gauges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gauge-container {
    background-color: #f9f9f9;
    padding: 16px 20px 14px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid #ccc;
    transition: border-color 0.4s;
    min-width: 0;
    overflow: hidden;
}

.gauge-container.safe    { border-top-color: #a6d189; }
.gauge-container.warning { border-top-color: #e5913d; }
.gauge-container.danger  { border-top-color: #e78284; }

.gauge-title {
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.gauge {
    width: 100%;
    max-width: 180px;
    height: 90px;
    margin: 0 auto 6px;
}

.gauge svg {
    width: 100%;
    height: 100%;
}

.gauge-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.gauge-unit {
    font-size: 0.5em;
    color: #666;
    margin-left: 3px;
}

/* ── Status Badge ────────────────────────────────────────────── */
.gauge-status {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
    background: #ccc;
    transition: background 0.4s;
}

.gauge-status.safe    { background: #a6d189; color: #2a4a1e; }
.gauge-status.warning { background: #e5913d; }
.gauge-status.danger  { background: #e78284; color: #4a1b1b; }

/* ── Last Update ─────────────────────────────────────────────── */
.last-update {
    text-align: right;
    color: #666;
    font-size: 0.85em;
    margin-top: 10px;
}

/* ── Footer Überschreibung für index (dunkelgrau) ────────────── */
.footer {
    background-color: #333;
    color: white;
    margin-top: 20px;
}

.footer a {
    color: white;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media screen and (max-width: 600px) {
    /* W3.CSS overrides — alle horizontalen Abstände entfernen */
    .w3-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .w3-padding-large {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .gauges-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }
    .gauge-container {
        padding: 10px 6px 10px;
    }
    .gauge-title {
        font-size: 0.75em;
        margin-bottom: 6px;
    }
    .gauge-value {
        font-size: 1.3em;
    }
    .gauge-unit {
        font-size: 0.55em;
    }
    .gauge-status {
        font-size: 0.65em;
        padding: 2px 6px;
    }
    .weather-section {
        padding: 14px 8px;
    }
    .camera-section {
        padding: 14px 8px;
    }
    .observatory-info {
        flex-direction: column;
        text-align: center;
    }
}
