* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -ms-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -ms-content-zooming: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* *** NEU: CSS-Variablen für Farben *** */
:root {
    /* Standard-Akzentfarbe (das helle Cyan) */
    --main-color: #00bcd4; 
    /* RGB-Version für rgba()-Verläufe (muss zur --main-color passen) */
    --main-color-rgb: 0, 188, 212; 
    /* Standard-Textfarbe */
    --text-color: #e0e0e0;
}


/* *** NEU: Moderne Schriftart 'Inter' *** */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    /* *** NEU: Schriftart auf 'Inter' geändert *** */
    font-family: 'Helvetica', sans-serif;
    font-size: 32px;
    /* Standard-Hintergrund (wird von JS überschrieben, falls Parameter gesetzt) */
    /* background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); */
    color: var(--text-color); /* Verwendet CSS-Variable */
    box-sizing: border-box;
    /* padding: 50px; */
}

a,
a:hover,
a:active,
a:visited {
    text-decoration: none;
    color: inherit;
}

#container {
    width: 90%;
    height: 90%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    margin: 2.6% 5%;

}

#chart {
    background-color: transparent;
    display: block;
    float: left;
    width: 100% !important;
    height: 100% !important;
    padding: 50px;
}


#clock,
#total {
    position: absolute;
    /* *** NEU: Schriftart und Farbe angepasst *** */
    font-family: 'Helvetica', sans-serif;
    font-weight: 600; /* Dicker für bessere Lesbarkeit */
    color: var(--main-color); /* Verwendet Akzentfarbe */
    text-shadow: 0 0 8px rgba(var(--main-color-rgb), 0.7); /* Verwendet Akzent-RGB */
    letter-spacing: 1px;
}
#clock {
    left: auto;
    right: 20px;
    top: 20px;
    display: block;
    font-size: 24px;
}
#total {
    left: 20px;
    top: 20px;
    font-size: 24px;
}

/* Stile für total.html (angepasst an Variablen) */
#total-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: var(--text-color);
    font-family: 'Helvetica', sans-serif; /* Angepasst */
    font-size: 64px;
    line-height: 120%;
    height: 100%;
    position: absolute;
    padding: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}
#total-container #total {
    position: relative;
    top: 0;
    left: 0;
    font-family: 'Helvetica', sans-serif; /* Angepasst */
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    display: flex;
}
#total-container #total span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    background: rgba(255, 255, 255, 0.05);
    background: linear-gradient(0deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.05) 100%);
    color: var(--main-color); /* Verwendet Akzentfarbe */
    text-align: center;
    font-weight: bold;
    border: .05em solid rgba(255, 255, 255, 0.2);
    border-width: .05em 0 .05em .05em;
    border-collapse: collapse;
    box-shadow: inset 0 0 .2em rgba(0, 0, 0, 0.5);
    margin: 0 0.05em;
    border-radius: 5px;
}
#total-container #total span:first-child {
    border-width: .05em .05em .05em .05em;
}
#total-container #total span:last-child {
    border-width: .05em .05em .05em .05em;
}
#total-container #total span:nth-last-child(-n + 2) {
    background: linear-gradient(0deg, rgba(255,0,0,0.1) 0%, rgba(255,50,50,0.2) 50%, rgba(255,0,0,0.1) 100%);
    color: #ff4d4d;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.7);
}
#total-container #unit {
    display: inline-block;
    font-size: 80%;
    line-height: 120%;
    vertical-align: bottom;
    margin-left: .2em;
    padding: 0 0 .1em;
    color: var(--main-color); /* Verwendet Akzentfarbe */
    text-shadow: 0 0 8px rgba(var(--main-color-rgb), 0.7); /* Verwendet Akzent-RGB */
}