/*
 * SimpleTimeClock – helle Darstellung
 *
 * Wird nur wirksam, wenn <body> die Klasse "theme-light" hat
 * (gesetzt aus dem Cookie stc_theme, Umschalter in der Seitenleiste).
 * Die dunkle Darstellung bleibt der Standard und steht in content.css / w3.css.
 */

/* ---------- Grundflächen ---------- */
body.theme-light,
body.theme-light .clock-background {
    background-color: #f3f4f6 !important;
    color: #1f2937 !important;
}
body.theme-light .clock-surface {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}
body.theme-light .w3-black {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}
body.theme-light .w3-dark-gray,
body.theme-light .w3-dark-grey {
    background-color: #e5e7eb !important;
    color: #1f2937 !important;
}
body.theme-light .w3-gray,
body.theme-light .w3-grey {
    background-color: #d1d5db !important;
    color: #1f2937 !important;
}

/* Seitenleiste mit leichter Abgrenzung */
body.theme-light #mySidebar {
    box-shadow: 1px 0 0 #e5e7eb;
}

/* ---------- Tabellen, Rahmen, Karten ---------- */
body.theme-light .w3-border,
body.theme-light .w3-border-top,
body.theme-light .w3-border-bottom {
    border-color: #d1d5db !important;
}
body.theme-light .w3-table tr {
    border-color: #e5e7eb;
}
body.theme-light .w3-card,
body.theme-light .w3-card-4 {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .08) !important;
}

/* ---------- Formulare ---------- */
body.theme-light .w3-input {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
}
body.theme-light .w3-input:disabled {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
}
body.theme-light input:-webkit-autofill,
body.theme-light input:-webkit-autofill:hover,
body.theme-light input:-webkit-autofill:focus,
body.theme-light input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    caret-color: #1f2937;
}
body.theme-light .w3-label,
body.theme-light .opt-hint {
    color: #4b5563 !important;
}

/* ---------- Schriftfarben mit zu wenig Kontrast auf Hell ---------- */
body.theme-light .w3-text-yellow     { color: #b45309 !important; }
body.theme-light .w3-text-gray,
body.theme-light .w3-text-grey       { color: #6b7280 !important; }
body.theme-light .w3-text-dark-gray,
body.theme-light .w3-text-dark-grey  { color: #9ca3af !important; }
body.theme-light .w3-hover-text-gray:hover { color: #374151 !important; }

/* ---------- Ausklappmenüs ---------- */
body.theme-light .w3-dropdown-content {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

/* ---------- Kalender ---------- */
body.theme-light .timecell-content { color: #6b7280; }
body.theme-light .w3-indigo .timecell-content,
body.theme-light .w3-crimson .timecell-content { color: #ffffff; }
body.theme-light .w3-disabled { opacity: .45; }

/* ---------- Umschalter Hell/Dunkel ---------- */
.theme-switch { width: 100%; text-align: left; background: transparent; color: inherit; }
