.heating-page {
    min-height: 100vh;
    display: flex;
    background: #080b0f;
    color: white;
}

/* =========================
   HINTERGRUND
   ========================= */

.heating-background {
    position: fixed;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 8, 11, 0.97) 0%,
            rgba(5, 8, 11, 0.85) 35%,
            rgba(5, 8, 11, 0.48) 70%,
            rgba(5, 8, 11, 0.72) 100%
        ),
        url("/static/img/froeling.jpg");

    background-size: cover;
    background-position: center;

    z-index: 0;
}

/* =========================
   SIDEBAR
   ========================= */

.heating-page .sidebar {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* =========================
   CONTENT
   ========================= */

.heating-content {
    position: relative;
    z-index: 2;

    flex: 1;

    padding: 35px;

    max-width: 1500px;
    margin: auto;
}

/* =========================
   HEADER
   ========================= */

.heating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;
}

.heating-title {
    color: #ff8800;
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 1px;
}

.heating-subtitle {
    color: #9da7b3;
    font-size: 17px;
    margin-top: 5px;
}

.boiler-status {
    background: rgba(20, 45, 28, 0.92);
    border: 1px solid #2f8f50;
    color: #72ff90;

    padding: 11px 18px;

    border-radius: 25px;

    font-weight: bold;
}

.status-dot {
    display: inline-block;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: #4cff70;

    margin-right: 8px;

    box-shadow: 0 0 12px #4cff70;
}

/* =========================
   HAUPTKESSEL
   ========================= */

.boiler-main {
    position: relative;

    min-height: 390px;

    border-radius: 22px;

    overflow: hidden;

    border: 1px solid #313b47;

    background: rgba(8, 11, 15, 0.88);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, .55),
        inset 0 0 40px rgba(255, 136, 0, .04);

    display: flex;
    align-items: center;

    margin-bottom: 22px;
}

.boiler-main-info {
    position: relative;

    z-index: 3;

    width: 43%;

    padding: 45px;
}

.small-title {
    color: #d7dce2;

    font-size: 18px;

    letter-spacing: 1px;

    margin-bottom: 12px;
}

.boiler-temperature {
    font-size: 100px;

    font-weight: 700;

    line-height: 0.95;

    letter-spacing: -3px;

    text-shadow:
        0 0 25px rgba(255, 255, 255, 0.08);
}

.boiler-temperature span {
    font-size: 42px;

    font-weight: normal;

    letter-spacing: 0;
}

.target-temperature {
    color: #aaa;

    margin-top: 25px;

    font-size: 16px;
}

.target-temperature strong {
    display: block;

    color: #ff3b3b;

    font-size: 32px;

    margin-top: 6px;

    text-shadow:
        0 0 12px rgba(255, 50, 50, 0.25);
}

.boiler-image-area {
    position: absolute;

    right: 0;
    top: 0;

    width: 72%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(8, 11, 15, 1) 0%,
            rgba(8, 11, 15, .92) 12%,
            rgba(8, 11, 15, .55) 30%,
            rgba(8, 11, 15, .12) 60%,
            rgba(8, 11, 15, .02) 100%
        ),
        url("/static/img/froeling.jpg");

    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;

    z-index: 1;
}

/* =========================
   MESSWERTE
   ========================= */

.measurement-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 22px;
}

.measure-card {
    min-height: 150px;

    background: rgba(13, 17, 22, 0.92);

    border: 1px solid #38424d;

    border-radius: 17px;

    padding: 22px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3);
}

.measure-icon {
    font-size: 26px;

    margin-bottom: 10px;
}

.measure-title {
    color: #c6ccd2;

    font-size: 14px;

    margin-bottom: 15px;
}

.measure-value {
    font-size: 36px;

    font-weight: bold;
}

.measure-value span {
    font-size: 20px;

    font-weight: normal;
}

.exhaust {
    border-top: 2px solid #ff3b3b;
}

.return {
    border-top: 2px solid #42a5f5;
}

.oxygen {
    border-top: 2px solid #62d66f;
}

.state {
    border-top: 2px solid #ffc107;
}

/* =========================
   INFO
   ========================= */

.info-panel,
.maintenance-panel {
    background: rgba(10, 14, 18, 0.92);

    border: 1px solid #39434e;

    border-radius: 20px;

    padding: 25px;

    margin-bottom: 22px;
}

.section-title {
    color: #ff8800;

    font-size: 19px;

    font-weight: bold;

    letter-spacing: 0.5px;

    margin-bottom: 22px;
}

.info-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 1px;

    background: #303942;
}

.info-item {
    min-height: 90px;

    padding: 18px;

    background: rgba(12, 16, 21, 0.97);

    display: flex;

    align-items: center;

    gap: 15px;
}

.info-icon {
    font-size: 25px;

    width: 35px;

    text-align: center;
}

.info-item small {
    display: block;

    color: #999;

    margin-bottom: 5px;
}

.info-item strong {
    font-size: 20px;
}

/* =========================
   WARTUNG
   ========================= */

.maintenance-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.maintenance-card {
    border: 1px solid #444;

    border-radius: 16px;

    padding: 25px;

    background: rgba(15, 19, 24, 0.94);
}

.maintenance-icon {
    font-size: 30px;

    margin-bottom: 12px;
}

.maintenance-label {
    color: #aaa;

    font-size: 14px;
}

.maintenance-value {
    font-size: 42px;

    font-weight: bold;

    margin-top: 8px;

    color: #ffffff;
}

.maintenance-value span {
    font-size: 20px;

    font-weight: normal;
}

.maintenance-ok {
    color: #65e879;

    margin-top: 8px;

    font-size: 13px;

    font-weight: bold;
}

.good {
    border-top: 2px solid #58d66d;
}

/* =========================
   INFO UNTEN
   ========================= */

.data-info {
    background: rgba(25, 30, 36, 0.9);

    border: 1px solid #39434e;

    border-radius: 13px;

    padding: 15px 20px;

    color: #aeb6bf;

    margin-bottom: 30px;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1000px) {

    .heating-content {
        padding: 20px;
    }

    .heating-title {
        font-size: 30px;
    }

    .boiler-main {
        min-height: 330px;
    }

    .boiler-main-info {
        width: 60%;
        padding: 30px;
    }

    .boiler-temperature {
    font-size: 92px;

    font-weight: bold;

    line-height: 1;

    text-shadow:
        0 0 25px rgba(255, 255, 255, .08);
}

    .measurement-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   HANDY
   ========================= */

@media (max-width: 700px) {

    /* Die Heizungsseite ist auf Desktop ein Flex-Layout. Mobil wird daraus
       bewusst Navigation oben, Inhalt darunter. */
    html, body {
        width: 100%;
        overflow-x: hidden !important;
    }

    .heating-page {
        display: block;
        width: 100%;
        min-height: 100vh;
    }

    .heating-page .sidebar {
        width: 100%;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid #232f3c;
        box-sizing: border-box;
    }

    .heating-page .sidebar .logo {
        margin-bottom: 14px;
    }

    .heating-page .sidebar ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .heating-page .sidebar li {
        min-width: 0;
        margin: 0;
        padding: 11px 8px;
        text-align: center;
    }

    .heating-content {
        width: 100%;
        min-width: 0;
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
    }

    .heating-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .heating-title {
        font-size: 25px;
    }

    .boiler-status {
        width: 100%;
        box-sizing: border-box;
        font-size: 12px;
        padding: 8px 10px;
    }

    .boiler-status span[style] {
        display: block;
        margin: 5px 0 0 !important;
    }

    .boiler-main {
        min-height: 310px;
        width: 100%;
    }

    .boiler-main-info {
        width: 100%;

        padding: 25px;
    }

    .boiler-image-area {
        width: 100%;

        opacity: 0.30;
    }

    .boiler-temperature {
        font-size: 70px;
    }

    .target-temperature strong {
        font-size: 28px;
    }

    .measurement-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .measure-card {
        padding: 15px;

        min-height: 130px;
    }

    .measure-value {
        font-size: 28px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-grid {
        grid-template-columns: 1fr;
    }

    .info-panel,
    .maintenance-panel,
    .data-info {
        width: 100%;
        box-sizing: border-box;
        padding: 16px;
    }
}
