/* CSS for the weewx Seasons skin
 * Copyright (c) Tom Keffer, Matthew Wall
 * Distributed under terms of GPLv3.  See LICENSE.txt for your rights.
 *
 * Angepasst 28.7.2026 (Christoph): weisser Hintergrund beibehalten,
 * aber moderneres, gezielteres Blau (nur für Links/aktive Reiter,
 * nicht mehr als grosse blaue Box wie im Original). Struktur/Layout
 * unverändert, nur Farben (:root) angepasst.
 */

:root {
    --background-color:#FFFFFF;
    --text-color:#1C1C1E;
    --title-background-color:#F5F5F7;
    --button-background-color:#F0F0F2;
    --element-background-color:#F5F5F7;
    --section-border-color:#E0E0E5;
    --cell-border-color:#EDEDF0;
    --highlight-color:#0A66FF;
    --link-color:#0A66FF;
    --visited-color:#0A66FF;
    --hover-color:#3D8BFF;
    --timestamp-color:#6E6E73;
    --hival-color:#FF3B30;
    --loval-color:#0A66FF;
    --ok-color:#34C759;
    --low-color:#FF3B30;
    --unknown-color:#C7C7CC;
}

/* use the fonts from google */
/* @import url('https://fonts.googleapis.com/css?family=Open+Sans'); */

/* use the local fonts */
@font-face {
    font-family: 'Open Sans';
    src: url('font/OpenSans.woff2') format('woff2'),
        url('font/OpenSans.woff') format('woff');
}

body {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Open Sans', arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

a {
    text-decoration: none;
    cursor: pointer;
    color: var(--link-color);
}

a:link {
    color: var(--link-color);
}
a:visited {
    color: var(--visited-color);
}
a:hover {
    color: var(--hover-color);
}

#widget_group {
    float: left;
    margin-right: 40px;
}

#plot_group {
    overflow: hidden;
}

#title_bar {
    overflow: auto;
    margin-bottom: 5px;
    background-color: var(--element-background-color);
    border: 1px solid var(--section-border-color);
}

#contents {
    clear: both;
    margin: 20px;
}

#title {
    float: left;
    margin-left: 10px;
}

#rss_link {
    float: right;
    margin-top: 6px;
    margin-right: 20px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: var(--background-color);
    border: 1px solid var(--section-border-color);
    webkit-radius: 5px;
    moz-radius: 5px;
    border-radius: 5px;
}

#reports {
    float: right;
    margin-top: 5px;
    margin-right: 10px;
    margin-bottom: 5px;
    text-align: right;
}

.footnote {
    font-size: 80%;
    font-style: italic;
    clear: both;
    padding-left: 20px;
    color: var(--timestamp-color);
    /* Auf Wunsch ausgeblendet (28.7.2026) - der WeeWX-Hinweistext */
    display: none;
}

.page_title {
    font-size: 140%;
    line-height: 50%;
}

.lastupdate {
    font-size: 80%;
    line-height: 50%;
    color: var(--timestamp-color);
}

.widget {
    margin-bottom: 30px;
    clear: both;
}

.widget_title {
    font-weight: bold;
    padding: 2px 10px 2px 10px;
    /* underlined titles */
    border-bottom: 2px solid var(--section-border-color);
    /* outlined titles */
/*
    background-color: var(--title-background-color);
    border: 1px solid var(--section-border-color);
*/
}

.label {
    font-size: 80%;
    vertical-align: top;
    text-align: right;
    padding-top: 4px;
    padding-right: 5px;
    color: var(--timestamp-color);
}

.data {
    font-weight: bold;
    font-size: 80%;
    vertical-align: top;
    text-align: left;
    padding-top: 4px;
    color: var(--text-color);
}

.units {
    font-size: 80%;
    vertical-align: top;
    padding-top: 4px;
    color: var(--timestamp-color);
}

.timestamp {
    font-size: 80%;
    font-weight: normal;
    color: var(--timestamp-color);
}

.hival {
    color: var(--hival-color);
}

.loval {
    color: var(--loval-color);
}

.status_ok {
    color: var(--ok-color);
}

.status_low {
    color: var(--low-color);
}

.status_unknown {
    color: var(--unknown-color);
}

.button {
    cursor: pointer;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    color: var(--text-color);
    /* rounded box buttons */
/*
    border: 1px solid var(--section-border-color);
    webkit-radius: 3px;
    moz-radius: 3px;
    border-radius: 3px;
*/
}

.button_selected {
    cursor: pointer;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    color: var(--highlight-color);
    /* underlined buttons */
    border-bottom: 5px solid var(--highlight-color);
    /* rounded box buttons */
/*
    background-color: var(--button-background-color);
    border: 1px solid var(--section-border-color);
    webkit-radius: 3px;
    moz-radius: 3px;
    border-radius: 3px;
*/
}

.widget_control {
    float: right;
    cursor: pointer;
    margin-left: 20px;
    margin-right: 5px;
}

.widget img {
    width: 350px;
    border: 1px solid var(--section-border-color);
    margin-top: 4px;
}

.new_row {
    border-top: 1px solid var(--cell-border-color);
}

.celestial_body {
    margin-bottom: 30px;
    float: left;
}

.widget table th {
    font-weight: normal;
    text-align: right;
    border-bottom: 1px solid var(--cell-border-color);
    color: var(--timestamp-color);
}

#hilo_widget table th {
    font-size: 80%;
    text-align: right;
    border-bottom: none;
}

#hilo_widget .data {
    font-weight: bold;
    font-size: 80%;
    text-align: right;
    padding-left: 10px;
}

#totals_widget table th {
    font-size: 80%;
    text-align: right;
    border-bottom: none;
}

#totals_widget .data {
    font-weight: bold;
    font-size: 80%;
    text-align: right;
    padding-left: 10px;
}

#sensors_widget table th {
    padding-top: 10px;
}

#history_widget img {
    border: none;
    margin-bottom: 10px;
    width: 500px; /* should match the image width in skin.conf */
}

#history_widget.widget_title {
    min-width: 500px;
}

.plot_container {
    margin-top: 4px;
}

#map_canvas {
    width: 350px;
    height: 350px;
    margin-top: 4px;
}


@media (max-width:800px) {
    #plot_group { overflow: visible; float: left; }
}
@media (min-width:801px) {
    #plot_group { overflow: hidden; float: none; }
}

/* ------------------------------------------------------------------
 * Handy-/Tablet-Anpassung (20.9.2026, Christoph). Die Seite wird auf
 * hinterdorf.ch in einen iframe eingebettet; die festen Bildbreiten
 * oben (350 px bzw. 500 px) liefen dort rechts aus dem Rahmen heraus
 * (gemessen: 520 px Inhalt in einem 360-px-Rahmen). Der Seasons-Skin
 * bringt dafuer im Original keine Loesung mit - auch der aktuelle
 * WeeWX-Hauptzweig hat dieselben festen Breiten.
 * Ab 701 px aufwaerts aendert dieser Block nichts.
 * ------------------------------------------------------------------ */
@media (max-width: 700px) {
    #contents        { margin: 10px; }
    #widget_group    { float: none; margin-right: 0; width: 100%; }
    .widget img,
    #history_widget img { width: 100%; height: auto; max-width: 500px; }
    #history_widget.widget_title { min-width: 0; }
    #map_canvas      { width: 100%; max-width: 350px; height: auto; }
    #title, #reports, #rss_link { float: none; margin: 4px 10px; text-align: left; }
    #title_bar       { overflow: visible; }
    .page_title, .lastupdate { line-height: normal; }
}
